Files
giuseppe-trisciuoglio__deve…/plugins/developer-kit-specs
Giuseppe 373aed3794 fix(specs): resolve skill-validator errors
- constitution SKILL.md: add missing ## Overview and ## Examples sections
- architecture.md: wrap @Autowired and @Transactional in inline code
- security-patterns.md: rewrite to fix unclosed fenced code block
- Remove emoji/check marks that may cause parsing issues

All 777 files now pass validation with 10 warnings (acceptable).
2026-05-22 12:57:59 +02:00
..

Developer Kit Specs

Specifications-driven development workflow for transforming ideas into functional specifications and executable tasks.

Overview

This plugin provides a complete workflow for transforming ideas into implemented code:

  • Constitution: Define the architectural DNA of the project — non-negotiable principles, approved stack, AI guardrails, and security constraints
  • Brainstorming: Transform ideas into pure functional specifications (WHAT, not HOW)
  • Task Generation: Convert functional specifications into executable tasks
  • Task Management: Add or split tasks to refine implementation scope
  • Implementation: Execute specific tasks with integrated verification and cleanup
  • Review: Verify implemented tasks meet specifications and quality standards
  • Synchronization: Keep spec, tasks, and code aligned throughout the lifecycle
  • Ralph Loop: Step-by-step automation for long-running implementations

Quick Start

# 0. Define project constitution (once per project)
/developer-kit-specs:constitution create

# 1. Create a functional specification
/developer-kit-specs:specs.brainstorm "Add user authentication with JWT tokens"

# 2. Convert specification to tasks
/developer-kit-specs:specs.spec-to-tasks --lang=spring docs/specs/001-user-auth/

# 3. Implement a task (includes verification and optional cleanup)
/developer-kit-specs:specs.task-implementation --lang=spring --task="docs/specs/001-user-auth/tasks/TASK-001.md"

# 4. Review implementation
/developer-kit-specs:specs.task-review --lang=spring docs/specs/001-user-auth/tasks/TASK-001.md

# 5. Sync specification with implementation
/developer-kit-specs:specs.sync docs/specs/001-user-auth/

Workflow

Constitution → Idea → Functional Specification → Tasks → Implementation → Review → Sync → Done
(constitution)  (brainstorm)  (spec-to-tasks)  (task-implementation)  (task-review)  (sync)

Specification Structure

Each specification lives in docs/specs/[ID-feature]/:

docs/specs/001-user-auth/
├── 2026-04-09--user-auth.md           # Main functional specification
├── user-request.md                    # Original user input
├── brainstorming-notes.md             # Brainstorming session context
├── decision-log.md                    # Decision audit trail
├── data-model.md                      # Generated from spec-to-tasks
├── contracts/                         # Generated interface artifacts
│   ├── auth-api.openapi.yaml
│   └── README.md
├── traceability-matrix.md             # Requirements-to-task mapping
├── knowledge-graph.json               # Optional cached codebase analysis
└── tasks/
    ├── TASK-001.md                    # Individual task
    ├── TASK-001--review.md           # Review report
    └── TASK-002.md

Commands

Constitution

Command Description
/developer-kit-specs:constitution create Create docs/specs/architecture.md and/or docs/specs/ontology.md as project setup
/developer-kit-specs:constitution update --section=... Update a specific section of the constitution
/developer-kit-specs:constitution check --target=... Validate a spec/task/file against the constitution
/developer-kit-specs:constitution show Display the current constitution

Specification Creation

Command Description
/developer-kit-specs:specs.brainstorm [idea] Full specification creation for complex features

| /developer-kit-specs:specs.spec-check [folder] | Resolve [NEEDS CLARIFICATION] markers and scan for ambiguities | | /developer-kit-specs:specs.change-spec [options] | Document delta/iterations and bug fixes with unchanged behavior analysis | | /developer-kit-specs:specs.technical-plan [--spec=...] | Document HOW the feature will be built (stack, decisions, phases) |

Task Generation and Management

Command Description
/developer-kit-specs:specs.spec-to-tasks [--lang=...] [folder] Convert specification to executable tasks
/developer-kit-specs:specs.task-manage --action=add Add a new task
/developer-kit-specs:specs.task-manage --action=split Split an existing task

Task Implementation

Command Description
/developer-kit-specs:specs.task-implementation [--lang=...] [task-file] Implement a specific task (includes cleanup phase)
/developer-kit-specs:specs.task-review [--lang=...] [task-file] Verify implemented task meets specification

Synchronization

Command Description
/developer-kit-specs:specs.sync [folder] Full sync: KG + task enrichment + code drift detection
/developer-kit-specs:specs.sync [folder] --kg-only Update Knowledge Graph only
/developer-kit-specs:specs.sync [folder] --code-only Detect spec-to-code deviations only

Automation

Command Description
/developer-kit-specs:specs.ralph-loop Step-by-step automation (use Python script directly)

Language Support

Commands support --lang= with values:

Value Framework Code Review Agent
java Java SE developer-kit-java:java-software-architect-review
spring Spring Boot developer-kit-java:spring-boot-code-review-expert
typescript Node.js developer-kit:general-code-reviewer
nestjs NestJS developer-kit-typescript:nestjs-code-review-expert
react React developer-kit:general-code-reviewer
python Django/FastAPI developer-kit-python:python-code-review-expert
php Laravel/Symfony developer-kit-php:php-code-review-expert
general Any developer-kit:general-code-reviewer

Task Status Workflow

Tasks use a standardized status workflow with automatic date tracking:

pending → in_progress → implemented → reviewed → completed
              ↓
          blocked (can return to in_progress)
Status Description Date Fields Set
pending Initial state None
in_progress Work started started_date
implemented Coding complete implemented_date
reviewed Review passed reviewed_date
completed Cleanup done completed_date, cleanup_date
blocked Cannot proceed None
optional Not required None
superseded Replaced by other tasks None
escalated Design-level problem None

Auto-Status Management

Task status is automatically managed by hooks when you edit task files:

User Action Automatic Status Update
Edit task file pending → in_progress
Check AC boxes Progress through implementation
Check all DoD boxes implemented
Approval via Review implemented → reviewed
Cleanup completion reviewed → completed

Knowledge Graph

The Knowledge Graph maintains a structured view of the codebase state relative to the specification. It is stored in knowledge-graph.json and updated via specs.sync.