-
Notifications
You must be signed in to change notification settings - Fork 0
Architecture
The plugin is a pure-markdown Claude Code plugin with zero runtime dependencies. No build system, no npm install — just structured markdown files that Claude Code loads at runtime to shape its development behavior.
Note
Understanding the architecture is optional for using the plugin. This page is for contributors and curious users who want to know how the pieces fit together.
The plugin loads content in 4 layers, each with different timing and scope:
Layer 1 · Rules auto-loaded every session rules/effective-development.md
│
▼
Layer 2 · Session Hook runs at session start hooks/session-start.sh
│
▼
Layer 3 · Skills on-demand, user-invoked skills/*/SKILL.md
│
▼
Layer 4 · Agents cross-verification 8-habit-reviewer
rules/effective-development.md is loaded automatically into every Claude Code session via Claude's rules system. It contains the full 8-Habit playbook with Rules, Anti-patterns, and Checkpoints per habit. This is the foundation — always present in context, shaping Claude's behavior even if no skills are invoked.
hooks/session-start.sh runs once at the start of every session. Budget: ≤300 tokens (enforced by test-verbosity-hook.sh).
Responsibilities:
- Print the 7-step workflow reminder
- Detect workflow progress (existing PRD/ADR/TASKS artifacts)
- Read
~/.claude/habit-profile.mdand emit maturity-level adaptation directive - Respect
HABIT_QUIET=1opt-out (ADR-006)
23 skills in skills/*/SKILL.md, loaded only when the user invokes them (e.g., /requirements, /design). Each skill has YAML frontmatter:
---
name: <skill-name>
description: >
When to use this skill
user-invocable: true
argument-hint: "[arg description]"
allowed-tools: ["Read", "Glob", "Grep"]
prev-skill: <predecessor|any|none>
next-skill: <successor|any|none>
---Progressive disclosure (v2.10.0, ADR-009): Three large skills use a SKILL.md + reference.md + examples.md triad. The main SKILL.md loads, then pulls in reference/examples only when needed via Load ${CLAUDE_PLUGIN_ROOT}/... directives.
8-habit-reviewer — a read-only agent (Read, Glob, Grep tools only, model: sonnet) invoked by /cross-verify. Performs deep 17-question analysis against all 8 habits independently.
research-verifier — validates cited URLs and file paths in research briefs.
Every workflow skill declares prev-skill and next-skill in its frontmatter, creating a directed acyclic graph (DAG):
/research → /requirements → /design → /breakdown → /build-brief → /review-ai → /deploy-guide → /monitor-setup
Each skill documents:
- Expects from predecessor: what input it needs
- Produces for successor: what output the next step consumes
Important
The DAG is machine-verified. tests/test-skill-graph.sh validates: no cycles, no dangling references, symmetric edges, no orphan skills.
4 validators run in CI with 482+ total assertions:
| Validator | What it checks |
|---|---|
validate-structure.sh |
Skill frontmatter, directory structure, version consistency across 4 files |
validate-content.sh |
Skill complexity (word budget), content depth, cross-reference integrity |
test-skill-graph.sh |
DAG integrity — cycles, dangling refs, symmetric edges, orphans |
test-verbosity-hook.sh |
12 assertions across all 8 hook branches + HABIT_QUIET + token budget |
Every non-trivial decision is documented in docs/adr/:
| ADR | Decision |
|---|---|
| 001 | Orchestration patterns for multi-step workflows |
| 002 | Research skill modes and depth levels |
| 003 | Content validation fitness functions |
| 004 | Wiki stored as build artifact in source control |
| 005 | EU AI Act compliance toolkit scope |
| 006 | Audience honesty + HABIT_QUIET opt-out |
| 007 | agentskills.io compatibility (NO-GO) |
| 008 | User maturity calibration design |
| 009 | Progressive-disclosure skill split convention |
The guides/ directory contains supporting material referenced by skills:
- Templates: PRD, task list, review, lesson, interview protocol, ADR
- Reference docs: EARS notation, cross-verification questions, whole-person rubrics
- Protocols: Structured output format, orchestration patterns, verbosity adaptation rules
- Cross-verify packs: Domain-specific question sets (API, frontend, infra, AI/ML, mobile)
Source of truth: this wiki is generated from docs/wiki/. Edits made through the GitHub Wiki web UI may be overwritten by the next sync. To change a page, open a PR against the repository source file.
Repository · Issues · README · License
Workflow discipline for AI-assisted development
Start
Workflow
- Overview
- 0 · Research
- 1 · Requirements
- 2 · Design
- 3 · Breakdown
- 4 · Build Brief
- 5 · Review AI
- 6 · Deploy Guide
- 7 · Monitor Setup
Operations
Reference
- Habits Reference
- Maturity Model
- Architecture
- Limitations
- Vibe Coding vs Structured
- Harness Engineering
Project