agentleFS
ilyaevilyaev/glotti/.agents/skills/update-docs/SKILL.md

update-docs

Skill1 starsChanged 9 months agoMITView on GitHub

Analyzes code changes from the current session and updates relevant documentation and specification files to ensure they stay synchronized with the codebase.

92 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

  • GoogleSkill

    pr-creator

    Also in 6 projects that use this

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

The file

We split this skill into the rules it gives an agent

7 rules. 0 are common, 4 are distinctive, and 3 are very specific to this project.

  • 0

    Common

    Most of the 87 edited versions we read keep these.

  • 4

    Distinctive

    This author's own choices. Worth a look.

  • 3

    Very specific

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

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

    Architecture & Logic: If the *behavior* or *structure* changed, update the corresponding specs/ file.

    line 25
  2. Very specific:

    New Features: If a new feature was added, check specs/implementation_plan.md and mark it as completed or update the details.

    line 26
  3. Very specific:

    Todo List: Update specs/todo.md. Mark any completed items with [x].

    line 27
  4. Distinctive:

    Deprecated Features: If code was removed, remove or mark as deprecated in the docs.

    line 28
  5. Distinctive:

    APIs: Update endpoint descriptions if request/response shapes changed.

    line 29
  6. Distinctive:

    Ensure that the updated documentation doesn't contradict other parts of the system.

    line 32
  7. Distinctive:

    Keep the documentation concise but accurate.

    line 33

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

Purpose

This skill is designed to be run at the end of a coding session. Its goal is to prevent documentation drift by ensuring that specs/*.md and docs/*.md files accurately reflect the current state of the code.

Workflow

  1. Analyze Changes:
    • Review the code changes made during the session. If context is lost, use get_changed_files or git status to identify modified files.
    • Identify logical groups of changes (e.g., "Refactored API", "Added new component", "Changed WebSocket protocol").
  2. Identify Affected Docs:
    • Map the changed code to relevant documentation files.
    • Example: Changes to server/ws-handler.ts likely affect specs/voice_agent_websockets.md.
    • Example: Changes to client/src/components/Report.tsx likely affect specs/reports.md.
    • Example: Database schema changes affect specs/architecture.md.
  3. Update Strategy:
    • Architecture & Logic: If the behavior or structure changed, update the corresponding specs/ file. Code is the source of truth; specs describe the intent and design.
    • New Features: If a new feature was added, check specs/implementation_plan.md and mark it as completed or update the details.
    • Todo List: Update specs/todo.md. Mark any completed items with [x]. If a task was completed during the session but wasn't on the list, add it to the appropriate section and mark it as done immediately.
    • Deprecated Features: If code was removed, remove or mark as deprecated in the docs.
    • APIs: Update endpoint descriptions if request/response shapes changed.
  4. Verification:
    • Ensure that the updated documentation doesn't contradict other parts of the system.
    • Keep the documentation concise but accurate. Avoid pasting large blocks of code; instead, describe the interface and behavior.

Common Targets

  • specs/implementation_plan.md: Always check this to update progress.
  • specs/architecture.md: For structural changes or new services.
  • specs/voice_agent_websockets.md: For any changes to real-time communication.
  • specs/api_*.md: For REST API changes.

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.