Maintaining agent docs
Skill w7-mgfcode/polymind-constellation/skills/maintaining-agent-docs
Creates, audits, and safely updates canonical repository instructions, thin provider shims, human-facing README content, and optional llms.txt indexes. Uses repository evidence, managed regions, deterministic validation, a shown diff, and explicit approval before writes. Use for AGENTS.md maintenance, agent-ready repository setup, instruction drift, nested instruction scopes, or provider shim alignment. Do not overwrite human-authored content, duplicate shared policy into provider files, or create llms.txt without a docs site.From its SKILL.md
npx -y skills add w7-mgfcode/polymind-constellation --skill maintaining-agent-docsAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
2 things to look at
- 16 days oldThe repository was created 16 days ago. New is not bad, but a brand new repository carrying a familiar-sounding name is the shape a typosquat arrives in, and there has been no time for anyone else to find a problem with it.
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
What its file declares
Copied from the file, not written here
The file declares its own license as Apache-2.0. That is the author’s claim about this one file, and it is not the same thing as the license GitHub reports for the repository, which is listed with the other numbers below.
SKILL.md
4.2 KB, 739 tokens by cl100k_base, as published. Nobody here has run it
Maintaining Agent Docs
Keep repository guidance accurate without turning provider entrypoints into
competing rulebooks. Treat AGENTS.md as the shared operating contract,
provider files as selected adapters, README.md as human orientation, and
llms.txt as an optional docs-site index.
Procedure
-
Scan the repository before proposing content. Find root and nested instruction files, manifests, lockfiles, build definitions, CI configuration, and durable docs. Record dirty target files and preserve nearest-scope rules.
-
Extract commands and constraints from repository evidence. Cite each claimed command or convention by file and line. Mark an unknown as
TODO: verifyin the proposal; never invent an executable command. -
Select only the provider profiles the user or repository requires. Load provider-shims.md for current prerequisites, behavior, and tests. Keep provider facts out of shared policy.
-
Propose changes inside uniquely named managed regions:
<!-- BEGIN maintaining-agent-docs:root --> ...generated content... <!-- END maintaining-agent-docs:root -->Never nest regions, reuse an identifier in one file, or rewrite text outside a region. For unmanaged files, propose an insertion point instead of a full replacement.
-
Run the package validator in read-only mode:
python skills/maintaining-agent-docs/scripts/validate.py --check --strict . # Equivalent framework entrypoint: polymind validate-agent-docs --check --strict .Add
--diffto preview duplicate-block removals. Use--check-remoteonly after network access is selected and approved. -
Show a unified diff and rollback method for every proposed mutation. Get explicit approval for the exact file list and diff.
-
Back up or otherwise make existing targets recoverable, apply only the approved changes, rerun the validator, and report evidence.
Validation contract
The validator is non-mutating. It checks real YAML frontmatter, marker ordering, nesting and uniqueness, normalized policy duplication with a configurable threshold, local-link containment, optional remote links, redacted secret findings with explicit allowlists, provider import rules, nested scopes, and basic instruction completeness.
--checkperforms the default read-only check.--diffshows advisory diffs without writing.--strictturns warnings into a failing exit code.--secret-allowlist FILEaccepts SHA-256 digests of known fixture values, one digest per line. Never place raw secrets in an allowlist.
Hard guardrails
- Preserve human-authored content and nested instruction scopes.
- Keep shared policy in one canonical file; adapters may add runtime-only facts.
- Reject local links that are absolute, traverse above the repository, or resolve outside it through a symlink.
- Redact possible secrets in every diagnostic.
- Generate
llms.txtonly for a published documentation site. - Separate checking from writing. Never interpret validator success as approval.
Load detailed references only when their file type is in scope:
- agents-md.md for canonical and nested instructions.
- provider-shims.md for selected provider adapters.
- readme.md for human-facing documentation.
- llms-txt.md for an approved docs-site index.
What ships with it: 6 files
25.8 KB alongside SKILL.md, 1 of them executable
references/
- agents-md.md1.7 KB
- llms-txt.md1.4 KB
- provider-shims.md3.0 KB
- readme.md1.2 KB
scripts/
- validate.pyruns17.5 KB
- skill.toml1.1 KB
Gives 0 of the 12 instructions most docs writing skills give in 739 tokens
Counted across 1,637 of the 3,044 authors here whose files we hold, read 2026-08-07
- Announce the skill at startin 54 of 1637, across 26 files
- Convert legacy doc files before editingin 45 of 1637, across 7 files
- Predict questions readers might askin 42 of 1637, across 4 files
- Generate clarifying questions for initial contextin 42 of 1637, across 3 files
- Create document scaffold with placeholder textin 42 of 1637, across 3 files
- Brainstorm content options for each sectionin 42 of 1637, across 3 files
- Test the document with a fresh context-less instancein 42 of 1637, across 3 files
- Include exact file paths in every taskin 42 of 1637, across 15 files
- Ask interview questions one at a timein 42 of 1637, across 27 files
- Apply surgical edits during refinementin 41 of 1637, across 2 files
- Offer structured workflow or freeformin 40 of 1637, across 1 file
- Ask for document meta-contextin 40 of 1637, across 2 files
Said here and by no other author read
- scan repository evidence before proposing content
- load provider shims for required provider profiles
- keep provider facts out of shared policy
- wrap proposed changes in named managed regions
- run validator in read-only mode before proposing changes
- show a unified diff and rollback method for every mutation
Grouped from the skills themselves: near-identical wordings counted once, and counted by distinct author, so one author publishing three of these counts once. Length counted with cl100k_base; the agent that loads this file may tokenize it differently.