.claude/skills/d-execute/SKILL.md
Execute bug fix plan. Creates ./.gtd/debug/current/FIX_SUMMARY.md
npx skillsauth add Hoang604/get-thing-done d-executeInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Core responsibilities:
Flow: Load Plan → Execute Tasks (Apply Code Standards) → Verify → Summarize </objective>
<context> **Required files:**./.gtd/debug/current/FIX_PLAN.md — Must existOutput:
./.gtd/debug/current/FIX_SUMMARY.md<standards_and_constraints>
<execution_philosophy>
Execute one task fully before moving to the next.
After each task, check its done criteria. Don't proceed if verification fails.
Implement exactly what the plan specifies. No more, no less. If you think the plan is wrong:
<code_principles> Mantra: "Code is not an asset; it is a liability. Every line must earn its place."
| Zone | Trust Level | Action | | ------------------------------ | ----------- | --------------------- | | Edge (API, user input, DB) | ZERO trust | Validate everything | | Core (internal logic) | HIGH trust | Skip redundant checks |
Empty catch blocks are forbidden.
Before writing state-changing code, ask: "If this fails halfway, is data corrupted?"
finally for cleanupEvery number, string, or value must have a name.
</code_principles>
<deviation_policy> | Situation | Action | | -------------------------- | ------------------------ | | Small bug found | Auto-fix | | Missing dependency | Install, note in summary | | Unclear requirement | STOP, ask user | | Scope beyond fix | STOP, ask user | </deviation_policy>
<prohibitions> - **NEVER** deviate from plan silently - **NEVER** swallow errors (no empty catch blocks) - **NEVER** use `any` type (unless absolutely unavoidable) - **NEVER** implement without reading dependencies first - **NEVER** scatter retry logic </prohibitions> </standards_and_constraints> <process>Bash:
if ! test -f "./.gtd/debug/current/FIX_PLAN.md"; then
echo "Error: No fix plan exists"
exit 1
fi
Read ./.gtd/debug/current/FIX_PLAN.md.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
GTD:DEBUG ► EXECUTING FIX
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Root Cause: {brief summary}
Tasks:
[ ] 1. {task 1 name}
[ ] 2. {task 2 name}
─────────────────────────────────────────────────────
Loop through each task in FIX_PLAN.md:
► Task {N}: {name}
Files: {files}
Before calling any existing function/library:
Implement the task using <code_principles>.
any).Check the task's <done> criteria.
If verified:
✓ Task {N} complete
If not verified:
Note any work done outside the plan (additional bugs fixed, extra measures) for the Summary.
After all tasks, check plan's success criteria:
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
GTD:DEBUG ► VERIFYING FIX
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
[✓] Original symptom no longer occurs
[✓] {criterion 2}
If any fail: Attempt to fix or ask user.
Follow the reproduction steps from ./.gtd/debug/current/SYMPTOM.md to verify the bug is actually fixed.
Document the result:
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
GTD:DEBUG ► REPRODUCTION TEST
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Following original reproduction steps...
Result: {Bug no longer occurs / Issue resolved}
Write to ./.gtd/debug/current/FIX_SUMMARY.md:
# Bug Fix Summary
**Status:** Fixed
**Executed:** {date}
## Bug Summary
**Symptom:** {Brief description of symptom}
**Root Cause:** {Brief description of root cause}
## What Was Done
{Narrative summary of the fix implementation}
## Behaviour
**Before:** {System behaviour with the bug}
**After:** {System behaviour after fix}
## Tasks Completed
1. ✓ {task 1 name}
- {what was implemented}
- Files: {files changed}
2. ✓ {task 2 name}
...
## Deviations
{List any work done outside the plan, or "None"}
## Verification
- [x] Original symptom no longer reproduces
- [x] {success criterion 2}
- [x] {success criterion 3}
## Files Changed
- `{file 1}` — {what changed}
## Proposed Commit Message
fix({scope}): {short description of bug fix}
{Longer description of what was fixed and why}
Root cause: {brief root cause description}
- {change 1}
- {change 2}
</process>
<offer_next>
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
GTD:DEBUG ► BUG FIXED ✓
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Fix summary written to: ./.gtd/debug/current/FIX_SUMMARY.md
Tasks: {X}/{X} complete
Files changed: {count}
─────────────────────────────────────────────────────
▶ Next Steps
1. Review the fix summary
2. Run additional tests if needed
3. Commit using the proposed message
─────────────────────────────────────────────────────
</offer_next>
<forced_stop> STOP. The workflow is complete. Do NOT automatically run the next command. Wait for the user. </forced_stop>
testing
manual trigger by user, do not auto invoke
tools
manual trigger by user, do not auto invoke
development
Trace execution paths and document how code actually behaves. Use when you need to understand how features work, walk through code flows, explain component behavior, trace where data comes from, understand relationships between components, or audit for orphaned events and dead code.
testing
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision docs, or similar structured content. This workflow helps users efficiently transfer context, refine content through iteration, and verify the doc works for readers. Trigger when user mentions writing docs, creating proposals, drafting specs, or similar documentation tasks.