ForgeOrchestrator
Skill flashwade03/Damascus-For-Claude-Code/skills/ForgeOrchestrator
Internal orchestration logic for /forge, /forge-plan, and /forge-doc commands. Do not trigger on general document writing or review questions — only when these commands are explicitly invoked.From its SKILL.md
npx -y skills add flashwade03/Damascus-For-Claude-Code --skill ForgeOrchestratorAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 1 stars1 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
3.5 KB, as published. Nobody here has run it
forge-orchestrator
Iteratively improve documents through a repeated refinement loop — draft, review in parallel by multiple LLMs, refine until approved.
Configuration
Parse from user input:
-n [number]→max_iterations(default: 3)-o [path]→output_path(default: none)- Remaining text →
task_description
Example: -n 5 -o docs/api/auth.md implement auth → max_iterations=5, output_path="docs/api/auth.md", task="implement auth"
Mode Selection
The command passes a Mode field to select the authoring agent:
| Mode | Agent | When |
|---|---|---|
plan | damascus:planner | Implementation plans (Anthropic plan mode) |
doc | damascus:author | Technical documents — API specs, architecture, design docs |
auto | Decide based on task | See below |
Auto-Detection (mode=auto)
- Select
damascus:plannerfor tasks about implementing, building, or changing code - Select
damascus:authorfor tasks about writing documents - Default to
damascus:plannerwhen ambiguous
Session ID
Retrieve the session ID for tracking:
npx tsx ${CLAUDE_PLUGIN_ROOT}/scripts/get-session-id.ts
Returns JSON with shortId (first 8 characters).
Workflow Overview
Author ──▶ Save ──▶ Metadata ──▶ Reviewers (parallel) ──▶ Judge
▲ │
└───────────── Needs work ────────────────────────────────┘
- Draft — Invoke
damascus:plannerordamascus:authorvia Agent tool (resume on iteration 2+) - Resolve path —
-oflag > project conventions > ask user (first iteration only) - Save — Orchestrator saves directly using Write tool (no writer agent)
- Metadata — Run
plan-metadata.shto inject timestamps and session ID - Review — Launch enabled inspectors in parallel (Claude, Gemini, OpenAI)
- Consolidate — Write all feedback to
.review.md(always full overwrite) - Judge — APPROVED (no critical issues from ANY reviewer) or NEEDS_REVISION
- Loop — If NEEDS_REVISION and iteration < max_iterations, return to step 1
For detailed step-by-step procedures and tool invocation examples, consult references/workflow.md.
For the review file template and output format, consult references/review-template.md.
Key Rules
- Resume authoring agent — Store the
agentIdfrom the initial draft call. On iteration 2+, useAgent(resume: agentId)to preserve the agent's full codebase exploration context. Do NOT spawn a fresh agent each iteration. - Resolve output path once on the first iteration, then reuse
- At least one inspector must be enabled — if all are disabled, save the document and end with a warning
- Run inspectors in parallel (foreground calls in a single message — never use
run_in_backgroundorTaskOutput) - When refining, pass the Consolidated Summary + Review History table (not raw reviewer outputs)
- Loop ends early if document is APPROVED before max iterations
- Judge objectively — do not soften critical feedback
- Always overwrite
.review.mdcompletely (Write, not Edit) — compress previous iteration into history row first