agentleFS
McGoMcGo/claude-code-specumentation/CLAUDE.md

claude-code-specumentation

CLAUDE.md2 starsChanged 9 months agoMITView on GitHub

specumentation is a Claude Code skill (invoked via /specumentation) that combines specification and documentation into a single workflow. It enforces a "spec first" development approach and maintains living documentation throughout the product lifecycle, with the ability to generate various document types as PDF. The skill has two parts: Deployed to ~/.claude/specumentation-mcp/ by install.sh. Document types live in documents/ and follow this pattern: Built-in types: user-manual, elevator-pitch, executive-summary, architecture, ticket-overview. New types can be added by creating a new .md file…

  • In this repositoryOne other file it gives its agents.

The file

We split this CLAUDE.md into the rules it gives an agent

1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Document types live in documents/ and follow this pattern:

    line 26

≈ “Common” is an estimate: at least 1 in 5 of the 29,248 CLAUDE.md files we read have a rule of the same kind, not the same words. “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
CLAUDE.md

CLAUDE.md

This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.

Project Overview

specumentation is a Claude Code skill (invoked via /specumentation) that combines specification and documentation into a single workflow. It enforces a "spec first" development approach and maintains living documentation throughout the product lifecycle, with the ability to generate various document types as PDF.

Skill Architecture

The skill has two parts:

Declarative Skill (no runtime code)

  • SKILL.md — Core skill definition with frontmatter metadata and phased execution instructions. This is what Claude Code reads and executes.
  • documents/ — Document type definitions shipped with the skill. Each .md file defines a document type (frontmatter + generation prompt) that the publish phase uses.
  • install.sh — Installer that symlinks the skill and deploys the MCP server.

MCP Server (Python)

  • mcp-server/server.py — FastMCP-based server (~250 lines) that exposes concept documents to Claude Desktop via 6 tools: list_projects, set_project, get_overview, list_concepts, get_concept, update_concept.
  • mcp-server/specumentation-mcp — Bash CLI (~100 lines) for project registration (init) and listing (list).

Deployed to ~/.claude/specumentation-mcp/ by install.sh.

Document Type System

Document types live in documents/ and follow this pattern:

---
name: user-manual          # Identifier for publish command
title: "User Manual"       # Human-readable title
output: "[project]-user-manual-[date]"  # Filename pattern
description: "..."         # What this type produces
---
[Generation prompt with structure and style instructions]

Built-in types: user-manual, elevator-pitch, executive-summary, architecture, ticket-overview. New types can be added by creating a new .md file in documents/.

Key Conventions

  • Skills are installed as symlinks in ~/.claude/skills/
  • SKILL.md frontmatter uses name, description, disable-model-invocation
  • PDF generation uses headless Chrome (--headless --disable-gpu --print-to-pdf)
  • Documents are never deleted — they form an audit trail
  • Language support via lang=XX parameter parsing
  • MCP server uses FastMCP with stdio transport
  • Project registry at ~/.claude/specumentation-mcp/projects.json

Commands

# Install skill globally (also deploys MCP server)
bash install.sh

# Invoke in any project (Claude Code)
/specumentation                          # Full cycle: all phases
/specumentation init                     # Set up docs/ directory structure
/specumentation concept [topic]          # Create/update a concept document
/specumentation epics                    # Derive epics with tickets from concepts
/specumentation inbox                    # Process external docs from docs/in/
/specumentation update                   # Sync documentation with code changes
/specumentation work                     # Pick next open ticket and implement it
/specumentation work E-02.03             # Implement a specific ticket
/specumentation whats-next               # Suggest the next step to take
/specumentation ticket-overview          # Show epic/ticket status overview + PDF
/specumentation publish                  # Generate all document types as PDF
/specumentation publish user-manual      # Generate a specific document type
/specumentation publish elevator-pitch lang=de  # Combined parameters

# MCP project management
specumentation-mcp init                  # Register current project
specumentation-mcp list                  # List registered projects

Opinionated Target Project Structure

The skill enforces this structure in every project where it is used:

docs/
├── concept/          # Concept documents (functional & technical specs)
│   └── 00-overview.md
├── epics/            # Epics with tickets, derived from concepts
├── documents/        # Generated documents (PDF, HTML) + layout template
│   └── document-layout.html
├── assets/           # Logos, color definitions, images for documentation
└── in/               # Inbox for external docs (e.g. from ChatGPT), deleted after processing

Specumentation

This project uses specumentation for spec-first development.

Assumptions

  • Document language: English (en) — derived from README language
  • Concept language: English (en)
  • Project name: specumentation
  • Project version source: manual — no package manager config found

Directory Structure

  • docs/concept/ — Concept documents (specifications)
  • docs/epics/ — Epics with tickets
  • docs/documents/ — Generated documents (PDF, HTML)
  • docs/assets/ — Branding resources (logos, colors)
  • docs/in/ — Inbox for external documents

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.