Bug: skill-creator produces double-nested directory, skill fails to load

Resolved 💬 3 comments Opened Feb 23, 2026 by captainron-ye Closed Feb 27, 2026

Preflight Checklist

  • [x] I have searched existing issues and this hasn't been reported yet
  • [x] This is a single bug report (please file separate reports for different bugs)
  • [x] I am using the latest version of Claude Code

What's Wrong?

The skill-creator plugin intermittently creates skills with a double-nested directory structure (~/.claude/skills/my-skill/my-skill/SKILL.md instead of ~/.claude/skills/my-skill/SKILL.md), causing the skill to silently not be detected by Claude Code. No error is shown — the skill just doesn't appear. This has happened twice with different skills.

What Should Happen?

The skill-creator should produce ~/.claude/skills/<skill-name>/SKILL.md (single nesting) so the skill loads properly.

Error Messages/Logs

Steps to Reproduce

  1. Run /skill-creator and ask it to create a new skill (e.g., "create a skill called my-test-skill")
  2. Check: find ~/.claude/skills/my-test-skill -name SKILL.md
  3. ~50% of the time, the result is ~/.claude/skills/my-test-skill/my-test-skill/SKILL.md

Root cause: init_skill.py line 206 always appends the skill name to --path (skill_dir = Path(path).resolve() / skill_name), but SKILL.md line 209 ambiguously says --path <output-directory>. Claude sometimes
passes the skill directory itself as --path, causing double nesting.

Suggested fix: Either clarify the instruction with an explicit example (--path ~/.claude/skills), or make init_skill.py idempotent (skip appending if path already ends with the skill name).

Claude Model: Claude Opus 4.6

Is this a regression?: Unknown

Claude Code Version: 2.1.37 (Claude Code)

Platform: Anthropic Console (API)

Operating System: Ubuntu 24.04.3 LTS

Terminal/Shell: bash

Additional Information:

  • Plugin: ~/.claude/plugins/cache/claude-plugins-official/skill-creator/
  • Affected files: SKILL.md (line 209), scripts/init_skill.py (line 206)
  • Workaround: mv ~/.claude/skills/<name>/<name>/SKILL.md ~/.claude/skills/<name>/SKILL.md
  • No error message is shown, making this hard to diagnose

Claude Model

Opus

Is this a regression?

I don't know

Last Working Version

_No response_

Claude Code Version

2.1.37 (Claude Code)

Platform

Anthropic API

Operating System

Ubuntu/Debian Linux

Terminal/Shell

Windows Terminal

Additional Information

  • Plugin: ~/.claude/plugins/cache/claude-plugins-official/skill-creator/
  • Affected files: SKILL.md (line 209), scripts/init_skill.py (line 206)
  • Workaround: mv ~/.claude/skills/<name>/<name>/SKILL.md ~/.claude/skills/<name>/SKILL.md
  • No error message is shown, making this hard to diagnose

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗