基于 SOC 职业分类
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/wrtnlabs/autobe --skill validate-provider命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
| name | validate-provider |
| description | Validate Providers against interfaces (read-only) |
| allowed-tools | Read, Grep, Glob |
Validate that Providers, Collectors, and Transformers properly implement the interfaces. This skill only checks for discrepancies - it does NOT modify any files.
Compare interface definitions with provider implementations and report:
┌─────────────────────────────────────┐
│ Step 1: Read Interfaces │
│ /src/api/structures/ │
└───────────────┬─────────────────────┘
│
▼
┌─────────────────────────────────────┐
│ Step 2: Read Providers │
│ /src/providers/ │
│ /src/collectors/ │
│ /src/transformers/ │
└───────────────┬─────────────────────┘
│
▼
┌─────────────────────────────────────┐
│ Step 3: Compare & Report │
│ - Missing providers │
│ - Missing collectors │
│ - Missing transformers │
│ - Type safety issues │
└─────────────────────────────────────┘
find src/api/structures -name "I*.ts" -type f
For each interface, identify:
# Providers
find src/providers -name "*.ts" -type f
# Collectors
find src/collectors -name "*Collector.ts" -type f
# Transformers
find src/transformers -name "*Transformer.ts" -type f
For each interface:
For each interface with ICreate:
For each interface:
Search for anti-patterns:
as any usageany type annotationsas Type)# Validation Report: Providers
## Summary
- Interfaces: X
- Providers found: Y
- Collectors found: Z
- Transformers found: W
## ✅ Valid Items
- [Provider] `postEntity` - Uses Collector, returns via Transformer
- [Collector] `EntityCollector` - Properly typed
- [Transformer] `EntityTransformer` - All methods present
## ❌ Issues Found
- [Missing Collector] `AnotherEntity` - No collector for ICreate
- [Missing Transformer] `AnotherEntity` - No transformer defined
- [Type Safety] `postEntity.ts:27` - Uses `as any`
- [Type Safety] `getEntity.ts:15` - Inline transformation instead of Transformer
## ⚠️ Warnings
- [Unused Import] `postEntity.ts` - Imports unused module
- [Missing Null Check] `getEntity.ts:20` - Should check for null before transform
## Recommendation
Run `/fix-provider` to fix the issues above.
This skill is READ-ONLY.
To fix issues, use /fix-provider skill.