Initialize Package Skill
Analyze this codebase and create a Claude Code skill for it using nshskill. Follow the creating-skills skill for all SKILL.md authoring guidance (description format, naming, content quality, progressive disclosure).
Process
- •
Understand the project: Read
pyproject.toml,README.md,CLAUDE.md, and key source files to identify the library's purpose, public API, import conventions, and coding patterns. - •
Create skill directory at
src/<package_name>/_skill/. - •
Write
SKILL.mdfollowingcreating-skillsguidelines:markdown--- name: using-<package-name> description: <What it does in ~10 words>. Use when <scenario 1>, <scenario 2>, <scenario 3>, or <scenario 4>. --- # <package-name> <Concise instructions for Claude — import conventions, key APIs, patterns, rules.>
- •
Add
nshskilldependency topyproject.toml:tomldependencies = [ ..., "nshskill", ] - •
Wire up the CLI:
No existing CLI — create a standalone one:
python# src/<package>/cli.py from pathlib import Path from nshskill import Skill, create_skill_cli skill = Skill.from_dir(Path(__file__).resolve().parent / "_skill") main = create_skill_cli("<package-name>", skill)toml# pyproject.toml [project.scripts] <package-name> = "<package>.cli:main"
Existing CLI with argparse subparsers — integrate:
pythonfrom nshskill import Skill, add_skill_commands, dispatch_skill skill = Skill.from_dir(Path(__file__).resolve().parent / "_skill") add_skill_commands(subparsers, skill) # in dispatch: if args.command == "skill": dispatch_skill(args) - •
Optionally add
references/for detailed docs. Prefer symlinks to existing docs:bashln -s ../../docs/api.md src/<package>/_skill/references/api.md
- •
Update
CLAUDE.md(if it exists) to document the<package> skill installcommand.
Checklist
- • SKILL.md passes the
creating-skillsquality checklist - •
nshskillis in project dependencies - • CLI works:
<package> skill installand<package> skill install --global