skills/FORGE-precommit-review/SKILL.md
Pre-commit gate for any organ repo. Runs lint, type-check, test, constitutional surface scan, and shows the diff to the user. Use before every git commit in any organ. Delegates F1-surface detection to SURFACE-GATE (the live kernel probe hook that verifies canonical tools are still exposed).
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.
development
Federation-wide gold (XAUUSD) trading capability. Python stack, OANDA broker, backtesting, macro signals, RSI strategy. Every organ has a role.
development
Capital claim state management — tracks claim lifecycle across WEALTH organ.
development
Archived constitutional warga placeholder retained only for audit provenance. Do not use for active work; use the live arifOS governance and constitutional skills instead.
testing
Warga (citizen) agent skills for AAA federation members. See subdirectories for specialized warga skills.