Add Claude Code skill for writing llmock fixtures#29
Merged
Conversation
commit: |
95a6414 to
6a75874
Compare
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.
6a75874 to
9baa0fd
Compare
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
.claude/commands/write-fixtures.md— a comprehensive fixture authoring guide available as/write-fixturesslash command in Claude CodetruncateAfterChunks/disconnectAfterMs)Test plan
/write-fixturesin Claude Code while working in the llmock repo — confirm skill loads and renders correctlyLLMockclass