skills/repo-hygiene-audit/SKILL.md
Inspect a GitHub repo for structural chaos, authority conflicts, and cleanup needs. Produce an audit report and remediation plan.
npx skillsauth add ariffazil/openclaw-workspace Repository Hygiene AuditInstall 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.
Repos absorb debris over time: duplicate authority files, stale references, runtime artifacts, backup dumps, and constitutional leaks. This skill systematically inspects a repo and produces a cleanup plan.
| Input | Required | Description |
|-------|----------|-------------|
| repo_path | yes | Local path or owner/repo GitHub slug |
| repo_role | yes | Expected role: kernel, control-plane, execution, domain |
| depth | no | Audit depth: quick (top-level only), standard (3 levels), deep (full) |
Verify the repo does not claim authority it does not own:
CONSTITUTION.md, floors.py, judgment.py, vault999/) — must live in arifOS onlyREPO_ROUTING_CONSTITUTION.md) — must live in arifOS onlyarifos.init) — must live in arifOS onlyROOT_CANON.yaml) — must live in arifOS onlyIf found in non-arifOS repos → flag as constitutional leak.
Look for artifacts that do not belong in a source repo:
*backup*, *archive*, *old* at root).env with secrets, session JSON, memory dumps)node_modules/ at root (should not be committed)Verify directory structure matches the repo's canonical role:
| Role | Expected Structure |
|------|-------------------|
| kernel (arifOS) | core/, floors.py, judgment.py, vault999/, tests/ |
| control-plane (AAA) | src/, a2a/, agents/, contracts/, registries/, public/ |
| execution (A-FORGE) | src/, engine/, tools/, agents/, deploy/ |
| domain (GEOX/WEALTH/WELL) | src/, domain-specific engines, tests/ |
Flag phantom directories (referenced but empty) and missing canonical directories.
Scan for broken references caused by moves/renames:
import / require / from statements pointing to moved modulesIf repo is AAA or A-FORGE:
registries/skills.yaml must have a skills/<id>/SKILL.md| Tool | Purpose |
|------|---------|
| file-read | Read config and documentation |
| directory-list | Inspect structure |
| github-search | Search across repo for patterns |
| git-status | Check for uncommitted changes |
rm -rf or git push --force — these require Arif approval## Skill Result: repo-hygiene-audit
### Summary
[One-paragraph summary of repo health]
### Authority Boundary
- [ ] No constitutional leaks
- [ ] OR: Leaks found: [list]
### Runtime Debris
- [ ] No debris
- [ ] OR: Debris found: [list with sizes]
### Structural Issues
- [ ] Structure matches canonical role
- [ ] OR: Issues: [list]
### Broken References
- [ ] No broken refs
- [ ] OR: Broken refs: [list]
### Skill Registry
- [ ] Registry consistent
- [ ] OR: Orphan skills: [list]
### Recommendations
1. [Action] — [Priority] — [Owner]
2. [Action] — [Priority] — [Owner]
### Escalations
- None / [list]
| Condition | Escalate To | Method | |-----------|-------------|--------| | Constitutional leak found | arifOS 888_JUDGE | A2A verdict_request | | Secrets exposed | security.agent + Arif | Immediate HOLD + Telegram | | Cross-repo architectural change | Arif | 888_HOLD + human approval | | Deletion of >100 files proposed | Arif | 888_HOLD + human approval |
Skill version 1.0.0 — 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.