documentation-writing
Skill296 starsChanged 4 months agoMITView on GitHub
Creates and maintains project documentation in .claude/skills/project-knowledge/: interview, initial Project Knowledge, audit, edit, consistency, and feature finalization.
6 other projects use a version of this.
Adopted by
Most recently taken up by
- 5throck/ai-workspace-standardstheir own version, first seen Sep 26, 2026
- redamoon/skillstheir own version, first seen Sep 17, 2026
- dungnotnull/hybrid-harness-chaos-process-prmtheir own version, first seen Jun 7, 2026
- stepanenkoviktor0110-boop/ai-dev-methodologytheir own version, first seen May 31, 2026
- autohandai/community-skillstheir own version, first seen Mar 9, 2026
- nilecui/SkillsBasetheir own version, first seen Dec 27, 2025
Other versions6 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 6
- nilecui/SkillsBase★ 27same name
- dungnotnull/hybrid-harness-chaos-process-prm★ 19same name
- 5throck/ai-workspace-standards★ 16same name
- autohandai/community-skills★ 11same name
- stepanenkoviktor0110-boop/ai-dev-methodology★ 2same name
- redamoon/skills★ 1same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository15 other files it gives its agents.
- AGENTS.mdAGENTS.md
- skills/skill-master/references/agents.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- code-reviewingSkill
- code-writingSkill
- infrastructure-setupSkill
- layout-reviewingSkill
- layout-writingSkill
- methodologySkill
- project-initializationSkill
- prompt-masterSkill
- security-auditorSkill
- skill-masterSkill
- test-masterSkill
- user-spec-planningSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
28 rules. 0 are common, 16 are distinctive, and 12 are very specific to this project.
0
Common
Most of the 5 edited versions we read keep these.
16
Distinctive
This author's own choices. Worth a look.
12
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 17
Create and maintain .claude/skills/project-knowledge/ from the evidence source the user named.
- Distinctive: line 26
When the user explicitly asks to reorganize existing Project Knowledge, apply project-knowledge-structures.md.
- Distinctive: line 34
No scheduled job performs this conversion.
- Very specific: line 37
After changing a project CLAUDE.md or any project-local .claude/ file, immediately run:
- Very specific: line 43
If sync reports a conflict, stop and report it.
- Very specific: line 45
When an approved deletion or rename produces orphaned managed outputs, verify that every reported path corresponds to that approved source …
- Distinctive: line 52
If the orphan list contains anything else, stop and report it instead of pruning unrelated output.
- Very specific: line 65
Verify root .codex/agents / .codex/skills include every root-exposed agent or skill.
- Distinctive: line 78
Do not list functions, classes, local control flow, or implementation details that can be read from code.
- Very specific: line 83
Keep generic framework, Git, Linux, SSH, Docker, journalctl, and systemctl explanations out of Project Knowledge.
- Distinctive: line 89
Use source links instead of code snippets or pseudocode.
- Distinctive: line 105
Use the narrowest mode that matches the user's request:
- Distinctive: line 111
Recent history: when the user asks for the last N commits, inspect those N commits and their resulting current code.
- Very specific: line 116
Feature finalization: use this mode only when the user explicitly asks to finish a feature (including /done) and provides or identifies …
- Very specific: line 119
Do not search for user-spec.md or require it outside feature-finalization mode.
- Distinctive: line 124
Read the selected evidence and current target documentation before editing.
- Distinctive: line 129
If Project Knowledge has no writable owner in the selected non-creation mode, report that no documentation target exists.
- Very specific: line 140
After changing a project CLAUDE.md or project-local .claude/, run the manual sync described above.
- Very specific: line 145
Run no more than two review waves.
- Distinctive: line 156
If an accepted correction changes the reviewed documentation, run wave 2 with a fresh reviewer.
- Distinctive: line 157
Stop after a clean wave or when no authorized correction changes the documentation.
- Distinctive: line 158
After wave 2, do not launch another reviewer automatically.
- Very specific: line 164
Read user-spec.md, decisions.md when present, the implementation, and the relevant Git history.
- Distinctive: line 166
If the feature is evidently incomplete, explain the concrete gap and ask whether to continue finalization.
- Distinctive: line 168
Update only affected Project Knowledge through Phases 2-3 and Documentation Review.
- Very specific: line 171
Remove active Project Knowledge and backlog links that treat work/{feature}/ as a current source.
- Distinctive: line 174
Commit the Project Knowledge changes and archive move with a concise documentation commit, then report the updated files and …
- Distinctive: line 182
Keep CLAUDE.md minimal: project name, one-line description, reference to the Project Knowledge skill, backlog path, and default branch.
“Common” is measured: kept by at least 6 in 10 of the 5 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Documentation Management
Create and maintain .claude/skills/project-knowledge/ from the evidence source the user named.
Outside Feature Finalization Mode, follow create-project-knowledge.md when the user starts or continues initial documentation and either its interview is still in progress or Project Knowledge is missing, still a template, or only partially filled. Apply project-knowledge-structures.md for content ownership and structure. After writing, run the manual sync and continue at Documentation Review.
When the user explicitly asks to reorganize existing Project Knowledge, apply project-knowledge-structures.md. Ordinary updates preserve the filled structure already in use.
Manual Project Documentation Sync
Project documentation source of truth is Claude-side: CLAUDE.md and .claude/**.
Codex-side AGENTS.md and .codex/** are generated runtime files.
No scheduled job performs this conversion. The agent that changes the Claude source runs the
matching command immediately and reviews the generated result before finishing the task.
After changing a project CLAUDE.md or any project-local .claude/** file, immediately run:
~/.claude/scripts/sync-to-codex.sh --project "$PWD" --applyIf sync reports a conflict, stop and report it. Commit generated project .codex/** / AGENTS.md
changes with their Claude sources, except .codex/.sync/**, which is host-local runtime state.
When an approved deletion or rename produces orphaned managed outputs, verify that every reported
path corresponds to that approved source change, then remove those generated leftovers with:
~/.claude/scripts/sync-to-codex.sh --project "$PWD" --apply --prune --confirm-deleteIf the orphan list contains anything else, stop and report it instead of pruning unrelated output.
Nested Agent Workspaces
Some projects keep an agent workspace under a subdirectory (for example
nested-workspace/.claude/**) while the repository root exposes selected skills or
agents through symlinks in root .claude/**. In that case, sync both levels:
~/.claude/scripts/sync-to-codex.sh --project "$PWD/nested-workspace" --apply
~/.claude/scripts/sync-to-codex.sh --project "$PWD" --applyVerify root .codex/agents / .codex/skills include every root-exposed agent or skill. A
generated file existing only inside the nested workspace is not enough when the root runtime
must invoke it. Treat .codex/.sync/** as host-local evidence: do not commit or synchronize it.
Documentation Principles
The reader should understand the project's purpose, structure, decisions, and operation without reconstructing them from code. Record durable project-specific facts: purpose and business logic; architecture, components, and their relationships; lasting agreements, decisions, and why those decisions were made; security rules and configuration names; deployment, operations, monitoring, recovery, where key code lives, and operational details an agent cannot infer from configuration alone.
Do not list functions, classes, local control flow, or implementation details that can be read from code. Treat an important non-obvious rule that applies only to a particular code path as code-owned: keep it out of Project Knowledge, and change a nearby code comment only when the user also requested source changes.
Keep generic framework, Git, Linux, SSH, Docker, journalctl, and systemctl explanations out of
Project Knowledge. For operations, preserve facts such as host, user, non-default port, SSH alias,
service or container name, log location, monitoring URL, environment-variable names, and emergency
recovery behavior. Store an exact command only when the procedure is non-standard and cannot be
recovered from project configuration.
Use source links instead of code snippets or pseudocode. Each fact has one owner file; update the
existing section and cross-reference it elsewhere instead of appending a duplicate. patterns.md
contains project-specific conventions, not general implementation advice.
Plans, user specs, tech specs, handoffs, and other work/ artifacts are evidence, not owners of
current project state. Keep changing inventories in their authoritative registry, configuration,
or runtime source; Project Knowledge records the durable rule, not current counts or members. If a
Project Knowledge claim depends on a completed work artifact, correct that boundary instead of
expanding the artifact.
File size alone is not a finding. Report a size-related issue only when evidence demonstrates duplication, stale content, implementation-level detail, or a structure that prevents useful selective loading.
Phase 1: Select the Evidence Source
Use the narrowest mode that matches the user's request:
- One current change: inspect the changed lines, the files they affect, and related callers or contracts needed to understand the durable result.
- Named commit or range: inspect exactly that commit or range plus the related files needed to interpret it.
- Recent history: when the user asks for the last N commits, inspect those N commits and their resulting current code.
- Full update or audit: inspect current code, all Project Knowledge, and
CLAUDE.md. - Specific documentation edit, consistency check, or status: inspect the named section and the documentation it can contradict.
- Feature finalization: use this mode only when the user explicitly asks to finish a feature
(including
/done) and provides or identifieswork/{feature}/.
Do not search for user-spec.md or require it outside feature-finalization mode. A normal
"update documentation" request does not archive work or create a finalization commit.
Phase 2: Establish Durable Facts
- Read the selected evidence and current target documentation before editing.
- Trace names, versions, service boundaries, data model, environment variables, deployment triggers, and operational facts to current sources. For full audits, also check placeholders, duplication, stale links, generic tutorial content, inconsistent terminology, and facts that no longer match the code.
- If Project Knowledge has no writable owner in the selected non-creation mode, report that no documentation target exists. Feature finalization keeps its explicit missing-documentation behavior below rather than starting an initial project interview from feature evidence.
Phase 3: Update or Report
- For an edit/update request, integrate facts into existing sections and update any directly contradicting references.
- For an audit, consistency check, or status request, report evidence-backed issues without changing files unless the user also asked for fixes. Status classifications are filled, partial, template, or missing; size alone does not determine status.
- After changing a project
CLAUDE.mdor project-local.claude/**, run the manual sync described above. For a nested workspace, sync the nested source first and the repository root second.
Documentation Review
- Run no more than two review waves. After documentation edits, run wave 1 with a fresh
documentation-reviewerwith no model override. Give it the complete touched documents, the selected evidence boundary, related code and contracts, and the user's request. It returns its JSON result directly. Include reviewers required by other active skills in these same waves instead of starting a separate wave sequence. - Review findings are diagnoses, not a work queue. Check the evidence and exact correction; apply
only an authorized local correction to agreed normal documentation. If the scenario is rare or
unagreed, or the correction adds behavior, state, entities, contracts, dependencies,
architecture, or material complexity, reject it with a short reason or ask the user before
editing.
user_decision_required: falsedoes not replace this check. Surface unrelated pre-existing defects without changing them. - If an accepted correction changes the reviewed documentation, run wave 2 with a fresh reviewer. Stop after a clean wave or when no authorized correction changes the documentation.
- After wave 2, do not launch another reviewer automatically. Make only remaining local corrections inside the requested documentation change, run the applicable direct checks and manual sync, and show the user any remaining findings or required decisions.
Feature Finalization Mode
- Read
user-spec.md,decisions.mdwhen present, the implementation, and the relevant Git history. Compare the implemented result with the agreed spec. - If the feature is evidently incomplete, explain the concrete gap and ask whether to continue finalization.
- Update only affected Project Knowledge through Phases 2-3 and Documentation Review. If Project Knowledge is missing, report that the documentation update was skipped and continue archival and finalization.
- Remove active Project Knowledge and backlog links that treat
work/{feature}/as a current source; do not add current operational inventory to completed artifacts. - Move
work/{feature}/towork/completed/{feature}/after documentation review. - Commit the Project Knowledge changes and archive move with a concise documentation commit, then report the updated files and completed-feature path.
This is the only mode that reads feature artifacts by default, archives a feature, or creates the finalization commit.
Agent Entry Point
Keep CLAUDE.md minimal: project name, one-line description, reference to the Project Knowledge
skill, backlog path, and default branch. Detailed project information belongs in Project Knowledge.
Template: ~/.claude/skills/project-initialization/assets/new-project/CLAUDE.md.
Self-Verification
- The requested documentation outcome matches the selected evidence and remains within scope.
- No unresolved material deviation or contradiction is hidden from the user.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

