Post-Implementation Reflection

VerifiedCaution

Self-review of recently implemented code to catch issues before the formal /review step, using a reflector agent and canonical checklist.

Sby Skills Guide Bot
DevelopmentIntermediate
11/18/2026
Claude Code
#code-review#self-review#git-diff#quality-assurance#subagents

Recommended for

Automated summary

Performs a pre-review self-assessment of a branch's changes by dispatching a reflector agent that checks correctness, conventions, architecture, testing and completeness.

Strengths

  • Scopes the review precisely: a REQ id, a branch name, or the current branch diffed against main with `git diff main...HEAD`.
  • Keeps the checklist in a single reflector agent reused by `/proceed` Phase 5, so review criteria don't drift between steps.
  • Handles degraded harnesses: runs the checklist inline when subagents are unavailable and warns that an unlisted agent name can silently fall back to a generic agent.
  • Cross-references the loaded conventions.md and architecture.md and greps `.adlc/knowledge/lessons/` for applicable past lessons.

Limitations

  • Stops immediately unless `.adlc/context/conventions.md` exists, so it is unusable in a repo that hasn't run `/init`.
  • The actual checklist lives in the reflector agent file rather than in the skill; without that agent installed its value drops sharply.
  • Covers correctness, conventions, architecture, testing and completeness only — no security or performance review.
When to use it

Use it right after finishing an implementation and before the formal `/review`, to catch obvious problems in your own diff.

When not to use it

Skip it in a repo without the `.adlc/` setup, or when you need an independent security or performance audit rather than a self-check.

Security analysis

Caution
Quality score82/100

The skill is legitimate developer workflow automation with no destructive, exfiltration, obfuscation, or safety-disabling behavior. Its risk is moderate because it invokes local shell commands, reads repository files, dispatches subagents, and may automatically apply fixes, while no allowed-tools are declared to bound that capability.

Findings
  • •Uses shell commands to run git operations and cat .adlc/ETHOS.md; these are read-only in intent but execute local shell tooling.
  • •Dispatches an autonomous 'reflector' subagent and instructs immediate fixes for Critical findings without explicit user confirmation, so it can modify the working tree.
  • •Declares no allowed-tools, leaving tool and permission scope unconstrained despite reliance on shell, file reads, Agent dispatch, and possible edits.
  • •Subagent names may silently fall back to generic agents if not listed, though the skill does warn about this and provides an inline fallback.
  • •The Ethos section uses a `!`-prefixed inline command (`test -s .adlc/ETHOS.md && cat ...`), which in Claude Code-style harnesses executes automatically when the skill is loaded, before any user confirmation — benign in content but unannounced auto-execution.
  • •Instructs the agent to run shell commands (git branch/diff-tree/status/diff) and to dispatch subagents, yet the skill declares no allowed-tools; there is no declared capability boundary for the bash/Agent usage.
  • •Reads and relays repository-local files (`.adlc/ETHOS.md`, `.adlc/context/*.md`, `.adlc/knowledge/lessons/`, `.adlc/agents/*.md`) whose contents flow into the agent's context, so a malicious repo could inject instructions via those files.
  • •Falls back to reading `$ADLC_TOOLKIT_ROOT/agents/<name>.md` outside the repo when `.adlc/agents/` is missing, expanding the trusted file surface.
  • •Step 5 permits applying code fixes and running tests, i.e., write/execute actions, not just review.
How this analysis is made

Examples

Full branch self-review
/reflect
Scoped to a requirement
/reflect REQ-142
Scoped to a feature branch
/reflect feature/user-auth

name: reflect description: Post-implementation self-review — catch issues before /review (/adlc:review on the plugin install) argument-hint: Optional REQ-xxx ID or branch name to scope the reflection

/reflect — Post-Implementation Reflection

You are performing a self-review of recently implemented code to catch issues before the formal /review step. This is a fast, honest assessment of your own work.

Ethos

!test -s .adlc/ETHOS.md && cat .adlc/ETHOS.md || echo No ethos found — run /init, or /adlc:init on the plugin install, to vendor .adlc/ETHOS.md

Context

Run this block first, with your shell tool, and read its output before you continue. Each read prints a notice instead of failing when its file is absent.

# adlc-context
echo '--- Current branch'
git branch --show-current 2>/dev/null || echo 'Not a git repo'
echo '--- Committed changes vs main'
git diff-tree --stat -r main HEAD 2>/dev/null || echo 'No diff available'
echo '--- Uncommitted changes'
git status --short 2>/dev/null || echo 'Not a git repo'

Context files loaded on demand: .adlc/context/conventions.md and .adlc/context/architecture.md are loaded by Step 1 below — skip the Read if they are already in the current conversation (e.g., when invoked from /proceed, which preloads them at Phase 0).

Input

The scope is the argument: whatever follows /reflect in the invocation (on Claude Code it can also arrive as an ARGUMENTS: line appended to this text). With none, Step 1 reviews every change on the current branch.

Prerequisites

Before proceeding, verify that .adlc/context/conventions.md exists. If it doesn't, stop and tell the user: "The .adlc/ structure hasn't been initialized. Run /init (/adlc:init on the plugin install) first to set up conventions."

Instructions

Step 1: Determine Scope

  1. If given a REQ ID, find the associated branch and review its changes
  2. If given a branch name, review all changes on that branch vs main
  3. If no argument, review all changes on the current branch vs main
  4. Get the full diff: git diff main...HEAD
  5. Context files: if .adlc/context/conventions.md and .adlc/context/architecture.md are NOT already in your conversation context, Read them now. Otherwise skip — they're already loaded.

Step 2: Dispatch the reflector agent

Launch the reflector agent via the Agent tool. The agent owns the canonical self-review checklist (Correctness, Convention Compliance, Architecture, Testing, Completeness) and handles reading changed files and cross-referencing lessons learned. Keeping the checklist in the agent ensures a single source of truth that /proceed Phase 5 also uses.

If this harness can run subagents, dispatch these agents in parallel; if it cannot, or you are a subagent, run each checklist inline from .adlc/agents/<name>.md. Agent names are bare on the symlink install and adlc:-prefixed on the plugin install (adlc:<name>): before dispatching, check which form the Agent tool lists and use that one, and do not wait for an error, because a name it does not list can silently run a generic agent without the checklist; if neither form is listed, say which agent is missing and run its checklist inline. When .adlc/agents/ is absent, say that /init (/adlc:init on the plugin install) vendors it, then read $ADLC_TOOLKIT_ROOT/agents/<name>.md (the toolkit root is the parent of this skill's base directory) where your file tool can reach it; never improvise a checklist. An inline run of a review or audit agent is read-only: report findings, apply no fixes, and run no test runner, build tool, package manager or interpreter.

Provide the agent with:

  • The scope (REQ ID, branch name, or "current uncommitted changes")
  • The full diff from Step 1
  • conventions.md and architecture.md content (from Step 1)

Instruct it: "Read all changed files in full, grep .adlc/knowledge/lessons/ for applicable lessons, run your checklist, and report findings + questions. Do not apply fixes."

The agent will return:

  • Issues Found — grouped by severity (Critical / Major / Minor) with file/line, description, suggested fix
  • Clean Areas — 1-2 sentences on what was checked and looked good
  • Questions for the User — ambiguities, design tradeoffs, assumptions, deferred edge cases

Step 3: Present the Agent's Report

Relay the agent's Issues Found and Clean Areas sections to the user verbatim. Do not re-run the checklist yourself — that would duplicate work and risk drift.

Step 4: Surface Questions from the Agent

The reflector agent returns a "Questions for the User" block covering ambiguous requirements, design tradeoffs, assumptions made, deferred edge cases, and UX/behavioral uncertainties. Relay that block to the user as a numbered list. If the agent returned "No questions — implementation is unambiguous," state that explicitly.

Do not proceed past this step until the user has answered — their responses may change what needs to be fixed.

Step 5: Fix or Defer

  1. If Critical issues are found, fix them immediately
  2. If Major issues are found, ask the user whether to fix now or note for /review (/adlc:review on the plugin install)
  3. Minor issues can be listed for the user to decide
  4. After fixes, re-run tests to verify nothing broke

Step 6: Recommend Next Action

  • If no issues or only minor ones: "Ready for /review (/adlc:review on the plugin install)"
  • If fixes were applied: "Fixes applied. Re-run /reflect to verify, or proceed to /review (/adlc:review on the plugin install)"
  • If blockers remain: "Address these issues before /review (/adlc:review on the plugin install)"

From the file to a first result

The download contains exactly the content displayed on this page. This copy may differ from the latest version in the source repository.

View the source and supporting files

This download contains SKILL.md only. Any scripts, references, templates and dependencies are not included. Get the required files from the source, preserving their directory structure, before continuing.

1. Download the file

Download SKILL.md

From the root of a test project, save the file as .skill-downloads/post-implementation-reflection-mwlmgk4y/SKILL.md, or use the command below. This folder is for inspecting the skill before installation.

Command for macOS/Linux or WSL: requires a POSIX shell and curl. On Windows without WSL, use the download button and create the folder manually.

mkdir -p '.skill-downloads/post-implementation-reflection-mwlmgk4y' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/post-implementation-reflection-mwlmgk4y/download' --output '.skill-downloads/post-implementation-reflection-mwlmgk4y/SKILL.md.part' && mv '.skill-downloads/post-implementation-reflection-mwlmgk4y/SKILL.md.part' '.skill-downloads/post-implementation-reflection-mwlmgk4y/SKILL.md'

2. Check prerequisites

Read SKILL.md before using it. If it references scripts or external services, inspect them and prepare the required access in your test environment.

Original excerpt: Prerequisites

Before proceeding, verify that .adlc/context/conventions.md exists. If it doesn't, stop and tell the user: "The .adlc/ structure hasn't been initialized. Run /init (/adlc:init on the plugin install) first to set up conventions."

The platforms on this page are catalog indications. The paths below follow tool documentation; they do not prove this skill has been run in those tools. No minimum tool version is confirmed for this listing.

3. Load the skill

After inspection, copy the complete folder into your project using one of the commands below, then open a new tool session. The command stops if a folder with the same name already exists: compare the files before replacing it.

Claude Code
test -f '.skill-downloads/post-implementation-reflection-mwlmgk4y/SKILL.md' && test -s '.skill-downloads/post-implementation-reflection-mwlmgk4y/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/reflect' && cp -R '.skill-downloads/post-implementation-reflection-mwlmgk4y' '.claude/skills/reflect'

OpenSkills

OpenSkills must already be installed. The local install/read procedure is checked with OpenSkills 1.5.0, which requires Node.js ≥ 20.6.0. Catalog slugs are not resolved automatically.

Official OpenSkills installation
openskills install './.skill-downloads/post-implementation-reflection-mwlmgk4y'

openskills read 'post-implementation-reflection-mwlmgk4y'

Reading should display the installed file content and its base directory. It does not run the skill or install its dependencies.

For an agent that reads AGENTS.md, then sync the index. This command changes AGENTS.md: review the diff before using it.

openskills sync

Manual method or another tool: attach SKILL.md to a conversation, or open it in an agent that can read files. Include any required supporting resources. No universal folder is recognized by every tool.

4. Try a first task

Use a short, synthetic input: an API endpoint, a small document or an interface brief. In a new conversation, attach the file or give the agent its path, then adapt this request:

Read .skill-downloads/post-implementation-reflection-mwlmgk4y/SKILL.md and apply its instructions to this example: [describe a test input]. Identify any missing files, dependencies or access. Produce the result requested by the skill without inventing data or running unreviewed scripts.

Expected result: output matching the skill instructions, or a precise list of missing prerequisites. A read confirmation alone does not validate a first use. If an external resource is unavailable, that path remains untested.

Related skills