用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/tomevault-io/skills-registry --skill debugging-first命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
| Use when this capability is needed.
> Use when this capability is needed.
Review architecture and API design for the vfs-s3 project. Use when the user mentions @architect, asks to review an issue's design, discuss module boundaries, API shape, or architectural decisions for vfs-s3. Also trigger when the user wants to create an ADR (Architecture Decision Record) or evaluate a technical approach for the project. Intended for dispatch from Codex automation or Claude routines; GitHub trigger phrase: @vfs-s3-bot please prepare design doc Use when this capability is needed.
基于 SOC 职业分类
正在显示 SKILL.md
| name | debugging-first |
| description | > Use when this capability is needed. |
RULE: Use debugging tools BEFORE examining or modifying code when investigating issues.
When something isn't working, gather evidence FIRST before making changes. Debugging tools give you facts; guessing wastes time.
DO:
# Browser console (via Puppeteer evaluate)
mcp__puppeteer__puppeteer_evaluate({ script: "console.log('checking...')" })
# Server logs
tail -f logs/app.log
# Build output
npm run build 2>&1 | head -50
DO:
# Browser network (via Puppeteer evaluate)
mcp__puppeteer__puppeteer_evaluate({ script: "performance.getEntriesByType('resource')" })
# CLI testing
curl -v [endpoint]
# Check for CORS issues
# Look for preflight failures
DO:
Only AFTER gathering evidence from above:
User: "The login isn't working"
Agent (CORRECT approach):
1. Check console logs for errors
2. Check network tab for API calls
3. Check what error message (if any) is shown
4. Check if user is redirected or stays on page
5. NOW look at the code with context
With debugging evidence in hand:
DON'T:
User: "Login is broken"
Agent: *immediately reads auth code*
Agent: "I see the code, let me refactor the login flow..."
Result: 2 hours wasted, wrong diagnosis, possibly new bugs introduced
User: "Login is broken"
Agent: "Let me check the console and network requests first."
*checks console* -> "401 Unauthorized"
*checks network* -> "Token expired, refresh token request failing"
Agent: "The issue is token refresh failure. The fix is [specific fix]"
Result: 5 minutes, correct diagnosis, targeted fix
Before modifying code to fix a bug:
If any are unchecked, GO BACK and debug first.
When reporting findings, use this format:
**Debugging Evidence:**
- Console: [what you found - exact errors, warnings]
- Network: [what you found - status codes, payloads]
- State: [what you found - values, null checks]
**Root Cause:** [specific cause based on evidence]
**Proposed Fix:** [targeted fix addressing root cause]
**Verification Plan:** [how to confirm the fix works]
Debugging-first does NOT apply when:
Debugging-first DOES apply when:
# Get console messages (via Puppeteer evaluate)
mcp__puppeteer__puppeteer_evaluate({ script: "window.errors || []" })
# Get network requests (via Performance API)
mcp__puppeteer__puppeteer_evaluate({ script: "performance.getEntriesByType('resource')" })
# Take screenshot to see current state
mcp__puppeteer__puppeteer_screenshot({ name: "debug-state" })
# Check server logs
tail -f logs/*.log
# Check process status
ps aux | grep [process]
# Check port bindings
lsof -i :[port]
# Run build with verbose output
npm run build --verbose
# Check TypeScript errors
npx tsc --noEmit
# Check for circular dependencies
npx madge --circular src/
Converted and distributed by TomeVault — claim your Tome and manage your conversions.