Skip to content

Add pulser init — scaffold a new skill from template #6

@TheStack-ai

Description

@TheStack-ai

Context

There is no scaffolding command. Users manually create directories, write frontmatter, add sections. The prescriber (src/prescriber.ts) already knows the recommended structure per skill type, but this knowledge is only used for fixing existing skills.

Proposed

pulser init my-skill --type analysis

Generates:

~/.claude/skills/my-skill/
  SKILL.md      # Valid frontmatter + Gotchas + structure
  eval.yaml     # Test skeleton

What to do

  1. Add init subcommand in src/index.ts
  2. Create src/init.ts with template logic
  3. Reuse constants from src/prescriber.ts (RECOMMENDED_TOOLS, GOTCHAS_TEMPLATES) to generate valid SKILL.md per type
  4. Accept --type flag (analysis, research, generation, execution, reference) or prompt for it
  5. Generate an eval.yaml skeleton with one example test

Why this matters

The recommended workflow is: create skill → run pulser → fix issues. But step 1 has zero tooling. This closes the loop.

Files to modify

  • src/index.ts (subcommand)
  • New: src/init.ts
  • Reuse: src/prescriber.ts constants

Difficulty: Medium-Hard

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions