用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/tomevault-io/skills-registry --skill template命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
基于 SOC 职业分类
| name | template |
| description | Template for creating skills with Code Before Prompts pattern Use when this capability is needed. |
| metadata | {"author":"davidmoneil"} |
This is the template skill demonstrating the Code Before Prompts pattern. Copy this directory when creating new skills that need deterministic tools.
| Aspect | Description |
|---|---|
| Purpose | Template for new skills with TypeScript tools |
| Pattern | Code Before Prompts |
| When to Use | Creating skills that need file generation, validation, or data processing |
| Need | Action | Command |
|---|---|---|
| List templates | See available templates | npx tsx tools/index.ts list |
| Create document | Generate from template | npx tsx tools/index.ts create <template> "<name>" |
| Validate file | Check against schema | npx tsx tools/index.ts validate <path> |
This skill includes deterministic tools for common operations.
cd .claude/skills/_template
npx tsx tools/index.ts list
# Create a default document
npx tsx tools/index.ts create default "My Document"
# Create a specification
npx tsx tools/index.ts create spec "API Design"
npx tsx tools/index.ts validate ./path/to/file.md
cp -r .claude/skills/_template .claude/skills/my-new-skill
Edit config.json:
name and descriptionAdd .md files to templates/ with placeholders:
{{NAME}} - The name provided to the create command{{DATE}} - Current date (YYYY-MM-DD){{SLUG}} - Name converted to lowercase-with-dashes{{TIMESTAMP}} - Full ISO timestampAdd custom commands to tools/index.ts:
case 'my-custom-command':
// Your deterministic logic here
break;
Document your skill's:
Use CODE for:
Use AI for:
This separation ensures:
| Integration | How It Works |
|---|---|
| TELOS | Links to Goal G-T4 (Deterministic AI Architecture) |
| Pattern | Follows code-before-prompts-pattern.md |
| Skills Index | Listed in _index.md with tools/ marker |
Choose the right tool type for your skill:
| Scenario | Tool Type | Example |
|---|---|---|
| Complex logic, type safety needed | TypeScript (tools/) | Template rendering, validation |
| Simple CLI commands, system ops | Bash (Scripts/) | Docker checks, git operations |
| Data gathering for AI analysis | Bash returning JSON | Health checks, status gathering |
Bash scripts are preferred for:
TypeScript tools are preferred for:
Converted and distributed by TomeVault — claim your Tome and manage your conversions.