用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/aiskillstore/marketplace --skill build-diagnostics命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
Maintain a portable task-state ledger for long, multi-step work. Use when a task spans many files, produces large logs, needs a reliable handoff, or requires traceable evidence without repeatedly loading full outputs. Creates concise state records and private evidence references with explicit limits, redaction checks, and retention guidance.
【收纳储物必看】装修前不会规划收纳,入住半年家变仓库?这个 Skill 内置装修课堂会员版「家居收纳储物方法」152篇原创知识库,专门讲收纳储物——收纳是家的骨架、柜子不是越多越好、收纳本质是把东西藏起来、收纳加勤快缺一不可。问玄关鞋柜怎么装、问厨房9个收纳位置、问衣柜衣帽间怎么做、问小户型怎么榨干每1平米、问收纳避坑和鸡肋神器,全部覆盖。适合正在装修、准备收纳规划、家里东西多总是乱、想做满墙柜/通顶柜/800库的业主。
【儿童房装修必看】家里有小孩、正准备要孩子、或想给儿童房做环保安全装修?这个 Skill 内置装修课堂知识库,专门讲"适童化"——儿童是最易受甲醛伤害的人群,儿童房必须实木/ENF/控总量。问儿童房怎么装环保、问儿童房墙面地面用什么、问儿童家具选实木还是人造板、问孩子学习/游戏专区怎么规划、问有娃家庭怎么防磕碰防污染,全部覆盖。适合家里有娃、备孕婚房、想装出健康儿童房的业主。
基于 SOC 职业分类
正在显示 SKILL.md
| name | build-diagnostics |
| description | When given a blocker: |
Purpose: When Truth Layer finds a blocker, this agent investigates root cause and implements fix.
Core Principle: Use all available tools to understand the problem fully before attempting solutions.
When given a blocker:
INPUT: Build fails - Turbopack cannot write manifest
├─ Step 1: Reproduce the error exactly
├─ Step 2: Gather all context (config, logs, environment)
├─ Step 3: Identify root cause (not symptom)
├─ Step 4: Check if known issue (MCP + web search)
├─ Step 5: Propose solution with confidence level
└─ OUTPUT: Detailed diagnosis + fix strategy
Don't accept surface symptoms:
Tools to Use:
When confident of root cause:
1. Create minimal reproducible fix
2. Test locally with same conditions
3. Verify no new problems introduced
4. Document what changed and why
5. Report back to Truth Layer for validation
Blocker: [description]
REPRODUCE
- Run exact command: [command]
- Capture full output: [log]
- Environment check: [NODE_VERSION, etc]
GATHER CONTEXT
- Config files reviewed: [list]
- Related code examined: [files]
- Error patterns found: [patterns]
ROOT CAUSE ANALYSIS
- Symptom: [what fails]
- Actual cause: [why it fails]
- Confidence: [X%]
- Affected systems: [what depends on this]
PROPOSED FIX
- Approach: [description]
- Risk level: [low/medium/high]
- Alternative solutions: [other approaches]
- Why this one: [rationale]
VALIDATION PLAN
- How to test: [specific steps]
- Success criteria: [measurable]
- Rollback plan: [if wrong]
BEFORE FIX STATE
- [Current configuration/state]
CHANGES
- [What's being changed]
- [Why this fixes it]
AFTER FIX STATE
- [New state]
- [Verification that it worked]
npm run build with full output capturenext.config.mjs, tsconfig.json, package.jsonnpm run typecheck to get full error listSYMPTOM: "Allocation failed - JavaScript heap out of memory"
ROOT CAUSE: Node heap too small for large codebase
FIX: Increase --max-old-space-size in package.json
VALIDATION: npm run build succeeds without memory errors
SYMPTOM: "Cannot write to path X"
ROOT CAUSE: Parent directories don't exist
FIX: Create directory structure with fs.mkdir recursive
VALIDATION: File write succeeds
SYMPTOM: "Type 'X' not assignable to 'Y'"
ROOT CAUSE: Function signature changed, call sites not updated
FIX: Either update interface or map values correctly
VALIDATION: npm run typecheck passes
SYMPTOM: "Cannot find module" or weird import errors
ROOT CAUSE: Files importing each other in circle
FIX: Extract shared code to third module
VALIDATION: Imports resolve cleanly
High Confidence (>80%):
Medium Confidence (50-80%):
Low Confidence (<50%):
If you hit these, STOP and ask for help:
Report Format for Escalation:
ESCALATION REQUIRED
INVESTIGATION SUMMARY
- What we know: [facts]
- What we tried: [attempts]
- Why it failed: [reasons]
POSSIBLE CAUSES (ranked by likelihood)
1. [X] - confidence [Y]%
2. [X] - confidence [Y]%
NEXT STEPS (need human input on)
- [Decision needed]
- [Preference between options]
- [Architectural guidance]
✅ Every blocker has root cause identified ✅ Fixes are minimal and isolated ✅ All fixes verified before returning to Truth Layer ✅ No new problems introduced ✅ Time: Thorough investigation beats rushed fixes
❌ "Let's just reboot and see if it helps" ❌ "I'll try random stuff until something works" ❌ "This error is probably not related to my change" ❌ Giving up and claiming it's not possible ❌ Making changes without understanding impact
Key Mantra:
"We don't fix symptoms. We fix root causes. And we verify before we claim victory."