agentleFS
devnomad-bytedevnomad-byte/techneering/skills/inspect/SKILL.md

inspect

Skill13 starsChanged 5 months agoMITView on GitHub

Use after tn:audit passes, when completing major features, or before merging — dispatches a global cross-task code review covering consistency, architecture, and security (distinct from tn:assemble's per-task review)

10 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 8 edited versions we read keep these.

  • 3

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  • could be automatic: a setting could enforce it
  1. Very specific:

    Use the merge-base of the change, not HEAD~1 (a change often spans many commits, so HEAD~1 misses everything but the last):

    line 34
  2. Distinctive:

    Never skip review for any reason

    line 138
  3. Distinctive:

    Never blindly accept all feedback — verify each point independently

    line 139
  4. Distinctive:

    Never merge without review approval

    line 140
  5. Very specific:

    Use merge-base, not HEAD~1, so the review covers the entire change

    line 141

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

Global Review

Dispatch a code-reviewer subagent to review the whole change as one body of work, not task-by-task. Where tn:assemble reviewed each task in isolation (spec compliance + code quality), inspect catches problems that only surface when you look at the change end-to-end: cross-task consistency, architectural integrity, and security.

Core Principle

REVIEW THE WHOLE, NOT THE PARTS.
Each task passed review alone — but do they fit together?
The reviewer is a safety net, not a rubber stamp.

Why inspect ≠ assemble's per-task review

tn:assemble reviewtn:inspect
Scopeone taskthe entire change, all tasks together
Questionsdid this task match its spec?do the tasks fit? is the whole sound?
Catchesper-task defectsemergent issues: inconsistency, arch drift, security holes

Inspect is not a re-run of assemble's reviews. It looks at what those reviews could not see — the gaps between tasks.

Steps

Phase 1: Request Review

Step 1: Get Git SHAs

Use the merge-base of the change, not HEAD~1 (a change often spans many commits, so HEAD~1 misses everything but the last):

BASE_SHA=$(git merge-base HEAD origin/main)  # whole change from branch point
HEAD_SHA=$(git rev-parse HEAD)

Step 2: Dispatch Code-Reviewer Subagent

Dispatch a reviewer subagent using the template at ./code-reviewer-prompt.md. The template is host-neutral — see its header for how to dispatch on Claude Code (Agent tool) vs Codex (subagent). Fill the placeholders, then send the full prompt block to the reviewer.

Placeholders to fill:

  • WHAT_WAS_IMPLEMENTED — What the whole change built (the proposal's "what")
  • PLAN_OR_REQUIREMENTS — Reference proposal.md + the full tasks.md (all tasks, not one)
  • BASE_SHA — Merge-base of the change
  • HEAD_SHA — Current HEAD
  • DESCRIPTION — Brief summary of the change as a whole
  • CODING_CONVENTIONS — From techneering/config.yaml coding_conventions section (if exists)
  • QUALITY_STANDARDS — From techneering/config.yaml quality_standards section (if exists)

Step 3: Receive Feedback

The reviewer returns:

  • Strengths: What was done well
  • Issues: Critical / Important / Minor
  • Assessment: Approved / Needs fixes

Phase 2: Process Feedback

The Response Pattern:

WHEN receiving code review feedback:

1. READ: Complete feedback without reacting
2. UNDERSTAND: Restate requirement in own words (or ask)
3. VERIFY: Check against codebase reality
4. EVALUATE: Technically sound for THIS codebase?
5. RESPOND: Technical acknowledgment or reasoned pushback
6. IMPLEMENT: One item at a time, test each

Forbidden Responses:

  • "You're absolutely right!" / "Great point!" / "Excellent feedback!"
  • "Let me implement that now" (before verification)
  • Agreeing without understanding the issue

Correct Responses:

  • Restate the technical requirement
  • Ask clarifying questions
  • Push back with technical reasoning if wrong
  • Just start working (actions > words)

Step 4: Act on Feedback

  • Fix Critical issues immediately
  • Fix Important issues before proceeding
  • Note Minor issues for later
  • Push back if reviewer is wrong (with reasoning)

Red Flags

ThoughtReality
"assemble already reviewed each task"Per-task review can't see cross-task gaps — that's inspect's whole point
"Review passed, can skip it"Review is a quality gate, not a formality
"The reviewer is always right"The reviewer may lack full context — must verify independently
"Merge directly without review"Unreviewed code is a source of technical debt
"Fix Critical issues later"Critical = must fix immediately, no exceptions
"Feedback too long, won't read"Every item must be read, understood, verified, responded to

Common Rationalizations

ExcuseReality
"assemble's reviews covered it"assemble reviewed each task alone; inspect reviews the assembled whole
"Tight deadline, skip review"Time saved by skipping returns doubled in bug costs
"Just a small change, no review needed"Small changes introduce big bugs all the time
"Already ran tests"Tests verify behavior, review verifies design and integration

Quick Reference

DimensionKey point
ScopeThe whole change (merge-base → HEAD), not one task
FocusCross-task consistency · architecture · security
Difference from assembleassemble = per-task; inspect = whole-change
Two phasesRequest review → receive and process feedback
Feedback levelsCritical (must fix) / Important (should fix) / Minor (optional)
Processing patternread → understand → verify → evaluate → respond → implement
Push back allowedBreaks functionality / lacks context / YAGNI / technically wrong

Next Step

When done:

  • Review passed (Approved) → invoke tn:ship for branch integration decision
  • Review found Critical issues → fix and re-submit for review
  • Review found architecture issues → roll back to tn:forge to redo affected tasks
  • User requests stop → end the current flow

Guardrails

  • Review runs after tn:audit passes and before tn:ship
  • inspect is a whole-change review — do not collapse it into a per-task re-check
  • Never skip review for any reason
  • Never blindly accept all feedback — verify each point independently
  • Never merge without review approval
  • Use merge-base, not HEAD~1, so the review covers the entire change
  • Push back when: suggestion breaks functionality / reviewer lacks context / violates YAGNI / technically incorrect
  • Acknowledge correct feedback with technical descriptions, not praise
  • Fix one issue at a time, test each fix

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.