Source profileQuality 94/100Review permissions

nexus-substrate/nexus-agents/skills/documentation-management/SKILL.md

documentation-management

Operating manual for documentation work in nexus-agents. Use when updating docs, adding new docs, changing doc pipeline, or troubleshooting doc issues. Triggers on "update docs", "add documentation", "doc pipeline".

Source repository stars
18
Declared platforms
1
Static risk flags
2
Last source update
2026-08-25
Source checked
2026-08-25

Decision brief

What it does: where it fits

/ markers (2269, 2026-04-27). Adds a second description map (READMETOOLDESCRIPTIONS) for short, scannable entries (the README audience differs from CLAUDE.md), with fallback + warning when a new tool is missing a short variant. Soft-skips when README has no markers so the script…

Best for

  • Use when updating docs, adding new docs, changing doc pipeline, or troubleshooting doc issues.

Not for

  • "docs-content check failed"
  • "Link check failed"

Compatibility matrix

Platform support, with evidence labels

PlatformStatusEvidenceWhat to check
CodexNot declaredNo explicit evidencePortability before use
Claude CodeNot declaredNo explicit evidencePortability before use
CursorDeclaredSource recordInstall path and trigger
Gemini CLINot declaredNo explicit evidencePortability before use
Open the compatibility checker

Installation

Inspect first. Install second.

The source command is displayed only when detected. A safe inspection prompt is always available so your agent can explain every action before execution.

Source-detected install commandSource
npx skills add https://github.com/nexus-substrate/nexus-agents --skill "skills/documentation-management"
Safe inspection promptEditorial

Inspect the Agent Skill "documentation-management" from https://github.com/nexus-substrate/nexus-agents/blob/d7d6eeb0b286dd38ab8ede233a47d92326399097/skills/documentation-management/SKILL.md at commit d7d6eeb0b286dd38ab8ede233a47d92326399097. List every install step, command, network request, credential, file read/write, external action, and rollback step. Explain whether it fits my task. Do not install or execute anything until I approve.

Workflow

What the source asks the agent to do

  1. 01

    Cursor Pattern (incremental review)

    Store the last-reviewed commit SHA in .doc-review-cursor (gitignored — it's local audit state, not project state). On each audit run:

    Store the last-reviewed commit SHA in .doc-review-cursor (gitignored — it's local audit state, not project state). On each audit run:After committing the audit fixes:Without the cursor, every audit re-reads the whole history → audits get skipped. With it, audits stay incremental and cheap.
  2. 02

    Verification — Documentation changes

    [ ] Every public-API change has a documentation update in the same PR

    [ ] Every public-API change has a documentation update in the same PR[ ] Significant architectural decisions have an ADR (or reference an existing one)[ ] Auto-generated docs regenerated via the pipeline scripts after source changes
  3. 03

    Fast Path: Common Tasks

    Review the “Fast Path: Common Tasks” section in the pinned source before continuing.

    Review and apply the “Fast Path: Common Tasks” source section.
  4. 04

    Update Documentation Content

    Review the “Update Documentation Content” section in the pinned source before continuing.

    Review and apply the “Update Documentation Content” source section.
  5. 05

    1. Edit canonical source

    edit docs/architecture/MEMORYSYSTEM.md or relevant file

    edit docs/architecture/MEMORYSYSTEM.md or relevant file

Permission review

Static risk signals and limitations

Runs scripts

medium · line 111

The documentation asks the agent to run terminal commands or scripts.

npx tsx scripts/check-docs-indexed.ts

Writes files

medium · line 116

The documentation asks the agent to create, modify, or delete local files.

Create file in appropriate `docs/` directory

Runs scripts

medium · line 132

The documentation asks the agent to run terminal commands or scripts.

npx tsx scripts/check-docs-indexed.ts

Writes files

medium · line 339

The documentation asks the agent to create, modify, or delete local files.

For our auto-generated tables (CLAUDE.md MCP tools, `capabilities.md`, `docs/interfaces/agent.md`), drift is a generation-script bug, not a doc edit — file an issue against the script instead of editing the rendered output.

Evidence record

Why each signal appears

EvidenceSourceComputedTestedEditorial
SignalValueEvidence typeMeaning
Quality score94/100ComputedDocumentation, specificity, maintenance, and trust rules
Repository stars18SourceRepository attention, not individual Skill quality
Compatibility1 platformsSourceDeclared in the catalog source record
Usage guideautomated source guideEditorialGenerated or reviewed according to the visible evidence level

Pinned source

Provenance and original SKILL.md

Repository
nexus-substrate/nexus-agents
Skill path
skills/documentation-management/SKILL.md
Commit
d7d6eeb0b286dd38ab8ede233a47d92326399097
License
MIT
Collected
2026-08-25
Default branch
main
View the original SKILL.md

Documentation Management Skill

Full specification: docops-spec.md


Fast Path: Common Tasks

Update Documentation Content

# 1. Edit canonical source
edit docs/architecture/MEMORY_SYSTEM.md  # or relevant file

# 2. Verify docs are indexed
npx tsx scripts/check-docs-indexed.ts

Add New Document

  1. Create file in appropriate docs/ directory
  2. REQUIRED: Add YAML frontmatter (title, description, tier, keywords, related_files)
  3. REQUIRED: Add entry to docs/README.md
  4. Commit and push

Change Doc Pipeline

  1. Edit pipeline script/config
  2. REQUIRED: Update docs/ops/docops-spec.md
  3. REQUIRED: Update this skill (.claude/skills/documentation-management.md)
  4. Run all checks (see Verification below)
  5. Commit and push

Verify Pipeline Health

npx tsx scripts/check-docs-indexed.ts
npx tsx scripts/generate-repo-index.ts --check
npx tsx scripts/inject-governance.ts check

Core Concepts

Canonical Sources

SourcePurpose
docs/README.mdHuman-readable index (SINGLE SOURCE OF TRUTH)
docs/INDEX.yamlMachine-parseable index
docs/**/*.mdCanonical documentation
Root *.mdProject entry points

Generated Outputs

OutputGenerated ByFrom
docs/interfaces/agent.mdgenerate-docs-content.tscore/types/agent.ts
docs/design/components.mdgenerate-docs-content.tssrc/ module scan
docs/ops/docs-inventory.mdgenerate-docs-content.tsADR + MCP tool scan
docs/reference/capabilities.mdgenerate-repo-index.tsSource code
docs/reference/tools/*.mdgenerate-tool-reference.tsTOOL_MANIFEST + *InputSchema
CLAUDE.md tool indexinject-governance.tsMCP tool files

Tier System

  • Tier 1 (Essential): README, CLAUDE.md, QUICK_START, TROUBLESHOOTING
  • Tier 2 (Reference): Hub documents (architecture/README.md, etc.)
  • Tier 3 (Detail): Deep-dive documents, ADRs, proposals

Pipeline Scripts

generate-docs-content.ts

Auto-generates documentation sections that are derivable from source code: the AgentRole interface, a module inventory, and the ADR / MCP tool counts. Prevents drift by reading directly from the source of truth.

npx tsx scripts/generate-docs-content.ts       # Generate all
npx tsx scripts/generate-docs-content.ts --check # CI validation

generate-repo-index.ts

Generates capability index from source code. MCP tools are discovered by parsing the canonical tools: [...] return array in mcp/tools/index.ts.

npx tsx scripts/generate-repo-index.ts       # Generate index
npx tsx scripts/generate-repo-index.ts --check # CI validation

inject-governance.ts

Injects MCP tool table into CLAUDE.md. Tool descriptions are defined in the TOOL_DESCRIPTIONS map — add an entry there when registering a new MCP tool.

npx tsx scripts/inject-governance.ts inject  # Update CLAUDE.md
npx tsx scripts/inject-governance.ts check   # CI validation

CI Validation

docs-check.yml jobs

The pipeline runs a family of jobs covering: TypeDoc freshness, capabilities.md regeneration, link validation, docs coverage, secrets scanning, DocOps skill sync, canonical-index enforcement, markdown lint, spell check, skills/index.yaml freshness, agents/index.yaml + gap-coverage check, and governance drift. Blocking-vs-warning status is declared per job in the workflow file.


Enforcement Rules

Rule 1: Canonical Index Required

All documentation MUST be indexed in docs/README.md.

Rule 2: No Parallel Indexes

docs/README.md is the ONLY permitted documentation index.

Rule 3: Generated Files Must Match Source

CI fails if generated files drift from canonical sources.

Rule 4: DocOps Changes Require Skill Update

Changes to pipeline files require updating this skill and docs/ops/docops-spec.md.

Pipeline files:

  • scripts/generate-docs-content.ts
  • scripts/generate-repo-index.ts
  • scripts/inject-governance.ts
  • .github/workflows/docs-check.yml

Troubleshooting

"docs-content check failed"

npx tsx scripts/generate-docs-content.ts
git add docs/interfaces/agent.md docs/design/components.md docs/ops/docs-inventory.md
git commit -m "docs: regenerate source-derived docs"

"Link check failed"

  1. Run npx lychee . --config lychee.toml to identify broken links
  2. Fix links in canonical source

"CI keeps failing on docs"

# Run full validation suite locally
pnpm lint
pnpm typecheck
npx tsx scripts/generate-docs-content.ts --check
npx tsx scripts/generate-repo-index.ts --check
npx tsx scripts/inject-governance.ts check

Quality Checklist

Before committing documentation changes:

  • File indexed in docs/README.md
  • npx tsx scripts/generate-docs-content.ts --check passes (if types/module structure changed)
  • npx tsx scripts/generate-repo-index.ts --check passes (if MCP tools added/renamed)
  • Links work: npx lychee . --config lychee.toml
  • No secrets in content

Periodic Drift Audit

Adapted from paperclipai/paperclip doc-maintenance skill. Triggers: weekly cadence, post-release, after a major merge, or on explicit request ("audit docs", "doc drift").

Targets

User-facing docs that get stale fastest as the codebase moves:

  • README.md — features table, quickstart, prerequisites
  • docs/README.md — canonical doc index
  • docs/getting-started/INSTALLATION.md — install commands, Node/pnpm versions
  • docs/getting-started/CONFIGURATION.md — env var table, config schema
  • CLAUDE.md — Canonical Paths table, MCP Tools table (auto-generated, but check the non-auto sections)

Cursor Pattern (incremental review)

Store the last-reviewed commit SHA in .doc-review-cursor (gitignored — it's local audit state, not project state). On each audit run:

LAST_SHA=$(cat .doc-review-cursor 2>/dev/null || echo "HEAD~200")
git log "$LAST_SHA"..HEAD --oneline --no-merges > /tmp/audit-window.log

After committing the audit fixes:

git rev-parse HEAD > .doc-review-cursor

Without the cursor, every audit re-reads the whole history → audits get skipped. With it, audits stay incremental and cheap.

Commit Classification

From the audit window, only these commit prefixes warrant a doc check:

PrefixAction
feat: / feat(...):Check feature tables, README highlights, capability docs
fix: containing breaking / API-removalCheck API reference, migration notes
New top-level src/ directoryCheck architecture overview, canonical paths
chore(deps): major bumpsCheck prerequisites + compat tables

Ignore: refactor, test, chore(ci), docs, style — they don't shift user-facing surface.

What to Look For

Run the audit through this lens:

Drift classSignal
False negativeShipped capability missing from feature/MCP tool/expert tables. Resolved design questions still marked TBD. Removed adapters/skills still listed.
False positive"Coming soon" / "planned" features that have shipped. Cancelled items still on roadmap. Capability claims that contradict current implementation.
Quickstart breakagenpx/pnpm commands that don't work. Prerequisites pinning unsupported versions. Clone URL drift. Required env vars unmentioned.
Feature-table drift## MCP Tools Reference count mismatch. Adapter "Works with" table missing recently-added CLI. Skill index missing a new skill.

For our auto-generated tables (CLAUDE.md MCP tools, capabilities.md, docs/interfaces/agent.md), drift is a generation-script bug, not a doc edit — file an issue against the script instead of editing the rendered output.

Audit-PR Discipline

  • Branch: docs/audit-$(date +%Y%m%d)
  • Commit message lists fixes + the source PR/commit that triggered each
  • Factual fixes only — do NOT bundle style refactors, link-checker autofixes, or formatting passes. Style/refactor PRs are separate; mixing them defeats the audit's signal-to-noise.
  • If a doc needs more than drift fixes (e.g., a section is structurally wrong), open a follow-up issue rather than expanding the audit PR

Out of Scope

  • Auto-generated tables (handled by scripts/inject-governance.ts, scripts/generate-docs-content.ts, scripts/generate-repo-index.ts, etc.) — see Pipeline section above
  • Style/voice/markdown formatting — orthogonal, separate PRs
  • Adding new docs — separate workflow; this audit only fixes drift in existing docs

Architecture Decision Records (ADRs)

ADRs capture the why behind significant technical decisions. Code shows what was built; ADRs explain why this way and what alternatives were rejected. They're the highest-leverage documentation in the repo for onboarding (humans and agents) and for evaluating future changes.

ADRs live in docs/adr/ with sequential numbering: 0001-foo.md, 0002-bar.md, …

When to write an ADR

  • Choosing a framework, library, or major dependency (consensus_vote candidate)
  • Designing a data model or schema
  • Selecting an authentication, voting, or routing strategy
  • Deciding on a public-API shape (REST, MCP tool, CLI command)
  • Any decision expensive to reverse — that's the threshold

ADR template

# ADR-NNNN: <decision in present tense>

## Status

Proposed | Accepted | Superseded by ADR-MMMM | Deprecated

## Date

YYYY-MM-DD

## Context

What problem are we solving? What constraints (technical, organizational, time-bound) apply?
Cite the issue, vote, or incident that prompted the decision.

## Decision

The chosen approach, in 1-3 sentences.

## Alternatives Considered

Each as its own subsection. Pros, cons, and **why rejected**. Don't skip — the rejected
alternatives are how future readers understand the trade-off space.

## Consequences

Positive AND negative outcomes. What new constraints does this create?
What follow-up work falls out of this decision?

ADR lifecycle

PROPOSED → ACCEPTED → (SUPERSEDED-BY-NNNN | DEPRECATED)
  • Don't delete old ADRs. They're historical context. A superseded ADR + its replacement together tell the story of why the system evolved.
  • When a decision changes, write a new ADR that references and supersedes the old one. Update the old one's Status: line to Superseded by ADR-NNNN.
  • ADRs are immutable after Accepted in spirit — fix typos, but don't rewrite the substance. New thinking goes in a new ADR.

When NOT to write an ADR

  • Reversible decisions (small refactor choices, naming style nits)
  • Mechanical changes (dependency bump, lockfile update)
  • Decisions already captured in a higher-level doc (CLAUDE.md, .rules/) — reference, don't duplicate

Anti-rationalization — Documentation

ExcuseCounter
"The code is self-documenting"Code says how, not why. The why-this-not-that lives nowhere if not in an ADR or doc comment.
"I'll document it later"Later never comes. The context decays within days; what felt obvious now will be a mystery to next-quarter-you. Document at decision time.
"We'll update the docs in the next release"Drift compounds. By the next release, the doc says one thing, the code does another, and the audit gate fires (see #2225 audit). Update docs in the same PR as the code change.
"Comments lie, only code is truth"Lies-in-comments is a culture problem, not a comments problem. Code can also lie (subtly broken implementations). Both need review.
"Nobody reads the docs anyway"Future-you reads them. New contributors (human or agent) read them. The skill-tree of the project depends on them.
"It's just an internal API"Internal APIs accumulate Hyrum's Law just like public ones (see api-and-interface-design). Internal docs prevent internal coupling.

Verification — Documentation changes

  • Every public-API change has a documentation update in the same PR
  • Significant architectural decisions have an ADR (or reference an existing one)
  • Auto-generated docs regenerated via the pipeline scripts after source changes
  • Doc additions follow the Tier system (Tier 1 essential / Tier 2 reference / Tier 3 detail)
  • No drift from canonical sources — npx tsx scripts/check-docs-indexed.ts passes
  • Markdown lint clean: npx markdownlint 'docs/**/*.md' '*.md'

Related Documents

Red flags

  • Public-API change PR with no doc update in the same diff
  • Architectural decision merged without an ADR
  • Auto-generated doc table broken (inject-governance.ts check fails)
  • Stale @deprecated references in docs/ after a removal
  • Doc PR with markdown lint errors (line wraps, table formatting)

Frequently asked questions

What to verify before installation and use

What does the documentation-management source document cover?

/ markers (2269, 2026-04-27). Adds a second description map (READMETOOLDESCRIPTIONS) for short, scannable entries (the README audience differs from CLAUDE.md), with fallback + warning when a new tool is missing a short variant. Soft-skips when README has no markers so the script…

How do I install documentation-management?

The source record exposes this install command: npx skills add https://github.com/nexus-substrate/nexus-agents --skill "skills/documentation-management". Inspect the command and pinned source before running it.

Which Agent platforms does the source record declare?

The pinned source record declares support for: cursor.

Which permission-related actions were detected?

Static rules flagged exec-script, write-files in the source; the page lists the matching lines and excerpts.

Alternatives

Compare before choosing

Computed 9867

SerendipityOneInc/ZooData-Skills

zoodata

API endpoint reference for the ZooData data platform: the 12 commerce endpoints plus 10 keyword-intelligence endpoints (categories, markets, products, competitors, realtime ASIN, AI review analysis, raw reviews, price band, brand, history, and the keyword detail/trend/extends/search/ market-profile/product-traffic/competitor-keywords/traffic-profile/ traffic-timeline family) — their inputs/outputs, parameter quirks, Quick Start (auth, base URL), how credits are tracked (meta.creditsConsumed), an

Computed 96160

kryptobaseddev/cleo

ct-research-agent

Multi-source research and investigation combining web search, documentation lookup via Context7, and codebase analysis. Synthesizes findings into actionable recommendations with proper citation and task traceability. Use when conducting research, investigating best practices, gathering technical information, or analyzing existing implementations. Triggers on research tasks, investigation needs, or information discovery requests.

Computed 967

aomi-labs/skills

aomi-build

Scaffold new Aomi apps and plugins from API docs, OpenAPI/Swagger specs, or SDK references. aomi-build generates production-ready Rust SDK crates (lib.rs, client.rs, tool.rs) with tool schemas, preambles, host-interop flows, and validation — turning a vendor's API surface into AI-agent-callable tools. It covers the current `aomi-build` OpenAPI pipeline (`gen-specs` → `gen-client` → `gen-tool` → curate → compile/test) as well as greenfield apps. Use when the user wants to scaffold a new Aomi app

Computed 967

aomi-labs/skills

crypto-skill-creator

Step-by-step guide for creating enriched CryptoSkills agent skills. Use when building new protocol skills, contributing to the directory, or understanding the enriched skill pattern. Covers SKILL.md structure, YAML frontmatter, examples, docs, resources, templates, marketplace registration, and validation. Triggers: "create a skill", "add a protocol", "contribute a skill", "new skill template".