agentleFS
MagicJoshMagicJosh/ras/skills/debt/SKILL.md

debt

Skill1 starsChanged 9 days agoMITView on GitHub

Use when the user types /debt to list the deliberate shortcuts in the code. Collects every shortcut comment into one ledger and changes nothing.

4 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

5 rules. 0 are common, 1 is distinctive, and 4 are very specific to this project.

  • 0

    Common

    Most of the 4 edited versions we read keep these.

  • 1

    Distinctive

    This author's own choices. Worth a look.

  • 4

    Very specific

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

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

    Search the project with the Grep tool, with line numbers, for this pattern: (#|//|/\*|--|;)\s*shortcut:.

    line 13
  2. Very specific:

    Write one line per hit, grouped by file: <file>:<line> <what is simplified>.

    line 14
  3. Very specific:

    Add no-trigger to a line when its comment names no upgrade trigger.

    line 15
  4. Distinctive:

    Read only. Change no file.

    line 20
  5. Very specific:

    If the user names another marker, such as /debt TODO, search for that word instead.

    line 22

“Common” is measured: kept by at least 6 in 10 of the 4 edited versions of this file we could read. “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

Debt

A deliberate shortcut carries a comment like shortcut: <limit>, upgrade when <trigger>, for example # shortcut: loads every row into memory, upgrade when a file passes 100 MB. This skill collects those comments, so that no shortcut stays forever by accident.

Steps

  1. Search the project with the Grep tool, with line numbers, for this pattern: (#|//|/\*|--|;)\s*shortcut:. The Grep tool skips the files that git ignores.
  2. Write one line per hit, grouped by file: <file>:<line> <what is simplified>. Limit: <the limit>. Upgrade: <trigger>.
  3. Add no-trigger to a line when its comment names no upgrade trigger.
  4. End with <N> shortcuts, <M> with no trigger. When there are no hits, say No shortcuts found.

Rules

  • Read only. Change no file. Write the ledger to a file only when the user asks.
  • Skip a hit that is not a deferral, such as text about a keyboard shortcut.
  • If the user names another marker, such as /debt TODO, search for that word instead.

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.