Skip to content
Back to skills

Bootstrap Zzzops Repository

ASecurity

ZzzOps v0.0.0-dev — development plugin. Initialize or review repository ZzzOps policy.

  • 5 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 4, 2026
ai-agentspythongonodegitapi

Works with

  • claude code
  • cli
  • api

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned November 21, 2026

npx -y skills add david-rzepa/zzzops --skill bootstrap-zzzops-repository --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Bootstrap Zzzops Repository?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Bootstrap Zzzops Repository
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/david-rzepa-bootstrap-zzzops-repository/badge)](https://www.skillsdirectory.com/skills/david-rzepa-bootstrap-zzzops-repository)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: bootstrap-zzzops-repository
description: ZzzOps v0.0.0-dev — development plugin. Initialize or review repository ZzzOps policy.
---

# Bootstrap ZzzOps

Communicate as [the shared guide](../../rules/COMMUNICATION.md) says, and respect its data boundary. Run the CLI as [CLI usage](../../zzzops/references/CLI_USAGE.md) says (without the `zzzops` launcher on `PATH`: `<python> ../../zzzops/zzzops.py`, Python 3.10 or later). Command reference: [CLI usage](../../zzzops/references/CLI_USAGE.md).

On a `legacy_policy` blocker (a pre-reset `.zzzops/POLICY.json`) or a `legacy` item, use the migrate-zzzops-repository skill; it calls back here for the policy files.

A checklist over the shipped templates, `zzzops validate` and plain `git`/`gh`. Nothing here is a ZzzOps verb. Templates: `../../zzzops/templates/default/` (`POLICY.json`, `workflow.json`, `prompts/`).

1. **Remote and integration branch.** Greenfield: `git init -b <I>` and push the first commit before any branch rules exist. Brownfield: use the existing trunk, or create `dev` from it and push.
2. **Write the policy files** into `.zzzops/` from the templates: `verification.commands` (the repository's canonical verify command); `required_ci` (only always-running required check names, read once with `gh api repos/{o}/{r}/rules/branches/<I>`); `integration_branch` = `<I>`; `goals.first_id` above the highest issue and PR number; `routing.tiers` trimmed to the harnesses in use. Capture the project's intent with the owner (`settings.intent`): what it is for (`purpose`), whom it serves (`serves`), what it deliberately is not (`not`), and the principles that must survive change (`principles`). Record their words; never write the intent for them. **If the `required_ci` read returns 403 or otherwise fails** (a private repo on GitHub's free plan has no rulesets or branch protection), do not retry, and tell the owner what was seen; the engine never reads rules, so nothing else breaks. Take `required_ci` from the owner, or if they do not know, propose the distinct names from recent PR check runs (`gh pr list --state merged --limit 5 --json number`, then `gh pr checks <n> --json name`, or `gh api repos/{o}/{r}/commits/<sha>/check-runs`). The owner confirms; the names must match the rollup `name` or `context` exactly. Set it now, before step 3, so the files landed in step 4 carry it. Never leave the list empty silently: an empty `required_ci` means integrate merges with no CI gate, so tell the owner so plainly, and if they decline a gate record that in the bootstrap commit or PR message (POLICY has no field for it). Tell the owner that on this plan the `zzzops/goal/**` deletion and force-push rule cannot be set or checked, and that merges are guarded only by the engine's required-check gate plus `--match-head-commit`; recommend making the repo public or upgrading if they want that rule
Before landing, write `.zzzops/TEMPLATE.json` with `policy_update.record.reviewed` from `zzzops validate --policy --dir .zzzops`, using a UTF-8 file tool.
3. **Validate:** `zzzops validate --policy --dir .zzzops` (needs no remote). It must pass with no `policy_update` item or `intent_placeholder` warning: every `TODO:` placeholder of the template's intent is replaced.
4. **Land the files** on `<I>`: through a `zzzops/policy/bootstrap` branch and a PR when `<I>` is protected, otherwise a direct push. A `zzzops/policy/*` branch pauses new work until it lands; before landing a change to an existing policy, preview it with `zzzops validate --policy-ref <branch>` and `zzzops next --policy-ref <branch>`.
5. **Per clone:** `git config zzzops.integrationBranch <I>` when `<I>` is not the remote's HEAD branch; `zzzops.remote` and `zzzops.committer` (`Name <email>`, identical on every machine) when needed.
6. **Harness setup:** follow [SETUP](../../zzzops/references/SETUP.md) (Codex profile or rules; Claude Code `permissions.allow`; sandbox domains; HTTPS remotes).
7. **Host settings (GitHub)**, checked with `gh api`: "Automatically delete head branches" on without `settings.branching`, **off** with it (merging a finish PR deletes the kept `release/N` or `hotfix/x` branch, and deleting a dependency branch can close or move stacked and release PRs before the engine retargets them); the merge method allowed matches `settings.merge.method`; a ruleset on `zzzops/goal/**` blocking deletion and force-push; `zzzops/**` excluded from every all-branch ruleset and hook rule (probe: `gh api repos/{o}/{r}/rules/branches/zzzops/lease/g0/x` lists no rules). If step 2 hit a 403, skip these rules probes and the ruleset checks (see step 2) and run only the repo-endpoint checks: `gh api repos/{o}/{r}` for `delete_branch_on_merge` and `allow_squash_merge`/`allow_merge_commit`/`allow_rebase_merge` against `settings.merge.method`; if that read is also 403, ask the owner to confirm them in the UI.
8. **CI and ignore files**, if the human agrees: `branches-ignore: ['zzzops/**']` on unfiltered `on: push` workflows and deploy integrations; skip `pull_request` jobs whose head starts with `zzzops/stack/`; add `.zzzops/worktrees/` to the repository's tool ignore files. Tell the human the repository's `pre-push` hook runs on work and PR branch pushes.
9. **Developer clones (optional):** `git config --add remote.origin.fetch '^refs/heads/zzzops/*'`.
10. **Run `zzzops validate`** (environment, Git version, SHA-1, not shallow, the harness probe, `gh`). With `settings.branching`, it warns if automatic head-branch deletion is still on and readable.
11. **Capture the first goals** with the add-goal skill.

## Update from the shipped defaults

A `policy_update` notice is advisory. Tell the owner which shipped defaults differ from the last review and which were edited locally; updating or declining is their choice. Hashes are opaque review receipts, not plugin versions. Only `newer_record` (a newer record schema) requires a plugin upgrade and offers no replacement record.

1. Create a worktree from `<I>` on `zzzops/policy/defaults-<template>`. Keep the branch local until ready: pushing pauses new work.
2. In that worktree run `zzzops validate --policy --dir .zzzops`. Decide `workflow.json` first: read its MIGRATING section, then choose any edits manually or keep it. For each row, `apply.manual` explains the choice; when both files exist, `diff` compares the local file with the current shipped default using quoted `git diff --no-index`. When either file is absent, inspect the available content and decide manually. Preserve local customizations, deletions and private files unless the owner chooses otherwise. Review prompt changes against the chosen workflow before editing them. Resolve all markers. On Windows use `core.autocrlf=input` for this worktree or check the resulting line endings before committing.
3. After explicitly reviewing the choices, write `record.reviewed` to `.zzzops/TEMPLATE.json` with a UTF-8 file tool. It contains exactly the current shipped `files` hashes, even when local content or absence is kept. `no_record`/`invalid_record` offers the same snapshot for review; it infers no old base. To decline, change only this record and explain the declined defaults in the PR. Reading the notice never writes policy or the record.
4. Re-run `validate --policy --dir .zzzops`: require no errors, no `policy_merge_markers`, and no `policy_update` after review or decline. A later shipped change prompts review again. Commit and push, preview with `zzzops validate --policy-ref <branch>` and `zzzops next --policy-ref <branch>`, and put the taken/kept/declined decisions and impact in the PR. Land through the repository's review/approval path and delete the branch. Prompt text alone does not stale records; bump the relevant node's `rev` if the changed semantics require another review.

Files in this skill

  • SKILL.md3.1 KB
  • agents/openai.yaml283 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.