* Update create-agent-skills to match 2026 official docs, add /triage-prs command - Rewrite SKILL.md to document that commands and skills are now merged - Add new frontmatter fields: disable-model-invocation, user-invocable, context, agent - Add invocation control table and dynamic context injection docs - Fix skill-structure.md: was incorrectly recommending XML tags over markdown headings - Update official-spec.md with complete 2026 specification - Add local /triage-prs command for PR triage workflow - Add PR triage plan document Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * [2.31.0] Reduce context token usage by 79%, include recent community contributions The plugin was consuming 316% of Claude Code's description character budget (~50,500 chars vs 16,000 limit), causing components to be silently excluded. Now at 65% (~10,400 chars) with all components visible. Changes: - Trim all 29 agent descriptions (move examples to body) - Add disable-model-invocation to 18 manual commands - Add disable-model-invocation to 6 manual skills - Include recent community contributions in changelog - Fix component counts (29 agents, 24 commands, 18 skills) Contributors: @trevin, @terryli, @robertomello, @zacwilliams, @aarnikoskela, @samxie, @davidalley Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * Fix: keep disable-model-invocation off commands called by /lfg, rename xcode-test - Remove disable-model-invocation from test-browser, feature-video, resolve_todo_parallel — these are called programmatically by /lfg and /slfg - Rename xcode-test to test-xcode to match test-browser naming convention Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * Fix: keep git-worktree skill auto-invocable (used by /workflows:work) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * feat(converter): support disable-model-invocation frontmatter Parse disable-model-invocation from command and skill frontmatter. Commands/skills with this flag are excluded from OpenCode command maps and Codex prompt/skill generation, matching Claude Code behavior where these components are user-only invocable. Bump converter version to 0.3.0. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
144 lines
3.9 KiB
Markdown
144 lines
3.9 KiB
Markdown
---
|
|
name: heal-skill
|
|
description: Fix incorrect SKILL.md files when a skill has wrong instructions or outdated API references
|
|
argument-hint: [optional: specific issue to fix]
|
|
allowed-tools: [Read, Edit, Bash(ls:*), Bash(git:*)]
|
|
disable-model-invocation: true
|
|
---
|
|
|
|
<objective>
|
|
Update a skill's SKILL.md and related files based on corrections discovered during execution.
|
|
|
|
Analyze the conversation to detect which skill is running, reflect on what went wrong, propose specific fixes, get user approval, then apply changes with optional commit.
|
|
</objective>
|
|
|
|
<context>
|
|
Skill detection: !`ls -1 ./skills/*/SKILL.md | head -5`
|
|
</context>
|
|
|
|
<quick_start>
|
|
<workflow>
|
|
1. **Detect skill** from conversation context (invocation messages, recent SKILL.md references)
|
|
2. **Reflect** on what went wrong and how you discovered the fix
|
|
3. **Present** proposed changes with before/after diffs
|
|
4. **Get approval** before making any edits
|
|
5. **Apply** changes and optionally commit
|
|
</workflow>
|
|
</quick_start>
|
|
|
|
<process>
|
|
<step_1 name="detect_skill">
|
|
Identify the skill from conversation context:
|
|
|
|
- Look for skill invocation messages
|
|
- Check which SKILL.md was recently referenced
|
|
- Examine current task context
|
|
|
|
Set: `SKILL_NAME=[skill-name]` and `SKILL_DIR=./skills/$SKILL_NAME`
|
|
|
|
If unclear, ask the user.
|
|
</step_1>
|
|
|
|
<step_2 name="reflection_and_analysis">
|
|
Focus on $ARGUMENTS if provided, otherwise analyze broader context.
|
|
|
|
Determine:
|
|
- **What was wrong**: Quote specific sections from SKILL.md that are incorrect
|
|
- **Discovery method**: Context7, error messages, trial and error, documentation lookup
|
|
- **Root cause**: Outdated API, incorrect parameters, wrong endpoint, missing context
|
|
- **Scope of impact**: Single section or multiple? Related files affected?
|
|
- **Proposed fix**: Which files, which sections, before/after for each
|
|
</step_2>
|
|
|
|
<step_3 name="scan_affected_files">
|
|
```bash
|
|
ls -la $SKILL_DIR/
|
|
ls -la $SKILL_DIR/references/ 2>/dev/null
|
|
ls -la $SKILL_DIR/scripts/ 2>/dev/null
|
|
```
|
|
</step_3>
|
|
|
|
<step_4 name="present_proposed_changes">
|
|
Present changes in this format:
|
|
|
|
```
|
|
**Skill being healed:** [skill-name]
|
|
**Issue discovered:** [1-2 sentence summary]
|
|
**Root cause:** [brief explanation]
|
|
|
|
**Files to be modified:**
|
|
- [ ] SKILL.md
|
|
- [ ] references/[file].md
|
|
- [ ] scripts/[file].py
|
|
|
|
**Proposed changes:**
|
|
|
|
### Change 1: SKILL.md - [Section name]
|
|
**Location:** Line [X] in SKILL.md
|
|
|
|
**Current (incorrect):**
|
|
```
|
|
[exact text from current file]
|
|
```
|
|
|
|
**Corrected:**
|
|
```
|
|
[new text]
|
|
```
|
|
|
|
**Reason:** [why this fixes the issue]
|
|
|
|
[repeat for each change across all files]
|
|
|
|
**Impact assessment:**
|
|
- Affects: [authentication/API endpoints/parameters/examples/etc.]
|
|
|
|
**Verification:**
|
|
These changes will prevent: [specific error that prompted this]
|
|
```
|
|
</step_4>
|
|
|
|
<step_5 name="request_approval">
|
|
```
|
|
Should I apply these changes?
|
|
|
|
1. Yes, apply and commit all changes
|
|
2. Apply but don't commit (let me review first)
|
|
3. Revise the changes (I'll provide feedback)
|
|
4. Cancel (don't make changes)
|
|
|
|
Choose (1-4):
|
|
```
|
|
|
|
**Wait for user response. Do not proceed without approval.**
|
|
</step_5>
|
|
|
|
<step_6 name="apply_changes">
|
|
Only after approval (option 1 or 2):
|
|
|
|
1. Use Edit tool for each correction across all files
|
|
2. Read back modified sections to verify
|
|
3. If option 1, commit with structured message showing what was healed
|
|
4. Confirm completion with file list
|
|
</step_6>
|
|
</process>
|
|
|
|
<success_criteria>
|
|
- Skill correctly detected from conversation context
|
|
- All incorrect sections identified with before/after
|
|
- User approved changes before application
|
|
- All edits applied across SKILL.md and related files
|
|
- Changes verified by reading back
|
|
- Commit created if user chose option 1
|
|
- Completion confirmed with file list
|
|
</success_criteria>
|
|
|
|
<verification>
|
|
Before completing:
|
|
|
|
- Read back each modified section to confirm changes applied
|
|
- Ensure cross-file consistency (SKILL.md examples match references/)
|
|
- Verify git commit created if option 1 was selected
|
|
- Check no unintended files were modified
|
|
</verification>
|