用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/ucsandman/dashclaw-agent --skill troubleshoot命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | troubleshoot |
| description | Debug DashClaw errors, signal issues, and misconfigurations |
| license | MIT |
| metadata | {"author":"ucsandman","version":"1.0.0","category":"debugging"} |
Systematic diagnostics for common DashClaw errors, signal anomalies, and configuration issues.
Symptom: API calls return 401.
Checklist:
x-api-key header is set (not Authorization: Bearer)DASHCLAW_API_KEY environment variable is setcurl -H "x-api-key: $DASHCLAW_API_KEY" $DASHCLAW_BASE_URL/api/health
Root cause: DashClaw uses x-api-key header, not Bearer tokens. The middleware does timing-safe comparison first, then falls back to hash lookup.
Symptom: API calls return 403.
Checklist:
DASHCLAW_MODE env var./api/guard and getting 403, a policy is blocking the action — this is working as intended.org_default org blocks API access except onboarding routes. Create a real org first.Symptom: API calls return 429 Too Many Requests.
Defaults:
Fixes:
DASHCLAW_DISABLE_RATE_LIMIT=true for local developmentUPSTASH_REDIS_REST_URL for distributed rate limitingSymptom: API calls return 503.
Checklist:
DASHCLAW_API_KEY set? Missing key → 503 on protected routesDATABASE_URL valid? Check connection stringcurl $DASHCLAW_BASE_URL/api/health/setup page for readiness verification| Gotcha | Explanation |
|---|---|
| Client-sent org headers stripped | Middleware ALWAYS strips x-org-id, x-org-role, x-user-id from requests. Org context comes from the API key, never the client. |
| Two thread systems | Context threads (ct_*) and message threads (mt_*) are separate systems. Don't mix them. |
| org_default blocks APIs | Users in org_default are blocked from most endpoints. Create or join a real org first. |
| API key shown once | Keys are displayed exactly once at creation. If lost, generate a new one. |
| 2MB body size limit | Request bodies larger than 2MB are rejected. |
| HTTPS required in production | Non-HTTPS connections are rejected in production mode. |
| Canonical JSON for signatures | Agent identity signatures require deterministic JSON key ordering. |
| Rate limiting is per-IP | Not per-key or per-agent. Multiple agents on same IP share the limit. |
DashClaw computes 8 signal types. If signals are firing unexpectedly:
Trigger: >10 ungoverned actions/hour
Fix: Add guard checks before actions. Use claw.guard() before claw.createAction().
Trigger: Irreversible decisions with risk ≥70 and no approval Fix: Add approval gate policy for high-risk irreversible actions.
Trigger: >3 failures in 24 hours Fix: Check agent logic. Review failed actions in dashboard for patterns.
Trigger: Unresolved dependencies >48 hours old
Fix: Resolve or cancel open loops: claw.resolveOpenLoop(loopId, 'resolved', 'Fixed').
Trigger: ≥2 invalidated assumptions in 7 days Fix: Review assumptions. Agent may be operating on stale beliefs.
Trigger: Unvalidated assumptions >14 days old
Fix: Validate or invalidate old assumptions: claw.validateAssumption(id, true/false, reason).
Trigger: Actions with status running for >4 hours
Fix: Update stuck actions: claw.updateOutcome(actionId, { status: 'failed', output_summary: 'Timed out' }).
Trigger: Agent heartbeat lost >10 minutes
Fix: Ensure agent sends heartbeats: claw.heartbeat({ status: 'online' }).
node scripts/diagnose.mjs \
--base-url $DASHCLAW_BASE_URL \
--api-key $DASHCLAW_API_KEY
Runs 4 phases:
Add --json for programmatic output.
node scripts/validate-integration.mjs \
--base-url $DASHCLAW_BASE_URL \
--api-key $DASHCLAW_API_KEY \
--full # Include write tests
Validates:
Add --capture-setup-proof to generate proof for the dashboard.
.claude/settings.json has PreToolUse hook configuredBash|Edit|Write|MultiEditpython --versionDASHCLAW_HOOK_MODE — if set to observe, it logs but never blocksDASHCLAW_RISK_THRESHOLD — default is 60, lower it to catch morecurl -H "x-api-key: $KEY" $URL/api/policiesDASHCLAW_HOOK_MODE=observe first to understand what's being caught{tempdir}/dashclaw_last_action_{tool_use_id}DASHCLAW_BASE_URL and DASHCLAW_API_KEY are set for posttool