BeClaude

workflow-design-bible

New
26GitHub TrendingDocumentationby preangelleo

Generate a complete "constitution + documentation system" for a new autonomous, agent-run project — a content channel, an ebook press, an SEO tool-site, a web product, a casual game, or anything that should run itself with minimal human babysitting. Use when starting a brand-new self-running project and you want a CEO-orchestrated architecture (main agent → sub-agents → skills → CLI/MCP) scaffolded from a short structured interview. Triggers - "start a new autonomous project", "scaffold a project constitution", "set up an agent-run project", "generate a CLAUDE.md / AGENTS.md for a new project", "design the workflow for X", "bootstrap a self-running pipeline".

First seen 6/19/2026

Summary

This skill runs a short structured interview to generate a complete 'constitution + documentation system' for a new autonomous, agent-run project.

  • md, a documentation configuration file, and skeleton folders for agents, skills, reflections, and reports, enabling minimal human babysitting.

Overview

Workflow Design Bible — a constitution generator for autonomous, agent-run projects

What this skill is. A reusable meta system prompt. When the user wants to

create a new autonomous project (content/video channel, ebook/publishing,

SEO tool-site/wiki, web product, casual game, …), this skill runs a short

structured interview, then **fills in a standard "constitution + docs"

system**: a lean root CLAUDE.md (the project constitution) + a

documentation/configuration.json + a documentation/ folder of

single-source-of-truth docs + empty .claude/agents/, .claude/skills/,

reflections/, reports/ skeletons.

What this skill does *not* do. It runs no business code, writes **no

application logic, and deploys nothing. It only does interview → generate

the documentation skeleton + registries**. The real CLI (factory.py /

press.py / whatever), the actual sub-agent system prompts, and each

capability skill are grown later by the project's own CEO + maintainer agent.

Two ways to use it. (1) Read the doc — paste this file into any capable

LLM and follow it by hand. (2) Install the skill — drop this folder into your

agent runtime's skills directory (e.g. a global skills/ location) so it

triggers automatically when you start a new project.

Templates live beside this file, so the constitution stays lean:

- templates/CLAUDE.md.template — the fill-in constitution skeleton.

- templates/configuration.json.template — the brand single-source-of-truth.

Throughout this document: "CEO" = the main/orchestrating agent;

"the user" = the human owner/chairman who sets direction and signs off.

Filenames like CLAUDE.md are conventions — substitute whatever your runtime

reads as its top-level agent instructions (e.g. AGENTS.md).


A. The eight non-negotiable design philosophies

These eight are the soul of the Bible. Every generated constitution must embody all eight — they are not options, they are the foundation.

Philosophy 1 · The main agent is a CEO, not a worker

The main agent's job is to orchestrate, supervise, review, control the process, and talk to the user — not to do the manual labor itself. Spend its context and reasoning on judgment and coordination. Every fixed, repeatable step is delegated to a sub-agent by default.

Philosophy 2 · Everything is a sub-agent; concurrency is the default latent power

Every fixed work step is assigned to a role-clear sub-agent. Because the work is sub-agent-shaped, it is natively parallelizable:

  • Independent steps → fan out at once (e.g. compile / cover / copywriting in parallel).
  • Many homogeneous tasks of one kind → batch concurrency (e.g. 60 scenes, 50 in flight).

Express concurrency at the fan-out points of the pipeline (a dedicated "parallelism" section), not as bookkeeping on every single agent. Caution against over-proliferation: if one shared engine/codebase underlies many artifacts, prefer one shared maintainer agent over a maintainer-per-artifact — split a role out only when an artifact has genuinely distinct dependencies.

Philosophy 3 · Four-layer architecture (CEO → Sub-agent SP → Skill → MCP/CLI)

Capabilities are tiered; each layer points down, and details never leak up:

code
① CEO (CLAUDE.md)            — assigns work, sets principles, touches no details
   ↓ dispatch a sub-agent with a self-contained task brief
② Sub-agent (its system prompt)
   — role definition + "which skills this role should mainly use" (pointers)
   ↓ invoke a skill
③ Skill (its SKILL.md)
   — how one capability is used; declares which MCP servers + which CLI commands it is built from
   ↓ execute
④ MCP servers + command-line tools (executed, never loaded into context)

Key discipline: a sub-agent can see a large pile of global + local skills, but seeing ≠ should-use. Its system prompt must explicitly narrow ("your work mainly uses skill X / Y") so it does not grab tools at random.

Philosophy 4 · Single source of truth + pointers; the constitution never bloats

CLAUDE.md keeps only the most critical, clearest things: role definitions, operating/management/orchestration principles, the pipeline spine (step by step), and the file map. All concrete common knowledge / single sources of truth sink down into standalone docs under `documentation/`; the constitution holds only a pointer + one line of context. Likewise, push role detail down into each sub-agent's system prompt — the CEO does not need to know how a role works, only that it exists; it reads that SP when it needs the detail.

Why: CLAUDE.md is resident in context on every interaction. Detail written

inside it = carried as overhead, burning tokens, every single turn.

Philosophy 5 · Two-tier capability layering: global (reuse) vs local (build)

Every constitution splits capabilities in two, and tells sub-agents the boundary:

  • Global (reuse, not built here): skills / MCP / sub-agents shared across all

your projects (a messaging capability, an image generator, a research helper, various operator agents). Call them directly, zero build cost.

  • Local (built/forked for this project): the project-specific CLI, project

skills, project sub-agents.

  • ⚠️ Scope trap: a skill scoped to another project's directory will not

auto-load here; fork a trimmed copy or call the global equivalent. State this in the generated constitution.

Philosophy 6 · Reflection & self-iteration is always the last step — and there are two loops

Every pipeline's spine ends with Reflection & Self-Iterate: review this cycle's flaws + efficiency → attribute root causes → dispatch the maintainer agent to upgrade the process → consolidate. The goal is to steadily turn "still decided on the fly" into "now frozen into a deterministic function." No self-iteration review = the loop did not close. Two distinct loops exist; the constitution must keep them separate:

  • Loop A — per-cycle reflection (end of each pipeline run) → write to reflections/ (permanent; never in a build dir that gets cleaned).
  • Loop B — cross-session async review: a scheduled job writes a data/analytics

report to reports/; the next session's startup ritual scans reports/, adopts/discards, then archives. Plus a HANDOFF note carries unfinished business between sessions.

Philosophy 7 · Constitution-as-code: a deterministic self-check keeps claims == reality

A constitution drifts: it claims "9 sub-agents, 7 skills" while the filesystem says otherwise. So every project ships a deterministic `doctor` / consistency-lint command that checks what the docs claim against what actually exists (agents, skills, CLI subcommands, asset counts, the lifeline DB) and exits non-zero on drift. This is the machine backstop for the "propagation consistency" rule: any leaf change (CLI/skill/SP/template) must, before it is done, re-confirm the upper layers' contracts — and doctor enforces it mechanically.

Philosophy 8 · Standard shape (root constitution + documentation/)

The project folder has a fixed shape from birth:

code
<project>/
├── CLAUDE.md              ← constitution: principles / spine / pointers / map (resident in context)
├── documentation/         ← every single source of truth / common knowledge / config (loaded on demand)
│   ├── configuration.json      brand structured config (single source of truth)
│   ├── INITIALIZATION.md       one-time first-deploy setup
│   ├── reflection_playbook.md  the step-by-step for the reflection step
│   ├── <playbook>.md           topic playbooks (quality gate / topic SOP / compliance / …)
│   └── …
├── .claude/agents/        ← sub-agent system prompts (role definitions)
├── .claude/skills/        ← each SKILL.md (capability definitions)
├── <core>.py / <core>/    ← deterministic CLI code (executed, never in context)
├── reflections/           ← per-cycle reflection reports (permanent)
├── reports/               ← async data/analytics reports (consumed at session start)
├── HANDOFF.md             ← cross-session handoff of unfinished work
├── CHANGELOG.md
└── <lifeline>.db          ← the lifeline memory store (gitignored)

B. What one run of this skill delivers

DeliverablePathContents
Project constitution<project>/CLAUDE.mdFilled in from templates/CLAUDE.md.template (lean, pointer-based).
Brand config<project>/documentation/configuration.jsonFilled in from templates/configuration.json.template.
Initialization doc<project>/documentation/INITIALIZATION.mdCredential checklist + one-time deploy steps (skeleton).
Topic single-source docs<project>/documentation/<topic>.mdThe rules identified in the interview that don't belong in the constitution (one file each).
Empty skeletons.claude/agents/, .claude/skills/, reflections/, reports/, HANDOFF.mdCreate dirs + a .gitkeep or README placeholder each.

Not generated: business code, real sub-agent SP contents, real skill

implementations — those grow after the project exists. This skill produces only

the registries + skeleton + placeholders, registering up front *which roles

and capabilities should exist* inside CLAUDE.md.


C. Interaction protocol (the intake interview)

Complete the interview before generating. Ask in rounds; offer multiple-choice options wherever possible to minimize the user's typing. After each round, echo the answer back to confirm, then proceed. The goal: fill every {{placeholder}} in the templates.

Efficiency rules for the interviewer:

- The CEO model, the five/six core rules, and the four-layer architecture are

constants across all projects — do not interview for them; they come

pre-filled from the template.

- For global capabilities, auto-survey the host environment first (inspect

the available skills / sub-agent types / MCP servers your runtime exposes) and

propose a reuse list for the user to confirm or trim — do not ask the user

to recall them from memory.

- Batch related questions (up to ~4 at a time). Aim to finish in 3–4 rounds, not 7.

Round 0 · Project archetype (selects the pipeline template branch)

Ask which archetype the project is; each preloads a different spine draft:

ArchetypeTypical spine (preloaded draft, then tune with the user)
Content — video/channeltopic → script → render → publish → engage/comments → reflect
Content — ebook/publishingthesis → write → compile → multi-channel distribute → marketing → optimize → reflect
SEO traffic asset (tool-site/wiki)topic → build → ship → monetize → SEO/monitor → reflect
Web product/siterequirements → design → build → test → deploy → monitor → reflect
Casual gameconcept → asset production (heavy batch concurrency) → build → test → publish → data-tune → reflect
Other (custom)co-design the step-by-step from scratch

Round 1 · Mission, North Star, and red lines

  • One-sentence mission (becomes the CEO's North Star).
  • 3–5 priority-ordered non-negotiable constraints (earlier always outranks

later). Guide the user to think through the chain (e.g. "account safety > content quality > quantity > speed > per-unit revenue").

  • The #1 iron law / compliance red line, if any ("violate it and everything

is wasted" — e.g. platform anti-spam, marketplace anti-AI-slop, ToS).

  • Don'ts (two tiers): what is Forbidden (red-line actions that can void the

whole project) vs Discouraged (avoid unless justified). These populate the template's Don'ts section, parallel to the Rules.

Round 2 · Brand (→ configuration.json)

  • Brand/codename? Attribution entity (real name? pen name? company)? Per-language?
  • Slogan / tagline?
  • Logo assets (any existing)?
  • Design language: primary colors, fonts, tone keywords, visual style, taboos.
  • Trust / E-E-A-T anchor (site / author identity)?
  • Payment / account entity (if monetized)?

Round 3 · Pipeline spine (step by step)

  • Starting from the archetype draft, nail down each step: what it does → its

output → the lead role.

  • Mark which steps can run in parallel (the fan-out points).
  • Confirm the last step = reflection & self-iteration.

Round 4 · Roles (sub-agent split) + global/local capabilities

  • One sub-agent per fixed step: name + one-line role + which step.
  • There must always be a dev-maintainer (owns all code/SP/skill changes).
  • Apply the anti-proliferation rule: prefer one shared maintainer unless an

artifact has distinct dependencies.

  • Confirm the auto-surveyed global reuse list; list the local skills to

build/fork — and for each local skill, which MCP servers + which CLI commands it is built from (Philosophy 3, layer ③).

  • For each sub-agent, name which skills it should mainly use (the pointer in its SP).

Round 5 · Lifeline memory + single-source docs + phase/credentials

  • What long-term memory store does the project need (asset portfolio DB /

dedup vector store / progress ledger…)? What fields?

  • Which rules are "single source of truth" and should each become a

documentation/<topic>.md? (compliance, topic SOP, quality gate, pricing, ramp-up discipline…) Register each.

  • Current phase? Ramp-up cadence / risk discipline?
  • Which private credentials / external accounts must the user provide

(→ INITIALIZATION.md)?

  • The boundary for "only two reasons to stop and ask the user" (missing

credential / subjective business judgment).

When the interview is done, echo back every filled key field and confirm

before writing any files.


D. Generation rules

  1. Copy templates/CLAUDE.md.template, replace every {{…}}, delete optional

sections that don't apply. Keep it lean — anything longer than a few lines becomes "one line + a pointer to `documentation/<x>.md`."

  1. Copy templates/configuration.json.template; put **all concrete brand values

(pricing / colors / attribution) only here** — the constitution references them by pointer.

  1. Generate documentation/INITIALIZATION.md (credentials + one-time deploy) and

one documentation/<topic>.md per single-source rule identified in Round 5.

  1. Create the empty skeletons (.claude/agents/, .claude/skills/,

reflections/, reports/, HANDOFF.md) with placeholders.

  1. Recommend (do not implement) a doctor / consistency-lint subcommand for the

project's future CLI, per Philosophy 7.


E. After generation (the skill's closing actions)

  1. Self-check against the checklist in §F.
  2. Output a manifest to the user (what files were created + one line each), and

restate the key decisions.

  1. If your runtime hot-loads agents/skills, tell the user how to reload so the

new .claude/agents / .claude/skills are picked up.

  1. Point to the next step: the project CEO takes over → dispatches the

maintainer agent to build out the registered local skills / sub-agents / CLI one by one.


F. Quality self-check (must pass before delivery)

  • [ ] CLAUDE.md contains no rule longer than a few lines — everything has sunk

into documentation/ or a sub-agent SP, leaving only pointers.

  • [ ] All eight design philosophies are embodied (CEO model / all-sub-agent +

concurrency / four-layer / single-source pointers / global-local tiers / reflection close with both loops / constitution-as-code self-check / standard shape).

  • [ ] The pipeline's last step = reflection & self-iteration.
  • [ ] The constitution has a Rules section and a parallel Don'ts section

(Forbidden vs Discouraged clearly separated).

  • [ ] Each sub-agent names the skills it should mainly use; concurrency is captured

at the fan-out points.

  • [ ] Each local skill states which MCP / CLI it is built from.
  • [ ] Concrete brand values live only in configuration.json; the constitution is pointers.
  • [ ] A doctor / consistency-lint command is recommended for the project CLI.
  • [ ] The file map matches the directory actually generated.
  • [ ] Every {{placeholder}} has been replaced.

Install & Usage

1
Create the skills directory
mkdir -p .claude/skills
2
Download the skill file
mkdir -p .claude/skills && curl -o .claude/skills/workflow-design-bible.md https://raw.githubusercontent.com/preangelleo/workflow-design-bible/main/SKILL.md
3
Invoke in Claude Code
/workflow-design-bible

Use Cases

Starting a new autonomous content channel and needing a project constitution and agent architecture.
Bootstrapping a self-running ebook press with sub-agents and skill registries.
Setting up an SEO tool-site with a CEO-orchestrated workflow and documentation skeleton.
Designing the workflow for a casual game that runs itself with minimal human oversight.
Generating CLAUDE.md and AGENTS.md for a new web product to define agent roles and responsibilities.
Scaffolding a self-running pipeline for a web product including reflections and reports folders.

Usage Examples

1

/workflow-design-bible start a new autonomous project for a daily newsletter

2

/workflow-design-bible scaffold a project constitution for an SEO tool-site

3

I want to bootstrap a self-running pipeline for a casual game. Use the workflow-design-bible skill.

View source on GitHub
documentationdesignmcpagent

Security Audits

LicenseUnknownSourceWarnRepositoryPass

Frequently Asked Questions

What is workflow-design-bible?

This skill runs a short structured interview to generate a complete 'constitution + documentation system' for a new autonomous, agent-run project. It scaffolds a lean CLAUDE.md, a documentation configuration file, and skeleton folders for agents, skills, reflections, and reports, enabling minimal human babysitting.

How to install workflow-design-bible?

To install workflow-design-bible: create the skills directory (mkdir -p .claude/skills), then run: mkdir -p .claude/skills && curl -o .claude/skills/workflow-design-bible.md https://raw.githubusercontent.com/preangelleo/workflow-design-bible/main/SKILL.md. Finally, /workflow-design-bible in Claude Code.

What is workflow-design-bible best for?

workflow-design-bible is a skill categorized under Documentation. It is designed for: documentation, design, mcp, agent. Created by preangelleo.

What can I use workflow-design-bible for?

workflow-design-bible is useful for: Starting a new autonomous content channel and needing a project constitution and agent architecture.; Bootstrapping a self-running ebook press with sub-agents and skill registries.; Setting up an SEO tool-site with a CEO-orchestrated workflow and documentation skeleton.; Designing the workflow for a casual game that runs itself with minimal human oversight.; Generating CLAUDE.md and AGENTS.md for a new web product to define agent roles and responsibilities.; Scaffolding a self-running pipeline for a web product including reflections and reports folders..