agentleFS
mo-cmykmo-cmyk/mazarbul/.claude/skills/critique/SKILL.md

critique

Skill2 starsChanged 35 days agoApache-2.0View on GitHub

Self-review of your own branch diff with clean eyes (forked Explore subagent). USE WHEN /go-strict requests a critique pass, you finished implementing >50 LoC, before opening a PR, or when user says 'critique this' or 'review my own diff'. Diffs main..HEAD, audits across 4 dimensions (correctness, simplicity, Mazarbul-specifics, test coverage), produces a punch list with file:line + suggested fix. NOT a substitute for /pr-review (which reviews OTHER PRs).

82 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use delight, teach-impeccable and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • HK-hubSkill

    delight

    Add moments of joy, personality, and unexpected touches that make interfaces memorable and enjoyable to use. Elevates functional to delightful. Use when the user asks to add polish, personality, animations, micro-interactions, delight, or make an interface feel fun or memorable.

    Also in 33 projects that use this

  • HK-hubSkill

    teach-impeccable

    One-time setup that gathers design context for your project and saves it to your AI config file. Run once to establish persistent design guidelines.

    Also in 20 projects that use this

  • zwy123zwySkill

    normalize

    将用户随意输入的提示词规范化为结构清晰、便于大模型执行的标准化提示词。适用于需要整理、统一提示词格式时调用。

    Also in 19 projects that use this

  • owshq-mecSkill

    layout

    Improve layout, spacing, and visual rhythm. Fixes monotonous grids, inconsistent spacing, and weak visual hierarchy. Use when the user mentions layout feeling off, spacing issues, visual hierarchy, crowded UI, alignment problems, or wanting better composition.

    Also in 8 projects that use this

  • +8 more from HK-hub

The file

We split this skill into the rules it gives an agent

6 rules. 0 are common, 3 are distinctive, and 3 are very specific to this project.

  • 0

    Common

    Most of the 74 edited versions we read keep these.

  • 3

    Distinctive

    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:

    After implementing a feature (>50 LoC), before /preflight or /ship

    line 14
  2. Distinctive:

    When you're about to ship and want a sanity check

    line 16
  3. Distinctive:

    When the user asks "critique this" / "find the holes" / "what did I miss?"

    line 17
  4. Distinctive:

    If the branch hasn't diverged from main (no commits, only working-tree changes), use git diff HEAD.

    line 28
  5. Very specific:

    Do tests use the canonical naming pattern (per scripts/check-test-names.sh)?

    line 58
  6. Very specific:

    Run lint or tests (that's /verify)

    line 85

“Common” is measured: kept by at least 6 in 10 of the 74 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

/critique , Self-review of own diff

Critiquing your own code with the same model that wrote it leaks implementation bias. This skill runs in a forked Explore subagent context (context: fork) , fresh eyes, no memory of why you made each choice.

When to invoke

  • After implementing a feature (>50 LoC), before /preflight or /ship
  • Inside the /go-strict auto-iteration loop
  • When you're about to ship and want a sanity check
  • When the user asks "critique this" / "find the holes" / "what did I miss?"

How it runs

Step 1 , Read the diff

git diff main..HEAD
git log main..HEAD --oneline

If the branch hasn't diverged from main (no commits, only working-tree changes), use git diff HEAD.

Step 2 , Four-dimension audit

For each changed file, ask:

1. Correctness

  • Does the code do what the commit message / PR description claims?
  • Are error paths handled, or only the happy path?
  • Are there off-by-ones, nil pointers, race conditions?
  • Are panics possible? Should they be?
  • Are types tight (no interface{} / any smuggling)?

2. Simplicity

  • Could 2 layers of abstraction be 1? (Karpathy principle 2)
  • Are there single-use helpers that should be inlined?
  • Are options structs with default-only fields hiding a 2-arg function?
  • Is anything speculative , handling a case that can't happen?

3. Mazarbul-specific invariants

  • Event log is append-only, no UPDATE or DELETE on event rows.
  • Provenance populated on every event (source, confidence, timestamp).
  • Scope enforcement on every read path that surfaces user data.
  • No proto, types are Go structs with json: tags; schemas are JSON Schema.
  • Timestamps: UTC time.Time, JSON RFC 3339, never *_at.
  • TUI colors via internal/tui/style.Theme only, never raw hex.

4. Test coverage

  • Is there a test for the failing case (the one that motivated the change)?
  • Are integration tests using testcontainers, not mocks of DB?
  • Do tests use the canonical naming pattern (per scripts/check-test-names.sh)?
  • Has go test -race -short been run on changed packages?

Step 3 , Produce a punch list

Markdown table with file:line, issue, and concrete suggested fix:

File:Line                          | Dimension     | Issue                                              | Fix
internal/mcp/tools/relate.go:142    | Mazarbul      | New tool field uses createdAt, not createTime       | Rename per AIP-142
internal/kernel/dispatcher.go:88    | Simplicity    | unused options struct field RetryCount             | Inline default , remove struct
internal/cli/log.go:33              | Correctness   | Formats timestamps in local tz, not UTC             | Use .UTC() before formatting
internal/sync/reducer.go:215        | Coverage      | supersede path has no test; convergence is critical | Add table-driven test

Group by severity:

  • MUST FIX , compliance, correctness, security
  • SHOULD FIX , simplicity, readability
  • NICE TO HAVE , style, naming

Step 4 , Report back

The critique is read-only. Return the punch list to the calling context. The caller (Claude in main context, or /go-strict) decides which findings to act on.

What this skill deliberately does NOT do

  • Modify code (read-only audit)
  • Run lint or tests (that's /verify)
  • Block the agent from continuing , outputs guidance only
  • Repeat findings that lint or mise run ci already caught (focus on judgment-level issues)
  • Pretend to be neutral when the diff is genuinely clean , say so

Gotchas

  • context: fork means no shared state with caller , pass diff info explicitly via the prompt, not via globals.
  • Don't over-critique tiny diffs , for <30 LoC patches, a 4-dimension audit is overkill. Say "diff is too small to critique meaningfully" and exit.
  • MUST FIX should be RARE , if you're flagging 5+ "must fix" items per skill invocation, the bar is too low. Reserve for compliance/correctness only.
  • Mazarbul-specific issues are highest-value , generic JS/Go advice can be found in any linter. Focus on rules that lint can't catch (event-log append-only invariant, provenance on every fact, scope boundaries, AIP naming).

Pairs well with

  • /go-strict , invokes /critique between /verify and /dead
  • /preflight , runs critique implicitly via golangci-lint + test suite
  • /pr-review , for OTHER people's PRs; this skill is for YOUR OWN

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.