agentleFS
stdinstdin/buy-vs-build/skills/buy-vs-build-review/SKILL.md

buy-vs-build-review

Skill3 starsChanged 6 months agoMITView on GitHub

Use when reviewing a code diff, pull request, or local changes for buy-vs-build mistakes, avoidable custom code, unnecessary dependencies, missed built-ins, missed platform features, or weak decision notes.

The file

We split this skill into the rules it gives an agent

1 rule. About 0 are common, 1 is distinctive, and 0 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.

  • 0

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    If there are no issues, say so and list any residual dependency or ownership risks.

    line 35

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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

Buy vs Build Review

Review the diff for ownership choices, not just correctness. Prefer findings that reduce risk, code, dependencies, or vendor lock-in without weakening safety.

Workflow

  1. Inspect changed files and dependency manifests.
  2. Flag custom code that a built-in, native platform feature, already-installed dependency, mature open source package, or commercial service should replace.
  3. Flag new dependencies or services that duplicate built-ins, installed packages, or tiny clear code.
  4. Check that the choice was implemented well, not just chosen well. The right rung integrated badly is still a finding: a wrapper that re-does the work the dependency already does, an SSE/WebSocket/queue added without handling its real failure modes (reconnect, retry, backpressure, idempotency), or a "reuse" that grew more glue code than it removed. Confirm the change actually cut code, failure modes, and operating burden.
  5. Preserve safety boundaries: validation, security, privacy, accessibility, observability, and explicit requirements.
  6. Judge the decision note as the reviewable artifact. Where the diff makes a non-obvious or hard-to-reverse choice, the note (in the PR body or a docs/decisions/ ADR) should name the distinguishing requirement, the rejected option, and a revisit trigger. A missing or vague note is itself a finding — it is often the most valuable thing in the change, because it is what makes the tradeoff reviewable later.
  7. Report findings first, ordered by severity, with file references when possible.

Output

Use this shape:

Findings
- [severity] file:line - Issue. Better option: <rung>. Tradeoff: <why>.

Integration
- [severity] file:line - Right option, but: <unused capability / unhandled failure mode / glue code that outweighs the reuse>.

Decision gaps
- Missing or vague decision note for <choice> — name the distinguishing requirement, rejected option, and revisit trigger.

If there are no issues, say so and list any residual dependency or ownership risks.

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.