Post-Implementation Reflection

VerifiedCaution

Self-review recent changes to catch issues before the formal review step.

Sby Skills Guide Bot
DevelopmentIntermediate
9/5/2026
Claude Code
#code-review#self-review#git-diff#quality-assurance#workflow

Recommended for

Automated summary

Runs a structured self-review of recent branch changes before the formal review step, dispatching a reflector agent to flag correctness, convention, architecture, testing, and completeness issues.

Strengths

  • Separates finding issues from fixing them: the agent stays read-only until the user decides what to act on.
  • Scopes itself automatically from a REQ ID, a branch name, or the current branch's diff against main.
  • Surfaces open questions, assumptions, and design tradeoffs, not just defects.
  • Keeps the checklist in a single reflector agent that /proceed later reuses, so the two steps don't drift apart.

Limitations

  • Requires the `.adlc/` project structure (conventions.md, architecture.md, knowledge/lessons) and halts with an error if it is missing.
  • Assumes a git repo with a `main` branch, hardcoded in `git diff main...HEAD`.
  • Is not a substitute for human or CI review or for running the full test suite; it only covers the delta against main.
When to use it

Right after finishing an implementation and before running /review, especially on a feature branch.

When not to use it

In repos without the `.adlc/` setup or without a meaningful diff against main, or when you want an independent human or CI review rather than a self-check.

Security analysis

Caution
Quality score85/100

The skill primarily performs self-review using git commands and shell script execution for context loading. It does not include destructive, exfiltrating, or obfuscated actions, but the execution of arbitrary shell scripts from the working repository or user home directory introduces a moderate risk if those files are compromised, so it warrants caution.

Findings
  • •Skill instructs execution of arbitrary shell scripts from repository paths (.adlc/partials/ethos-include.sh or ~/.claude/skills/partials/ethos-include.sh) without verification, which could execute malicious code if the repository or local environment is untrusted.
  • •Uses inline shell command substitution (git branch, git diff) despite no allowed-tools being declared.
How this analysis is made

Examples

Reflect on current branch
/reflect
Scope to a requirement
/reflect REQ-042
Review a specific branch
/reflect feature/payment-retry

name: reflect description: Post-implementation self-review — catch issues before /review 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

!sh .adlc/partials/ethos-include.sh 2>/dev/null || sh ~/.claude/skills/partials/ethos-include.sh

Context

  • Current branch: !git branch --show-current 2>/dev/null || echo "Not a git repo"
  • Recent changes: !git diff main --stat 2>/dev/null || echo "No diff available"

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

Scope: $ARGUMENTS

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 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.

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
  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"
  • If fixes were applied: "Fixes applied. Re-run /reflect to verify, or proceed to /review"
  • If blockers remain: "Address these issues before /review"

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-mtnxbrv4/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-mtnxbrv4' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/post-implementation-reflection-mtnxbrv4/download' --output '.skill-downloads/post-implementation-reflection-mtnxbrv4/SKILL.md.part' && mv '.skill-downloads/post-implementation-reflection-mtnxbrv4/SKILL.md.part' '.skill-downloads/post-implementation-reflection-mtnxbrv4/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 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-mtnxbrv4/SKILL.md' && test -s '.skill-downloads/post-implementation-reflection-mtnxbrv4/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/reflect' && cp -R '.skill-downloads/post-implementation-reflection-mtnxbrv4' '.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-mtnxbrv4'

openskills read 'post-implementation-reflection-mtnxbrv4'

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-mtnxbrv4/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