mpt-ext-workflow-update-documentation
Skill3 starsChanged 4 months 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.
In this repository34 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .cursor/rules/mpt-extension-skills.mdcCursor rule
- mpt-ext-task-apply-dashboard-jira-decisionSkill
- mpt-ext-task-commit-changesSkill
- mpt-ext-task-create-initial-epicSkill
- mpt-ext-task-create-work-branchSkill
- mpt-ext-task-dependabot-pr-policy-fixSkill
- mpt-ext-task-ensure-active-sprintSkill
- mpt-ext-task-fix-pre-commit-failuresSkill
- mpt-ext-task-fix-repository-check-failuresSkill
- mpt-ext-task-handle-pr-commentsSkill
- mpt-ext-task-move-jira-to-code-reviewSkill
- mpt-ext-task-move-jira-to-qaSkill
- mpt-ext-task-notify-pr-ready-in-teamsSkill
- mpt-ext-task-open-pull-requestSkill
- mpt-ext-task-run-repository-checksSkill
- mpt-ext-task-start-jira-workSkill
- mpt-ext-task-update-docs-from-changesSkill
- mpt-ext-task-write-documentationSkill
- mpt-ext-task-write-python-unittestsSkill
- mpt-ext-tool-gh-pr-opsSkill
- mpt-ext-tool-git-branch-opsSkill
- mpt-ext-tool-jira-workitem-opsSkill
- mpt-ext-tool-teams-send-messageSkill
- mpt-ext-workflow-address-review-feedbackSkill
- mpt-ext-workflow-complete-after-mergeSkill
- mpt-ext-workflow-dashboard-failure-triageSkill
- mpt-ext-workflow-decompose-tdrSkill
- mpt-ext-workflow-fix-dependabot-prsSkill
- mpt-ext-workflow-hotfix-backportSkill
- mpt-ext-workflow-notify-pr-readySkill
- mpt-ext-workflow-send-to-reviewSkill
- mpt-ext-workflow-skill-authoringSkill
- mpt-ext-workflow-start-workSkill
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
- Very specific: line 20
Only a single documentation edit is needed without the surrounding flow (use mpt-ext-task-update-docs-from-changes directly).
- Distinctive: line 37
Read repository-specific docs when they exist, because they may extend or override shared guidance.
- Distinctive: line 38
Read shared docs required by this skill (see Shared References) regardless of repository pointers.
- Distinctive: line 41
Update the affected documentation.
- Very specific: line 42
Use mpt-ext-task-update-docs-from-changes with the requested change source to map the change set to affected documents and edit them.
- Distinctive: line 47
If a genuinely affected document is still not updated, return to step 2 for that document.
- Distinctive: line 48
Run at most 3 update-and-recheck iterations before stopping and reporting the remaining gaps.
- Distinctive: line 52
Do not stage unrelated files.
- Very specific: line 61
Never author a missing full documentation set here.
- Distinctive: line 62
Never commit, push, open a pull request, or change Jira state in this workflow.
- Distinctive: line 63
Never stage files that are not documentation updated by this flow.
- Distinctive: line 64
Never exceed 3 update-and-recheck iterations.
- Distinctive: line 65
Never invent documentation for behaviour that is not in the change set.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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.
Files
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-changesdirectly). - 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, orbranch-diff(with an optional base ref). - Installed shared package root when shared guidance is needed:
${MPT_EXTENSION_SKILLS_HOME:-$HOME/.mpt-extension-skills}/currentWorkflow
- Build repository context first.
- Read the target repository
AGENTS.mdonce 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}/currentwhen available; otherwise read them from themainbranch of the shared GitHub repository.
- Update the affected documentation.
- Use
mpt-ext-task-update-docs-from-changeswith the requested change source to map the change set to affected documents and edit them.
- 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 itsaffected_docsandmissing_doc_updatesagainst 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.
- Stage the documentation for commit.
- Stage only the documentation files that were updated (
docs/*,README.md,AGENTS.md). - Do not stage unrelated files.
- 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.
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
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.

