sporepo
v1.1.1
Published
Zero-dependency CLI & engineering framework for AI-assisted software development (Meta-Prompting + Superpowers Discipline)
Maintainers
Readme
sporepo
AI-Assisted Software Engineering Framework & Zero-Dependency Scaffolding CLI
A robust hybrid combining context-rich meta-prompting with disciplined engineering workflows.
Overview
sporepo bridges the gap between high-context AI meta-prompting and rigorous software engineering execution. It equips AI coding agents and human developers with an automated, zero-dependency framework to design features, systematically eliminate bugs, and maintain verifiable project health.
All active specifications, bug investigations, and historical archives are cleanly organized inside docs/sporepo/ to ensure zero root-directory pollution.
Core Principles
- Zero Runtime Dependencies: Built strictly using native Node.js APIs (
fs,path,child_process,crypto). Operates seamlessly vianpx sporepowithout installing external libraries. - Docs-Centric Workspace Hygiene (
docs/sporepo/): Isolates all engineering artifacts insidedocs/sporepo/(reqs/,bugs/, andarchive/). - Reviewer Gatekeeper Barrier: AI agents are strictly instructed to pause and audit specifications for ambiguities, breaking changes, and edge cases before writing implementation code.
- Lifecycle Archiving (
archive/): Completed tasks (VERIFIED) can be cleanly archived (npx sporepo archive) while maintaining continuous 3-digit auto-increment sequence numbers. - The Iron Law of Debugging: Prohibits symptom patching and speculation. Enforces root-cause discovery, deterministic cURL reproduction, and Test-Driven Development (TDD) failing tests before code fixes.
- Subagent-Driven Development (SDD): Orchestrates tasks atomically with fresh implementer and reviewer subagents per task to eliminate context pollution and amnesia.
- Terminal-Proven Verification: Mandates automated test execution and log verification before closing tasks.
Architecture & Workflows
1. Feature Request Lifecycle
flowchart TD
A["Raw Idea / npx sporepo req 'Feature'"] --> B["docs/sporepo/reqs/XXX-feature.md"]
B --> C{"Reviewer Gatekeeper Barrier"}
C -->|"Audit Gaps & Questions"| D["User Decision & Sign-off (APPROVED)"]
D --> E["Subagent-Driven Atomic Tasks (SDD)"]
E --> F["Full Test Suite & Terminal Proof"]
F --> G["Mark Request VERIFIED"]
G --> H["npx sporepo archive XXX (docs/sporepo/archive/reqs/)"]2. Bug Fix Lifecycle
flowchart TD
A["Observed Defect / npx sporepo bug 'Bug'"] --> B["docs/sporepo/bugs/YYYY-MM-DD-bug.md"]
B --> C["Attach Ground-Truth cURL & Error Payload"]
C --> D["Phase 1 & 2: Root Cause Analysis"]
D --> E["Phase 3: Write Failing Test (TDD RED)"]
E --> F["Phase 4: Targeted Minimal Fix (GREEN)"]
F --> G["Full Regression Suite & Terminal Proof"]
G --> H["npx sporepo archive 'bug' (docs/sporepo/archive/bugs/)"]Quick Start
1. Initialize a Repository
Inside your project root, run:
npx sporepo initThis creates the standardized structure:
your-project/
├── docs/
│ └── sporepo/
│ ├── README.md
│ ├── reqs/ # Active feature specifications (001-*.md)
│ ├── bugs/ # Active bug reports with cURL and TDD plans
│ └── archive/ # Completed tasks (reqs/ & bugs/)
└── .sporepo/
└── rule.md # Engineering guidelines for AI agents2. Create a Feature Meta-Prompt
To scaffold a new multi-persona feature prompt:
npx sporepo req "JWT Authentication & Refresh Token"Output:
✔ [sporepo] Meta-Prompt berhasil dibuat: docs/sporepo/reqs/001-jwt-authentication-refresh-token.md
Nomor Urut : 001
Judul Fitur : JWT Authentication & Refresh Token3. Log a Reproducible Bug
To record an issue with deterministic ground-truth evidence:
npx sporepo bug "Auth 401 on Checkout API"Output:
✔ [sporepo] Laporan Bug berhasil dibuat: docs/sporepo/bugs/2026-11-17-auth-401-on-checkout-api.md4. Archive Completed Work
To move verified features or resolved bugs to the archive:
# Archive a specific ID
npx sporepo archive 001
# Or archive all items marked [VERIFIED]
npx sporepo archive --all-verified5. Migrate Legacy Repositories
If you have an existing repository using the older prompts/request/ and tests/bugs/ layout:
npx sporepo migrate6. Audit Repository Compliance
To inspect the engineering status across all features, bugs, and archives:
npx sporepo auditCLI Command Reference
| Command | Arguments | Description |
| :--- | :--- | :--- |
| sporepo init | [target-dir] [-f] | Scaffolds docs/sporepo/ (reqs, bugs, archive) and .sporepo/. |
| sporepo req | <"Title"> [-d dir] | Generates next 3-digit numbered Meta-Prompt in docs/sporepo/reqs/. |
| sporepo bug | <"Title"> [-d dir] | Generates timestamped bug report in docs/sporepo/bugs/. |
| sporepo check | [file] [--all] [--json] | Audits Meta-Prompt specification maturity & barrier sign-off (alias: gatekeeper). |
| sporepo sdd | <init \| brief \| pack \| parse> | Orchestrates Subagent-Driven Development with zero context pollution. |
| sporepo archive | <id \| -a> [-d dir] | Moves verified items to docs/sporepo/archive/. |
| sporepo migrate | [target-dir] | Safely migrates legacy prompts/ and tests/bugs/ to docs/sporepo/. |
| sporepo audit | [target-dir] | Evaluates repository sporepo compliance score, items, and pending archives. |
Documentation
Panduan teknis dan spesifikasi lengkap tersedia di folder docs/:
| Dokumen | Deskripsi Ringkas | | :--- | :--- | | Architecture | Arsitektur teknis, desain modular, filosofi zero-dependency, dan template system. | | CLI Reference | Spesifikasi lengkap perintah CLI, argumen, flag, JSON schema, dan exit code. | | Gatekeeper Protocol | Protokol audit spesifikasi 5-lensa, single-round decision gate, dan linter CLI. | | SDD Orchestration | Siklus Subagent-Driven Development: Conductor, Implementer, dan Reviewer. | | Packaging & Release | Prosedur rilis NPM, CI workflow, verifikasi tarball, dan checklist produksi. | | Release Readiness Certificate | Sertifikat audit keamanan rahasia (zero-leakage) dan pengesahan rilis publik. |
Global Agent Integration
For workstation-wide enforcement in Google Antigravity or Gemini workspaces:
- Global Skills:
- Copy
skills/sporepo/SKILL.mdto~/.gemini/config/skills/sporepo/SKILL.md. - Copy
skills/sporepo-gatekeeper/SKILL.mdto~/.gemini/config/skills/sporepo-gatekeeper/SKILL.md. - Copy
skills/sporepo-sdd/SKILL.mdto~/.gemini/config/skills/sporepo-sdd/SKILL.md.
- Copy
- Global Rule: Copy
rules/base-sporepo.mdto~/.gemini/config/rules/base-sporepo.md.
Development & Testing
# Install development dependencies
npm install
# Compile TypeScript
npm run build
# Run native test suite (48 tests)
npm testLicense
MIT © 2026 Sulaksono
