specrails-core
v3.2.0
Published
AI agent workflow system for Claude Code — installs 12 specialized agents, orchestration commands, and persona-driven product discovery into any repository
Maintainers
Readme
specrails-core
Your AI development team. From idea to production code.
One command gives your repo a full team of specialized AI agents: architect, developer, reviewer, product manager — all working together through a structured pipeline, fully adapted to your codebase.
npx specrails-core@latest init --root-dir .Requirements: Claude Code or Codex CLI (choose one), Node 18+, git
How it works
Idea → Architecture → Implementation → Review → PR
(sr-architect) (sr-developer) (sr-reviewer)Run /sr:implement "add dark mode" — the pipeline designs, builds, reviews, and ships a pull request. No hand-holding required.
Every artifact (agents, rules, personas) is generated specifically for your project by analyzing your actual codebase, tech stack, and CI setup. Not generic templates.
Quick start
1. Install
npx specrails-core@latest init --root-dir .2. Run setup inside your AI CLI
claude # Claude Code
# or
codex # OpenAI Codex (beta)
> /setup # run the 5-phase wizard (~5 min)3. Start building
> /sr:implement "add user authentication"
> /sr:implement #42, #43 # from GitHub Issues
> /sr:update-product-driven-backlog # discover new features with AIThat's it. The pipeline takes over.
What gets installed
| Category | Files | Purpose |
|----------|-------|---------|
| Agents | .claude/agents/*.md | 12 specialized AI agents |
| Personas | .claude/agents/personas/*.md | VPC user profiles, generated from your users |
| Commands | .claude/commands/sr/*.md | /sr:implement, /sr:product-backlog, /sr:update-product-driven-backlog |
| Rules | .claude/rules/*.md | Per-layer coding conventions, loaded by file path |
| Memory | .claude/agent-memory/ | Persistent knowledge — agents learn across sessions |
| Config | .claude/settings.json, CLAUDE.md | Permissions, architecture reference |
Why SpecRails
| | SpecRails | Plain Claude Code | Cursor / Copilot | |---|---|---|---| | Structured pipeline | ✅ Architect → Dev → Review → PR | ❌ Manual | ❌ Manual | | Adapts to your codebase | ✅ Reads your actual stack/CI | ⚠️ Prompts only | ❌ | | Product-driven backlog | ✅ VPC persona scoring | ❌ | ❌ | | Parallel feature builds | ✅ Git worktrees | ❌ | ❌ | | Institutional memory | ✅ Agents learn across sessions | ❌ | ❌ | | Open source | ✅ MIT | N/A | ❌ |
SpecRails is not a chat interface. It's a development pipeline that coordinates multiple specialized agents through your existing tools (GitHub Issues, JIRA, git, CI).
The agents
| Agent | Model | Role | |-------|-------|------| | sr-architect | Sonnet | Designs features: proposal, technical design, task breakdown | | sr-developer | Sonnet | Full-stack implementation | | sr-backend-developer | Sonnet | Backend-specialized implementation | | sr-frontend-developer | Sonnet | Frontend-specialized implementation | | sr-reviewer | Sonnet | Quality gate: runs CI, fixes issues, records learnings | | sr-backend-reviewer | Sonnet | Backend code review: API design, DB patterns, performance | | sr-frontend-reviewer | Sonnet | Frontend code review: UX, accessibility, component design | | sr-test-writer | Sonnet | Generates unit, integration, and e2e tests | | sr-security-reviewer | Sonnet | Secrets detection, OWASP checks, dependency vulnerabilities | | sr-doc-sync | Sonnet | Updates changelogs, READMEs, API docs | | sr-product-manager | Opus | Product discovery: competitive analysis, VPC evaluation | | sr-product-analyst | Haiku | Read-only backlog analysis and prioritization |
Commands
/sr:implement — Build features
/sr:implement "add dark mode" # from a description
/sr:implement #85, #71 # from GitHub Issues
/sr:implement UI, Analytics # explore areas, pick the best ideasArchitect designs → developer builds → reviewer validates → PR created. Multiple features run in parallel with git worktrees.
Dry-run / preview mode
Not ready to commit? Run the full pipeline without touching git or GitHub:
/sr:implement "add dark mode" --dry-run
/sr:implement #85 --preview # --preview is an alias for --dry-runAll agents run normally. Generated files land in .claude/.dry-run/<feature-name>/ instead of your working tree. No branches, commits, PRs, or issue updates are created.
When you're happy with the preview, apply the cached output:
/sr:implement --apply add-dark-mode # copies files to real paths, then shipsTo discard without applying:
rm -rf .claude/.dry-run/add-dark-mode//sr:product-backlog — View prioritized backlog
/sr:product-backlog # show all areas
/sr:product-backlog UI, Decks # filter by areaReads your GitHub Issues, scores by VPC persona match, recommends top 3 for next sprint.
/sr:update-product-driven-backlog — Discover features
/sr:update-product-driven-backlog # explore all areas
/sr:update-product-driven-backlog Analytics # focus on one areaAI product discovery using your personas. Evaluates ideas, creates GitHub Issues for the best ones.
VPC persona scoring
Features are scored against your user personas using the VPC framework:
+-----------------------------+ +-----------------------------+
| VALUE PROPOSITION | | CUSTOMER SEGMENT |
| Products & Services <---+--->| Customer Jobs |
| Pain Relievers <---+--->| Pains |
| Gain Creators <---+--->| Gains |
+-----------------------------+ +-----------------------------+Each persona scores features 0-5. Features are ranked by score/effort ratio. No gut-feel product decisions.
Prerequisites
| Tool | Required | Purpose |
|------|----------|---------|
| Claude Code | Yes | AI agent runtime — install |
| git | Yes | Repository detection |
| npm / Node 18+ | Recommended | Needed for npx install and OpenSpec CLI |
| OpenSpec CLI | Recommended | Structured design artifacts for /sr:implement |
| GitHub CLI (gh) | Optional | Backlog sync to GitHub Issues, PR creation |
| JIRA CLI (jira) | Optional | Backlog sync to JIRA |
The installer checks for each tool and offers to install missing ones.
Supported stacks
Stack-agnostic. The /setup wizard detects and adapts to whatever you're running:
Backend: Python/FastAPI, Node/Express, Go/Gin, Rust/Actix, Java/Spring, Ruby/Rails, .NET Frontend: React, Vue, Angular, Svelte, Next.js, Nuxt Database: PostgreSQL, MySQL, SQLite, MongoDB, Redis CI/CD: GitHub Actions, GitLab CI, Jenkins, Makefile Testing: pytest, vitest, jest, go test, cargo test, rspec
Design principles
- Two-step install — Shell handles prerequisites, Claude handles intelligence. No API keys beyond Claude Code auth.
- Self-cleaning — All scaffolding removed after setup. Only final, project-specific files remain.
- Context-first — Every generated file uses your real paths, patterns, and CI commands.
- Persona-driven — Product decisions grounded in researched user personas, not assumptions.
- Institutional memory — Agents learn across sessions. Reviewer learnings feed back to future developers.
- Parallel-safe — Multiple features implemented simultaneously via git worktrees with automatic merge.
FAQ
Can I customize the agents after installation?
Yes. The generated files in .claude/ are yours to edit — plain markdown. Edit agent personalities, adjust CI commands, add rules, create personas.
Can I re-run setup?
Run npx specrails-core@latest init --root-dir <path> again to re-scaffold, then /setup.
Does this work without OpenSpec?
Partially. Product discovery commands and individual agents work. /sr:implement and sr-architect rely on OpenSpec for structured design artifacts.
Does this work without GitHub CLI?
Yes. Use JIRA instead, or skip backlog commands. /sr:implement "description" works without gh — it just skips automated PR creation.
How much does it cost to run?
A full /sr:implement cycle for one feature typically costs a few dollars in Claude API usage. The sr-product-manager uses Opus; all other agents use Sonnet or Haiku.
Does it work with private repos? Yes. Everything runs locally through Claude Code. No external services beyond the Claude API.
Also in the SpecRails ecosystem
- specrails-hub — GUI for specrails-core. Manage your agents, run commands, and view pipeline results from a web interface.
- specrails.dev — Official website and documentation.
- Product Hunt — Vote for SpecRails on launch day (link goes live on launch day — star this repo to get notified)
License
MIT — fjpulidop
