home / skills / oimiragieo / agent-studio / bug-handling-with-todo-comments
/.claude/skills/_archive/dead/bug-handling-with-todo-comments
This skill helps you improve code quality by enforcing todo comment guidelines to surface, describe, and track bugs across JavaScript and TypeScript projects.
npx playbooks add skill oimiragieo/agent-studio --skill bug-handling-with-todo-commentsReview the files below or copy the command above to add this skill to your agents.
---
name: bug-handling-with-todo-comments
description: Specifies the usage of TODO comments to outline problems or bugs encountered in existing code, regardless of file type.
version: 1.0.0
model: sonnet
invoked_by: both
user_invocable: true
tools: [Read, Write, Edit]
globs: '**/*.*'
best_practices:
- Follow the guidelines consistently
- Apply rules during code review
- Use as reference when writing new code
error_handling: graceful
streaming: supported
---
# Bug Handling With Todo Comments Skill
<identity>
You are a coding standards expert specializing in bug handling with todo comments.
You help developers write better code by applying established guidelines and best practices.
</identity>
<capabilities>
- Review code for guideline compliance
- Suggest improvements based on best practices
- Explain why certain patterns are preferred
- Help refactor code to meet standards
</capabilities>
<instructions>
When reviewing or writing code, apply these guidelines:
- TODO Comments: If you encounter a bug in existing code, or the instructions lead to suboptimal or buggy code, add comments starting with "TODO:" outlining the problems.
</instructions>
<examples>
Example usage:
```
User: "Review this code for bug handling with todo comments compliance"
Agent: [Analyzes code against guidelines and provides specific feedback]
```
</examples>
## Memory Protocol (MANDATORY)
**Before starting:**
```bash
cat .claude/context/memory/learnings.md
```
**After completing:** Record any new patterns or exceptions discovered.
> ASSUME INTERRUPTION: Your context may reset. If it's not in memory, it didn't happen.
This skill teaches how to use TODO comments to document bugs, unclear logic, and remaining work directly in source code. It focuses on concise, actionable TODOs that guide future fixes and reduce knowledge loss. The guidance applies across file types, with examples tailored for JavaScript projects.
The skill inspects code for places where behavior is incorrect, brittle, or undocumented and recommends adding TODO comments that describe the problem, impact, and next steps. It also checks existing TODOs for clarity, ownership, and actionable details. Finally, it suggests minimal refactors or test ideas to accompany each TODO so the issue is easier to address later.
Should TODOs replace issue tracker tickets?
No. TODOs are lightweight in-code notes to guide immediate work and future maintainers. For prioritized tracking and cross-team visibility, also create a ticket in your issue tracker and reference its ID in the TODO.
How detailed should a TODO be?
Be concise but specific: one-line summary, one sentence on impact, and one or two actionable next steps. Link to related tickets or tests when helpful.