tagged-code-comments
Skill2 starsChanged 4 months agoMITView on GitHub
Global coding hygiene: every incomplete path, risk, workaround, or follow-up MUST be marked with emoji + tag + priority (π΄ FIXME(P0), π TODO(P1), β¦) so developers are forced to review open items before shipping. Use whenever writing, editing, reviewing, debugging, or finishing code in any language; when leaving TODOs/FIXMEs; when work is partial; or when the user asks for tagged, prioritized, or emoji comments. Default for all Codescribe coding work.
In this repository24 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- code-reviewSkill
- debuggingSkill
- javascript-best-practicesSkill
- nextjs-app-routerSkill
- nextjs-data-fetchingSkill
- python-best-practicesSkill
- python-testingSkill
- react-best-practicesSkill
- typescript-best-practicesSkill
- create-skillSkill
- revise-skillSkill
- academic-paperSkill
- latex-scientific-writingSkill
- paper-abstractSkill
- paper-conclusionSkill
- paper-discussionSkill
- paper-introductionSkill
- paper-literature-reviewSkill
- paper-methodsSkill
- paper-peer-reviewSkill
- paper-related-workSkill
- paper-resultsSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
13 rules. About 0 are common, 8 are distinctive, and 5 are very specific to this project.
β0
Common Β· estimate
Many files like this have a rule of this kind.
β8
Distinctive Β· estimate
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 26
Not a substitute for a PR description.
- Very specific: line 63
Always include (P0)β(P3) on actionable tags.
- Very specific: line 84
Default emoji follows the table.
- Distinctive: line 90
Never leave silent debt: If you skip a check, leave a stub, hardcode, omit tests, or ship a workaround β add a tagged comment at the exact β¦
- Very specific: line 91
Never invent free-form TODO/FIXME: Always use emoji + TAG(Pn): message.
- Distinctive: line 95
Do not spam P3: Prefer actionable P0βP2 unless the user asks for a full annotation pass.
- Very specific: line 96
Owners/tickets preferred: when the repo uses issues: β #123 or β @handle.
- Distinctive: line 102
Before saying work is done, the agent must:
- Distinctive: line 105
Ensure every incomplete/risky spot introduced or left behind has a tagged comment.
- Distinctive: line 120
If there are any P0 items, say clearly: not merge-ready until fixed or explicitly accepted.
- Very specific: line 121
If there are no open actionable tags, say so in one line: Open follow-ups: none.
- Distinctive: line 142
When the user asks to βmark prioritiesβ / βtag this file/diffβ:
- Distinctive: line 145
Add tagged comments only at the relevant line/block.
β βCommonβ is an estimate: at least 1 in 5 of the 213,895 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
Tagged Code Comments (global gate)
Goal
This is the default comment convention for all coding work. Agents must leave greppable, prioritized markers in source whenever something is unfinished, risky, or non-obvious β then surface those markers so the developer must check them before treating the work as done.
Not a substitute for a PR description. Not optional style polish.
Canonical format
<comment-syntax> <emoji> <TAG[(priority)]>: <message>[ β <owner|ticket>]Examples:
// π΄ FIXME(P0): null check missing for session before write β #412
// π TODO(P1): extract rate limiter into shared middleware
// π‘ HACK(P2): works around upstream SDK bug until v3.2
// π΅ NOTE: invariant β callers must pass sorted ids
// π’ PERF(P3): N+1 query here; fine under 100 rows# π΄ SECURITY(P0): user input reaches SQL without parameterization
# π£ REFACTOR(P2): split this 200-line function after the feature lands{/* π‘ UX(P2): empty state copy is placeholder */}Priority scale
| Priority | Emoji cue | Meaning | When to use |
| P0 | π΄ | Blocker β must fix or explicitly accept before merge/ship | Correctness, data loss, security on the path being touched |
| P1 | π | High β fix soon; call out in the wrap-up | Edge bugs, missing validation, hot-path debt, missing tests for new behavior |
| P2 | π‘ | Medium β plan it | Cleanup, incomplete UX, known limitation |
| P3 | π’ | Low β nice to have | Micro-opts, optional polish |
| (none) | π΅ | Informational | Invariants, non-actionable context |
Always include (P0)β(P3) on actionable tags. Omit priority on pure NOTE / WHY.
Tag vocabulary
| Tag | Emoji | Type of change / intent |
FIXME | π΄ default | Broken or incorrect behavior to fix |
TODO | π default | Planned work not done yet |
HACK | π‘ | Intentional ugly workaround; explain why and exit condition |
SECURITY | π΄ | Auth, injection, secrets, trust-boundary issue |
BUG | π΄ | Confirmed defect (prefer FIXME if fixing in-tree) |
PERF | π’ | Performance concern or planned optimization |
REFACTOR | π£ | Structure/design cleanup without behavior change |
UX | π‘ | Product/UI copy or interaction debt |
TEST | π | Missing or weak coverage for this path |
API | π | Public contract change needed / deprecated usage |
MIGRATE | π | Temporary bridge during a migration |
NOTE | π΅ | Context for readers; not a task |
WHY | π΅ | Non-obvious rationale (prefer over clever silence) |
REVIEW | π£ | Question for the developer/reviewer (resolve or ticket before merge) |
Default emoji follows the table; if priority and tag disagree, priority emoji wins (e.g. PERF(P0) β π΄).
Mandatory agent rules (global)
Apply on every coding change, in any language, unless the user explicitly disables it:
- Never leave silent debt. If you skip a check, leave a stub, hardcode, omit tests, or ship a workaround β add a tagged comment at the exact line/block.
- Never invent free-form TODO/FIXME. Always use
emoji + TAG(Pn): message. - One concern per comment. Specific message. Bad:
// TODO: fix later. Good:// π TODO(P1): handle 429 with retry-after from API. HACK/MIGRATEneed an exit. Version, ticket, or date that removes them.- Remove resolved markers in the same change when you fix the issue.
- Do not spam P3. Prefer actionable P0βP2 unless the user asks for a full annotation pass.
- Owners/tickets preferred when the repo uses issues:
β #123orβ @handle. - Never put secrets in comments.
- Prefer chat/PR comments for feedback on someone elseβs untouched code; use in-code tags when the marker must travel with the code.
Developer gate (force a check)
Before saying work is done, the agent must:
- Scan the touched files (and summarize any pre-existing open tags in the same paths).
- Ensure every incomplete/risky spot introduced or left behind has a tagged comment.
- End the reply with an Open follow-ups table the developer must acknowledge:
### Open follow-ups (check before ship)
| Pri | Tag | Location | Message |
| --- | --- | --- | --- |
| P0 | SECURITY | `src/api.ts:42` | β¦ |
| P1 | TODO | `src/api.ts:88` | β¦ |
- [ ] Developer reviewed P0/P1 (fix or accept risk)
- [ ] No untagged stubs / hardcoded shortcuts remain- If there are any P0 items, say clearly: not merge-ready until fixed or explicitly accepted.
- If there are no open actionable tags, say so in one line:
Open follow-ups: none.
This gate is what forces the human to look β do not bury tags only in source.
Language comment syntax
| Language | Line | Block |
| JS/TS | // β¦ | /* β¦ */ |
| Python | # β¦ | N/A (or docstrings for NOTE/WHY only) |
| Go | // β¦ | /* β¦ */ |
| Java/Kotlin/C# | // β¦ | /* β¦ */ |
| CSS | /* β¦ */ | |
| HTML / JSX | {/* β¦ */} or <!-- β¦ --> | |
| SQL | -- β¦ | /* β¦ */ |
| Shell | # β¦ |
Match the fileβs existing comment style. If the repo already documents a convention, map their tags to this vocabulary.
Bulk annotation pass
When the user asks to βmark prioritiesβ / βtag this file/diffβ:
- Scan for bugs, security, missing tests, hacks, and unclear WHY.
- Add tagged comments only at the relevant line/block.
- Return the Open follow-ups table (same gate as above).
Grepping
rg -n 'π΄|π |π‘|π’|π£|π΅|(FIXME|TODO|HACK|SECURITY|PERF|REFACTOR|TEST|UX|API|MIGRATE)\(P[0-3]\)'Anti-patterns
- Shipping incomplete work with no tag and no gate table
- Emoji-only comments with no tag (
// π΄ oops) - Priority without a message
- Using
TODOfor production-breaking bugs (useFIXME/SECURITY) - Leaving
REVIEWon main without a ticket - Changing behavior silently while only updating a comment
Additional resources
- references/cheatsheet.md
- references/examples.md
Does 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.

