/spacelift:previewfrom spacelift
This skill should be used when the user wants to run a Spacelift local preview, trigger a proposed run from the current workspace, or test infrastructure changes before pushing. Activates on: "local preview", "spacelift preview", "preview spacelift", "test changes spacelift", "run preview", "spacelift local", "try changes", "anteprima locale", "anteprima spacelift", "provare modifiche spacelift".
Ships in spacelift. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Run local previews to test Terraform changes against Spacelift before pushing. Packages local files, uploads to Spacelift, and executes a plan.
Reference files: Consult reference/spacectl-tools.md for the full MCP tool catalog and CLI equivalents.
spacelift.spacectl-mcp): local_preview, list_stacksspacectl stack local-previewUse ToolSearch with query spacelift to check if MCP tools are available. See reference/spacectl-tools.md § Tool Detection.
If the user didn't specify a stack:
*.tf files)list_stacks to search for stacks matching the repository or project rootMCP (recommended): local_preview with:
stack_id — the target stack slugpath — workspace path (defaults to current directory)await_for_completion — set to "true" to wait for results (recommended)targets — array of specific resources to target (optional, for focused previews)environment_variables — additional env vars for the run (optional)CLI fallback:
spacectl stack local-preview --id <stack-slug>
Optional CLI flags:
--target <resource> — target specific resources--no-tail — don't stream logs (just trigger and return)--project-root-only — only package files in the project root--prioritize-run — prioritize this run in the queueOnce the preview completes, present:
Format as:
## Local Preview Results
**Stack**: `<stack-slug>`
**State**: FINISHED
**Delta**: +2 ~1 -0
### Planned Changes
| Action | Resource | Address |
|--------|----------|---------|
| + add | aws_s3_bucket | module.storage.aws_s3_bucket.logs |
| ~ update | aws_iam_policy | module.iam.aws_iam_policy.access |
If the preview failed, invoke the debug workflow from /spacelift:debug.
| Situation | Action |
|---|---|
| MCP tools not available | Fall back to CLI. See reference/spacectl-tools.md § CLI Equivalents |
| Stack not found | Use list_stacks with search to find the correct slug |
| Preview times out | The run may be queued behind other runs. Check with get_stack_run |
| Upload fails | Check that .gitignore and .terraformignore aren't excluding needed files |
| Authentication failure | Check SPACELIFT_API_GITHUB_TOKEN and SPACELIFT_API_KEY_ENDPOINT env vars |
reference/spacectl-tools.md — Full MCP tool catalog, CLI equivalents, GraphQL queriesWhat SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub fabn/claude-plugins --plugin spacelift5 skills in this plugin
/debugspacelift:debugThis skill should be used when the user wants to debug a failed Spacelift
run, understand why a plan or apply failed, or investigate Spacelift errors.
Follows a structured workflow: identify the failed run, fetch history and
logs, parse errors, and present findings with fix suggestions.
Activates on: "why did spacelift fail", "spacelift plan failed", "spacelift error",
"debug spacelift", "spacelift apply failed", "spacelift failure", "fix spacelift",
"what went wrong spacelift", "spacelift broken",
"perché spacelift ha fallito", "errore spacelift", "spacelift rotto",
"debug spacelift", "correggi spacelift".
/logsspacelift:logsThis skill should be used when the user wants to read Spacelift run logs,
inspect a specific run, view resource changes, or find the run associated
with a branch or PR.
Activates on: "spacelift logs", "spacelift run", "show run", "run logs",
"read logs", "spacelift changes", "run details", "find run", "run for this branch",
"spacelift run status", "what changed in the run",
"log spacelift", "mostra log", "dettagli run", "modifiche run spacelift".
/managespacelift:manageThis skill should be used when the user wants to manage Spacelift runs:
confirm a pending run, discard a run, trigger a new deployment, retry a
failed run, or cancel a queued run.
Activates on: "confirm run", "confirm spacelift", "discard run", "discard spacelift",
"trigger run", "trigger spacelift", "deploy spacelift", "retry spacelift",
"cancel run", "cancel spacelift", "run spacelift", "lancia spacelift",
"conferma run", "scarta run", "annulla run spacelift", "rilancia spacelift".
/statusspacelift:statusThis skill should be used when the user wants to list Spacelift stacks,
check stack status, show stack details, view dependencies, or get an
overview of their Spacelift infrastructure.
Activates on: "spacelift", "spacelift status", "list stacks", "spacelift stacks",
"check spacelift", "show stack", "stack details", "spacelift dependencies",
"spacelift resources", "spacelift overview",
"stato spacelift", "controlla spacelift", "lista stack", "dipendenze spacelift".