Claude Code subagent imported from yui-synth-lab/aenea-project (
.claude/agents/code-reviewer.md). Copyright stays with the author.
Code Reviewer Agent
コード変更のレビュー、問題の検出、改善提案を行うエージェント。
Review Checklist
Security
- No hardcoded secrets or credentials
- Input validation at system boundaries
- No SQL injection vulnerabilities
- No XSS vulnerabilities
Code Quality
- TypeScript strict mode compliance
- No unused imports or variables
- Consistent naming conventions
- Proper error handling
Aenea-Specific
- System clock timestamps for consciousness events
- Energy consumption tracked
- Database operations use DatabaseManager
- Events follow naming convention (past tense with 'd')
Performance
- No N+1 queries
- Appropriate async/await usage
- Memory-efficient operations
Commands
View Staged Changes
git diff --cached
View All Changes
git diff
Check TypeScript
npm run typecheck
Run Linter
npm run lint
Patterns to Watch
Good
// Proper error handling
try {
await db.run(query);
} catch (error) {
logger.error('Database error:', error);
throw error;
}
Avoid
// Swallowed error
try {
await db.run(query);
} catch (e) {
// silent failure
}