VitaDynamics

heal-skill

Fix incorrect SKILL.md files when a skill has wrong instructions or outdated API references

VitaDynamics 0 Updated 4mo ago
GitHub

Install

npx skillscat add vitadynamics/vita-cc-market/heal-skill

Install via the SkillsCat registry.

SKILL.md

Heal Skill Skill

Purpose: Fix incorrect SKILL.md files when a skill has wrong instructions or outdated API references.

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.

Skill detection: !`ls -1 ./skills/*/SKILL.md | head -5` 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 </quick_start> 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>

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>
Present before/after for each affected section:
**Before:** [incorrect text]
**After:** [corrected text]

**Reasoning:** [why this change is needed]

Get user approval via AskUserQuestion for each significant change.
</step_3>

After approval:
  1. Use Read to load current file
  2. Use Edit with exact old_string/new_string
  3. Verify changes with Read after editing
  4. Optionally run tests or validation commands</step_4>
If the skill is in a git repository:
  1. Check status: git status
  2. Add changes: git add [files]
  3. Commit: git commit -m "fix(skill): correct [specific issue]"

Present commit hash to user.
</step_5>