rysweet/amplihack/pr-review-assistant

Claude Code and agent skill by rysweet/amplihack

Trust tier 2
  • community
LLM review pending
Source check pending

Checking that the SKILL.md file is still in the repository.

Philosophy-aware PR reviews checking alignment with amplihack principles. Use when reviewing PRs to ensure ruthless simplicity, modular design, and zero-BS implementation. Suggests simplifications, identifies over-engineering, verifies brick module structure. Posts detailed, constructive review comments with specific file:line references.

Install

npx vskill@latest install rysweet/amplihack/pr-review-assistant

SKILL.md

PR Review Assistant Skill

Purpose

Philosophy-aware pull request reviews that go beyond syntax and style to check alignment with amplihack's core development principles. This skill reviews PRs not just for correctness, but for ruthless simplicity, modular architecture, and zero-BS implementation.

When to Use This Skill

  • PR Code Reviews: Review PRs against amplihack philosophy principles
  • Philosophy Compliance: Check that code embodies ruthless simplicity and brick module design
  • Refactoring Suggestions: Identify over-engineering and suggest concrete simplifications
  • Architecture Verification: Verify modular design and clear contracts
  • Test Coverage: Assess test adequacy for changed functionality
  • Design Assessment: Catch over-engineering before it gets merged

Core Philosophy: What We Review For

1. Ruthless Simplicity

Every line of code must justify its existence. We ask:

  • Can this be simpler? Does each function do one thing well?
  • Is this necessary now? Or is it future-proofing?
  • Are there unnecessary abstractions? Extra layers that don't add value?
  • Can we remove lines? The best code is code that doesn't exist.
2. Modular Architecture (Brick & Studs)

Code should be organized as self-contained modules with clear connections:

  • Brick = Self-contained module with ONE clear responsibility
  • Stud = Public contract (functions, API, data models) others connect to
  • Regeneratable = Can be rebuilt from specification without breaking connections
3. Zero-BS Implementation

No shortcuts, stubs, or technical debt:

  • No TODOs in code = Actually implement or don't include it
  • No NotImplementedError = Except in abstract base classes
  • No mock data = Real functionality from the start
  • No dead code = Remove unused code
  • Every function works = Or it doesn't exist
4. Quality Over Speed
  • Robust implementations = Better than quick fixes
  • Long-term maintainability = Not short-term gains
  • Clear error handling = Errors visible, not swallowed
  • Tested behavior = Verify contracts at module boundaries

Review Process

Step 1: Understand the Changes

Start by understanding what the PR changes:

  1. Read the PR description to understand intent
  2. Identify affected modules and their scope
  3. Note the dependencies changed or added
  4. Understand the problem being solved
Step 2: Check Philosophy Alignment

Review each change against amplihack principles:

Ruthless Simplicity Check
  • Is every line necessary?
  • Are there unnecessary abstractions?
  • Could this be implemented more simply?
  • Is there future-proofing or speculation?
  • Are there duplicate or similar functions?
  • Could conditional logic be simplified?
Module Structure Check
  • Does the change respect module boundaries?
  • Are public contracts clear and documented?
  • Are internal utilities isolated?
  • Does the module have ONE clear responsibility?
  • Are there circular dependencies?
Zero-BS Check
  • Are there TODOs or NotImplementedError calls?
  • Are mock or test data exposed in production code?
  • Is error handling explicit and visible?
  • Are all functions working implementations?
  • Is there dead code or unused variables?
Step 3: Identify Over-Engineering

Look for common over-engineering patterns:

  • Over-abstraction: Base classes, protocols, factories for no clear benefit
  • Generic "frameworks": Building infrastructure for hypothetical needs
  • Premature optimization: Complex algorithms for non-critical paths
  • Configuration complexity: 50-line config when 5-line default would work
  • Future-proofing: "We might need this someday" code
  • Excessive layering: More indirection than necessary
  • Over-parameterization: Functions with 8+ parameters instead of simpler approach
Step 4: Verify Brick Module Structure

If new modules or module changes:

  • Single responsibility? What is the ONE thing this module does?
  • Clear public interface? What's exported and why?
  • Internal isolation? Are utilities contained within module?
  • Dependencies documented? What does it depend on?
  • Tests included? Does spec define test requirements?
  • Examples provided? Is usage clear?
  • Regeneratable? Could this be rebuilt from a specification?
Step 5: Check Test Coverage

Adequate testing is crucial:

  • Contract verification: Tests verify public interface behavior
  • Edge cases covered: Null, empty, boundary conditions tested
  • Error paths tested: Exceptions raised when expected
  • Integration tested: Module connections verified
  • Coverage adequate: 85%+ for changed code
Step 6: Provide Constructive Feedback

When suggesting changes:

  1. Be specific: Reference file:line numbers
  2. Explain why: What principle is violated?
  3. Suggest how: Provide concrete examples
  4. Be respectful: Focus on code, not person
  5. Acknowledge good work: Recognize what's done well

Concrete Review Checklist

Ruthless Simplicity
  • [ ] Every function has single clear purpose
  • [ ] No unnecessary abstraction layers
  • [ ] No future-proofing or speculation
  • [ ] No duplicate logic or functions
  • [ ] Conditional logic is straightforward
  • [ ] Variable names are clear and self-documenting
  • [ ] Function signatures aren't over-parameterized
Modular Architecture
  • [ ] Module has ONE clear responsibility
  • [ ] Public interface is minimal and clear
  • [ ] Internal utilities properly isolated
  • [ ] Dependencies are explicit
  • [ ] No circular dependencies
  • [ ] Clear contracts at boundaries
  • [ ] Module can be understood independently
Zero-BS Implementation
  • [ ] No TODOs, NotImplementedError, or stubs
  • [ ] No mock/test data in production code
  • [ ] No dead code or unused imports
  • [ ] Error handling is explicit and visible
  • [ ] All functions have working implementations
  • [ ] No swallowed exceptions
  • [ ] Clear logging/error messages for debugging
Test Coverage
  • [ ] Public interface is tested
  • [ ] Edge cases covered
  • [ ] Error conditions tested
  • [ ] Integration points verified
  • [ ] Coverage adequate (85%+)
  • [ ] Tests verify contract, not implementation
Documentation
  • [ ] Docstrings are clear and complete
  • [ ] Public interface documented
  • [ ] Examples provided for new features
  • [ ] Module README updated if needed
  • [ ] Type hints present and accurate

Example Reviews

Example 1: Identifying Over-Engineering

PR: Add user permission checking to API

Code Changed:

python
class PermissionValidator:
def __init__(self):
self.cache = {}
def validate(self, user, resource):
if user in self.cache:
return self.cache[user]
result = self._complex_validation(user, resource)
self.cache[user] = result
return result
def _complex_validation(self, user, resource):
# Complex business logic...
pass

Review Comment:

`
FILE: permissions.py (lines 10-25)
This over-engineers the permission checking with caching that may not be needed.
The caching layer adds complexity without proven benefit:
1. Cache can become stale if user permissions change
2. Unclear when/if cache should be invalidated
3. In-memory cache doesn't scale across processes
4. Permission checks are usually not in hot paths
SUGGESTION - Start simpler:

def check_permission(user, resource): """Check if user can access resource.""" # Direct implementation return user.has_access_to(resource)

`
If caching is needed later, add it when profiling shows it helps.
This aligns with ruthless simplicity: don't add complexity until proven necessary.
Example 2: Identifying Lack of Regeneration Documentation

PR: Add new authentication module

Code Changed: New file ~/.amplihack/.claude/tools/auth/auth.py

Review Comment:

FILE: .claude/tools/auth/ (new module)
Good: Module has clear responsibilities (JWT validation, token refresh).
Issue: Missing specification documentation for module regeneration.
Brick Philosophy Requirement: Modules should be regeneratable from spec.
ACTION NEEDED:
1. Create Specs/authentication.md with:
- Clear purpose and scope
- Public interface (exported functions)
- Dependencies listed
- Test requirements
- Usage examples
This enables future rebuilding if requirements change.
See .claude/skills/pr-review-assistant/ for specification template.
Example 3: Identifying Zero-BS Issues

PR: Add data processing pipeline

Code Changed:

python
def process_data(data):
"""Process data through pipeline."""
# TODO: Add error handling
result = validate(data)
if not result:
return None # swallowed error
# TODO: Implement caching
return transform(result)

Review Comment:

`
FILE: pipeline.py (lines 5-15)
Zero-BS Issues Found:
1. LINE 6: TODO comments - implement or remove
- "Add error handling" - Either add it now or create issue
- "Implement caching" - Not needed yet; add if profiling shows benefit
2. LINE 10: Swallowed error
- validate() likely raised exception, but returns None
- Make error explicit: raise ValueError("Invalid data")
- Or catch and re-raise with context
3. LINE 8: Silent failures
- If None is returned, caller doesn't know why
- Either raise exception or return Result type
SUGGESTION:

def process_data(data): """Process data through pipeline.

Raises: ValueError: If data validation fails """ result = validate(data) # Raises if invalid return transform(result)

`
All code is production-ready, no TODOs.
Example 4: Identifying Missing Tests

PR: Add user role management

Code Changed: New class RoleManager in user module

Review Comment:

FILE: user.py (lines 50-100)
New functionality added without adequate tests.
ISSUE: RoleManager public interface not tested
- add_role(user, role) - add success case
- remove_role(user, role) - add success case
- get_roles(user) - test empty, single, multiple
- is_admin(user) - test true/false cases
EDGE CASES MISSING:
- [ ] duplicate role assignment (should be idempotent)
- [ ] removing non-existent role (should not error)
- [ ] get_roles on user with no roles (should return empty)
CONTRACT VERIFICATION:
- [ ] Functions accept documented types
- [ ] Return types match documentation
- [ ] Exceptions raised as documented
ADD: tests/test_role_manager.py with 85%+ coverage
Example 5: Recognizing Good Design

PR: Add simplified config loader

Code Changed:

python
def load_config(path):
"""Load YAML config from file.
Args:
path: Path to config file
Returns:
dict: Parsed config
Raises:
FileNotFoundError: If file doesn't exist
ValueError: If YAML is invalid
"""
with open(path) as f:
try:
return yaml.safe_load(f)
except yaml.YAMLError as e:
raise ValueError(f"Invalid YAML: {e}") from e

Review Comment:

EXCELLENT - This is exactly the simplicity we want:
✅ Single responsibility: Load and parse YAML
✅ Clear error handling: Explicit exceptions with context
✅ No TODOs or stubs: Production ready
✅ Complete documentation: Clear args, returns, exceptions
✅ No over-engineering: Direct implementation
✅ Testable: Clear behavior to verify
This is a model example of ruthless simplicity.

Feedback Template

When commenting on PRs, use this structure:

markdown
**FILE**: path/to/file.py (lines X-Y)
**ISSUE**: [Principle violated - Simplicity/Modularity/Zero-BS/Tests/Docs]
**WHAT**: [Describe what's in the code]
**WHY IT'S PROBLEMATIC**: [How it violates amplihack principles]
**SUGGESTION**: [Concrete code example or approach]
**REFERENCE**: [Link to relevant philosophy, principle, or example]

This is the start of the file. Read the full SKILL.md on GitHub.

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewNot runA model review is scheduled for the next rescan.

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
63
Repository forks
42
7-day trend score
21

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/rysweet/amplihack/pr-review-assistant/badge)](https://verified-skill.com/skills/rysweet/amplihack/pr-review-assistant)

Something wrong with this skill or its page? Tell us.