agentleFS
AhmedTmorganAhmedTmorgan/crew/skills/bugs/SKILL.md

bugs

Skill1 starsChanged 3 months agoMITView on GitHub

Keep the project's single problem journal (BUGS.md): record every problem a session hits (bugs, failed approaches, surprising behaviour, CI and deploy failures), its root cause, how it was solved, what is still unsolved, and security issues that need a human. Use whenever you find or fix a problem, when a crew run finishes a step, when the Stop hook asks for it, or when the user asks "إيه المشاكل اللي قابلتنا", "what's still open", or "log this".

  • Reads credentials

2 other projects use a version of this.

Adopted by

Most recently taken up by

  • tw93/Kakutheir own version, first seen Oct 8, 2026
  • tw93/Moletheir own version, first seen Oct 8, 2026
  • Other versions2 projects use a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 2

    1. tw93/Mole★ 77ksame name
    2. tw93/Kaku★ 6.3ksame name

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

  • In this repository16 other files it gives its agents.

The file

We split this skill into the rules it gives an agent

7 rules. About 0 are common, 2 are distinctive, and 5 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    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:

    Always go through the script.

    line 17
  2. Distinctive:

    Don't record routine work that went fine, or style nits.

    line 40
  3. Very specific:

    Search first (find). If the problem is already there, update that entry instead.

    line 44
  4. Very specific:

    Write problem as observable symptoms and cause as the actual mechanism, not "it was broken".

    line 81
  5. Very specific:

    When you fix an existing entry, set status, fix, and commit.

    line 82
  6. Very specific:

    Commit BUGS.md together with the change it describes when you can.

    line 84
  7. Very specific:

    After a merge from other branches, run node "$B" check --fix.

    line 85

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

The problem journal

Each project has one journal file (BUGS.md at the repo root, or bugsFile in .crew/config.json), however big the project is. It is the project's memory of what went wrong. The next session reads it before touching the same area. Keep it truthful and current.

Always go through the script. It assigns ids, files each entry under its category, and regenerates the summary of open items at the top:

B="${CLAUDE_PLUGIN_ROOT}/scripts/bugs.mjs"
node "$B" summary              # what is open, security first
node "$B" find "webhook"       # search before adding: no duplicates
node "$B" list --category security --status all
node "$B" show BUG-0012

What to record

Record anything the next person working here would want to know:

  • A bug you found, even if you fixed it in the same session. The root cause is the valuable part.
  • An approach that failed and why (a library, a config, a query plan), so nobody retries it blind.
  • Surprising behaviour of the platform, provider, or framework that cost time.
  • A CI, build, migration, or deploy failure and what fixed it.
  • A security issue: missing auth or isolation checks, exposed secrets, unvalidated input, injection, dependency CVEs, risky permissions. Always log these, fixed or not.
  • A workaround or tech debt that is knowingly left in place.

Don't record routine work that went fine, or style nits.

Adding an entry

Search first (find). If the problem is already there, update that entry instead. Then write the entry as JSON in a temp file (quoting stays safe on every shell) and add it:

{
  "title": "Telegram webhook accepted unsigned requests",
  "category": "security",
  "severity": "high",
  "status": "fixed",
  "phase": "channels v2",
  "where": "src/app/api/webhooks/telegram/[tenant]/route.ts",
  "problem": "Requests without the secret-token header were processed.",
  "cause": "The header check ran only when TELEGRAM_SECRET was set; it is unset in preview.",
  "fix": "Reject when the header is missing or wrong, in every environment.",
  "commit": "a1b2c3d",
  "remaining": "Old bots registered without a secret must be re-registered.",
  "by": "crew:feature / review (gpt-6-astra)"
}
node "$B" add --from "$TMP/bug.json"                                   # prints the new id
node "$B" update BUG-0012 --status fixed --fix "…" --commit a1b2c3d    # small updates work as flags
  • category: security · data (database & migrations) · auth · backend · frontend · integrations · performance · build (tooling & CI) · deploy · tests · other
  • severity: critical · high · medium · low
  • status: open · in-progress · mitigated (risk reduced but not solved) · fixed · wontfix
  • by: who found it (session, role, model). phase: feature, phase, or task slug.

Rules

  • No secrets, tokens, passwords, keys, or customer data. Ever. Point to where they live ("the value in .env.local", "the tenant's conversation table") instead. The journal is committed.
  • Security entries that need a human decision stay open with a clear remaining line saying what decision is needed. Say it to the user in the same turn, too.
  • Write problem as observable symptoms and cause as the actual mechanism, not "it was broken".
  • When you fix an existing entry, set status, fix, and commit. Never delete entries. The history is the point.
  • Commit BUGS.md together with the change it describes when you can.
  • After a merge from other branches, run node "$B" check --fix. It renumbers colliding ids and refreshes the summary.

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.