architect-review
Skill2 starsChanged 36 days agoMITView on GitHub
Analyze exploration and planning documents to identify potential improvements and suggest better solutions
15 other projects use a version of this.
Adopted by
Most recently taken up by
- aiqianqian521/architect-skillstheir own version, first seen Nov 1, 2026
- ya222/skillforgetheir own version, first seen Oct 20, 2026
- xfstudio/skillstheir own version, first seen Oct 13, 2026
- Tgoldi/claude-skillstheir own version, first seen Oct 13, 2026
- prestarius/jet-skills-stacktheir own version, first seen Oct 11, 2026
- LucaDominici/arbitertheir own version, first seen Sep 20, 2026
Other versions15 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 15
- kumaran-is/claude-code-onboarding★ 35same name
- xfstudio/skills★ 9same name
- bis-code/claude-toolkit★ 8same name
- hlhr202/swe-skills★ 3same name
- ai4brands-design/claude-skills★ 2same name
- Aver005/agent-skills★ 2same name
- aiqianqian521/architect-skills★ 1same name
- alex-macra/claude-codex-skills-assembly★ 1same name
- aptitude-stack/registery★ 1same name
- aptitude-stack/resolver★ 1same name
5 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository75 other files it gives its agents.
- acceptance-criteriaSkill
- architect-guideSkill
- audit-fixerSkill
- avo-admin-expertSkill
- backend-services-expertSkill
- bug-hunt-allSkill
- bug-hunt-fixSkill
- bug-huntSkill
- build-feature-remoteSkill
- build-featureSkill
- codeSkill
- component-testSkill
- controller-expertSkill
- create-qa-documentSkill
- debugSkill
- devops-expertSkill
- execute-qaSkill
- feature-qaSkill
- fix-bug-indexSkill
- fix-honeybadgerSkill
- fix-spec-bugsSkill
- fix-system-testSkill
- frontend-expertSkill
- frontend-reviewSkill
- full-qa-fixSkill
- full-qaSkill
- full-reviewSkill
- green-ciSkill
- group-issuesSkill
- honeybadger-auditSkill
- ideateSkill
- impact-assessmentSkill
- improveSkill
- merge-mainSkill
- model-expertSkill
- model-testSkill
- native-bug-hunt-fixSkill
- native-bug-huntSkill
- page-speedSkill
- plan-questionsSkill
- planSkill
- plan-system-testsSkill
- policy-testSkill
- prdSkill
- prd-worktreeSkill
- product-questionSkill
- product-question-tldrSkill
- qa-branchSkill
- qa-testerSkill
- refactor-sweepSkill
- resolve-honeybadgerSkill
- resolve-issueSkill
- resolve-issuesSkill
- review-acceptance-criteriaSkill
- review-fixesSkill
- review-railsSkill
- rspec-test-expertSkill
- scale-reviewSkill
- service-testSkill
- settle-pr-reviewSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
7 rules. 0 are common, 4 are distinctive, and 3 are very specific to this project.
0
Common
Most of the 14 edited versions we read keep these.
4
Distinctive
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 32
If "${1}" is "latest" or not specified, find the most recent implementation plan:
- Distinctive: line 41
Read CLAUDE.md to understand project-specific patterns and conventions.
- Very specific: line 43
If the plan references a PRD (.claude/prds/*.md), read it.
- Very specific: line 106
Do services follow VerbNounService naming (e.g., CreateClientService)?
- Very specific: line 194
Do two lanes create or modify the same file, or does a lane need code another lane builds without an After edge?
- Distinctive: line 394
Think Long-term: Consider maintainability over 2-3 years
- Distinctive: line 397
Verify Before Flagging: When the plan claims "component X exists" or "pattern Y is used in file Z", spot-check the codebase before flagging …
“Common” is measured: kept by at least 6 in 10 of the 14 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Senior Rails Architect Review
Role: You are a Senior Software Architect at a Ruby on Rails consultancy with 15+ years of experience building healthcare and enterprise applications. You specialize in Rails 8, Hotwire, and building maintainable, scalable systems.
Task: Review the architectural plan at "${1:latest}" and provide a comprehensive critique as a senior architect would during a design review meeting.
Technology Stack Context
This project uses:
- Framework: Rails 8.0.2 with Ruby 3.3.5
- Database: PostgreSQL with UUID primary keys
- Frontend: Hotwire (Turbo + Stimulus) - NO React, Vue, or other SPAs
- CSS: Tailwind CSS only - NO custom CSS
- Authentication: Devise with Passwordless (magic links)
- Authorization: Pundit policies + Rolify for role management
- Components: ViewComponent for reusable UI
- Background Jobs: Solid Queue
- Caching: Solid Cache
- WebSockets: Solid Cable
- JavaScript: Importmap - NO webpack, esbuild, or bundlers
- Pagination: Pagy
- Testing: RSpec + FactoryBot + Capybara
Step 1: Locate the Plan
If "${1}" is "latest" or not specified, find the most recent implementation plan:
ls -t .claude/implementation-plan-*.md 2>/dev/null | head -1Otherwise, read the specified plan file.
Step 2: Understand Project Conventions and Source Requirements
Read CLAUDE.md to understand project-specific patterns and conventions.
If the plan references a PRD (.claude/prds/*.md), read it. Then review for scope fidelity
in both directions: flag any PRD requirement the plan doesn't cover, and flag anything the plan
adds that the PRD's "Out of Scope — Do NOT Build" list excludes (gold-plating is a finding, not
a bonus).
Also read the Acceptance Criteria contract if one exists for the branch:
git branch --show-current, strip feature/, look for
.claude/acceptance-criteria/<slug>.md (fall back to the newest file in that directory only if
its *Feature slug:* line matches). Its ## Contract table
(| ID | Type | Criterion | Source | Priority | Verified by |, Type ∈ feature / permission /
edge / guard) is what the PR will be gated on, so check the plan against it row by row:
- Omission — an AC with no plan step that would make its Then true. A Must AC with no covering step is a critical issue.
- Extra — a plan step, component, model, column, route, or job that serves no AC and no PRD FR. This is a finding, not a bonus; name the step and say "no AC/FR cites this".
- Guard violation — a plan step that would build the very thing a
guardrow asserts is absent (guard rows are how the pipeline catches extras; treat them as prohibitions).
Report all three in the ## Contract Fidelity section of the review. If no contract file
exists, say so in that section and fall back to the PRD-only scope check above.
Do NOT Flag (intentional project patterns)
These look wrong to a generic Rails reviewer but are correct here — flagging them wastes a revision cycle:
- Pundit policies without organization checks —
acts_as_tenant(:organization)enforces tenant isolation at the query layer; role-based checks alone are sufficient and correct destroysemantics on SoftDeletable models — instancedestroyis redirected to#soft_deleteby design;#really_destroy!is the sanctioned hard-delete. Conversely, DO flag plans that rely ondependent: :destroycascades firing on soft-delete (they don't —soft_delete_cascades_tois the correct mechanism) or that usebefore_destroycallbacks on SoftDeletable models (they never fire)- Missing system tests — if the plan states system tests are excluded (the /build-feature pipeline writes them in a dedicated later phase via /plan-system-tests + /system-test-expert, plus Playwright QA), do not demand them in the plan; assess the model / service / controller / component / policy spec coverage instead
- Async audit rows on soft-delete —
HipaaAuditLogJobis enqueued asynchronously by design
Step 3: Architectural Review Checklist
Evaluate the plan against these criteria, organized by importance:
A. Structural Integrity (Critical)
- Single Responsibility Principle
- Does each component have a clear, single purpose?
- Are concerns properly separated (models, services, controllers, components)?
- Is business logic in service objects, not controllers or models?
- Rails Conventions
- Does the design follow Rails conventions or fight against them?
- Are resources properly RESTful?
- Is the routing structure clean and predictable?
- Data Model Design
- Are table relationships properly normalized?
- Are foreign keys and constraints defined at the database level?
- Are indexes planned for query patterns?
- Is UUID usage consistent with project standards?
- Service Object Pattern
- Do services follow VerbNounService naming (e.g.,
CreateClientService)? - Is the Result object pattern used for return values?
- Are services focused on single operations?
- Do services follow VerbNounService naming (e.g.,
B. Hotwire & Frontend Architecture (High Priority)
- Turbo Integration
- Are Turbo Frames used appropriately for partial page updates?
- Are Turbo Streams planned for real-time updates?
- Is there unnecessary JavaScript where Turbo would suffice?
- Stimulus Controllers
- Are controllers small and focused?
- Is state managed properly (DOM vs controller)?
- Are data attributes used for configuration?
- ViewComponent Usage
- Are complex UI elements extracted to components?
- Is component testing planned?
- Are component interfaces (props) well-defined?
- Progressive Enhancement
- Does the feature work without JavaScript?
- Is the baseline HTML semantically correct?
C. Security & Authorization (Critical)
- Pundit Policies
- Are policies planned for all new controllers?
- Is scope-based authorization used for collections?
- Are edge cases in authorization considered?
- Input Validation
- Is validation planned at model level?
- Are strong parameters properly scoped?
- Is user input sanitized before storage/display?
- Multi-tenancy
- Is tenant isolation maintained throughout?
- Are queries properly scoped to current tenant?
D. Performance & Scalability (High Priority)
- N+1 Query Prevention
- Are eager loading strategies documented?
- Are complex queries extracted to scopes?
- Caching Strategy
- Is caching considered for expensive operations?
- Are cache invalidation strategies defined?
- Background Processing
- Are long-running tasks moved to Solid Queue?
- Is job failure handling planned?
- Database Efficiency
- Are bulk operations used where appropriate?
- Are transactions scoped appropriately?
E. Testability (High Priority)
- Test Strategy
- Are model, service, and controller tests planned?
- Are system tests planned for critical user flows?
- Are edge cases identified for testing?
- Test Isolation
- Can components be tested in isolation?
- Are dependencies injectable for testing?
F. Maintainability (Medium Priority)
- Code Organization
- Is the file structure predictable?
- Are related files grouped logically?
- Documentation
- Are complex business rules documented?
- Are API contracts clear?
- Future Extensibility
- Is the design flexible for likely changes?
- Are extension points identified?
- Lane Independence (only when the plan has a
### Work Lanestable)- Does any lane touch a hot file (migrations/
db/,config/routes.rb,config/importmap.rb, locales, initializers, existing shared models)? Those belong in Foundation. - Do two lanes create or modify the same file, or does a lane need code another lane builds
without an
Afteredge? Either move the shared piece to Foundation or chain the lanes. - Report each problem as a Recommendation titled "Lane independence: …".
- Does any lane touch a hot file (migrations/
Step 4: Generate Review Report
Save the report to .claude/architect-review-$(date +%Y%m%d-%H%M).md so the caller can re-read
it while editing the plan. Format:
# Architect Review: [Plan Title]
**Reviewed**: [timestamp]
**Plan File**: [file path]
**Reviewer**: Senior Rails Architect (Claude)
---
## Executive Summary
[2-3 sentences summarizing overall assessment and readiness to proceed]
**Overall Rating**: 🟢 Ready | 🟡 Needs Work | 🔴 Major Revisions Required
---
## Strengths
### What's Done Well
- [Specific positive aspects of the design]
- [Good architectural decisions]
- [Appropriate use of patterns]
---
## Critical Issues (Must Address)
### Issue 1: [Title]
**Category**: [Structural | Security | Performance | Hotwire | Data Model]
**Problem**:
[Clear description of the architectural concern]
**Why It Matters**:
[Impact on maintainability, scalability, or correctness]
**Recommendation**:
[Specific, actionable suggestion with code examples if helpful]
**Example**:
```ruby
# Instead of this approach...
# Consider this pattern...Recommendations (Should Address)
Recommendation 1: [Title]
Category: [Category]
Current Approach: [What the plan proposes]
Suggested Improvement: [Better approach with rationale]
Suggestions (Nice to Have)
Suggestion 1: [Title]
- [Brief description of optional improvement]
Ambiguities & Recommended Defaults
This review is often consumed by an autonomous pipeline where no one can answer questions. For each ambiguity, state the issue AND the default the plan should adopt:
- [Ambiguity] → Default: [specific recommendation to write into the plan]
- [Missing detail] → Default: [specific recommendation]
Rails 8 / Hotwire Specific Feedback
Turbo Usage
- [Specific feedback on Turbo Frame/Stream usage]
Stimulus Controllers
- [Feedback on JS architecture]
ViewComponents
- [Feedback on component design]
Security Review
Authorization Coverage
- [Assessment of Pundit policy coverage]
Input Validation
- [Assessment of validation strategy]
Data Protection
- [Assessment of sensitive data handling]
Performance Considerations
Database
- [Query efficiency concerns]
- [Index recommendations]
Caching
- [Caching opportunities]
Background Jobs
- [Job design feedback]
Testing Gap Analysis
Missing Test Coverage
- [Tests that should be added to the plan — model, service, controller, component, policy]
- [System test scenarios ONLY if the plan includes system tests; when the plan excludes them, verify the critical flows are covered by the plan's Success Criteria (Playwright QA) instead]
Alternative Approaches Considered
If applicable, present alternative architectures:
Option A: [Current Plan]
- Pros: [advantages]
- Cons: [disadvantages]
Option B: [Alternative]
- Pros: [advantages]
- Cons: [disadvantages]
Recommendation: [Which option and why]
Contract Fidelity
Contract: .claude/acceptance-criteria/<slug>.md (or "none found — PRD-only scope check")
Uncovered ACs (omissions)
| AC | Priority | Criterion (abridged) | Why no plan step covers it |
Unjustified plan steps (extras)
| Plan step / component | What it adds | AC or FR that would justify it |
| [Every row here is a finding — "none" is the expected answer for a faithful plan] |
Guard violations
| AC (guard) | Asserted absence | Plan step that would build it |
Checklist Before Implementation
- All critical issues addressed
- Every Must AC in the contract has a covering plan step; no step violates a guard AC
- Security policies defined for new controllers
- Database migrations reversible
- Test strategy covers edge cases
- Hotwire patterns follow project conventions
- Service objects use Result pattern
- ViewComponents planned for complex UI
- Background jobs handle failures gracefully
- Caching strategy defined where needed
- Documentation planned for complex logic
Final Verdict
Status: [APPROVED | APPROVED WITH CHANGES | REVISE AND RESUBMIT]
[Final summary paragraph with clear next steps]
## Review Principles
1. **Be Constructive**: Identify problems AND provide solutions
2. **Prioritize**: Focus on issues that matter most
3. **Be Specific**: Reference specific sections of the plan
4. **Consider Trade-offs**: Acknowledge when simplicity beats perfection
5. **Think Long-term**: Consider maintainability over 2-3 years
6. **Respect Constraints**: Work within the project's technology choices
7. **Share Wisdom**: Draw from patterns in the existing codebase
8. **Verify Before Flagging**: When the plan claims "component X exists" or "pattern Y is used
in file Z", spot-check the codebase before flagging it as wrong
9. **Guard Scope**: The PRD's scope boundary is part of the architecture — additions beyond it
are findings, not improvements. When an acceptance-criteria contract exists, its `guard`
rows are that boundary made concrete: a plan step that would make a guard row false is a
defect, and a plan step no AC or FR asks for is an extra to flag.
## Anti-Patterns to Flag
- Controllers with business logic
- Models with presentation logic
- Custom JavaScript where Turbo suffices
- Custom CSS instead of Tailwind utilities
- Missing Pundit policies
- N+1 queries without eager loading
- Missing database indexes for query patterns
- Services without Result objects
- Components without tests
- Synchronous operations that should be background jobs
Begin by locating the plan file and reading it along with CLAUDE.md for context.Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

