agentleFS
pigweed-projectpigweed-project/pigweed/.agents/skills/docs/SKILL.md

docs

Skill561 starsChanged 16 days agoApache-2.0View on GitHub

Use for ALL documentation-related workflows: rst style guide, module metadata and categories, changelog updates, C/C++ API reference (Doxygen)

165 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use import-memory, perf 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.
  • amirbironSkill

    import-memory

    Import a memory export from another AI assistant into Claude's memory — conversationally, additively, and with the content treated as data.

    Also in 3 projects that use this

  • MicrosoftSkill

    perf

    Speed and memory performance rules for Rust crates, the Node addon, webui-framework, and webui-delivery.

    Also in 4 projects that use this

  • diego-tobalinaSkill

    build-fix

    Fix build and compilation errors systematically. Run when build fails.

    Also in 3 projects that use this

  • JkudjoSkill

    incident

    Production incident response — structured triage, hypothesis tree, safe remediation, incident record

    Also in 4 projects that use this

  • vbrevikSkill

    work

    Use when the user says 'plan', 'todo', 'copy plan', 'append plan', 'resume plan', 'priorities', or 'what's next'.

    Also in 7 projects that use this

  • mbwsimsSkill

    impact

    This skill should be used when the user asks to "check the impact", "what will break if I change this", "blast radius", "impact analysis", "what depends on this", "who imports this", "is it safe to change this", mentions "/impact", or wants to understand the consequences of modifying a specific file or function before making changes.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

5 rules. 0 are common, 5 are distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 129 edited versions we read keep these.

  • 5

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    If the user's main goal is not docs-related and there is still work to be done, STOP HERE.

    line 17
  2. Distinctive:

    Run ALL workflows that are relevant to the user's main goal.

    line 33
  3. Distinctive:

    All workflows follow this pattern:

    line 47
  4. Distinctive:

    Do not waste time on reST formatting for first draft content that is likely to change a lot, unless required as a completion step by a …

    line 68
  5. Distinctive:

    When the main goal requires only minor docs updates, do not touch reST that's unrelated to the main goal.

    line 70

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

Docs

Pigweed has many docs automation workflows. Rather than list them all here, this skill helps agents decide which workflows are relevant and then routes them to the full instructions.

Usage

  1. Summarize the user's main goal in a few sentences.
  2. If the user's main goal is not docs-related and there is still work to be done, STOP HERE.

    [!WARNING]

    The docs workflows may reduce your ability to solve the user's main goal because they create high risk of context pollution.

    Examples of WIP main goals unrelated to docs:

    • The root cause of a bug has not yet been found.
    • The user is exploring a new API and it's not yet clear that they're happy with the design.
    • Software architecture or system design research.
    • Code implementations or refactors and tests are still failing.
  3. Run ALL workflows that are relevant to the user's main goal.

Workflows

Each of the sections below represents a workflow. Summary:

  • rst: Align with Pigweed's reStructuredText (reST) style guide.
  • metadata: Manage Pigweed module metadata and documentation categories (//<module>/module.toml and //docs/common/metadata/categories.toml).
  • changelog: Update the Pigweed changelog.
  • doxygen: Create C/C++ API reference content.
  • security: Annotate a vulernability false positive.
  • bulletin: Create a security bulletin for a fixed vulnerability.

All workflows follow this pattern:

  • Triggers: Hints about when to run the workflow. Values in double quotes represent example prompts.
  • Guards: Warnings about when to NOT run the workflow.
  • Path: The path to the full instructions.

rst

Triggers:

  • *.rst files are in context.
  • "format the rst"
  • "rest formatting"
  • The user is creating a significant amount of new documentation and has asked for help getting it ready to publish.
  • A workflow (such as bulletin) explicitly requires formatting of generated RST files

Guards:

  • Do not waste time on reST formatting for first draft content that is likely to change a lot, unless required as a completion step by a workflow.
  • When the main goal requires only minor docs updates, do not touch reST that's unrelated to the main goal.

Path: //docs/agents/rst/AGENTS.md

metadata

Triggers:

  • module.toml or categories.toml is in context.
  • A [ERROR] Docs Categorization Failed build error occurs.
  • The user is adding a new Pigweed module or updating module categories/metadata.
  • "update the module categories"
  • "categorize this module"

Guards:

  • "what modules are in the async category?"
  • "update the seed_metadata extension"
  • "add metadata to this packet"
  • Editing a module's documentation in //pw_*/docs.rst without changing its metadata or categories in //<module>/module.toml or //docs/common/metadata/categories.toml.

Path: //docs/agents/metadata/AGENTS.md

changelog

Triggers:

  • "create a changelog update for mar 2026"

Guards:

  • "summarize the rust 1.95 changelog"
  • "what is the changelog process for the new API we just created?"
  • "analyze this codebase in relation to the c++ 2026 changelog"

Path: //docs/agents/changelog/AGENTS.md

doxygen

Triggers:

  • A target in //docs/doxygen has failed to build
  • The user is attempting to create new C/C++ API reference content
  • The user is adding code examples to Doxygen comments

Guards:

  • "search the doxygen docs"

Path: //docs/agents/doxygen/AGENTS.md

security

Triggers:

  • "add a security note to MySymbol in my_file.h"

Guards:

  • "add a comment to MySymbol"
  • "analyze this security note"

Path: //docs/agents/security/AGENTS.md

bulletin

Triggers:

  • "create a security bulletin"
  • "update the security bulletin"

Guards:

  • "what CL fixed b/8675309"
  • "search the security bulletins"

Path: //docs/agents/bulletin/AGENTS.md

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.