agentleFS
mauriciovieiramauriciovieira/groundwork/skills/code-review/SKILL.md

code-review

Skill0 starsChanged 4 months agoMITView on GitHub

Use when the user asks for a review of the current diff, branch, or recent changes in a repo that uses groundwork. Reviews the diff since a fixed point using two independent workers - a Standards axis and a Spec axis - so neither pollutes the other's context, then merges both reports.

194 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use close-spec, design-with-images 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.
  • dzhngSkill

    close-spec

    When a spec under specs/<feature>/ is done shipping (a write-spec build, or any planned task that produced a spec), archive it to specs/done/ and rewrite it from a build-plan into a durable rationale — the why, the principles, the invariants — pointing back to the real code for the how. Use when implementation has landed and the plan no longer matches what shipped, or the user says a feature/spec is finished. Pairs with [write-spec](../write-spec/SKILL.md) (the plan this closes) and [review](../review/SKILL.md) (run before closing).

    Also in 5 projects that use this

  • dzhngSkill

    design-with-images

    Explore UI and visual design with image generation, then iterate the real implementation against the user-selected concept. Use when brainstorming visual directions, offering mockup variants, or implementing an approved generated design; do not stop at the mockups or the first code approximation.

    Also in 5 projects that use this

  • PydanticSkill

    add-new-model

    Add support for a newly-released language or image generation model in pydantic-ai (e.g. openai:gpt-5.6, anthropic:claude-sonnet-5, openai:gpt-image-2). Use when a provider ships a new model id and you need to wire literals, profile flags, adapters, and tests to recognize it. Handles SDK-lag, gateway list conventions, capability probing, and direct image-model geometry.

    Also in 9 projects that use this

  • transitive-bullshitSkill

    compare-screenshots

    Compare screenshots against the intended design, distinguishing approved references from historical baselines. Use for iterative implementation matching, before/after visual review, objective image telemetry, or checking a lone capture for flat, empty, or badly framed content.

    Also in 5 projects that use this

  • Microsoft AzureSkill

    azsdk-common-apiview-feedback-resolution

    Analyze and resolve APIView review feedback on Azure SDK PRs. **UTILITY SKILL**. USE FOR: APIView comments, API review feedback, SDK API surface changes. DO NOT USE FOR: general code review, non-APIView feedback. INVOKES: azure-sdk-mcp:azsdk_apiview_get_comments, azure-sdk-mcp:azsdk_customized_code_update, azure-sdk-mcp:azsdk_typespec_delegate_apiview_feedback, azure-sdk-mcp:azsdk_run_typespec_validation, azure-sdk-mcp:azsdk_package_generate_code.

    Also in 6 projects that use this

  • Microsoft AzureSkill

    azsdk-common-generate-sdk-locally

    Generate and finalize Azure SDKs locally from TypeSpec, including build, checks, tests, changelog, metadata, and version updates by default. WHEN: "generate SDK locally", "build SDK", "run SDK tests", "run CI checks", "validate package", "run checks", "update changelog", "fix SDK build errors", "resolve SDK generation errors", "customize TypeSpec", "rename SDK client", "rename SDK model", "hide operation from SDK", "fix analyzer errors", "resolve customization drift", "create subclient", "update metadata", "update version". INVOKES: azsdk_verify_setup, azsdk_package_generate_code, azsdk_package_build_code, azsdk_package_run_check, azsdk_package_run_tests, azsdk_customized_code_update, azsdk_package_update_changelog_content, azsdk_package_update_metadata, azsdk_package_update_version.

    Also in 6 projects that use this

  • +4 more from dzhng
  • +2 more from Azure

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 184 edited versions we read keep these.

  • 1

    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. Very specific:

    Read docs/groundwork/config.json if it exists.

    line 13
  2. Distinctive:

    If there are none, skip step 4 entirely.

    line 31

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

groundwork:code-review

Two independent reviews, run in parallel so neither agent's findings bias the other's, then merged into one report - with a third worker arbitrating only where the two axes contradict each other.

0. Preconditions

Read docs/groundwork/config.json if it exists. This skill needs only one thing from it, judges.model, and works fine without it - do not bootstrap a config just to run a review.

1. Determine the diff

Figure out the fixed point to diff against: an argument if one was given (a commit, branch, or tag), otherwise the merge-base with the feature's target branch, or ask if it's genuinely ambiguous. Confirm the range before dispatching anything.

2. Run both reviewers as independent workers

Run groundwork:standards-reviewer and groundwork:spec-reviewer as two independent workers, each in its own context, each given the diff (or the ref range to diff themselves) and, for the spec reviewer, the feature slug and the issue/slice this diff claims to close. Start both before waiting on either.

The isolation is the point here, not the speed - neither axis may see the other's findings. If this runtime has no worker primitive, run them one after the other, each from a clean reading of its own brief, and say so once. Never collapse the two axes into a single combined review; that destroys the independence they exist for. See ../_runtime/RUNTIMES.md.

3. Look for contradictions

Read both reports and find the places where the two axes do not merely differ but conflict: one says the code must be a certain way and the other says that same thing is wrong. The usual shape is an accepted ADR mandating an approach that the standards baseline reads as a smell.

Two findings on the same line for unrelated reasons are not a conflict. Neither is one axis being silent where the other spoke. A conflict needs both axes to have an opinion about the same thing and for those opinions to be incompatible.

If there are none, skip step 4 entirely. Most reviews have none, and manufacturing one to have something to arbitrate is worse than having no arbiter at all.

4. Arbitrate the contradictions

For each real conflict, run the groundwork:review-judge worker with both findings, the code in question, and the ADR or standard each side is citing. If config.json carries a judges.model value, dispatch the judge on that tier explicitly; otherwise the agent's own default stands. Either way it must not be the tier the two reviewers ran on. Neither reviewer arbitrates its own finding - that is the whole reason this step is a separate worker rather than a judgement call in the merge.

The judge returns which side holds and why, or reports that the conflict is real and unresolvable at this level, which usually means an accepted ADR and the coding standards genuinely contradict each other and a person has to fix one of them. Say that plainly rather than picking a winner to look decisive.

5. Merge the reports

Combine both agents' findings into a single report, grouped by file, most-severe first across both axes. Don't just concatenate the two reports - if both agents flagged the same location for different reasons, present it once with both concerns noted. Attribute each finding to its axis (Standards or Spec) so the user can tell which kind of problem it is.

Where the judge ruled, show the ruling with the finding it settled, including the side that lost. A reader who cannot see what was overruled cannot disagree with it.

6. Present

Show the merged report. Do not apply fixes automatically unless the user asks - this is a review, not an auto-fix pass.

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.