/fh-meta:meta-prompt-builderfrom fh-meta
Generates structured prompts for each agent in an orchestration plan using Goal/Context/Constraints/Done When format. Bridges agent-composer and prompt content.
Ships in fh-meta. 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.
Read when SKILL.md points to them.
When agent-composer decides "what to orchestrate", meta-prompt-builder designs "what to say to each agent." Delegates prompt writing itself to AI — interprets Goal / Context / Constraints / Done When structure within the FH context.
agent-composer proficients — People who already have an orchestration plan and want to structure the specific instructions for each agent. Use this when you already know "which agents to use."
Beginners (unsure which agents to use) → start with agent-composer first. meta-prompt-builder is a post-orchestration step.
/meta-prompt-builderInput: natural language task description + (optional) agent-composer orchestration plan
If no input is provided, ask for 4 fields:
What task are you designing a prompt for?
- Goal: What are you trying to achieve?
- Context: What project, files, or harness state is involved?
- Constraints: What should be avoided? Are there budget or time limits?
- Done When: When can you say "it's done"?
When Goal is provided in natural language (e.g., "I need to report to the team lead"), suggest a recommended chain using the keyword mapping below.
| Goal keyword | Recommended chain | Reason |
|---|---|---|
| "report", "team lead", "executive", "CTO", "persuade", "review" | apex-review → (sim-conductor if needed) | Decision-maker simulation then quality validation |
| "analyze", "diagnose", "something seems off" | harness-doctor → context-doctor | Structural + contextual diagnosis simultaneously |
| "simulate", "validate", "meta" | sim-conductor (D-code or Area B) | Multi-perspective validation |
| "install", "setup", "onboarding" | plugin-recommender → install-wizard | Recommend then install |
| "review", "code check" | sim-conductor D-code → harness-pr-reviewer | Code review chain |
Output format:
Recommended chain: {Goal keyword} →
Wave 1: {Agent A} — {1-line reason}
Wave 2: {Agent B} — {1-line reason}
→ Proceed with this chain? (Y: immediately orchestrate with agent-composer / N: enter 4-field directly)
Structure the input task according to FH context.
| Field | FH interpretation |
|---|---|
| Goal | The harness state change this agent combination must achieve |
| Context | Harness version + latest sim result M/S tier + target file paths |
| Constraints | Simplification guard + no self-recursion + no inter-Wave file conflicts |
| Done When | M-tier 0 items OR specified agent fan-in complete OR N naming candidates produced |
Receive agent-composer orchestration plan as input and generate instructions to deliver to each agent per Wave.
Format:
Wave {N}-{ID}: [{agent name}]
Goal: {1 line}
Context: {harness state in 3 lines max}
Constraints: {prohibited items in 2 lines max}
Done When: {evaluation criterion in 1 line}
───────────────────────────────
Actual instruction:
"{Natural language instruction for the agent — 2–4 sentences}"
When called standalone without an agent-composer plan: collect 4-field directly via Step 0 questions, then generate a single-agent prompt.
Under each draft's Constraints, add these five lines (they are exempt from the «2 lines max» above).
Fill each one, or write n/a — <the condition that makes it not apply> (e.g. n/a — read-only, writes no file); a blank line or a bare n/a is not allowed. Each line answers a failure that repeated across
past dispatches.
Hazards:
model: the model the plan names (FH arms: sonnet or haiku), set in the dispatch call — left out, the subagent takes the parent's model (Opus when the parent runs Opus)
out-dir: <scratchpad>/<arm-name>/ for the arm's notes, logs and reports — parallel arms can share one scratchpad, and a same-named file can be overwritten; source files it may edit are listed separately
inputs: absolute path + sha256 for each file that must be one exact version (a frozen target, a corpus, a seal) — a path alone can resolve to an older copy in another checkout; the receiver checks the hash and stops on a mismatch
git: no stash, `checkout -- .` or `checkout <ref> -- <path>`, `reset --hard`, `clean` or `add -A`; stage named paths only — if one ran, stop git work and report the command and the paths it touched in the same reply
home: an isolated HOME and app data dir for anything that installs or rewrites user config, and a check of where it actually wrote — the real ~/.claude is not written
Where each line comes from (the operator's memory notes, outside this repo):
model — [[feedback_subagent_model_sonnet_or_haiku]] ·
out-dir — [[feedback_parallel_arms_share_scratchpad]] (one arm committed with another arm's message) ·
inputs — [[feedback_hand_the_hash_not_the_path]] (a stale copy at the same path gave a false 24/24) ·
git — [[feedback_stash_is_tree_wide_in_shared_checkout]] (a stash swallowed a peer session's uncommitted files) ·
home — [[feedback_fod_work_must_not_touch_real_home]] (a self-check wrote to the real home on every gate run).
Before outputting the generated prompt draft, check against 3 criteria.
Goal achievability: Is the Goal achievable within the agent's allowed-tools range?
Done When measurability: Is Done When a measurable event in the M/S/R framework?
Context alignment: Does the Context match the "target" scope defined in the agent's SKILL.md?
Restate check (cold reader) — the procedure for the judged Done-When row below («read one
draft cold»). Hand each draft — its text only, no conversation, no repo — to a separate reader
(a fresh subagent, Sonnet or Haiku, or a different model family) and ask it to restate GOAL
(what is true when finished) · DONE (the observable check) · CONSTRAINTS (what not to
touch), marking each RESTATABLE or GUESS, and to list the questions it would need answered.
Any GUESS field is [WARN: brief not restatable — <field>]; its questions are the fix list.
Do not tell the reader which draft you suspect. Restating your own draft yourself does not count —
the failure this answers is the author filling gaps from context the receiver never gets. Record
the reader's model and keep its raw reply next to the draft. Dispatching the reader follows the
usual dispatch consent; if no reader can be dispatched, mark the row NOT RUN, never RESTATABLE.
Measured once (2026-11-14, one reader per brief, briefs written by the same author — UNCALIBRATED):
4 briefs made vague on purpose → 4/4 not restatable on all three fields; 4 briefs meant to be clear →
3/4 restatable, the fourth flagged an undefined term the author then judged real. This shows the
check flags briefs made vague, not a false-alarm rate. Idea from the comprehension stage of
https://github.com/google/elephant-goldfish-model ; the procedure here is FH's own.
Items that fail the check are marked [WARN] and the decision is delegated to the user.
Step 3 bias prevention: When checking Goal achievability, Read the agent's SKILL.md to directly verify (directly compare allowed-tools list). Since generator and validator are the same LLM, self-validation without external reference repeats bias.
Done When completeness check: Even if Done When is measurable in the M/S/R framework, the following 3 must also be stated to pass without WARN:
If Done When contains any of the following patterns, automatically emit [WARN: Done When not measurable].
| Ambiguity type | Example expression | WARN reason |
|---|---|---|
| Subjective completion | "if it goes well", "if it's done properly", "if it feels right" | No binary judgment criterion |
| Speed without numbers | "quickly done", "finished soon" | No count/time criterion |
| Absence description | "if there are no issues", "if there are no errors" | Cannot count as M/S/R |
| Unconditioned completion | "when it's all done", "when finished" | What state counts as complete is undefined |
Acceptable form examples:
| Asset | Integration direction |
|---|---|
| agent-composer | Input source: orchestration plan → meta-prompt-builder elaborates Wave-by-Wave prompts |
| sim-conductor | Output validation: generated prompts can be quality-validated via D-code mode |
| fact-checker | Wave 0 gating: check if generated prompts overlap or conflict with existing assets |
| field-harvest | Context field input source: field patterns can be reflected in Constraints |
| harness-doctor | Done When cross-validation: verify alignment with harness-doctor checklist |
Detail: See
SKILL_detail.md §Meta-Simulation Validation Criteria— 3-axis functional/performance measurement (goal achievement / context alignment / constraint validity) + 3 validation scenarios + marketplace-gate onboarding gate — read after onboarding when validating the skill itself, not per-invocation.
This skill's own Done When must satisfy the 3-part completeness check it imposes on others
(measurement subject · measurement timing · version/baseline). The previous version —
All steps 0–3 completed — met 0 of 3 and matched its own Unconditioned completion WARN pattern.
Measurement subject: this skill's own output — the prompt draft set
produced in this invocation (not the dispatched
agents' results, which this skill never sees)
Measurement timing: absolute, at end of this run — no comparison to a
previous run is implied or required
Version / baseline: the Step 3 checklist and the WARN-trigger table in
THIS file; note the SKILL.md revision used if the
table has changed since the draft was written
☐ Steps 0–3 each produced their named artifact — a step with no
artifact is incomplete, not "completed" (measured: 4 steps, 4 artifacts)
☐ One prompt draft exists per agent named in the dispatch plan (measured: drafts == agents
in plan)
☐ Every draft carries all four fields (Goal / Context /
Constraints / Done When), none empty (measured: 4 fields × N drafts,
0 empty)
☐ Every draft carries the five Hazard lines, each filled or
`n/a — <condition>` (measured: 5 lines × N drafts,
0 blank)
☐ Each draft's own Done When was run through the 3-part
completeness check and the WARN-trigger table, with the
result recorded per draft (mandatory-pass)
☐ Every Goal was checked against the target agent's declared
allowed-tools by READING that agent's SKILL.md — not from
recall (mandatory-pass)
☐ [WARN] items are surfaced to the user with the reason, and
the decision is the user's (mandatory-pass)
☐ Drafts are handed over for review, not dispatched (mandatory-pass)
☐ Step 3 item 4 ran on every draft with a separate reader;
each GUESS field is a recorded [WARN] or was fixed and re-read (mandatory-pass — NOT RUN is
recorded, never counted as pass)
☐ The drafts are usable by the target agent as written (judged — adversarial pairing:
generator and validator are the
same model, so self-validation
repeats its own bias. Have the
target agent, or a different
model, read one draft cold and
state what it would do; a
divergence from the intended
task is a FAIL)
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub chrono-meta/forge-harness --plugin fh-meta36 skills in this plugin
/agent-composerReads the current work context and plans the optimal agent dispatch. Clarifies direction with 1-2 questions when unclear; infers and proceeds immediately when execution path is unclear. Runs an automatic recording gate after each Wave completes. Triggered by "compose agents", "which agent should I use?", "run in parallel", or "agent-composer"./apex-reviewReviews a technical proposal from the perspective of organizational decision-makers (CTO, technical lead, QA lead, conference reviewers, etc.) and generates an HTML presentation deck. Outputs approval gate results per persona and connects to sim-conductor for improvement suggestions./asset-placement-gateRoutes a proposed skill, plugin, or agent to its correct home — forge-harness (FH) meta-skill, project-local agent, or drop — by applying a 4-criteria meta-skill bar followed by a project-local value test./auto-decorrelationRecruits cross-family verifier sidecars (codex, agy, local 4090 over Tailscale) for adversarial verification of load-bearing changes, maximizing model-family diversity against the orchestrator. Mechanically discovers the available sidecar panel, recruits at least one cross-family verifier when present, and degrades gracefully when none are. The governor (Claude) keeps the terminal verdict; sidecar findings must be source-grounded before acceptance. Opt-in via one-time consent, stored in the UAP; fires only on load-bearing changes. Triggered by "recruit a cross-family check", "decorrelate this verification", "use the idle sidecars to verify", "auto-decorrelation"./contention-layerWhen two skills, agents, or independent research tracks produce conflicting verdicts on the same output, reads the conflict as a signal rather than an error and harvests new skill candidates or insight deltas — including a Dual-Track Grounding conflict (open-frontier track vs internally-grounded recall track disagreeing). Routes skills born from contention to fh-meta (meta-layer), the commons plugin (project-agnostic), or field harvest (domain-specific). Triggered by "two skills conflict", "they produce different conclusions", "contention-layer", "contention harvest", "open vs grounded contradiction", "research tracks disagree"./context-doctorReduces token waste in Claude Code sessions (run the built-in `/context` first; this skill covers what it does not) across two axes — context footprint (auto-generates .claudeignore, guides over-read files and /clear timing) and command output (routes to a command-output proxy/hook such as rtk to trim verbose CLI stdout). In hub environments, regularly audits bloated CLAUDE.md/MEMORY.md/memory/*.md files and proposes compression. Usable standalone without a hub clone.Other plugins' skills for the same job