mpt-ext-task-update-docs-from-changes
Skill3 starsChanged 24 days agoApache-2.0View on GitHub
Only update repository docs to match a code change set (docs/*, README.md, AGENTS.md) for unstaged, uncommitted, last-commit, or branch-diff changes. A building block: no self-check or staging.
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-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
- mpt-ext-workflow-update-documentationSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
19 rules. About 0 are common, 11 are distinctive, and 8 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈11
Distinctive · estimate
This author's own choices. Worth a look.
8
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 43
Read repository-specific docs when they exist, because they may extend or override shared guidance.
- Distinctive: line 44
Read shared docs required by this skill (see Shared References) regardless of repository pointers.
- Distinctive: line 48
Use the source the user requested.
- Very specific: line 49
If the source is ambiguous, ask the user before running.
- Very specific: line 58
Use affected_docs to know which documents each changed path most likely affects.
- Very specific: line 59
Use missing_doc_updates to see which affected docs were not yet touched in this change set.
- Very specific: line 60
Treat always_review (README.md, AGENTS.md) as documents that need a judgement call, because behaviour and structure changes affecting them …
- Very specific: line 61
Treat unmapped_code as changes with no default mapping.
- Very specific: line 62
Treat stale_doc_references as likely-stale references: each entry is an existing document that still mentions a path removed or renamed in …
- Distinctive: line 64
Update the affected documents.
- Very specific: line 66
Follow standards/documentation.md for structure, topic boundaries, and required-set expectations.
- Distinctive: line 67
Do not duplicate shared standards.
- Distinctive: line 68
Update README.md navigation and AGENTS.md reading order only when structure, entry points, or public behaviour actually changed.
- Distinctive: line 77
Never document behaviour that is not present in the change set.
- Very specific: line 78
Never duplicate shared engineering rules that already live in standards/.
- Distinctive: line 79
Never edit documentation unrelated to the change set.
- Distinctive: line 80
Never reproduce the deterministic change collection in prose.
- Distinctive: line 81
Never stage, commit, push, open a pull request, or change Jira state in this task.
- Distinctive: line 82
Keep edits minimal and scoped to the change.
≈ “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.
Files
Update Docs From Changes
Purpose
Bring repository documentation (docs/*, README.md, AGENTS.md) up to date with a specific set of code changes, following the shared documentation guideline.
Use When
- Code or behaviour changed and the matching documentation must be updated.
- The user wants documentation regenerated from unstaged, uncommitted, last-commit, or branch-diff changes.
- A change is ready for review and its documentation impact must be reflected first.
Do Not Use When
- The repository has no documentation yet and the full required set must be authored from scratch (use
mpt-ext-task-write-documentation). - The task is to commit, open a pull request, or transition Jira state.
- The task is to verify documentation without editing it.
Inputs
- A target repository that is a Git working tree with history.
- The change source to document:
unstaged: working tree vs index (includes untracked files)uncommitted: working tree vsHEAD(staged + unstaged, includes untracked files)last-commit:HEAD~1..HEADbranch-diff:<base>...HEAD(base defaults toorigin/main)
- Optional base ref when the source is
branch-diff. - 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.
- Determine the change source.
- Use the source the user requested.
- If the source is ambiguous, ask the user before running. For
branch-diff, confirm the base ref.
- Collect the change set with the bundled script.
python3 "${MPT_EXTENSION_SKILLS_HOME:-$HOME/.mpt-extension-skills}/current/skills/mpt-ext-task-update-docs-from-changes/scripts/collect_changes.py" \
--source branch-diff --base origin/main- Use
affected_docsto know which documents each changed path most likely affects. - Use
missing_doc_updatesto see which affected docs were not yet touched in this change set. - Treat
always_review(README.md,AGENTS.md) as documents that need a judgement call, because behaviour and structure changes affecting them are not detectable from paths. - Treat
unmapped_codeas changes with no default mapping; decide their documentation impact manually. Modified (not added or deleted) source files map todocs/architecture.mdonly through a structural signal, so ordinary edits land here for a manual call rather than floodingmissing_doc_updates. - Treat
stale_doc_referencesas likely-stale references: each entry is an existing document that still mentions a path removed or renamed in this change set; confirm and fix or remove the reference.
- Update the affected documents.
- For each affected document, read the current document and the actual change content, then edit only what the change affects.
- Follow
standards/documentation.mdfor structure, topic boundaries, and required-set expectations. - Do not duplicate shared standards; link to them and document only repository-specific behaviour, exceptions, or context.
- Update
README.mdnavigation andAGENTS.mdreading order only when structure, entry points, or public behaviour actually changed.
- Report the result.
- List the documents updated and the change paths that drove each update.
- List affected documents you intentionally left unchanged, with a short reason.
- Surface anything that needs human judgement (for example a behaviour change whose user-facing impact is unclear).
Guardrails
- Never document behaviour that is not present in the change set; do not invent features or future plans.
- Never duplicate shared engineering rules that already live in
standards/; link to them instead. - Never edit documentation unrelated to the change set.
- Never reproduce the deterministic change collection in prose; always use the bundled script.
- Never stage, commit, push, open a pull request, or change Jira state in this task; the invoking workflow stages the updated documentation files.
- Keep edits minimal and scoped to the change; do not rewrite untouched sections.
Shared References
standards/documentation.md: required documentation set, structure, and authoring rules.
Bundled Resources
scripts/collect_changes.py- Inputs:
--source {unstaged,uncommitted,last-commit,branch-diff}, optional--base - Output: JSON with
source,base,changed_files,code_changes,doc_changes,affected_docs,missing_doc_updates,always_review, andunmapped_code - Runtime path:
${MPT_EXTENSION_SKILLS_HOME:-$HOME/.mpt-extension-skills}/current/skills/mpt-ext-task-update-docs-from-changes/scripts/collect_changes.py
- Inputs:
Expected Outcome
The documentation affected by the given change set is updated in line with standards/documentation.md, README/AGENTS are adjusted only when structure or behaviour changed, and the result clearly states what was updated and what was intentionally left unchanged.
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.

