review-delta
Review a delta's implemented code against specs, designs, and decisions
What this skill does
# Review Delta Workflow
Review a delta's implementation for spec compliance, design alignment, and code quality.
## Input
Delta ID: $ARGUMENTS (e.g., "DLT-001")
## Context
**You must load the following skills and read the following files before proceeding.**
### Skills
- `katachi:framework-core` - Workflow principles
- `katachi:working-on-delta` - Per-feature workflow
### Delta inventory
- `docs/planning/DELTAS.md` - Delta definitions
### Delta documents
- `docs/delta-specs/$ARGUMENTS.md` - What to build (requirements)
- `docs/delta-designs/$ARGUMENTS.md` - Why/how (design rationale)
- `docs/delta-plans/$ARGUMENTS.md` - Implementation plan with batches
### Project decisions
- `docs/architecture/README.md` - Architecture decisions (ADRs)
- `docs/design/README.md` - Design patterns (DES)
### Feature documentation (for acceptance criteria and architecture)
- Read affected feature specs from delta-spec (use as acceptance criteria source)
- Read affected feature designs from delta-design (use as architecture guidance)
## Pre-Check
Verify delta is implemented:
- If delta status is not "✓ Implementation", suggest `/katachi:implement-delta $ARGUMENTS` first
- Review requires completed implementation
## Process
### 1. Gather Context (Silent)
Read all relevant documentation:
- Delta spec, design, and plan
- Full ADR/DES documents (not just indexes) for all decisions referenced in the delta
- Affected feature specs and designs
Gather the implemented code:
- If the delta is on a feature branch, diff against main:
```bash
git diff origin/main...HEAD
```
- If working on main with uncommitted changes, use working tree diff:
```bash
git diff
git diff --staged
```
### 2. Review Loop
Repeat until the code-reviewer returns `PASS`:
#### 2a. Dispatch Code Reviewer
```python
Task(
subagent_type="katachi:code-reviewer",
prompt=f"""
Review this implementation.
## Delta Spec
{spec_content}
## Delta Design
{design_content}
## Implementation Plan
{plan_content}
## Implemented Code
{code_diff_or_files}
## Relevant ADR/DES Documents
{adr_des_content}
"""
)
```
#### 2b. Fix All Issues
If assessment is `NEEDS_WORK`, automatically address ALL issues identified:
- Missing acceptance criteria coverage
- Design misalignment
- Pattern violations
- Code quality issues
- Missing decision references
- Missing documentation updates
- Unintended effects / regression risks
Do NOT ask user about fixes — fix everything autonomously.
#### 2c. Verify Fixes
After fixing:
- Re-run all tests
- Re-run linting and type checking
- Fix any new issues introduced by fixes
#### 2d. Re-dispatch
If issues were fixed, loop back to step 2a with the updated code. Continue until the code-reviewer returns `PASS`.
### 3. Present Findings to User
Once the code-reviewer returns `PASS`:
Show the validated implementation:
- Summarize what was reviewed
- List issues found and fixed during the review loop
- Highlight any deviations from spec/design (with rationale from the code)
- Note any emergent patterns detected during review
Invite feedback: "What needs adjustment in this implementation?"
### 4. Iterate Based on User Feedback
Apply user corrections or changes.
Re-run review loop if changes are significant.
Repeat until user approves.
### 5. Finalize
Present summary:
```
"Implementation review complete for $ARGUMENTS.
[Brief summary of review findings and fixes applied]
Files reviewed:
- [file]: [status and notes]
- ...
Issues found and fixed: [count]
Review iterations: [count]"
```
## Workflow
**This is a review-and-fix loop:**
- Gather all context silently
- Loop: dispatch code-reviewer → fix all issues → verify → re-dispatch (until PASS)
- Present validated implementation to user
- Iterate based on feedback
- Finalize
Related in Code Review
gstack
IncludedFast headless browser for QA testing and site dogfooding. Navigate pages, interact with elements, verify state, diff before/after, take annotated screenshots, test responsive layouts, forms, uploads, dialogs, and capture bug evidence. Use when asked to open or test a site, verify a deployment, dogfood a user flow, or file a bug with screenshots. (gstack)
startup-due-diligence
IncludedLegal due diligence review for seed-stage and Series A startups (US, Delaware C-Corp focus). Supports both investor and founder perspectives. Capabilities include: (1) Interactive document review and issue spotting; (2) Document request list generation; (3) Cap table and SAFE/convertible note analysis; (4) Red flag identification with severity ratings; (5) Diligence report generation. TRIGGERS: due diligence, DD, startup investment, cap table review, Series A, seed round, investor diligence, legal review startup, SAFE analysis, convertible note, 409A, founder vesting.
interview-master
IncludedThis skill should be used when the user asks to "generate interview questions", "prepare for interview", "optimize resume", "conduct mock interview", "analyze git commits for resume", "generate resume from code", "review my resume", or mentions interview preparation, career assistance, or extracting project experience from git history. Provides comprehensive interview and career development guidance for both job seekers and interviewers.
fix-issue
IncludedFixes GitHub issues using parallel analysis agents for root cause investigation, code exploration, and regression detection. Reads issue context from gh CLI, searches codebase and memory for related patterns, generates a fix with tests, and links the resolution back to the issue via PR. Includes prevention analysis to avoid recurrence. Use when debugging errors, resolving regressions, fixing bugs, or triaging issues.
sf-apex
IncludedGenerates and reviews Salesforce Apex code with 150-point scoring. TRIGGER when: user writes, reviews, or fixes Apex classes, triggers, test classes, batch/queueable/schedulable jobs, or touches .cls/.trigger files. DO NOT TRIGGER when: LWC JavaScript (use sf-lwc), Flow XML (use sf-flow), SOQL-only queries (use sf-soql), or non-Salesforce code.
swift-development
IncludedComprehensive Swift development for building, testing, and deploying iOS/macOS applications. Use when Claude needs to: (1) Build Swift packages or Xcode projects from command line, (2) Run tests with XCTest or Swift Testing framework, (3) Manage iOS simulators with simctl, (4) Handle code signing, provisioning profiles, and app distribution, (5) Format or lint Swift code with SwiftFormat/SwiftLint, (6) Work with Swift Package Manager (SPM), (7) Implement Swift 6 concurrency patterns (async/await, actors, Sendable), (8) Create SwiftUI views with MVVM architecture, (9) Set up Core Data or SwiftData persistence, or any other Swift/iOS/macOS development tasks.