From claude-resources
Fixes, improves, or updates Claude Code skills by editing SKILL.md frontmatter and body, scripts, references, assets. Debugs trigger issues, over/under-triggering, visibility, and case-sensitivity.
npx claudepluginhub takazudo/claude-resourcesThis skill uses the workspace's default tool permissions.
Find skills at:
Guides Next.js Cache Components and Partial Prerendering (PPR): 'use cache' directives, cacheLife(), cacheTag(), revalidateTag() for caching, invalidation, static/dynamic optimization. Auto-activates on cacheComponents: true.
Guides building MCP servers enabling LLMs to interact with external services via tools. Covers best practices, TypeScript/Node (MCP SDK), Python (FastMCP).
Share bugs, ideas, or general feedback.
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/ files