A Prompt Pipeline Demonstrates Meta-Programming Properties

A developer has documented a prompt pipeline used to build an Electron app (Claude Code CLI, React, TypeScript, SQLite) that demonstrates the structural properties of a meta-programming language, including typed inputs/outputs, control flow, loops, state machines, and module interfaces.
Pipeline Architecture
The system operates in four distinct stages with typed contracts between them.
Stage 1: Static Analysis
The repo-eval.md prompt performs a full codebase scan. It reads every source file, traces dependency graphs, maps IPC flows end-to-end, and emits a structured findings report to issues.md. Each finding includes:
- Section ID
- Title
- Severity (Critical/High/Medium/Low)
- Category
- File paths with line ranges
- Evidence
- Impact assessment
- Recommended fix
Stage 2: Compilation
The address-issues.md prompt parses the output of Stage 1. It groups findings by file affinity, assigns prompt numbers (FIX-01, FIX-02, ...), determines inter-prompt dependencies, and sorts by severity. Output is a directory (prompts/arch/r{NNN}/) containing:
FIX-NN.md— Self-contained fix prompts specifying objective, findings addressed, files to modify, implementation steps, and verification criteria.STATE.md— Execution state tracker with status per prompt (pending/in-progress/done/blocked), dependency graph, completion dates, and handoff notes.MASTER.md— Execution loop specification.
Stage 3: Execution
MASTER.md serves as the runtime loop. On each iteration:
- Read
STATE.md - Select next pending prompt whose dependencies are satisfied
- Read the prompt
- Read all affected source files
- Execute implementation steps
- Run verification (
tsc --noEmit,grepfor removed patterns, line count checks) - Update
STATE.md - Append changelog entry, update architecture docs
- Loop to step 1
Stage 4: Packaging
The release-notes.md prompt reads the changelog, runs git log and git diff --stat against the last tag, categorizes changes, and emits formatted release notes with version bump recommendation.
Key Properties
Typed Contracts: The output schema of repo-eval is the input contract for address-issues. The output schema of address-issues is the input contract for MASTER. The FIX prompts consume the exact format that address-issues produces. STATE.md has a defined schema that MASTER reads and writes.
Automatic Documentation: A system prompt (agents.md) attached to every Claude Code context window includes a post-execution protocol: append a changelog entry, update affected architecture docs, update state tracking. Documentation is emitted as a side effect of prompt execution, eliminating context decay.
Prompts as ADRs: Each FIX-NN.md functions as a design doc, work order, and architectural decision record, capturing problem, rationale, implementation plan, and verification criteria before execution.
Output
One day of running this pipeline produced:
- 2 full repo evaluations
- 17 bug fixes across 2 revision rounds (race conditions, stream architecture, concurrent state management)
- Service decomposition: 1,218 lines → 403 lines + 5 extracted services
- 3 additional crash fixes
- README rewrite verified against source
- 6-page GitHub Pages website
- 21 changelog entries
📖 Read the full source: r/ClaudeAI
👀 See Also

How I built 62 free tools in a month using Claude Code + a loop script
A developer shipped 62 browser-based, SEO-ready tools in 30 days using a shell script called Ralph that runs Claude Code autonomously in layers, plus a parallel cook.sh to run multiple tools at once.

Designer builds native Mac photo tagging app with Claude Code and local vision model
A designer with no Xcode experience used Claude Code to build Loupe, a SwiftUI Mac app that analyzes photos with a local vision model (minicpm-v via Ollama) and writes IPTC/XMP metadata. The app includes parallel processing, hardware auto-detection, and a learning system that adapts to tagging style.

3 Real Blockers After Weeks of Testing OpenClaw for Business Automation
A Reddit user reports three blockers after weeks of running OpenClaw on Windows 11 with Claude Haiku 4.5 + DeepSeek: headless execution hides agent actions, CRM integrations break on handoff, and orchestration agent asks for manual execution instead of acting on data.

Using Markdown Files as Workflow Engine for Claude Code in Kubernetes
A developer replaced traditional pipeline tools like Dagster or Prefect with plain English markdown files that Claude Code executes as a Kubernetes CronJob. The system coordinates steps by writing artifacts to disk and has been running for over a month.