agentleFS
softwareone-platformsoftwareone-platform/mpt-extension-skills/skills/mpt-ext-task-update-docs-from-changes/SKILL.md

mpt-ext-task-update-docs-from-changes

Skill3 starsChanged 4 months 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.

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
  1. Distinctive:

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

    line 43
  2. Distinctive:

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

    line 44
  3. Distinctive:

    Use the source the user requested.

    line 48
  4. Very specific:

    If the source is ambiguous, ask the user before running.

    line 49
  5. Very specific:

    Use affected_docs to know which documents each changed path most likely affects.

    line 58
  6. Very specific:

    Use missing_doc_updates to see which affected docs were not yet touched in this change set.

    line 59
  7. Very specific:

    Treat always_review (README.md, AGENTS.md) as documents that need a judgement call, because behaviour and structure changes affecting them …

    line 60
  8. Very specific:

    Treat unmapped_code as changes with no default mapping.

    line 61
  9. Very specific:

    Treat stale_doc_references as likely-stale references: each entry is an existing document that still mentions a path removed or renamed in …

    line 62
  10. Distinctive:

    Update the affected documents.

    line 64
  11. Very specific:

    Follow standards/documentation.md for structure, topic boundaries, and required-set expectations.

    line 66
  12. Distinctive:

    Do not duplicate shared standards.

    line 67
  13. Distinctive:

    Update README.md navigation and AGENTS.md reading order only when structure, entry points, or public behaviour actually changed.

    line 68
  14. Distinctive:

    Never document behaviour that is not present in the change set.

    line 77
  15. Very specific:

    Never duplicate shared engineering rules that already live in standards/.

    line 78
  16. Distinctive:

    Never edit documentation unrelated to the change set.

    line 79
  17. Distinctive:

    Never reproduce the deterministic change collection in prose.

    line 80
  18. Distinctive:

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

    line 81
  19. Distinctive:

    Keep edits minimal and scoped to the change.

    line 82

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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 vs HEAD (staged + unstaged, includes untracked files)
    • last-commit: HEAD~1..HEAD
    • branch-diff: <base>...HEAD (base defaults to origin/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}/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. 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.
  1. 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_docs to know which documents each changed path most likely affects.
  • Use missing_doc_updates to 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_code as changes with no default mapping; decide their documentation impact manually. Modified (not added or deleted) source files map to docs/architecture.md only through a structural signal, so ordinary edits land here for a manual call rather than flooding missing_doc_updates.
  • Treat stale_doc_references as 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.
  1. 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.md for 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.md navigation and AGENTS.md reading order only when structure, entry points, or public behaviour actually changed.
  1. 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, and unmapped_code
    • Runtime path: ${MPT_EXTENSION_SKILLS_HOME:-$HOME/.mpt-extension-skills}/current/skills/mpt-ext-task-update-docs-from-changes/scripts/collect_changes.py

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.

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.