aif-docs
Skill10 starsChanged 6 months agoMITView on GitHub
Generate and maintain project documentation. Creates a lean README as a landing page with detailed docs pages split by topic in the configured docs directory. Use when user says "create docs", "write documentation", "update docs", "generate readme", or "document project".
4 other projects use a version of this, 3 of them edited.
Adopted by
Most recently taken up by
- letuhao/lore-weaveword for word, first seen Oct 17, 2026
- unxed/f4edited, first seen Oct 8, 2026
- lee-to/ai-factoryedited, first seen Sep 22, 2026
- hightemp/go_computer_use_mcp_serveredited, first seen Mar 21, 2026
Other versions4 projects use a version of this.
Word for word · 1
- letuhao/lore-weave★ 35100% same
Edited · 3
- lee-to/ai-factory★ 1.2k78% same
- unxed/f4★ 261100% same
- hightemp/go_computer_use_mcp_server★ 273% same
Wrote their own version · 0
None found.
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 repository59 other files it gives its agents.
- AGENTS.mdAGENTS.md
- site-docs/AGENTS.mdAGENTS.md
- web/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- docs/CLAUDE.mdCLAUDE.md
- web/CLAUDE.mdCLAUDE.md
- aif-architectureSkill
- aif-best-practicesSkill
- aif-build-automationSkill
- aif-ciSkill
- aif-commitSkill
- aif-distillationSkill
- aif-dockerizeSkill
- aif-evolveSkill
- aif-exploreSkill
- aif-fixSkill
- aif-groundedSkill
- aif-implementSkill
- aif-improveSkill
- aif-loopSkill
- aif-planSkill
- aif-qaSkill
- aif-referenceSkill
- aif-reviewSkill
- aif-roadmapSkill
- aif-rules-checkSkill
- aif-rulesSkill
- aif-security-checklistSkill
- aif-skill-generatorSkill
- aifSkill
- aif-verifySkill
- generate-claudemdSkill
- aif-architectureSkill
- aif-best-practicesSkill
- aif-build-automationSkill
- aif-ciSkill
- aif-commitSkill
- aif-distillationSkill
- aif-dockerizeSkill
- aif-docsSkill
- aif-evolveSkill
- aif-exploreSkill
- aif-fixSkill
- aif-groundedSkill
- aif-implementSkill
- aif-improveSkill
- aif-loopSkill
- aif-planSkill
- aif-qaSkill
- aif-referenceSkill
- aif-reviewSkill
- aif-roadmapSkill
- aif-rules-checkSkill
- aif-rulesSkill
- aif-security-checklistSkill
- aif-skill-generatorSkill
- aifSkill
- aif-verifySkill
- generate-claudemdSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
50 rules. 25 are common, 9 are distinctive, and 16 are very specific to this project.
25
Common
Most of the 3 edited versions we read keep these.
9
Distinctive
This author's own choices. Worth a look.
16
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Common: line 21
No duplication: If information lives in the resolved docs directory, README links to it — does not repeat it.
- Common: line 24
Scannable: Use tables, bullet lists, and code blocks.
- Very specific: line 30
FIRST: Read .ai-factory/config.yaml if it exists to resolve:
- Very specific: line 34
If config.yaml doesn't exist, use defaults:
- Very specific: line 42
THEN: Read .ai-factory/DESCRIPTION.md (use path from config) if it exists to understand:
- Very specific: line 50
Read package.json, composer.json, requirements.txt, go.mod, Cargo.toml, etc.
- Common: line 52
Look for existing docs, comments, API endpoints, CLI commands
- Common: line 53
Check for existing README.md and the resolved docs directory
- Common: line 61
Treat them as project-level overrides for this skill's general instructions
- Very specific: line 62
When a skill-context rule conflicts with a general rule written in this SKILL.md,
- Very specific: line 64
When there is no conflict, apply both: general rules from SKILL.md + project rules from skill-context
- Common: line 65
Do NOT ignore skill-context rules even if they seem to contradict this skill's defaults — they exist because the project's experience …
- Common: line 69
If a skill-context rule says "docs MUST include X" or "README MUST have section Y" — you MUST augment the templates accordingly.
- Common: line 73
Enforcement: After generating any output artifact, verify it against all skill-context rules.
- Common: line 74
If any rule is violated — fix the output before presenting it to the user.
- Very specific: line 78
Use Glob to find all *.md files in the project root (exclude node_modules/, .ai-factory/, agent dirs):
- Common: line 95
Check what documentation already exists:
- Very specific: line 125
If scattered .md files were found in the project root (from Step 0), propose consolidating them into the resolved docs directory.
- Common: line 176
Create the target file in the resolved docs directory with prev/next navigation header (following Documentation table order) and "See Also" …
- Common: line 177
If merging into an existing doc — append content under a new section header, avoid duplicating info that's already there
- Common: line 179
Add the new doc page to README's Documentation table using the correct path relative to README
- Common: line 180
Update any links in other files that pointed to the old root-level file
- Common: line 183
IMPORTANT: Never force-move files. Always show the plan and get user approval first.
- Common: line 187
When no README.md exists, generate the full documentation set.
- Common: line 229
Add more topics → ask what additional topics to include, confirm final list, then generate
- Common: line 319
Verify it works (expected output)
- Common: line 336
All environment variables with descriptions and defaults
- Common: line 348
When README.md exists but is long (150+ lines) and there's no resolved docs directory yet.
- Common: line 352
Read README.md and identify:
- Common: line 395
Create the resolved docs directory
- Common: line 396
Create each doc file with content from README + prev/next navigation header (following Documentation table order) + "See Also" footer
- Common: line 402
When both README.md and the resolved docs directory exist.
- Very specific: line 417
Check existing docs against current Core Principles for gaps (missing navigation, missing "See Also", stale formats).
- Very specific: line 443
When --web flag is passed, generate a static HTML site from the markdown docs.
- Very specific: line 455
Read the HTML template from templates/html-template.html and use it for each page.
- Common: line 472
Skip this step: only when "Generate HTML only" was chosen — no content was modified, nothing to review.
- Very specific: line 474
Read every generated/modified file and evaluate it against both checklists from references/REVIEW-CHECKLISTS.md.
- Very specific: line 482
After the review confirms all content is correctly placed in docs/, offer to delete the original root-level files:
- Distinctive: line 506
Verify one more time that the target docs/ file contains all content from the original
- Distinctive: line 507
Delete the root file
- Distinctive: line 508
Run git status to show what was deleted — user can restore with git checkout if needed
- Distinctive: line 510
Do NOT auto-delete: Always ask. The user may want to keep originals temporarily for reference or diff comparison.
- Very specific: line 516
Read AGENTS.md and find the ## Documentation section.
- Distinctive: line 531
If files were moved/merged from root during Step 1.1, reflect the new locations
- Distinctive: line 532
If new doc pages were created, add them
- Distinctive: line 533
If doc pages were removed, remove them
- Distinctive: line 534
Keep descriptions concise (under 10 words)
- Distinctive: line 535
If AGENTS.md doesn't exist, skip this step silently
- Very specific: line 545
Read-only context: .ai-factory/DESCRIPTION.md, .ai-factory/ARCHITECTURE.md, roadmap/rules/research artifacts unless the user explicitly …
- Very specific: line 554
Add to .gitignore: if generating HTML: add docs-html/ to .gitignore
“Common” is measured: kept by at least 6 in 10 of the 3 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
Docs - Project Documentation Generator
Generate, maintain, and improve project documentation following a landing-page README + detailed docs-directory structure.
Core Principles
- README is a landing page, not a manual. ~80-120 lines. First impression, install, quick example, links to details.
- Details go to the resolved docs directory (
paths.docs, default:docs/). Each file is self-contained — one topic, one page. A user should be able to read a single doc file and get the full picture on that topic. - No duplication. If information lives in the resolved docs directory, README links to it — does not repeat it. Exception: installation command can appear in both (users expect it in README).
- Navigation. Every doc file in the resolved docs directory has a header line with prev/next links following the Documentation table order:
[← Previous Page](prev.md) · [Back to README](<docs-to-readme-link>) · [Next Page →](next.md). First page has no prev link; last page has no next link. Every page ends with a "See Also" section linking to 2-3 related pages. - Cross-links use relative paths. From README: link to the resolved docs directory path (for example
docs/workflow.mdby default). Between doc pages in the same directory:workflow.md. - Scannable. Use tables, bullet lists, and code blocks. Avoid long paragraphs. Users scan, they don't read.
Workflow
Step 0: Load Config & Project Context
FIRST: Read .ai-factory/config.yaml if it exists to resolve:
- Paths:
paths.description,paths.architecture, andpaths.docs - Language:
language.uifor prompts andlanguage.artifactsfor generated docs
If config.yaml doesn't exist, use defaults:
- DESCRIPTION.md:
.ai-factory/DESCRIPTION.md - ARCHITECTURE.md:
.ai-factory/ARCHITECTURE.md - Docs directory:
docs/ - Language:
en(English)
Note: README.md remains the landing page in the project root. Detailed docs are written to the resolved paths.docs directory (default: docs/).
THEN: Read .ai-factory/DESCRIPTION.md (use path from config) if it exists to understand:
- Tech stack (language, framework, database)
- Project purpose and architecture
- Key features and conventions
Also read .ai-factory/ARCHITECTURE.md (use path from config) if it exists to align documentation with the project's structure and boundaries.
Explore the codebase:
- Read
package.json,composer.json,requirements.txt,go.mod,Cargo.toml, etc. - Scan
src/structure to understand architecture - Look for existing docs, comments, API endpoints, CLI commands
- Check for existing README.md and the resolved docs directory
Read .ai-factory/skill-context/aif-docs/SKILL.md — MANDATORY if the file exists.
This file contains project-specific rules accumulated by $aif-evolve from patches,
codebase conventions, and tech-stack analysis. These rules are tailored to the current project.
How to apply skill-context rules:
- Treat them as project-level overrides for this skill's general instructions
- When a skill-context rule conflicts with a general rule written in this SKILL.md, the skill-context rule wins (more specific context takes priority — same principle as nested CLAUDE.md files)
- When there is no conflict, apply both: general rules from SKILL.md + project rules from skill-context
- Do NOT ignore skill-context rules even if they seem to contradict this skill's defaults — they exist because the project's experience proved the default insufficient
- CRITICAL: skill-context rules apply to ALL outputs of this skill — including README.md, documentation pages, and their templates. The templates in this SKILL.md are base structures. If a skill-context rule says "docs MUST include X" or "README MUST have section Y" — you MUST augment the templates accordingly. Generating documentation that violates skill-context rules is a bug.
Enforcement: After generating any output artifact, verify it against all skill-context rules. If any rule is violated — fix the output before presenting it to the user.
Scan for scattered markdown files in project root:
Use Glob to find all *.md files in the project root (exclude node_modules/, .ai-factory/, agent dirs):
CHANGELOG.md, CONTRIBUTING.md, ARCHITECTURE.md, DEPLOYMENT.md,
SECURITY.md, API.md, SETUP.md, DEVELOPMENT.md, TESTING.md, etc.Record each file, its size, and a brief summary of its content. This list is used in Step 1.1.
Step 0.1: Parse Flags
--web → Generate HTML version of documentationStep 1: Determine Current State
Check what documentation already exists:
State A: No README.md → Full generation (README + docs dir)
State B: README.md exists, no docs dir → Analyze README, propose split into docs dir
State C: README.md + docs dir exist → Depends on flags (see below)State C with --web flag — ask the user:
Documentation already exists (README.md + resolved docs directory).
AskUserQuestion: What would you like to do?
Options:
1. Generate HTML only — build site from current docs as-is
2. Audit & improve first — check for issues, then generate HTML
3. Audit only — check for issues without generating HTMLBased on choice:
- Generate HTML only → skip Step 1.1, Step 2, Step 4 — go directly to Step 3 (HTML generation), then done
- Audit & improve first → run Step 1.1 → Step 2 (State C) → Step 3 → Step 4 → Step 4.1
- Audit only → run Step 1.1 → Step 2 (State C) → Step 4 → Step 4.1 (skip Step 3)
State C without --web flag → run Step 2 (State C) as usual.
Step 1.1: Check for Scattered Markdown Files
If scattered .md files were found in the project root (from Step 0), propose consolidating them into the resolved docs directory.
Common files that should move to the resolved docs directory:
| Root file | Target in docs dir | Merge or move? |
CONTRIBUTING.md | <resolved docs dir>/contributing.md | Move |
ARCHITECTURE.md | <resolved docs dir>/architecture.md | Move |
DEPLOYMENT.md | <resolved docs dir>/deployment.md | Move |
SETUP.md | <resolved docs dir>/getting-started.md | Merge (append to existing) |
DEVELOPMENT.md | <resolved docs dir>/getting-started.md or <resolved docs dir>/contributing.md | Merge |
API.md | <resolved docs dir>/api.md | Move |
TESTING.md | <resolved docs dir>/testing.md | Move |
SECURITY.md | <resolved docs dir>/security.md | Move |
Files that stay in root (standard convention):
README.md— always staysCHANGELOG.md— standard root-level file, keep as-isLICENSE/LICENSE.md— standard root-level file, keep as-isCODE_OF_CONDUCT.md— standard root-level file, keep as-is
If scattered files found, ask the user:
Found [N] markdown files in the project root:
CONTRIBUTING.md (45 lines) — contribution guidelines
ARCHITECTURE.md (120 lines) — system architecture overview
DEPLOYMENT.md (80 lines) — deployment instructions
SETUP.md (30 lines) — setup guide (overlaps with getting-started)
Suggested actions:
→ Move CONTRIBUTING.md → <resolved docs dir>/contributing.md
→ Move ARCHITECTURE.md → <resolved docs dir>/architecture.md
→ Move DEPLOYMENT.md → <resolved docs dir>/deployment.md
→ Merge SETUP.md into <resolved docs dir>/getting-started.md
AskUserQuestion: Would you like to apply the consolidation?
Options:
1. Apply all suggestions
2. Let me pick which ones
3. Skip — keep files where they areBased on choice:
- Apply all suggestions → move/merge all listed files, continue to Step 2
- Let me pick which ones → present each file individually for approval, apply selected
- Skip → leave files where they are, continue to Step 2
When moving/merging:
- Create the target file in the resolved docs directory with prev/next navigation header (following Documentation table order) and "See Also" footer
- If merging into an existing doc — append content under a new section header, avoid duplicating info that's already there
- Do NOT delete originals yet — keep them until the review step confirms everything is in place
- Add the new doc page to README's Documentation table using the correct path relative to README
- Update any links in other files that pointed to the old root-level file
- Record which files were moved/merged — this list is used in Step 4.1
IMPORTANT: Never force-move files. Always show the plan and get user approval first.
Step 2 (State A): Generate from Scratch
When no README.md exists, generate the full documentation set.
2.1: Analyze project for documentation topics
Explore the codebase and identify documentation topics:
Always include:
- getting-started.md (installation, setup, quick start)
Include if relevant:
- architecture.md (if project has clear architecture: services, modules, layers)
- api.md (if project exposes API endpoints)
- configuration.md (if project has config files, env vars, feature flags)
- deployment.md (if Dockerfile, CI/CD, deploy scripts exist)
- contributing.md (if open-source or team project)
- security.md (if auth, permissions, or security patterns exist)
- testing.md (if test suite exists)
- cli.md (if project has CLI commands)Ask the user:
I've analyzed your project and suggest these documentation pages:
1. getting-started.md — Installation, setup, quick start
2. architecture.md — Project structure and patterns
3. api.md — API endpoints reference
4. configuration.md — Environment variables and config
AskUserQuestion: Would you like to generate these documentation pages?
Options:
1. Generate all of these
2. Let me pick which ones
3. Add more topicsBased on choice:
- Generate all → proceed to generate README.md and all listed doc files in the resolved docs directory
- Let me pick → present each topic for individual approval, generate only approved
- Add more topics → ask what additional topics to include, confirm final list, then generate
2.2: Generate README.md
Structure (aim for ~80-120 lines):
# Project Name
> One-line tagline describing the project.
Brief 2-3 sentence description of what this project does and why it exists.
## Quick Start
\`\`\`bash
# Installation steps (1-3 commands)
\`\`\`
## Key Features
- **Feature 1** — brief description
- **Feature 2** — brief description
- **Feature 3** — brief description
## Example
\`\`\`
# Show a real usage example — this is where users decide "I want this"
\`\`\`
---
## Documentation
| Guide | Description |
|-------|-------------|
| [Getting Started](<readme-to-docs-dir>/getting-started.md) | Installation, setup, first steps |
| [Architecture](<readme-to-docs-dir>/architecture.md) | Project structure and patterns |
| [API Reference](<readme-to-docs-dir>/api.md) | Endpoints, request/response formats |
| [Configuration](<readme-to-docs-dir>/configuration.md) | Environment variables, config files |
## License
MIT (or whatever is in the project)Key rules for README:
- Logo/badge line at the top (if project has one)
- Tagline as blockquote
- Quick Start with real installation commands (detect from package manager)
- Key Features as bullet list (3-6 items, scannable)
- Real usage example that shows the "wow factor"
- Documentation table with links to the resolved docs directory
- License at the bottom
- NO long descriptions, NO full API reference, NO configuration details
2.3: Generate documentation files in the resolved docs directory
For each approved topic, create a doc file:
[← Previous Topic](previous-topic.md) · [Back to README](<docs-to-readme-link>) · [Next Topic →](next-topic.md)
# Topic Title
Content organized by subtopic with headers, code examples, and tables.
Keep each section self-contained.
## See Also
- [Related Topic 1](related-topic.md) — brief description
- [Related Topic 2](other-topic.md) — brief descriptionNavigation link order follows the Documentation table in README.md (top to bottom). The first doc page omits the "← Previous" link; the last page omits the "Next →" link. Use the correct relative link from the resolved docs directory back to README.md. Example for the default docs/ layout:
getting-started.md: [Back to README](../README.md) · [Architecture →](architecture.md)
architecture.md: [← Getting Started](getting-started.md) · [Back to README](../README.md) · [API Reference →](api.md)
api.md: [← Architecture](architecture.md) · [Back to README](../README.md) · [Configuration →](configuration.md)
configuration.md: [← API Reference](api.md) · [Back to README](../README.md)Content guidelines per topic:
getting-started.md:
- Prerequisites (runtime versions, tools needed)
- Step-by-step installation
- First run / quick start
- Verify it works (expected output)
- Next steps links
architecture.md:
- High-level overview (diagram if useful)
- Directory structure with explanations
- Key patterns (naming, imports, error handling)
- Data flow
api.md:
- Base URL / configuration
- Authentication
- Endpoints grouped by resource
- Request/response examples
- Error codes
configuration.md:
- All environment variables with descriptions and defaults
- Config files and their purpose
- Feature flags
deployment.md:
- Build steps
- Environment setup
- CI/CD pipeline description
- Monitoring / health checks
Step 2 (State B): Split Existing README into the resolved docs directory
When README.md exists but is long (150+ lines) and there's no resolved docs directory yet.
2.1: Analyze README structure
Read README.md and identify:
- Which sections should stay (landing page content)
- Which sections should move to the resolved docs directory (detailed content)
Stays in README:
- Title, tagline, badges
- "Why?" / key features bullet list
- Quick install (1-3 commands)
- Brief example
- Documentation links table
- External links, license
Moves to the resolved docs directory:
- Detailed setup instructions →
getting-started.md - Architecture / project structure →
architecture.md - Full API reference →
api.md - Configuration details →
configuration.md - Contributing guidelines →
contributing.md - Any section longer than ~30 lines that covers a single topic
2.2: Propose changes to user
Your README.md is [N] lines. I suggest splitting it:
README.md (~100 lines) — keep as landing page:
✓ Title + tagline
✓ Key features
✓ Quick install
✓ Example
✓ Documentation links table
Move to docs dir:
→ "Installation" section → <resolved docs dir>/getting-started.md
→ "Configuration" section → <resolved docs dir>/configuration.md
→ "API Reference" section → <resolved docs dir>/api.md
→ "Architecture" section → <resolved docs dir>/architecture.md
Proceed?2.3: Execute the split
- Create the resolved docs directory
- Create each doc file with content from README + prev/next navigation header (following Documentation table order) + "See Also" footer
- Rewrite README as landing page with Documentation links table
- Verify no content was lost — every section from old README must exist somewhere
Step 2 (State C): Improve Existing Docs
When both README.md and the resolved docs directory exist.
2.1: Audit current documentation
Check for:
- README length — is it still a landing page (<150 lines)?
- Missing topics — are there aspects of the project not documented?
- Stale content — do docs reference files/APIs that no longer exist?
- Navigation — do all docs have prev/next header links and "See Also"?
- Broken links — verify all internal links point to existing files/anchors
- Consistency — same formatting style across all docs
- Standards compliance — does existing documentation match the current skill standards? (see 2.1.1)
2.1.1: Standards compliance check
Check existing docs against current Core Principles for gaps (missing navigation, missing "See Also", stale formats). For the full compliance table and auto-fix rules → read references/REVIEW-CHECKLISTS.md (Standards Compliance section).
When gaps are found, include them in the audit report alongside content issues (Step 2.2). Treat them as regular improvements — show the plan and get user approval before applying.
2.2: Propose improvements
Documentation audit results:
✅ README is lean (105 lines)
⚠️ Docs pages in the resolved docs directory are missing prev/next navigation — will add
⚠️ <resolved docs dir>/api.md is missing — project has 12 API endpoints
⚠️ <resolved docs dir>/configuration.md references old env var DB_HOST (now DATABASE_URL)
❌ <resolved docs dir>/getting-started.md links to setup.md which doesn't exist
Proposed fixes:
1. Add prev/next navigation to all doc pages in the resolved docs directory
2. Create <resolved docs dir>/api.md with endpoint reference
3. Update DATABASE_URL in <resolved docs dir>/configuration.md
4. Fix broken link in <resolved docs dir>/getting-started.md
Apply fixes?Step 3: Generate HTML Version (--web flag)
When --web flag is passed, generate a static HTML site from the markdown docs.
3.1: Create docs-html/ directory
mkdir -p docs-html3.2: Generate HTML files
For each markdown file (README.md + <resolved docs dir>/*.md), generate an HTML version:
Read the HTML template from templates/html-template.html and use it for each page.
Customize: {page_title}, {project_name}, {nav_links}, {content}.
3.3: Convert markdown to HTML
For each doc file: parse markdown → convert to HTML elements → fix .md links to .html → generate nav bar → write to docs-html/.
File mapping: README.md → index.html, <resolved docs dir>/*.md → *.html.
3.4: Output result
Show tree of generated files and open docs-html/index.html hint.
Step 4: Documentation Review
MANDATORY after any content change (generation, split, improvement, file consolidation). Do NOT skip this step.
Skip this step only when "Generate HTML only" was chosen — no content was modified, nothing to review.
Read every generated/modified file and evaluate it against both checklists from references/REVIEW-CHECKLISTS.md. Two checklists: Technical Accuracy and Readability & Completeness.
Fix any issues found before presenting the result to the user. Display results as a compact table with ✅/❌/⚠️ status per item.
Step 4.1: Clean Up Moved Files
Only if files were moved/merged from root into docs/ during Step 1.1.
After the review confirms all content is correctly placed in docs/, offer to delete the original root-level files:
The following root files have been incorporated into docs/:
CONTRIBUTING.md → now in docs/contributing.md
ARCHITECTURE.md → now in docs/architecture.md
DEPLOYMENT.md → now in docs/deployment.md
SETUP.md → merged into docs/getting-started.md
AskUserQuestion: These originals are no longer needed. Delete them?
Options:
1. Yes, delete all originals
2. Let me pick which ones to delete
3. No, keep them (I'll clean up later)Based on choice:
- Yes, delete all → delete all listed originals (see "When deleting" below)
- Let me pick → present each file individually, delete only approved
- No, keep them → leave originals in place, continue to Step 5
When deleting:
- Verify one more time that the target docs/ file contains all content from the original
- Delete the root file
- Run
git statusto show what was deleted — user can restore withgit checkoutif needed
Do NOT auto-delete. Always ask. The user may want to keep originals temporarily for reference or diff comparison.
Step 5: Update AGENTS.md
After any documentation changes, update the Documentation section in AGENTS.md (if the file exists).
Read AGENTS.md and find the ## Documentation section. Update it to reflect the current state of all documentation files:
## Documentation
| Document | Path | Description |
|----------|------|-------------|
| README | README.md | Project landing page |
| Getting Started | `<resolved docs dir>/getting-started.md` | Installation, setup, first steps |
| Architecture | `<resolved docs dir>/architecture.md` | Project structure and patterns |
| API Reference | `<resolved docs dir>/api.md` | Endpoints, request/response formats |
| Configuration | `<resolved docs dir>/configuration.md` | Environment variables, config files |Rules:
- List README.md first, then all doc files in the resolved docs directory in the same order as the README Documentation table
- If files were moved/merged from root during Step 1.1, reflect the new locations
- If new doc pages were created, add them
- If doc pages were removed, remove them
- Keep descriptions concise (under 10 words)
- If
AGENTS.mddoesn't exist, skip this step silently
Context Cleanup
Suggest the user to free up context space if needed: /clear (full reset) or /compact (compress history).
Artifact Ownership
- Primary ownership:
README.md,<resolved docs dir>/*, and the Documentation section inAGENTS.md. - Config use:
config.yamlresolvespaths.description,paths.architecture,paths.docs,language.ui, andlanguage.artifacts. - Read-only context:
.ai-factory/DESCRIPTION.md,.ai-factory/ARCHITECTURE.md, roadmap/rules/research artifacts unless the user explicitly asks for broader edits.
Important Rules
- Always ask before making changes to existing documentation — show the plan first
- Never delete content without moving it somewhere else
- Detect real project info — don't invent features, read package.json/config files
- Use the project's language — if project README is in Russian, write docs in Russian
- Preserve existing badges/logos — don't remove them during restructuring
- Add to .gitignore if generating HTML: add
docs-html/to .gitignore - Ownership boundary — this command owns documentation artifacts (
README.md,<resolved docs dir>/*, and the Documentation section inAGENTS.md), not the roadmap, RULES.md, or research artifacts resolved from config
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.

