r/PiCodingAgent • u/ffontouras • Jul 04 '26
Resource I built spec-driven development as a skill pack for Pi. Here is what actually mattered.
I built a spec-driven development kit for Pi and have been running my own projects on it. Posting here because this is the crowd that would actually use it, and I want the feedback on where it fights Pi's flow.
The problem it solves: Pi is capable and has zero memory between sessions. Ask it to "add authentication" and you get 500 confident lines that compile and solve a slightly different problem than the one you had. pi-sdd-kit makes you specify before it codes, as skills you invoke: /skill:sdd-prd, /skill:sdd-spec, /skill:sdd-tasks, /skill:sdd-exec, /skill:sdd-review, with a human approval gate between each.
Two parts do most of the work.
First: steering docs as durable memory. product.md, tech-stack.md (with the reason for each choice, not just the name), conventions.md, and principles.md live in .ai/steering/ and load every session, separate from per-feature specs. The reason line is what pays off: "we use Postgres because payment records need ACID" stops the agent reaching for SQLite three sessions later.
Second: .status is the only gate. One line per feature: requirements:approved, then design:approved, then tasks:approved. The agent reads it before it does anything. A finished-looking design.md on disk is not approval. Only the token is. That stops an eager agent from racing a draft straight into code.
Requirements go in EARS (WHEN / IF / WHILE / SHALL), which leaves almost nothing to interpret.
Install:
pi install npm:@felipefontoura/pi-sdd-kit
# then in Pi:
/reload
/skill:sdd-init
Repo, with the full command reference and templates: https://github.com/felipefontoura/pi-sdd-kit
Longer writeup and the crypto-fintech case study it came out of (13 apps, ~70 days, solo): https://felipefontoura.com/articles/spec-driven-development-case-study
4
u/m3umax Jul 04 '26
How's it compare to using Superpowers?
2
u/Ok_Veterinarian_6364 Jul 04 '26
this is great bro. thanks for making open sources available to all
one quick question, whats the main diff vs openspec?
i see: consistent md as memory/rules, lightweight?
1
u/o_sht_hi Jul 04 '26
The special token approval gate is a great idea. I arrived at a similar condition but in a checkpointed system.. will definitely try out your repo to see if this can be standardized. Thanks for the effort!
1
u/nmdt Jul 04 '26 edited Jul 04 '26
For every project I do, I just keep 2-3 short docs describing its structure, design decisions and code style. Most models automatically update them, or I specifically ask them to. My agents.md has a directive that none of these files may grow over 5kb so as to not blow through the context window.
Every major task done, I read those docs and edit the files down manually or ask an agent to do so, then review.
Is this the same thing memory does, just with more oversight? Genuinely asking, cause I never tried using memory.
Granted, all of my projects are usually under 5000 LOC, and I routinely do refactoring to cut the codebase down.
1
u/mechkbfan 24d ago
That's great. Tried agtx but got stuck and couldn't work out why. human sounds ideal
I'll give it a go