agentleFS
ayushgoelayushgoel/skills/doc-writer/SKILL.md

doc-writer

Skill1 starsChanged 3 months agoMITView on GitHub

Use when writing, rewriting, or reviewing concise documentation, including technical and design docs, PRDs, DACI decisions, runbooks, project updates, meeting notes, Confluence pages, and Word or PDF deliverables. Also use when documentation needs tighter structure, source-backed claims, preserved links, or less AI-sounding prose.

12 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use data-analyst, code-reviewer and 1 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • ClineSkill

    data-analyst

    Act as an interactive data analyst for ClickHouse-backed analytics. Use when the user asks questions about internal data, metrics, dashboards, telemetry, active users, revenue, funnels, trends, distributions, or wants an analyst-style conversation, ad hoc SQL, charts, or a data export against ClickHouse (local or ClickHouse Cloud).

    Also in 3 projects that use this

  • GoogleSkill

    code-reviewer

    Also in 3 projects that use this

  • MicrosoftSkill

    skill-creator

    Guide for creating effective GitHub Copilot skills (.github/skills/) in this repository. Use when creating a new skill, updating an existing skill, or when asked about skill structure, format, or best practices for the vscode-documentdb project.

    Also in 3 projects that use this

The file

Show its rules and text

We split this skill into the rules it gives an agent

30 rules. 0 are common, 27 are distinctive, and 3 are very specific to this project.

  • 0

    Common

    Most of the 11 edited versions we read keep these.

  • 27

    Distinctive

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

    Write concise, evidence-based docs with only the sections the reader needs.

    line 13
  2. Distinctive:

    Treat a Confluence URL, page ID, existing page, or explicit publish/update request as Confluence context.

    line 19
  3. Very specific:

    Use the twg skill for company evidence from Confluence, Jira, Drive, Slack, ownership records, decisions, and related work.

    line 21
  4. Distinctive:

    Read the smallest useful evidence set.

    line 23
  5. Distinctive:

    Read existing content and source material before changing its structure.

    line 30
  6. Distinctive:

    Remove repetition, unsupported claims, empty sections, and generic prose.

    line 33
  7. Distinctive:

    Verify links, claims, ownership, decisions, and requested output format.

    line 34
  8. Distinctive:

    Write or publish only under the mutation rules below.

    line 35
  9. Distinctive:

    Write ordinary Markdown and plain-text documents directly.

    line 42
  10. Distinctive:

    Treat authoring and final-format validation as separate concerns.

    line 48
  11. Distinctive:

    When the user explicitly asks to create, update, publish, move, or comment, read the current page state first and execute the requested …

    line 62
  12. Distinctive:

    Avoid overwriting concurrent edits.

    line 67
  13. Very specific:

    Use twg help or twg help describe when the current command grammar or write contract is uncertain.

    line 69
  14. Distinctive:

    Use Confluence tables for comparisons, ownership, timelines, decisions, or status.

    line 72
  15. Distinctive:

    Do not turn a direction-setting page into an exhaustive inventory.

    line 80
  16. Distinctive:

    Keep action items, owners, targets, and status in one work log.

    line 81
  17. Distinctive:

    If the user marks that work log or another page as manually owned, treat it as read-only.

    line 83
  18. Distinctive:

    Treat an answered review comment as a decision.

    line 85
  19. Distinctive:

    Use PRD mode for product or feature requirements.

    line 96
  20. Distinctive:

    Use these as topic budgets, not rigid headings.

    line 116
  21. Distinctive:

    Call out deployment, authentication, tenant, policy, data, security, and privacy boundaries when relevant.

    line 137
  22. Distinctive:

    Use Mermaid for architecture, sequence, lifecycle, and rollback flows when it communicates more clearly than prose.

    line 139
  23. Distinctive:

    Keep raw payloads, exhaustive configuration, and detailed estimates out of the main argument unless they determine the decision.

    line 141
  24. Distinctive:

    Add an image prompt only when a visual would materially shorten or clarify the document.

    line 148
  25. Distinctive:

    Prefer short paragraphs, concrete bullets, and system-specific language.

    line 159
  26. Distinctive:

    Do not add sections just because a template contains them.

    line 160
  27. Distinctive:

    Do not repeat the same idea across the summary, context, and conclusion.

    line 161
  28. Distinctive:

    Avoid em dashes, adjacent hyphens, semicolons, and stock AI phrasing.

    line 162
  29. Very specific:

    Put a source link next to a sourced claim.

    line 164
  30. Distinctive:

    Do not end with a generic conclusion.

    line 166

“Common” is measured: kept by at least 6 in 10 of the 11 edited versions of this file we could read. “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

Doc Writer

Write concise, evidence-based docs with only the sections the reader needs.

Destination And Evidence

  • Infer the destination from the request, page URL, referenced page, open file, or active workspace. Ask only when the destination materially changes the result.
  • Treat a Confluence URL, page ID, existing page, or explicit publish/update request as Confluence context.
  • Use the twg skill for company evidence from Confluence, Jira, Drive, Slack, ownership records, decisions, and related work.
  • Read the smallest useful evidence set. Preserve source links during rewrites and place citations next to the claims they support.
  • Distinguish facts from assumptions, recommendations, and unresolved questions.

Workflow

  1. Identify the audience, decision or task, document type, and destination.
  2. Read existing content and source material before changing its structure.
  3. Resolve material evidence gaps with local sources or twg.
  4. Draft the smallest useful section set for the document type.
  5. Remove repetition, unsupported claims, empty sections, and generic prose.
  6. Verify links, claims, ownership, decisions, and requested output format.
  7. Write or publish only under the mutation rules below.

For long documents, put a linked table of contents after the title or one-sentence summary. Skip it when the document is already easy to scan.

File Deliverables

Write ordinary Markdown and plain-text documents directly. When the requested deliverable is a Word document, read references/docx-output.md. When it is a PDF, or a document must be exported to PDF, read references/pdf-output.md.

Treat authoring and final-format validation as separate concerns. Preserve an existing document's useful styles, links, comments, and revision intent. For a new document, use restrained formatting appropriate to its destination. Render the final artifact and inspect representative pages when layout is part of the request; a successful conversion alone does not establish visual correctness.

Confluence Reads And Writes

For Confluence reads, use twg to resolve the page and fetch its current content, metadata, and relevant comments or children. A read, review, summary, or draft request is analysis-only and must not mutate the page.

For Confluence writes:

  • When the user explicitly asks to create, update, publish, move, or comment, read the current page state first and execute the requested mutation.
  • Without an explicit write request, produce a draft and identify the intended destination without changing Confluence.
  • Preserve existing links, page hierarchy, ownership, and useful formatting.
  • Avoid overwriting concurrent edits. Re-read current state when the write follows a long analysis or the page may have changed.
  • Use twg help or twg help describe when the current command grammar or write contract is uncertain.

Use Confluence tables for comparisons, ownership, timelines, decisions, or status. Use expand, status, info, note, and warning macros only when they improve scanning or change reader behavior.

Document Suites And Review Comments

  • Give each page one job. Pillar pages lead with the target state, summarize the current state briefly, name the gaps, and link to the work log for execution. Do not turn a direction-setting page into an exhaustive inventory.
  • Keep action items, owners, targets, and status in one work log. Link to it from narrative pages instead of duplicating action tables across the suite.
  • If the user marks that work log or another page as manually owned, treat it as read-only. Collect exact follow-up items in the handoff for the owner to add.
  • Treat an answered review comment as a decision. Update every affected page, remove the item from open questions, and add any implementation work to the work log.
  • Move content to the page where readers need it under pressure. For example, operational kill switches belong with incident response, while the service overview should link to them.
  • Resolve comments only after re-reading the published pages and checking that cross-links, terminology, decisions, and work-log actions agree.

PRD Mode

Use PRD mode for product or feature requirements. Gather known context from the conversation and linked company evidence before asking questions. Ask only for missing information that blocks a useful draft, and mark unresolved details as TBD rather than inventing them.

Select from these topics rather than treating them as a fixed template:

  • problem, users, proposed outcome, goals, and non-goals
  • user journeys, stories, and testable acceptance criteria
  • functional and non-functional requirements
  • measurable success metrics and guardrail metrics
  • dependencies, constraints, rollout, risks, and open questions
  • for AI features: model and tool boundaries, grounding data, evaluation, safety, privacy, latency, and cost

Requirements must be observable or testable. Replace words such as "fast", "easy", or "intuitive" with a measurable threshold or an explicit TBD.

Document Topic Budgets

Use these as topic budgets, not rigid headings. Merge related topics.

  • High-level design: summary, objective, goals and non-goals, context, requirements, architecture, components, trust boundaries, lifecycle, alternatives, observability, rollout, rollback, security, risks, open questions, references
  • Deep technical design: context, architecture, invariants, data design, components, interfaces, feature gates, migration, implementation phases, constraints, risks, references
  • DACI decision: status, impact, driver, approver, recommendation, contributors, informed, due date, evidence, decision factors, options, outcome, actions
  • Runbook: trigger, severity, impact, diagnostics, mitigation, verification, troubleshooting, follow-up
  • Project update: summary, status, progress, risks, decisions needed, next steps
  • Meeting notes: summary, decisions, actions, open questions

Technical And Decision Docs

  • State the key recommendation, invariant, or system behavior early.
  • Explain the path from user action to system response.
  • Show component roles, boundaries, ownership, or options in tables when useful.
  • Call out deployment, authentication, tenant, policy, data, security, and privacy boundaries when relevant.
  • Use Mermaid for architecture, sequence, lifecycle, and rollback flows when it communicates more clearly than prose.
  • Keep raw payloads, exhaustive configuration, and detailed estimates out of the main argument unless they determine the decision.
  • For consequential decisions, compare options against explicit factors and record ownership and next actions.

Image Prompts

Add an image prompt only when a visual would materially shorten or clarify the document. Do not generate the image unless explicitly asked.

Image prompt: Create a clean architecture diagram showing [components], [data
flow], [external dependencies], and [failure or rollback path]. Use labels that
match the document.

Style And Links

  • Prefer short paragraphs, concrete bullets, and system-specific language.
  • Do not add sections just because a template contains them.
  • Do not repeat the same idea across the summary, context, and conclusion.
  • Avoid em dashes, adjacent hyphens, semicolons, and stock AI phrasing.
  • Link descriptive words instead of pasting bare URLs.
  • Put a source link next to a sourced claim. Add a final References section only when a consolidated source list helps the reader.
  • Do not end with a generic conclusion. End with the decision, owner, or next action when one exists.

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.