Update Documentation

VerifiedSafe

Reviews and updates documentation in the docs/ folder to ensure it accurately reflects the current codebase. Use after making code changes that affect documented features, during periodic documentation audits, or when adding or removing features that need documentation. The process includes auditing code against documents, verifying diagrams and code samples, and checking for gaps in coverage.

Sby Skills Guide Bot
DocumentationIntermediate
6/2/2026
Claude CodeCursorWindsurfCopilotCodex
#documentation-review#documentation-audit#docs-sync#codebase-docs

Recommended for

Automated summary

Audit and update documentation in the docs/ folder to ensure it accurately reflects the current codebase.

Strengths

  • Structured process to cross-reference each document against actual code
  • Verification of Mermaid diagrams and code samples
  • Identification of undocumented features or outdated content

Limitations

  • Requires understanding of both codebase and documentation structure
  • Does not automatically fix inconsistencies found
When to use it

Use this skill after code changes that affect documented features or during periodic documentation audits.

When not to use it

Do not use this skill for writing new documentation from scratch without an existing base, as it focuses on updating rather than creating.

Security analysis

Safe
Quality score92/100

The skill instructs reading and updating documentation by cross-referencing code and running CLI commands with a specified dataset. No destructive actions, exfiltration, or obfuscated payloads are involved. The commands (git log, npx) are used in a controlled manner.

No concerns found

How this analysis is made

Examples

Full documentation audit
Audit the documentation in the docs/ folder against the current codebase. Check each document in subdirectories model/, pathway/, and map/ for accuracy of code samples, diagrams, and feature descriptions. Update any inconsistencies found.
Update after feature change
I've just refactored the job derivation logic in libraries/libpathway/src/job.js. Please update any documentation that references job derivation to reflect the new code.
Verify CLI examples
Review all CLI command examples in the docs/ folder. Run the commands with --data=data/pathway to verify they produce the shown output, and fix any that have drifted.

name: update-docs description: Review and update documentation in the docs/ folder. Use when ensuring documentation accurately reflects the current codebase.

Update Documentation

Review and update documentation in the docs/ folder to ensure it accurately reflects the current codebase.

When to Use

  • After making code changes that affect documented features
  • During periodic documentation audits
  • When adding new features that need documentation
  • When removing features that are still documented

Process

  1. Understand the documentation structure

    • Read docs/index.md to see the documentation hierarchy
    • Review each document in docs/ subdirectories (model/, pathway/, map/)
    • Check git log --oneline -20 for hints about recent changes—but use this only as a starting point, not a substitute for studying the code
  2. Audit against the current codebase

    • For each document, examine the actual code it describes
    • Check products/map/src/ for data structures and validation
    • Check libraries/libpathway/src/ for derivation logic
    • Check products/pathway/ for CLI commands, templates, and formatters
    • Run CLI commands mentioned in docs to verify accuracy
  3. Verify diagrams

    • Mermaid diagrams must reflect actual data flow and relationships
    • Compare entity diagrams against actual YAML structures in data/pathway/
    • Compare derivation flowcharts against code in libraries/libpathway/src/
    • Update or add diagrams where they clarify concepts
  4. Verify code samples

    • All code samples must be runnable or valid
    • YAML examples should match actual schema structure
    • CLI examples should produce the shown output
    • Update samples that have drifted from implementation
  5. Check for gaps

    • New features in code that lack documentation
    • Documented features that no longer exist
    • Cross-references that point to moved or deleted content

Key Files to Cross-Reference

| Document Topic | Source of Truth | | ------------------ | ------------------------------------- | | Skills & Levels | data/pathway/capabilities/ | | Behaviours | data/pathway/behaviours/ | | Disciplines | data/pathway/disciplines/ | | Tracks | data/pathway/tracks/ | | Levels | data/pathway/levels.yaml | | Stages | data/pathway/stages.yaml | | Job Derivation | libraries/libpathway/src/job.js | | Agent Derivation | libraries/libpathway/src/agent.js | | CLI Commands | products/pathway/bin/fit-pathway.js | | Templates | products/pathway/templates/ | | Agent instructions | AGENTS.md |

CLI Verification

Always use --data=data/pathway to ensure documentation reflects the canonical dataset.

# List available entities
npx fit-pathway skill --data=data/pathway --list
npx fit-pathway discipline --data=data/pathway --list
npx fit-pathway track --data=data/pathway --list
npx fit-pathway level --data=data/pathway --list

# Generate sample outputs to compare with docs
npx fit-pathway job software_engineering L3 --data=data/pathway
npx fit-pathway agent software_engineering --data=data/pathway --track=platform

Commit

After making updates, commit with:

docs: update [topic] documentation

Use separate commits for distinct documentation areas.

From the file to a first result

The download contains exactly the content displayed on this page. This copy may differ from the latest version in the source repository.

View the source and supporting files

This download contains SKILL.md only. Any scripts, references, templates and dependencies are not included. Get the required files from the source, preserving their directory structure, before continuing.

1. Download the file

Download SKILL.md

From the root of a test project, save the file as .skill-downloads/update-documentation-mmlj2nov/SKILL.md, or use the command below. This folder is for inspecting the skill before installation.

Command for macOS/Linux or WSL: requires a POSIX shell and curl. On Windows without WSL, use the download button and create the folder manually.

mkdir -p '.skill-downloads/update-documentation-mmlj2nov' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/update-documentation-mmlj2nov/download' --output '.skill-downloads/update-documentation-mmlj2nov/SKILL.md.part' && mv '.skill-downloads/update-documentation-mmlj2nov/SKILL.md.part' '.skill-downloads/update-documentation-mmlj2nov/SKILL.md'

2. Check prerequisites

Read SKILL.md before using it. If it references scripts or external services, inspect them and prepare the required access in your test environment.

No recognized prerequisites section in this file. This does not mean it is self-contained: libraries, tools and access requirements may be mentioned elsewhere in the content or source repository.

The platforms on this page are catalog indications. The paths below follow tool documentation; they do not prove this skill has been run in those tools. No minimum tool version is confirmed for this listing.

3. Load the skill

After inspection, copy the complete folder into your project using one of the commands below, then open a new tool session. The command stops if a folder with the same name already exists: compare the files before replacing it.

Claude Code
test -f '.skill-downloads/update-documentation-mmlj2nov/SKILL.md' && test -s '.skill-downloads/update-documentation-mmlj2nov/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/update-docs' && cp -R '.skill-downloads/update-documentation-mmlj2nov' '.claude/skills/update-docs'

Cursor
test -f '.skill-downloads/update-documentation-mmlj2nov/SKILL.md' && test -s '.skill-downloads/update-documentation-mmlj2nov/SKILL.md' && mkdir -p '.cursor/skills' && test ! -e '.cursor/skills/update-docs' && cp -R '.skill-downloads/update-documentation-mmlj2nov' '.cursor/skills/update-docs'

Codex
test -f '.skill-downloads/update-documentation-mmlj2nov/SKILL.md' && test -s '.skill-downloads/update-documentation-mmlj2nov/SKILL.md' && mkdir -p '.agents/skills' && test ! -e '.agents/skills/update-docs' && cp -R '.skill-downloads/update-documentation-mmlj2nov' '.agents/skills/update-docs'

OpenSkills

OpenSkills must already be installed. The local install/read procedure is checked with OpenSkills 1.5.0, which requires Node.js ≥ 20.6.0. Catalog slugs are not resolved automatically.

Official OpenSkills installation
openskills install './.skill-downloads/update-documentation-mmlj2nov'

openskills read 'update-documentation-mmlj2nov'

Reading should display the installed file content and its base directory. It does not run the skill or install its dependencies.

For an agent that reads AGENTS.md, then sync the index. This command changes AGENTS.md: review the diff before using it.

openskills sync

Manual method or another tool: attach SKILL.md to a conversation, or open it in an agent that can read files. Include any required supporting resources. No universal folder is recognized by every tool.

4. Try a first task

Use a short, synthetic input: an API endpoint, a small document or an interface brief. In a new conversation, attach the file or give the agent its path, then adapt this request:

Read .skill-downloads/update-documentation-mmlj2nov/SKILL.md and apply its instructions to this example: [describe a test input]. Identify any missing files, dependencies or access. Produce the result requested by the skill without inventing data or running unreviewed scripts.

Expected result: output matching the skill instructions, or a precise list of missing prerequisites. A read confirmation alone does not validate a first use. If an external resource is unavailable, that path remains untested.

Related skills