specrails-core 5.6.0 → 6.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +27 -145
- package/bin/specrails-core.mjs +12 -554
- package/dist/agent-runtime/capabilities.js +0 -1
- package/dist/agent-runtime/cli-executor.d.ts +1 -1
- package/dist/agent-runtime/cli-executor.js +1 -2
- package/dist/agent-runtime/cli-process.js +0 -1
- package/dist/agent-runtime/cli.js +3 -4
- package/dist/agent-runtime/codex-schema.js +0 -1
- package/dist/agent-runtime/compact/architect.d.ts +3 -272
- package/dist/agent-runtime/compact/architect.js +8 -9
- package/dist/agent-runtime/compact/chat-client.d.ts +3 -3
- package/dist/agent-runtime/compact/chat-client.js +1 -2
- package/dist/agent-runtime/compact/developer.d.ts +3 -70
- package/dist/agent-runtime/compact/developer.js +13 -14
- package/dist/agent-runtime/compact/environment.d.ts +4 -5
- package/dist/agent-runtime/compact/environment.js +1 -2
- package/dist/agent-runtime/compact/exit-code-honesty.d.ts +2 -1
- package/dist/agent-runtime/compact/exit-code-honesty.js +0 -1
- package/dist/agent-runtime/compact/guarded-loop.d.ts +2 -18
- package/dist/agent-runtime/compact/guarded-loop.js +7 -8
- package/dist/agent-runtime/compact/prompt-inputs.d.ts +0 -2
- package/dist/agent-runtime/compact/prompt-inputs.js +1 -2
- package/dist/agent-runtime/compact/reviewer.d.ts +0 -13
- package/dist/agent-runtime/compact/reviewer.js +5 -6
- package/dist/agent-runtime/compact/step.d.ts +0 -1
- package/dist/agent-runtime/compact/step.js +1 -2
- package/dist/agent-runtime/compact/test-reachability.js +0 -1
- package/dist/agent-runtime/config.js +0 -1
- package/dist/agent-runtime/core-host.d.ts +1 -1
- package/dist/agent-runtime/core-host.js +1 -2
- package/dist/agent-runtime/durable-store.d.ts +0 -1
- package/dist/agent-runtime/durable-store.js +1 -2
- package/dist/agent-runtime/efficiency-summary.d.ts +2 -2
- package/dist/agent-runtime/efficiency-summary.js +1 -2
- package/dist/agent-runtime/efficiency-types.js +0 -1
- package/dist/agent-runtime/efficiency.js +0 -1
- package/dist/agent-runtime/evaluation-corpus.js +0 -1
- package/dist/agent-runtime/evaluation.d.ts +2 -1
- package/dist/agent-runtime/evaluation.js +1 -2
- package/dist/agent-runtime/executor-types.d.ts +1 -1
- package/dist/agent-runtime/executor-types.js +0 -1
- package/dist/agent-runtime/executors.js +0 -1
- package/dist/agent-runtime/gemini-policy.js +0 -1
- package/dist/agent-runtime/graph/artifacts.d.ts +1 -1
- package/dist/agent-runtime/graph/artifacts.js +1 -2
- package/dist/agent-runtime/graph/nodes.d.ts +1 -1
- package/dist/agent-runtime/graph/nodes.js +1 -2
- package/dist/agent-runtime/graph/review-policy.js +0 -1
- package/dist/agent-runtime/graph/roles.d.ts +2 -5
- package/dist/agent-runtime/graph/roles.js +2 -8
- package/dist/agent-runtime/graph/state.d.ts +1 -1
- package/dist/agent-runtime/graph/state.js +0 -1
- package/dist/agent-runtime/graph-checkpointer.d.ts +2 -1
- package/dist/agent-runtime/graph-checkpointer.js +0 -1
- package/dist/agent-runtime/guardrails.d.ts +3 -3
- package/dist/agent-runtime/guardrails.js +1 -2
- package/dist/agent-runtime/index.d.ts +1 -1
- package/dist/agent-runtime/index.js +1 -2
- package/dist/agent-runtime/kimi-acp.js +1 -2
- package/dist/agent-runtime/kimi-model.d.ts +6 -0
- package/dist/agent-runtime/kimi-model.js +12 -0
- package/dist/agent-runtime/openai-executor.d.ts +0 -9
- package/dist/agent-runtime/openai-executor.js +6 -7
- package/dist/agent-runtime/openspec-tool-server.js +1 -2
- package/dist/agent-runtime/openspec.d.ts +0 -2
- package/dist/agent-runtime/openspec.js +1 -6
- package/dist/agent-runtime/prompts.d.ts +4 -3
- package/dist/agent-runtime/prompts.js +0 -1
- package/dist/agent-runtime/provider-diagnostic.js +1 -2
- package/dist/agent-runtime/recovery.js +1 -2
- package/dist/agent-runtime/repository-context.d.ts +1 -1
- package/dist/agent-runtime/repository-context.js +0 -1
- package/dist/agent-runtime/review-context.d.ts +1 -1
- package/dist/agent-runtime/review-context.js +0 -1
- package/dist/agent-runtime/role-routing.js +0 -1
- package/dist/agent-runtime/role-state.js +0 -1
- package/dist/agent-runtime/runtime-identity.js +1 -2
- package/dist/agent-runtime/tool-event.js +0 -1
- package/dist/agent-runtime/verification-plan.d.ts +5 -4
- package/dist/agent-runtime/verification-plan.js +1 -2
- package/dist/agent-runtime/workflow-types.js +0 -1
- package/dist/agent-runtime/workflow.js +0 -1
- package/dist/agent-runtime/workspace-tools.d.ts +2 -2
- package/dist/agent-runtime/workspace-tools.js +1 -2
- package/dist/installer/cli.d.ts +3 -32
- package/dist/installer/cli.js +26 -101
- package/dist/installer/commands/framework.d.ts +4 -3
- package/dist/installer/commands/framework.js +0 -1
- package/dist/installer/commands/init.d.ts +4 -25
- package/dist/installer/commands/init.js +5 -8
- package/dist/installer/phases/framework-lifecycle.d.ts +3 -17
- package/dist/installer/phases/framework-lifecycle.js +2 -3
- package/dist/installer/phases/install-config.d.ts +7 -8
- package/dist/installer/phases/install-config.js +2 -7
- package/dist/installer/phases/manifest.d.ts +6 -7
- package/dist/installer/phases/manifest.js +2 -7
- package/dist/installer/phases/prereqs.d.ts +6 -7
- package/dist/installer/phases/prereqs.js +4 -6
- package/dist/installer/phases/provider-detect.d.ts +6 -7
- package/dist/installer/phases/provider-detect.js +2 -4
- package/dist/installer/phases/scaffold.d.ts +9 -10
- package/dist/installer/phases/scaffold.js +82 -805
- package/dist/installer/util/errors.js +0 -1
- package/dist/installer/util/exec.d.ts +3 -2
- package/dist/installer/util/exec.js +0 -1
- package/dist/installer/util/fs.d.ts +0 -10
- package/dist/installer/util/fs.js +1 -2
- package/dist/installer/util/git.js +0 -1
- package/dist/installer/util/install-transaction.d.ts +2 -2
- package/dist/installer/util/install-transaction.js +1 -2
- package/dist/installer/util/logger.d.ts +1 -3
- package/dist/installer/util/logger.js +0 -1
- package/dist/installer/util/paths.js +0 -1
- package/dist/installer/util/registry.d.ts +4 -8
- package/dist/installer/util/registry.js +2 -3
- package/dist/{installer/runtime → pipeline}/pipeline-state.js +0 -3
- package/dist/shared/args.d.ts +18 -0
- package/dist/shared/args.js +53 -0
- package/integration-contract.json +10 -46
- package/package.json +3 -10
- package/templates/agents/sr-architect.md +15 -310
- package/templates/agents/sr-developer.md +15 -269
- package/templates/agents/sr-reviewer.md +13 -367
- package/templates/codex-skills/rails/sr-architect/SKILL.md +14 -308
- package/templates/codex-skills/rails/sr-developer/SKILL.md +14 -201
- package/templates/codex-skills/rails/sr-reviewer/SKILL.md +15 -289
- package/templates/kimi/specrails/run-skill.mjs +91 -2173
- package/bin/tui-installer.mjs +0 -430
- package/commands/doctor.md +0 -62
- package/dist/agent-runtime/capabilities.js.map +0 -1
- package/dist/agent-runtime/cli-executor.js.map +0 -1
- package/dist/agent-runtime/cli-process.js.map +0 -1
- package/dist/agent-runtime/cli.js.map +0 -1
- package/dist/agent-runtime/codex-schema.js.map +0 -1
- package/dist/agent-runtime/compact/architect.js.map +0 -1
- package/dist/agent-runtime/compact/chat-client.js.map +0 -1
- package/dist/agent-runtime/compact/developer.js.map +0 -1
- package/dist/agent-runtime/compact/environment.js.map +0 -1
- package/dist/agent-runtime/compact/exit-code-honesty.js.map +0 -1
- package/dist/agent-runtime/compact/guarded-loop.js.map +0 -1
- package/dist/agent-runtime/compact/prompt-inputs.js.map +0 -1
- package/dist/agent-runtime/compact/reviewer.js.map +0 -1
- package/dist/agent-runtime/compact/step.js.map +0 -1
- package/dist/agent-runtime/compact/test-reachability.js.map +0 -1
- package/dist/agent-runtime/config.js.map +0 -1
- package/dist/agent-runtime/core-host.js.map +0 -1
- package/dist/agent-runtime/durable-store.js.map +0 -1
- package/dist/agent-runtime/efficiency-summary.js.map +0 -1
- package/dist/agent-runtime/efficiency-types.js.map +0 -1
- package/dist/agent-runtime/efficiency.js.map +0 -1
- package/dist/agent-runtime/evaluation-corpus.js.map +0 -1
- package/dist/agent-runtime/evaluation.js.map +0 -1
- package/dist/agent-runtime/executor-types.js.map +0 -1
- package/dist/agent-runtime/executors.js.map +0 -1
- package/dist/agent-runtime/gemini-policy.js.map +0 -1
- package/dist/agent-runtime/graph/artifacts.js.map +0 -1
- package/dist/agent-runtime/graph/nodes.js.map +0 -1
- package/dist/agent-runtime/graph/review-policy.js.map +0 -1
- package/dist/agent-runtime/graph/roles.js.map +0 -1
- package/dist/agent-runtime/graph/state.js.map +0 -1
- package/dist/agent-runtime/graph-checkpointer.js.map +0 -1
- package/dist/agent-runtime/guardrails.js.map +0 -1
- package/dist/agent-runtime/index.js.map +0 -1
- package/dist/agent-runtime/kimi-acp.js.map +0 -1
- package/dist/agent-runtime/openai-executor.js.map +0 -1
- package/dist/agent-runtime/openspec-tool-server.js.map +0 -1
- package/dist/agent-runtime/openspec.js.map +0 -1
- package/dist/agent-runtime/prompts.js.map +0 -1
- package/dist/agent-runtime/provider-diagnostic.js.map +0 -1
- package/dist/agent-runtime/recovery.js.map +0 -1
- package/dist/agent-runtime/repository-context.js.map +0 -1
- package/dist/agent-runtime/review-context.js.map +0 -1
- package/dist/agent-runtime/role-routing.js.map +0 -1
- package/dist/agent-runtime/role-state.js.map +0 -1
- package/dist/agent-runtime/runtime-identity.js.map +0 -1
- package/dist/agent-runtime/tool-event.js.map +0 -1
- package/dist/agent-runtime/verification-plan.js.map +0 -1
- package/dist/agent-runtime/workflow-types.js.map +0 -1
- package/dist/agent-runtime/workflow.js.map +0 -1
- package/dist/agent-runtime/workspace-tools.js.map +0 -1
- package/dist/installer/cli.js.map +0 -1
- package/dist/installer/commands/doctor.d.ts +0 -27
- package/dist/installer/commands/doctor.js +0 -615
- package/dist/installer/commands/doctor.js.map +0 -1
- package/dist/installer/commands/framework.js.map +0 -1
- package/dist/installer/commands/init.js.map +0 -1
- package/dist/installer/commands/update.d.ts +0 -56
- package/dist/installer/commands/update.js +0 -257
- package/dist/installer/commands/update.js.map +0 -1
- package/dist/installer/commands/v5-migration.d.ts +0 -32
- package/dist/installer/commands/v5-migration.js +0 -133
- package/dist/installer/commands/v5-migration.js.map +0 -1
- package/dist/installer/phases/framework-lifecycle.js.map +0 -1
- package/dist/installer/phases/install-config.js.map +0 -1
- package/dist/installer/phases/manifest.js.map +0 -1
- package/dist/installer/phases/prereqs.js.map +0 -1
- package/dist/installer/phases/provider-detect.js.map +0 -1
- package/dist/installer/phases/scaffold.js.map +0 -1
- package/dist/installer/runtime/kimi.d.ts +0 -84
- package/dist/installer/runtime/kimi.js +0 -255
- package/dist/installer/runtime/kimi.js.map +0 -1
- package/dist/installer/runtime/pipeline-state.js.map +0 -1
- package/dist/installer/util/errors.js.map +0 -1
- package/dist/installer/util/exec.js.map +0 -1
- package/dist/installer/util/fs.js.map +0 -1
- package/dist/installer/util/git.js.map +0 -1
- package/dist/installer/util/install-transaction.js.map +0 -1
- package/dist/installer/util/logger.js.map +0 -1
- package/dist/installer/util/paths.js.map +0 -1
- package/dist/installer/util/prompts.d.ts +0 -23
- package/dist/installer/util/prompts.js +0 -49
- package/dist/installer/util/prompts.js.map +0 -1
- package/dist/installer/util/registry.js.map +0 -1
- package/dist/installer/util/template.d.ts +0 -23
- package/dist/installer/util/template.js +0 -60
- package/dist/installer/util/template.js.map +0 -1
- package/docs/README.md +0 -40
- package/docs/agent-runtime-efficiency.md +0 -65
- package/docs/agent-runtime.md +0 -393
- package/docs/agents.md +0 -315
- package/docs/changelog.md +0 -168
- package/docs/ci-cd.md +0 -60
- package/docs/concepts.md +0 -183
- package/docs/customization.md +0 -363
- package/docs/deployment.md +0 -234
- package/docs/getting-started.md +0 -122
- package/docs/installation.md +0 -395
- package/docs/local-tickets.md +0 -191
- package/docs/migration-guide.md +0 -140
- package/docs/playbook-oss-maintainer.md +0 -112
- package/docs/playbook-parallel-dev.md +0 -124
- package/docs/playbook-product-discovery.md +0 -115
- package/docs/plugin-architecture.md +0 -144
- package/docs/research/codex-compatibility-analysis.md +0 -365
- package/docs/research/mcp-feasibility-analysis.md +0 -382
- package/docs/testing/test-matrix-codex.md +0 -130
- package/docs/updating.md +0 -89
- package/docs/user-docs/cli-reference.md +0 -428
- package/docs/user-docs/codex-vs-claude-code.md +0 -23
- package/docs/user-docs/core-updates.md +0 -70
- package/docs/user-docs/faq.md +0 -146
- package/docs/user-docs/getting-started-codex.md +0 -194
- package/docs/user-docs/getting-started-kimi.md +0 -423
- package/docs/user-docs/installation.md +0 -237
- package/docs/user-docs/provider-pipelines.md +0 -96
- package/docs/user-docs/quick-start.md +0 -161
- package/docs/windows.md +0 -78
- package/docs/workflows.md +0 -463
- package/schemas/profile.v1.json +0 -207
- package/templates/claude-md/CLAUDE-quickstart.md +0 -54
- package/templates/claude-md/root.md +0 -50
- package/templates/codex-skills/batch-implement/SKILL.md +0 -38
- package/templates/codex-skills/implement/SKILL.md +0 -38
- package/templates/codex-skills/retry/SKILL.md +0 -16
- package/templates/commands/specrails/compat-check.md +0 -271
- package/templates/commands/specrails/doctor.md +0 -62
- package/templates/commands/specrails/explore-spec.md +0 -173
- package/templates/commands/specrails/health-check.md +0 -527
- package/templates/commands/specrails/memory-inspect.md +0 -261
- package/templates/commands/specrails/opsx-diff.md +0 -419
- package/templates/commands/specrails/propose-spec.md +0 -102
- package/templates/commands/specrails/refactor-recommender.md +0 -169
- package/templates/commands/specrails/telemetry.md +0 -553
- package/templates/commands/specrails/why.md +0 -96
- package/templates/gemini-commands/batch-implement.toml +0 -37
- package/templates/gemini-commands/implement.toml +0 -37
- package/templates/gemini-commands/retry.toml +0 -15
- package/templates/profiles/default.json +0 -14
- package/templates/profiles/kimi-default.json +0 -15
- package/templates/rules/layer.md +0 -8
- package/templates/runtime/provider-pipeline.md +0 -113
- package/templates/security/security-exemptions.yaml +0 -20
- package/templates/settings/confidence-config.json +0 -17
- package/templates/settings/settings.json +0 -15
- /package/dist/{installer/runtime → pipeline}/pipeline-state.d.ts +0 -0
package/docs/deployment.md
DELETED
|
@@ -1,234 +0,0 @@
|
|
|
1
|
-
# Deployment
|
|
2
|
-
|
|
3
|
-
SpecRails runs locally — no cloud infrastructure required. Choose the setup that fits your workflow.
|
|
4
|
-
|
|
5
|
-
## Options at a glance
|
|
6
|
-
|
|
7
|
-
| Option | Best for | Setup time |
|
|
8
|
-
|--------|----------|------------|
|
|
9
|
-
| [Plugin](#plugin-recommended) | Quick start, individual developers | ~1 minute |
|
|
10
|
-
| [Local (npx)](#local-npx) | Any supported provider, full offline control | ~2 minutes |
|
|
11
|
-
| [Local (git clone)](#local-git-clone) | Customization, contributing | ~5 minutes |
|
|
12
|
-
| [Docker](#docker) | Reproducible environments, teams | ~5 minutes |
|
|
13
|
-
| [CI/CD](#cicd-github-actions) | Automated workflows, GitHub Actions | ~10 minutes |
|
|
14
|
-
|
|
15
|
-
---
|
|
16
|
-
|
|
17
|
-
## Plugin (recommended)
|
|
18
|
-
|
|
19
|
-
The fastest way to get started. No Node.js required.
|
|
20
|
-
|
|
21
|
-
```bash
|
|
22
|
-
claude plugin install sr
|
|
23
|
-
/specrails:setup
|
|
24
|
-
```
|
|
25
|
-
|
|
26
|
-
**Requirements:** Claude Code, git
|
|
27
|
-
|
|
28
|
-
---
|
|
29
|
-
|
|
30
|
-
## Local — npx
|
|
31
|
-
|
|
32
|
-
For Claude Code, Codex CLI, Gemini CLI, or Kimi Code users who need full
|
|
33
|
-
control over agent files.
|
|
34
|
-
|
|
35
|
-
```bash
|
|
36
|
-
npx specrails-core@latest init --root-dir .
|
|
37
|
-
```
|
|
38
|
-
|
|
39
|
-
This will:
|
|
40
|
-
1. Scaffold a `.claude/` directory in your project
|
|
41
|
-
2. Install agent templates and the `/specrails:setup` wizard
|
|
42
|
-
|
|
43
|
-
After install, open Claude Code or Codex and run `/specrails:setup` to configure.
|
|
44
|
-
|
|
45
|
-
**Requirements:** Node.js ≥20.19.0 and one supported AI CLI
|
|
46
|
-
|
|
47
|
-
---
|
|
48
|
-
|
|
49
|
-
## Local — git clone
|
|
50
|
-
|
|
51
|
-
Clone the repository for full control and the ability to customize agents.
|
|
52
|
-
|
|
53
|
-
```bash
|
|
54
|
-
git clone https://github.com/fjpulidop/specrails-core
|
|
55
|
-
cd specrails-core
|
|
56
|
-
npm install
|
|
57
|
-
npm run build
|
|
58
|
-
node bin/specrails-core.mjs init --root-dir <your-project>
|
|
59
|
-
```
|
|
60
|
-
|
|
61
|
-
### Updating
|
|
62
|
-
|
|
63
|
-
```bash
|
|
64
|
-
git pull origin main
|
|
65
|
-
npm install
|
|
66
|
-
```
|
|
67
|
-
|
|
68
|
-
See [Updating](./updating.md) for details on preserving local customizations during updates.
|
|
69
|
-
|
|
70
|
-
---
|
|
71
|
-
|
|
72
|
-
## Docker
|
|
73
|
-
|
|
74
|
-
Run SpecRails in a container for portable, reproducible environments.
|
|
75
|
-
|
|
76
|
-
### Quick start
|
|
77
|
-
|
|
78
|
-
```bash
|
|
79
|
-
docker run -it \
|
|
80
|
-
-e ANTHROPIC_API_KEY=$ANTHROPIC_API_KEY \
|
|
81
|
-
-v $(pwd):/workspace \
|
|
82
|
-
ghcr.io/specrails-ai/specrails:latest \
|
|
83
|
-
setup
|
|
84
|
-
```
|
|
85
|
-
|
|
86
|
-
### docker-compose
|
|
87
|
-
|
|
88
|
-
Create a `docker-compose.yml` in your project root:
|
|
89
|
-
|
|
90
|
-
```yaml
|
|
91
|
-
services:
|
|
92
|
-
specrails:
|
|
93
|
-
image: ghcr.io/specrails-ai/specrails:latest
|
|
94
|
-
environment:
|
|
95
|
-
- ANTHROPIC_API_KEY=${ANTHROPIC_API_KEY}
|
|
96
|
-
volumes:
|
|
97
|
-
- .:/workspace
|
|
98
|
-
working_dir: /workspace
|
|
99
|
-
```
|
|
100
|
-
|
|
101
|
-
Then run:
|
|
102
|
-
|
|
103
|
-
```bash
|
|
104
|
-
docker compose run specrails setup
|
|
105
|
-
```
|
|
106
|
-
|
|
107
|
-
### Building locally
|
|
108
|
-
|
|
109
|
-
```bash
|
|
110
|
-
git clone https://github.com/fjpulidop/specrails-core
|
|
111
|
-
cd specrails-core
|
|
112
|
-
docker build -t specrails:local .
|
|
113
|
-
docker run -it \
|
|
114
|
-
-e ANTHROPIC_API_KEY=$ANTHROPIC_API_KEY \
|
|
115
|
-
-v $(pwd):/workspace \
|
|
116
|
-
specrails:local setup
|
|
117
|
-
```
|
|
118
|
-
|
|
119
|
-
---
|
|
120
|
-
|
|
121
|
-
## CI/CD — GitHub Actions
|
|
122
|
-
|
|
123
|
-
Automate SpecRails workflows in your GitHub Actions pipeline.
|
|
124
|
-
|
|
125
|
-
### Prerequisites
|
|
126
|
-
|
|
127
|
-
1. Add `ANTHROPIC_API_KEY` to your repository secrets
|
|
128
|
-
2. (Optional) Add `GITHUB_TOKEN` with write access for PR creation
|
|
129
|
-
|
|
130
|
-
### Basic workflow
|
|
131
|
-
|
|
132
|
-
```yaml
|
|
133
|
-
# .github/workflows/specrails.yml
|
|
134
|
-
name: SpecRails AI Review
|
|
135
|
-
|
|
136
|
-
on:
|
|
137
|
-
pull_request:
|
|
138
|
-
types: [opened, synchronize]
|
|
139
|
-
|
|
140
|
-
jobs:
|
|
141
|
-
review:
|
|
142
|
-
runs-on: ubuntu-latest
|
|
143
|
-
steps:
|
|
144
|
-
- uses: actions/checkout@v4
|
|
145
|
-
|
|
146
|
-
- name: Setup Node.js
|
|
147
|
-
uses: actions/setup-node@v4
|
|
148
|
-
with:
|
|
149
|
-
node-version: '20.19.0'
|
|
150
|
-
|
|
151
|
-
- name: Install SpecRails
|
|
152
|
-
run: npm install -g specrails
|
|
153
|
-
|
|
154
|
-
- name: Run AI review
|
|
155
|
-
env:
|
|
156
|
-
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
|
|
157
|
-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
158
|
-
run: specrails review --pr ${{ github.event.pull_request.number }}
|
|
159
|
-
```
|
|
160
|
-
|
|
161
|
-
### Scheduled batch implementation
|
|
162
|
-
|
|
163
|
-
```yaml
|
|
164
|
-
name: SpecRails Batch Implement
|
|
165
|
-
|
|
166
|
-
on:
|
|
167
|
-
schedule:
|
|
168
|
-
- cron: '0 9 * * 1-5' # Weekdays at 9am UTC
|
|
169
|
-
workflow_dispatch:
|
|
170
|
-
|
|
171
|
-
jobs:
|
|
172
|
-
implement:
|
|
173
|
-
runs-on: ubuntu-latest
|
|
174
|
-
steps:
|
|
175
|
-
- uses: actions/checkout@v4
|
|
176
|
-
with:
|
|
177
|
-
token: ${{ secrets.GITHUB_TOKEN }}
|
|
178
|
-
|
|
179
|
-
- name: Setup Node.js
|
|
180
|
-
uses: actions/setup-node@v4
|
|
181
|
-
with:
|
|
182
|
-
node-version: '20.19.0'
|
|
183
|
-
|
|
184
|
-
- name: Install SpecRails
|
|
185
|
-
run: npm install -g specrails
|
|
186
|
-
|
|
187
|
-
- name: Run batch implementation
|
|
188
|
-
env:
|
|
189
|
-
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
|
|
190
|
-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
191
|
-
run: specrails sr:batch-implement --max 3
|
|
192
|
-
```
|
|
193
|
-
|
|
194
|
-
---
|
|
195
|
-
|
|
196
|
-
## Environment variables
|
|
197
|
-
|
|
198
|
-
| Variable | Required | Description |
|
|
199
|
-
|----------|----------|-------------|
|
|
200
|
-
| `ANTHROPIC_API_KEY` | Yes | Your Claude API key |
|
|
201
|
-
| `GITHUB_TOKEN` | For PR creation | GitHub personal access token or Actions token |
|
|
202
|
-
| `SPECRAILS_LOG_LEVEL` | No | `debug`, `info` (default), `warn`, `error` |
|
|
203
|
-
| `SPECRAILS_MODEL` | No | Override default model (e.g. `claude-opus-4-8`) |
|
|
204
|
-
|
|
205
|
-
---
|
|
206
|
-
|
|
207
|
-
## Troubleshooting
|
|
208
|
-
|
|
209
|
-
### Permission errors on macOS
|
|
210
|
-
|
|
211
|
-
```bash
|
|
212
|
-
sudo npm install -g specrails
|
|
213
|
-
# or use a node version manager (nvm, volta) to avoid sudo
|
|
214
|
-
```
|
|
215
|
-
|
|
216
|
-
### Docker volume permissions
|
|
217
|
-
|
|
218
|
-
If agents cannot write files inside the container:
|
|
219
|
-
|
|
220
|
-
```bash
|
|
221
|
-
docker run -it \
|
|
222
|
-
--user $(id -u):$(id -g) \
|
|
223
|
-
-v $(pwd):/workspace \
|
|
224
|
-
ghcr.io/specrails-ai/specrails:latest
|
|
225
|
-
```
|
|
226
|
-
|
|
227
|
-
### API key not found
|
|
228
|
-
|
|
229
|
-
Ensure `ANTHROPIC_API_KEY` is exported in your shell:
|
|
230
|
-
|
|
231
|
-
```bash
|
|
232
|
-
export ANTHROPIC_API_KEY=sk-ant-...
|
|
233
|
-
# Add to ~/.zshrc or ~/.bashrc to persist
|
|
234
|
-
```
|
package/docs/getting-started.md
DELETED
|
@@ -1,122 +0,0 @@
|
|
|
1
|
-
# Getting Started
|
|
2
|
-
|
|
3
|
-
Get SpecRails running in your project in under 5 minutes.
|
|
4
|
-
|
|
5
|
-
## What is SpecRails?
|
|
6
|
-
|
|
7
|
-
SpecRails installs a **product-driven development workflow** into any
|
|
8
|
-
repository. It gives Claude Code, Codex CLI, Gemini CLI, or Kimi Code a team of
|
|
9
|
-
specialized AI roles — an architect, developers, layer reviewers, a reviewer,
|
|
10
|
-
and a product manager — that work together to go from idea to shipped PR
|
|
11
|
-
automatically.
|
|
12
|
-
|
|
13
|
-
Think of it as hiring a full engineering team that lives inside your CLI.
|
|
14
|
-
|
|
15
|
-
## Prerequisites
|
|
16
|
-
|
|
17
|
-
You need:
|
|
18
|
-
|
|
19
|
-
- **Git** — your project must be a git repository
|
|
20
|
-
- One supported AI CLI: Claude Code, Codex CLI, Gemini CLI, or Kimi Code
|
|
21
|
-
|
|
22
|
-
Optional (recommended):
|
|
23
|
-
|
|
24
|
-
- **[GitHub CLI](https://cli.github.com/)** (`gh`) — for automatic PR creation and issue tracking
|
|
25
|
-
|
|
26
|
-
See the [Codex guide](user-docs/getting-started-codex.md) or
|
|
27
|
-
[Kimi guide](user-docs/getting-started-kimi.md) for provider-specific setup.
|
|
28
|
-
|
|
29
|
-
## Install
|
|
30
|
-
|
|
31
|
-
**Plugin method (recommended) — no Node.js required**
|
|
32
|
-
|
|
33
|
-
```bash
|
|
34
|
-
claude plugin install sr
|
|
35
|
-
```
|
|
36
|
-
|
|
37
|
-
**Scaffold method (all providers, or full offline control)**
|
|
38
|
-
|
|
39
|
-
```bash
|
|
40
|
-
npx specrails-core@latest init --root-dir <your-project>
|
|
41
|
-
```
|
|
42
|
-
|
|
43
|
-
See [installation.md](installation.md) for full details on both methods and when to use each.
|
|
44
|
-
|
|
45
|
-
## Installation Tiers
|
|
46
|
-
|
|
47
|
-
### Quick Install (default via TUI)
|
|
48
|
-
|
|
49
|
-
When you run `npx specrails-core@latest init`, the TUI installer lets you choose **Quick** tier. This places agents, commands, rules, and settings directly — no AI interaction required:
|
|
50
|
-
|
|
51
|
-
1. Select agents to install
|
|
52
|
-
2. Choose a model preset
|
|
53
|
-
3. Provide a brief product description
|
|
54
|
-
|
|
55
|
-
Agents are ready to use immediately after install. Open the selected provider
|
|
56
|
-
CLI and start working.
|
|
57
|
-
|
|
58
|
-
> Quick install excludes VPC personas and persona-dependent agents/commands (sr-product-manager, sr-product-analyst). These require the full enrichment process.
|
|
59
|
-
|
|
60
|
-
### Full Install (via `/specrails:enrich`)
|
|
61
|
-
|
|
62
|
-
For deeper customization, choose **Full** tier or run `/specrails:enrich` after a Quick install:
|
|
63
|
-
|
|
64
|
-
```
|
|
65
|
-
/specrails:enrich
|
|
66
|
-
```
|
|
67
|
-
|
|
68
|
-
The full 5-phase wizard provides deep stack analysis, researched user personas, and fully adapted agents:
|
|
69
|
-
|
|
70
|
-
| Phase | What happens |
|
|
71
|
-
|-------|-------------|
|
|
72
|
-
| **1. Analyze** | Detects your tech stack, architecture layers, CI commands, and conventions |
|
|
73
|
-
| **2. Personas** | Researches your competitive landscape and generates full VPC user personas |
|
|
74
|
-
| **3. Configure** | Asks about your backlog provider, git workflow, and which agents to enable |
|
|
75
|
-
| **4. Generate** | Generates your project data files (`.specrails/`) with project-specific context |
|
|
76
|
-
| **5. Cleanup** | Removes the wizard scaffolding, leaving only your tailored workflow files |
|
|
77
|
-
|
|
78
|
-
Full install adds VPC personas, sr-product-manager, sr-product-analyst, and persona-dependent commands.
|
|
79
|
-
|
|
80
|
-
After either tier, your `/specrails:*` commands are live.
|
|
81
|
-
|
|
82
|
-
## Your first feature
|
|
83
|
-
|
|
84
|
-
Let's implement something. Pick an issue from your backlog, or describe a feature:
|
|
85
|
-
|
|
86
|
-
```
|
|
87
|
-
/specrails:implement "add a health check endpoint"
|
|
88
|
-
```
|
|
89
|
-
|
|
90
|
-
SpecRails will:
|
|
91
|
-
|
|
92
|
-
1. **Architect** analyzes the request and designs the implementation
|
|
93
|
-
2. **Developer** writes the code across all layers
|
|
94
|
-
3. **Test Writer** generates tests for the new code
|
|
95
|
-
4. **Doc Sync** updates your changelog and docs
|
|
96
|
-
5. **Security Reviewer** scans for secrets and vulnerabilities
|
|
97
|
-
6. **Reviewer** runs your full CI suite and fixes any issues
|
|
98
|
-
7. Creates a **Pull Request** ready for human review
|
|
99
|
-
|
|
100
|
-
That's it. One command, full pipeline.
|
|
101
|
-
|
|
102
|
-
## Useful commands for newcomers
|
|
103
|
-
|
|
104
|
-
Once you have a feature running, a few commands help you understand what's happening and why:
|
|
105
|
-
|
|
106
|
-
- `/specrails:why "question"` — search agent explanation records in plain language. Ask why a design decision was made, why a library was chosen, or why a particular pattern is used. Agents record their reasoning as they work.
|
|
107
|
-
- `/specrails:get-backlog-specs` — see your prioritized backlog with safe implementation ordering. Good first stop before picking what to build next.
|
|
108
|
-
- `/specrails:compat-check #N` — check whether an issue's implementation would break existing API consumers before you commit to it.
|
|
109
|
-
|
|
110
|
-
## What's next?
|
|
111
|
-
|
|
112
|
-
Now that you're running, learn how the system thinks:
|
|
113
|
-
|
|
114
|
-
- [Core Concepts](concepts.md) — understand the pipeline architecture and product-driven approach
|
|
115
|
-
- [Agents](agents.md) — meet each agent and understand their role
|
|
116
|
-
- [Workflows & Commands](workflows.md) — master the full command set
|
|
117
|
-
|
|
118
|
-
---
|
|
119
|
-
|
|
120
|
-
**Looking for step-by-step guides?** See [Quick Start](user-docs/quick-start.md) for a walkthrough of your first feature, or [Installation](user-docs/installation.md) for detailed install options including Codex support.
|
|
121
|
-
|
|
122
|
-
[← Back to Docs](README.md) · [Core Concepts →](concepts.md)
|