agentleFS
softwareone-platformsoftwareone-platform/mpt-extension-skills/skills/mpt-ext-workflow-update-documentation/SKILL.md

mpt-ext-workflow-update-documentation

Skill3 starsChanged 25 days agoApache-2.0View on GitHub

Run the full documentation-update flow before committing or sending to review, leaving affected docs updated, self-checked, and staged. Orchestrates the documentation task end to end.

The file

Show its rules and text

We split this skill into the rules it gives an agent

13 rules. About 0 are common, 10 are distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈10

    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. Very specific:

    Only a single documentation edit is needed without the surrounding flow (use mpt-ext-task-update-docs-from-changes directly).

    line 20
  2. Distinctive:

    Read repository-specific docs when they exist, because they may extend or override shared guidance.

    line 37
  3. Distinctive:

    Read shared docs required by this skill (see Shared References) regardless of repository pointers.

    line 38
  4. Distinctive:

    Update the affected documentation.

    line 41
  5. Very specific:

    Use mpt-ext-task-update-docs-from-changes with the requested change source to map the change set to affected documents and edit them.

    line 42
  6. Distinctive:

    If a genuinely affected document is still not updated, return to step 2 for that document.

    line 47
  7. Distinctive:

    Run at most 3 update-and-recheck iterations before stopping and reporting the remaining gaps.

    line 48
  8. Distinctive:

    Do not stage unrelated files.

    line 52
  9. Very specific:

    Never author a missing full documentation set here.

    line 61
  10. Distinctive:

    Never commit, push, open a pull request, or change Jira state in this workflow.

    line 62
  11. Distinctive:

    Never stage files that are not documentation updated by this flow.

    line 63
  12. Distinctive:

    Never exceed 3 update-and-recheck iterations.

    line 64
  13. Distinctive:

    Never invent documentation for behaviour that is not in the change set.

    line 65

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 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

Update Documentation Workflow

Purpose

Coordinate updating repository documentation for a change set from start to staged: update the affected documents, verify the result against the documentation guideline, and stage the documentation for commit.

Use When

  • A change is ready and its documentation impact should be reflected as one coordinated flow.
  • Documentation must be current and staged before committing or sending the change to review.

Do Not Use When

  • The repository has no documentation set yet and it must be authored from scratch (use mpt-ext-task-write-documentation).
  • Only a single documentation edit is needed without the surrounding flow (use mpt-ext-task-update-docs-from-changes directly).
  • The task is to commit, push, open a pull request, or transition Jira state.

Inputs

  • A target repository that is a Git working tree with history.
  • The change source to document: unstaged, uncommitted, last-commit, or branch-diff (with an optional base ref).
  • Installed shared package root when shared guidance is needed:
${MPT_EXTENSION_SKILLS_HOME:-$HOME/.mpt-extension-skills}/current

Workflow

  1. Build repository context first.
  • Read the target repository AGENTS.md once per session. If you already loaded it earlier in this session and still have its full contents, reuse them instead of re-reading; if the context was summarized or you are unsure it is complete, read it again. Do not pre-load shared docs in this step; read them lazily only when the repository points to them.
  • Read repository-specific docs when they exist, because they may extend or override shared guidance.
  • Read shared docs required by this skill (see Shared References) regardless of repository pointers; read additional shared docs only when the repository explicitly points to them.
  • Resolve shared docs from ${MPT_EXTENSION_SKILLS_HOME:-$HOME/.mpt-extension-skills}/current when available; otherwise read them from the main branch of the shared GitHub repository.
  1. Update the affected documentation.
  • Use mpt-ext-task-update-docs-from-changes with the requested change source to map the change set to affected documents and edit them.
  1. Self-check the result.
  • Re-run only the bundled change-collection script directly (skills/mpt-ext-task-update-docs-from-changes/scripts/collect_changes.py); do not re-invoke the task skill, to avoid reloading it and rebuilding context. Compare its affected_docs and missing_doc_updates against what was actually edited.
  • Review stale_doc_references: any existing document that still references a path removed or renamed in this change set is likely stale; fix or remove the reference.
  • If a genuinely affected document is still not updated, return to step 2 for that document.
  • Run at most 3 update-and-recheck iterations before stopping and reporting the remaining gaps.
  1. Stage the documentation for commit.
  • Stage only the documentation files that were updated (docs/*, README.md, AGENTS.md).
  • Do not stage unrelated files.
  1. Report the result.
  • List the documents updated and staged.
  • List affected documents intentionally left unchanged, with a short reason.
  • Report any remaining gaps after the iteration limit, and anything that needs human judgement.

Guardrails

  • Never author a missing full documentation set here; delegate that to mpt-ext-task-write-documentation.
  • Never commit, push, open a pull request, or change Jira state in this workflow.
  • Never stage files that are not documentation updated by this flow.
  • Never exceed 3 update-and-recheck iterations; stop and report instead of looping.
  • Never invent documentation for behaviour that is not in the change set.

Shared References

  • standards/documentation.md: required documentation set, structure, and authoring rules.

Expected Outcome

The documentation affected by the change set is updated, verified against standards/documentation.md, and staged for commit, or the workflow stops with a clear report of remaining gaps that need attention.

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.