repair-skillmd
Fix SKILL.md frontmatter and structure issues — missing name, outputs, checks, malformed YAML
- License 许可
- MIT
- 最近更新
- 2026-06-13
- Stars
- ★ 3
- Forks
- 1
01 前言 Front Matter
- name
- repair-skillmd
- tags
- [ "repair", "gap:output", "gap:check-failed", "gap:seed" ]
- context
- [ { "type": "gap", "fields": [ "gapKind", "unitPath", "taskTitle", "taskId" ] }, { "path": "{unitPath}", "type": "file", "label": "skill-source" }, { "type": "ai", "label": "issue-analysis", "tools": [ "Read" ], "prompt": "Read the SKILL.md file at `{unitPath}` and check for these issues: 1. Missing `name` field in YAML frontmatter 2. Missing or empty `outputs` array 3. Missing or empty `checks` array 4. Checks with missing id/cmd/description fields 5. `allowed-tools` not being an array 6. Missing or very short body (< 50 chars of instructions) 7. Malformed YAML syntax\nFor each issue found, state: what's wrong, where it is, and what the fix should be. Be specific — include the exact YAML that needs to change.\n", "timeoutMs": 30000 } ]
- description
- Fix SKILL.md frontmatter and structure issues — missing name, outputs, checks, malformed YAML
- allowed-tools
- [ "Read", "Write", "Edit", "Bash" ]
03 SKILL.md 正文
Repair SKILL.md
Fix structural issues in a SKILL.md task definition file.
Step 1: Read Context
- Read
repair-context/gap.md— what gap triggered this - Read
repair-context/issue-analysis.md— AI pre-analysis of what's wrong - Read
repair-context/skill-source.md— the actual SKILL.md content - Read
repair-context/history.md(if exists)
Step 2: Fix Issues
Apply fixes based on the issue analysis. Common fixes:
| Issue | Fix |
|---|---|
Missing name |
Extract from directory name |
Missing outputs |
Read the task body to infer what it should produce |
Missing checks |
Add test -f checks for each output |
| Invalid check format | Add missing id/cmd/description fields |
allowed-tools not array |
Convert to [Read, Write, Edit, Bash] |
| Missing body | Keep existing body, add structure if completely empty |
| Malformed YAML | Fix the YAML syntax — ensure proper indentation and quoting |
Step 3: Edit the File
Use the Edit tool to make targeted changes to the SKILL.md file.
Create a .backup copy first:
cp "{unitPath}" "{unitPath}.backup"
Rules:
- Preserve the existing body content — don't rewrite instructions
- Only fix the frontmatter issues identified in the analysis
- Ensure the
---delimiters are present and correct - Use proper YAML formatting (2-space indent, no tabs)
Step 4: Verify
# Check YAML is valid
node -e "require('yaml').parse(require('fs').readFileSync('{unitPath}','utf8').match(/^---\n([\s\S]*?)\n---/)[1])"
04 同仓库更多 Skills
hello-checker
Use this skill when asked to "verify", "check", or "validate" a file's existence and content. It provides a reliable workflow for confirming files meet their spec.
ask-skill
暂无简介
html-review-artifact
Framework-wide guidance for crafting polished human-review artifacts as markdown or HTML
converge-planning
Design a Converge playbook end-to-end. Use when the user says "plan a project", "design a playbook", "decompose into tasks", "scaffold a Converge workflow", "onboard to Converge", or asks how to write TASK.md / playbook.yml. Two entry points: plan a new playbook or update an existing one. Hand off to `/converge-control` after producing the playbook structure.
converge-control
Operate a Converge playbook end-to-end — start runs, monitor progress, narrow failures with `--select`, inspect runtime state, validate definitions, surgically reset subtrees, and stop stuck or orphaned runs. Use this skill whenever the user says "run my playbook", "execute this", "monitor the run", "converge failed", "the run is stuck", "retry failures", "babysit this playbook", "what's the status?", "show me the gantt", or asks how to use `converge run` / `--select` / `inspect` / `doctor` / `clean` / `stop`. Also use it for `HTTP 401` / `Invalid API key` failures on the first task — those are environment-not-playbook problems — and for any post-run cleanup work. Hand off to `converge-planning` if the user wants to design or restructure the playbook itself.
repair-taskts
Fix task.ts definition issues — Seed syntax, missing .build(), empty checks, import errors, TypeScript errors