feat: unified Reviewer architecture with self-review framework#29
feat: unified Reviewer architecture with self-review framework#29
Conversation
7df1be4 to
cbc383e
Compare
| Only return when all P0 and P1 pillars PASS. | ||
| If a P0 issue is unfixable (requires architectural change), STOP and report blocker. | ||
| Output: Summary of fixes made + final pillar status. | ||
| timeout: 120 |
There was a problem hiding this comment.
Is this enough? I think this should be much higher
| **Always run**: SecurityReview, PerformanceReview, ArchitectureReview, ComplexityReview, ConsistencyReview, RegressionReview, TestsReview (7 agents) | ||
|
|
||
| **Conditionally run**: DependenciesReview, DocumentationReview, TypescriptReview, DatabaseReview | ||
| **Always run (7 focus areas):** |
There was a problem hiding this comment.
isn't the next few lines duplicate what we have in the table above?
|
|
||
| --- | ||
|
|
||
| ## Integration |
There was a problem hiding this comment.
This section seems irrelevant once the skill already loaded what am I missing?
|
|
||
| --- | ||
|
|
||
| ## Integration |
There was a problem hiding this comment.
This section seems irrelevant once the skill already loaded what am I missing?
|
|
||
| --- | ||
|
|
||
| ## Integration |
There was a problem hiding this comment.
This section seems irrelevant once the skill already loaded what am I missing?
|
|
||
| --- | ||
|
|
||
| ## Integration |
There was a problem hiding this comment.
This section seems irrelevant once the skill already loaded what am I missing?
|
|
||
| --- | ||
|
|
||
| ## Integration |
There was a problem hiding this comment.
This section seems irrelevant once the skill already loaded what am I missing?
|
|
||
| --- | ||
|
|
||
| ## Integration |
There was a problem hiding this comment.
This section seems irrelevant once the skill already loaded what am I missing?
|
|
||
| --- | ||
|
|
||
| ## Integration |
There was a problem hiding this comment.
This section seems irrelevant once the skill already loaded what am I missing?
| @@ -370,7 +370,7 @@ Map findings to OWASP Top 10 2021: | |||
| ## Integration | |||
There was a problem hiding this comment.
This section seems irrelevant once the skill already loaded what am I missing?
|
|
||
| --- | ||
|
|
||
| ## Integration |
There was a problem hiding this comment.
This section seems irrelevant once the skill already loaded what am I missing?
|
|
||
| --- | ||
|
|
||
| ## Integration |
There was a problem hiding this comment.
This section seems irrelevant once the skill already loaded what am I missing?
cbc383e to
26c28ae
Compare
Replace 11 individual review agents with a single parameterized Reviewer agent that receives focus area via prompt injection. Add 9-pillar self-review framework to Coder agent via Stop hook. ## Changes ### New Pattern Skills (10 files) - devflow-architecture-patterns: SOLID, coupling, layering - devflow-performance-patterns: N+1, algorithms, memory, I/O - devflow-complexity-patterns: Cyclomatic complexity, readability - devflow-consistency-patterns: Pattern violations, simplification - devflow-tests-patterns: Coverage, quality, brittleness - devflow-database-patterns: Schema, queries, migrations - devflow-documentation-patterns: Docs quality, alignment - devflow-dependencies-patterns: CVEs, versions, licenses - devflow-regression-patterns: Lost functionality, broken behavior - devflow-self-review: 9-pillar framework (P0/P1/P2) ### Unified Reviewer Agent - Single agent with all pattern skills loaded - Focus specified via prompt injection - Follows devflow-review-methodology 6-step process ### Coder Self-Review - Stop hook triggers self-review before returning - Must fix all P0 (Design, Functionality, Security) issues - Must fix all P1 (Complexity, Error Handling, Tests) issues - Only returns when all P0/P1 pillars PASS ### Command Updates - /review: Spawns Reviewer with different focus areas - /implement: Calls /review command (DRY) ### Removed - 11 individual review-*.md agent files Closes #28 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
26c28ae to
113fa9d
Compare
Updates DEVFLOW_SKILLS in init.ts to include all 25 skills: - Added devflow-self-review - Added 10 review pattern skills (architecture, complexity, consistency, database, dependencies, documentation, performance, regression, security, tests) This is cosmetic only - installation already works correctly since it copies entire directories. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
The uninstall command's skill cleanup list was missing 10 pattern skills added in Architecture v3. This would leave orphaned skills after uninstalling DevFlow: - devflow-self-review - devflow-architecture-patterns - devflow-complexity-patterns - devflow-consistency-patterns - devflow-database-patterns - devflow-dependencies-patterns - devflow-documentation-patterns - devflow-performance-patterns - devflow-regression-patterns - devflow-security-patterns - devflow-tests-patterns 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
Review walkthrough across 4 sessions resolved all 31 issues from the 2026-04-15_1022 code review (19 fixed, 5 rejected, 1 deferred, 6 pre-resolved). Blocking fixes (sessions 1-2): - CHANGELOG contradiction rewritten (#1) - Worktree placeholder unified on "{worktree}" across 11 sites (#3) - /debug migrated to index pattern (#4) - KNOWLEDGE_CONTEXT quoting standardized, no inline fallback (#6) - apply-knowledge skill defers to footer for paths (#7) - Simplifier dropped from knowledge consumers; 4 agents canonicalized (#8) - lstat+isFile guard on legacy-knowledge-purge unlink (#9) Architecture + consistency fixes (session 2): - Bare-form CLI removed, dispatch simplified to index-only (#10) - code-review-teams template+table extraction (#12) - Designer Apply Knowledge H2 added (#13) - Teams phase numbering aligned (#14) - loadKnowledgeContext + full subcommand removed entirely (#16) Complexity + performance + testing + docs fixes (sessions 3-4): - D-A filter extracted to isDeprecatedOrSuperseded predicate (#18) - formatAdrLine/formatPfLine merged into formatEntryLine (#19) - Shared test fixtures extracted to tests/knowledge/fixtures.ts (#21) - Token claim "~250 tokens" dropped from 12 sites (#22) - tmpdir cleanup added to test fixtures (#25) - self-learning.md example and footer paths corrected (#28, #29) 28 files changed, 333 insertions, 524 deletions. 1021/1021 tests passing.
Summary
This PR implements Architecture v3 from Issue #28, fundamentally restructuring how code reviews work in DevFlow:
RevieweragentCoderagent via Stop hook/implementnow calls/reviewinstead of duplicating logicChanges
New Pattern Skills (10 files)
devflow-architecture-patternsdevflow-performance-patternsdevflow-complexity-patternsdevflow-consistency-patternsdevflow-tests-patternsdevflow-database-patternsdevflow-documentation-patternsdevflow-dependencies-patternsdevflow-regression-patternsdevflow-self-reviewUnified Reviewer Agent
Single
agents/reviewer.mdwith all pattern skills loaded. Focus specified via prompt injection:Coder Self-Review (Stop Hook)
9 Pillars:
Removed
11 individual review agent files:
review-architecture.md,review-complexity.md,review-consistency.mdreview-database.md,review-dependencies.md,review-documentation.mdreview-performance.md,review-regression.md,review-security.mdreview-tests.md,review-typescript.mdArchitecture
Test Plan
/reviewon a branch with mixed file types/implementcalls/reviewinstead of duplicatingCloses #28
🤖 Generated with Claude Code