fabric-teamwork
Skill9 starsChanged 22 days agoApache-2.0View on GitHub
Multi-agent team prompt crafting and delegation. 9 steps, objective verification, integrity modes, acceptance criteria.
In this repository275 other files it gives its agents.
- .agents/AGENTS.mdAGENTS.md
- AGENTS.mdAGENTS.md
- .agents/packs/eventtech/AGENTS.mdAGENTS.md
- .agents/packs/hardware/AGENTS.mdAGENTS.md
- .agents/packs/media/AGENTS.mdAGENTS.md
- skills/global_config/postgres-best-practices/AGENTS.mdAGENTS.md
- skills/global_config/react-best-practices/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- global-rulesCursor rule
- bdb-agentsCursor rule
- fabricCursor rule
- advisorSkill
- ao-orchestratorSkill
- bdb-eventagency-skillSkill
- bdbhtmlmanueldocsSkill
- bdbmediastormSkill
- bdb-shipping-skillSkill
- fabric-graphSkill
- fabric-loopSkill
- fabric-multigraphSkill
- fabricSkill
- fabric-swarmSkill
- godmode-3d-creationSkill
- godmode-engineeringSkill
- godmode-eventtechSkill
- godmode-hardware-pcbSkill
- godmode-media-creationSkill
- godmode-shippingSkill
- godmode-ui-uxSkill
- instinct-exportSkill
- instinct-importSkill
- instinct-statusSkill
- master-sessionSkill
- skill-createSkill
- bdb-aosSkill
- bdbrainstormSkill
- codebase-memorySkill
- github-repoSkill
- agentic-harness-patternsSkill
- agent-manager-skillSkill
- agent-memory-mcpSkill
- agent-pipelineSkill
- agent-tool-builderSkill
- agenttrailSkill
- ai-agent-developmentSkill
- ai-productSkill
- aos-a2aSkill
- aos-gatewaySkill
- aos-project-initSkill
- aos-setupSkill
- aos-storeSkill
- aos-updateSkill
- api-design-principlesSkill
- apify-lead-generationSkill
- apify-ultimate-scraperSkill
- api-patternsSkill
- archifySkill
- architect-reviewSkill
- ask-timSkill
- The first 60 shown.
The file
Show its rules and text
We split this skill into the rules it gives an agent
17 rules. About 0 are common, 8 are distinctive, and 9 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈8
Distinctive · estimate
This author's own choices. Worth a look.
9
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 19
Action: call the Workflow tool with scriptPath set to $HOME/.claude/workflows/fabric-teamwork-dispatch.mjs — resolve $HOME yourself rather …
- Very specific: line 25
Use scriptPath, not name. By-name lookup for a custom workflow script has been observed to fail with Workflow "..." not found even when the …
- Very specific: line 41
If the Workflow tool is unavailable (some harnesses have none.
- Distinctive: line 112
Ask: What do you want to build?
- Distinctive: line 118
Ask about effort and team scale:
- Distinctive: line 119
Single self-contained fix/feature: Keep focused (one implementer + repeated adversarial review).
- Distinctive: line 134
Write 2–5 concise requirement blocks.
- Distinctive: line 142
If programmatic tests are not feasible, draft an explicit agent-as-judge scoring rubric.
- Very specific: line 194
Before delegating, open the final prompt_draft.md in the Plan Canvas for visual annotation and a clear approve/request-changes verdict:
- Very specific: line 197
Run aos-plan-canvas open prompt_draft.md (planning mode resolved per the plan-canvas skill — builder default, no question).
- Very specific: line 198
Run aos-plan-canvas await prompt_draft.md and wait for the human verdict.
- Very specific: line 203
Monitor the run on the agenttrail map: After the approve, in this pipeline context also run aos-plan-canvas trail .
- Distinctive: line 211
When crafting prompts and delegating to multi-agent teams, map requested roles and team topologies to the shared registry:
- Very specific: line 213
Team selection & inspection: Use aos-team list to browse available team presets, aos-team show <id> to inspect role composition, and …
- Very specific: line 214
Deriving from playbooks: When a project aligns with an existing playbook, derive the required team automatically from the playbook's …
- Distinctive: line 217
Ad hoc roles: If a project requires specialized ad hoc roles, Architect or the prompt crafter may compose them strictly from existing …
- Distinctive: line 228
If running in Google Antigravity with native subagent support:
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
🤝 Teamwork Preview — Multi-Agent Prompt Crafting & Delegation
A structured workflow to turn high-level user ideas into robust, objectively verifiable multi-agent project specifications and delegate them cleanly to execution swarms.
Two-phase workflow:
- Interactive Prompt Crafting (Steps 1–9): Iteratively define project goals, eliminate ambiguity, select integrity modes, and enforce objective verification mechanisms.
- Delegation: Hand off the validated specification to the target multi-agent team or execution harness.
▶️ On Claude Code: run the script, don't narrate the protocol
Action: call the Workflow tool with scriptPath set to
$HOME/.claude/workflows/fabric-teamwork-dispatch.mjs — resolve $HOME yourself rather
than hardcoding a username — and args set to whatever the user said after the
command, passed through verbatim. If they said nothing, pass no args; step 1
asks.
Use scriptPath, not name. By-name lookup for a custom workflow script has been
observed to fail with Workflow "..." not found even when the file exists and its
meta.name matches.
Then wait for the call to finish and relay its result — the draft path, the validation outcome, and any issues it reports. Do not summarise or reinterpret it.
Do NOT walk through the nine steps yourself in response to this skill. The
protocol below is the specification the script implements; it is not a set of
instructions to follow inline. This repo has already paid for that mistake once,
recorded in skills/basic/fabric-graph/SKILL.md: an earlier version embedded
its pipeline in prose, the model followed it "in spirit" instead of invoking the
script, and the entire graph — subagents, state, review, quality gate — silently
never ran. A 9-step protocol with integrity modes and acceptance criteria is
exactly the shape of thing that gets approximated.
If the Workflow tool is unavailable (some harnesses have none; Claude Code can
have Dynamic Workflows switched off in /config), then run the protocol below
manually, in order, one step at a time.
🌐 Which harnesses get which
| Claude Code | The script above. Deterministic: it runs or it doesn't. |
| Codex · Cursor · OpenCode · Roo · Antigravity | The prose protocol below, interpreted by that harness's model. |
The .mjs script depends on Claude Code's Dynamic Workflows runtime — the ambient
agent() global and the Workflow tool. No other harness exposes an equivalent
today, so the prose is not a fallback there, it is the implementation. Both are
kept in this one file deliberately: two files would drift, and the drift would be
invisible until someone on the other harness got different behaviour.
This is not Antigravity's built-in teamwork command. That command is compiled into
the agy binary, with its own conductor/orchestrator/auditor agent types, and is
maintained by Google. This is an independent implementation of the same idea on a
different runtime. It will behave differently, and it does not claim otherwise.
🧭 Core Principles
| # | Principle | Rule |
| 1 | Specify What, Not How | Define requirements and acceptance criteria. Never prescribe implementation details (file structure, algorithms, libraries) unless the user explicitly mandates them. |
| 2 | Objective Verification | Every requirement needs an independent verification mechanism. Programmatic verification (tests, assertion scripts, CLI benchmarks) is preferred; explicit agent-as-judge rubrics are accepted when programmatic testing is impossible. |
| 3 | Acceptance Criteria = Guardrails | Acceptance criteria serve as the quality bar to prevent premature self-certification of incomplete or broken work. |
| 4 | Minimal Requirements | Only specify what the user explicitly cares about. Give the agent team maximal solution space. |
📋 Artifact-Based Workflow
Maintain a prompt draft artifact (prompt_draft.md) throughout the interaction. It provides real-time visibility to the user and tracks step progression.
# Teamwork Project Prompt — Draft
> Status: Step 1 — Eliciting project idea
> Goal: Craft prompt → get user approval → delegate
> Requested team: [none — routes automatically from description]
[Project description — 1-2 sentences]
Working directory: [TBD]
Integrity mode: [development | demo | benchmark]
## Requirements
### R1. [TBD]
### R2. [TBD]
## Acceptance Criteria
### [Category]
- [ ] [Objective condition checkable without subjective bias]
---
*Next: when approved → delegate via execution protocol*🔄 The 9-Step Interactive Workflow
Step 1: Elicit the Idea
- Ask: What do you want to build? What is the purpose (production, demo, eval, prototype)? Who is the audience?
- Condense into a 1–2 sentence project description.
- Initialize
prompt_draft.mdand set status to Step 2.
Step 2: Identify Ambiguity & Scale
- Probe points with multiple reasonable interpretations (data sources, third-party services, scope limits).
- Ask about effort and team scale:
- Single self-contained fix/feature: Keep focused (one implementer + repeated adversarial review). Prefix prompt: "This is a single self-contained fix; keep it small and focused."
- Math, formal proofs, or massive search: Offer standard pipeline vs. large-scale team. If large-scale selected, prefix prompt: "Use a very large team of agents."
- Standard multi-agent build: Standard workflow routes from task description.
Step 3: Determine Integrity Mode
Clarify operational boundaries:
- Can code be copied from existing open-source projects?
- Are pre-built external libraries permitted for core logic?
- Can test implementations be inspected before coding?
- Mapping:
- Unrestricted / default →
integrity_mode: development - Some shortcuts allowed (demo showcase) →
integrity_mode: demo - Strict isolation / zero external leakage →
integrity_mode: benchmark
- Unrestricted / default →
Step 4: Draft Requirements (R1, R2, ...)
- Write 2–5 concise requirement blocks.
- Focus strictly on what is required, not how to implement it.
- Apply litmus test: "Would a senior engineer feel over-constrained by this requirement?" If yes, prune.
Step 5: Design Verification Mechanisms (Forcing Function)
Why this matters: Verification is a forcing function. Its job is to create an objective test target that forces a genuine build → test → debug loop and prevents premature self-certification.
- Design programmatic tests where feasible (unit test suites, test runners, CLI assertion scripts).
- If programmatic tests are not feasible, draft an explicit agent-as-judge scoring rubric.
- Inquire whether the user has existing test suites, schemas, or reference implementations to include in a
## Verification Resourcessection.
Step 6: Set Acceptance Criteria
- Convert verification mechanisms into checkable markdown checkboxes (
- [ ]). - Calibrate strictly to the project purpose:
- Demo: Achievable within rapid time budget.
- Production: Full test coverage, strict error handling, production readiness.
- Eval: Strict reproducible metrics over polish.
Step 7: Infrastructure Constraints (If Applicable)
- Define sandboxing or controlled APIs for remote file operations, job launching, and external network calls.
- Skip if the project operates purely within local workspace files.
Step 8: Choose Working Directory
- Confirm the target working directory (default:
~/teamwork_projects/{project_name}or a relative path in the current repo). - Record as
Working directory: <path>at top of prompt draft.
Step 9: Assemble, Validate & Seek Approval
Assemble the final structured prompt:
[1-2 sentence project description]
Working directory: <path>
Integrity mode: [development | demo | benchmark]
[Optional: Team scaling directive]
## Requirements
### R1. [Primary Deliverable]
[What it does, not how to build it]
### R2. [Secondary Deliverable]
[What it does, not how to build it]
## Acceptance Criteria
### [Category]
- [ ] [Objective condition checkable without subjective bias]Pre-flight Checklist:
- No unsolicited implementation hints (file structures, algorithms).
- Every acceptance criterion is objectively verifiable.
- Scope matches actual user needs.
- Team scale directive included if requested in Step 2.
Seek explicit approval from the user before triggering execution.
Plan review
Before delegating, open the final prompt_draft.md in the Plan Canvas for visual annotation and a clear approve/request-changes verdict:
- Give the top-level heading a stable ID, e.g.
# Teamwork Project Prompt — Draft {#prompt-draft}. - Run
aos-plan-canvas open prompt_draft.md(planning mode resolved per theplan-canvasskill — builder default, no question). - Run
aos-plan-canvas await prompt_draft.mdand wait for the human verdict. - Delegate only after an
approveverdict.
(If running in OpenCode, always print the Canvas URL in chat.)
Monitor the run on the agenttrail map. After the approve, in this pipeline
context also run aos-plan-canvas trail . to write the execution plan file,
then aos-trail --ensure to open the live map; GO requests surface in the
agenttrail hub, where the human answers them by typing GO. See the
agenttrail skill.
Teams and roles
When crafting prompts and delegating to multi-agent teams, map requested roles and team topologies to the shared registry:
- Team selection & inspection: Use
aos-team listto browse available team presets,aos-team show <id>to inspect role composition, andaos-team new <id>to define new team configurations. Registry precedence: Project (.aos/teams/,.aos/roles/) > User (~/.aos/teams/,~/.aos/roles/) > Shipped defaults (.agents/nodes.jsonplus the role and team presets bundled with AOS). - Deriving from playbooks: When a project aligns with an existing playbook, derive the required team automatically from the playbook's frontmatter
requires:block (skills,agents,mcps) usingaos-team new <id> --from-playbook <name>. - Effort tiers: Team scale maps to effort tiers and repair iteration rounds:
S= 3 rounds (small/focused),M= 4 rounds (standard),L= 5 rounds (large/complex). - Playbook phases: Equip roles with playbooks categorized by phase:
before(scaffolding and setup),during(work method and implementation),after(verification, security, and shipping). - Ad hoc roles: If a project requires specialized ad hoc roles, Architect or the prompt crafter may compose them strictly from existing skills and playbooks with TechLead approval. Ad hoc roles cannot introduce unverified tools or MCPs and exist only for the run unless saved.
🚀 Delegation Protocol
Once approved by the user:
Before delegating, start the live map (Trigger B) so the user can follow the team: aos-trail --ensure (add --plan <plan-file> if the plan path is explicit) (safe to run twice: it reuses a map already running for this repo). Put the live-map link in your reply (the autostart hook also adds it as context when active). Inside AO (env var AO_BROWSER_CAPABILITY set) also run ao preview <url>. Dispatcher duties, every delegation: start each worker with AOS_TRAIL_NODE=<node-id> and AOS_TRAIL_PLAN=<plan-file> in its environment (aos-acp --trail-node <id> --trail-plan <file> does this), run aos-trail tick <plan> <task-id> --doing when a worker starts a task and --done when it lands — never expect the worker to maintain the plan file. See the agenttrail skill.
1. In Antigravity Harness
If running in Google Antigravity with native subagent support:
- Call
invoke_subagent:TypeName:teamwork_previewRole:Teamwork CoordinatorPrompt: Full prompt content fromprompt_draft.md
- Set artifact status to
Launched.
2. In Other Agent Harnesses
- Claude Code: Feed the finalized prompt to dynamic workflows or dispatch via
/fabric-graph/ subagents. - Cursor / Windsurf: Inject the prompt into composer or project rules context.
- OpenCode / Codex CLI: Pass the prompt to
opencode runor Codex runner.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

