agentleFS
zehuichanzehuichan/vibe-harness/skills/self-review/SKILL.md

self-review

Skill3 starsChanged 47 days agoMITView on GitHub

Use when the profile's `vcs.review-flow` is `trunk`, meaning changes land on the default branch without pull-request review, and a task has changed files. Apply it before reporting the change complete, before committing or pushing it, and whenever another skill or the working agreement names a pull-request step the project does not have. Covers the reviewed range, review depth by risk, the fix loop and its stopping rule, the completion report, and the landing checks that stand in for a merge gate.

60 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use novelty-assessment, paper-compilation 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.
  • lingzhi227Skill

    novelty-assessment

    Assess research idea novelty through systematic literature search. Multi-round search-evaluate loops with harsh critic persona. Binary novel/not-novel decision with justification. Use before committing to a research direction.

    Also in 4 projects that use this

  • lingzhi227Skill

    paper-compilation

    Compile LaTeX papers to PDF with automatic error detection, chktex style checking, and citation/reference validation. Runs the full pdflatex + bibtex pipeline. Use when the user wants to compile a paper, fix compilation errors, or debug LaTeX.

    Also in 4 projects that use this

  • michaelboedingSkill

    slide-generation

    Use this skill to create presentation slides from structured content. Triggers: "create slides", "generate presentation", "make powerpoint", "create pptx", "build slides", "presentation from content", "slide deck", "slides for" Outputs: PPTX files, Markdown slides, or HTML presentations. Used by: pitch-deck-agent, market-researcher-agent, and other agents needing slides.

    Also in 4 projects that use this

  • FracteraSkill

    ask-element

    Work skill. The architect wants an element of this node to check or find out something and you to bring the answer («попроси template проверить …», «узнай у auth …»), or wants you to start or close an element's agent yourself. Also when «агент элемента … сообщил, что закончил (надзор …)» wakes you after such a task.

    Also in 3 projects that use this

  • FracteraSkill

    audit-broken-characters

    Scan the whole project for BROKEN / REPLACEMENT characters in localized text — a control byte (e.g. 0x13) or U+FFFD or mojibake left where an accented letter belonged, which renders as a box (e.g. "Documentación" showing "Documentaci□n"). Use when the owner reports a square / wrong glyph in the UI or content, says "broken character", "weird symbol", "mojibake", "validate encoding", or after authoring multilingual content and before closing a content step. It SHIPS SILENTLY (the file still parses), so run the audit to catch it. One project-root script, nothing external needed.

    Also in 3 projects that use this

  • +3 more from lingzhi227
  • +4 more from Fractera

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 50 edited versions we read keep these.

  • 3

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    When the host offers no second context, the independent review has not run.

    line 42
  2. Distinctive:

    A finding left unfixed is reported with its reason,: never dropped.

    line 49
  3. Very specific:

    After the push, watch the CI run for the pushed commit to completion and report its conclusion.

    line 84
  4. Distinctive:

    When the profile's "Hooks and CI" section names no CI, local evidence is the only gate.

    line 87

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

Self-review on a trunk flow

A pull request gives a change a fixed range to review, a reviewer who did not write it, a loop of findings and fixes, a merge gate, and a record. When the profile's vcs.review-flow is trunk, the author supplies each of these, and this skill says how. code-review owns what a review checks and pre-push-checks owns which evidence to run; this skill owns when the review happens, how deep it goes, when it stops, and where its results are recorded.

A change that does go through a pull request follows the pull-request steps as the other skills write them.

Fix the reviewed range

  1. When a task starts, record git rev-parse HEAD as the task base and run git status --short. Paths already modified or untracked then belong to earlier work and stay out of the range. When the task has to edit one of them, its diff mixes both changes; name that path in the report.
  2. The reviewed range is everything the task changed: commits after the task base plus the worktree. List it with git diff --name-status <task-base> and git status --short, read it with git diff <task-base>, and read each untracked file whole, because git diff omits untracked files.
  3. Without a recorded task base (a resumed session, or a review requested afterwards), fetch the remote default branch and review what it lacks: the profile's commands.change-scope against that branch, plus the worktree.

This range stands in for the base and head that code-review and pre-push-checks ask for.

Choose the depth

Review at the highest tier that any path in the range reaches.

TierThe changeReview
LightCopy, comments, documentation, or formatting; no behavior changesRead the diff once against the rules that own it. No findings list is needed.
StandardBehavior changes that the independent tier does not nameA full code-review pass by the author, started after the implementation and its checks are finished
IndependentPersisted data or a migration; authentication, authorization, or secrets; an external contract when the profile enables surfaces.public-api; lifecycle, concurrency, or teardown; an irreversible operation; or behavior the author could not exerciseThe standard pass, then a reviewer that did not write the change

The standard pass

Authors miss the same things in their own work, so check these three before the code-review checks:

  • The request, not the implementation, is the requirement. Reread the user's words. Confirm each requested behavior is present and that nothing unrequested was added.
  • Paths the implementation never ran. For every changed interface, state, and handler, name the branch, mode, or consumer that the implementation's checks did not exercise (the abandoned operation, the other layout, the second caller) and read that path.
  • Claims in the planned report. Each statement that something works, passes, or persists maps to a command that ran after the last edit.

The independent reviewer

When the host can start a subagent or a second session, give it the requirement, the reviewed range, and code-review; withhold the author's reasoning and summary, because a reviewer that reads the author's argument tends to accept the same assumptions. Prefer a different model when the host offers one. Verify each finding against the code before acting on it: a reviewer's report is a lead, not evidence.

When the host offers no second context, the independent review has not run. Say so in the report and name the paths that needed it, so the user can review them or arrange a reviewer.

Fix, then stop

  • Blockers are fixed before the report: wrong or missing required behavior, a lifecycle or security defect, a violated rule in AGENTS.md, the defensive patterns, or an owning Agent Note, and a behavior change with no test that fails on its regression.
  • Simplifications inside the range are applied now: state, options, or abstractions the requirement does not need, and duplication the change introduced.
  • Improvements outside the range are listed, not made. Independent changes stay split; find-simplifications owns a wider survey as its own task.
  • A finding left unfixed is reported with its reason, never dropped.

After the fixes, rerun the evidence they invalidated, selected as pre-push-checks describes, and review the fix diff once. Run a second full pass only when the fixes changed the design: a different owner, interface, or data representation. Passes repeated until nothing is found spend the user's time on nits.

Report

The completion report stands in for the pull-request description and the review thread. It states:

  • what the change does, in the requester's terms;
  • the review tier, and for the independent tier who reviewed or that the review did not run;
  • findings fixed (defect and fix), findings left with their reasons, and out-of-range improvements;
  • the commands run after the last edit with their results, and any required check that did not run;
  • whether the change is committed and pushed.

Findings belong in the report. Comments, documentation, and Agent Notes state the resulting contract or decision, not the review that produced it.

Where pull-request steps go

Other skills and the working agreement are written for both flows. On a trunk flow, read their pull-request steps as follows:

A rule or skill saysOn a trunk flow
State why in the pull request (a deliberate behavior or test change, a raised documentation budget)The commit message body
Verify and fetch the pull-request baseThe reviewed range; before a push, the fetched remote default branch
Place findings inline or reply in the review threadThe completion report
Open a draft pull request, mark it ready, or inspect its checksNo draft exists: report unfinished work as unfinished. Checks run after the push; see Land the change
Attach a screenshot, recording, or GIF to the pull requestKeep the file under .agent-scratch/ and give its path in the report; never commit media
Request a named reviewer or approverAsk the user to arrange it and report the review as pending

Land the change

A push to the default branch is the merge, and CI reports after it instead of before it. The project rules and the request decide when to commit and push; when they do:

  1. Finish the self-review for every commit being pushed.
  2. Select evidence with pre-push-checks, taking the commits the fetched remote default branch lacks as the outgoing range, and run any command the project rules require before a push.
  3. After the push, watch the CI run for the pushed commit to completion and report its conclusion; report a pending run as pending. For example, when vcs.pr-cli is gh: gh run list --commit <sha>, then gh run watch <run-id> --exit-status.
  4. A failed run on the default branch comes before other work. Fix forward when the cause is known and small; otherwise revert with a new commit. Do not repair it by rewriting commits the remote default branch already has: other clones, tags, and deployed revisions point at them.

When the profile's "Hooks and CI" section names no CI, local evidence is the only gate; say so in the report.

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.