A single comprehensive skill that audits, measures, restructures, and monitors fleet operational efficiency. This is Atlas's prime directive skill — "how efficient are our fleet ops" expressed as a runnable tool.
The skill produces metrics (writes to SSOT tables), makes structural improvements (rewrites CLAUDE.md, compresses rules, deduplicates memory), and establishes baselines for ongoing monitoring. It replaces /context-diet, /reconcile, and /manifest refresh as the one maintenance skill.
docs/ssot/GUIDE.md)Must exist before the skill can make decisions. Defines:
The skill writes measurements to these tables. Designed by Proteus, owned by Atlas.
fleet_context_metricsPer-repo context efficiency measurements.
| Column | Type | Description |
|---|---|---|
| id | uuid | PK |
| repo | text | FK to fleet_repositories.name |
| measured_at | timestamptz | When this measurement was taken |
| measured_by | text | Session/agent that took the measurement |
| claude_md_chars | int | CLAUDE.md character count |
| repo_rules_chars | int | .claude/rules/ total chars |
| global_rules_chars | int | ~/.claude/rules/ total chars |
| memory_index_chars | int | MEMORY.md index chars |
| memory_files_chars | int | Total memory topic file chars |
| memory_file_count | int | Number of memory topic files |
| skills_count | int | Number of skills in .claude/skills/ |
| skills_frontmatter_chars | int | Total skill frontmatter chars (system prompt cost) |
| agents_count | int | Number of agent definitions |
| agents_chars | int | Total agent definition chars |
| always_loaded_total | int | Sum of all always-loaded content chars |
| est_tokens | int | always_loaded_total / 4 (rough estimate) |
| context_files_chars | int | On-demand context/ directory total chars |
| audit_type | text | 'full' or 'monitor' |
fleet_ssot_compliancePer-repo SSOT alignment scores.
| Column | Type | Description |
|---|---|---|
| id | uuid | PK |
| repo | text | FK to fleet_repositories.name |
| measured_at | timestamptz | |
| hardcoded_facts | int | Facts found in markdown that should be in fleet tables |
| ssot_references | int | Lines that correctly reference SSOT |
| duplicate_rules | int | Rules loaded multiple times (global + repo + memory overlap) |
| stale_memory_files | int | Memory files whose content is now in code/git/tables |
| unverified_facts | int | Facts in fleet tables with unverified trust level |
| compliance_score | numeric | 0-100, weighted composite |
fleet_tool_efficiencySession-level tool usage patterns (populated by Argus or session-end hooks).
| Column | Type | Description |
|---|---|---|
| id | uuid | PK |
| repo | text | |
| session_id | text | |
| measured_at | timestamptz | |
| cli_lookups | int | fleet/fleet-path calls via Bash |
| mcp_lookups | int | MCP tool calls for SSOT data |
| toolsearch_calls | int | ToolSearch invocations (overhead indicator) |
| total_tool_calls | int | All tool calls in session |
| transcript_chars | int | Total session transcript size |
| cli_first_ratio | numeric | cli_lookups / (cli_lookups + mcp_lookups) |
Run once per repo. Heavy. Produces baseline, makes structural changes.
/atlas-audit <repo-path>
/atlas-audit ~/Dev/_K4120S/constellation-hades
Lightweight. Measures current state, compares to baseline, flags drift.
/atlas-audit monitor <repo-path>
/atlas-audit monitor --fleet # all repos
When a repo's metrics fall behind the fleet average (detected by Argus or the monitor check), a full audit is triggered. The operator decides — Atlas does not auto-audit.
Baseline everything. Write measurements to fleet_context_metrics.
fleet commands, table queries)Present findings organized by impact. No changes yet.
Group by action type. Show total projected savings. The operator approves, modifies, or rejects the plan.
Apply approved changes:
aion_capture or to context/ as deferrable reference.fleet CLI commands where agents need to look up facts.Re-measure everything. Write post-audit measurements. Compute delta:
Before: {N} chars ({T} est. tokens) always-loaded
After: {N2} chars ({T2} est. tokens) always-loaded
Saved: {delta} chars ({pct}% reduction)
SSOT compliance: {before_score} → {after_score}
Hardcoded facts: {before} → {after}
Duplicate rules: {before} → {after}
Lightweight check. No structural changes. Runs in < 30 seconds.
fleet_context_metrics rowaudit_type = 'monitor'Displayed on the Atlas page in the Pantheon web app.
| System | How atlas-audit connects |
|---|---|
| Argus | Monitor check as Argus probe. Argus flags repos that drift. |
| fleet_rules | Reads rules to classify facts vs statements. Writes newly discovered facts. |
| Aion | Statements found in markdown captured to wiki. Audit rationale captured. |
| Arsenal | Checks skill symlink health. Reports broken distributions. |
| Atlas UI | UI reads fleet_context_metrics, fleet_ssot_compliance, fleet_tool_efficiency. |
| fleet CLI | All SSOT lookups use fleet commands (CLI-first). |
| /start | Session start includes quick monitor check if repo hasn't been measured in N days. |
| Old Skill | What atlas-audit absorbs |
|---|---|
/context-diet | Phase 3 pruning (but SSOT-aware, not just size-based) |
/reconcile | Phase 1 SSOT compliance scan (with metrics, not just drift detection) |
/manifest refresh | Phase 1 structural measurement (writes to fleet tables, not markdown) |
/domain-architect | Phase 3 restructuring (driven by measurements, not ad-hoc) |
| Decision | Choice | Rationale |
|---|---|---|
| Ownership | Atlas only | One authoritative voice prevents conflicting self-optimization |
| CLI-first for SSOT | fleet CLI, not MCP | ~7x more token-efficient, 1 tool call vs 2+ |
| Fact/statement classification | fleet_rules s6#8 | Operator-defined: "if wrong value causes wrong agent behavior, it's a fact" |
| Metrics storage | Supabase tables | SSOT principle: metrics are facts about the fleet |
| Operator approval | Phase 2 plan review | Structural changes to agent harnesses are high-impact |
| Monitor as separate mode | Lightweight, no changes | Full audit is expensive; monitoring should be cheap |
| Archive, never delete | Move to archive dirs | Reversibility; operator can review |
/context-diet, /reconcile, /manifest refresh be removed from Arsenal distribution, or kept as lightweight shortcuts that call into atlas-audit phases?
Generated by Atlas · constellation-atlas · War Room Session 2026-04-15