agentleFS
tranhieutttranhieutt/software_development_department/.claude/skills/annotate/SKILL.md

annotate

Skill72 starsChanged 7 months agoMITView on GitHub

You are adding a persistent annotation to the project's learned knowledge base. Annotations survive across sessions and auto-load when working with relevant services. Arguments: $ARGUMENTS — format: <service> <description of gotcha/caveat> Extract from $ARGUMENTS: - Service/Library: The specific service, library, or area (e.g., stripe, next.js, postgresql) - Annotation text: The gotcha, caveat, or learned lesson If $ARGUMENTS is empty or unclear, ask: "What service/library does this apply to, and what did you discover?" Format the annotation as: Good example: Bad…

2 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

7 rules. About 0 are common, 4 are distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈4

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    If $ARGUMENTS is empty or unclear, ask:

    line 27
  2. Distinctive:

    If no matching section exists, create one:

    line 64
  3. Very specific:

    If the section exists and has *(no annotations yet)*, replace that line with the entry.

    line 72
  4. Distinctive:

    If the section exists with entries, append the new entry below the last one.

    line 73
  5. Distinctive:

    Never: write vague entries like "be careful with X" — always explain WHY

    line 96
  6. Very specific:

    Mark: if issue is version-specific: (affects v2.x, fixed in v3.0)

    line 100
  7. Distinctive:

    Proactively: add annotations when you:

    line 108

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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

/annotate — Persist a Learned Lesson

You are adding a persistent annotation to the project's learned knowledge base. Annotations survive across sessions and auto-load when working with relevant services.

Arguments: $ARGUMENTS — format: <service> <description of gotcha/caveat>


Phase 1 — Parse the Annotation

Extract from $ARGUMENTS:

  • Service/Library: The specific service, library, or area (e.g., stripe, next.js, postgresql)
  • Annotation text: The gotcha, caveat, or learned lesson

If $ARGUMENTS is empty or unclear, ask:

"What service/library does this apply to, and what did you discover?"


Phase 2 — Format the Entry

Format the annotation as:

- [YYYY-MM-DD] <clear, specific description of the issue> — <workaround if applicable>

Good example:

- [2026-04-07] Stripe webhook signature verification requires raw body buffer, not parsed JSON. 
  Pass rawBody to stripe.webhooks.constructEvent() instead of req.body

Bad example:

- Stripe webhooks broken  ← too vague, no date, no solution

Apply this quality check before writing:

  • ✅ Specific enough to be actionable without additional research?
  • ✅ Includes the date?
  • ✅ Includes workaround if one exists?
  • ✅ Would a new developer understand this without context?

Phase 3 — Find or Create the Section

Read .claude/memory/annotations.md.

  1. Find the existing section that matches the service (case-insensitive)
  2. If no matching section exists, create one:
## <Service Name>

- [YYYY-MM-DD] <your annotation>
  1. If the section exists and has *(no annotations yet)*, replace that line with the entry.
  2. If the section exists with entries, append the new entry below the last one.

Phase 4 — Write and Confirm

Edit .claude/memory/annotations.md with the new entry.

Then confirm:

✅ Annotation saved to .claude/memory/annotations.md

Service: <service>
Entry: [YYYY-MM-DD] <annotation text>

This will auto-load in future sessions when working with <service>.

Annotation Quality Rules

  • Never write vague entries like "be careful with X" — always explain WHY
  • Always include the date (use current date: 2026-04-07)
  • Always include the workaround if you found one
  • Prefer short entries (1-2 lines) — link to docs if more context needed
  • Mark if issue is version-specific: (affects v2.x, fixed in v3.0)
  • Group related gotchas under the same service header

When Agents Should Use This Automatically

You do NOT need to wait for /annotate to be called explicitly. Proactively add annotations when you:

  1. Spend more than 10 minutes debugging an unexpected API or library behavior
  2. Find that official docs are wrong, incomplete, or misleading
  3. Discover a version incompatibility not mentioned in release notes
  4. Work around a bug with a non-obvious solution
  5. Find that a library's "default" behavior causes problems in this project's setup

Pattern from Context Hub: The value compounds over time. Each annotation means the NEXT session starts smarter — not from zero.

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.