mpt-ext-task-write-documentation
Skill3 starsChanged 24 days agoApache-2.0View on GitHub
Author or refresh a repository's required documentation set (README, AGENTS, docs/*) following the shared documentation guideline. Use when docs are missing, incomplete, or need a structural pass.
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-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
17 rules. About 0 are common, 9 are distinctive, and 8 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈9
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 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
Read the documentation guideline.
- Very specific: line 42
Read standards/documentation.md for the required set, conditional documents, document responsibilities, and authoring rules.
- Very specific: line 51
Use required.missing for the documents that must be authored.
- Very specific: line 52
Use conditional_recommended for documents the repository signals it should have.
- Very specific: line 53
Use existing_docs and required.present for documents to review and refresh.
- Very specific: line 54
When present (extensions with an existing docs/external-integrations.md), use external_integrations.uncovered as candidate integration …
- Very specific: line 57
Create each missing required document following the responsibilities and structure in standards/documentation.md.
- Distinctive: line 61
Create each recommended conditional document when it is genuinely relevant to the repository.
- Distinctive: line 66
Keep README.md concise and navigational.
- Very specific: line 74
Never duplicate shared engineering rules that already live in standards/.
- Distinctive: line 75
Never document behaviour, commands, or configuration that does not exist in the repository.
- Distinctive: line 76
Never turn README.md into a full reference manual or AGENTS.md into an explanatory document.
- Distinctive: line 77
Never reproduce the deterministic documentation audit in prose.
- Distinctive: line 78
Never commit, push, open a pull request, or change Jira state in this task.
- Very specific: line 79
Do not perform change-driven incremental edits here.
≈ “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
Write Documentation
Purpose
Author or refresh the required repository documentation set so it matches the shared documentation guideline, filling gaps from the repository's code and structure.
Use When
- A repository is missing some or all of its required documentation set.
- Existing documentation is incomplete, inconsistent, or does not follow the documentation guideline.
- A repository needs a full documentation pass (structure, required files, navigation).
Do Not Use When
- Documentation only needs to reflect a specific code change set (use
mpt-ext-task-update-docs-from-changes). - The task is to commit, open a pull request, or transition Jira state.
- The task is to verify documentation without writing it.
Inputs
- A target repository to document.
- 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.
- Read the documentation guideline.
- Read
standards/documentation.mdfor the required set, conditional documents, document responsibilities, and authoring rules. Treat it as the source of truth.
- Audit the current documentation set with the bundled script.
python3 "${MPT_EXTENSION_SKILLS_HOME:-$HOME/.mpt-extension-skills}/current/skills/mpt-ext-task-write-documentation/scripts/audit_docs.py" \
--repo-root .- Use
required.missingfor the documents that must be authored. - Use
conditional_recommendedfor documents the repository signals it should have. - Use
existing_docsandrequired.presentfor documents to review and refresh. - When present (extensions with an existing
docs/external-integrations.md), useexternal_integrations.uncoveredas candidate integration modules that the index does not yet mention; confirm which are real external systems and cover them.
- Author the missing required documents.
- Create each missing required document following the responsibilities and structure in
standards/documentation.md. - Derive content from the repository's actual code, structure, commands, and configuration. Do not invent behaviour.
- Author the recommended conditional documents.
- Create each recommended conditional document when it is genuinely relevant to the repository.
- Skip a recommendation when it does not apply, and say why.
- Refresh existing documents.
- Bring existing documents in line with the guideline: single topic per file, explicit language, examples that are short and valid.
- Keep
README.mdconcise and navigational; keepAGENTS.mdoperational and ordered for agent navigation. - Link shared standards instead of copying them; document only repository-specific behaviour, exceptions, or context.
- Report the result.
- List documents created, documents refreshed, and recommendations intentionally skipped with a short reason.
Guardrails
- Never duplicate shared engineering rules that already live in
standards/; link to them instead. - Never document behaviour, commands, or configuration that does not exist in the repository.
- Never turn
README.mdinto a full reference manual orAGENTS.mdinto an explanatory document; keep both navigational. - Never reproduce the deterministic documentation audit in prose; always use the bundled script.
- Never commit, push, open a pull request, or change Jira state in this task.
- Do not perform change-driven incremental edits here; that is
mpt-ext-task-update-docs-from-changes.
Shared References
standards/documentation.md: required documentation set, conditional documents, responsibilities, and authoring rules.
Bundled Resources
scripts/audit_docs.py- Inputs: optional
--repo-root - Output: JSON with
required(present/missing),conditional_recommended, andexisting_docs - Runtime path:
${MPT_EXTENSION_SKILLS_HOME:-$HOME/.mpt-extension-skills}/current/skills/mpt-ext-task-write-documentation/scripts/audit_docs.py
- Inputs: optional
Expected Outcome
The repository has its required documentation set authored and any relevant conditional documents created, all consistent with standards/documentation.md, with README.md and AGENTS.md kept navigational, and a clear report of what was created, refreshed, or intentionally skipped.
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.

