Validate Controllers and DTOs against requirements (read-only)
Validate that Controllers and DTO interfaces match the requirements specification. This skill only checks for discrepancies - it does NOT modify any files.
Compare requirements documents with interface definitions and report:
┌─────────────────────────────────────┐
│ Step 1: Read Requirements │
│ /docs/analysis/*.md │
└───────────────┬─────────────────────┘
│
▼
┌─────────────────────────────────────┐
│ Step 2: Read Prisma Schema │
│ /prisma/schema/*.prisma │
└───────────────┬─────────────────────┘
│
▼
┌─────────────────────────────────────┐
│ Step 3: Read Interfaces & Controllers│
│ /src/api/structures/ │
│ /src/controllers/ │
└───────────────┬─────────────────────┘
│
▼
┌─────────────────────────────────────┐
│ Step 4: Compare & Report │
│ - Missing APIs │
│ - Empty interfaces │
│ - Type mismatches │
│ - Missing DTOs │
└─────────────────────────────────────┘
find docs/analysis -name "*.md" -type f
Extract required APIs:
find prisma/schema -name "*.prisma" -type f
Understand data model for DTO validation.
# Controllers
find src/controllers -name "*Controller.ts" -type f
# Interfaces
find src/api/structures -name "I*.ts" -type f
For each required API:
For each interface file:
{}For each DTO property:
Check for redundant path segments where the same word repeats:
/{word}/{word}s - e.g., /admin/admins, /user/users/{word}/{word}-* - e.g., /item/item-details/{prefix}/{prefix}-* - prefix repeated in resource pathFix by removing redundant segment:
/{word}s - e.g., /admins, /users/{prefix}/{resources} - no repetition# Validation Report: Interfaces
## Summary
- Required APIs: X
- Implemented APIs: Y
- Missing APIs: Z
- Empty interfaces: W
## ✅ Valid Items
- [Controller] `AdminEntitiesController` - All methods present
- [Interface] `IEntity` - Properly defined
## ❌ Issues Found
- [Missing API] `DELETE /admin/entities/:id` - Not implemented
- [Empty Interface] `IEntity.ICreate` - No properties defined
- [Type Mismatch] `IEntity.status` - Expected union type, found string
## ⚠️ Warnings
- [Missing Tag] `IEntity.id` - Should have `tags.Format<"uuid">`
- [Nullable] `IEntity.deleted_at` - Should be `(string & tags.Format<"date-time">) | null`
- [Path Naming] `/{word}/{word}s` pattern detected - Redundant path segment, remove duplication
## Recommendation
Run `/fix-interface` to fix the issues above.
This skill is READ-ONLY.
To fix issues, use /fix-interface skill.
Search for places (restaurants, cafes, etc.) via Google Places API proxy on localhost.
Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and advanced queries.
Create or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, references, and assets.
Start voice calls via the OpenClaw voice-call plugin.
Notion API for creating and managing pages, databases, and blocks.
Gemini CLI for one-shot Q&A, summaries, and generation.
Category:developer