Skills

The skill files dewey init writes, and the prompt templates the package exports

Skills are instructions for agents, not code. They say how to do a task, what to check and what counts as done.

Skills init writes

dewey init writes two skill files. It leaves either alone if it already exists.

FileForContents
SKILL.mdAgents using the project from outsidePoints to the quickstart and llms.txt, lists the project's rules, and says not to treat maps or history as the public interface
.agents/skills/dewey-author/SKILL.mdAgents maintaining the docsThe authoring loop: dewey check --json, which, new, review, build, then check; keeping the front door within 150 lines

dewey check reports SKILL_MISSING if SKILL.md is missing. Edit SKILL.md to suit the project; the authoring skill works as written.

Prompt templates

The package also exports prompt templates. They do not inspect a repository or change files; you paste them into an agent with the context they ask for.

SkillPurposeUsage
docsReviewAgentReviews doc quality page-by-page — catches stale content, missing sections, unclear explanations, broken linksUse the docsReviewAgent skill to review docs/overview.md
promptSlideoutGeneratorGenerates AI-consumable prompt configurations for documentation pagesUse promptSlideoutGenerator to create prompt config for the API page
docsDesignCriticCritiques page structure and visual design — heading hierarchy, component usage, information densityUse docsDesignCritic to critique docs/quickstart.md
installMdGeneratorCreates install.md files following the installmd.org specUse installMdGenerator to create install.md from dewey.config.ts
improveAIPromptsIteratively discovers prompt opportunities, drafts self-contained contracts, reviews them, and refines the resultUse improveAIPrompts.passes.discovery.prompt, then draft/review/refine passes

improveAIPrompts is the public name. improveAIPromptsSkill is exported only as a deprecated compatibility alias and references the same object.

import { improveAIPrompts } from '@deweydocs/dewey'const discovery = improveAIPrompts.passes.discovery.promptconst review = improveAIPrompts.passes.review.prompt  .replace('{PASTE_DRAFT}', draft)

The pass prompts guide an LLM; they do not inspect a repository or rewrite files by themselves. Supply the requested context, evaluate the model output against the included quality criteria, and retain human review for project-specific constraints.


Creating Custom Skills

Skills live as markdown files in your project:

.agents/skills/  my-skill.md

Each skill follows a consistent structure:

my-skill.md
# Skill NameBrief description of what this skill does.## When to Use- Situation 1- Situation 2## InstructionsStep-by-step guide for the AI agent:1. First, check X2. Then, do Y3. Finally, verify Z## ExampleShow an example input and expected output.

Best Practices

DoDon't
Be specific and actionableUse vague instructions
Include examplesAssume context
Define success criteriaLeave outcomes ambiguous
Reference file pathsUse relative descriptions