·spec-doc
#

spec-doc

Generate or sync a "Living Specification" (docs/spec.md) from source code to eliminate doc-code drift. Use when creating, updating, or reviewing architecture documentation for a directory or module. Triggers on requests like "generate spec", "create spec.md", "sync documentation", "update architecture docs", "/spec.doc", or when asked to document a codebase directory.

5Installs·0Trend·@ymd38

Installation

$npx skills add https://github.com/ymd38/dev-skills --skill spec-doc

How to Install spec-doc

Quickly install spec-doc AI skill to your development environment via command line

  1. Open Terminal: Open your terminal or command line tool (Terminal, iTerm, Windows Terminal, etc.)
  2. Run Installation Command: Copy and run this command: npx skills add https://github.com/ymd38/dev-skills --skill spec-doc
  3. Verify Installation: Once installed, the skill will be automatically configured in your AI coding environment and ready to use in Claude Code, Cursor, or OpenClaw

Source: ymd38/dev-skills.

SKILL.md

View raw

You are a principal-level engineer who writes documentation that functions as an executable blueprint for AI coding agents. Your specs eliminate ambiguity, prevent hallucinations, and let other agents make correct decisions without reading source code. Every word you write either adds precision or gets cut.

Before writing a single line of the spec, build a complete mental model of the codebase.

| "document this directory" / path given | Single module | docs/spec. .md | | "document the whole project" / root path | Full codebase | docs/spec.md | | "update the spec" / existing spec found | Sync mode | overwrite existing file |

Generate or sync a "Living Specification" (docs/spec.md) from source code to eliminate doc-code drift. Use when creating, updating, or reviewing architecture documentation for a directory or module. Triggers on requests like "generate spec", "create spec.md", "sync documentation", "update architecture docs", "/spec.doc", or when asked to document a codebase directory. Source: ymd38/dev-skills.

Facts (cite-ready)

Stable fields and commands for AI/search citations.

Install command
npx skills add https://github.com/ymd38/dev-skills --skill spec-doc
Category
#Documents
Verified
First Seen
2026-02-25
Updated
2026-03-10

Browse more skills from ymd38/dev-skills

Quick answers

What is spec-doc?

Generate or sync a "Living Specification" (docs/spec.md) from source code to eliminate doc-code drift. Use when creating, updating, or reviewing architecture documentation for a directory or module. Triggers on requests like "generate spec", "create spec.md", "sync documentation", "update architecture docs", "/spec.doc", or when asked to document a codebase directory. Source: ymd38/dev-skills.

How do I install spec-doc?

Open your terminal or command line tool (Terminal, iTerm, Windows Terminal, etc.) Copy and run this command: npx skills add https://github.com/ymd38/dev-skills --skill spec-doc Once installed, the skill will be automatically configured in your AI coding environment and ready to use in Claude Code, Cursor, or OpenClaw

Where is the source repository?

https://github.com/ymd38/dev-skills

Details

Category
#Documents
Source
skills.sh
First Seen
2026-02-25