agentleFS
theseus-runtheseus-run/theseus/.agents/skills/code-review/SKILL.md

code-review

Skill1 starsChanged 7 months agoMITView on GitHub

Use when reviewing code changes in Theseus, especially to find defects, behavioral regressions, missing tests, weak type modeling, stale compatibility leftovers, and agent-generated implementation artifacts.

188 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use starter, media-processing 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.
  • ww-w-aiSkill

    starter

    Static web development guide for beginners. Covers HTML/CSS/JavaScript and Next.js App Router basics. Project initialization with "init starter". Triggers: static website, portfolio, landing page, HTML CSS, beginner, 정적 웹, 포트폴리오, 초보자, 静的サイト, 初心者, 静态网站, 初学者, sitio web estático, site statique, statische Website, sito web statico Do NOT use for: fullstack apps (use $dynamic), enterprise (use $enterprise).

    Also in 4 projects that use this

  • mrgoonieSkill

    media-processing

    Process multimedia files with FFmpeg (video/audio encoding, conversion, streaming, filtering, hardware acceleration) and ImageMagick (image manipulation, format conversion, batch processing, effects, composition). Use when converting media formats, encoding videos with specific codecs (H.264, H.265, VP9), resizing/cropping images, extracting audio from video, applying filters and effects, optimizing file sizes, creating streaming manifests (HLS/DASH), generating thumbnails, batch processing images, creating composite images, or implementing media processing pipelines. Supports 100+ formats, hardware acceleration (NVENC, QSV), and complex filtergraphs.

    Also in 5 projects that use this

  • loulanyueSkill

    setup-ts-deep-modules

    Wire dependency-cruiser into a TypeScript repo so each package is a deep module — implementation hidden in subfolders, reachable only through its entry-point files. User-invoked.

    Also in 15 projects that use this

  • mrgoonieSkill

    aesthetic

    Create aesthetically beautiful interfaces following proven design principles. Use when building UI/UX, analyzing designs from inspiration sites, generating design images with ai-multimodal, implementing visual hierarchy and color theory, adding micro-interactions, or creating design documentation. Includes workflows for capturing and analyzing inspiration screenshots with chrome-devtools and ai-multimodal, iterative design image generation until aesthetic standards are met, and comprehensive design system guidance covering BEAUTIFUL (aesthetic principles), RIGHT (functionality/accessibility), SATISFYING (micro-interactions), and PEAK (storytelling) stages. Integrates with chrome-devtools, ai-multimodal, media-processing, ui-styling, and web-frameworks skills.

    Also in 4 projects that use this

  • AWSSkill

    ask-matt

    Ask which skill or flow fits your situation. A router over the skills in this repo.

    Also in 32 projects that use this

  • AWSSkill

    resolving-merge-conflicts

    Use when you need to resolve an in-progress git merge/rebase conflict.

    Also in 48 projects that use this

  • +1 more from mrgoonie
  • +2 more from aws

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 175 edited versions we read keep these.

  • 6

    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:

    Use this skill for review-only passes and PR-style feedback.

    line 8
  2. Distinctive:

    Do not rewrite code during a review unless the user asks for fixes.

    line 21
  3. Distinctive:

    Treat the checklist below as review gates, not taste notes.

    line 23
  4. Distinctive:

    Call out these patterns when they appear in changed code:

    line 50
  5. Distinctive:

    Look for missing focused tests around:

    line 99
  6. Very specific:

    Do not ask for broad runtime/server/web E2E tests unless the change is specifically about wiring, transport, or end-to-end assembly.

    line 110
  7. Distinctive:

    Call out broad E2E tests used as the first proof for behavior with a clear isolated owner.

    line 111

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

Code Review

Use this skill for review-only passes and PR-style feedback. Lead with findings.

Review Stance

Prioritize:

  • defects
  • behavioral regressions
  • missing tests
  • public contract or package-boundary risks
  • weak modeling that will make future defects likely
  • stale leftovers from refactors or long agent sessions

Do not rewrite code during a review unless the user asks for fixes. If you find cleanup that may break compatibility or public behavior, report it as a concern.

Treat the checklist below as review gates, not taste notes. If changed code violates one, either file a finding or explicitly explain why the local context makes it acceptable.

Review diagnosis must identify the mechanism, not just the symptom. Prefer:

  • observation: what the diff/code/test shows
  • inference: what mechanism likely produced it
  • prescription: what change removes the mechanism
  • measurement: what check proves the fix

For recurring problems, use the frame: signal, loop, constraint, intervention, measurement.

Finding Format

For each finding, include:

  • priority: P0, P1, P2, or P3
  • confidence: C0, C1, C2, or C3
  • tight file/line reference
  • observation: the concrete evidence
  • mechanism: why it creates risk
  • prescription: what should change
  • measurement: what would verify the fix

Order findings by severity. Keep summaries secondary.

Modeling Review

Call out these patterns when they appear in changed code:

  • closed protocol/domain/state handling implemented as if/else return soup instead of exhaustive Match or switch with a never check
  • fallback/default branches that hide unsupported internal variants
  • boolean matrices that should be discriminated unions or explicit state machines
  • correlated optional fields that permit illegal states
  • raw string IDs crossing package, persistence, tool, RPC, dispatch, or mission boundaries
  • closed sets widened to string when runtime extension is not intended
  • repeated exported _tag object literals that should be named constructors
  • public protocol call sites using as const where a typed constructor would make intent clearer
  • Record<string, unknown> flowing past ingress without schema decoding or a named extension point
  • provider-specific shapes leaking into core/domain contracts
  • ordering that depends on incidental object key order, import order, registration order, or array order
  • public primitive API names that repeat the namespace instead of reading clearly under it, such as Tool.ToolError where Tool.Error would be clearer
  • generic parameter order that drifts from input, output, error, requirements for tool-like APIs

Boundary Review

Check that:

  • external inputs are decoded and normalized once at the boundary
  • internal code receives explicit required data instead of optional/default soup
  • defaults do not creep through multiple layers after boundary normalization
  • absence is not used as an implicit state when an explicit sentinel/domain variant would make semantics clear
  • expected external uncertainty is typed and recoverable
  • violated internal contracts fail loudly instead of becoming generic fallback behavior
  • expected failures stay in the Effect error channel instead of becoming thrown exceptions or defects
  • constructors/builders shape values only; they do not perform I/O, allocate resources, read config, call providers, or start fibers
  • runtime services, clocks, random/id generation, stores, language models, and mutable context come from the Effect environment at execution time
  • runtime data crossing process, tool, dispatch, RPC, or persistence boundaries stays serializable

Structure Review

Call out:

  • large files that mix protocol types, service tags, implementation, persistence, serialization, command routing, and tests
  • utils.ts, helpers.ts, common.ts, giant types.ts, or miscellaneous service bags
  • stale aliases, compatibility wrappers, empty stubs, old/new parallel paths, and accidental re-export layers
  • public barrels containing runtime behavior instead of public surface
  • speculative abstractions with no real boundary, domain concept, or repeated use
  • package imports that point upward into a higher-level package
  • provider-specific code placed outside provider adapters
  • generated dist/ or build output edited by hand
  • comments explaining temporary compatibility or legacy behavior with no explicit accepted follow-up

Test Review

Missing tests are findings, not TODO decorations.

Look for missing focused tests around:

  • new runtime behavior
  • isolated runtime behavior owners with fake Effect layers/services
  • service behavior: registries, stores, parsers, dispatch loops, satellite rings, tool execution boundaries
  • protocol constructors that normalize defaults or enforce invariants
  • boundary adapters that translate external/provider data
  • error-channel behavior and defect behavior
  • cross-package signature or package-export changes
  • package-local assembly where behavior crosses a few services

Do not ask for broad runtime/server/web E2E tests unless the change is specifically about wiring, transport, or end-to-end assembly. Call out broad E2E tests used as the first proof for behavior with a clear isolated owner.

Error Review

Call out:

  • expected domain failures modeled as defects or generic errors
  • defects recovered as if they were normal external uncertainty
  • generic error bags where a narrow tagged error should name the failed invariant or external operation
  • fallback/default branches that silently drop, ignore, or "best effort" internal protocol violations
  • foreign errors converted without stable context, or with secrets/large payloads leaked into diagnostics

Cleanup Review

For substantial edits, also load cleanup-audit.

Separate:

  • Removed: cleanup that is proven non-behavioral
  • Concerns: stale paths or compatibility artifacts that need confirmation before removal

Back compatibility removal is not cleanup unless the user explicitly authorized it.

Documentation Review

For docs changes under docs/, also load docs-management.

Call out:

  • docs treated like a generated site instead of the repo's docs vault
  • current doctrine buried in dated notes or drafts
  • superseded design material deleted instead of archived when it has future value
  • stale links, stale section indexes, or moved notes without navigation updates
  • relative Markdown link rules or local docs conventions violated

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.