Pre-gate self-check for drift detection and philosophy alignment. Use when: preparing for human gate review, checking implementation quality, or detecting scope drift.
View on GitHubdstoic/skills/openspec-reflect/SKILL.md
February 3, 2026
Select agents to install to:
npx add-skill https://github.com/digital-stoic-org/agent-skills/blob/main/dstoic/skills/openspec-reflect/SKILL.md -a claude-code --skill openspec-reflectInstallation paths:
.claude/skills/openspec-reflect/# OpenSpec Reflect
Pre-gate self-check skill. Verifies acceptance criteria, detects scope drift, and ensures philosophy alignment before human review.
## Workflow: Check → Assess → Report
```mermaid
flowchart LR
A["Read context"] --> B["Check criteria"]
B --> C["Detect drift"]
C --> D["Check philosophy"]
D --> E["Self-assess"]
E --> F["Generate report"]
classDef action fill:#E1BEE7,stroke:#7B1FA2,color:#000
class A,B,C,D,E,F action
```
**Critical**: Run before human gates. Catches drift BEFORE human reviews.
## Exploration Strategy
Before reflection, consult `openspec/project.md` → Exploration Strategy section:
1. **Context sources**: Read `primary` files (project.md, proposal.md, specs)
2. **Must-read files**: CLAUDE.md, settings.json (project constraints)
3. **Tools**: Use configured codebase tools (Glob, Grep, Read)
4. **Philosophy**: Read Execution Philosophy section for current mode and principles
## Commands
### reflect
Run comprehensive pre-gate self-check.
**Input**: `$ARGUMENTS` = `change-id`
**Workflow**:
1. **Load context**:
- Read `openspec/changes/{change-id}/proposal.md` for acceptance criteria
- Read `openspec/changes/{change-id}/tasks.md` for progress
- Read `openspec/changes/{change-id}/specs/*.md` for requirements
- Read `openspec/project.md` for Execution Philosophy
2. **Check acceptance criteria**:
- Extract criteria from proposal.md (Success Criteria section)
- For each criterion: verify met/unmet/partial
- Record evidence for each status
3. **Detect scope drift**:
- Extract "Affected files" from proposal.md
- Run `git status` and `git diff --stat` to find actual changes
- Calculate deviation percentage: `(actual - proposed) / proposed * 100`
- Flag if >20% deviation
4. **Check philosophy alignment**:
- Read `mode` from Execution Philosophy
- Review implementation for anti-patterns of current mode
- Flag any violations
5. **Self-assessment**:
- Answer: "Am