npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

specrails

v0.7.1

Published

Agent Workflow System installer for Claude Code

Downloads

998

Readme

specrails

Agent Workflow System installer for Claude Code.

Install a complete product-driven development workflow into any repository: specialized AI agents, orchestration commands, VPC-based product discovery, and per-layer coding conventions — all adapted to your codebase automatically.

What it does

specrails gives your project a team of specialized AI agents that work together through a structured pipeline:

Product Discovery    →  Architecture  →  Implementation  →  Review     →  Ship
(sr-product-manager)    (sr-architect)    (sr-developer)    (sr-reviewer)  (PR)

Every artifact — agents, commands, rules, personas — is generated specifically for your project by analyzing your actual codebase, tech stack, and target users. Not generic templates: fully contextualized to your architecture, CI pipeline, and coding conventions.

What gets installed

| Category | Files | Purpose | |----------|-------|---------| | Agents | .claude/agents/*.md | 12 specialized AI agents (sr-architect, sr-developer, sr-backend-developer, sr-frontend-developer, sr-reviewer, sr-backend-reviewer, sr-frontend-reviewer, sr-product-manager, sr-product-analyst, sr-test-writer, sr-security-reviewer, sr-doc-sync) | | Personas | .claude/agents/personas/*.md | Value Proposition Canvas profiles for your target users, generated from competitive research | | Commands | .claude/commands/sr/*.md | Workflow orchestrators (/sr:implement, /sr:product-backlog, /sr:update-product-driven-backlog) | | Rules | .claude/rules/*.md | Per-layer coding conventions, loaded conditionally by file path | | Memory | .claude/agent-memory/ | Persistent knowledge directories — agents learn across sessions | | Config | .claude/settings.json, CLAUDE.md | Permissions, project context, architecture reference |

How it works

Installation happens in two steps — a shell script for scaffolding, then Claude for the intelligent parts.

Step 1: Install

Option A — npx (recommended)

npx specrails@latest init --root-dir <your-project>

Option B — git clone

git clone https://github.com/fjpulidop/specrails.git
./specrails/install.sh --root-dir <your-project>

The installer:

  1. Checks prerequisites — git, Claude Code CLI, npm, OpenSpec CLI, GitHub CLI
  2. Offers to install missing tools — npm via nvm, OpenSpec via npm
  3. Detects existing setup — warns if .claude/ or openspec/ already exist
  4. Scaffolds temporary files — copies templates and the /setup command into .claude/

Step 2: Setup (inside Claude Code)

claude     # open Claude Code in your repo
> /setup   # run the setup wizard

Claude runs an interactive 5-phase wizard:

| Phase | What happens | Interaction | |-------|-------------|-------------| | 1. Codebase Analysis | Reads your repo structure, detects stack, layers, CI commands, and coding conventions | Confirm or modify detected architecture | | 2. User Personas | Asks who your target users are, researches the competitive landscape online, generates full VPC personas | Describe your users, approve generated personas | | 3. Configuration | Choose backlog provider (GitHub Issues / JIRA / none), access mode (read/write or read-only), git workflow (auto or manual), agents, and commands | Select options | | 4. File Generation | Fills all templates with your project's context and writes final files | Automatic | | 5. Cleanup | Removes scaffolding (/setup command, templates), adds specrails/ to .gitignore | Confirm cleanup |

After setup, the scaffolding self-destructs — only the final, project-specific files remain.

Prerequisites

| Tool | Required | Purpose | |------|----------|---------| | Git | Yes | Repository detection | | Claude Code | Yes | AI agent runtime — install | | npm | Recommended | Needed to install OpenSpec CLI | | OpenSpec CLI | Recommended | Spec-driven design workflow (/opsx:ff, /opsx:apply) | | GitHub CLI (gh) | Optional | Backlog sync to GitHub Issues, PR creation | | JIRA CLI (jira) | Optional | Backlog sync to JIRA (alternative to GitHub Issues) |

The installer will check for each tool and offer to install missing ones.

Note: You only need one backlog provider — GitHub Issues or JIRA. The /setup wizard asks which one you use. If you don't use either, backlog commands are skipped but /sr:implement "description" still works.

Usage after installation

Once setup is complete, you have three main commands:

/sr:implement — Build features

The full pipeline: architect designs, developer implements, reviewer validates, then ships a PR.

/sr:implement #85, #71           # implement specific GitHub Issues
/sr:implement "add dark mode"    # implement from a text description
/sr:implement UI, Analytics      # explore areas and pick the best ideas

Handles 1 to N features. Single features run sequentially; multiple features run in parallel using git worktrees.

/sr:product-backlog — View prioritized backlog

Reads GitHub Issues labeled product-driven-backlog, sorts by VPC persona score, and recommends the top 3 for the next sprint.

/sr:product-backlog               # show all areas
/sr:product-backlog UI, Decks     # filter by area

/sr:update-product-driven-backlog — Discover new features

Runs product discovery using your VPC personas. Analyzes the codebase, evaluates ideas against each persona's jobs/pains/gains, and creates GitHub Issues for the best ones.

/sr:update-product-driven-backlog            # explore all areas
/sr:update-product-driven-backlog Analytics  # focus on one area

The agents

| Agent | Model | Role | |-------|-------|------| | sr-architect | Sonnet | Designs features: creates proposal, technical design, task breakdown, and context bundles via OpenSpec | | sr-developer | Sonnet | Implements features: reads the architect's artifacts and writes production code across all layers | | sr-backend-developer | Sonnet | Specialized backend implementation (lighter prompt, backend-only CI) | | sr-frontend-developer | Sonnet | Specialized frontend implementation (lighter prompt, frontend-only CI) | | sr-reviewer | Sonnet | Final quality gate: runs exact CI checks, fixes issues, records learnings for future developers | | sr-backend-reviewer | Sonnet | Backend-focused code review: API design, database patterns, performance | | sr-frontend-reviewer | Sonnet | Frontend-focused code review: UX patterns, accessibility, component design | | sr-test-writer | Sonnet | Generates tests: unit, integration, and e2e tests using your project's test framework | | sr-security-reviewer | Sonnet | Security scanning: secrets detection, OWASP checks, dependency vulnerabilities | | sr-doc-sync | Sonnet | Documentation sync: updates changelogs, READMEs, and API docs after changes | | sr-product-manager | Opus | Product discovery: competitive analysis, VPC evaluation, feature ideation | | sr-product-analyst | Haiku | Read-only backlog analysis: prioritization, gap analysis, reporting |

The /sr:implement pipeline automatically routes tasks to the right developer agent based on layer tags in the task breakdown.

Value Proposition Canvas (VPC)

Every feature idea is evaluated against your project's 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 based on how well they address their specific jobs, pains, and gains. Features are ranked by total persona score / effort ratio. This grounds every product decision in real user needs rather than gut feeling.

Project structure

specrails/
├── install.sh                              # Step 1: shell installer
├── README.md                               # This file
├── commands/
│   └── setup.md                            # Step 2: Claude Code /setup wizard
├── templates/                              # Structural references for file generation
│   ├── agents/
│   │   ├── sr-architect.md                 # Design & task breakdown agent
│   │   ├── sr-developer.md                 # Full-stack implementation agent
│   │   ├── sr-backend-developer.md         # Backend-specialized agent
│   │   ├── sr-frontend-developer.md        # Frontend-specialized agent
│   │   ├── sr-reviewer.md                  # CI/CD quality gate agent
│   │   ├── sr-backend-reviewer.md          # Backend code review agent
│   │   ├── sr-frontend-reviewer.md         # Frontend code review agent
│   │   ├── sr-test-writer.md               # Test generation agent
│   │   ├── sr-security-reviewer.md         # Security scanning agent
│   │   ├── sr-doc-sync.md                  # Documentation sync agent
│   │   ├── sr-product-manager.md           # Product discovery agent
│   │   └── sr-product-analyst.md           # Read-only analysis agent
│   ├── commands/
│   │   └── sr/
│   │       ├── implement.md                # Implementation pipeline orchestrator
│   │       ├── product-backlog.md          # Backlog viewer with VPC scoring
│   │       └── update-product-driven-backlog.md # Product discovery & issue sync
│   ├── personas/
│   │   └── persona.md                      # VPC persona template
│   ├── rules/
│   │   └── layer.md                        # Per-layer convention template
│   ├── claude-md/
│   │   └── root.md                         # Root CLAUDE.md template
│   └── settings/
│       └── settings.json                   # Permission template
└── prompts/
    ├── analyze-codebase.md                 # Guide for codebase analysis
    ├── generate-personas.md                # Guide for VPC persona generation
    └── infer-conventions.md                # Guide for convention detection

Supported stacks

specrails is stack-agnostic. The /setup wizard detects and adapts to whatever you're using:

  • 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

The setup wizard reads your actual CI config, dependency files, and source code to generate accurate conventions — not guesses.

Design principles

  1. Two-step install: Shell for prerequisites, Claude for intelligence. No API keys needed beyond Claude Code auth.
  2. Self-cleaning: All scaffolding artifacts are removed after setup. Only final files remain.
  3. Context-first: Every generated file references real paths, real patterns, and real CI commands from your codebase.
  4. Persona-driven: Product decisions are grounded in researched user personas, not assumptions.
  5. Institutional memory: Agents learn across sessions via persistent memory directories. The reviewer's learnings feed back to developers.
  6. Parallel-safe: Multiple features can be implemented simultaneously using git worktrees with automatic merge.

FAQ

Can I customize the agents after installation? Yes. The generated files in .claude/ are yours to edit. They're plain markdown — modify agent personalities, adjust CI commands, add new rules, or create new personas.

Can I re-run setup? The /setup command deletes itself after completion. To re-run, execute install.sh again to re-scaffold, then run /setup.

Does this work without OpenSpec? Partially. The /sr:implement command and sr-architect agent rely on OpenSpec for structured design artifacts. Without it, you can still use the product discovery commands and individual agents directly.

Does this work without GitHub CLI? Yes, with limitations. If you use GitHub Issues as your backlog provider, gh is needed for backlog commands. But you can use JIRA instead, or skip backlog commands entirely. The /sr:implement command still works with text descriptions — it just skips PR creation and tells you to create it manually.

Can I use JIRA instead of GitHub Issues? Yes. During /setup Phase 3, choose "JIRA" as your backlog provider. If the JIRA CLI isn't installed, the wizard offers to install it (go-jira via brew, or REST API mode with no CLI needed). You'll also choose whether access is read & write (create tickets, add comments on completion) or read-only (read tickets for context but never modify JIRA).

Can I skip automatic git operations? Yes. During /setup Phase 3, choose "Manual" for the git workflow. The pipeline will still architect, develop, and review — but it stops after review and shows you a summary of all changes. You handle branching, committing, and PRs yourself.

How much does it cost to run? Depends on usage. The sr-product-manager agent uses Opus (most capable, most expensive) for deep product thinking. All other agents use Sonnet or Haiku. A full /sr:implement cycle for one feature typically costs a few dollars in API usage through Claude Code.

License

MIT