mirror of
https://github.com/selfxyz/self.git
synced 2026-04-27 03:01:15 -04:00
Self SDK — Spec System
Table of contents for the spec folder. Start here.
What This Is
A three-tier spec system designed for parallel AI agent execution:
- Project Overview — architecture, contracts, cross-workstream dependencies
- Workstream Overviews — orientation for each person/scope (what you own, context, status)
- Implementation Specs — exact code changes, I/O examples, token-budgeted chunks
Specs double as AI agent prompts. Written in second person, sized for single context windows, with validation commands after every chunk.
Meta-Framework
| File | Purpose | When to Read |
|---|---|---|
| SPEC-GUIDE.md | How to write specs (generic, portable to any project) | Before writing or reviewing any spec |
| TEMPLATES.md | Copy-paste templates for all three tiers | When creating a new spec |
| PROJECT-RULES.md | Project-specific rules and guardrails | Before starting any implementation work |
Project-Level Specs
| File | Purpose | When to Read |
|---|---|---|
| SDK-OVERVIEW.md | Architecture, bridge protocol, module table, decision matrix, glossary | First. Always. |
| WAVE-PLAN.md | Dependency-ordered execution plan for parallel agent work | When planning which chunks to execute next |
Workstream Specs
Each workstream has two files: OVERVIEW.md (stable orientation) and SPEC.md (living implementation details).
| Workstream | Overview | Implementation Spec | Status |
|---|---|---|---|
| Person 1 — WebView UI + Bridge | OVERVIEW | SPEC | 4/5 chunks done, 1E in progress |
| Person 2 — Native Shells (KMP + Swift) | OVERVIEW | SPEC | 3 done, 2 superseded, 1 in progress, 5 pending |
| Person 3 — Integrations | OVERVIEW | MiniPay Spec | 0/3 chunks done |
| Person 4 — SDK Core | OVERVIEW | SPEC | 4/5 active chunks done (4D skipped), 4F pending |
| Person 5 — RN SDK | OVERVIEW | SPEC | 0/4 chunks done |
Reading Order
New to the project?
- This README
- SDK-OVERVIEW.md — understand the architecture
- Your workstream's
OVERVIEW.md— understand what you own - Your workstream's
SPEC.md— understand what to build
Starting a work session?
- WAVE-PLAN.md — find the next available chunk
- Your workstream's
SPEC.md— read the chunk, check status - PROJECT-RULES.md — refresh on guardrails
Writing a new spec?
- SPEC-GUIDE.md — how to write specs
- TEMPLATES.md — copy-paste the right template
- PROJECT-RULES.md — project-specific constraints