agentleFS
amirrezaalastiamirrezaalasti/codescribe/skills/coding/tagged-code-comments/SKILL.md

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.

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
  1. Distinctive:

    Not a substitute for a PR description.

    line 26
  2. Very specific:

    Always include (P0)–(P3) on actionable tags.

    line 63
  3. Very specific:

    Default emoji follows the table.

    line 84
  4. Distinctive:

    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 90
  5. Very specific:

    Never invent free-form TODO/FIXME: Always use emoji + TAG(Pn): message.

    line 91
  6. Distinctive:

    Do not spam P3: Prefer actionable P0–P2 unless the user asks for a full annotation pass.

    line 95
  7. Very specific:

    Owners/tickets preferred: when the repo uses issues: β€” #123 or β€” @handle.

    line 96
  8. Distinctive:

    Before saying work is done, the agent must:

    line 102
  9. Distinctive:

    Ensure every incomplete/risky spot introduced or left behind has a tagged comment.

    line 105
  10. Distinctive:

    If there are any P0 items, say clearly: not merge-ready until fixed or explicitly accepted.

    line 120
  11. Very specific:

    If there are no open actionable tags, say so in one line: Open follow-ups: none.

    line 121
  12. Distinctive:

    When the user asks to β€œmark priorities” / β€œtag this file/diff”:

    line 142
  13. Distinctive:

    Add tagged comments only at the relevant line/block.

    line 145

β‰ˆ β€œ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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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

PriorityEmoji cueMeaningWhen to use
P0πŸ”΄Blocker β€” must fix or explicitly accept before merge/shipCorrectness, data loss, security on the path being touched
P1🟠High β€” fix soon; call out in the wrap-upEdge bugs, missing validation, hot-path debt, missing tests for new behavior
P2🟑Medium β€” plan itCleanup, incomplete UX, known limitation
P3🟒Low β€” nice to haveMicro-opts, optional polish
(none)πŸ”΅InformationalInvariants, non-actionable context

Always include (P0)–(P3) on actionable tags. Omit priority on pure NOTE / WHY.

Tag vocabulary

TagEmojiType of change / intent
FIXMEπŸ”΄ defaultBroken or incorrect behavior to fix
TODO🟠 defaultPlanned 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:

  1. 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.
  2. Never invent free-form TODO/FIXME. Always use emoji + TAG(Pn): message.
  3. One concern per comment. Specific message. Bad: // TODO: fix later. Good: // 🟠 TODO(P1): handle 429 with retry-after from API.
  4. HACK / MIGRATE need an exit. Version, ticket, or date that removes them.
  5. Remove resolved markers in the same change when you fix the issue.
  6. Do not spam P3. Prefer actionable P0–P2 unless the user asks for a full annotation pass.
  7. Owners/tickets preferred when the repo uses issues: β€” #123 or β€” @handle.
  8. Never put secrets in comments.
  9. 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:

  1. Scan the touched files (and summarize any pre-existing open tags in the same paths).
  2. Ensure every incomplete/risky spot introduced or left behind has a tagged comment.
  3. 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
  1. If there are any P0 items, say clearly: not merge-ready until fixed or explicitly accepted.
  2. 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

LanguageLineBlock
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”:

  1. Scan for bugs, security, missing tests, hacks, and unclear WHY.
  2. Add tagged comments only at the relevant line/block.
  3. 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 TODO for production-breaking bugs (use FIXME/SECURITY)
  • Leaving REVIEW on main without a ticket
  • Changing behavior silently while only updating a comment

Additional resources

  • references/cheatsheet.md
  • references/examples.md

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.