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:
installinitstatusvalidatedocs-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.pypython 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 /helpcw /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-manifestcheck-driftcheck-workflowscheck-codex-nativecheck-codex-assetscheck-codex-rulesbenchmarkbootstrapsync-packrelease
build-manifest source resolution order:
--source <path>(if provided)./.agentfrom current working directory- 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
Sync compatibility pack:
python skills/codex-workflows/scripts/sync_compat_pack.py --source <path-to-.agent>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
- 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/.agentpython 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/workflowspython 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.35python skills/codex-workflows/scripts/check_codex_native_assets.py --native-root skills/codex-workflows/templates/codex-native/.agent --min-agents 20 --min-skills 37python skills/codex-workflows/scripts/check_codex_native_rules.py --native-root skills/codex-workflows/templates/codex-native/.agent
- Run tests and validation:
python -m unittest discover -s tests -p "test_*.py"node tests/test_cw_cli_node.jspython scripts/ci_validate_skill.py --skills-root skillsnpx @codex-workflow/cw --dry-runcd website && npm run docs:build
- 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 .
- 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
- CI E2E verification for installer:
.github/workflows/ci.ymljobcw-install-e2e-matrixvalidatesnpx @codex-workflow/cwonubuntu-latest,macos-latest, andwindows-latest.