skills/skill-tweaker/SKILL.md
Fix, improve, or update existing Claude Code skills. Use when: (1) User reports a skill isn't working or triggering incorrectly, (2) User wants to adjust skill behavior, (3) User says 'fix skill', 'update skill', 'tweak skill', 'skill not working', 'skill triggers too often'. Edits SKILL.md frontmatter and body, scripts/references/assets, debugs trigger issues.
npx skillsauth add takazudo/claude-resources skill-tweakerInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Find skills at:
$HOME/.claude/skills/<name>/SKILL.md (personal).claude/skills/<name>/SKILL.md (project)Case-sensitivity check (IMPORTANT for macOS): The skill file may be named SKILL.md (uppercase) or skill.md (lowercase). On case-insensitive filesystems (macOS), both resolve to the same file on disk, but git tracks them as separate entries. Before editing:
git ls-files --stage '<skill-dir>/'SKILL.md and skill.md exist in the git index, remove the duplicate: git rm --cached '<path>/SKILL.md' (keep the one matching the project convention)Read the skill file and any referenced files (scripts/, references/, assets/).
Common problems and fixes:
| Problem | Likely Cause | Fix |
|---------|-------------|-----|
| Skill not triggering | Poor description | Rewrite with clear trigger keywords and scenarios. Claude tends to undertrigger — make the description slightly pushy (e.g. "Make sure to use this skill whenever the user mentions X, Y, or Z, even if they don't explicitly ask for it") |
| Skill triggers too often | Description too broad | Make description more specific; add disable-model-invocation: true for manual-only |
| Skill not visible | Exceeds character budget | Run /context to check; shorten description or increase SLASH_COMMAND_TOOL_CHAR_BUDGET |
| Wrong agent used in fork | agent: field incorrect | Change to correct agent name |
| Forked skill lacks context | Missing instructions | Skill content IS the prompt in fork mode - make it self-contained |
| Script fails | Bug or environment issue | Read and test the script |
Inserting a new step into a numbered step list: When a skill is structured as Step 1, Step 2, Step 3, ... and you need to add a new step between existing ones, renumber the steps so the sequence stays contiguous. Do NOT introduce fractional numbers like "Step 2.5", and do NOT insert "Step 0" at the start. Examples:
After renumbering, grep the skill file for stale references (e.g., "Step 3" where you now mean "Step 4") and fix them. Also check any sibling files (scripts, references) that mention step numbers.
Frontmatter fields reference:
| Field | Description |
|-------|-------------|
| name | Skill name (lowercase, hyphens, max 64 chars) |
| description | What it does + when to use. Primary trigger mechanism |
| disable-model-invocation | true = manual only via /skill-name |
| user-invocable | false = hidden from / menu, Claude can still auto-invoke |
| argument-hint | Hint in autocomplete (e.g., [filename]) |
| allowed-tools | Tools allowed without permission when active |
| model | Model override when active |
| context | fork = run in isolated subagent context |
| agent | Agent type for fork: Explore, Plan, general-purpose, or custom agent name |
| hooks | Lifecycle hooks |
Substitution variables: $ARGUMENTS, $0, $1, ${CLAUDE_SESSION_ID}
Dynamic injection: Use the exclamation-backtick pattern (e.g. exclamation + backtick-wrapped command) to run shell commands before skill content is sent to Claude.
Writing principles when rewriting body content:
Format the edited SKILL.md file using the mdx-formatter to ensure consistent markdown formatting:
pnpm dlx @takazudo/mdx-formatter --write <path-to-SKILL.md>
Scan the skill's SKILL.md and all referenced scripts/files for ~/ in file paths. Replace with $HOME/.
Why: ~ is a shell expansion feature. It is NOT expanded by Node.js fs operations, Python open(), or non-login shell contexts. Using ~/ in these contexts creates a literal directory named ~ inside the working directory instead of resolving to the user's home directory. This has caused real bugs where a ~/ directory was accidentally created inside a repo.
What to check:
~/foo/bar in scripts or skill instructionsReplace with: $HOME/foo/bar (expanded by both shell and most runtimes)
After editing:
~/ paths in file operations -- use $HOME/ instead (see Step 5)If SKILL.md is getting too long (approaching 500 lines):
references/ filestools
Acceptance gate for a branch produced by an OpenAI Codex CLI run — usually Codex implementing a /big-plan epic that was handed off to it. Codex reports the work 'done' (or the user flags it WIP with corrections); this skill confirms the branch actually fulfils the original spec, fixes what falls short, and routes larger discoveries into GitHub issues. Use when: (1) User says '/finalize-codex-work', 'finalize codex work', 'confirm the codex work', 'check the codex branch', or 'codex said it's done', (2) A branch is the result of a Codex CLI session and needs verification against its spec issue/PR, (3) After assigning a /big-plan epic to Codex CLI. Pass -m/--merge to run /pr-complete -c at the end.
tools
Read a Figma design node directly from a share URL via the Figma REST API — no Dev Mode subscription, no MCP, no desktop app. Renders the node to PNG and dumps its full style/layout JSON so the design can be described, compared, or implemented. Use whenever the user gives a Figma design URL (figma.com/design/... or /file/...) and wants to see, read, inspect, reference, or implement that node — including `/fig-url-refer <url>`. This is the URL-based counterpart to `/figrefer` (which needs a Dev-plan desktop MCP); prefer this one when the input is a URL rather than a live desktop selection.
tools
Sync the user's Claude Code workflow skills into the OpenAI Codex CLI settings repo ($HOME/.codex) as Codex-native ports, fix the Codex .gitignore for new local state, then commit and push. Use when: (1) user says '/dev-codex-sync-settings-from-claude', 'sync codex settings', 'sync claude skills to codex', 'port skills to codex', or 'update codex from claude'; (2) after updating ~/.claude workflow skills (big-plan, x, x-as-pr, x-wt-teams) and Codex should catch up; (3) the $HOME/.codex repo has drifted behind $HOME/.claude. The ports are condensed Codex-native REWRITES, never file copies.
development
Analyze a video file (mov, mp4, webm, etc.) or a YouTube video by extracting still frames with ffmpeg and reading them chronologically with vision — Claude cannot ingest video files directly. Use whenever the user provides a video file path or YouTube URL and wants to know what happens in it: "read this video", "watch this video", "check this recording", "what happens in this .mov/.mp4", analyzing a screen recording of a UI bug, or verifying UI behavior captured in a video, even if they don't name this skill.