AgentSkillsCN

post-implementation-review

在完成某项功能的实现、重构或Bug修复后,于提交代码前进行质量审查时使用。

SKILL.md
--- frontmatter
name: post-implementation-review
description: Use when a feature implementation, refactor, or bugfix is complete
  and code changes need quality review before committing

Post-Implementation Review

Overview

Structured quality review for completed code changes. Run BEFORE committing or creating PRs.

Core principle: Simplify -> Verify -> Audit -> Learn.

Announce at start: "I'm using the post-implementation-review skill to review these changes."

When to Use

  • After completing a feature implementation
  • After a significant refactor
  • After fixing a complex bug with multi-file changes
  • Before using finishing-a-development-branch or /commit

When NOT to use:

  • Single-line fixes or typo corrections
  • Documentation-only changes

Workflow

Step 1: Code Simplification

Dispatch code-simplifier:code-simplifier agent on recently modified production files.

  • Focus scope: files changed in the current feature/branch
  • Exclude test files
  • Must NOT change functionality

Step 2: Verify (Lint + Types + Tests)

Run the project's verification suite. Must be green before proceeding.

  • If flake.nix exists, wrap all commands with nix develop -c (see coding-standards Nix Dev Shell section)
  • Use just lint + just test if justfile exists
  • Python: ruff format --check + ruff check + pyright + pytest
  • JS/TS: eslint + tsc + jest/vitest
  • If failures from Step 1: fix, re-run. Do not proceed until green.

Step 3: Security Review

Invoke /security-review skill. Read changed files and audit against checklist: secrets, input validation, SQL injection, auth, XSS, error handling, rate limiting, sensitive data exposure.

Step 4: Continuous Learning (Optional)

Invoke /continuous-learning to extract reusable patterns.

Important: If a learned pattern is a language-specific coding standard (e.g., Python mocking pattern, async best practice), add it to the appropriate coding-standards/references/ file (python.md, typescript.md, or nix.md) — NOT as a standalone learned skill. Standalone learned skills are for cross-cutting patterns (e.g., LangGraph interrupt pattern, SQLAlchemy migration gotcha).

Quick Reference

StepTool/SkillBlocks Next?
1. Simplifycode-simplifier:code-simplifierYes
2. Verifyjust lint + just testYes
3. Security/security-reviewNo
4. Learn/continuous-learningNo

Common Mistakes

MistakeFix
Skipping verification after simplificationAlways run lint+test — simplifier can introduce issues
Running security review on failing codeFix lint/test first
Simplifying test filesOnly simplify production code
Saving language-specific patterns as standalone skillsAdd to coding-standards references instead

Integration

Comes after: Implementation complete, all original tests passing Comes before: superpowers:finishing-a-development-branch, /commit Pairs with: superpowers:requesting-code-review (complementary)

When committing after review: Invoke /conventional-commits skill for commit message format. For nixpkgs contributions, use nixpkgs-specific format instead (see coding-standards/references/nix.md).