operating-model-bootstrap
Skill13 starsChanged 27 days agoApache-2.0View on GitHub
Bootstrap or harden a project's operating model for mixed human and AI delivery teams. Use when starting a repository, adopting an agent harness, defining authority and risk tiers, coordinating parallel agents safely, binding evidence and review to an exact candidate, or correcting fragmented rules that prevent coherent, consistent, complete delivery.
In this repository26 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- adk-expertSkill
- adversarial-gateSkill
- cloud-checkupSkill
- cloud-expertSkill
- cost-guardrailSkill
- cxo-oversightSkill
- delivery-orchestratorSkill
- domain-validatorSkill
- frontend-performance-auditSkill
- get-it-doneSkill
- github-managerSkill
- governance-guardrailSkill
- mcp-server-scaffoldSkill
- plugin-submissionSkill
- product-ownerSkill
- pr-reviewerSkill
- release-managerSkill
- release-readinessSkill
- sitrepSkill
- spec-first-deliverySkill
- system-performance-guardrailSkill
- test-strategySkill
- the-architectSkill
- using-the-harnessSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
20 rules. About 0 are common, 16 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈16
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 26
Keep the working directory at the consumer project root.
- Very specific: line 28
Use that absolute script path.
- Distinctive: line 30
Never run bootstrap against the installed package or a global home directory.
- Distinctive: line 53
When adopting into a repo that already has code, do not present a blank seven-area form.
- Distinctive: line 54
Run the read-only inspection pass to pre-fill what the repository already reveals:
- Very specific: line 100
Do not fabricate answers to populate any of these files.
- Distinctive: line 113
Read the four contract assets before editing the target project:
- Distinctive: line 120
Read the five planning-seed assets before initialising project delivery records:
- Very specific: line 128
Use the thin starter files under assets/adapters/ for agent surfaces the target project supports.
- Distinctive: line 133
Do not copy project details into the universal manual.
- Distinctive: line 158
Ground the project: Read its existing constitutions, architecture, delivery flow, test commands, deployment path, protected surfaces, and …
- Distinctive: line 166
Install the kernel: Run the safe initializer or copy the released manual byte for byte to the canonical governance location.
- Distinctive: line 180
Wire lightweight adapters: Use only the adapters the team needs.
- Distinctive: line 193
Close the lifecycle: Run focused and convergence gates, obtain independent review of the exact integrated candidate, deliver only with …
- Distinctive: line 210
Prefer a required remote check or signed attestation for high-risk approval.
- Distinctive: line 236
Verify all mutating lanes and external resources have one owner.
- Distinctive: line 240
Run the project's lint, type, test, security, and convergence commands.
- Distinctive: line 241
Run the Adversarial Gate: name how authority, isolation, evidence, delivery, or observation could still fail silently.
- Distinctive: line 261
Do not claim complete enforcement while local checks remain bypassable, reviewer identity is unauthenticated, credentials remain exposed, …
- Distinctive: line 267
Before release, resolve the profile's declared mode against its approved ADR and use release-contract.md for the existing validator's …
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 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
Operating Model Bootstrap
When to use
- Starting a new repository or team project that will use AI agents or agent-harness skills
- Adopting this harness into an existing project for the first time
- Defining or repairing authority, risk tiers, lane isolation, or evidence-binding contracts
- Coordinating parallel human and agent lanes safely (worktrees, ownership, integration)
- Binding review to an exact candidate commit before R2/R3 work
- Correcting fragmented or contradictory rules across AGENTS.md, CLAUDE.md, and GEMINI.md
Establish a portable operating kernel and one tracked project profile. Treat humans, agents, skills, tools, and gates as one delivery system with explicit authority, ownership, evidence, and completion semantics. The day-one seed lets a new team begin system design and delivery planning while explicitly owned project unknowns are resolved.
Resolve the installation before running scripts
Keep the working directory at the consumer project root. Find this SKILL.md in the
host’s selected project, user or plugin installation, and resolve scripts/ beside it.
Use that absolute script path; do not assume .agents/skills/ exists in the consumer.
In the commands below, replace <bootstrap-skill-dir> with that discovered directory.
Never run bootstrap against the installed package or a global home directory. If more
than one installation is available, use the project’s declared version/source and resolve
ambiguity before mutation. Preserve existing adapters; conflicts require a deliberate merge.
Project awareness — seven areas to establish at init
The bootstrap must establish or explicitly own each of the following. Required areas must
be answered before the profile leaves seed state. Optional areas have a recommended
default; record not yet established — owner: role; required before: trigger for any
unknown rather than leaving it blank or fabricating a value.
| # | Area | Status | Default if not declared |
| 1 | Product vision, objectives, actors, scope, out-of-scope, SOW / acceptance record | Required | None — must be declared |
| 2 | Team roster: PO, SMEs, integration owner, reviewer roles, escalation path | Required | None — must be declared |
| 3 | Technical stack: language, framework, architecture, repos, interfaces, runtime | Required | None — must be declared |
| 4 | Tooling: package manager, linter, type checker, unit / integration / e2e test commands | Optional — recommended defaults | Linting + validation + unit tests minimum |
| 5 | Cloud, hosting, data classification, residency, compliance, approved-vendor constraints | Optional — advised | Deduced from stack; invoke governance-guardrail to confirm policy alignment |
| 6 | Automation: CI/CD, branch policy, release process, deployment owner, rollback | Optional — default provided | GitHub SemVer + tag-based releases; invoke release-manager to document and confirm |
| 7 | Delivery controls: source of truth, issue/PR conventions, DoD, escalation triggers | Optional — default provided | GitHub stack; this repository's issues, ADRs, and architecture docs are the source of truth |
Backfill from an existing repo
When adopting into a repo that already has code, do not present a blank seven-area form. Run the read-only inspection pass to pre-fill what the repository already reveals:
python3 "<bootstrap-skill-dir>/scripts/inspect_repo.py" .It reads manifests, tool configs, CI, CODEOWNERS, and docs, and prints inferred
findings — each a machine guess with an evidence pointer and the exact
inferred — source: <evidence>; confirm: <role> marker to paste into the profile. Rules:
- Transcribe each finding into the profile as its
inferredmarker; never silently promote it to a verified fact. - Confirm inferred fields one at a time with the named human; a confirmed field
becomes a plain verified value. The profile cannot go
activewhile anyinferredfield remains (the validator enforces this). - The pass is read-only and never infers authority —
CODEOWNERShandles are roster candidates only; role and accountability stayunknownuntil a human assigns them.
Init artefacts
The initializer script seeds structure, not decisions. Running bootstrap (or the init
command, which runs bootstrap first) creates these records with template content to be
grounded from verified project evidence:
docs/operating-model/PROJECT-OPERATING-PROFILE.md— the project contract, holding the seven-area answers above.docs/VISION.md— product vision, objectives, actors, scope, and out-of-scope (area 1).docs/ROADMAP.md— the big-picture scope of work: ordered outcome gates, seeded unpopulated. The team adds dates as the Product Owner confirms them.docs/STATUS.md— the derived situation-report structure, seeded unpopulated.docs/operating-model/DELIVERY-WORKFLOW.md,CHANGELOG.md, and theAGENTS.md/CLAUDE.md/GEMINI.mdadapters.
The script seeds structure; the agent records the decisions. As part of the bootstrap workflow, capture the choices made during init as durable, referenceable authority:
- Baseline ADR — author the project's first architecture decision record at its ADR
convention (
ADR/ADR-0000-baseline-structure-DRAFT.md, approved to-approved.md; seethe-architect), capturing every choice confirmed or deferred during init, with the owner and resolving trigger for each explicit unknown. This is the authority record for the starting structure. - First status entry — add one entry to
docs/STATUS.mdrecording the initialization event and the open unknowns. This records what happened, not invented progress; roadmap outcomes stay unpopulated until the Product Owner validates them.
Do not fabricate answers to populate any of these files. An honest unknown — owner: X;
required before: Y is better than a plausible-sounding invention that will mislead every
agent that later reads the profile.
Portability boundary
The operating model is model-, vendor-, and IDE-agnostic. Thin surface adapters only make the same contract discoverable and invocable. They may not change authority, risk, evidence, review, or completion semantics. This is a team-project harness bootstrap, not a production application scaffold or a substitute for project/domain controls.
Load the assets
Read the four contract assets before editing the target project:
assets/OPERATING-MANUAL.md— released vendor-neutral normative kernel; copy it unchanged.assets/PROJECT-OPERATING-PROFILE.template.md— project-specific contract.assets/CHECKPOINT.template.yaml— durable state for R2/R3 work.assets/EVIDENCE-MANIFEST.template.yaml— exact-candidate evidence and review record.
Read the five planning-seed assets before initialising project delivery records:
assets/VISION.template.md— durable product direction and initial focus.assets/DELIVERY-WORKFLOW.template.md— project mapping of the shared lifecycle.assets/ROADMAP.template.md— ordered outcome gates, initially unpopulated.assets/STATUS.template.md— derived situation-report structure, initially unpopulated.assets/CHANGELOG.template.md— project release-history structure.
Use the thin starter files under assets/adapters/ for agent surfaces the target
project supports. They are discovery adapters, not competing constitutions.
For a greenfield adoption, read references/DAY-ONE-EXAMPLE.md to calibrate what may
start in seed state and what must wait for active controls.
Do not copy project details into the universal manual. Bind its exact SHA-256 in the profile and adapters. Unknown profile facts must be owned and time-bounded, never fabricated. Never call a seed profile active while applicable placeholders remain.
Initialise safely
From the consumer project root, using the discovered skill directory, preflight and install the day-one seed:
python3 "<bootstrap-skill-dir>/scripts/bootstrap_operating_model.py" \
--dry-run --project-name "<project name>" .
python3 "<bootstrap-skill-dir>/scripts/bootstrap_operating_model.py" \
--project-name "<project name>" .The initializer creates the manual, seed profile, checkpoint/evidence templates, vision,
delivery workflow, blank roadmap/status structures, project changelog, and AGENTS.md,
CLAUDE.md, and GEMINI.md adapters. It preflights the whole file set, preserves
different existing project planning records, and refuses conflicting operating contracts
or adapters before writing anything. Map existing planning records in the profile; merge
a protected contract deliberately rather than forcing replacement.
Bootstrap workflow
- Ground the project. Read its existing constitutions, architecture, delivery flow, test commands, deployment path, protected surfaces, and current state. List contradictions and stale claims before adding policy.
- Classify risk. Map project work into R0–R3. Round ambiguity upward. Name the highest-impact silent failure, rollback owner, and observation surface.
- Confirm authority. Separate useful intent from permission at the classified risk tier. Obtain explicit approval before constitutional, destructive, credential, external, deployment, production-data, or capital changes.
- Install the kernel. Run the safe initializer or copy the released manual byte for byte to the canonical governance location. Record version, digest, owner, adoption status, and review trigger.
- Ground the profile. Resolve the day-one minimum first. Fill applicable fields
with verified facts and use
not applicable — reasonornot yet established — owner: role; required before: triggerelsewhere. Keep statusseedfor design/R0/R1; requireactiveand runnable controls before R2/R3. Never invent a command, role, or control. - Route baseline skills. Confirm paths or equivalents for orchestration, architecture, specification, domain/adversarial validation, candidate review, release readiness, status, and cost. Invocation syntax may vary; semantics may not.
- Define the squad. Assign one accountable human/operator, one integration owner, bounded mutating lanes, and independent reviewers. Give every lane owned files, owned resources, and a falsifiable success test. A skill supplies capability; it never supplies authority.
- Wire lightweight adapters. Use only the adapters the team needs. Keep the generated protected block identical across surfaces and surface-specific workflow details outside it. Run the deterministic drift check.
- Isolate mutation. Require one branch/worktree and resource namespace per mutating lane. Read-only reviewers may share. Only the integration owner assembles pinned lane commits in a clean worktree.
- Bind evidence. Instantiate both checkpoint and evidence-manifest assets for R2/R3. Retain exact base/candidate identity, commands, exit status, environment, data provenance, artifacts, reviewers, conditions, and rollback. Any candidate change invalidates prior review.
- Enforce verdicts. PASS means zero conditions. Conditional/amendment verdicts block until fixed and re-reviewed; REJECT/BLOCKING halts. Make any override an explicit operator path with a durable reason, never a passing reviewer token.
- Close the lifecycle. Run focused and convergence gates, obtain independent review of the exact integrated candidate, deliver only with authority, observe the result, and reconcile status, changelog, HLD/runbooks, evidence, open risk, and rollback.
Minimum mechanical controls
Implement controls proportionate to the project:
- a profile/adapter drift check;
- a protected-path gate that detects edits, modes, deletions, and renames;
- regression-first tests for defects;
- one convergence command for the assembled candidate;
- secret and dependency scanning;
- exact-snapshot review invalidation;
- post-delivery health/rollback checks.
Prefer a required remote check or signed attestation for high-risk approval. A local hook is defence in depth and does not authenticate reviewer identity.
Validation
Before completion:
Validate the distributed assets before adoption:
python3 "<bootstrap-skill-dir>/scripts/validate_operating_model.py" \ --template-root "<bootstrap-skill-dir>"Validate an adopted seed. Before R2/R3, repeat with
--require-activeand pass the resolved checkpoint/evidence paths:python3 "<bootstrap-skill-dir>/scripts/validate_operating_model.py" \ --target . python3 "<bootstrap-skill-dir>/scripts/validate_operating_model.py" \ --target . --require-active \ --checkpoint docs/operating-model/checkpoints/<task-id>.yaml \ --evidence docs/operating-model/evidence/<task-id>.yaml- Verify all mutating lanes and external resources have one owner.
- Change one adapter inside its protected block; confirm semantic drift fails.
- Rename a protected file; confirm the project-specific protected-path gate catches it.
- Change the candidate after review; confirm checkpoint/evidence binding fails or is stale.
- Run the project's lint, type, test, security, and convergence commands.
- Run the Adversarial Gate: name how authority, isolation, evidence, delivery, or observation could still fail silently.
Required outputs
- Adopted universal manual with version/digest.
- Completed, tracked project operating profile with all seven project-awareness areas recorded (verified fact or explicit unknown with owner and trigger).
ADR/ADR-0000-baseline-structure-DRAFT.md(approved to-approved.md) — baseline ADR capturing all init decisions and deferred unknowns.- Initializer-seeded
docs/VISION.md,docs/ROADMAP.md, anddocs/STATUS.md, grounded from evidence; the firstdocs/STATUS.mdentry records the init event and open unknowns. - Grounded delivery workflow plus project changelog.
- Lightweight surface adapters plus drift enforcement.
- Durable checkpoint for active R2/R3 work.
- Exact-candidate evidence manifest for active R2/R3 work.
- Validation evidence and explicitly owned unresolved platform/operator actions.
- Updated project status, changelog, and architecture/runbook documentation when the operating contract or delivery flow changes.
Do not claim complete enforcement while local checks remain bypassable, reviewer identity is unauthenticated, credentials remain exposed, or delivery has not been observed.
Release policy validation
Before release, resolve the profile's declared mode against its approved ADR and use release-contract.md for the existing validator's release-preflight invocation and evidence format. Ordinary profile validation does not establish release readiness; adopter wiring and human verification remain required.
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.

