skills/_retired/ARCHIVE-dupe-2026-07-12/root_.agents_skills/FORGE-precommit-gate/SKILL.md
Pre-commit ritual running lint, type-check, tests, constitutional surface scan, and diff review.
npx skillsauth add ariffazil/openclaw-workspace FORGE-precommit-gateInstall 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 for every federation organ repo. It mirrors the commitment to reversibility and verifiability by running lint, type-check, tests, a constitutional surface scan, and a diff review before any commit is finalized. Fail-fast ordering stops at the first problem so the user gets one clear reason, not a wall of noise.
Before using this skill on any mutating, irreversible, or high-blast-radius task:
git commit in any organ repo.| Input | Required | Description |
|-------|----------|-------------|
| organ repo path | yes | Absolute path to the organ repo, e.g. /root/arifOS |
| diff against HEAD | yes | Output of git diff --stat HEAD and the full diff |
| lint/type/test results | yes | Results from the per-organ check sequence |
| F1 surface scan result | yes | Whether the diff touched F1-relevant surfaces |
| user decision | yes | Explicit commit or abort |
Run git -C /root/<organ> diff --stat HEAD to understand the blast radius. If the diff exceeds 500 lines, suggest breaking it into smaller, coherent commits.
Run the checks in order for the organ type. Abort on the first failure and surface the first failing line.
Python organs (arifOS, GEOX, WEALTH, WELL):
ruff check .mypy <configured package> (where the organ's config defines it)pytest -qNode organs (A-FORGE, AAA, APEX):
npm run lintnpm testtsc --noEmit (for A-FORGE and AAA only)Use the organ's pinned tool versions from pyproject.toml / package.json. Do not rely on globally installed tools that may differ.
Scan the diff for F1-relevant surfaces (secrets, credentials, trust boundaries, authorization code, VAULT999 lineage). If anything matches, stop and route to f1-gate / arifOS 888_JUDGE rather than proceeding.
Present the user with:
commit or abortWait for explicit user instruction. Do not commit automatically.
commit → stage and commit.| Tool | Purpose |
|------|---------|
| Bash | Run git, lint, type-check, and test commands |
| Read | Inspect diffs, tool configs, and failing output |
| Grep | Search the diff for F1-surface patterns |
## Skill Result: precommit-gate
### Summary
One-paragraph summary of what was checked and whether the gate passed.
### Evidence
- Organ: <repo>
- Diff stat: <stat>
- Lint: <pass/fail + first failing line if fail>
- Type-check: <pass/fail + first failing line if fail>
- Tests: <pass/fail + first failing line if fail>
- F1 surface scan: <clean/hit + details>
### Recommendations
- commit / abort / fix then re-run
### Escalations
- None / <list>
| Condition | Escalate To | Method |
|-----------|-------------|--------|
| F1 surface hit | f1-gate + arifOS 888_JUDGE | A2A / MCP verdict_request |
| Secrets detected | security.agent + arifOS 888_JUDGE | A2A message |
| Constitutional files affected | arifOS 888_JUDGE | A2A verdict_request |
| Irreversible action needed | Arif (F13 SOVEREIGN) | 888 HOLD |
Skill imported from /root/.claude/skills/precommit-REVIEW_MD.md — AAA Skill Library
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.