Skip to content

Source: docs/OPERATIONS.md

Operations Runbook

Use this runbook to maintain codex-workflows.

Unified CLI

Primary entrypoint in this repository:

python scripts/codexwf.py <command>

Main commands:

  • install
  • init
  • status
  • validate
  • docs-sync

Distribution quickstart

Primary installation channel (all-in-one):

npx @codex-workflow/cw

Core-only:

npx @codex-workflow/cw --core-only

Diagnostics:

npx @codex-workflow/cw doctor

Alternative repository-local install commands:

  • python scripts/install_all_in_one.py
  • python scripts/codexwf.py install

Bootstrap local project instructions (default codex-native profile):

python skills/codex-workflows/scripts/bootstrap_project_agent.py --project .

Composer wrapper (optional for PHP teams):

composer codex:install-all

Activation shortcuts:

  • cw /<workflow> <objective>
  • codex-workflow /<workflow> <objective>
  • codex-workflows /<workflow> <objective>
  • cw /help
  • cw /examples

Preview without changes:

npx @codex-workflow/cw --dry-run

Website quickstart

Run the docs portal locally:

cd website && npm install && npm run docs:dev

Build production static output:

cd website && npm run docs:build

Refresh mirrored technical docs:

python website/scripts/sync_reference_docs.py

Legacy skill-ops commands

Unified CLI:

python skills/codex-workflows/scripts/codex_workflows_ops.py <command>

Available commands:

  • build-manifest
  • check-drift
  • check-workflows
  • check-codex-native
  • check-codex-assets
  • check-codex-rules
  • benchmark
  • bootstrap
  • sync-pack
  • release

build-manifest source resolution order:

  1. --source <path> (if provided)
  2. ./.agent from current working directory
  3. fallback to skills/codex-workflows/packs/antigravity-compat/.agent

If fallback is used, the command prints a warning and still produces a valid manifest.

Typical maintenance cycle

  1. Sync compatibility pack: python skills/codex-workflows/scripts/sync_compat_pack.py --source <path-to-.agent>

  2. Rebuild compatibility manifest: python skills/codex-workflows/scripts/build_compat_manifest.py --source <path-to-.agent> --pack skills/codex-workflows/packs/antigravity-compat/.agent --template-full skills/codex-workflows/templates/.agent --output skills/codex-workflows/compat/manifest.json

Alternative using unified ops command with auto source resolution: python skills/codex-workflows/scripts/codex_workflows_ops.py build-manifest

  1. Run consistency checks:
  • python skills/codex-workflows/scripts/check_compat_drift.py --manifest skills/codex-workflows/compat/manifest.json --pack skills/codex-workflows/packs/antigravity-compat/.agent --template-full skills/codex-workflows/templates/.agent
  • python skills/codex-workflows/scripts/check_workflow_parity.py --references skills/codex-workflows/references/workflows --native skills/codex-workflows/templates/codex-native/.agent/workflows --template skills/codex-workflows/templates/.agent/workflows --pack skills/codex-workflows/packs/antigravity-compat/.agent/workflows
  • python skills/codex-workflows/scripts/check_codex_native_quality.py --native skills/codex-workflows/templates/codex-native/.agent/workflows --compat skills/codex-workflows/packs/antigravity-compat/.agent/workflows --max-similarity 0.35
  • python skills/codex-workflows/scripts/check_codex_native_assets.py --native-root skills/codex-workflows/templates/codex-native/.agent --min-agents 20 --min-skills 37
  • python skills/codex-workflows/scripts/check_codex_native_rules.py --native-root skills/codex-workflows/templates/codex-native/.agent
  1. Run tests and validation:
  • python -m unittest discover -s tests -p "test_*.py"
  • node tests/test_cw_cli_node.js
  • python scripts/ci_validate_skill.py --skills-root skills
  • npx @codex-workflow/cw --dry-run
  • cd website && npm run docs:build
  1. Run stack packs when applicable:
  • Node: python skills/codex-node-validation-pack/scripts/validate_node_stack.py --project .
  • Python: python skills/codex-python-validation-pack/scripts/validate_python_stack.py --project .
  • Rust: python skills/codex-rust-validation-pack/scripts/validate_rust_stack.py --project .
  1. Release with automation:
  • Dry run: python scripts/release_automation.py --version 1.1.0
  • Apply + commit + tag + push: python scripts/release_automation.py --version 1.1.0 --apply --commit --tag --push
  1. CI E2E verification for installer:
  • .github/workflows/ci.yml job cw-install-e2e-matrix validates npx @codex-workflow/cw on ubuntu-latest, macos-latest, and windows-latest.

Licence MIT