suriyel/longtaskforagent/long-task-hotfix
Claude Code and agent skill by suriyel/longtaskforagent
- community
Checking that the SKILL.md file is still in the repository.
Use when bugfix-request.json exists - validate, reproduce, root-cause, and enqueue a user-reported bug as a category=bugfix feature, then chain to Worker for TDD fix
Install
npx vskill@latest install suriyel/longtaskforagent/long-task-hotfixSKILL.md
<EXTREMELY-IMPORTANT> You are using the long-task-hotfix skill. This skill handles bugs found during user manual testing.
Your job is ONLY: validate → reproduce → root cause → enqueue → chain to Worker. The actual fix (TDD, quality gates, ST, review) is handled by the Worker pipeline — do NOT implement fixes here. </EXTREMELY-IMPORTANT>
Step 1: Announce
Print: "I'm using the long-task-hotfix skill. Processing bugfix-request.json."
Use TodoWrite to track your progress through the 8 steps.
Step 2: Validate Signal File
Run:
If validation fails:
- Print the errors clearly
AskUserQuestionasking the user to fix the file- Re-validate after the user responds
- Do NOT proceed until validation passes
Step 3: Orient
Read these files in order:
bugfix-request.json— understand title, description, severity, feature_id, reproduction stepsfeature-list.json— find the linked feature (iffeature_idnon-null), readtech_stack,quality_gates; determine next available featureidlong-task-guide.md— environment activation commandsenv-guide.md(if exists) — service start/stop commandstask-progress.md## Current Statesection — recent session historygit log --oneline -10— recent commit context
If feature_id is non-null: read the linked feature's entry from feature-list.json to understand context (its ui field, existing srs_trace, st_case_path).
Step 4: Reproduce
Goal: Confirm the bug is reproducible before any analysis.
- Activate environment per
long-task-guide.md - If services are needed (determined from
env-guide.mdorlong-task-guide.md): start them usingenv-guide.mdStart commands; capture first 30 lines of startup output; record PIDs intask-progress.md - Follow
reproduction_stepsfrombugfix-request.jsonexactly - Run the existing test suite; note any currently failing tests
- Record: exact command run, exact output observed, confirmation that bug manifests
HARD GATE — Cannot Reproduce: If the bug cannot be reproduced:
- Record the attempt in
task-progress.md - Stop all services started in this step (use
env-guide.mdStop commands) - Do NOT delete
bugfix-request.json AskUserQuestionasking for clarification (more detailed steps, specific environment, sample data)- Stop here until reproduction is confirmed
Step 5: Root Cause Analysis
Execute the 4-phase systematic debugging process from skills/long-task-work/references/systematic-debugging.md:
Phase 1 — Root Cause Investigation: collect full error evidence, find minimal reproduction, check recent git changes, trace data flow from entry point to failure.
Phase 2 — Pattern Analysis: find similar working code paths, compare contexts, check dependency versions and config values.
Phase 3 — Hypothesis & Testing: form ONE specific testable hypothesis; make ONE minimal diagnostic change to confirm or disprove it; if wrong, return to Phase 1.
Phase 4 — Confirmed Root Cause: arrive at a single confirmed root cause statement.
Required output: "Root cause: [one-sentence statement]"
Iron Law: NO FEATURE ENTRY before root cause is confirmed. If you cannot confirm root cause after 3 Phase 3 iterations, AskUserQuestion to ask the user for more context.
Step 6: Enqueue as Bugfix Feature
Add a new feature entry to feature-list.json. Determine the next available id (max existing id + 1).
New feature object:
Notes:
dependencies: set to[fixed_feature_id]if non-null (ensures Worker processes the original feature before this fix); set to[]if nullui: iffeature_idis non-null, use the linked feature'suifield; otherwisefalsewave: use the current maximum wave id fromfeature-list.json'swavesarray- ATS hint: if
fixed_feature_idis non-null and ATS doc exists (docs/plans/*-ats.md), look up the linked feature's requirement in the ATS mapping table. Setsrs_traceto include the linked feature's requirement IDs so downstream feature-st can derive the required test cases from SRS acceptance criteria
After adding, validate:
Fix any validation errors before continuing.
Step 7: Update task-progress.md
Append a hotfix session entry after the current ## Current State content:
Also update the ## Current State header to reflect the new failing feature.
Step 8: Finalize
- Stop any services started in Step 4 using
env-guide.mdStop commands; verify stopped - Delete
bugfix-request.json(this is the final irreversible action — only after Steps 6 and 7 are complete andvalidate_features.pyhas passed) - Print:
`` Bug #<id> enqueued as category=bugfix feature. Title: Fix: <title> Severity: <severity> Root cause: <one sentence> Worker will handle: TDD → Quality → ST → Review ``
- Chain to:
long-task:long-task-work
Critical Rules
- Validate signal file before any action — validator must pass before Step 3
- Must reproduce before analyzing — "Cannot Reproduce" is a valid documented outcome; do NOT skip to root cause on an unreproduced bug
- Root cause confirmed before enqueuing — systematic debugging 4-phase process is mandatory; no guess-and-enqueue
- Signal file deleted LAST — deletion is the final irreversible action;
validate_features.pymust pass first - If both `bugfix-request.json` AND `increment-request.json` exist: process this hotfix fully first; do NOT delete
increment-request.json; it will be processed in the next session - Stop all services before chaining to Worker — services started during reproduction must be stopped; Worker manages its own service lifecycle
- This skill does NOT implement the fix — Worker owns TDD/Quality/ST/Review; this skill only validates, diagnoses, and enqueues
- No ad-hoc code edits here — do not write tests or fix code during this skill; that is Worker's job
Red Flags
These thoughts mean STOP — you're rationalizing:
| Thought | Reality | |
|---|---|---|
| "I can see the bug in the code, let me just fix it" | Root cause 4-phase first; then enqueue; Worker fixes | |
| "I know the root cause, skipping Phase 1-3" | All 4 phases are mandatory; documenting them protects against wrong assumptions | |
| "Can't reproduce but I know the cause" | Cannot Reproduce = stop; document in task-progress.md; ask user | |
| "I'll skip the feature-list.json entry, fix it directly" | Every fix must be traceable in feature-list.json as category=bugfix | |
| "Signal file has errors but the intent is clear" | Validator must pass; ask user to fix the file | |
| "I'll delete the signal file first, then clean up" | Signal file deletion is the LAST step after everything is verified | |
| "The fix is simple, Worker pipeline is overkill" | Worker ensures regression tests, coverage, ST cases, and review — all required |
Integration
This skill is invoked by the using-long-task router when bugfix-request.json exists in the project root (highest priority — above increment). After this skill completes:
bugfix-request.jsonis deleted- A new
category: "bugfix"feature is infeature-list.jsonwithstatus: "failing" - The router's next detection:
feature-list.jsonexists with failing features →long-task-work - Worker picks up the bugfix feature and runs the full TDD → Quality → ST → Review pipeline
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/long-task-hotfix/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/suriyel/longtaskforagent/long-task-hotfix)