From steadwing
Use when the user asks to run Root Cause Analysis (RCA), debug a production incident, analyze an error log or stack trace, or trigger Steadwing. Also use when a production-style error (traceback / unhandled exception / stack trace) is surfaced and the user wants automated investigation. Handles agent registration, authentication, optional auto-detection hook setup, and RCA triggering via the Steadwing API.
How this skill is triggered — by the user, by Claude, or both
Slash command
/steadwing:steadwingThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Steadwing analyzes production incidents using AI. This skill makes the agent self-onboard
Steadwing analyzes production incidents using AI. This skill makes the agent self-onboard and trigger RCA with zero manual setup. It handles:
Base URL: https://api.dev.steadwing.com
Auth header: X-API-Key: {api_key} on every authenticated request.
Before any authenticated call, check for stored credentials.
| OS | Path |
|---|---|
| macOS / Linux | ~/.steadwing/credentials.json |
| Windows | %APPDATA%\steadwing\credentials.json |
{
"api_key": "st_...",
"agent_id": "uuid",
"short_id": "agent_a7f3x2",
"base_url": "https://api.dev.steadwing.com",
"claim_url": "https://dev.steadwing.com/login?claim=<token>",
"created_at": "2026-06-09T10:00:00Z"
}
CLAUDECODE/CLAUDE_CODE* set, or you are Claude Code) → "claude-code"CURSOR_*) → "cursor"WINDSURF_*) → "windsurf""unknown"POST https://api.dev.steadwing.com/api/agents/register with body {"source": "<detected-source>"}. No auth required.~/.steadwing/ directory and write credentials.json from the response data
(map data.api_key, data.agent_id, data.short_id, data.claim_url; set base_url to the API base above).chmod 600 ~/.steadwing/credentials.json.data.welcome_message and the data.claim_url so the user can link the agent to their account.Unclaimed agents expire in 3 days. Always show the claim URL after registering.
401 responseThe key was revoked or the agent expired. Delete the credential file, re-run registration above, and tell the user: "Your Steadwing agent session expired — re-registered with a new key."
After every authenticated call, check the X-Steadwing-Agent-Warning response header. If present,
surface its value prominently — it contains the claim URL and time remaining.
So the agent is "ready to send RCA when an error happens," offer to install the detection hook once, right after the first successful registration:
"Want me to watch for production-style errors and offer to run RCA automatically? (Claude Code only)"
If the user agrees, run the installer from this skill's scripts/ directory:
python3 "<this-skill-dir>/scripts/install_hook.py"
This registers a PostToolUse hook in the user's ~/.claude/settings.json. The hook only
detects production-style errors (tracebacks, unhandled exceptions, stack traces) and injects a
note asking you to offer RCA. It never sends anything on its own — you always ask the user
first (see Step 3). The installer is idempotent and merges into existing settings.
To remove it later: delete the matching entry under hooks.PostToolUse in ~/.claude/settings.json.
Trigger when any of these is true:
Never auto-send without user confirmation. When an error is detected by the hook, ask first.
POST https://api.dev.steadwing.com/api/mcp/analyze
X-API-Key: {api_key}
Content-Type: application/json
{
"error_log": "The full error log or stack trace to analyze",
"files": [
{"name": "src/billing/service.py", "content": "<file contents>"}
]
}
files is optional but strongly improves analysis. Attach relevant source:
src/billing/service.py:45 → read that file).{
"success": true,
"data": {
"incident_id": "uuid",
"incident_url": "https://app.steadwing.com/incident/<id>"
}
}
Analysis runs in the background (~1–3 min). Tell the user: "RCA started — track progress at: {data.incident_url}"
GET https://api.dev.steadwing.com/api/agents/status
X-API-Key: {api_key}
Returns claimed, status, expires_at, hours_remaining, warning, claim_url. Use it to
remind the user to claim an unclaimed agent before it expires.
For the full API reference, see references/api-reference.md.
Provides UI/UX resources: 50+ styles, color palettes, font pairings, guidelines, charts for web/mobile across React, Next.js, Vue, Svelte, Tailwind, React Native, Flutter. Aids planning, building, reviewing interfaces.
Fetches up-to-date documentation from Context7 for libraries and frameworks like React, Next.js, Prisma. Use for setup questions, API references, and code examples.
npx claudepluginhub steadwing/agent-skills --plugin steadwing