Claude-code-skills ln-161-skill-creator
Creates slash commands from procedural doc sections. Use when transforming documentation prose into executable commands.
install
source · Clone the upstream repo
git clone https://github.com/levnikolaevich/claude-code-skills
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/levnikolaevich/claude-code-skills "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills-catalog/ln-161-skill-creator" ~/.claude/skills/levnikolaevich-claude-code-skills-ln-161-skill-creator && rm -rf "$T"
manifest:
skills-catalog/ln-161-skill-creator/SKILL.mdsource content
Paths: File paths (
,shared/,references/) are relative to skills repo root. If not found at CWD, locate this SKILL.md directory and go up one level for repo root. If../ln-*is missing, fetch files via WebFetch fromshared/.https://raw.githubusercontent.com/levnikolaevich/claude-code-skills/master/skills/{path}
ln-161-skill-creator
Type: L3 Worker (standalone-capable) Category: 1XX Documentation Pipeline
Creates
.claude/commands/*.md slash command files from procedural documentation sections. It converts procedural prose into imperative command instructions without changing the source docs.
Overview
| Aspect | Details |
|---|---|
| Input | Approved procedural sections or standalone docs scan |
| Output | files in target project |
| Template | |
| Read mode | Section-first markdown reading |
Input Modes
| Mode | Trigger | Behavior |
|---|---|---|
| Provided sections | Context contains | Use supplied sections directly |
| Standalone | Invoked directly with | Self-discover, classify, and create commands |
Standalone Discovery
When invoked without
approved_sections:
- Read
,shared/references/procedural_extraction_rules.md
, andshared/references/markdown_read_protocol.mdshared/references/docs_quality_contract.md - Scan docs-first sources:
docs/**/*.mdtests/README.mdtests/manual/**/*README.mdCONTRIBUTING.md
- Use
,AGENTS.md
, andCLAUDE.md
only to route discoverydocs/project/.context/doc_registry.json - Classify candidate sections with the shared procedural extraction rules
- Present the extraction plan to the user for approval
- Create approved commands
Workflow
Phase 1: Prepare
Receive or build this normalized input:
{ "approved_sections": [ { "source_file": "docs/project/runbook.md", "section_header": "Deployment", "line_range": [45, 92], "command_name": "deploy.md", "doc_kind": "how-to", "doc_role": "canonical" } ] }
MANDATORY READ: Load
references/command_template.md
Phase 2: Transform and Create
For each approved section:
- Read the source section using the shared markdown read protocol
- Ignore standardized doc shell content if it appears in the selected range:
- header markers such as
,DOC_KIND
,DOC_ROLE
,READ_WHEN
,SKIP_WHENPRIMARY_SOURCES Quick NavigationAgent EntryMaintenance
- header markers such as
- Detect
allowed-tools
| Content Pattern | Tool |
|---|---|
shell commands or fenced / blocks | Bash |
| file reads or config inspection | Read |
| file updates | Edit |
| search steps | Grep, Glob |
| skill calls | Skill |
| approval gates | AskUserQuestion |
- Transform the content with these rules:
| Rule | From | To |
|---|---|---|
| Voice | Declarative prose | Imperative instructions |
| Code blocks | Source shell blocks | Preserve when executable |
| Numbered lists | Doc prose | Ordered workflow steps |
| Verification | Implicit expectations | Explicit verification checks |
| Doc shell | Metadata and navigation | Remove |
| Source provenance | Implied only | Explicit section |
| Related docs | Inline refs | section |
- Write
if the file does not already exist.claude/commands/{command_name}
Phase 3: Report
Return:
created: - file: .claude/commands/deploy.md source: docs/project/runbook.md#Deployment lines: 85 tools: [Bash, Read] summary: "Created 1 command from 1 procedural section"
Critical Rules
- Template-driven: All output follows
.references/command_template.md - Preserve source: Never modify or delete source docs.
- No invention: Do not add commands, steps, or paths absent from the source.
- Imperative voice: Every retained instruction must be actionable.
- No copied doc shell: Do not copy
,DOC_KIND
,DOC_ROLE
,Quick Navigation
, orAgent Entry
into commands.Maintenance - Source provenance: Every generated command must point back to its source doc and section.
- Relative paths: File references must stay relative to project root.
- Idempotent: Skip existing command files; do not overwrite them.
Definition of Done
- Approved sections received or discovered
- Source sections read with section-first protocol
- Allowed-tools detected per command
- Content transformed into imperative workflow steps
- Standard doc shell content removed from command output
- Source provenance included in each created command
- Existing command files not overwritten
- Creation report returned
Version: 1.0.0 Last Updated: 2026-03-26