Skip to content

feat(cli): add wm seed command for automatic TLDR generation #241

@galligan

Description

@galligan

Context

Part of deterministic repo initialization (#91). Orchestrate scan → plan → apply workflow.

Scope

  • New wm seed command (or wm init --seed)
  • Scan files, harvest docstrings, generate TLDRs, apply via bulk insert
  • Dry-run mode by default, --write to apply
  • Respect skip_paths, ignore patterns, one-TLDR-per-file rule

Acceptance Criteria

  • wm seed <paths> - scan and preview TLDR insertions
  • wm seed <paths> --write - apply insertions
  • wm seed <paths> --json - output plan as JSON/JSONL
  • Respects config ignore paths
  • Idempotent - skips files with existing TLDRs
  • Help text in registry.ts
  • Tests in seed.test.ts

Example Output

$ wm seed src/
Would insert TLDRs in 15 files:
  src/auth.ts:1      → "handles user authentication and JWT tokens"
  src/database.ts:1  → "postgres connection and query builders"
  ...

Run with --write to apply changes.

Dependencies

Related

Parent: #91

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions