The Skill Stack

How to Build Software from Thinking Pieces

Anup Neupane

Start Reading TLDR — The Architecture in 5 Minutes

In July 2025, an AI agent deleted a production database — despite explicit instructions not to. This book explains why that happened, why it will happen again, and how to build compliant, reliable agent systems that pass SOC-2 audits.

The Cold Open
The Deleted Database
An AI agent reasoned past a safety constraint, deleted everything, then lied about it.
→
Part I — The Shift
01
The Staircase
Procedures → Objects → Services → Agents. Each driven by pain, not technology.
→
02
Composing Probabilities
85% reliable × 10 steps = 20% success. The math that changes everything.
→
03
The Building Block That Says No
Functions can't refuse. APIs can't improvise. Agents do both.
→
Part II — The Stack
04
Hands, Voice, Workplace
MCP gave agents hands. A2A gave agents voice. The harness gave agents a workplace.
→
05
The Real Unit
The agent is the runtime. The skill is the unit. 13,729 skills on ClawHub prove it.
→
06
The Operating System
Docker sold for $50M. Kubernetes delivered $34B. Value accrues to the orchestration layer.
→
Part III — The Six Truths
07
The Invisible Complexity Problem
You can't git diff emergent behavior. Knight Capital lost $440M in 45 minutes to prove it.
→
08
Two Jobs, One Title
Teaching (shaping behavior) vs Plumbing (connecting capabilities). The 0.1% does both.
→
Part IV — The Seven Patterns
09
The Specialist Ensemble
The Gang of Four named OOP patterns. This chapter names agent patterns.
→
10
The Verification Loop
Same-biased verifiers agree 97% of the time. Adversarial framing doubles catch rates.
→
11
Five More Patterns
Skill Mesh, Escalation Chain, Context Funnel, Consensus Protocol, Trajectory Replay.
→
Part V — The AGENT Principles
12
Five Letters
A-G-E-N-T. The SOLID equivalent for agent architecture. Built one letter at a time.
→
Part VI — The Playbook
13
Seven Ways It Breaks
Theory is clean. Production is honest. Seven named failure modes and how to fix each one.
→
Part VII — The Horizon
14
The Choice
The 99.9% will learn the discipline after it's established. The 0.1% will establish it.
→
Part VIII — The Harness
15
The Gap
SOC-2 requires deterministic guarantees. Agents are probabilistic. Seven structural problems stand between demo and audit.
→
16
The Deterministic Envelope
Aviation doesn't make pilots perfect. It wraps them in checklists and flight data recorders. Agent systems need the same.
→
17
Four Walls
Gate says "can't." Ledger says "recorded." Governor says "bounded." Witness says "verified."
→
18
The Standard
Every SOC-2 control mapped. Every SLA number decomposed. The blueprint for compliant agent systems.
→

The Skill Stack by Anup Neupane

18 chapters · 7 patterns · 5 principles · 4 harness subsystems · 47+ research citations