[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6R2K783RNQV7Q3AE8VJ4FN5":3,"skill-same:01M6R2K783RNQV7Q3AE8VJ4FN5":81},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":23,"publishedAt":44,"linkOnly":45,"markdownContent":46,"markdownBody":47,"frontMatter":48,"refName":60,"commitSha":61,"skillDirectory":62,"forksCount":63,"repositoryHtmlUrl":64,"repositoryHomepageUrl":6,"ownerHtmlUrl":65,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":66,"install":67,"resources":80},"01M6R2K783RNQV7Q3AE8VJ4FN5","railway-environment",null,"Query, stage, and apply configuration changes for Railway environments. Use for ANY variable or env var operations, service configuration (source, build settings, deploy settings), lifecycle (delete service), and applying changes. Prefer over railway-status skill for any configuration or variable queries.","Mishit18\u002Fclaude-code-templates","Mishit18","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F244127857?v=4","01M6QXBYKWM76HSKYDNWSKKE41","Mishit Sharma","01M6QXBYRJ0CAVM51S1RTEKTZZ",1,"MIT","https:\u002F\u002Fgithub.com\u002FMishit18\u002Fclaude-code-templates\u002Fblob\u002Fmain\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Frailway\u002Fenvironment\u002FSKILL.md",[18],{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000011","运维与部署","SCENARIO","使用场景",[24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43],"railway environment","environment","Railway","query","apply","changes","source","for","environments","Variables","env","stage","cli","queries","use","Bash","lifecycle","delete","infrastructure","status","2026-11-10 10:12:30",false,"---\nname: railway-environment\ndescription: Query, stage, and apply configuration changes for Railway environments. Use for ANY variable or env var operations, service configuration (source, build settings, deploy settings), lifecycle (delete service), and applying changes. Prefer over railway-status skill for any configuration or variable queries.\nversion: 1.0.0\nauthor: Railway\nlicense: MIT\ntags: [Railway, Environment, Configuration, Variables, Build, Deploy, Infrastructure, Settings]\ndependencies: [railway-cli]\nallowed-tools: Bash(railway:*)\n---\n\n# Environment Configuration\n\nQuery, stage, and apply configuration changes for Railway environments.\n\n## Shell Escaping\n\n**CRITICAL:** When running GraphQL queries via bash, you MUST wrap in heredoc to prevent shell escaping issues:\n\n```bash\nbash \u003C\u003C'SCRIPT'\n${CLAUDE_PLUGIN_ROOT}\u002Fskills\u002Flib\u002Frailway-api.sh 'query ...' '{\"var\": \"value\"}'\nSCRIPT\n```\n\nWithout the heredoc wrapper, multi-line commands break and exclamation marks in GraphQL non-null types get escaped, causing query failures.\n\n## When to Use\n\n- User wants to create a new environment\n- User wants to duplicate an environment (e.g., \"copy production to staging\")\n- User wants to switch to a different environment\n- User asks about current build\u002Fdeploy settings, variables, replicas, health checks, domains\n- User asks to change service source (Docker image, branch, commit, root directory)\n- User wants to connect a service to a GitHub repo\n- User wants to deploy from a GitHub repo (create empty service first via railway-new skill, then use this)\n- User asks to change build or start command\n- User wants to add\u002Fupdate\u002Fdelete environment variables\n- User wants to change replica count or configure health checks\n- User asks to delete a service, volume, or bucket\n- User says \"apply changes\", \"commit changes\", \"deploy changes\"\n- Auto-fixing build errors detected in logs\n\n## Create Environment\n\nCreate a new environment in the linked project:\n\n```bash\nrailway environment new \u003Cname>\n```\n\nDuplicate an existing environment:\n\n```bash\nrailway environment new staging --duplicate production\n```\n\nWith service-specific variables:\n\n```bash\nrailway environment new staging --duplicate production --service-variable api PORT=3001\n```\n\n## Switch Environment\n\nLink a different environment to the current directory:\n\n```bash\nrailway environment \u003Cname>\n```\n\nOr by ID:\n\n```bash\nrailway environment \u003Cenvironment-id>\n```\n\n## Get Context\n\n```bash\nrailway status --json\n```\n\nExtract:\n\n- `project.id` - for service lookup\n- `environment.id` - for the mutations\n- `service.id` - default service if user doesn't specify one\n\n### Resolve Service ID\n\nIf user specifies a service by name, query project services:\n\n```graphql\nquery projectServices($projectId: String!) {\n  project(id: $projectId) {\n    services {\n      edges {\n        node {\n          id\n          name\n        }\n      }\n    }\n  }\n}\n```\n\nMatch the service name (case-insensitive) to get the service ID.\n\n## Query Configuration\n\nFetch current environment configuration and staged changes.\n\n```graphql\nquery environmentConfig($environmentId: String!) {\n  environment(id: $environmentId) {\n    id\n    config(decryptVariables: false)\n    serviceInstances {\n      edges {\n        node {\n          id\n          serviceId\n        }\n      }\n    }\n  }\n  environmentStagedChanges(environmentId: $environmentId) {\n    id\n    patch(decryptVariables: false)\n  }\n}\n```\n\nExample:\n\n```bash\nbash \u003C\u003C'SCRIPT'\n${CLAUDE_PLUGIN_ROOT}\u002Fskills\u002Flib\u002Frailway-api.sh \\\n  'query envConfig($envId: String!) {\n    environment(id: $envId) { id config(decryptVariables: false) }\n    environmentStagedChanges(environmentId: $envId) { id patch(decryptVariables: false) }\n  }' \\\n  '{\"envId\": \"ENV_ID\"}'\nSCRIPT\n```\n\n### Response Structure\n\nThe `config` field contains current configuration:\n\n```json\n{\n  \"services\": {\n    \"\u003CserviceId>\": {\n      \"source\": { \"repo\": \"...\", \"branch\": \"main\" },\n      \"build\": { \"buildCommand\": \"npm run build\", \"builder\": \"NIXPACKS\" },\n      \"deploy\": {\n        \"startCommand\": \"npm start\",\n        \"multiRegionConfig\": { \"us-west2\": { \"numReplicas\": 1 } }\n      },\n      \"variables\": { \"NODE_ENV\": { \"value\": \"production\" } },\n      \"networking\": { \"serviceDomains\": {}, \"customDomains\": {} }\n    }\n  },\n  \"sharedVariables\": { \"DATABASE_URL\": { \"value\": \"...\" } }\n}\n```\n\nThe `patch` field in `environmentStagedChanges` contains pending changes. The effective configuration is the base `config` merged with the staged `patch`.\n\nFor complete field reference, see [reference\u002Fenvironment-config.md](..\u002Freference\u002Fenvironment-config.md).\n\nFor variable syntax and service wiring patterns, see [reference\u002Fvariables.md](..\u002Freference\u002Fvariables.md).\n\n## Get Rendered Variables\n\nThe GraphQL queries above return **unrendered** variables - template syntax like `${{shared.DOMAIN}}` is preserved. This is correct for management\u002Fediting.\n\nTo see **rendered** (resolved) values as they appear at runtime:\n\n```bash\n# Current linked service\nrailway variables --json\n\n# Specific service\nrailway variables --service \u003Cservice-name> --json\n```\n\n**When to use:**\n- Debugging connection issues (see actual URLs\u002Fports)\n- Verifying variable resolution is correct\n- Viewing Railway-injected values (RAILWAY_*)\n\n## Stage Changes\n\nStage configuration changes via the `environmentStageChanges` mutation. Use `merge: true` to automatically merge with existing staged changes.\n\n```graphql\nmutation stageEnvironmentChanges(\n  $environmentId: String!\n  $input: EnvironmentConfig!\n  $merge: Boolean\n) {\n  environmentStageChanges(\n    environmentId: $environmentId\n    input: $input\n    merge: $merge\n  ) {\n    id\n  }\n}\n```\n\n**Important:** Always use variables (not inline input) because service IDs are UUIDs which can't be used as unquoted GraphQL object keys.\n\nExample:\n\n```bash\nbash \u003C\u003C'SCRIPT'\n${CLAUDE_PLUGIN_ROOT}\u002Fskills\u002Flib\u002Frailway-api.sh \\\n  'mutation stageChanges($environmentId: String!, $input: EnvironmentConfig!, $merge: Boolean) {\n    environmentStageChanges(environmentId: $environmentId, input: $input, merge: $merge) { id }\n  }' \\\n  '{\"environmentId\": \"ENV_ID\", \"input\": {\"services\": {\"SERVICE_ID\": {\"build\": {\"buildCommand\": \"npm run build\"}}}}, \"merge\": true}'\nSCRIPT\n```\n\n### Delete Service\n\nUse `isDeleted: true`:\n\n```bash\nbash \u003C\u003C'SCRIPT'\n${CLAUDE_PLUGIN_ROOT}\u002Fskills\u002Flib\u002Frailway-api.sh \\\n  'mutation stageChanges($environmentId: String!, $input: EnvironmentConfig!, $merge: Boolean) {\n    environmentStageChanges(environmentId: $environmentId, input: $input, merge: $merge) { id }\n  }' \\\n  '{\"environmentId\": \"ENV_ID\", \"input\": {\"services\": {\"SERVICE_ID\": {\"isDeleted\": true}}}, \"merge\": true}'\nSCRIPT\n```\n\n## Stage and Apply Immediately\n\nFor single changes that should deploy right away, use `environmentPatchCommit` to stage and apply in one call.\n\n```graphql\nmutation environmentPatchCommit(\n  $environmentId: String!\n  $patch: EnvironmentConfig\n  $commitMessage: String\n) {\n  environmentPatchCommit(\n    environmentId: $environmentId\n    patch: $patch\n    commitMessage: $commitMessage\n  )\n}\n```\n\nExample:\n\n```bash\nbash \u003C\u003C'SCRIPT'\n${CLAUDE_PLUGIN_ROOT}\u002Fskills\u002Flib\u002Frailway-api.sh \\\n  'mutation patchCommit($environmentId: String!, $patch: EnvironmentConfig, $commitMessage: String) {\n    environmentPatchCommit(environmentId: $environmentId, patch: $patch, commitMessage: $commitMessage)\n  }' \\\n  '{\"environmentId\": \"ENV_ID\", \"patch\": {\"services\": {\"SERVICE_ID\": {\"variables\": {\"API_KEY\": {\"value\": \"secret\"}}}}}, \"commitMessage\": \"add API_KEY\"}'\nSCRIPT\n```\n\n**When to use:** Single change, no need to batch, user wants immediate deployment.\n\n**When NOT to use:** Multiple related changes to batch, or user says \"stage only\" \u002F \"don't deploy yet\".\n\n## Apply Staged Changes\n\nCommit staged changes and trigger deployments.\n\n**Note:** There is no `railway apply` CLI command. Use the mutation below or direct users to the web UI.\n\n### Apply Mutation\n\n**Mutation name: `environmentPatchCommitStaged`**\n\n```graphql\nmutation environmentPatchCommitStaged(\n  $environmentId: String!\n  $message: String\n  $skipDeploys: Boolean\n) {\n  environmentPatchCommitStaged(\n    environmentId: $environmentId\n    commitMessage: $message\n    skipDeploys: $skipDeploys\n  )\n}\n```\n\nExample:\n\n```bash\nbash \u003C\u003C'SCRIPT'\n${CLAUDE_PLUGIN_ROOT}\u002Fskills\u002Flib\u002Frailway-api.sh \\\n  'mutation commitStaged($environmentId: String!, $message: String) {\n    environmentPatchCommitStaged(environmentId: $environmentId, commitMessage: $message)\n  }' \\\n  '{\"environmentId\": \"ENV_ID\", \"message\": \"add API_KEY variable\"}'\nSCRIPT\n```\n\n### Parameters\n\n| Field           | Type    | Default | Description                                 |\n| --------------- | ------- | ------- | ------------------------------------------- |\n| `environmentId` | String! | -       | Environment ID from status                  |\n| `message`       | String  | null    | Short description of changes                |\n| `skipDeploys`   | Boolean | false   | Skip deploys (only if user explicitly asks) |\n\n### Commit Message\n\nKeep very short - one sentence max. Examples:\n\n- \"set build command to fix npm error\"\n- \"add API_KEY variable\"\n- \"increase replicas to 3\"\n\nLeave empty if no meaningful description.\n\n### Default Behavior\n\n**Always deploy** unless user explicitly asks to skip. Only set `skipDeploys: true` if user says \"apply without deploying\", \"commit but don't deploy\", or \"skip deploys\".\n\nReturns a workflow ID (string) on success.\n\n## Auto-Apply Behavior\n\nBy default, **apply changes immediately**.\n\n### Flow\n\n**Single change:** Use `environmentPatchCommit` to stage and apply in one call.\n\n**Multiple changes or batching:** Use `environmentStageChanges` with `merge: true` for each change, then `environmentPatchCommitStaged` to apply.\n\n### When NOT to Auto-Apply\n\n- User explicitly says \"stage only\", \"don't deploy yet\", or similar\n- User is making multiple related changes that should deploy together\n\n**When you don't auto-apply, tell the user:**\n\n> Changes staged. Apply them at: https:\u002F\u002Frailway.com\u002Fproject\u002F{projectId}\n> Or ask me to apply them.\n\nGet `projectId` from `railway status --json` → `project.id`\n\n## Error Handling\n\n### Service Not Found\n\n```\nService \"foo\" not found in project. Available services: api, web, worker\n```\n\n### No Staged Changes\n\n```\nNo patch to apply\n```\n\nThere are no staged changes to commit. Stage changes first.\n\n### Invalid Configuration\n\nCommon issues:\n\n- `buildCommand` and `startCommand` cannot be identical\n- `buildCommand` only valid with NIXPACKS builder\n- `dockerfilePath` only valid with DOCKERFILE builder\n\n### No Permission\n\n```\nYou don't have permission to modify this environment. Check your Railway role.\n```\n\n### No Linked Project\n\n```\nNo project linked. Run `railway link` to link a project.\n```\n\n## Composability\n\n- **Create service**: Use railway-service skill\n- **View logs**: Use railway-deployment skill\n- **Add domains**: Use railway-domain skill\n- **Deploy local code**: Use railway-deploy skill\n\n","# Environment Configuration\n\nQuery, stage, and apply configuration changes for Railway environments.\n\n## Shell Escaping\n\n**CRITICAL:** When running GraphQL queries via bash, you MUST wrap in heredoc to prevent shell escaping issues:\n\n```bash\nbash \u003C\u003C'SCRIPT'\n${CLAUDE_PLUGIN_ROOT}\u002Fskills\u002Flib\u002Frailway-api.sh 'query ...' '{\"var\": \"value\"}'\nSCRIPT\n```\n\nWithout the heredoc wrapper, multi-line commands break and exclamation marks in GraphQL non-null types get escaped, causing query failures.\n\n## When to Use\n\n- User wants to create a new environment\n- User wants to duplicate an environment (e.g., \"copy production to staging\")\n- User wants to switch to a different environment\n- User asks about current build\u002Fdeploy settings, variables, replicas, health checks, domains\n- User asks to change service source (Docker image, branch, commit, root directory)\n- User wants to connect a service to a GitHub repo\n- User wants to deploy from a GitHub repo (create empty service first via railway-new skill, then use this)\n- User asks to change build or start command\n- User wants to add\u002Fupdate\u002Fdelete environment variables\n- User wants to change replica count or configure health checks\n- User asks to delete a service, volume, or bucket\n- User says \"apply changes\", \"commit changes\", \"deploy changes\"\n- Auto-fixing build errors detected in logs\n\n## Create Environment\n\nCreate a new environment in the linked project:\n\n```bash\nrailway environment new \u003Cname>\n```\n\nDuplicate an existing environment:\n\n```bash\nrailway environment new staging --duplicate production\n```\n\nWith service-specific variables:\n\n```bash\nrailway environment new staging --duplicate production --service-variable api PORT=3001\n```\n\n## Switch Environment\n\nLink a different environment to the current directory:\n\n```bash\nrailway environment \u003Cname>\n```\n\nOr by ID:\n\n```bash\nrailway environment \u003Cenvironment-id>\n```\n\n## Get Context\n\n```bash\nrailway status --json\n```\n\nExtract:\n\n- `project.id` - for service lookup\n- `environment.id` - for the mutations\n- `service.id` - default service if user doesn't specify one\n\n### Resolve Service ID\n\nIf user specifies a service by name, query project services:\n\n```graphql\nquery projectServices($projectId: String!) {\n  project(id: $projectId) {\n    services {\n      edges {\n        node {\n          id\n          name\n        }\n      }\n    }\n  }\n}\n```\n\nMatch the service name (case-insensitive) to get the service ID.\n\n## Query Configuration\n\nFetch current environment configuration and staged changes.\n\n```graphql\nquery environmentConfig($environmentId: String!) {\n  environment(id: $environmentId) {\n    id\n    config(decryptVariables: false)\n    serviceInstances {\n      edges {\n        node {\n          id\n          serviceId\n        }\n      }\n    }\n  }\n  environmentStagedChanges(environmentId: $environmentId) {\n    id\n    patch(decryptVariables: false)\n  }\n}\n```\n\nExample:\n\n```bash\nbash \u003C\u003C'SCRIPT'\n${CLAUDE_PLUGIN_ROOT}\u002Fskills\u002Flib\u002Frailway-api.sh \\\n  'query envConfig($envId: String!) {\n    environment(id: $envId) { id config(decryptVariables: false) }\n    environmentStagedChanges(environmentId: $envId) { id patch(decryptVariables: false) }\n  }' \\\n  '{\"envId\": \"ENV_ID\"}'\nSCRIPT\n```\n\n### Response Structure\n\nThe `config` field contains current configuration:\n\n```json\n{\n  \"services\": {\n    \"\u003CserviceId>\": {\n      \"source\": { \"repo\": \"...\", \"branch\": \"main\" },\n      \"build\": { \"buildCommand\": \"npm run build\", \"builder\": \"NIXPACKS\" },\n      \"deploy\": {\n        \"startCommand\": \"npm start\",\n        \"multiRegionConfig\": { \"us-west2\": { \"numReplicas\": 1 } }\n      },\n      \"variables\": { \"NODE_ENV\": { \"value\": \"production\" } },\n      \"networking\": { \"serviceDomains\": {}, \"customDomains\": {} }\n    }\n  },\n  \"sharedVariables\": { \"DATABASE_URL\": { \"value\": \"...\" } }\n}\n```\n\nThe `patch` field in `environmentStagedChanges` contains pending changes. The effective configuration is the base `config` merged with the staged `patch`.\n\nFor complete field reference, see [reference\u002Fenvironment-config.md](..\u002Freference\u002Fenvironment-config.md).\n\nFor variable syntax and service wiring patterns, see [reference\u002Fvariables.md](..\u002Freference\u002Fvariables.md).\n\n## Get Rendered Variables\n\nThe GraphQL queries above return **unrendered** variables - template syntax like `${{shared.DOMAIN}}` is preserved. This is correct for management\u002Fediting.\n\nTo see **rendered** (resolved) values as they appear at runtime:\n\n```bash\n# Current linked service\nrailway variables --json\n\n# Specific service\nrailway variables --service \u003Cservice-name> --json\n```\n\n**When to use:**\n- Debugging connection issues (see actual URLs\u002Fports)\n- Verifying variable resolution is correct\n- Viewing Railway-injected values (RAILWAY_*)\n\n## Stage Changes\n\nStage configuration changes via the `environmentStageChanges` mutation. Use `merge: true` to automatically merge with existing staged changes.\n\n```graphql\nmutation stageEnvironmentChanges(\n  $environmentId: String!\n  $input: EnvironmentConfig!\n  $merge: Boolean\n) {\n  environmentStageChanges(\n    environmentId: $environmentId\n    input: $input\n    merge: $merge\n  ) {\n    id\n  }\n}\n```\n\n**Important:** Always use variables (not inline input) because service IDs are UUIDs which can't be used as unquoted GraphQL object keys.\n\nExample:\n\n```bash\nbash \u003C\u003C'SCRIPT'\n${CLAUDE_PLUGIN_ROOT}\u002Fskills\u002Flib\u002Frailway-api.sh \\\n  'mutation stageChanges($environmentId: String!, $input: EnvironmentConfig!, $merge: Boolean) {\n    environmentStageChanges(environmentId: $environmentId, input: $input, merge: $merge) { id }\n  }' \\\n  '{\"environmentId\": \"ENV_ID\", \"input\": {\"services\": {\"SERVICE_ID\": {\"build\": {\"buildCommand\": \"npm run build\"}}}}, \"merge\": true}'\nSCRIPT\n```\n\n### Delete Service\n\nUse `isDeleted: true`:\n\n```bash\nbash \u003C\u003C'SCRIPT'\n${CLAUDE_PLUGIN_ROOT}\u002Fskills\u002Flib\u002Frailway-api.sh \\\n  'mutation stageChanges($environmentId: String!, $input: EnvironmentConfig!, $merge: Boolean) {\n    environmentStageChanges(environmentId: $environmentId, input: $input, merge: $merge) { id }\n  }' \\\n  '{\"environmentId\": \"ENV_ID\", \"input\": {\"services\": {\"SERVICE_ID\": {\"isDeleted\": true}}}, \"merge\": true}'\nSCRIPT\n```\n\n## Stage and Apply Immediately\n\nFor single changes that should deploy right away, use `environmentPatchCommit` to stage and apply in one call.\n\n```graphql\nmutation environmentPatchCommit(\n  $environmentId: String!\n  $patch: EnvironmentConfig\n  $commitMessage: String\n) {\n  environmentPatchCommit(\n    environmentId: $environmentId\n    patch: $patch\n    commitMessage: $commitMessage\n  )\n}\n```\n\nExample:\n\n```bash\nbash \u003C\u003C'SCRIPT'\n${CLAUDE_PLUGIN_ROOT}\u002Fskills\u002Flib\u002Frailway-api.sh \\\n  'mutation patchCommit($environmentId: String!, $patch: EnvironmentConfig, $commitMessage: String) {\n    environmentPatchCommit(environmentId: $environmentId, patch: $patch, commitMessage: $commitMessage)\n  }' \\\n  '{\"environmentId\": \"ENV_ID\", \"patch\": {\"services\": {\"SERVICE_ID\": {\"variables\": {\"API_KEY\": {\"value\": \"secret\"}}}}}, \"commitMessage\": \"add API_KEY\"}'\nSCRIPT\n```\n\n**When to use:** Single change, no need to batch, user wants immediate deployment.\n\n**When NOT to use:** Multiple related changes to batch, or user says \"stage only\" \u002F \"don't deploy yet\".\n\n## Apply Staged Changes\n\nCommit staged changes and trigger deployments.\n\n**Note:** There is no `railway apply` CLI command. Use the mutation below or direct users to the web UI.\n\n### Apply Mutation\n\n**Mutation name: `environmentPatchCommitStaged`**\n\n```graphql\nmutation environmentPatchCommitStaged(\n  $environmentId: String!\n  $message: String\n  $skipDeploys: Boolean\n) {\n  environmentPatchCommitStaged(\n    environmentId: $environmentId\n    commitMessage: $message\n    skipDeploys: $skipDeploys\n  )\n}\n```\n\nExample:\n\n```bash\nbash \u003C\u003C'SCRIPT'\n${CLAUDE_PLUGIN_ROOT}\u002Fskills\u002Flib\u002Frailway-api.sh \\\n  'mutation commitStaged($environmentId: String!, $message: String) {\n    environmentPatchCommitStaged(environmentId: $environmentId, commitMessage: $message)\n  }' \\\n  '{\"environmentId\": \"ENV_ID\", \"message\": \"add API_KEY variable\"}'\nSCRIPT\n```\n\n### Parameters\n\n| Field           | Type    | Default | Description                                 |\n| --------------- | ------- | ------- | ------------------------------------------- |\n| `environmentId` | String! | -       | Environment ID from status                  |\n| `message`       | String  | null    | Short description of changes                |\n| `skipDeploys`   | Boolean | false   | Skip deploys (only if user explicitly asks) |\n\n### Commit Message\n\nKeep very short - one sentence max. Examples:\n\n- \"set build command to fix npm error\"\n- \"add API_KEY variable\"\n- \"increase replicas to 3\"\n\nLeave empty if no meaningful description.\n\n### Default Behavior\n\n**Always deploy** unless user explicitly asks to skip. Only set `skipDeploys: true` if user says \"apply without deploying\", \"commit but don't deploy\", or \"skip deploys\".\n\nReturns a workflow ID (string) on success.\n\n## Auto-Apply Behavior\n\nBy default, **apply changes immediately**.\n\n### Flow\n\n**Single change:** Use `environmentPatchCommit` to stage and apply in one call.\n\n**Multiple changes or batching:** Use `environmentStageChanges` with `merge: true` for each change, then `environmentPatchCommitStaged` to apply.\n\n### When NOT to Auto-Apply\n\n- User explicitly says \"stage only\", \"don't deploy yet\", or similar\n- User is making multiple related changes that should deploy together\n\n**When you don't auto-apply, tell the user:**\n\n> Changes staged. Apply them at: https:\u002F\u002Frailway.com\u002Fproject\u002F{projectId}\n> Or ask me to apply them.\n\nGet `projectId` from `railway status --json` → `project.id`\n\n## Error Handling\n\n### Service Not Found\n\n```\nService \"foo\" not found in project. Available services: api, web, worker\n```\n\n### No Staged Changes\n\n```\nNo patch to apply\n```\n\nThere are no staged changes to commit. Stage changes first.\n\n### Invalid Configuration\n\nCommon issues:\n\n- `buildCommand` and `startCommand` cannot be identical\n- `buildCommand` only valid with NIXPACKS builder\n- `dockerfilePath` only valid with DOCKERFILE builder\n\n### No Permission\n\n```\nYou don't have permission to modify this environment. Check your Railway role.\n```\n\n### No Linked Project\n\n```\nNo project linked. Run `railway link` to link a project.\n```\n\n## Composability\n\n- **Create service**: Use railway-service skill\n- **View logs**: Use railway-deployment skill\n- **Add domains**: Use railway-domain skill\n- **Deploy local code**: Use railway-deploy skill\n\n",{"name":5,"tags":49,"author":26,"license":15,"version":56,"description":7,"dependencies":57,"allowed-tools":59},[26,50,51,33,52,53,54,55],"Environment","Configuration","Build","Deploy","Infrastructure","Settings","1.0.0",[58],"railway-cli","Bash(railway:*)","main","015422534a7457348a313b6381f0255d3364eb8c","cli-tool\u002Fcomponents\u002Fskills\u002Frailway\u002Fenvironment",0,"https:\u002F\u002Fgithub.com\u002FMishit18\u002Fclaude-code-templates","https:\u002F\u002Fgithub.com\u002FMishit18","2026-11-14 17:36:32",{"source":8,"skillName":5,"commands":68,"prompt":78,"zipAvailable":79},[69,72,75],{"tool":70,"command":71},"npx","npx skills add Mishit18\u002Fclaude-code-templates --skill railway-environment",{"tool":73,"command":74},"bunx","bunx skills add Mishit18\u002Fclaude-code-templates --skill railway-environment",{"tool":76,"command":77},"pnpm","pnpm dlx skills add Mishit18\u002Fclaude-code-templates --skill railway-environment","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FMishit18\u002Fclaude-code-templates\u002Fblob\u002Fmain\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Frailway\u002Fenvironment\u002FSKILL.md",true,[],[82,113,142,167,194,205],{"skillNo":83,"name":84,"nameZh":6,"description":85,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":86,"licenseFileUrl":87,"sourceHtmlUrl":88,"categories":89,"keywords":93,"publishedAt":112},"01M6R194Y2CS39V9VPAVRVW1ZV","skill-creation-guide","Guide for creating effective skills. This skill should be used when users want to create a new skill (or update an existing skill) that extends Claude's capabilities with specialized knowledge, workflows, or tool integrations.","Apache-2.0","https:\u002F\u002Fgithub.com\u002FMishit18\u002Fclaude-code-templates\u002Fblob\u002Fmain\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fdevelopment\u002Fskill-creation-guide\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002FMishit18\u002Fclaude-code-templates\u002Fblob\u002Fmain\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fdevelopment\u002Fskill-creation-guide\u002FSKILL.md",[90],{"categoryNo":91,"categoryName":92,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000023","Skill与智能体开发",[94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,31,110,111],"skill creation guide","guide","creation","skill creation","workflows","create","update","capabilities","knowledge","tool","integrations","specialized","new skill","existing skill","users","with","Existing","when","2026-11-11 15:11:14",{"skillNo":114,"name":115,"nameZh":6,"description":116,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":86,"licenseFileUrl":117,"sourceHtmlUrl":118,"categories":119,"keywords":123,"publishedAt":44},"01M6R4ARN4W2VZRDERDTMN1KP0","web-artifacts-builder","Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn\u002Fui). Use for complex artifacts requiring state management, routing, or shadcn\u002Fui components - not for simple single-file HTML\u002FJSX artifacts.","https:\u002F\u002Fgithub.com\u002FMishit18\u002Fclaude-code-templates\u002Fblob\u002Fmain\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Futilities\u002Fweb-artifacts-builder\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002FMishit18\u002Fclaude-code-templates\u002Fblob\u002Fmain\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Futilities\u002Fweb-artifacts-builder\u002FSKILL.md",[120],{"categoryNo":121,"categoryName":122,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000009","前端开发",[124,125,126,127,128,129,130,131,132,133,134,135,136,137,38,138,139,140,31,141],"web artifacts builder","web","artifacts","artifacts builder","builder","frontend","css","components","react","routing","state management","state","file","Tailwind","single-file","ui components","multi","single",{"skillNo":143,"name":144,"nameZh":6,"description":145,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":86,"licenseFileUrl":146,"sourceHtmlUrl":147,"categories":148,"keywords":153,"publishedAt":44},"01M6R45GXREM5DP8T08MAC788H","webapp-testing","Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.","https:\u002F\u002Fgithub.com\u002FMishit18\u002Fclaude-code-templates\u002Fblob\u002Fmain\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fsecurity\u002Fwebapp-testing\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002FMishit18\u002Fclaude-code-templates\u002Fblob\u002Fmain\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fsecurity\u002Fwebapp-testing\u002FSKILL.md",[149,152],{"categoryNo":150,"categoryName":151,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000008","测试与质量",{"categoryNo":121,"categoryName":122,"taxonomyType":21,"taxonomyTypeDesc":22},[154,155,156,129,157,158,125,159,160,161,162,163,164,165,166,109,31],"testing","webapp testing","webapp","screenshots","playwright","debugging","toolkit","browser","ui","logs","applications","behavior","local",{"skillNo":168,"name":169,"nameZh":6,"description":170,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":171,"sourceHtmlUrl":172,"categories":173,"keywords":174,"publishedAt":44},"01M6R2GYJ470X8EB7R58V0B68K","think-tank","Run a Virtual Think Tank — a structured multi-persona debate — before planning or making architectural\u002Fdesign\u002Fstrategic decisions. Use this skill whenever the user is about to plan a system, make a technology choice, evaluate trade-offs, decide on an approach, or faces any decision where multiple perspectives would sharpen the outcome. Also trigger when the user says \"think tank\", \"debate this\", \"perspectives on\", \"trade-offs\", \"should I use X or Y\", \"help me decide\", \"before we plan\", or asks for pros\u002Fcons of competing approaches. This skill should run BEFORE any implementation planning begins — it produces a structured analysis that feeds into better plans.","https:\u002F\u002Fgithub.com\u002FMishit18\u002Fclaude-code-templates\u002Fblob\u002Fmain\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fproductivity\u002Fthink-tank\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002FMishit18\u002Fclaude-code-templates\u002Fblob\u002Fmain\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fproductivity\u002Fthink-tank\u002FSKILL.md",[],[175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,111],"think tank","think","design","run","feeds","analysis","persona","plan","sharpen","virtual","decision","choice","decide","perspectives","outcome","me","debate","make","trade-offs",{"skillNo":195,"name":196,"nameZh":6,"description":85,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":86,"licenseFileUrl":197,"sourceHtmlUrl":198,"categories":199,"keywords":201,"publishedAt":44},"01M6R2FSR55AVRFA9YZ8SC2GZG","skill-creator","https:\u002F\u002Fgithub.com\u002FMishit18\u002Fclaude-code-templates\u002Fblob\u002Fmain\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fproductivity\u002Fskill-creator\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002FMishit18\u002Fclaude-code-templates\u002Fblob\u002Fmain\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fproductivity\u002Fskill-creator\u002FSKILL.md",[200],{"categoryNo":91,"categoryName":92,"taxonomyType":21,"taxonomyTypeDesc":22},[202,203,98,99,100,101,102,103,104,105,95,106,107,108,109,31,110,111,204],"skill creator","creator","new",{"skillNo":206,"name":207,"nameZh":6,"description":208,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":209,"categories":210,"keywords":211,"publishedAt":44},"01M6R2FK42ZZ4HJTJVVK9WJBBP","ship-learn-next","Transform learning content (like YouTube transcripts, articles, tutorials) into actionable implementation plans using the Ship-Learn-Next framework. Use when user wants to turn advice, lessons, or educational content into concrete action steps, reps, or a learning quest.","https:\u002F\u002Fgithub.com\u002FMishit18\u002Fclaude-code-templates\u002Fblob\u002Fmain\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fproductivity\u002Fship-learn-next\u002FSKILL.md",[],[212,213,214,215,216,217,218,219,38,220,221,222,223,224,225,226,227,228,229,111],"learn","ship learn next","ship","next","framework","learning","read","write","advice","implementation","youtube","plans","quest","transform","actionable","action","lessons","youtube transcripts"]