/mjmendo-plugins:cmux-agents-promptsfrom mjmendo-plugins
Write effective standalone prompts for cmux subagents. Subagents have no memory of the current conversation — every prompt must be a self-contained spec.
Ships in mjmendo-plugins. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
1. Files to read first — list in order, with purpose
Read these files before writing anything:
- bots/shared/guardrails.py (style reference — follow this pattern)
- bots/tech-support/rtvi_server.py (the file you are extending)
2. Files to create — exact absolute paths, no ambiguity
Create exactly these files (no others):
- /Users/.../bots/shared/working_memory.py
- /Users/.../bots/tech-support/memory_server.py
3. File ownership — what the agent must NOT touch
Do NOT modify any existing file.
Do NOT touch: bots/shared/vector_memory.py (owned by a parallel agent)
4. Output contract — exact class names, method signatures, key behaviors
Class ConversationSummaryProcessor(FrameProcessor):
- intercepts LLMMessagesFrame between user_agg and llm
- fires when len(messages) > compress_threshold (default: 10)
- calls gpt-4o-mini, replaces old messages with summary system message
- logs: [MEMORY] ConversationSummaryProcessor: compressing N messages → M
5. Style anchor — point to an existing file that exemplifies the expected pattern
Follow the exact style of bots/shared/guardrails.py:
- Same logger format: logger.warning(f"[TAG] ClassName ACTION | ...")
- Same docstring structure (class docstring explains FrameProcessor vs BaseObserver)
- Same copy-extend pattern for server files (copy guardrails_server.py, add imports)
| Anti-pattern | Problem | Fix |
|---|---|---|
| "Implement the memory module" | Too vague — agent guesses | Specify every class and method |
| Relying on conversation context | Agent has none | Inline all necessary context |
| "Agent B reads Agent A's file" when parallel | A's file may not exist yet | Describe A's API in B's prompt by spec |
| Long inline prompt string | Shell quoting breaks on special chars | Always write to temp file with heredoc |
Back to orchestration → /cmux-agents
For isolation decisions → /cmux-agents-isolation
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub mjmendo/claude-plugins --plugin mjmendo-plugins4 skills in this plugin
/cmux-agents1. Locate current positionSpin up parallel Claude subagents in cmux panes, delegate tasks, monitor, and close when done./cmux-agents-isolationDecision tableChoose the right isolation strategy when spinning parallel cmux agents — shared filesystem, file ownership, or git worktrees./cmux-claude-resumeRe-attach Claude Code sessions to restored cmux panes after a reboot. Records cwd → session_id on Claude start and replays `claude --resume <id>` into each restored pane.Other plugins' skills for the same job