agentleFS
thefrederiksenthefrederiksen/devthrottle/.claude/skills/update-docs/skill.md

update-docs

Skill110 starsChanged 4 days agoMITView on GitHub

Update public documentation in docs/public/ when features or tools change. Triggers on "/update-docs", "update docs", "update documentation".

87 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use get-pr-reviews, push-everything and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • saffron-healthSkill

    get-pr-reviews

    Get nicely formatted output of the last review comments on a PR. Used internally by other skills.

    Also in 3 projects that use this

  • saffron-healthSkill

    push-everything

    Stage ALL changes in the repository (not just session changes), commit, and push. Use when you need to commit all pending changes.

    Also in 3 projects that use this

  • TheKREATORSSkill

    instinct-export

    Export instincts from project/global scope to a file

    Also in 3 projects that use this

  • TheKREATORSSkill

    instinct-import

    Import instincts from file or URL into project/global scope

    Also in 3 projects that use this

  • NVIDIASkill

    generate-spec

    Produce a feature specification covering API changes, backward compatibility, cross-language impact, performance, and a file-level change plan. Use when designing a new feature, planning a significant change, or the user asks to spec something out.

    Also in 3 projects that use this

  • belokonmSkill

    fullstack-developer

    End-to-end feature expert specializing in frontend-backend integration, system architecture, and complete application development

    Also in 4 projects that use this

  • +1 more from saffron-health
  • +1 more from TheKREATORS

The file

Show its rules and text

We split this skill into the rules it gives an agent

20 rules. 0 are common, 11 are distinctive, and 9 are very specific to this project.

  • 0

    Common

    Most of the 80 edited versions we read keep these.

  • 11

    Distinctive

    This author's own choices. Worth a look.

  • 9

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Keep public-facing documentation (docs/public/) in sync with code changes.

    line 8
  2. Distinctive:

    Use Bash to gather context:

    line 23
  3. Very specific:

    Use the Read tool to read docs/public/index.json to understand:

    line 35
  4. Distinctive:

    Do NOT guess at command syntax or options.

    line 62
  5. Distinctive:

    Use the Read tool to read the current content

    line 68
  6. Distinctive:

    Use the Edit tool to make targeted changes (preferred) or Write tool for new files

    line 69
  7. Distinctive:

    Follow these writing guidelines:

    line 70
  8. Distinctive:

    Start with what the tool/feature does (one sentence)

    line 75
  9. Distinctive:

    Add notes or warnings at the end

    line 78
  10. Distinctive:

    Code examples: Always show real, working commands.

    line 80
  11. Very specific:

    If new pages were created, add them to docs/public/index.json:

    line 86
  12. Very specific:

    Read the current index.json

    line 88
  13. Distinctive:

    Add the new page entry to the appropriate category

    line 89
  14. Distinctive:

    If a new category is needed, add the category with its pages

    line 90
  15. Very specific:

    Write the updated index.json

    line 91
  16. Very specific:

    Every file path in index.json points to an actual file in docs/public/

    line 94
  17. Very specific:

    Every file in docs/public/ (except index.json) has an entry in index.json

    line 95
  18. Very specific:

    When /review-code detects missing documentation and suggests running /update-docs:

    line 144
  19. Very specific:

    After completion, user can re-run /review-code to verify

    line 148
  20. Distinctive:

    All documentation is served via raw.githubusercontent.com -- no build step needed

    line 155

“Common” is measured: kept by at least 6 in 10 of the 80 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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
skill.md

Update Documentation

Keep public-facing documentation (docs/public/) in sync with code changes. This skill determines what changed, identifies which doc pages need updating, writes or updates the markdown files, and updates the manifest.

Quick Reference

ActionDescription
Detect changesRead git diff to determine what changed
Identify doc pagesMatch changes to existing or new doc pages
Write/update docsCreate or edit markdown files in docs/public/
Update manifestAdd new pages to docs/public/index.json if needed

Workflow

STEP 1: Determine What Changed

Use Bash to gather context:

git diff --cached --name-only
git diff --name-only
git status

Also check for a user-provided description of what changed. If the user says "I added cc-newtools" or "I changed the session manager", use that as primary context.

STEP 2: Read Current Documentation State

Use the Read tool to read docs/public/index.json to understand:

  • What categories exist
  • What pages exist
  • What file paths are referenced

STEP 3: Classify the Change

Determine which type of documentation update is needed:

Change TypeDoc Action
New tool added (cc-*)Add entry to tools/overview.md, optionally create dedicated tool page
New feature in existing toolUpdate the relevant tool section in tools/overview.md
New skill addedUpdate tools/overview.md or create a new page
Architecture changeUpdate getting-started/introduction.md if it affects the overview
Installation changeUpdate getting-started/installation.md
Workflow changeUpdate getting-started/quick-start.md
New category of docs neededCreate new directory and pages, update index.json

STEP 4: Read Source Material

For tool changes, read the tool's README or help output to get accurate command syntax and options. Key source files:

  • docs/CC_TOOLS.md -- master reference for all tool documentation
  • Tool README files in tools/ subdirectories
  • Help output from the tool itself (tool-name --help)

Do NOT guess at command syntax or options. Read the actual source.

STEP 5: Write Documentation Updates

For each file that needs updating:

  1. Use the Read tool to read the current content
  2. Use the Edit tool to make targeted changes (preferred) or Write tool for new files
  3. Follow these writing guidelines:

Tone: Clear, direct, practical. Write for someone who wants to get things done, not learn theory.

Structure:

  • Start with what the tool/feature does (one sentence)
  • Show the most common usage immediately (code block)
  • List options in a table
  • Add notes or warnings at the end

Code examples: Always show real, working commands. Include the most common use case first.

No filler: Skip "In this section you will learn..." phrasing. Get to the point.

STEP 6: Update index.json (if needed)

If new pages were created, add them to docs/public/index.json:

  1. Read the current index.json
  2. Add the new page entry to the appropriate category
  3. If a new category is needed, add the category with its pages
  4. Write the updated index.json

Validate that:

  • Every file path in index.json points to an actual file in docs/public/
  • Every file in docs/public/ (except index.json) has an entry in index.json
  • Category and page IDs are lowercase kebab-case
  • Page titles are clear and concise

STEP 7: Report Changes

Present a summary to the user:

Documentation Update Complete

Files updated:
- docs/public/tools/overview.md (added cc-newtool section)

Files created:
- (none)

Manifest changes:
- (none)

Status: DONE

Examples

Example 1: New Tool Added

User: /update-docs -- I added cc-calendar tool

Agent:

  1. Reads git diff to find cc-calendar related changes
  2. Reads docs/CC_TOOLS.md for the tool's documentation
  3. Reads docs/public/tools/overview.md
  4. Adds cc-calendar entry to the Quick Reference table
  5. Adds a new section for cc-calendar with usage examples
  6. Reports what was changed

Example 2: Feature Added to Existing Tool

User: /update-docs -- added chart support to cc-excel

Agent:

  1. Reads git diff to understand the chart feature
  2. Reads docs/public/tools/overview.md
  3. Updates the cc-excel section to include chart commands
  4. Reports what was changed

Example 3: Called by /review-code

When /review-code detects missing documentation and suggests running /update-docs:

  1. Uses the review output to understand what's missing
  2. Follows the same workflow above
  3. After completion, user can re-run /review-code to verify

Notes

  • This skill only modifies files in docs/public/
  • It never modifies internal docs like docs/CodingStyle.md or docs/VisualStyle.md
  • The manifest at docs/public/index.json is consumed by the project website at runtime
  • All documentation is served via raw.githubusercontent.com -- no build step needed

Skill Version: 1.0 Last Updated: 2026-03-01

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.