Skip to main content

project-docs:项目事实各有归宿

创建或修复 AGENTS.md、ES.md、VISION.md、目录图与功能文件,让每条项目事实只住在一个短文件里。

来源信息

仓库
MasihMoafi/skills
最近来源活动
2026年11月3日 08:35
检测到的 SKILL.md 语言
英语
星标
8
Forks
0

用途

进入陌生项目、修复代理文档,或工作区检查报文档问题时使用。

操作说明

先读 AGENTS.md,再 ES.md,再功能文件 → 按行数上限把事实写回各自归宿 → 缺失时起草布局并在保存前展示 VISION.md → 与代码矛盾时以代码为准修正。

限制

README 只能补充,不能取代这些文件。按 skill 要求把本地笔记排除在公开 git 之外。

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。

正在显示 SKILL.md

SKILL.md
来源说明 · 只读预览
name
project-docs
description
Use when entering an unfamiliar project, when creating or repairing a project's agent docs (AGENTS.md, feature map, lat.md folder map, VISION.md, ES.md), or when the workspace check reports doc problems.
# Project docs Each fact about a project has one home. Read in this order: `AGENTS.md` (loaded already), `ES.md`, then the feature file for the task. Use the folder map before you add a file and `VISION.md` when scope is in question. A README supplements these files; it never replaces them. ## One file per job | File | Holds | Limit | | --- | --- | --- | | `AGENTS.md` (+ `CLAUDE.md` = `@AGENTS.md`) | `## Start here` (pointers), `## Common mistakes` (this project's lessons), `## Rules` | 60 lines | | `ES.md`, title "(updated YYYY-MM-DD)" | `## Now`, `## Next`, `## Broken`, `## Open decisions` | 40 lines | | `VISION.md` | identity in one line, `## Thesis`, `## Non-goals` | 25 lines | | `lat.md/workspace.md` | every top-level item and why it exists | — | | `.agents/skills/verify-<app>/features/` | one file per user-facing feature: how to reach it, drive it, its code, its gotchas; made by `create-verification-skill`, kept true by `maintain-verification-skill` | — | | `reports/`, commit messages | evidence: hashes, run IDs, verification prose | — | A workspace check can enforce the limits and headings (here: `findability/check_pointers.py`). These files are local notes: keep them out of public git and link them into new worktrees. ## What goes in AGENTS.md It loads into every session, so each line must apply to every task there (HumanLayer, *Writing a Good CLAUDE.md*; Anthropic, *Steering Claude Code*). - Yes: what the project is, how to build, test and verify it, where things live (as pointers), and rules that hold for every task. - No: procedures (a skill), task-specific notes (the feature file), state (`ES.md`), copies of global rules (the user-level instructions), code style (a linter). - A "never do X" that agents keep breaking needs a check or hook; the line in `AGENTS.md` is not enough. - A common mistake is one dated line: what went wrong, the rule, and its guard (or "No guard"). ## What goes in ES.md - `## Now`: what is true today, in up to five lines. Each line states a fact; its proof goes to `reports/`. - `## Next`: the user's open requests, newest date first, one line each, starting `Feature:`, `Fix:`, `Remove:` or `Keep:`. Delete a line only when the user has seen it working. When the log outgrows the file, it moves to a local `REQUESTS.md` beside `ES.md` (same line format), and `## Next` keeps the user's ranked items and a link. - `## Broken` and `## Open decisions`: one line each; a decision names who decides. - Rewrite the file in place; never append a progress log. ## Keep them true - Change a fact in its home only; elsewhere, point to it. - When a doc contradicts the code or another doc, check the code, fix or delete the wrong text, and say what changed. - Before you delete old text, move each lesson or prohibition that is still valid to a feature's gotchas or to `AGENTS.md`. - Add a harness part (`init.sh`, a rubric, a lint) only for a workflow that repeats, and only the smallest that fixes the bottleneck. If you are not sure it is still needed, remove it and keep the simpler setup if quality holds. ## Create the layout when absent Inspect the project two levels deep, draft the missing files in the shape above, and show the user `VISION.md` before you save it. Exemplar: this library's `VISION.md`.
在 GitHub 查看