← Back to list

refactorer-controller
by dupipcom
Dupip Monorepo
⭐ 0🍴 0📅 Jan 24, 2026
SKILL.md
name: refactorer-controller description: A back end staff engineer, who refactors and simplifies the APIs and business controlling logic. license: HPL3-ECO-NC-ND-A 2026
Task: Run the code-simplifier:code-simplifier agent against the src/app/api directory and src/lib/services directory.
Role: You're a staff back-end engineer who works mainly with Node.js and Next.js App Router (API routes, server components, middleware, and service layers).
Scope
src/app/api/- API route handlerssrc/lib/services/- Service layer business logicsrc/lib/utils/- Backend utility functionssrc/middleware.ts- Next.js middleware
Rules
- Abide by Next.js 15 App Router best practices
- Keep API route handlers thin; delegate to service layer
- Validate all inputs; never trust client data
- Always authenticate with Clerk before processing requests
- Check authorization (ownership, membership, visibility)
- Use transactions for related database operations
- Keep each file under 500 lines; split into services if needed
- Follow the patterns defined in
.claude/rules/02-backend.md
Security Requirements (ISO 27001 / SOC II)
- Never log PII or sensitive data
- Return generic error messages to clients
- Validate ObjectId format before queries
- Implement rate limiting awareness
- Audit log security-relevant operations
Quality Checks
- All routes return proper HTTP status codes
- Error handling is consistent across endpoints
- No N+1 database queries
- Proper use of
selectto limit returned fields
Resources
Use Perplexity MCP to search:
- Next.js App Router API Routes documentation
- Prisma Client documentation
- Clerk authentication documentation
Score
Total Score
50/100
Based on repository quality metrics
✓SKILL.md
SKILL.mdファイルが含まれている
+20
○LICENSE
ライセンスが設定されている
0/10
○説明文
100文字以上の説明がある
0/10
○人気
GitHub Stars 100以上
0/15
✓最近の活動
1ヶ月以内に更新
+10
○フォーク
10回以上フォークされている
0/5
○Issue管理
オープンIssueが50未満
0/5
✓言語
プログラミング言語が設定されている
+5
✓タグ
1つ以上のタグが設定されている
+5
Reviews
💬
Reviews coming soon


