A systematic approach to AI-assisted software development.
For people who direct AI to build software but don't code themselves.
Directions is a documentation and workflow system that helps you:
- Define clearly - Multi-phase discovery creates specs with acceptance criteria
- Plan atomically - Break work into <30 min tasks with validation
- Build with fresh context - Wave-based execution prevents context degradation
- Validate rigorously - Backpressure and multi-perspective review
- Compound learnings - Extract patterns so you never solve the same problem twice
Every feature flows through three phases:
DEFINE ──gate──> PLAN ──gate──> BUILD
│ │ │
▼ ▼ ▼
Spec Task List Working Code
Principle: 80% on Define + Plan, 20% on Build.
Read-on-demand model: the universal docs in this repo are the single source of truth.
They are never copied into your projects — copies drift and stop receiving updates.
Claude reads them on demand from your local clone of this repo, routed by the Directions
Index in your global ~/.claude/CLAUDE.md.
git clone https://github.com/Xpycode/LLM-Directions.git
cd LLM-Directions
./install-directions.shThen open ~/.claude/CLAUDE.md and replace every [LOCAL_DIRECTIONS_PATH] placeholder
with the path to your local clone (the install script prints it).
- Open a Claude session in your project and run
/setup— it scaffolds only the project-specific files:docs/PROJECT_STATE.md(the "is Directions set up?" sentinel),docs/sessions/,docs/decisions.md,docs/glossary.md. Nothing else is copied. - Run
/spec deepto create your first spec - Run
/make-planto break into tasks,/executeto build
If a project still contains copied universal docs (docs/00_base.md, docs/20_*.md, …),
run /directions update — it removes the stale copies and switches the project to
read-on-demand. Your project-specific files (state, sessions, decisions) are untouched.
/spec → /make-plan → /execute → /check → /log
│ │ │ │ │
Spec Tasks Build Review Learn
your-project/
├── CLAUDE.md ← Project-specific AI context
├── IMPLEMENTATION_PLAN.md ← Active task list (waves, delete when done)
├── AGENTS.md ← Subagent patterns & context
├── specs/ ← Feature specifications
│ └── [feature].md
└── docs/ ← Scaffolded by /setup — project files ONLY
├── PROJECT_STATE.md ← Current funnel position (the sentinel)
├── sessions/ ← Session logs
├── decisions.md ← Why we chose X over Y
└── glossary.md ← Project-specific terms
LLM-Directions/ (this repo — read on demand, never copied)
├── 00_base.md ← System overview + document router
├── 01_quick-reference.md ← Daily cheatsheet
├── 04_architecture-decisions.md ← Interview → tech mapping
├── PATTERNS-COOKBOOK.md ← Pattern index (patterns live in cookbook/)
├── 10-19: Setup docs
├── 20-29: Technical gotchas
├── 30-39: Quality & debugging
├── 40-49: Terminology reference
└── 50-62: Advanced patterns
| Command | Phase | Purpose |
|---|---|---|
/spec (deep, examples) |
Define | Multi-phase discovery, example mapping, creates spec |
/make-plan |
Plan | Creates IMPLEMENTATION_PLAN.md with waves |
/execute (next) |
Build | Wave-based execution with subagents; pick next task |
/check (code, ship, security) |
Review | Code quality, production checklist, security audit |
/log |
Learn | Update session log; also covers end-of-session close, handoff, blockers, phase changes |
/status (full, arrive) |
Any | Current state summary; full dump; sit-down handover check |
| Command | Purpose |
|---|---|
/setup |
Detect project state, offer setup/migration |
/decide |
Record an architectural decision |
/learned |
Add term to personal glossary |
/cookbook |
Manage reusable code patterns |
/directions (update) |
Show all available commands; pull latest Directions from GitHub |
/worktree |
Parallel session isolation via git worktrees |
/test-app |
AppProbe UI automation testing |
Every task has validation that must pass before commit:
swift build # Compiles?
swiftlint # Clean?
swift test # Tests pass?No commit until green.
Tasks grouped by dependencies:
- Wave 1: Parallel (no dependencies)
- Wave 2: Depends on Wave 1
- Final: Verification
After each session, extract learnings:
- Patterns →
AGENTS.md - Terms →
44_my-glossary.md - Decisions →
decisions.md
Reusable code patterns extracted from production apps. Copy-first beats building new.
/cookbook # Update cookbook (rescan for patterns)
/cookbook add # Quick-add a pattern you just built
/cookbook search # Search existing patterns
Included patterns:
- Window layouts (NavigationSplitView, HSplitView, multi-window)
- Export dialogs (NSSavePanel, NSOpenPanel, progress indicators)
- App lifecycle (initialization order, scene phase handling)
- MCP memory integration (Vestige patterns)
PATTERNS-COOKBOOK.md is the index; the full code snippets live as individual files in cookbook/.
git clone https://github.com/Xpycode/LLM-Directions.git
cd LLM-Directions
./install-directions.shOr manually:
mkdir -p ~/.claude/plugins/local
ln -sf /path/to/LLM-Directions ~/.claude/plugins/local/directions
cp commands/* ~/.claude/commands/
cp CLAUDE-GLOBAL-TEMPLATE.md ~/.claude/CLAUDE.mdThen replace every [LOCAL_DIRECTIONS_PATH] placeholder in ~/.claude/CLAUDE.md with
the path to your local clone — a raw copy of the template is not functional without this.
cp -r commands/* ~/.claude/commands/| Hook | Trigger | Behavior |
|---|---|---|
| SessionStart | New session | Auto-loads project state |
| Stop | Ending session | Reminds to run /log |
| UserPromptSubmit | Every prompt | Suggests relevant docs |
| PostToolUse | After commits | Suggests /decide for architecture |
- Ralph Playbook - Funnel methodology, backpressure
- Compound Engineering - Learning extraction
- Context Engineering Kit - Reflexion patterns
- miniPM - Task phase progression
- Deep Research Skill - Multi-phase discovery
- Simone - Project management framework
Synthesized from 229 documentation files across 15+ shipped macOS/iOS projects, enhanced with community patterns from the Claude Code ecosystem.
MIT - Use freely, modify as needed.