Skip to content

feat(skill-writer): skill-writer ask subcommand #31

@pixelastic

Description

@pixelastic

Parent

#28

What to build

Add the ask subcommand to the skill-writer script.

skill-writer ask --scope <id> "<prompt>" must:

  • Run claude --dangerously-skip-permissions --continue --print --output-format stream-json "<prompt>" inside ~/local/tmp/claude/skill-writer/<scope>/worktree/
  • Append claude's stdout to ~/local/tmp/claude/skill-writer/<scope>/history.jsonl
  • No output on stdout

--continue resumes the most recent claude session in the worktree directory, which is always the session from the last skill-writer test run in that scope.

Acceptance criteria

  • skill-writer ask --scope foo "why didn't you follow the skill?" runs claude with --continue in the worktree
  • Output is appended to history.jsonl (not overwritten)
  • history.jsonl contains both the test session and the ask session in order
  • Script produces no stdout
  • Missing scope directory produces a clear error on stderr and exits non-zero

Blocked by

Metadata

Metadata

Assignees

No one assigned

    Labels

    ready-for-agentReady to be picked up by an agent

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions