ln-161-skill-creator

Creates .claude/commands from procedural doc sections with proper structure and transformation

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "ln-161-skill-creator" with this command: npx skills add levnikolaevich/claude-code-skills/levnikolaevich-claude-code-skills-ln-161-skill-creator

Paths: File paths (shared/, references/, ../ln-*) are relative to skills repo root. If not found at CWD, locate this SKILL.md directory and go up one level for repo root.

ln-161-skill-creator

Type: L3 Worker (standalone-capable) Category: 1XX Documentation Pipeline Coordinator: ln-160-docs-skill-extractor (optional)

Creates .claude/commands/*.md files from procedural documentation sections. Transforms declarative prose into imperative executable instructions.


Overview

AspectDetails
InputProcedural doc sections (from ln-160 contextStore or standalone scan)
Output.claude/commands/*.md files in target project
Templatereferences/command_template.md

Input Modes

ModeTriggerBehavior
WorkerInvoked by ln-160 with contextStoreUse provided sections directly
StandaloneInvoked directly with $ARGUMENTSSelf-discover + classify docs

Standalone Discovery

When invoked directly (not via ln-160):

  1. If $ARGUMENTS = file paths -> read those docs, extract procedural sections
  2. If $ARGUMENTS = "all" or empty -> scan docs/ recursively
  3. Classify sections using same rules as ln-160 Phase 2

MANDATORY READ: Load ../ln-160-docs-skill-extractor/references/classification_rules.md (standalone mode only)

  1. Present extraction plan to user via AskUserQuestion
  2. Create approved commands
  3. Recommend user to run ln-162-skill-reviewer for quality review

Workflow (Worker Mode)

Phase 1: Prepare

Receive contextStore with approved procedural sections:

approved_sections:
  - source_file: docs/project/runbook.md
    section_header: "Deployment"
    line_range: [45, 92]
    command_name: deploy.md
  - source_file: tests/README.md
    section_header: "Running Tests"
    line_range: [15, 48]
    command_name: run-tests.md

MANDATORY READ: Load references/command_template.md

Phase 2: Transform and Create

For each approved section:

  1. Read source -- extract section content from source file at specified line range

  2. Detect allowed-tools -- infer from content:

Content PatternTool
bash/sh code blocks, shell commandsBash
File read/load referencesRead
File modify/update instructionsEdit
Search/find in filesGrep, Glob
Skill invocationsSkill
User confirmation stepsAskUserQuestion
  1. Transform content using rules below

  2. Write file to .claude/commands/{command_name}

Transformation Rules

RuleFromTo
VoiceDeclarative ("The system uses X")Imperative ("Run X")
Code blocksPreserve as-isKeep unchanged
Numbered listsDescription-styleOrdered workflow steps with ### headers
VerificationImplicit ("should work")Explicit verification commands
Doc metadataSCOPE tags, Maintenance sectionsRemove
TroubleshootingProseTable format (Issue / Solution)
PrerequisitesMentioned inlineDedicated Prerequisites table
Related docsInline referencesRelated Documentation section with relative links

Phase 3: Report

Return to coordinator (or display to user in standalone mode):

created:
  - file: .claude/commands/deploy.md
    source: docs/project/runbook.md#Deployment
    lines: 85
    tools: [Bash, Read]
  - file: .claude/commands/run-tests.md
    source: tests/README.md#Running Tests
    lines: 62
    tools: [Bash]
summary: "Created 2 commands from 2 procedural sections"

Critical Rules

  • Template-driven: All output follows references/command_template.md structure
  • Preserve source: Never modify or delete source documentation files
  • No invention: Only extract content that exists in source docs. Do NOT add commands, steps, or paths not found in the original
  • Imperative voice: Every instruction must be actionable -- no passive descriptions
  • Relative paths: All file references in created commands use paths relative to project root
  • Idempotent: If command file already exists, skip (do not overwrite)

Definition of Done

  • Source sections read at specified line ranges
  • Allowed-tools detected per content patterns
  • Content transformed to imperative voice (all transformation rules applied)
  • Files written to .claude/commands/{command_name}
  • Existing command files not overwritten (idempotent)
  • Report returned with created file list and summary

Version: 1.0.0 Last Updated: 2026-03-13

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Coding

ln-782-test-runner

No summary provided by upstream source.

Repository SourceNeeds Review
Coding

ln-140-test-docs-creator

No summary provided by upstream source.

Repository SourceNeeds Review
Coding

ln-150-presentation-creator

No summary provided by upstream source.

Repository SourceNeeds Review
Coding

ln-110-project-docs-coordinator

No summary provided by upstream source.

Repository SourceNeeds Review