executing-plans
executing-plans
Use when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available
dramaStage drama writing — plays, operas, musicals, and other works intended for live theatrical performance. Handles dialogue, stage directions, act/scene structure, dramatic tension, and the unique constraints of the live stage.
Independent GitHub snapshot · Automated classification · Original documentation governs
Sub-skill of general-writing. Inherits shared creative writing principles, anti-AI discipline, and quality gate framework.
CRITICAL — Writing Dispatch Rule: Acts are sequential by nature (each act builds on prior dramatic tension) — dispatch one drama_writer per act and wait for completion before the next. Exception: within a musical act, book-writer and lyricist CAN run in parallel, then merge before review. Reviews (shared + genre editors) always run non-blocking alongside the next act's writing.
CRITICAL — Review → Fix Brief → Dispatched Subagent: When a review finds issues, translate them into a detailed fix brief (file paths, quoted findings, expected outcome, scope boundary, self-check) and dispatch a fresh subagent to apply the fix. Never use inline sed/edit_file fixes — dispatched subagents re-read context, run self-checks, and preserve voice.
CRITICAL — Anti-Read-Loop Rule: The orchestrator must dispatch its first subagent (drama_planner or drama_writer) within 10 iterations. If the orchestrator has spent 10+ iterations only reading files without creating any subagent, it is in a read-loop. Stop reading, write your plan from what you have, and dispatch immediately.
CRITICAL — Step Budget & Delivery: You have a limited step budget. Plan delivery accordingly:
- Short plays (one-act, sketch): fully achievable in one session. Write, review, assemble, convert to .docx.
- Multi-act plays / musicals: plan to deliver all acts per session with full quality (review + assembly + .docx).
- Before your session ends: always assemble whatever acts are done and convert to .docx — never end with only raw act files.
话剧, 舞台剧, 歌剧, 音乐剧, stage play, opera, musical, theatre, theater, 独幕剧, one-act, 小品, sketch, 戏剧
/mnt/agents/output/
├── research/ # User uploads (reference plays, venue specs)
├── {project_name}.outline.md
├── {project_name}.final.md
├── documents/
│ ├── {project_name}.characters.md
│ └── {project_name}.props_costumes.md
└── acts/
└── {project_name}.act{N}.md
Before Stage 1, copy all user-uploaded files (reference plays, venue specs, cast lists, set photos) to /mnt/agents/output/research/. Preserve original filenames. Reference these copies (not originals) in all subagent task prompts — subagents may run in sandboxed environments without access to the original paths.
Infer medium, genre, format, length, tone, era/setting from the user's request. The orchestrator analyzes and infers all parameters autonomously; for complex requests, deploy a subagent to analyze requirements in depth. Never prompt the user for clarification.
drama_plannercreate_subagent:
name: "drama_planner"system_prompt: "You are a drama planner specializing in theatrical structure. You design act/scene breakdowns, character webs, and satisfaction-element mappings for stage plays, musicals, and operas. You understand performability constraints (cast size, set changes, timing) and build outlines that are production-feasible."description: "Design theatrical outline with act/scene structure and satisfaction elements"task:
agent: "drama_planner"prompt must include:Planner deliverables (saved to /mnt/agents/output/{project_name}.outline.md):
The macro outline is reviewed and locked before the micro outline begins. The micro outline feeds directly into writer task prompts.
| Element | Examples |
|---|---|
| Inspirational / 励志奋斗 | Underdog triumph, mentor sacrifice, comeback from humiliation |
| Truth, Goodness, Beauty / 真善美 | Hidden kindness revealed, costly forgiveness, integrity under pressure |
| Emotional / 情感 | Reunion after separation, parent-child reconciliation, sacrifice understood late |
| Catharsis / 爽感 | Power reversal, villain undone by hubris, long-planted secret detonates |
Mapping rule: At least one element pays off per act break; the strongest at climax. Never front-load all satisfaction into Act 1.
Strictly one act per task call. Multi-act dispatch causes the model to cut corners. No exceptions.
When an act finishes writing and passes word count, dispatch review subagents for that act AND start writing the next act simultaneously. Reviews run in the background — only dispatch fixes when a review finds issues. This maximizes throughput by never blocking writing on review.
Act K: [Write] → [WC check] ──→ Act K+1 writing starts immediately
└──→ [Review Act K in background]
└──→ [Fix if needed, also in background]
After each act is delivered, the orchestrator runs:
python skills/general-writing/scripts/check_wordcount.py <file> --min {target} --lang auto
If the check returns FAIL, return the file to the writer with expansion instructions specifying which scenes are underweight.
drama_writer (one per act)create_subagent:
name: "drama_writer"description: "Write one act of stage drama from outline spec"system_prompt: "You are a drama writer for live stage performance.DIALOGUE CRAFT:
STAGE DIRECTIONS:
PERFORMABILITY CONSTRAINTS:
FORMAT: ACT [N] Scene [N]: [Location] [Stage directions in brackets]
CHARACTER NAME (parenthetical — sparingly) Dialogue text.
[Stage direction — action, movement, lighting cue]
[INLINE anti-ai.md CONTENT HERE — Orchestrator reads ../anti-ai.md and pastes full content]"
task (one call per act):
agent: "drama_writer"prompt must include:Read ../review.md before this stage.
Run the shared review pipeline first (continuity_editor → style_editor → structural_editor), then add genre-specific editors:
performability_editorcreate_subagent:
name: "performability_editor"system_prompt: "You are a performability editor for stage drama. You assess whether a script can be physically produced within its stated constraints. You check cast size vs budget tier, set change count/complexity, quick-change feasibility, technical requirements, and running time estimates. Output: PASS or FAIL with specific issues."description: "Verify script is physically producible within staging constraints"task:
agent: "performability_editor"prompt must include:dialogue_editorcreate_subagent:
name: "dialogue_editor"system_prompt: "You are a dialogue editor for stage drama. You audit subtext layers (said/meant/understood), speakability, voice distinctiveness across characters, exposition management, silence usage, and AI-pattern absence. Output: PASS or FAIL with line-level feedback."description: "Audit dialogue quality: subtext, speakability, voice distinction"task:
agent: "dialogue_editor"prompt must include:../anti-ai.md)dramatic_tension_editorcreate_subagent:
name: "dramatic_tension_editor"system_prompt: "You are a dramatic tension editor. You verify per-scene dramatic questions, tension arc build across acts, act break placement, satisfaction element tracking, motivated entrances/exits, and the 'so what' test for every scene. Output: PASS or FAIL with specific issues."description: "Verify dramatic tension arcs, act breaks, and satisfaction element payoffs"task:
agent: "dramatic_tension_editor"prompt must include:| Dimension | Weight |
|---|---|
| Dialogue quality | 25% |
| Dramatic structure | 20% |
| Performability | 20% |
| Satisfaction delivery | 15% |
| Character arcs | 10% |
| Stage direction quality | 10% |
Pass: >= 75 overall. Dialogue >= 70. Performability >= 65.
On failure: follow quality gate protocol from ../review.md — write a detailed fix brief and dispatch a fresh subagent to apply the fix → re-review (max 2 cycles). Forced pass after 3 total attempts — remaining issues flagged for user review.
Assemble final output including:
Save to /mnt/agents/output/{project_name}.final.md.
Convert the assembled markdown to Word using the md2docx pipeline (see skills/docx/SKILL.md → references/md2docx-reference.md).
Output: /mnt/agents/output/{project_name}.final.docx
This step is mandatory. Raw .md without a .docx deliverable is not an acceptable end state.
task call. Never merge acts into a single dispatch. No exceptions.When the form is musical (音乐剧) or opera (歌剧), apply these additional rules:
| File | Purpose | When to Read | How to Use |
|---|---|---|---|
| ../anti-ai.md | Anti-AI discipline rules | Before creating writer subagents | Inline into drama_writer system prompt |
| ../review.md | Shared review pipeline + quality gate protocol | Before Stage 3 | Follow review sequence |
| ../SKILL.md | Parent skill — shared principles, routing, file naming | Reference | Inherit shared conventions |
| ../scripts/check_wordcount.py | Word count verification | After each section completes | Orchestrator runs directly |