بنقرة واحدة
add-vcr-recording
Add a new VCR recording for testing user interactions.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Add a new VCR recording for testing user interactions.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Merges completed work back to main through a protected-branch pull request workflow.
Set up a new git worktree and install dependencies.
Merges completed work back to main through a protected-branch pull request workflow.
Set up a new git worktree and install dependencies.
Prepares a Python package for PyPI release by updating the version, building, and verifying the distribution.
Prepare a release by updating the version, building, and verifying the distribution.
| name | add-vcr-recording |
| description | Add a new VCR recording for testing user interactions. |
Add a new VCR recording for testing user interactions.
$ARGUMENTS
From the user-provided context, determine:
chat-initial-prompt)mekara chat "Tell me a joke", mekara /test/random)Edit scripts/record_vcr_cassettes.sh and add a record_cassette call:
record_cassette "<name>" "<command-without-mekara>"
The command argument omits mekara since the script prepends it. Use single quotes for arguments with spaces (e.g., chat 'Tell me a joke').
Add an entry to tests/recordings.json:
{
"name": "<name>",
"type": "standard"
}
For dojo recordings, add "type": "dojo" and "dojo_tag": "<tag>".
Add a test function to tests/test_docs_visuals.py:
def test_docs_<name_with_underscores>(snapshot: SnapshotAssertion) -> None:
"""<Brief description of what this tests>."""
del snapshot
_assert_cast_matches_golden(
'mekara <full-command>',
"tests/cassettes/<name>.yaml",
"<name>.txt",
)
Add a section to docs/docs/code-base/mekara/vcr-agent-recordings/recordings.md following this format:
### <name>
**Tests:**
- <What behavior this recording validates>
**Command:** `<full command>`
**Files:**
- Cassette: `tests/cassettes/<name>.yaml`
- Golden cast: `tests/golden_casts/<name>.txt`
**Interaction script:**
1. <Step-by-step what the user does during recording>
Keep the Tests: section as a bulleted list (even if single item). The Interaction script: describes what the human does when recording - if no interaction is needed, say so explicitly (e.g., "The agent responds. (There is no interaction you need to take here.)").
Tell the user to run the recording scripts:
./scripts/record_vcr_cassettes.sh
python scripts/record_golden_chats.py "" <name>
The VCR cassette must be recorded first, then the chat transcript.