planning-bugfix
Skill5 starsChanged 16 days agoMITView on GitHub
Planning skill for bug fixes - includes optional changelog update
In this repository50 other files it gives its agents.
- analyze-pr-commentsSkill
- architecture-analyzeSkill
- architecture-tradeoffSkill
- askSkill
- code-smellsSkill
- debugging-rocprof-sysSkill
- exploration-explore-codeSkill
- git-commitSkill
- git-gh-clientSkill
- git-prepare-pull-requestSkill
- git-pull-request-statusSkill
- gitSkill
- grill-meSkill
- library-amd-smiSkill
- notify-meSkill
- planning-architectureSkill
- planning-baseSkill
- planning-docsSkill
- planning-featureSkill
- planning-refactorSkill
- programming-cmake-best-practicesSkill
- programming-cpp-constexprSkill
- programming-cpp-design-patternsSkill
- programming-cpp-naming-rulesSkill
- programming-cpp-policy-based-diSkill
- programming-cppSkill
- programming-cpp-stl-algorithmsSkill
- programming-pythonSkill
- pr-review-interactiveSkill
- pr-reviewSkill
- radisha-create-skillSkill
- radisha-helpSkill
- radisha-improve-skillSkill
- radisha-skillsSkill
- radisha-updateSkill
- refactoring-techniquesSkill
- review-architectureSkill
- rocprofsys-buildSkill
- rocprofsys-configureSkill
- rocprofsysSkill
- static-analysisSkill
- testing-gtest-gmockSkill
- testing-pytestSkill
- testing-testplanSkill
- therock-build-to-commitSkill
- therock-commit-in-buildSkill
- therock-first-build-with-commitSkill
- update-pr-descriptionSkill
- verify-pmc-metricsSkill
- watchSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
14 rules. About 0 are common, 13 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈13
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 8
Use this skill when fixing bugs, errors, or unexpected behavior.
- Distinctive: line 13
Follow all base planning rules, plus the bugfix-specific rules below.
- Distinctive: line 20
Before proposing fixes, identify:
- Distinctive: line 25
When was it introduced?: - If known, helps understand context
- Distinctive: line 29
After analysis, ASK the user:
- Distinctive: line 37
If yes, include changelog entry:
- Distinctive: line 48
After COMPLETING the bugfix:
- Distinctive: line 52
Document how the fix was verified
- Distinctive: line 63
Create a test that specifically reproduces the bug scenario
- Distinctive: line 64
Verify the test would have failed before the fix
- Distinctive: line 65
Wait for user approval of the test
- Distinctive: line 66
Update test plan file with test status
- Distinctive: line 70
After tests (if any), ASK the user:
- Very specific: line 74
If yes, invoke git-create-pull-request skill and create PR with:
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Bugfix Planning
Use this skill when fixing bugs, errors, or unexpected behavior.
<IMPORTANT>
**Prerequisites:** Invoke `planning-base` skill first if not already loaded. It provides the core planning phases (0-5).Follow all base planning rules, plus the bugfix-specific rules below.
</IMPORTANT>
Bugfix-Specific Requirements
Root Cause Analysis
Before proposing fixes, identify:
- What is the bug? - Exact symptoms and error messages
- Where does it occur? - Specific file, function, line
- Why does it happen? - Root cause, not just symptoms
- When was it introduced? - If known, helps understand context
Changelog Consideration
After analysis, ASK the user:
"Should this bugfix be added to the changelog?
- Yes: If it's a user-facing bug that affected functionality
- No: If it's an internal fix or minor issue
Add to changelog? (yes/no)"
If yes, include changelog entry:
## Changelog Entry
### Fixed
- <Brief description of what was broken and how it's fixed>Test Plan
After COMPLETING the bugfix:
- Create test plan file:
planning/testplan-<bugfix-name>.md - Invoke
testing-testplanskill for the template - Document how the fix was verified
- Include regression check for related functionality
Regression Prevention
Then ASK the user:
"Bugfix is complete. Would you like me to add a regression test to prevent this bug from recurring?"
If user agrees:
- Invoke the testing skill:
testing-gtest-gmock(C++) ortesting-pytest(Python) - Create a test that specifically reproduces the bug scenario
- Verify the test would have failed before the fix
- Wait for user approval of the test
- Update test plan file with test status
Pull Request
After tests (if any), ASK the user:
"Ready to create a Pull Request. Should I proceed?"
If yes, invoke git-create-pull-request skill and create PR with:
- Motivation - What bug was fixed and its impact
- Technical Details - Root cause and fix
- Test Plan - Regression test that prevents recurrence
Plan File Format
Save to planning/bugfix-<name>.md:
# Bugfix: <Bug Description>
## Problem
<What is broken, error messages, symptoms>
## Root Cause
<Why the bug occurs>
## Analysis
<Affected files, related code, risks of fix>
## Tasks
- [ ] Task 1
- [ ] Task 2
- [ ] Verify fix works
## Changelog
<Entry if requested, or "Not added to changelog">
## Regression Test
<Test description if requested, or "No regression test">
## Notes
<Any additional context>Example
User request: "Fix login timeout - users getting logged out after 5 minutes"
Planning output:
# Bugfix: Premature Session Timeout
## Problem
Users are being logged out after 5 minutes instead of the expected 30 minutes.
Error: "Session expired" toast appears unexpectedly.
## Root Cause
Token refresh interval was set to 5 minutes (300000ms) but the condition
checked for token age > 5 minutes, causing immediate refresh failure loop.
## Analysis
- File: src/auth/tokenService.ts, line 45
- The refresh check uses `>` instead of `>=`, causing edge case failure
- Risk: Low - isolated fix in token handling
## Tasks
- [ ] Fix comparison operator in tokenService.ts
- [ ] Verify token refresh works correctly
- [ ] Update CHANGELOG.md
## Changelog
### Fixed
- Session timeout now correctly respects 30-minute duration
## Regression Test
- [ ] Unit: Token refresh timing edge cases
## Notes
- Also found: TOKEN_REFRESH_INTERVAL constant should be moved to configDoes it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

