بنقرة واحدة
validate-interface
Validate Controllers and DTOs against requirements (read-only)
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Validate Controllers and DTOs against requirements (read-only)
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Implement new feature with self-testing loop until 100% pass
Fix Prisma schema compilation errors
Fix Interface and Controller compilation errors
Fix Provider, Collector, Transformer compilation errors
Fix Test compilation errors
Validate Prisma schema against requirements specification (read-only)
| name | validate-interface |
| description | Validate Controllers and DTOs against requirements (read-only) |
| allowed-tools | Read, Grep, Glob |
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.