Skip to content

Add skill definition to guide AI coding agents with Diataxis principles#162

Open
ertembiyik wants to merge 1 commit intoevildmp:mainfrom
ertembiyik:ertembiyik/diataxis-skill
Open

Add skill definition to guide AI coding agents with Diataxis principles#162
ertembiyik wants to merge 1 commit intoevildmp:mainfrom
ertembiyik:ertembiyik/diataxis-skill

Conversation

@ertembiyik
Copy link

AI coding agents increasingly write and maintain documentation, but they default to unstructured output that mixes tutorials, reference, and explanation. This PR adds a skill definition that teaches agents to apply Diataxis principles when writing docs.

The skill uses a compressed index (SKILL.md) with the core framework: the 2x2 matrix, compass, quick rules per type, common mistakes, plus symlinked references back to the repo’s .rst files. Content changes to existing files are reflected automatically via symlinks. Adding or removing .rst files requires updating the symlinks and index accordingly.

What’s added:

  • skills/diataxis/SKILL.md — compressed index (~130 lines)
  • skills/diataxis/references/ — 15 relative symlinks to existing .rst files

No existing files are modified.

Create a Claude skill that helps agents write, review, and structure documentation using the Diataxis methodology. The skill uses a compressed index in SKILL.md paired with symlinked reference files from the framework repo, following the Vercel research pattern where passive context outperforms active retrieval. Includes the four documentation types (tutorials, how-to guides, reference, explanation) and the compass classification tool.

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
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