agentleFS
gilsmtgilsmt/skills/.agents/skills/of-course/SKILL.md

of-course

Skill2 starsChanged 9 days agoMITView on GitHub

Finds high-value obvious-in-hindsight fixes by hunting inconsistency and missed reuse. Use when reviewing a codebase for small surgical quality-of-life improvements, aligning divergent sibling paths, or when the user asks for "of course" improvements.

The file

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈7

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Read before hunting. Establish what the code claims to do:

    line 29
  2. Distinctive:

    Read the documented examples, README, and comments in the area.

    line 31
  3. Distinctive:

    Read both the suspect function and its siblings/callers — never snippets alone.

    line 32
  4. Distinctive:

    Search in this order. Prefer grep/glob and parallel subagents over reading at random.

    line 37
  5. Distinctive:

    Must be explainable in one sentence that makes the reader think "oh, obviously."

    line 59
  6. Distinctive:

    Write the regression test before the fix, watch it fail, apply the fix, watch it pass.

    line 64
  7. Distinctive:

    Run the repo's gate: lint, type-check, affected tests.

    line 65

≈ “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

Of Course

Find the single smallest change that, once seen, feels obvious — a quality-of-life fix that aligns code with how it clearly already intends to behave.

This is not a feature skill. This is not a refactor skill. If the fix needs a new abstraction, it is the wrong fix — keep looking.

When to Use

  • User asks for "of course" improvements, quick wins, or obvious cleanups.
  • Reviewing unfamiliar code for inconsistency before changing it.
  • A helper, constant, or pattern exists but is unevenly applied.

Do Not Use For

  • New features, behavior changes, or API redesigns.
  • Large refactors or structural reorganization.
  • Introducing a new utility, abstraction, or dependency. Reuse what exists.

Workflow

1. Map intent

Read before hunting. Establish what the code claims to do:

  • Read the documented examples, README, and comments in the area.
  • Read both the suspect function and its siblings/callers — never snippets alone.
  • Note the "smart path" if one exists: the helper, constant, or branch that already handles the concept correctly.

2. Hunt inconsistency and missed reuse

Search in this order. Prefer grep/glob and parallel subagents over reading at random.

  1. Divergent sibling paths. Find two places that should behave identically but don't. Tell: function A handles a concept the smart way, and function B — often one A calls into — handles it the naive way (dedicated parser vs. raw conversion, validated vs. unvalidated branch).
  2. Existing machinery unused where it should be. Inventory helpers, utilities, constants, and patterns already in the repo. Find the spot that reimplements one badly or skips it. The best fix applies something already there and adds no new abstraction.
  3. Behavior that contradicts user intent. Find cases where reasonable, even documented, usage silently does the wrong thing (e.g. string "false" treated as truthy). The gap between what a user obviously meant and what the code does is where these fixes live.

Rank candidates by: obviousness once seen > smallness of diff > confidence in safety. Keep only the single best.

3. Prove the best candidate

Ground every claim in code actually read. Cite file:line for:

  • The correct path (X does it this way).
  • The divergent path (Y should match but does it that way).
  • The existing helper/constant to reuse, with its definition site.

Then write a minimal reproduction showing wrong behavior vs. correct expected behavior side by side. Do not proceed without one.

4. Fix surgically

  • Smallest diff that removes the inconsistency. Prefer 1–5 lines.
  • Reuse the existing helper/constant/pattern. No new abstraction, no new dependency.
  • Must be explainable in one sentence that makes the reader think "oh, obviously."

5. Validate safety and lock it down

  • Confirm existing/correct inputs behave exactly as before — only the mishandled case changes.
  • Write the regression test before the fix, watch it fail, apply the fix, watch it pass.
  • Run the repo's gate: lint, type-check, affected tests.

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.