Files
ClawSkills/claw-skills/workflows/fix-skills.md
zhi 795a710376 refactor: enforce layer responsibilities across all skills
Rewrote docs/standard.md as the single source of truth for skill
structure (menu/tools/recipes/manual analogy). Trimmed all SKILL.md
files to pure routers, moved recruitment workflow out of SKILL.md
into workflows/recruitment.md, removed duplicated standards from
workflow files.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-17 20:40:16 +00:00

1.3 KiB

Fix Skills

When a skill or its scripts fail to produce expected results, or throw errors.

See {baseDir}/docs/standard.md for skill structure and layer responsibilities.

Principle

Do not resort to workarounds lightly. Identify the root cause first, then fix properly.

Process

1. Gather Information

  • Record the triggering scenario: how it was called, expected result, actual result
  • Record the error output in full (stack traces, debug output)
  • Confirm the environment: model version, node, skill version (git log helps)

2. Analyze Root Cause

Investigate in this order:

  1. Are inputs/parameters correct? — Do they match what the script expects?
  2. Are dependencies satisfied? — Required secrets, tokens, config files present?
  3. Is there a bug in the script logic? — Read the source, add set -x if needed
  4. Is there a design flaw? — Does the logic actually cover this scenario?

3. Pinpoint the File

  • Identify which file and which line the problem is in
  • If it's a skill issue → follow the improve-skills workflow
  • If it's an environment issue → document in memory/

4. Fix

  • Test the fix locally
  • If skill files need modification → follow improve-skills process
  • Avoid introducing new side effects

5. Verify

  • Reproduce the original scenario; confirm the issue is resolved