Review and approve important code changes (API, schema, security) before automatic commit. Critical decision point for quality assurance.
Reviews and approves critical code changes like API modifications, schema updates, and security fixes before commit.
/plugin marketplace add musingfox/cc-plugins/plugin install omt@nick-personal-marketplaceclaude-opus-4-1Command Type: Critical Decision Point When to Use: Review and approve important changes before commit
The /approve command is used for manual review of important changes, especially API changes, schema modifications, major refactoring, and other changes requiring explicit approval.
API Changes
Database Schema Changes
Major Refactoring
Security Changes
Performance-Critical Changes
# Basic usage
/approve
# System will display changes awaiting review
# You need to:
# 1. Review change details
# 2. Decide to approve or reject
# 3. (Optional) Provide review comments
@agent-reviewer automatically prompts for manual review when important changes are detected:
š Important Change Detected
**Change Type**: API Schema Modification
**Impact Scope**: POST /auth/login
Manual review required, please run: /approve
graph LR
A[@agent-coder<br/>Complete Implementation] --> B[@agent-reviewer<br/>Automatic Review]
B --> C{Important<br/>Change<br/>Detected?}
C -->|Yes| D[š Pause]
C -->|No| F[ā
Auto Commit]
D --> E[/approve<br/>Manual Review]
E --> G{Approved?}
G -->|Approved| H[@agent-reviewer<br/>Complete Commit]
G -->|Rejected| I[@agent-coder<br/>Modify]
I --> B
After running /approve, you'll see:
## Changes Awaiting Review
**Task**: LIN-123 - User Authentication API
**Change Type**: API Schema Modification
### Change Summary
**Modified Files**:
- src/routes/auth.routes.ts
- src/schemas/auth.schema.ts
- docs/api/auth.openapi.yaml
**API Changes**:
```diff
POST /auth/login
- Request: { email, password }
+ Request: { email, password, deviceId }
- Response: { accessToken, refreshToken }
+ Response: { accessToken, refreshToken, sessionId }
Impact Analysis:
Options: A) ā Approve and commit B) ā Reject with feedback C) š View detailed diff D) š Add review notes and approve
Please select (A/B/C/D):
## Response Examples
### Option A: Approve and Commit
```markdown
ā
Changes Approved
@agent-reviewer will execute the following operations:
1. Mark review as passed
2. Create git commit
3. Update task status
Commit message:
feat(LIN-123): add device tracking to auth API
- Add deviceId to login request
- Return sessionId in login response
- Update API documentation
š¤ Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
Reviewed-By: [Your Name]
ā Changes Rejected
**Review Feedback**:
The deviceId field should be optional, not mandatory.
Suggested schema adjustment:
```typescript
{
email: string;
password: string;
deviceId?: string; // optional
}
Task has been marked for modification, @agent-coder will be notified.
### Option C: View Detailed Diff
Displays complete git diff output
### Option D: Add Review Notes and Approve
```markdown
**Review Notes**:
API changes confirmed, but note:
1. Frontend team needs to synchronize updates
2. Legacy mobile app may need backward compatibility handling
3. Recommend notifying users to upgrade in next sprint
Please enter additional review notes (press Enter to complete):
> [Your notes here]
ā
Approved with review notes recorded
Review records are written to the agent workspace:
// Approval record written to .agents/tasks/LIN-123/approve.md
const approvalRecord = {
approved_at: new Date().toISOString(),
approved_by: 'human',
change_type: 'api_schema',
decision: 'approved',
notes: 'Confirmed with frontend team, backward compatible'
};
task.writeAgentOutput('approve', JSON.stringify(approvalRecord, null, 2));