add-language-rules
Workflow command scaffold for add-language-rules in ECC.
Send Claude-written code to GPT-6-Astra (ChatGPT, via Codex CLI) for an independent cross-provider review, then fix what it finds.
> /plugin marketplace add affaan-m/ECC > /plugin install ecc@ecc
How it fires
How this command gets triggered: by you, by Claude, or both.
/astra-reviewContext preview
What this command does when you run it.
Send Claude-written code to GPT-6-Astra (ChatGPT, via Codex CLI) for an independent cross-provider review, then fix what it finds.
description: Send Claude-written code to GPT-6-Astra (ChatGPT, via Codex CLI) for an independent cross-provider review, then fix what it finds. argument-hint: "[--base <branch> | --commit <sha> | --files <paths> | --files-from-commit <sha>] [extra reviewer instructions]" model: opus
Cross-provider second opinion. Claude writes the code; GPT-6-Astra (OpenAI, running through the locally installed Codex CLI with your ChatGPT login) reviews it with no shared context. Claude then fixes what Astra finds and re-runs until Astra passes or the round limit is hit.
This command runs on **Opus** (`model: opus`). Opus orchestrates, verifies findings, checks every diff, and runs the tests. Fixes are delegated to a **Fable** subagent; when Fable has hit its usage limit, Astra applies the fixes instead (see Step 4).
/astra-review # uncommitted changes (default) /astra-review --base main # everything on this branch vs main /astra-review --commit HEAD~1 # one commit /astra-review --files src/a.ts src/b.ts /astra-review --files-from-commit HEAD~1 # repair round after a --commit review /astra-review Focus on the SQL layer # free text becomes extra reviewer instructions
Parse `$ARGUMENTS`. Flags (`--base`, `--commit`, `--files`, `--files-from-commit`) select the scope; any remaining text is passed as `--instructions`. With no flags, review uncommitted changes.
Preview what will leave the machine before sending it:
ASTRA=""
for candidate in "${CLAUDE_PLUGIN_ROOT:-$HOME/.claude}/scripts/astra-review.js" \
"./.claude/scripts/astra-review.js" \
"$HOME/.claude/scripts/astra-review.js" \
"./scripts/astra-review.js"; do # plugin, project-local, global, the ECC repo itself
[ -f "$candidate" ] && ASTRA="$candidate" && break
done
[ -n "$ASTRA" ] || { echo "astra-review.js not found; install ECC commands-core"; exit 2; }
node "$ASTRA" --dry-run [scope flags] | head -40If the output says "Nothing to review", stop and tell the user.
node "$ASTRA" --consent-to-openai [scope flags] \ --instructions "<extra text, if any>" \ --output "$(mktemp -d)/astra-review.json" # private dir, never a shared predictable path
The script prints a markdown report and exits 0 (PASS), 1 (FAIL), or 2 (error). On exit 2, report the error verbatim and stop. Typical causes: Codex not installed, not logged in, model not available on the account, timeout.
1. Show every CRITICAL and HIGH finding with file and line. 2. Verify each one against the code before changing anything (Opus does this, not a subagent). Astra can be wrong; if a finding is a false positive, say so and skip it with a one-line reason. 3. Prepare the round. Each Bash call starts a fresh shell, so print these paths once and reuse them literally (shell variables such as `$ASTRA` do not survive between calls):
4. Apply the fixes. **Try Fable first, fall back to Astra:**
node <astra-review.js path> --consent-to-openai --fix-findings <dir>/confirmed.json \
--instructions "<extra text, if any>"Astra edits the working tree in a `workspace-write` sandbox with the same isolation as the review (no web search, no network, MCP disabled, user config ignored, no API keys forwarded); the system temporary directory and `$TMPDIR` are excluded, so only the repository is writable. It does not commit or push. Exit 2 means the fix failed: report it and stop.
Your agent can write code, but ECC gives it a coordinated engineering system and toolbox: it plans before it builds, verifies changes with tests, reviews its own work from a fresh context, remembers what matters, and turns repeated wins into reusable skills
Repo: affaan-m/ECC
Workflow command scaffold for add-language-rules in ECC.
Workflow command scaffold for database-migration in ECC.
Workflow command scaffold for feature-development in ECC.
Answer a quick side question without interrupting or losing context from the current task.…
Pull the latest ECC repo changes and reinstall the current managed targets.
Detect the project build system and incrementally fix build/type errors with minimal safe…