specrails-core 5.5.1 → 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.
Files changed (276) hide show
  1. package/README.md +27 -145
  2. package/bin/specrails-core.mjs +12 -554
  3. package/dist/agent-runtime/capabilities.js +0 -1
  4. package/dist/agent-runtime/cli-executor.d.ts +1 -1
  5. package/dist/agent-runtime/cli-executor.js +4 -3
  6. package/dist/agent-runtime/cli-process.js +0 -1
  7. package/dist/agent-runtime/cli.d.ts +8 -0
  8. package/dist/agent-runtime/cli.js +31 -5
  9. package/dist/agent-runtime/codex-schema.js +0 -1
  10. package/dist/agent-runtime/compact/architect.d.ts +3 -272
  11. package/dist/agent-runtime/compact/architect.js +8 -9
  12. package/dist/agent-runtime/compact/chat-client.d.ts +3 -3
  13. package/dist/agent-runtime/compact/chat-client.js +1 -2
  14. package/dist/agent-runtime/compact/developer.d.ts +3 -70
  15. package/dist/agent-runtime/compact/developer.js +13 -14
  16. package/dist/agent-runtime/compact/environment.d.ts +4 -5
  17. package/dist/agent-runtime/compact/environment.js +1 -2
  18. package/dist/agent-runtime/compact/exit-code-honesty.d.ts +2 -1
  19. package/dist/agent-runtime/compact/exit-code-honesty.js +0 -1
  20. package/dist/agent-runtime/compact/guarded-loop.d.ts +2 -18
  21. package/dist/agent-runtime/compact/guarded-loop.js +7 -8
  22. package/dist/agent-runtime/compact/prompt-inputs.d.ts +0 -2
  23. package/dist/agent-runtime/compact/prompt-inputs.js +1 -2
  24. package/dist/agent-runtime/compact/reviewer.d.ts +0 -13
  25. package/dist/agent-runtime/compact/reviewer.js +5 -6
  26. package/dist/agent-runtime/compact/step.d.ts +0 -1
  27. package/dist/agent-runtime/compact/step.js +1 -2
  28. package/dist/agent-runtime/compact/test-reachability.js +0 -1
  29. package/dist/agent-runtime/config.js +0 -1
  30. package/dist/agent-runtime/core-host.d.ts +1 -1
  31. package/dist/agent-runtime/core-host.js +5 -3
  32. package/dist/agent-runtime/durable-store.d.ts +0 -1
  33. package/dist/agent-runtime/durable-store.js +1 -2
  34. package/dist/agent-runtime/efficiency-summary.d.ts +2 -2
  35. package/dist/agent-runtime/efficiency-summary.js +1 -2
  36. package/dist/agent-runtime/efficiency-types.js +0 -1
  37. package/dist/agent-runtime/efficiency.js +0 -1
  38. package/dist/agent-runtime/evaluation-corpus.js +0 -1
  39. package/dist/agent-runtime/evaluation.d.ts +2 -1
  40. package/dist/agent-runtime/evaluation.js +1 -2
  41. package/dist/agent-runtime/executor-types.d.ts +1 -1
  42. package/dist/agent-runtime/executor-types.js +0 -1
  43. package/dist/agent-runtime/executors.js +0 -1
  44. package/dist/agent-runtime/gemini-policy.js +0 -1
  45. package/dist/agent-runtime/graph/artifacts.d.ts +1 -1
  46. package/dist/agent-runtime/graph/artifacts.js +11 -5
  47. package/dist/agent-runtime/graph/nodes.d.ts +1 -1
  48. package/dist/agent-runtime/graph/nodes.js +1 -2
  49. package/dist/agent-runtime/graph/review-policy.js +0 -1
  50. package/dist/agent-runtime/graph/roles.d.ts +2 -5
  51. package/dist/agent-runtime/graph/roles.js +2 -8
  52. package/dist/agent-runtime/graph/state.d.ts +1 -1
  53. package/dist/agent-runtime/graph/state.js +0 -1
  54. package/dist/agent-runtime/graph-checkpointer.d.ts +2 -1
  55. package/dist/agent-runtime/graph-checkpointer.js +0 -1
  56. package/dist/agent-runtime/guardrails.d.ts +3 -3
  57. package/dist/agent-runtime/guardrails.js +1 -2
  58. package/dist/agent-runtime/index.d.ts +2 -1
  59. package/dist/agent-runtime/index.js +2 -2
  60. package/dist/agent-runtime/kimi-acp.js +1 -2
  61. package/dist/agent-runtime/kimi-model.d.ts +6 -0
  62. package/dist/agent-runtime/kimi-model.js +12 -0
  63. package/dist/agent-runtime/openai-executor.d.ts +0 -9
  64. package/dist/agent-runtime/openai-executor.js +6 -7
  65. package/dist/agent-runtime/openspec-tool-server.js +1 -2
  66. package/dist/agent-runtime/openspec.d.ts +0 -2
  67. package/dist/agent-runtime/openspec.js +3 -7
  68. package/dist/agent-runtime/prompts.d.ts +4 -3
  69. package/dist/agent-runtime/prompts.js +0 -1
  70. package/dist/agent-runtime/provider-diagnostic.js +1 -2
  71. package/dist/agent-runtime/recovery.d.ts +46 -0
  72. package/dist/agent-runtime/recovery.js +169 -0
  73. package/dist/agent-runtime/repository-context.d.ts +1 -1
  74. package/dist/agent-runtime/repository-context.js +0 -1
  75. package/dist/agent-runtime/review-context.d.ts +1 -1
  76. package/dist/agent-runtime/review-context.js +0 -1
  77. package/dist/agent-runtime/role-routing.js +0 -1
  78. package/dist/agent-runtime/role-state.js +0 -1
  79. package/dist/agent-runtime/runtime-identity.js +1 -2
  80. package/dist/agent-runtime/tool-event.js +0 -1
  81. package/dist/agent-runtime/verification-plan.d.ts +5 -4
  82. package/dist/agent-runtime/verification-plan.js +1 -2
  83. package/dist/agent-runtime/workflow-types.js +0 -1
  84. package/dist/agent-runtime/workflow.js +0 -1
  85. package/dist/agent-runtime/workspace-tools.d.ts +2 -2
  86. package/dist/agent-runtime/workspace-tools.js +1 -2
  87. package/dist/installer/cli.d.ts +3 -32
  88. package/dist/installer/cli.js +26 -101
  89. package/dist/installer/commands/framework.d.ts +4 -3
  90. package/dist/installer/commands/framework.js +0 -1
  91. package/dist/installer/commands/init.d.ts +4 -25
  92. package/dist/installer/commands/init.js +5 -8
  93. package/dist/installer/phases/framework-lifecycle.d.ts +3 -17
  94. package/dist/installer/phases/framework-lifecycle.js +2 -3
  95. package/dist/installer/phases/install-config.d.ts +7 -8
  96. package/dist/installer/phases/install-config.js +2 -7
  97. package/dist/installer/phases/manifest.d.ts +6 -7
  98. package/dist/installer/phases/manifest.js +2 -7
  99. package/dist/installer/phases/prereqs.d.ts +6 -7
  100. package/dist/installer/phases/prereqs.js +4 -6
  101. package/dist/installer/phases/provider-detect.d.ts +6 -7
  102. package/dist/installer/phases/provider-detect.js +2 -4
  103. package/dist/installer/phases/scaffold.d.ts +9 -10
  104. package/dist/installer/phases/scaffold.js +82 -805
  105. package/dist/installer/util/errors.js +0 -1
  106. package/dist/installer/util/exec.d.ts +3 -2
  107. package/dist/installer/util/exec.js +0 -1
  108. package/dist/installer/util/fs.d.ts +0 -10
  109. package/dist/installer/util/fs.js +1 -2
  110. package/dist/installer/util/git.js +0 -1
  111. package/dist/installer/util/install-transaction.d.ts +2 -2
  112. package/dist/installer/util/install-transaction.js +1 -2
  113. package/dist/installer/util/logger.d.ts +1 -3
  114. package/dist/installer/util/logger.js +0 -1
  115. package/dist/installer/util/paths.js +0 -1
  116. package/dist/installer/util/registry.d.ts +4 -8
  117. package/dist/installer/util/registry.js +2 -3
  118. package/dist/{installer/runtime → pipeline}/pipeline-state.js +0 -3
  119. package/dist/shared/args.d.ts +18 -0
  120. package/dist/shared/args.js +53 -0
  121. package/integration-contract.json +10 -46
  122. package/package.json +3 -10
  123. package/templates/agents/sr-architect.md +15 -310
  124. package/templates/agents/sr-developer.md +15 -269
  125. package/templates/agents/sr-reviewer.md +13 -367
  126. package/templates/codex-skills/rails/sr-architect/SKILL.md +14 -308
  127. package/templates/codex-skills/rails/sr-developer/SKILL.md +14 -201
  128. package/templates/codex-skills/rails/sr-reviewer/SKILL.md +15 -289
  129. package/templates/kimi/specrails/run-skill.mjs +91 -2173
  130. package/bin/tui-installer.mjs +0 -430
  131. package/commands/doctor.md +0 -62
  132. package/dist/agent-runtime/capabilities.js.map +0 -1
  133. package/dist/agent-runtime/cli-executor.js.map +0 -1
  134. package/dist/agent-runtime/cli-process.js.map +0 -1
  135. package/dist/agent-runtime/cli.js.map +0 -1
  136. package/dist/agent-runtime/codex-schema.js.map +0 -1
  137. package/dist/agent-runtime/compact/architect.js.map +0 -1
  138. package/dist/agent-runtime/compact/chat-client.js.map +0 -1
  139. package/dist/agent-runtime/compact/developer.js.map +0 -1
  140. package/dist/agent-runtime/compact/environment.js.map +0 -1
  141. package/dist/agent-runtime/compact/exit-code-honesty.js.map +0 -1
  142. package/dist/agent-runtime/compact/guarded-loop.js.map +0 -1
  143. package/dist/agent-runtime/compact/prompt-inputs.js.map +0 -1
  144. package/dist/agent-runtime/compact/reviewer.js.map +0 -1
  145. package/dist/agent-runtime/compact/step.js.map +0 -1
  146. package/dist/agent-runtime/compact/test-reachability.js.map +0 -1
  147. package/dist/agent-runtime/config.js.map +0 -1
  148. package/dist/agent-runtime/core-host.js.map +0 -1
  149. package/dist/agent-runtime/durable-store.js.map +0 -1
  150. package/dist/agent-runtime/efficiency-summary.js.map +0 -1
  151. package/dist/agent-runtime/efficiency-types.js.map +0 -1
  152. package/dist/agent-runtime/efficiency.js.map +0 -1
  153. package/dist/agent-runtime/evaluation-corpus.js.map +0 -1
  154. package/dist/agent-runtime/evaluation.js.map +0 -1
  155. package/dist/agent-runtime/executor-types.js.map +0 -1
  156. package/dist/agent-runtime/executors.js.map +0 -1
  157. package/dist/agent-runtime/gemini-policy.js.map +0 -1
  158. package/dist/agent-runtime/graph/artifacts.js.map +0 -1
  159. package/dist/agent-runtime/graph/nodes.js.map +0 -1
  160. package/dist/agent-runtime/graph/review-policy.js.map +0 -1
  161. package/dist/agent-runtime/graph/roles.js.map +0 -1
  162. package/dist/agent-runtime/graph/state.js.map +0 -1
  163. package/dist/agent-runtime/graph-checkpointer.js.map +0 -1
  164. package/dist/agent-runtime/guardrails.js.map +0 -1
  165. package/dist/agent-runtime/index.js.map +0 -1
  166. package/dist/agent-runtime/kimi-acp.js.map +0 -1
  167. package/dist/agent-runtime/openai-executor.js.map +0 -1
  168. package/dist/agent-runtime/openspec-tool-server.js.map +0 -1
  169. package/dist/agent-runtime/openspec.js.map +0 -1
  170. package/dist/agent-runtime/prompts.js.map +0 -1
  171. package/dist/agent-runtime/provider-diagnostic.js.map +0 -1
  172. package/dist/agent-runtime/repository-context.js.map +0 -1
  173. package/dist/agent-runtime/review-context.js.map +0 -1
  174. package/dist/agent-runtime/role-routing.js.map +0 -1
  175. package/dist/agent-runtime/role-state.js.map +0 -1
  176. package/dist/agent-runtime/runtime-identity.js.map +0 -1
  177. package/dist/agent-runtime/tool-event.js.map +0 -1
  178. package/dist/agent-runtime/verification-plan.js.map +0 -1
  179. package/dist/agent-runtime/workflow-types.js.map +0 -1
  180. package/dist/agent-runtime/workflow.js.map +0 -1
  181. package/dist/agent-runtime/workspace-tools.js.map +0 -1
  182. package/dist/installer/cli.js.map +0 -1
  183. package/dist/installer/commands/doctor.d.ts +0 -27
  184. package/dist/installer/commands/doctor.js +0 -615
  185. package/dist/installer/commands/doctor.js.map +0 -1
  186. package/dist/installer/commands/framework.js.map +0 -1
  187. package/dist/installer/commands/init.js.map +0 -1
  188. package/dist/installer/commands/update.d.ts +0 -56
  189. package/dist/installer/commands/update.js +0 -257
  190. package/dist/installer/commands/update.js.map +0 -1
  191. package/dist/installer/commands/v5-migration.d.ts +0 -32
  192. package/dist/installer/commands/v5-migration.js +0 -133
  193. package/dist/installer/commands/v5-migration.js.map +0 -1
  194. package/dist/installer/phases/framework-lifecycle.js.map +0 -1
  195. package/dist/installer/phases/install-config.js.map +0 -1
  196. package/dist/installer/phases/manifest.js.map +0 -1
  197. package/dist/installer/phases/prereqs.js.map +0 -1
  198. package/dist/installer/phases/provider-detect.js.map +0 -1
  199. package/dist/installer/phases/scaffold.js.map +0 -1
  200. package/dist/installer/runtime/kimi.d.ts +0 -84
  201. package/dist/installer/runtime/kimi.js +0 -255
  202. package/dist/installer/runtime/kimi.js.map +0 -1
  203. package/dist/installer/runtime/pipeline-state.js.map +0 -1
  204. package/dist/installer/util/errors.js.map +0 -1
  205. package/dist/installer/util/exec.js.map +0 -1
  206. package/dist/installer/util/fs.js.map +0 -1
  207. package/dist/installer/util/git.js.map +0 -1
  208. package/dist/installer/util/install-transaction.js.map +0 -1
  209. package/dist/installer/util/logger.js.map +0 -1
  210. package/dist/installer/util/paths.js.map +0 -1
  211. package/dist/installer/util/prompts.d.ts +0 -23
  212. package/dist/installer/util/prompts.js +0 -49
  213. package/dist/installer/util/prompts.js.map +0 -1
  214. package/dist/installer/util/registry.js.map +0 -1
  215. package/dist/installer/util/template.d.ts +0 -23
  216. package/dist/installer/util/template.js +0 -60
  217. package/dist/installer/util/template.js.map +0 -1
  218. package/docs/README.md +0 -40
  219. package/docs/agent-runtime-efficiency.md +0 -65
  220. package/docs/agent-runtime.md +0 -347
  221. package/docs/agents.md +0 -315
  222. package/docs/changelog.md +0 -168
  223. package/docs/ci-cd.md +0 -60
  224. package/docs/concepts.md +0 -183
  225. package/docs/customization.md +0 -363
  226. package/docs/deployment.md +0 -234
  227. package/docs/getting-started.md +0 -122
  228. package/docs/installation.md +0 -395
  229. package/docs/local-tickets.md +0 -191
  230. package/docs/migration-guide.md +0 -140
  231. package/docs/playbook-oss-maintainer.md +0 -112
  232. package/docs/playbook-parallel-dev.md +0 -124
  233. package/docs/playbook-product-discovery.md +0 -115
  234. package/docs/plugin-architecture.md +0 -144
  235. package/docs/research/codex-compatibility-analysis.md +0 -365
  236. package/docs/research/mcp-feasibility-analysis.md +0 -382
  237. package/docs/testing/test-matrix-codex.md +0 -130
  238. package/docs/updating.md +0 -89
  239. package/docs/user-docs/cli-reference.md +0 -428
  240. package/docs/user-docs/codex-vs-claude-code.md +0 -23
  241. package/docs/user-docs/core-updates.md +0 -70
  242. package/docs/user-docs/faq.md +0 -146
  243. package/docs/user-docs/getting-started-codex.md +0 -194
  244. package/docs/user-docs/getting-started-kimi.md +0 -423
  245. package/docs/user-docs/installation.md +0 -237
  246. package/docs/user-docs/provider-pipelines.md +0 -96
  247. package/docs/user-docs/quick-start.md +0 -161
  248. package/docs/windows.md +0 -78
  249. package/docs/workflows.md +0 -463
  250. package/schemas/profile.v1.json +0 -207
  251. package/templates/claude-md/CLAUDE-quickstart.md +0 -54
  252. package/templates/claude-md/root.md +0 -50
  253. package/templates/codex-skills/batch-implement/SKILL.md +0 -38
  254. package/templates/codex-skills/implement/SKILL.md +0 -38
  255. package/templates/codex-skills/retry/SKILL.md +0 -16
  256. package/templates/commands/specrails/compat-check.md +0 -271
  257. package/templates/commands/specrails/doctor.md +0 -62
  258. package/templates/commands/specrails/explore-spec.md +0 -173
  259. package/templates/commands/specrails/health-check.md +0 -527
  260. package/templates/commands/specrails/memory-inspect.md +0 -261
  261. package/templates/commands/specrails/opsx-diff.md +0 -419
  262. package/templates/commands/specrails/propose-spec.md +0 -102
  263. package/templates/commands/specrails/refactor-recommender.md +0 -169
  264. package/templates/commands/specrails/telemetry.md +0 -552
  265. package/templates/commands/specrails/why.md +0 -96
  266. package/templates/gemini-commands/batch-implement.toml +0 -37
  267. package/templates/gemini-commands/implement.toml +0 -37
  268. package/templates/gemini-commands/retry.toml +0 -15
  269. package/templates/profiles/default.json +0 -14
  270. package/templates/profiles/kimi-default.json +0 -15
  271. package/templates/rules/layer.md +0 -8
  272. package/templates/runtime/provider-pipeline.md +0 -113
  273. package/templates/security/security-exemptions.yaml +0 -20
  274. package/templates/settings/confidence-config.json +0 -17
  275. package/templates/settings/settings.json +0 -15
  276. /package/dist/{installer/runtime → pipeline}/pipeline-state.d.ts +0 -0
@@ -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
- ```
@@ -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)