Skip to content

Add Claude Code skill for writing llmock fixtures#29

Merged
jpr5 merged 3 commits intomainfrom
docs/write-fixtures-skill
Mar 12, 2026
Merged

Add Claude Code skill for writing llmock fixtures#29
jpr5 merged 3 commits intomainfrom
docs/write-fixtures-skill

Conversation

@jpr5
Copy link
Copy Markdown
Contributor

@jpr5 jpr5 commented Mar 11, 2026

Summary

  • Adds .claude/commands/write-fixtures.md — a comprehensive fixture authoring guide available as /write-fixtures slash command in Claude Code
  • Covers match fields, response types, common patterns (tool call loops, catch-alls, predicate routing), critical gotchas, debugging mismatches, and E2E test setup
  • Verified against current API surface (v1.3.0) including interruption options (truncateAfterChunks/disconnectAfterMs)

Test plan

  • Invoke /write-fixtures in Claude Code while working in the llmock repo — confirm skill loads and renders correctly
  • Verify code examples are syntactically correct TypeScript
  • Confirm all documented API methods exist on the LLMock class

@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new bot commented Mar 11, 2026

Open in StackBlitz

npm i https://pkg.pr.new/CopilotKit/llmock/@copilotkit/llmock@29

commit: 2975689

@jpr5 jpr5 force-pushed the docs/write-fixtures-skill branch 2 times, most recently from 95a6414 to 6a75874 Compare March 12, 2026 00:06
jpr5 added 3 commits March 11, 2026 17:16
Comprehensive /write-fixtures skill covering match fields, response
types, agent loop patterns (tool call → tool result → final response),
predicate routing, catch-alls, error injection, stream interruption,
and debugging fixture mismatches.

Distributed as a Claude Code plugin via marketplace:
  /plugin marketplace add CopilotKit/llmock
  /plugin install llmock@copilotkit-tools

Also available via --plugin-dir, --add-dir, or manual copy.
Four install methods documented: plugin marketplace (recommended),
local plugin from node_modules, --add-dir, and manual copy.
Nav link and feature cards added to docs site.
Changelog updated for 1.3.1.
Adds .claude-plugin, .claude, and skills directories to the package
files array so downstream consumers get the fixture authoring skill
when they npm install.
@jpr5 jpr5 force-pushed the docs/write-fixtures-skill branch from 6a75874 to 9baa0fd Compare March 12, 2026 00:16
@jpr5 jpr5 merged commit c1c90fd into main Mar 12, 2026
8 checks passed
@jpr5 jpr5 deleted the docs/write-fixtures-skill branch March 12, 2026 00:32
jpr5 added a commit that referenced this pull request Apr 3, 2026
## Summary

- Adds `.claude/commands/write-fixtures.md` — a comprehensive fixture
authoring guide available as `/write-fixtures` slash command in Claude
Code
- Covers match fields, response types, common patterns (tool call loops,
catch-alls, predicate routing), critical gotchas, debugging mismatches,
and E2E test setup
- Verified against current API surface (v1.3.0) including interruption
options (`truncateAfterChunks`/`disconnectAfterMs`)

## Test plan

- [ ] Invoke `/write-fixtures` in Claude Code while working in the
llmock repo — confirm skill loads and renders correctly
- [ ] Verify code examples are syntactically correct TypeScript
- [ ] Confirm all documented API methods exist on the `LLMock` class
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant