agentleFS
yu-iskwyu-iskw/coding-agent-fabric/.claude/skills/sync-readme/SKILL.md

sync-readme

Skill1 starsChanged 9 months agoApache-2.0View on GitHub

Synchronize technical sections in README.md and CONTRIBUTING.md with the actual project state.

3 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

9 rules. About 0 are common, 6 are distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈6

    Distinctive · estimate

    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. Distinctive:

    Use this skill to keep the technical documentation (README.md and CONTRIBUTING.md) up-to-date with the codebase.

    line 9
  2. Distinctive:

    After adding or renaming packages in the monorepo.

    line 13
  3. Very specific:

    After adding or modifying root scripts in package.json.

    line 14
  4. Distinctive:

    After adding or changing CLI commands or subcommands.

    line 15
  5. Distinctive:

    After significant architectural changes or package relationship updates.

    line 16
  6. Very specific:

    Scripts: Read the root package.json to see available scripts.

    line 23
  7. Very specific:

    Commands: Read CLI command definitions in packages/cli/src/commands/ to identify commands and subcommands.

    line 24
  8. Distinctive:

    Update the content between the markers based on your observations:

    line 34
  9. Distinctive:

    Ensure that you keep the markers themselves and only update the content between them.

    line 41

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “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

sync-readme

Use this skill to keep the technical documentation (README.md and CONTRIBUTING.md) up-to-date with the codebase.

When to Use

  • After adding or renaming packages in the monorepo.
  • After adding or modifying root scripts in package.json.
  • After adding or changing CLI commands or subcommands.
  • After significant architectural changes or package relationship updates.

Workflow

  1. Analyze Project State: Directly observe the project to gather the necessary information:
    • Layout: List directories in packages/ and packages/plugins/ to see the monorepo structure.
    • Scripts: Read the root package.json to see available scripts.
    • Commands: Read CLI command definitions in packages/cli/src/commands/ to identify commands and subcommands.
  2. Locate Sync Markers: Find the following markers in the documentation files:
    • <!-- SYNC:LAYOUT --> ... <!-- /SYNC:LAYOUT -->
    • <!-- SYNC:SCRIPTS --> ... <!-- /SYNC:SCRIPTS -->
    • <!-- SYNC:COMMANDS --> ... <!-- /SYNC:COMMANDS -->
    • <!-- SYNC:ARCHITECTURE --> ... <!-- /SYNC:ARCHITECTURE -->
  3. Update Content: Update the content between the markers based on your observations:
    • Layout -> SYNC:LAYOUT (usually in CONTRIBUTING.md): List packages and their descriptions from their respective package.json files.
    • Scripts -> SYNC:SCRIPTS (usually in CONTRIBUTING.md): Format scripts from the root package.json as a bulleted list.
    • Commands -> SYNC:COMMANDS (usually in README.md): Format CLI commands as markdown headings with bash examples.
    • Architecture -> SYNC:ARCHITECTURE (usually in CONTRIBUTING.md): Review and update the Mermaid diagram if package relationships or key components have changed.
  4. Preserve Formatting: Ensure that you keep the markers themselves and only update the content between them. Use appropriate markdown blocks (code blocks, lists) that match the existing documentation style.

References

  • See references/mapping.md for detailed mapping between metadata and doc sections.

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.