content-validator
星标0
分支1
更新时间2026年4月26日 09:29
Validate workbook content JSON files against the Zod schema and report issues
安装
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
SKILL.md
readonly菜单
Validate workbook content JSON files against the Zod schema and report issues
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | content-validator |
| description | Validate workbook content JSON files against the Zod schema and report issues |
Validate workbook lesson JSON files against the project's Zod schema.
dashboard/lib/workbook-schema.ts to understand the current data structure.content_*.json files in the project and all lesson JSON files under dashboard/projects/*/.WorkbookLessonSchema (or LessonContentSchema for individual lessons).activities.vocabulary[2].definition: Required).dashboard/lib/workbook-schema.tsschema.json (root directory)template_data_structure.json (root directory)Use node -e with the Zod schema to perform validation directly:
cd /home/daniel-bo/Desktop/Workbooks/dashboard
node -e "
const { WorkbookLessonSchema } = require('./lib/workbook-schema');
const fs = require('fs');
const data = JSON.parse(fs.readFileSync(process.argv[1], 'utf8'));
const result = WorkbookLessonSchema.safeParse(data);
if (!result.success) {
console.log(JSON.stringify(result.error.issues, null, 2));
process.exit(1);
}
console.log('Valid');
" <file-path>
If the TypeScript import doesn't work directly, use the JSON schema at schema.json with a JSON schema validator instead.