agentleFS
softwareone-platformsoftwareone-platform/mpt-extension-skills/skills/mpt-ext-task-write-documentation/SKILL.md

mpt-ext-task-write-documentation

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

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

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

    line 37
  2. Distinctive:

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

    line 38
  3. Distinctive:

    Read the documentation guideline.

    line 41
  4. Very specific:

    Read standards/documentation.md for the required set, conditional documents, document responsibilities, and authoring rules.

    line 42
  5. Very specific:

    Use required.missing for the documents that must be authored.

    line 51
  6. Very specific:

    Use conditional_recommended for documents the repository signals it should have.

    line 52
  7. Very specific:

    Use existing_docs and required.present for documents to review and refresh.

    line 53
  8. Very specific:

    When present (extensions with an existing docs/external-integrations.md), use external_integrations.uncovered as candidate integration …

    line 54
  9. Very specific:

    Create each missing required document following the responsibilities and structure in standards/documentation.md.

    line 57
  10. Distinctive:

    Create each recommended conditional document when it is genuinely relevant to the repository.

    line 61
  11. Distinctive:

    Keep README.md concise and navigational.

    line 66
  12. Very specific:

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

    line 74
  13. Distinctive:

    Never document behaviour, commands, or configuration that does not exist in the repository.

    line 75
  14. Distinctive:

    Never turn README.md into a full reference manual or AGENTS.md into an explanatory document.

    line 76
  15. Distinctive:

    Never reproduce the deterministic documentation audit in prose.

    line 77
  16. Distinctive:

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

    line 78
  17. Very specific:

    Do not perform change-driven incremental edits here.

    line 79

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

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}/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. Read the documentation guideline.
  • Read standards/documentation.md for the required set, conditional documents, document responsibilities, and authoring rules. Treat it as the source of truth.
  1. 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.missing for the documents that must be authored.
  • Use conditional_recommended for documents the repository signals it should have.
  • Use existing_docs and required.present for documents to review and refresh.
  • When present (extensions with an existing docs/external-integrations.md), use external_integrations.uncovered as candidate integration modules that the index does not yet mention; confirm which are real external systems and cover them.
  1. 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.
  1. 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.
  1. 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.md concise and navigational; keep AGENTS.md operational and ordered for agent navigation.
  • Link shared standards instead of copying them; document only repository-specific behaviour, exceptions, or context.
  1. 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.md into a full reference manual or AGENTS.md into 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, and existing_docs
    • Runtime path: ${MPT_EXTENSION_SKILLS_HOME:-$HOME/.mpt-extension-skills}/current/skills/mpt-ext-task-write-documentation/scripts/audit_docs.py

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.

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.