@arthai/agents 1.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 +123 -0
- package/VERSION +1 -0
- package/agents/ai-consultant.md +999 -0
- package/agents/architect.md +174 -0
- package/agents/code-reviewer.md +115 -0
- package/agents/competitive-analyst.md +688 -0
- package/agents/content-strategist.md +607 -0
- package/agents/design-studio-create.md +304 -0
- package/agents/design-studio-critique.md +258 -0
- package/agents/design-studio-think.md +79 -0
- package/agents/domain-hunter.md +519 -0
- package/agents/explore-light.md +52 -0
- package/agents/frontend.md +261 -0
- package/agents/gtm-expert.md +811 -0
- package/agents/meeting-prep.md +318 -0
- package/agents/ops.md +149 -0
- package/agents/product-manager.md +563 -0
- package/agents/python-backend.md +286 -0
- package/agents/qa-baseline-updater.md +45 -0
- package/agents/qa-challenger.md +97 -0
- package/agents/qa-domain.md +145 -0
- package/agents/qa-e2e.md +184 -0
- package/agents/qa-test-promoter.md +97 -0
- package/agents/qa.md +226 -0
- package/agents/setup.md +134 -0
- package/agents/sre.md +165 -0
- package/agents/stakeholder-reporter.md +94 -0
- package/agents/user-researcher.md +602 -0
- package/bin/cli.js +322 -0
- package/bundles/canvas.json +16 -0
- package/bundles/compass.json +16 -0
- package/bundles/counsel.json +31 -0
- package/bundles/cruise.json +11 -0
- package/bundles/forge.json +26 -0
- package/bundles/prime.json +10 -0
- package/bundles/prism.json +23 -0
- package/bundles/scalpel.json +17 -0
- package/bundles/sentinel.json +19 -0
- package/bundles/shield.json +14 -0
- package/bundles/spark.json +19 -0
- package/compiler.sh +305 -0
- package/dist/plugins/canvas/.claude-plugin/plugin.json +6 -0
- package/dist/plugins/canvas/agents/design-studio-create.md +304 -0
- package/dist/plugins/canvas/agents/design-studio-critique.md +258 -0
- package/dist/plugins/canvas/agents/design-studio-think.md +79 -0
- package/dist/plugins/canvas/agents/frontend.md +261 -0
- package/dist/plugins/canvas/skills/planning/SKILL.md +436 -0
- package/dist/plugins/compass/.claude-plugin/plugin.json +6 -0
- package/dist/plugins/compass/agents/content-strategist.md +607 -0
- package/dist/plugins/compass/agents/gtm-expert.md +811 -0
- package/dist/plugins/compass/agents/product-manager.md +563 -0
- package/dist/plugins/compass/agents/user-researcher.md +602 -0
- package/dist/plugins/compass/skills/planning/SKILL.md +436 -0
- package/dist/plugins/counsel/.claude-plugin/plugin.json +6 -0
- package/dist/plugins/counsel/agents/ai-consultant.md +999 -0
- package/dist/plugins/counsel/agents/competitive-analyst.md +688 -0
- package/dist/plugins/counsel/agents/meeting-prep.md +318 -0
- package/dist/plugins/counsel/agents/stakeholder-reporter.md +94 -0
- package/dist/plugins/counsel/hooks/check-deliverable.sh +65 -0
- package/dist/plugins/counsel/hooks/ensure-client-dir.sh +59 -0
- package/dist/plugins/counsel/hooks/hooks.json +28 -0
- package/dist/plugins/counsel/skills/client-discovery/SKILL.md +266 -0
- package/dist/plugins/counsel/skills/consulting/SKILL.md +282 -0
- package/dist/plugins/counsel/skills/deliverable-builder/SKILL.md +928 -0
- package/dist/plugins/counsel/skills/engagement-tracker/SKILL.md +380 -0
- package/dist/plugins/counsel/skills/market-research/SKILL.md +300 -0
- package/dist/plugins/counsel/skills/opportunity-map/SKILL.md +307 -0
- package/dist/plugins/counsel/skills/pitch-generator/SKILL.md +378 -0
- package/dist/plugins/counsel/skills/roi-calculator/SKILL.md +469 -0
- package/dist/plugins/counsel/skills/share/SKILL.md +211 -0
- package/dist/plugins/counsel/skills/solution-architect/SKILL.md +566 -0
- package/dist/plugins/counsel/skills/templates/SKILL.md +194 -0
- package/dist/plugins/counsel/skills/welcome/SKILL.md +136 -0
- package/dist/plugins/counsel/skills/wizard/SKILL.md +411 -0
- package/dist/plugins/cruise/.claude-plugin/plugin.json +6 -0
- package/dist/plugins/cruise/skills/autopilot/SKILL.md +425 -0
- package/dist/plugins/forge/.claude-plugin/plugin.json +6 -0
- package/dist/plugins/forge/agents/architect.md +174 -0
- package/dist/plugins/forge/agents/code-reviewer.md +115 -0
- package/dist/plugins/forge/agents/frontend.md +261 -0
- package/dist/plugins/forge/agents/product-manager.md +563 -0
- package/dist/plugins/forge/agents/python-backend.md +286 -0
- package/dist/plugins/forge/agents/qa.md +226 -0
- package/dist/plugins/forge/hooks/hooks.json +28 -0
- package/dist/plugins/forge/hooks/post-test-summary.sh +115 -0
- package/dist/plugins/forge/hooks/triage-router.sh +740 -0
- package/dist/plugins/forge/skills/implement/SKILL.md +532 -0
- package/dist/plugins/forge/skills/planning/SKILL.md +436 -0
- package/dist/plugins/forge/skills/pr/SKILL.md +275 -0
- package/dist/plugins/forge/skills/precheck/SKILL.md +159 -0
- package/dist/plugins/forge/skills/qa/SKILL.md +127 -0
- package/dist/plugins/forge/skills/review-pr/SKILL.md +367 -0
- package/dist/plugins/prime/.claude-plugin/plugin.json +6 -0
- package/dist/plugins/prime/agents/ai-consultant.md +999 -0
- package/dist/plugins/prime/agents/architect.md +174 -0
- package/dist/plugins/prime/agents/code-reviewer.md +115 -0
- package/dist/plugins/prime/agents/competitive-analyst.md +688 -0
- package/dist/plugins/prime/agents/content-strategist.md +607 -0
- package/dist/plugins/prime/agents/design-studio-create.md +304 -0
- package/dist/plugins/prime/agents/design-studio-critique.md +258 -0
- package/dist/plugins/prime/agents/design-studio-think.md +79 -0
- package/dist/plugins/prime/agents/explore-light.md +52 -0
- package/dist/plugins/prime/agents/frontend.md +261 -0
- package/dist/plugins/prime/agents/gtm-expert.md +811 -0
- package/dist/plugins/prime/agents/meeting-prep.md +318 -0
- package/dist/plugins/prime/agents/ops.md +149 -0
- package/dist/plugins/prime/agents/product-manager.md +563 -0
- package/dist/plugins/prime/agents/python-backend.md +286 -0
- package/dist/plugins/prime/agents/qa-baseline-updater.md +45 -0
- package/dist/plugins/prime/agents/qa-challenger.md +97 -0
- package/dist/plugins/prime/agents/qa-domain.md +145 -0
- package/dist/plugins/prime/agents/qa-e2e.md +184 -0
- package/dist/plugins/prime/agents/qa-test-promoter.md +97 -0
- package/dist/plugins/prime/agents/qa.md +226 -0
- package/dist/plugins/prime/agents/setup.md +134 -0
- package/dist/plugins/prime/agents/sre.md +165 -0
- package/dist/plugins/prime/agents/stakeholder-reporter.md +94 -0
- package/dist/plugins/prime/agents/user-researcher.md +602 -0
- package/dist/plugins/prime/hooks/check-deliverable.sh +65 -0
- package/dist/plugins/prime/hooks/ensure-client-dir.sh +59 -0
- package/dist/plugins/prime/hooks/hooks.json +184 -0
- package/dist/plugins/prime/hooks/post-deploy-health.sh +83 -0
- package/dist/plugins/prime/hooks/post-diff-test-compare.sh +125 -0
- package/dist/plugins/prime/hooks/post-edit-lint.sh +92 -0
- package/dist/plugins/prime/hooks/post-git-state.sh +54 -0
- package/dist/plugins/prime/hooks/post-merge-cleanup.sh +101 -0
- package/dist/plugins/prime/hooks/post-test-summary.sh +115 -0
- package/dist/plugins/prime/hooks/pre-bash-guard.sh +142 -0
- package/dist/plugins/prime/hooks/pre-edit-guard.sh +121 -0
- package/dist/plugins/prime/hooks/pre-task-context.sh +113 -0
- package/dist/plugins/prime/hooks/session-bootstrap.sh +379 -0
- package/dist/plugins/prime/hooks/session-end.sh +107 -0
- package/dist/plugins/prime/hooks/session-summary.sh +97 -0
- package/dist/plugins/prime/hooks/sync-agents.sh +269 -0
- package/dist/plugins/prime/hooks/triage-router.sh +740 -0
- package/dist/plugins/prime/skills/arth/SKILL.md +165 -0
- package/dist/plugins/prime/skills/autopilot/SKILL.md +425 -0
- package/dist/plugins/prime/skills/calibrate/SKILL.md +1807 -0
- package/dist/plugins/prime/skills/ci-fix/SKILL.md +293 -0
- package/dist/plugins/prime/skills/client-discovery/SKILL.md +266 -0
- package/dist/plugins/prime/skills/consulting/SKILL.md +282 -0
- package/dist/plugins/prime/skills/custom-domain/SKILL.md +261 -0
- package/dist/plugins/prime/skills/deliverable-builder/SKILL.md +928 -0
- package/dist/plugins/prime/skills/discord-ops/SKILL.md +125 -0
- package/dist/plugins/prime/skills/engagement-tracker/SKILL.md +380 -0
- package/dist/plugins/prime/skills/explore.md +43 -0
- package/dist/plugins/prime/skills/fix/SKILL.md +1058 -0
- package/dist/plugins/prime/skills/implement/SKILL.md +532 -0
- package/dist/plugins/prime/skills/incident/SKILL.md +910 -0
- package/dist/plugins/prime/skills/issue/SKILL.md +134 -0
- package/dist/plugins/prime/skills/market-research/SKILL.md +300 -0
- package/dist/plugins/prime/skills/onboard/SKILL.md +344 -0
- package/dist/plugins/prime/skills/opportunity-map/SKILL.md +307 -0
- package/dist/plugins/prime/skills/pitch-generator/SKILL.md +378 -0
- package/dist/plugins/prime/skills/planning/SKILL.md +436 -0
- package/dist/plugins/prime/skills/pr/SKILL.md +275 -0
- package/dist/plugins/prime/skills/precheck/SKILL.md +159 -0
- package/dist/plugins/prime/skills/qa/SKILL.md +127 -0
- package/dist/plugins/prime/skills/qa-incident/SKILL.md +54 -0
- package/dist/plugins/prime/skills/qa-learn/SKILL.md +47 -0
- package/dist/plugins/prime/skills/restart/SKILL.md +70 -0
- package/dist/plugins/prime/skills/review-pr/SKILL.md +367 -0
- package/dist/plugins/prime/skills/roi-calculator/SKILL.md +469 -0
- package/dist/plugins/prime/skills/scan/SKILL.md +232 -0
- package/dist/plugins/prime/skills/setup/SKILL.md +691 -0
- package/dist/plugins/prime/skills/share/SKILL.md +211 -0
- package/dist/plugins/prime/skills/solution-architect/SKILL.md +566 -0
- package/dist/plugins/prime/skills/sre/SKILL.md +362 -0
- package/dist/plugins/prime/skills/sync/SKILL.md +188 -0
- package/dist/plugins/prime/skills/templates/SKILL.md +194 -0
- package/dist/plugins/prime/skills/welcome/SKILL.md +136 -0
- package/dist/plugins/prime/skills/wizard/SKILL.md +411 -0
- package/dist/plugins/prism/.claude-plugin/plugin.json +6 -0
- package/dist/plugins/prism/agents/qa-baseline-updater.md +45 -0
- package/dist/plugins/prism/agents/qa-challenger.md +97 -0
- package/dist/plugins/prism/agents/qa-domain.md +145 -0
- package/dist/plugins/prism/agents/qa-e2e.md +184 -0
- package/dist/plugins/prism/agents/qa-test-promoter.md +97 -0
- package/dist/plugins/prism/agents/qa.md +226 -0
- package/dist/plugins/prism/hooks/hooks.json +26 -0
- package/dist/plugins/prism/hooks/post-diff-test-compare.sh +125 -0
- package/dist/plugins/prism/hooks/post-test-summary.sh +115 -0
- package/dist/plugins/prism/skills/qa/SKILL.md +127 -0
- package/dist/plugins/prism/skills/qa-incident/SKILL.md +54 -0
- package/dist/plugins/prism/skills/qa-learn/SKILL.md +47 -0
- package/dist/plugins/scalpel/.claude-plugin/plugin.json +6 -0
- package/dist/plugins/scalpel/agents/code-reviewer.md +115 -0
- package/dist/plugins/scalpel/hooks/hooks.json +26 -0
- package/dist/plugins/scalpel/hooks/pre-edit-guard.sh +121 -0
- package/dist/plugins/scalpel/skills/ci-fix/SKILL.md +293 -0
- package/dist/plugins/scalpel/skills/fix/SKILL.md +1058 -0
- package/dist/plugins/scalpel/skills/issue/SKILL.md +134 -0
- package/dist/plugins/sentinel/.claude-plugin/plugin.json +6 -0
- package/dist/plugins/sentinel/agents/ops.md +149 -0
- package/dist/plugins/sentinel/agents/sre.md +165 -0
- package/dist/plugins/sentinel/hooks/hooks.json +26 -0
- package/dist/plugins/sentinel/hooks/post-deploy-health.sh +83 -0
- package/dist/plugins/sentinel/hooks/post-git-state.sh +54 -0
- package/dist/plugins/sentinel/skills/incident/SKILL.md +910 -0
- package/dist/plugins/sentinel/skills/restart/SKILL.md +70 -0
- package/dist/plugins/sentinel/skills/sre/SKILL.md +362 -0
- package/dist/plugins/shield/.claude-plugin/plugin.json +6 -0
- package/dist/plugins/shield/hooks/hooks.json +60 -0
- package/dist/plugins/shield/hooks/pre-bash-guard.sh +142 -0
- package/dist/plugins/shield/hooks/pre-edit-guard.sh +121 -0
- package/dist/plugins/shield/hooks/session-bootstrap.sh +379 -0
- package/dist/plugins/shield/hooks/triage-router.sh +740 -0
- package/dist/plugins/spark/.claude-plugin/plugin.json +6 -0
- package/dist/plugins/spark/agents/explore-light.md +52 -0
- package/dist/plugins/spark/agents/setup.md +134 -0
- package/dist/plugins/spark/hooks/hooks.json +16 -0
- package/dist/plugins/spark/hooks/session-bootstrap.sh +379 -0
- package/dist/plugins/spark/skills/calibrate/SKILL.md +1807 -0
- package/dist/plugins/spark/skills/onboard/SKILL.md +344 -0
- package/dist/plugins/spark/skills/scan/SKILL.md +232 -0
- package/dist/plugins/spark/skills/setup/SKILL.md +691 -0
- package/hook-defs.json +104 -0
- package/hooks/check-deliverable.sh +65 -0
- package/hooks/ensure-client-dir.sh +59 -0
- package/hooks/hooks.json +16 -0
- package/hooks/post-deploy-health.sh +83 -0
- package/hooks/post-diff-test-compare.sh +125 -0
- package/hooks/post-edit-lint.sh +92 -0
- package/hooks/post-git-state.sh +54 -0
- package/hooks/post-merge-cleanup.sh +101 -0
- package/hooks/post-test-summary.sh +115 -0
- package/hooks/pre-bash-guard.sh +142 -0
- package/hooks/pre-edit-guard.sh +121 -0
- package/hooks/pre-task-context.sh +113 -0
- package/hooks/session-bootstrap.sh +379 -0
- package/hooks/session-end.sh +107 -0
- package/hooks/session-start.sh +46 -0
- package/hooks/session-summary.sh +97 -0
- package/hooks/sync-agents.sh +269 -0
- package/hooks/triage-router.sh +740 -0
- package/install.sh +3185 -0
- package/package.json +40 -0
- package/portable.manifest +112 -0
- package/skills/arth/SKILL.md +165 -0
- package/skills/autopilot/SKILL.md +425 -0
- package/skills/calibrate/SKILL.md +1807 -0
- package/skills/ci-fix/SKILL.md +293 -0
- package/skills/client-discovery/SKILL.md +266 -0
- package/skills/consulting/SKILL.md +282 -0
- package/skills/continue/SKILL.md +174 -0
- package/skills/custom-domain/SKILL.md +261 -0
- package/skills/deliverable-builder/SKILL.md +928 -0
- package/skills/discord-ops/SKILL.md +125 -0
- package/skills/engagement-tracker/SKILL.md +380 -0
- package/skills/explore.md +43 -0
- package/skills/fix/SKILL.md +1058 -0
- package/skills/implement/SKILL.md +532 -0
- package/skills/incident/SKILL.md +910 -0
- package/skills/issue/SKILL.md +134 -0
- package/skills/market-research/SKILL.md +300 -0
- package/skills/onboard/SKILL.md +344 -0
- package/skills/opportunity-map/SKILL.md +307 -0
- package/skills/pitch-generator/SKILL.md +378 -0
- package/skills/planning/SKILL.md +436 -0
- package/skills/pr/SKILL.md +275 -0
- package/skills/precheck/SKILL.md +159 -0
- package/skills/qa/SKILL.md +127 -0
- package/skills/qa-incident/SKILL.md +54 -0
- package/skills/qa-learn/SKILL.md +47 -0
- package/skills/railway/central-station/SKILL.md +226 -0
- package/skills/railway/central-station/references/environment-config.md +183 -0
- package/skills/railway/central-station/references/monorepo.md +216 -0
- package/skills/railway/central-station/references/railpack.md +257 -0
- package/skills/railway/central-station/references/variables.md +170 -0
- package/skills/railway/database/SKILL.md +284 -0
- package/skills/railway/database/references/environment-config.md +183 -0
- package/skills/railway/database/references/monorepo.md +216 -0
- package/skills/railway/database/references/railpack.md +257 -0
- package/skills/railway/database/references/variables.md +170 -0
- package/skills/railway/database/scripts/railway-api.sh +41 -0
- package/skills/railway/deploy/SKILL.md +128 -0
- package/skills/railway/deploy/references/environment-config.md +183 -0
- package/skills/railway/deploy/references/monorepo.md +216 -0
- package/skills/railway/deploy/references/railpack.md +257 -0
- package/skills/railway/deploy/references/variables.md +170 -0
- package/skills/railway/deployment/SKILL.md +222 -0
- package/skills/railway/deployment/references/environment-config.md +183 -0
- package/skills/railway/deployment/references/monorepo.md +216 -0
- package/skills/railway/deployment/references/railpack.md +257 -0
- package/skills/railway/deployment/references/variables.md +170 -0
- package/skills/railway/domain/SKILL.md +137 -0
- package/skills/railway/domain/references/environment-config.md +183 -0
- package/skills/railway/domain/references/monorepo.md +216 -0
- package/skills/railway/domain/references/railpack.md +257 -0
- package/skills/railway/domain/references/variables.md +170 -0
- package/skills/railway/environment/SKILL.md +266 -0
- package/skills/railway/environment/references/environment-config.md +183 -0
- package/skills/railway/environment/references/monorepo.md +216 -0
- package/skills/railway/environment/references/railpack.md +257 -0
- package/skills/railway/environment/references/variables.md +170 -0
- package/skills/railway/metrics/SKILL.md +211 -0
- package/skills/railway/metrics/references/environment-config.md +183 -0
- package/skills/railway/metrics/references/monorepo.md +216 -0
- package/skills/railway/metrics/references/railpack.md +257 -0
- package/skills/railway/metrics/references/variables.md +170 -0
- package/skills/railway/metrics/scripts/railway-api.sh +41 -0
- package/skills/railway/new/SKILL.md +489 -0
- package/skills/railway/new/references/environment-config.md +183 -0
- package/skills/railway/new/references/monorepo.md +216 -0
- package/skills/railway/new/references/railpack.md +257 -0
- package/skills/railway/new/references/variables.md +170 -0
- package/skills/railway/projects/SKILL.md +142 -0
- package/skills/railway/projects/references/environment-config.md +183 -0
- package/skills/railway/projects/references/monorepo.md +216 -0
- package/skills/railway/projects/references/railpack.md +257 -0
- package/skills/railway/projects/references/variables.md +170 -0
- package/skills/railway/projects/scripts/railway-api.sh +41 -0
- package/skills/railway/railway-docs/SKILL.md +47 -0
- package/skills/railway/railway-docs/references/environment-config.md +183 -0
- package/skills/railway/railway-docs/references/monorepo.md +216 -0
- package/skills/railway/railway-docs/references/railpack.md +257 -0
- package/skills/railway/railway-docs/references/variables.md +170 -0
- package/skills/railway/service/SKILL.md +249 -0
- package/skills/railway/service/references/environment-config.md +183 -0
- package/skills/railway/service/references/monorepo.md +216 -0
- package/skills/railway/service/references/railpack.md +257 -0
- package/skills/railway/service/references/variables.md +170 -0
- package/skills/railway/service/scripts/railway-api.sh +41 -0
- package/skills/railway/status/SKILL.md +91 -0
- package/skills/railway/status/references/environment-config.md +183 -0
- package/skills/railway/status/references/monorepo.md +216 -0
- package/skills/railway/status/references/railpack.md +257 -0
- package/skills/railway/status/references/variables.md +170 -0
- package/skills/railway/templates/SKILL.md +275 -0
- package/skills/railway/templates/references/environment-config.md +183 -0
- package/skills/railway/templates/references/monorepo.md +216 -0
- package/skills/railway/templates/references/railpack.md +257 -0
- package/skills/railway/templates/references/variables.md +170 -0
- package/skills/railway/templates/scripts/railway-api.sh +41 -0
- package/skills/restart/SKILL.md +70 -0
- package/skills/review-pr/SKILL.md +367 -0
- package/skills/roi-calculator/SKILL.md +469 -0
- package/skills/scan/SKILL.md +232 -0
- package/skills/setup/SKILL.md +691 -0
- package/skills/share/SKILL.md +211 -0
- package/skills/solution-architect/SKILL.md +566 -0
- package/skills/sre/SKILL.md +362 -0
- package/skills/superpowers/brainstorming/SKILL.md +96 -0
- package/skills/superpowers/dispatching-parallel-agents/SKILL.md +180 -0
- package/skills/superpowers/executing-plans/SKILL.md +84 -0
- package/skills/superpowers/finishing-a-development-branch/SKILL.md +200 -0
- package/skills/superpowers/receiving-code-review/SKILL.md +213 -0
- package/skills/superpowers/requesting-code-review/SKILL.md +105 -0
- package/skills/superpowers/requesting-code-review/code-reviewer.md +146 -0
- package/skills/superpowers/subagent-driven-development/SKILL.md +242 -0
- package/skills/superpowers/subagent-driven-development/code-quality-reviewer-prompt.md +20 -0
- package/skills/superpowers/subagent-driven-development/implementer-prompt.md +78 -0
- package/skills/superpowers/subagent-driven-development/spec-reviewer-prompt.md +61 -0
- package/skills/superpowers/systematic-debugging/CREATION-LOG.md +119 -0
- package/skills/superpowers/systematic-debugging/SKILL.md +296 -0
- package/skills/superpowers/systematic-debugging/condition-based-waiting-example.ts +158 -0
- package/skills/superpowers/systematic-debugging/condition-based-waiting.md +115 -0
- package/skills/superpowers/systematic-debugging/defense-in-depth.md +122 -0
- package/skills/superpowers/systematic-debugging/find-polluter.sh +63 -0
- package/skills/superpowers/systematic-debugging/root-cause-tracing.md +169 -0
- package/skills/superpowers/systematic-debugging/test-academic.md +14 -0
- package/skills/superpowers/systematic-debugging/test-pressure-1.md +58 -0
- package/skills/superpowers/systematic-debugging/test-pressure-2.md +68 -0
- package/skills/superpowers/systematic-debugging/test-pressure-3.md +69 -0
- package/skills/superpowers/test-driven-development/SKILL.md +371 -0
- package/skills/superpowers/test-driven-development/testing-anti-patterns.md +299 -0
- package/skills/superpowers/using-git-worktrees/SKILL.md +218 -0
- package/skills/superpowers/using-superpowers/SKILL.md +95 -0
- package/skills/superpowers/verification-before-completion/SKILL.md +139 -0
- package/skills/superpowers/writing-plans/SKILL.md +116 -0
- package/skills/superpowers/writing-skills/SKILL.md +655 -0
- package/skills/superpowers/writing-skills/anthropic-best-practices.md +1150 -0
- package/skills/superpowers/writing-skills/examples/CLAUDE_MD_TESTING.md +189 -0
- package/skills/superpowers/writing-skills/graphviz-conventions.dot +172 -0
- package/skills/superpowers/writing-skills/persuasion-principles.md +187 -0
- package/skills/superpowers/writing-skills/render-graphs.js +168 -0
- package/skills/superpowers/writing-skills/testing-skills-with-subagents.md +384 -0
- package/skills/sync/SKILL.md +188 -0
- package/skills/templates/SKILL.md +194 -0
- package/skills/welcome/SKILL.md +136 -0
- package/skills/wizard/SKILL.md +411 -0
- package/templates/CLAUDE.md.managed-block +123 -0
- package/templates/CLAUDE.md.template +111 -0
- package/templates/consulting/engagement-tracker-template.md +181 -0
- package/templates/consulting/executive-summary-template.md +83 -0
- package/templates/consulting/maturity-assessment-template.md +182 -0
- package/templates/consulting/proposal-template.md +209 -0
- package/templates/consulting/roi-model-template.md +139 -0
- package/templates/consulting/solution-architecture-template.md +313 -0
- package/templates/settings.json +130 -0
|
@@ -0,0 +1,489 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: new
|
|
3
|
+
description: This skill should be used when the user says "setup", "deploy to railway", "initialize", "create project", "create service", or wants to deploy from GitHub. Handles initial setup AND adding services to existing projects. For databases, use the database skill instead.
|
|
4
|
+
allowed-tools: Bash(railway:*), Bash(which:*), Bash(command:*), Bash(npm:*), Bash(npx:*)
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# New Project / Service / Database
|
|
8
|
+
|
|
9
|
+
Create Railway projects, services, and databases with proper configuration.
|
|
10
|
+
|
|
11
|
+
## When to Use
|
|
12
|
+
|
|
13
|
+
- User says "deploy to railway" (add service if linked, init if not)
|
|
14
|
+
- User says "create a railway project", "init", "new project" (explicit new project)
|
|
15
|
+
- User says "link to railway", "connect to railway"
|
|
16
|
+
- User says "create a service", "add a backend", "new api service"
|
|
17
|
+
- User says "create a vite app", "create a react website", "make a python api"
|
|
18
|
+
- User says "deploy from github.com/user/repo", "create service from this repo"
|
|
19
|
+
- User says "add postgres", "add a database", "add redis", "add mysql", "add mongo"
|
|
20
|
+
- User says "connect to postgres", "wire up the database", "connect my api to redis"
|
|
21
|
+
- User says "add postgres and connect to the server"
|
|
22
|
+
- Setting up code + Railway service together
|
|
23
|
+
|
|
24
|
+
## Prerequisites
|
|
25
|
+
|
|
26
|
+
Check CLI installed:
|
|
27
|
+
|
|
28
|
+
```bash
|
|
29
|
+
command -v railway
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
If not installed:
|
|
33
|
+
|
|
34
|
+
> Install Railway CLI:
|
|
35
|
+
>
|
|
36
|
+
> ```
|
|
37
|
+
> npm install -g @railway/cli
|
|
38
|
+
> ```
|
|
39
|
+
>
|
|
40
|
+
> or
|
|
41
|
+
>
|
|
42
|
+
> ```
|
|
43
|
+
> brew install railway
|
|
44
|
+
> ```
|
|
45
|
+
|
|
46
|
+
Check authenticated:
|
|
47
|
+
|
|
48
|
+
```bash
|
|
49
|
+
railway whoami --json
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
If not authenticated:
|
|
53
|
+
|
|
54
|
+
> Run `railway login` to authenticate.
|
|
55
|
+
|
|
56
|
+
## Decision Flow
|
|
57
|
+
|
|
58
|
+
```
|
|
59
|
+
railway status --json (in current dir)
|
|
60
|
+
│
|
|
61
|
+
┌────┴────┐
|
|
62
|
+
Linked Not Linked
|
|
63
|
+
│ │
|
|
64
|
+
│ Check parent: cd .. && railway status --json
|
|
65
|
+
│ │
|
|
66
|
+
│ ┌────┴────┐
|
|
67
|
+
│ Parent Not linked
|
|
68
|
+
│ Linked anywhere
|
|
69
|
+
│ │ │
|
|
70
|
+
│ Add service railway list
|
|
71
|
+
│ Set rootDir │
|
|
72
|
+
│ Deploy ┌───┴───┐
|
|
73
|
+
│ │ Match? No match
|
|
74
|
+
│ │ │ │
|
|
75
|
+
│ │ Link Init new
|
|
76
|
+
└───────┴────────┴────────┘
|
|
77
|
+
│
|
|
78
|
+
User wants service?
|
|
79
|
+
│
|
|
80
|
+
┌─────┴─────┐
|
|
81
|
+
Yes No
|
|
82
|
+
│ │
|
|
83
|
+
Scaffold code Done
|
|
84
|
+
│
|
|
85
|
+
railway add --service
|
|
86
|
+
│
|
|
87
|
+
Configure if needed
|
|
88
|
+
│
|
|
89
|
+
Ready to deploy
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
## Check Current State
|
|
93
|
+
|
|
94
|
+
```bash
|
|
95
|
+
railway status --json
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
- **If linked**: Add a service to the existing project (see below)
|
|
99
|
+
- **If not linked**: Check if a PARENT directory is linked (see below)
|
|
100
|
+
|
|
101
|
+
### When Already Linked
|
|
102
|
+
|
|
103
|
+
**Default behavior**: "deploy to railway" = add a service to the linked project.
|
|
104
|
+
|
|
105
|
+
Do NOT create a new project unless user EXPLICITLY says:
|
|
106
|
+
|
|
107
|
+
- "new project", "create a project", "init a project"
|
|
108
|
+
- "separate project", "different project"
|
|
109
|
+
|
|
110
|
+
App names like "flappy-bird" or "my-api" are SERVICE names, not project names.
|
|
111
|
+
|
|
112
|
+
```
|
|
113
|
+
User: "create a vite app called foo and deploy to railway"
|
|
114
|
+
Project: Already linked to "my-project"
|
|
115
|
+
|
|
116
|
+
WRONG: railway init -n foo
|
|
117
|
+
RIGHT: railway add --service foo
|
|
118
|
+
```
|
|
119
|
+
|
|
120
|
+
### Parent Directory Linking
|
|
121
|
+
|
|
122
|
+
Railway CLI walks up the directory tree to find a linked project. If you're in a subdirectory:
|
|
123
|
+
|
|
124
|
+
```bash
|
|
125
|
+
cd .. && railway status --json
|
|
126
|
+
```
|
|
127
|
+
|
|
128
|
+
**If parent is linked**, you don't need to init/link the subdirectory. Instead:
|
|
129
|
+
|
|
130
|
+
1. Create service: `railway add --service <name>`
|
|
131
|
+
2. Set `rootDirectory` to subdirectory path via environment skill
|
|
132
|
+
3. Deploy from root: `railway up`
|
|
133
|
+
|
|
134
|
+
**If no parent is linked**, proceed with init or link flow.
|
|
135
|
+
|
|
136
|
+
## Init vs Link Decision
|
|
137
|
+
|
|
138
|
+
**Skip this section if already linked** - just add a service instead.
|
|
139
|
+
|
|
140
|
+
Only use this section when NO project is linked (directly or via parent).
|
|
141
|
+
|
|
142
|
+
### Check User's Projects
|
|
143
|
+
|
|
144
|
+
The output can be large. Run in a subagent and extract only:
|
|
145
|
+
- Project `id` and `name`
|
|
146
|
+
- Workspace `id` and `name`
|
|
147
|
+
|
|
148
|
+
```bash
|
|
149
|
+
railway list --json
|
|
150
|
+
```
|
|
151
|
+
|
|
152
|
+
### Decision Logic
|
|
153
|
+
|
|
154
|
+
1. **User explicitly says "new project"** → Use `railway init`
|
|
155
|
+
2. **User names an existing project** → Use `railway link`
|
|
156
|
+
3. **Directory name matches existing project** → Ask: link existing or create new?
|
|
157
|
+
4. **No matching projects** → Use `railway init`
|
|
158
|
+
5. **Ambiguous** → Ask user
|
|
159
|
+
|
|
160
|
+
## Create New Project
|
|
161
|
+
|
|
162
|
+
```bash
|
|
163
|
+
railway init -n <name>
|
|
164
|
+
```
|
|
165
|
+
|
|
166
|
+
Options:
|
|
167
|
+
|
|
168
|
+
- `-n, --name` - Project name (auto-generated if omitted in non-interactive mode)
|
|
169
|
+
- `-w, --workspace` - Workspace name or ID (required if multiple workspaces exist)
|
|
170
|
+
|
|
171
|
+
### Multiple Workspaces
|
|
172
|
+
|
|
173
|
+
If the user has multiple workspaces, `railway init` requires the `--workspace` flag.
|
|
174
|
+
|
|
175
|
+
Get workspace IDs from:
|
|
176
|
+
|
|
177
|
+
```bash
|
|
178
|
+
railway whoami --json
|
|
179
|
+
```
|
|
180
|
+
|
|
181
|
+
The `workspaces` array contains `{ id, name }` for each workspace.
|
|
182
|
+
|
|
183
|
+
**Inferring workspace from user input:**
|
|
184
|
+
If user says "deploy into xxx workspace" or "create project in my-team", match the
|
|
185
|
+
name against the workspaces array and use the corresponding ID:
|
|
186
|
+
|
|
187
|
+
```bash
|
|
188
|
+
# User says: "create a project in my personal workspace"
|
|
189
|
+
railway whoami --json | jq '.workspaces[] | select(.name | test("personal"; "i"))'
|
|
190
|
+
# Use the matched ID: railway init -n myapp --workspace <matched-id>
|
|
191
|
+
```
|
|
192
|
+
|
|
193
|
+
## Link Existing Project
|
|
194
|
+
|
|
195
|
+
```bash
|
|
196
|
+
railway link -p <project>
|
|
197
|
+
```
|
|
198
|
+
|
|
199
|
+
Options:
|
|
200
|
+
|
|
201
|
+
- `-p, --project` - Project name or ID
|
|
202
|
+
- `-e, --environment` - Environment (default: production)
|
|
203
|
+
- `-s, --service` - Service to link
|
|
204
|
+
- `-t, --team` - Team/workspace
|
|
205
|
+
|
|
206
|
+
## Create Service
|
|
207
|
+
|
|
208
|
+
After project is linked, create a service:
|
|
209
|
+
|
|
210
|
+
```bash
|
|
211
|
+
railway add --service <name>
|
|
212
|
+
```
|
|
213
|
+
|
|
214
|
+
**For GitHub repo sources**: Create an empty service, then invoke the `environment` skill to configure the source via staged changes API. Do NOT use `railway add --repo` - it requires GitHub app integration which often fails.
|
|
215
|
+
|
|
216
|
+
Flow:
|
|
217
|
+
|
|
218
|
+
1. `railway add --service my-api`
|
|
219
|
+
2. Invoke `environment` skill to set `source.repo` and `source.branch`
|
|
220
|
+
3. Apply changes to trigger deployment
|
|
221
|
+
|
|
222
|
+
### Configure Based on Project Type
|
|
223
|
+
|
|
224
|
+
Reference [railpack.md](references/railpack.md) for build configuration.
|
|
225
|
+
Reference [monorepo.md](references/monorepo.md) for monorepo patterns.
|
|
226
|
+
|
|
227
|
+
**Static site (Vite, CRA, Astro static):**
|
|
228
|
+
|
|
229
|
+
- Railpack auto-detects common output dirs (dist, build)
|
|
230
|
+
- If non-standard output dir: invoke `environment` skill to set `RAILPACK_STATIC_FILE_ROOT`
|
|
231
|
+
- Do NOT use `railway variables` CLI - always use the environment skill
|
|
232
|
+
|
|
233
|
+
**Node.js SSR (Next.js, Nuxt, Express):**
|
|
234
|
+
|
|
235
|
+
- Verify `start` script exists in package.json
|
|
236
|
+
- If custom start needed: invoke `environment` skill to set `startCommand`
|
|
237
|
+
|
|
238
|
+
**Python (FastAPI, Django, Flask):**
|
|
239
|
+
|
|
240
|
+
- Verify `requirements.txt` or `pyproject.toml` exists
|
|
241
|
+
- Auto-detected by Railpack, usually no config needed
|
|
242
|
+
|
|
243
|
+
**Go:**
|
|
244
|
+
|
|
245
|
+
- Verify `go.mod` exists
|
|
246
|
+
- Auto-detected, no config needed
|
|
247
|
+
|
|
248
|
+
### Monorepo Configuration
|
|
249
|
+
|
|
250
|
+
**Critical decision:** Root directory vs custom commands.
|
|
251
|
+
|
|
252
|
+
**Isolated monorepo** (apps don't share code):
|
|
253
|
+
|
|
254
|
+
- Set Root Directory to the app's subdirectory (e.g., `/frontend`)
|
|
255
|
+
- Only that directory's code is available during build
|
|
256
|
+
|
|
257
|
+
**Shared monorepo** (TypeScript workspaces, shared packages):
|
|
258
|
+
|
|
259
|
+
- Do NOT set root directory
|
|
260
|
+
- Set custom build/start commands to filter the package:
|
|
261
|
+
- pnpm: `pnpm --filter <package> build`
|
|
262
|
+
- npm: `npm run build --workspace=packages/<package>`
|
|
263
|
+
- yarn: `yarn workspace <package> build`
|
|
264
|
+
- Turborepo: `turbo run build --filter=<package>`
|
|
265
|
+
- Set watch paths to prevent unnecessary rebuilds
|
|
266
|
+
|
|
267
|
+
See [monorepo.md](references/monorepo.md) for detailed patterns.
|
|
268
|
+
|
|
269
|
+
## Project Setup Guidance
|
|
270
|
+
|
|
271
|
+
Analyze the codebase to ensure Railway compatibility.
|
|
272
|
+
|
|
273
|
+
### Analyze Codebase
|
|
274
|
+
|
|
275
|
+
Check for existing project files:
|
|
276
|
+
|
|
277
|
+
- `package.json` → Node.js project
|
|
278
|
+
- `requirements.txt`, `pyproject.toml` → Python project
|
|
279
|
+
- `go.mod` → Go project
|
|
280
|
+
- `Cargo.toml` → Rust project
|
|
281
|
+
- `index.html` → Static site
|
|
282
|
+
- None → Guide scaffolding
|
|
283
|
+
|
|
284
|
+
**Monorepo detection:**
|
|
285
|
+
|
|
286
|
+
- `pnpm-workspace.yaml` → pnpm workspace (shared monorepo)
|
|
287
|
+
- `package.json` with `workspaces` field → npm/yarn workspace (shared monorepo)
|
|
288
|
+
- `turbo.json` → Turborepo (shared monorepo)
|
|
289
|
+
- Multiple subdirs with separate `package.json` but no workspace config → isolated monorepo
|
|
290
|
+
|
|
291
|
+
### Scaffolding Hints
|
|
292
|
+
|
|
293
|
+
If no code exists, suggest minimal patterns from [railpack.md](references/railpack.md):
|
|
294
|
+
|
|
295
|
+
**Static site:**
|
|
296
|
+
|
|
297
|
+
> Create an `index.html` file in the root directory.
|
|
298
|
+
|
|
299
|
+
**Vite React:**
|
|
300
|
+
|
|
301
|
+
```bash
|
|
302
|
+
npm create vite@latest . -- --template react
|
|
303
|
+
```
|
|
304
|
+
|
|
305
|
+
**Astro:**
|
|
306
|
+
|
|
307
|
+
```bash
|
|
308
|
+
npm create astro@latest
|
|
309
|
+
```
|
|
310
|
+
|
|
311
|
+
**Python FastAPI:**
|
|
312
|
+
|
|
313
|
+
> Create `main.py` with FastAPI app and `requirements.txt` with dependencies.
|
|
314
|
+
|
|
315
|
+
**Go:**
|
|
316
|
+
|
|
317
|
+
> Create `main.go` with HTTP server listening on `PORT` env var.
|
|
318
|
+
|
|
319
|
+
## Databases
|
|
320
|
+
|
|
321
|
+
For adding databases (Postgres, Redis, MySQL, MongoDB), use the `database` skill.
|
|
322
|
+
|
|
323
|
+
The `database` skill handles:
|
|
324
|
+
- Creating database services
|
|
325
|
+
- Connection variable references
|
|
326
|
+
- Wiring services to databases
|
|
327
|
+
|
|
328
|
+
## Composability
|
|
329
|
+
|
|
330
|
+
- **After service created**: Use `deploy` skill to push code
|
|
331
|
+
- **For advanced config**: Use `environment` skill (buildCommand, startCommand)
|
|
332
|
+
- **For domains**: Use `domain` skill
|
|
333
|
+
- **For status checks**: Use `status` skill
|
|
334
|
+
- **For service operations** (rename, delete, status): Use `service` skill
|
|
335
|
+
|
|
336
|
+
## Error Handling
|
|
337
|
+
|
|
338
|
+
### CLI Not Installed
|
|
339
|
+
|
|
340
|
+
```
|
|
341
|
+
Railway CLI not installed. Install with:
|
|
342
|
+
npm install -g @railway/cli
|
|
343
|
+
or
|
|
344
|
+
brew install railway
|
|
345
|
+
```
|
|
346
|
+
|
|
347
|
+
### Not Authenticated
|
|
348
|
+
|
|
349
|
+
```
|
|
350
|
+
Not logged in to Railway. Run: railway login
|
|
351
|
+
```
|
|
352
|
+
|
|
353
|
+
### No Workspaces
|
|
354
|
+
|
|
355
|
+
```
|
|
356
|
+
No workspaces found. Create one at railway.com or verify authentication.
|
|
357
|
+
```
|
|
358
|
+
|
|
359
|
+
### Project Name Taken
|
|
360
|
+
|
|
361
|
+
```
|
|
362
|
+
Project name already exists. Either:
|
|
363
|
+
- Link to existing: railway link -p <name>
|
|
364
|
+
- Use different name: railway init -n <other-name>
|
|
365
|
+
```
|
|
366
|
+
|
|
367
|
+
### Service Name Taken
|
|
368
|
+
|
|
369
|
+
```
|
|
370
|
+
Service name already exists in this project. Use a different name:
|
|
371
|
+
railway add --service <other-name>
|
|
372
|
+
```
|
|
373
|
+
|
|
374
|
+
## Examples
|
|
375
|
+
|
|
376
|
+
### Create HTML Static Site
|
|
377
|
+
|
|
378
|
+
```
|
|
379
|
+
User: "create a simple html site and deploy to railway"
|
|
380
|
+
|
|
381
|
+
1. Check status → not linked
|
|
382
|
+
2. railway init -n my-site
|
|
383
|
+
3. Guide: create index.html
|
|
384
|
+
4. railway add --service my-site
|
|
385
|
+
5. No config needed (index.html in root auto-detected)
|
|
386
|
+
6. Use deploy skill: railway up
|
|
387
|
+
7. Use domain skill for public URL
|
|
388
|
+
```
|
|
389
|
+
|
|
390
|
+
### Create Vite React Service
|
|
391
|
+
|
|
392
|
+
```
|
|
393
|
+
User: "create a vite react service"
|
|
394
|
+
|
|
395
|
+
1. Check status → linked (or init/link first)
|
|
396
|
+
2. Scaffold: npm create vite@latest frontend -- --template react
|
|
397
|
+
3. railway add --service frontend
|
|
398
|
+
4. No config needed (Vite dist output auto-detected)
|
|
399
|
+
5. Use deploy skill: railway up
|
|
400
|
+
```
|
|
401
|
+
|
|
402
|
+
### Add Python API to Project
|
|
403
|
+
|
|
404
|
+
```
|
|
405
|
+
User: "add a python api to my project"
|
|
406
|
+
|
|
407
|
+
1. Check status → linked
|
|
408
|
+
2. Guide: create main.py with FastAPI, requirements.txt
|
|
409
|
+
3. railway add --service api
|
|
410
|
+
4. No config needed (FastAPI auto-detected)
|
|
411
|
+
5. Use deploy skill
|
|
412
|
+
```
|
|
413
|
+
|
|
414
|
+
### Link and Add Service
|
|
415
|
+
|
|
416
|
+
```
|
|
417
|
+
User: "connect to my backend project and add a worker service"
|
|
418
|
+
|
|
419
|
+
1. railway list --json → find "backend"
|
|
420
|
+
2. railway link -p backend
|
|
421
|
+
3. railway add --service worker
|
|
422
|
+
4. Guide setup based on worker type
|
|
423
|
+
```
|
|
424
|
+
|
|
425
|
+
### Deploy to Railway (Ambiguous)
|
|
426
|
+
|
|
427
|
+
```
|
|
428
|
+
User: "deploy to railway"
|
|
429
|
+
|
|
430
|
+
1. railway status → not linked
|
|
431
|
+
2. railway list → has projects
|
|
432
|
+
3. Directory is "my-app", found project "my-app"
|
|
433
|
+
4. Ask: "Found existing project 'my-app'. Link to it or create new?"
|
|
434
|
+
5. User: "link"
|
|
435
|
+
6. railway link -p my-app
|
|
436
|
+
7. Ask: "Create a service for this code?"
|
|
437
|
+
```
|
|
438
|
+
|
|
439
|
+
### Add Service to Isolated Monorepo
|
|
440
|
+
|
|
441
|
+
```
|
|
442
|
+
User: "create a static site in the frontend directory"
|
|
443
|
+
|
|
444
|
+
1. Check: /frontend has its own package.json, no workspace config
|
|
445
|
+
2. This is isolated monorepo → use root directory
|
|
446
|
+
3. railway add --service frontend
|
|
447
|
+
4. Invoke environment skill to set rootDirectory: /frontend
|
|
448
|
+
5. Set watch paths: /frontend/**
|
|
449
|
+
```
|
|
450
|
+
|
|
451
|
+
### Add Service to TypeScript Monorepo
|
|
452
|
+
|
|
453
|
+
```
|
|
454
|
+
User: "add a new api package to this turborepo"
|
|
455
|
+
|
|
456
|
+
1. Check: turbo.json exists, pnpm-workspace.yaml exists
|
|
457
|
+
2. This is shared monorepo → use custom commands, NOT root directory
|
|
458
|
+
3. Guide: create packages/api with package.json
|
|
459
|
+
4. railway add --service api
|
|
460
|
+
5. Invoke environment skill to set buildCommand and startCommand (do NOT set rootDirectory)
|
|
461
|
+
6. Set watch paths: /packages/api/**, /packages/shared/**
|
|
462
|
+
```
|
|
463
|
+
|
|
464
|
+
### Deploy Existing pnpm Workspace Package
|
|
465
|
+
|
|
466
|
+
```
|
|
467
|
+
User: "deploy the backend package to railway"
|
|
468
|
+
|
|
469
|
+
1. Check: pnpm-workspace.yaml exists → shared monorepo
|
|
470
|
+
2. railway add --service backend
|
|
471
|
+
3. Invoke environment skill to set buildCommand and startCommand
|
|
472
|
+
4. Set watch paths for backend + any shared deps
|
|
473
|
+
```
|
|
474
|
+
|
|
475
|
+
### Deploy Subdirectory of Linked Project
|
|
476
|
+
|
|
477
|
+
```
|
|
478
|
+
User: "create a vite app in my-app directory and deploy to railway"
|
|
479
|
+
CWD: ~/projects/my-project/my-app (parent already linked to "my-project")
|
|
480
|
+
|
|
481
|
+
1. Check status in my-app → not linked
|
|
482
|
+
2. Check parent: cd .. && railway status → IS linked to "my-project"
|
|
483
|
+
3. DON'T init/link the subdirectory
|
|
484
|
+
4. Scaffold: bun create vite my-app --template react-ts
|
|
485
|
+
5. cd my-app && bun install
|
|
486
|
+
6. railway add --service my-app
|
|
487
|
+
7. Invoke environment skill to set rootDirectory: /my-app
|
|
488
|
+
8. Deploy from root: railway up
|
|
489
|
+
```
|
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
# Environment Config Reference
|
|
2
|
+
|
|
3
|
+
The `EnvironmentConfig` object is used to configure services, volumes, and shared variables in Railway.
|
|
4
|
+
|
|
5
|
+
## Structure
|
|
6
|
+
|
|
7
|
+
```json
|
|
8
|
+
{
|
|
9
|
+
"services": {
|
|
10
|
+
"<serviceId>": {
|
|
11
|
+
"source": { ... },
|
|
12
|
+
"build": { ... },
|
|
13
|
+
"deploy": { ... },
|
|
14
|
+
"variables": { ... },
|
|
15
|
+
"networking": { ... }
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
"sharedVariables": { ... },
|
|
19
|
+
"volumes": { ... },
|
|
20
|
+
"buckets": { ... }
|
|
21
|
+
}
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
Only include fields being changed. The patch is merged with existing config.
|
|
25
|
+
|
|
26
|
+
Apply changes via CLI: `echo '<json>' | railway environment edit --json`
|
|
27
|
+
|
|
28
|
+
## Service Config
|
|
29
|
+
|
|
30
|
+
### Source
|
|
31
|
+
| Field | Type | Description |
|
|
32
|
+
|-------|------|-------------|
|
|
33
|
+
| `image` | string | Docker image (e.g., `nginx:latest`) |
|
|
34
|
+
| `repo` | string | Git repository URL |
|
|
35
|
+
| `branch` | string | Git branch to deploy |
|
|
36
|
+
| `commitSha` | string | Specific commit SHA |
|
|
37
|
+
| `rootDirectory` | string | Root directory (monorepos) |
|
|
38
|
+
| `checkSuites` | boolean | Wait for GitHub check suites |
|
|
39
|
+
| `autoUpdates.type` | disabled \| patch \| minor | Auto-update policy for Docker images |
|
|
40
|
+
|
|
41
|
+
### Build
|
|
42
|
+
| Field | Type | Description |
|
|
43
|
+
|-------|------|-------------|
|
|
44
|
+
| `builder` | NIXPACKS \| DOCKERFILE \| RAILPACK | Build system |
|
|
45
|
+
| `buildCommand` | string | Command for Nixpacks builds |
|
|
46
|
+
| `dockerfilePath` | string | Path to Dockerfile |
|
|
47
|
+
| `watchPatterns` | string[] | Patterns to trigger deploys |
|
|
48
|
+
| `nixpacksConfigPath` | string | Path to nixpacks config |
|
|
49
|
+
|
|
50
|
+
### Deploy
|
|
51
|
+
| Field | Type | Description |
|
|
52
|
+
|-------|------|-------------|
|
|
53
|
+
| `startCommand` | string | Container start command |
|
|
54
|
+
| `multiRegionConfig` | object | Region → replica config. See [Multi-Region Config](#multi-region-config). |
|
|
55
|
+
| `healthcheckPath` | string | Health check endpoint |
|
|
56
|
+
| `healthcheckTimeout` | number | Seconds to wait for health |
|
|
57
|
+
| `restartPolicyType` | ON_FAILURE \| ALWAYS \| NEVER | Restart behavior |
|
|
58
|
+
| `restartPolicyMaxRetries` | number | Max restart attempts |
|
|
59
|
+
| `cronSchedule` | string | Cron schedule for cron jobs |
|
|
60
|
+
| `sleepApplication` | boolean | Sleep when inactive |
|
|
61
|
+
|
|
62
|
+
### Variables
|
|
63
|
+
| Field | Type | Description |
|
|
64
|
+
|-------|------|-------------|
|
|
65
|
+
| `value` | string | Variable value |
|
|
66
|
+
| `isOptional` | boolean | Allow empty value |
|
|
67
|
+
|
|
68
|
+
Set to `null` to delete a variable.
|
|
69
|
+
|
|
70
|
+
For variable references, see [variables.md](variables.md).
|
|
71
|
+
|
|
72
|
+
### Lifecycle
|
|
73
|
+
| Field | Type | Description |
|
|
74
|
+
|-------|------|-------------|
|
|
75
|
+
| `isDeleted` | boolean | Mark for deletion (requires ADMIN) |
|
|
76
|
+
| `isCreated` | boolean | Mark as newly created |
|
|
77
|
+
|
|
78
|
+
## Multi-Region Config
|
|
79
|
+
|
|
80
|
+
Controls replica count per region. Structure: region name → `{ numReplicas }` or `null` to remove.
|
|
81
|
+
|
|
82
|
+
```json
|
|
83
|
+
{
|
|
84
|
+
"multiRegionConfig": {
|
|
85
|
+
"us-west2": { "numReplicas": 3 },
|
|
86
|
+
"europe-west4-drams3a": { "numReplicas": 2 }
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
### Available Regions
|
|
92
|
+
|
|
93
|
+
| Name | Location | Aliases |
|
|
94
|
+
|------|----------|---------|
|
|
95
|
+
| `us-west2` | US West (California) | "us west", "california" |
|
|
96
|
+
| `us-east4-eqdc4a` | US East (Virginia) | "us east", "virginia" |
|
|
97
|
+
| `europe-west4-drams3a` | EU West (Amsterdam) | "europe", "eu", "amsterdam" |
|
|
98
|
+
| `asia-southeast1-eqsg3a` | Southeast Asia (Singapore) | "asia", "singapore" |
|
|
99
|
+
|
|
100
|
+
### Interpreting User Requests
|
|
101
|
+
|
|
102
|
+
- "add 3 replicas to europe" → `{ "europe-west4-drams3a": { "numReplicas": 3 } }`
|
|
103
|
+
- "add a replica to all regions" → set `numReplicas: 1` for all 4 regions
|
|
104
|
+
- "remove from asia" → `{ "asia-southeast1-eqsg3a": null }`
|
|
105
|
+
- "increase replicas to 5" (no region specified) → query current config first, update existing region(s)
|
|
106
|
+
|
|
107
|
+
**Important:** When user doesn't specify a region, query the current `multiRegionConfig` and modify the existing region(s). Don't assume a default region.
|
|
108
|
+
|
|
109
|
+
## Common Operations
|
|
110
|
+
|
|
111
|
+
### Set Build Command
|
|
112
|
+
```json
|
|
113
|
+
{ "services": { "<serviceId>": { "build": { "buildCommand": "npm run build" } } } }
|
|
114
|
+
```
|
|
115
|
+
|
|
116
|
+
### Set Start Command
|
|
117
|
+
```json
|
|
118
|
+
{ "services": { "<serviceId>": { "deploy": { "startCommand": "node server.js" } } } }
|
|
119
|
+
```
|
|
120
|
+
|
|
121
|
+
### Set Replicas
|
|
122
|
+
```json
|
|
123
|
+
{ "services": { "<serviceId>": { "deploy": { "multiRegionConfig": { "us-west2": { "numReplicas": 3 } } } } } }
|
|
124
|
+
```
|
|
125
|
+
|
|
126
|
+
### Add Variables
|
|
127
|
+
```json
|
|
128
|
+
{ "services": { "<serviceId>": { "variables": { "API_KEY": { "value": "xxx" } } } } }
|
|
129
|
+
```
|
|
130
|
+
|
|
131
|
+
### Delete Variable
|
|
132
|
+
```json
|
|
133
|
+
{ "services": { "<serviceId>": { "variables": { "OLD_VAR": null } } } }
|
|
134
|
+
```
|
|
135
|
+
Via CLI: `echo '{"services":{"<serviceId>":{"variables":{"OLD_VAR":null}}}}' | railway environment edit --json`
|
|
136
|
+
|
|
137
|
+
### Add Shared Variable
|
|
138
|
+
```json
|
|
139
|
+
{ "sharedVariables": { "DATABASE_URL": { "value": "postgres://..." } } }
|
|
140
|
+
```
|
|
141
|
+
|
|
142
|
+
### Change Docker Image
|
|
143
|
+
```json
|
|
144
|
+
{ "services": { "<serviceId>": { "source": { "image": "nginx:latest" } } } }
|
|
145
|
+
```
|
|
146
|
+
|
|
147
|
+
### Connect GitHub Repo
|
|
148
|
+
```json
|
|
149
|
+
{ "services": { "<serviceId>": { "source": { "repo": "owner/repo", "branch": "main" } } } }
|
|
150
|
+
```
|
|
151
|
+
|
|
152
|
+
### Change Git Branch
|
|
153
|
+
```json
|
|
154
|
+
{ "services": { "<serviceId>": { "source": { "branch": "develop" } } } }
|
|
155
|
+
```
|
|
156
|
+
|
|
157
|
+
### Set Health Check
|
|
158
|
+
```json
|
|
159
|
+
{ "services": { "<serviceId>": { "deploy": { "healthcheckPath": "/health", "healthcheckTimeout": 30 } } } }
|
|
160
|
+
```
|
|
161
|
+
|
|
162
|
+
### Change Builder
|
|
163
|
+
```json
|
|
164
|
+
{ "services": { "<serviceId>": { "build": { "builder": "DOCKERFILE", "dockerfilePath": "./Dockerfile" } } } }
|
|
165
|
+
```
|
|
166
|
+
|
|
167
|
+
### Delete Service
|
|
168
|
+
```json
|
|
169
|
+
{ "services": { "<serviceId>": { "isDeleted": true } } }
|
|
170
|
+
```
|
|
171
|
+
Via CLI: `echo '{"services":{"<serviceId>":{"isDeleted":true}}}' | railway environment edit --json`
|
|
172
|
+
|
|
173
|
+
### Delete Volume
|
|
174
|
+
```json
|
|
175
|
+
{ "volumes": { "<volumeId>": { "isDeleted": true } } }
|
|
176
|
+
```
|
|
177
|
+
|
|
178
|
+
### New Service Instance
|
|
179
|
+
```json
|
|
180
|
+
{ "services": { "<serviceId>": { "isCreated": true, "source": { "image": "nginx" } } } }
|
|
181
|
+
```
|
|
182
|
+
|
|
183
|
+
**Note:** `isCreated: true` is required for new service instances.
|