skills/FORGE-precommit-review/SKILL.md
Pre-commit gate for any organ repo
npx skillsauth add ariffazil/openclaw-workspace FORGE-precommit-reviewInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
The "always run this before commit" ritual. Mirrors the federation's commitment to reversibility and verifiability.
git -C /root/<organ> diff --stat HEAD — scope the changeruff check, mypy (where configured), pytest -qnpm run lint, npm test, tsc --noEmit (A-FORGE/AAA only)SURFACE-GATE (888 HOLD)SURFACE-GATEpyproject.toml / package.jsonMakefile or package.json scriptsSURFACE-GATE — the live kernel probe hook that verifies canonical tools are still exposed pre-commitFor every "must never happen" statement, there MUST be a test that would fail if the anti-pattern ever regressed. An absent test becomes forgotten; a strict xfail stays visible.
For each WAJIB test that is not yet implemented (cannot be written yet because the substrate doesn't exist), mark it as a strict expected failure in conformance/ directory. Do not skip — the absence is itself a violation of WAJIB 1's "absent test becomes forgotten" principle.
// Example: WAJIB 2 (independent verifier) — not yet implemented
test("WAJIB-2: forge_execute result cannot self-attest VERIFIED", () => {
// TODO when WAJIB 2 lands: forge_execute returns receipt without verification lane → DENY
assert.fail("xfail(strict): WAJIB 2 not implemented — see audit 2026-07-20");
});
conformance/
├── kernel/
├── delegation/ (WAJIB 4)
├── execution/
├── verification/ (WAJIB 2)
├── memory/ (WAJIB 8)
├── organs/ (WAJIB 7)
└── deferred/ (WAJIB 5)
When committing to A-FORGE, PolicyGate, or any organ with security surface, run the conformance tests for that surface BEFORE the regular precommit checks.
Negative conformance tests are T1 AUTO-DO — adding/upgrading them does not require F13. The decisions they ENFORCE were already ratified; the tests just verify them.
testing
OpenClaw edge agent bridge — operational triage, doctor, restart, and A2A bridge routing for the federation edge (Telegram surface). USE WHEN: "openclaw unhealthy", "gateway down", "edge bot not responding", "a2a bridge disconnected", "watchdog tripped", "openclaw doctor", "openclaw restart". NOT for token/security audit — use FORGE-telegram-audit.
tools
Generate images, videos, TTS, voice clone, and music via MiniMax MCP server. Use when user asks to "draw", "generate image", "create picture", "make a photo", "text to image", "image generation".
testing
Single load-bearing constitutional-judgment skill. Routes all F1–F13, verdict, hold, seal, scope, authority and floor-check calls through the live arif_judge surface. Replaces 7 overlapping predecessors (arifos-constitutional-judge, arifos-constitutional-judge, arifos-constitutional-judge, arifos-constitutional-judge, arifos-constitutional-judge, arifos-constitutional-judge, arifos-constitutional-judge).
development
MANDATORY LSP grounding gate BEFORE any code mutation on .ts, .py, .js, .tsx, .jsx files. Forces the agent to read real-time compiler diagnostics and structural project context before editing — eliminating blind guesses and anchoring every mutation in F2 (TRUTH). Routes through arifOS kernel (:8088) for centralized gate logic.