agentleFS
paureispaureis/pau-skills/skills/planning/lazy-senior/SKILL.md

lazy-senior

Skill2 starsChanged 7 days agoMITView on GitHub

Writes the smallest complete change: asks if it needs to exist, then reuses the codebase, standard library or an installed dependency. Reviews a diff or repo for bugs first, bloat last, and lists shortcut comments. Use when the user says 'write the simplest version', 'this is over-engineered', 'review for bloat' or 'what can I delete'.

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

9 rules. About 0 are common, 1 is distinctive, and 8 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 8

    Very specific

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

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

    Read ${CLAUDE_SKILL_DIR}/RULES.md, then ${CLAUDE_SKILL_DIR}/BUILD.md, which explains each rule.

    line 28
  2. Very specific:

    Read ${CLAUDE_SKILL_DIR}/REVIEW.md.

    line 34
  3. Very specific:

    Run node "${CLAUDE_SKILL_DIR}/debt.mjs" [folder] (Node 20 or later.

    line 40
  4. Very specific:

    Read the rows, the ones tagged [no-trigger] first: they name a limit but no point at which to revisit it, so nobody ever will.

    line 44
  5. Distinctive:

    Write a ledger file only when the user asks for one.

    line 46
  6. Very specific:

    Use engineering-principles if it is installed, for its principle "Subtract before you add" when the change starts in a tangled area.

    line 70
  7. Very specific:

    Use tdd if it is installed for the test step of a build.

    line 72
  8. Very specific:

    After a review or an audit, offer to run review-triage if it is installed, to decide which findings to fix.

    line 74
  9. Very specific:

    When a finding needs a deeper refactor than one change, offer to run improve-codebase-architecture if it is installed.

    line 76

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

Lazy senior

Asked for: $ARGUMENTS

Solve the whole problem with the least new code, and review code the same way: bugs first, bloat last. Pick the mode from the request. A request to write, fix or refactor code is build; a request about code that exists is review (a change) or audit (a folder or the whole repository); a request for the list of known limits is debt.

ModeWhenThen
Buildthe user asks for code: a feature, a fix, a refactor, "the simplest version"Read ${CLAUDE_SKILL_DIR}/RULES.md, then ${CLAUDE_SKILL_DIR}/BUILD.md
Reviewa diff, a branch, a pull request or named files; "is this over-engineered"Read ${CLAUDE_SKILL_DIR}/REVIEW.md
Audita folder or the whole repository; "what can I delete", "review for bloat"Read ${CLAUDE_SKILL_DIR}/REVIEW.md
Debtthe user wants the list of shortcut: comments, the known limits left in the codeRun ${CLAUDE_SKILL_DIR}/debt.mjs

Build

Read ${CLAUDE_SKILL_DIR}/RULES.md, then ${CLAUDE_SKILL_DIR}/BUILD.md, which explains each rule. They apply to the change the user asked for, not to the rest of the session: when that change is done, work as before. Worked before-and-after pairs are in ${CLAUDE_SKILL_DIR}/EXAMPLES.md.

Review and audit

Read ${CLAUDE_SKILL_DIR}/REVIEW.md. A review covers a change: the diff, a branch, a pull request or the files the user names; with nothing named, the uncommitted changes, or the last commit when there are none. An audit covers a folder or the whole repository; with nothing named, the whole repository. Both write a report and change no code.

Debt

  1. Run node "${CLAUDE_SKILL_DIR}/debt.mjs" [folder] (Node 20 or later; the folder defaults to the current one). It reads the files git lists, tracked and untracked but not ignored, and prints one row per marker, then a count. Without Node, run git grep --untracked -n "shortcut:" (tracked and untracked files, not ignored ones) and keep only the hits that sit in a comment.
  2. Read the rows, the ones tagged [no-trigger] first: they name a limit but no point at which to revisit it, so nobody ever will. For each, say what the limit is and propose a trigger, or say that the limit no longer holds.
  3. Write a ledger file only when the user asks for one.

The marker form is shortcut: <the limit>, <when to upgrade>, in the language's own comment syntax: # shortcut: in Python, Ruby or shell, // shortcut: in Go, Rust, Java or TypeScript, -- shortcut: in SQL or Lua, and <!-- shortcut: ... --> in HTML or Markdown. The script counts a marker only right after a comment opener, so prose and inline code that mention the convention stay out. Known limits:

  • A string that holds a space and then an opener, such as 'a -- shortcut: b', is counted, and so is a heredoc or a triple-quoted string with a comment opener inside.
  • UTF-16 files (their ASCII characters carry NUL bytes) and file names that are not valid UTF-8 are skipped.
  • A file over 64 MiB is skipped, with one warning line on stderr.

For another marker word, such as TODO or HACK, search by hand with the project's search tool (git grep -n, or rg -n, which skips ignored files), and leave out what git ignores.

The hook

The lazy-senior hook comes with the planning plugin and with pau-skills-hooks (and the pau-skills bundle), not with this skill installed on its own. When it is installed, it adds the text of RULES.md to every session and every subagent, so the build rules apply without starting this skill. Turn it off with "hooks": {"lazy-senior": false} in .claude/pau-skills.json. The skill works the same without the hook.

Other skills

  • Use engineering-principles if it is installed, for its principle "Subtract before you add" when the change starts in a tangled area; without it, BUILD.md covers the part this skill needs.
  • Use tdd if it is installed for the test step of a build; without it, write the one small test BUILD.md asks for first, watch it fail, then write the code.
  • After a review or an audit, offer to run review-triage if it is installed, to decide which findings to fix; without it, the user picks by number.
  • When a finding needs a deeper refactor than one change, offer to run improve-codebase-architecture if it is installed; without it, list the finding as its own piece of work.

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.