Skip to content

chore(skills): improve write-docs principles and consolidate content type taxonomy#1758

Merged
nick-inkeep merged 3 commits intomainfrom
chore/write-docs-skill-principles
Feb 6, 2026
Merged

chore(skills): improve write-docs principles and consolidate content type taxonomy#1758
nick-inkeep merged 3 commits intomainfrom
chore/write-docs-skill-principles

Conversation

@nick-inkeep
Copy link
Collaborator

Summary

Improves the write-docs AI agent skill with stronger documentation principles and cleaner structure.

Principles

  • Added 4 new principles:

    • For the right audience — Tailor voice, depth, and framing to who will read the page (developer vs admin vs end-user)
    • Consistency — Same terminology, structure, and formatting patterns across all docs
    • Accuracy over speed — Cross-reference source code to verify types, parameter names, and described behavior match the actual implementation (scoped to what a CI/CD agent can do — no compilation, just source cross-referencing)
    • Keep docs current — When code changes, existing docs must be updated in the same change
  • Reordered all 11 principles by importance and semantic adjacency:

    1. Coverage & currency (why we write docs)
    2. Quality gates (accuracy, consistency)
    3. Audience & architecture (for whom, where)
    4. Writing approach (clarity, directness, progressive disclosure)
    5. Content scoping (focus, dedup/linking)

Content type consolidation

  • Removed 3 redundant representations of the same content type taxonomy:
    • ASCII decision tree in Step 1
    • Pattern/Focus table in Step 1
    • Empty "By content type" heading in Philosophy section
  • Replaced with a single unified table combining when-to-use, focus, and title style in one place

Other minor changes

  • Added "Step 0: Identify Relevant Surface Areas" with a checklist for mapping change impact before writing
  • Added "Understand context" as workflow step 0
  • Expanded "Use when" and "Do NOT use when" sections to be more precise about surface-area-driven triggers

Test plan

  • Verify the symlinked copies in .cursor/, .codex/, .claude/ are regenerated correctly by tooling
  • Spot-check that existing doc workflows still reference valid step numbers
  • Confirm no broken internal references within the skill file

Made with Cursor

…type taxonomy

Add four new documentation principles (For the right audience, Consistency,
Accuracy over speed, Keep docs current) and reorder all principles by
importance and semantic adjacency. Consolidate three redundant representations
of the content type taxonomy (decision tree, pattern/focus table, and
"By content type" heading) into a single unified table in Step 1.

Co-authored-by: Cursor <cursoragent@cursor.com>
@changeset-bot
Copy link

changeset-bot bot commented Feb 6, 2026

⚠️ No Changeset found

Latest commit: a48e417

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@vercel
Copy link

vercel bot commented Feb 6, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
agents-api Ready Ready Preview, Comment Feb 6, 2026 4:24am
agents-docs Ready Ready Preview, Comment Feb 6, 2026 4:24am
agents-manage-ui Ready Ready Preview, Comment Feb 6, 2026 4:24am

Request Review

@claude
Copy link
Contributor

claude bot commented Feb 6, 2026

Claude finished @nick-inkeep's task in 2m 41s —— View job


PR Review Summary

2 Key Findings | Risk: Low

This is a well-structured improvement to the write-docs AI skill that adds important principles and consolidates redundant content. The changes are internally consistent and improve the skill's effectiveness.

🟡 Minor (2)

🟡 1) .agents/skills/write-docs/SKILL.md:57 Typo: "analagous" → "analogous"

Issue: Line 57 contains a typo in the word "analogous".

Why: Minor quality issue that could distract readers and doesn't reflect the "Accuracy" principle the skill itself now espouses.

Fix:

- Don't bundle unrelated surfaces into one page unless a natural fit with the existing document or similar analagous docs.
+ Don't bundle unrelated surfaces into one page unless a natural fit with the existing document or similar analogous docs.

🟡 2) .agents/skills/write-docs/SKILL.md:57 Grammar: subject-verb agreement

Issue: The same line has "unless a natural fit" which is missing a verb.

Why: Slightly awkward phrasing that could be clearer.

Fix:

- Don't bundle unrelated surfaces into one page unless a natural fit with the existing document or similar analagous docs.
+ Don't bundle unrelated surfaces into one page unless it's a natural fit with the existing document or similar analogous docs.

✅ Verified Positive Changes

  1. write-skill removal is correct — Verified that no write-skill skill exists in .agents/skills/. The removed reference was pointing to a non-existent skill.

  2. Workflow step references remain valid — The workflow steps reference "Step 1", "Step 2", etc., and all referenced sections exist with matching numbers.

  3. Philosophy section repositioning is an improvement — Moving Philosophy before Workflow creates better reading flow (principles → process → details).

  4. Content type consolidation is well-executed — The unified table effectively combines "when to use", "focus", and "title style" in one scannable format, replacing three separate representations.

  5. New principles are valuable additions — "Accuracy over speed", "Keep docs current", "Consistency", and "For the right audience" are all actionable and align with documentation best practices.

  6. Step 0 (Identify Relevant Surface Areas) is a useful addition — Provides a concrete checklist for pre-writing analysis that will help AI agents produce more complete documentation.


✅ APPROVE

Summary: This is a clean, well-thought-out improvement to the write-docs skill. The structural changes (moving Philosophy before Workflow, consolidating the content type table) improve readability. The new principles add valuable guidance. Two minor typos/grammar issues noted above can be fixed in a follow-up or this PR. No blocking concerns.


Other Findings (0)

No other findings. All changes reviewed and validated.

Fix "analagous" → "analogous" and add missing verb "it's" for
subject-verb agreement.

Co-authored-by: Cursor <cursoragent@cursor.com>
@claude
Copy link
Contributor

claude bot commented Feb 6, 2026

Claude finished @nick-inkeep's task in 1m 32s —— View job


PR Review Summary

1 Key Finding | Risk: Low

This is a well-structured improvement to the write-docs AI skill. The previous review findings (typo "analagous" → "analogous" and grammar "unless a natural fit" → "unless it's a natural fit") were addressed in the latest commit 80ed046f.

🟡 Minor (1)

🟡 1) .agents/skills/write-docs/SKILL.md:57 Grammar: "as a appropriate" → "as appropriate"

Issue: Line 57 contains "as a appropriate" which should be "as appropriate" (extra article "a").

Why: Minor grammar issue that slightly detracts from the document quality.

Fix:

- - **Right detail, right place**: Avoid duplication. If something is explained elsewhere, link to it or reuse it in some way as a appropriate.
+ - **Right detail, right place**: Avoid duplication. If something is explained elsewhere, link to it or reuse it in some way as appropriate.

✅ Verified Positive Changes

  1. Previous review findings addressed — The typo ("analagous" → "analogous") and grammar ("unless a natural fit" → "unless it's a natural fit") issues were fixed in commit 80ed046f.

  2. write-skill removal is correct — Verified that no write-skill skill exists in .agents/skills/. The removed reference was pointing to a non-existent skill.

  3. Philosophy section repositioning is an improvement — Moving Philosophy before Workflow creates better reading flow (principles → process → details).

  4. Content type consolidation is well-executed — The unified table effectively combines "when to use", "focus", and "title style" in one scannable format, replacing three separate representations.

  5. New principles are valuable additions — "Accuracy over speed", "Keep docs current", "Consistency", and "For the right audience" are all actionable and align with documentation best practices.

  6. Step 0 (Identify Relevant Surface Areas) is a useful addition — Provides a concrete checklist for pre-writing analysis that will help AI agents produce more complete documentation.


✅ APPROVE WITH SUGGESTIONS

Summary: This is a clean, well-thought-out improvement to the write-docs skill. The previous review findings were addressed in the latest commit. One remaining minor grammar issue noted above ("as a appropriate" → "as appropriate") can be fixed in a follow-up or this PR. No blocking concerns.


Other Findings (1)

Potentially valid

Location Issue Reason Excluded
SKILL.md:63 Trailing whitespace Very minor; likely auto-cleaned by formatters

Co-authored-by: Cursor <cursoragent@cursor.com>
@claude
Copy link
Contributor

claude bot commented Feb 6, 2026

Claude finished @nick-inkeep's task in 2m 4s —— View job


PR Review Summary

0 Key Findings | Risk: Low

This is a well-structured improvement to the write-docs AI skill. All previous review findings have been addressed in the latest commits.


✅ Verified Positive Changes

  1. Previous review findings addressed — All 3 issues from prior reviews were fixed:

    • Typo "analagous" → "analogous" ✓ (commit 80ed046f)
    • Grammar "unless a natural fit" → "unless it's a natural fit" ✓ (commit 80ed046f)
    • Grammar "as a appropriate" → "as appropriate" ✓ (commit a48e417c)
  2. write-skill removal is correct — Verified that no write-skill skill exists in .agents/skills/. The removed reference was pointing to a non-existent skill.

  3. Philosophy section repositioning is an improvement — Moving Philosophy before Workflow creates better reading flow (principles → process → details).

  4. Content type consolidation is well-executed — The unified table effectively combines "when to use", "focus", and "title style" in one scannable format, replacing three separate representations (ASCII tree, Pattern/Focus table, empty heading).

  5. New principles are valuable additions — The 4 new principles are actionable and align with documentation best practices:

    • "Accuracy over speed" — cross-reference source code
    • "Keep docs current" — update docs with code changes
    • "Consistency" — same terminology across all docs
    • "For the right audience" — tailor voice and depth
  6. Step 0 (Identify Relevant Surface Areas) is a useful addition — Provides a concrete checklist for pre-writing analysis that will help AI agents produce more complete documentation.

  7. Skill copies are synchronized — Verified that .agents/skills/write-docs/SKILL.md, .claude/skills/write-docs/SKILL.md, and .cursor/skills/write-docs/SKILL.md are identical.


✅ APPROVE

Summary: This is a clean, well-thought-out improvement to the write-docs skill. All previous review findings have been addressed. The structural changes improve readability, and the new principles add valuable guidance for AI agents writing documentation. No blocking concerns. 🎉


Other Findings (1)

Potentially valid

Location Issue Reason Excluded
SKILL.md:63 Trailing whitespace after "changed" Very minor; auto-cleaned by most formatters

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant