Outline Driven Development – Beyond "specs" or "vibes" using AST analysis and Modern CLI Tools w/ context engineering; batteries-included
git clone https://github.com/OutlineDriven/outline-driven-development ~/.claude/skills/outline-driven-development# Outline Driven Development: The whole new paradigm for the augumented LLM Code Agent workflows.
## `Vibe`s are too *shallow*, `Spec`s are too *complex*.
### Let there be the `outline`.
### And Indeed... Here it is!
## Prerequisites
`ast-grep` | `ripgrep` | `fd` | `lsd` | `tokei` | `bat` | MCPs
### Install Various Rust-based CLI Tools with highest native optimizations through cargo
#### Install Cargo (if not installed)
<https://rustup.rs/>
#### Linux/macOS with cargo
**Install**
```bash
export RUSTFLAGS="-C target-cpu=native -C opt-level=3 -C codegen-units=1 -C strip=symbols"
cargo install ast-grep ripgrep fd-find lsd tokei bat git-delta just
```
#### Windows with cargo
**Install (run inside powershell)**
```powershell
$env:RUSTFLAGS="-C target-cpu=native -C opt-level=3 -C codegen-units=1 -C strip=symbols -C link-arg=/LTCG -C link-arg=/OPT:REF"
cargo install ast-grep ripgrep fd-find lsd tokei bat git-delta just
```
## Installation
- **Gemini CLI:** <https://github.com/OutlineDriven/odin-gemini-cli-extension>
- Quick Install:
- ```gemini extensions install https://github.com/OutlineDriven/odin-gemini-cli-extension```
- **Claude Code:** <https://github.com/OutlineDriven/odin-claude-plugin>
- Quick Install:
- 1. File Based (Recommended): ```git clone https://github.com/OutlineDriven/odin-claude-plugin.git && cp -r ./odin-claude-plugin/ ~/.claude/```
- 2. Plugin Based (Claude Marketplace): ```claude plugin marketplace add OutlineDriven/odin-claude-plugin && claude plugin install odin-claude-plugin@odin-marketplace```
- **Codex CLI:** <https://github.com/OutlineDriven/odin-codex-plugin>
- **Prompt-only (*Manual Apply for IDEs/Agents like Antigravity/Windsurf/Cursor/Augument Code ...*):** [Prompt](BASE_PROMPT.md)
### Recommended MCP Extensions
#### Crucial [Automatically installed]
ast-grep | context7 | sequentialthinking-tools | actor-critic-thinking | shannon-thinking
#### Additional [Manually install if needed]
Time, Tavily, Exa, Ref-tools
## Outline-Driven Development Philosophy
> Deterministic scaffolds harness non-deterministic LLM creativity only when the outline stays the single source of truth and every downstream stage revalidates against it.
### Deterministic-with-Non-Deterministic-LLMs-by-Nature
- **Outline-as-assembly:** Human intent, compliance constraints, and architectural guardrails are compiled into a versioned outline whose hash becomes the control envelope for every agentic act.
- **LLM-as-module:** LLM calls are intentionally non-deterministic but bounded by the outline contract; disagreement between generated code and outline immediately halts or replays the step.
- **Telemetry feedback:** Execution traces, test verdicts, and rubric scores continuously feed back into the outline refinement loop to converge to a reproducible build.
**Control Envelope Checklist**
1. Canonical outline stored with content-addressable ID and time windowed approvals.
2. Every agent invocation receives a minimized delta (outline slice) plus explicit success metrics.
3. Determinism is measured: diff noise ≤ 2% between successive outline-conformant runs; higher variance triggers outline tightening before reattempting generation.
### Design-First / Best-Practices Batteries Included
- **Architecture-first:** Each outline must include interfaces, pre/postconditions, error domains, latency and memory budgets before code exists.
- **Tooling-first:** `lsd`, `ast-grep`, `ripgrep`, `fd`, LangGraph, and MCP stacks are treated as mandatory batteries so that structural edits, search, and orchestration are reproducible.
- **Quality gates:** Spec → outline → implementation is instrumented with lint/test/benchmark gates plus rollback hooks.
- **Observability:** Outline nodes ship tracing IDs and contract assertions so failures are attributable to outline leaves rather than opaque LLM conversations.
### Traceability Matrix
| Diagram | Goal | Associated Invariants |
| --- | --- | --- |
| Architecture | Map outline-to-toolchain interfaces | Outline hash monotonicity |
| Data-flow | Guarantee data never bypasses verification | Contract-bound IO only |
| Concurrency | Preserve happens-before relationships | No circular waits; deadlock-free |
| Memory | Ensure ownership + persistence model | Leak-free caches, append-only audit |
| Optimization | Tie budgets to feedback loops | Regression triggers deterministic rollback |