Generate a PR-driven multi-agent workflow repo from a YAML brief. The builder produces a consistent set of role skills, templates, policies, and helper scripts so teams can spin up new systems without re-inventing the workflow.
- Turn a YAML brief into a complete, PR-driven multi-agent workflow repo.
- Produce deterministic, ASCII-first scaffolding with consistent skills and templates.
- Embed the PR process contract and optional draft PR scaffolding when enabled.
- Provide validation and helper scripts so teams can iterate quickly.
- Add fixture-based tests for
scripts/build_system.pyto lock down deterministic output and prevent regressions.
- Status: none (no GitHub Actions runs found).
- TODO: Add a CI workflow that generates from
examples/briefs/writing-publishing.ymland runsscripts/validate_skills.pyon the output. - TODO: Add unit tests for
scripts/build_system.pyand run them in CI.
- Author a brief YAML (see
examples/briefs/writing-publishing.yml). - Generate a system:
python3 scripts/build_system.py examples/briefs/writing-publishing.yml --out ./out/writing-publishing- Validate the generated repo:
python3 ./out/writing-publishing/scripts/validate_skills.pyNotes:
- The output directory must be empty.
- PyYAML is optional; a minimal YAML parser is used if it is unavailable.
system:
name: writing-publishing
description: Multi-agent workflow for article publishing and research.
version: 1
workflow:
pr_process_contract: agent-process-contract.md
use_worktrees: true
create_draft_prs: false
roles:
- name: editor-in-chief
description: Defines editorial priorities and approves final pieces.
policies:
- plagiarism-check
templates:
pr_body: templates/pr-body.md
acceptance_checklist: templates/acceptance-checklist.md
references:
- path: references/policies/plagiarism.md
purpose: Originality standards and tooling.AGENTS.mdandSKILLS.mdoverview the system and role skillsagent-process-contract.mddefines the PR workflow rulesscripts/includesbuild_system.py,validate_skills.py,agent-worktree.sh, andagent-chat.shtemplates/includespr-body.mdandacceptance-checklist.md- One directory per role with a
SKILL.md references/contains policy modules and optional extra references- Optional
scripts/scaffold_prs.shis emitted whencreate_draft_prsis true
scripts/agent-worktree.sh <branch-name> <worktree-path>creates a worktreescripts/agent-chat.sh <role> <message>appends tologs/agent-chat.logscripts/scaffold_prs.sh <branch-name> <title>creates a draft PR (requiresgh)
examples/briefs/writing-publishing.ymlis a sample briefexamples/writing-publishing/shows a generated system from that brief
logs/decisions.logcaptures implementation decisions and defaults