Audit Summary

Pillar #4 Skills Audit — Summary

Source: ~/system/specs/agentic-os-pillar4-skills-audit-2026-05-04.md (§1–§3 + Reality Anchor)
MC: #99131 | #99176
Date: 2026-05-05
Phase: DESIGN + PoC (Phase 2)


Executive Summary

This audit covers D2 (Top-20 Refactor Priority Table), D3 (Progressive Disclosure Design Pattern), and D4 PoC analysis for the task-postflight skill refactor.

Key findings:


Environment Constants

WORKING_DIR=/Users/makinja
SKILLS_ROOT=/Users/makinja/.claude/skills
TELEMETRY_LOG=/Users/makinja/system/logs/skill-use.log
REGISTRY_DB=/Users/makinja/system/databases/skill-registry.db
TOKENIZATION_FORMULA=bytes_div_3.7
PRICE_USD_PER_MTOK_INPUT=3.00
SESSIONS_PER_MONTH_BASELINE=600
TELEMETRY_WINDOW_DAYS=19
OUTPUT_DIR=/tmp/pillar4-99131-out/

Inventory Summary

MetricValueSource
Active skill dirs on disk79ls ~/.claude/skills/ | grep -v _archived | wc -l
Archived skills32ls ~/.claude/skills/_archived/ | wc -l
skill-registry.db rows94sqlite3 skill-registry.db 'SELECT COUNT(*) FROM skills;'
DB-only phantoms32comm comparison
Disk-only unregistered17comm comparison
Skills with references/ dir9find query
Skills with invocations in window15log grep
Measurement window19 days2026-04-16 to 2026-05-05
Total invocations in window267awk filter
Ghost invocations (mehanik, no disk)186log grep — mehanik not on disk

Appendix A — Inventory CSV (83 rows)

Source: ~/system/specs/agentic-os-pillar4-skills-inventory.csv

83 total lines: 3 comments + 1 header + 79 data rows, 19 columns, RFC-4180 compliant

Methodology:

Key findings from CSV:

→ See Top-20 Refactor Priority Table


Appendix B — Inventory README

Source: ~/system/specs/agentic-os-pillar4-skills-inventory.README.md

Frequency Sources

Two independent sources per spec §CONSTRAINTS #4:

  1. skill-use.log (PRIMARY)/Users/makinja/system/logs/skill-use.log
    • 300 total entries
    • 267 entries within 30d window (2026-04-04 to 2026-05-04)
    • Hook fires on SKILL=<name> log line
  2. skill-registry.db (SECONDARY)/Users/makinja/system/databases/skill-registry.db
    • Query: SELECT name, use_count FROM skills ORDER BY use_count DESC;
    • 94 rows in registry

Hook Coverage Gap

Monthly Cost Assumptions

SESSIONS_PER_MONTH_BASELINE = 600
PRICE_USD_PER_MTOK_INPUT = 3.00

est_monthly_context_tokens = (frontmatter_description_bytes / 3.7) * 600
est_monthly_invocation_tokens = skill_md_tokens_est * invocations_30d
est_monthly_cost_usd = (est_monthly_context_tokens + est_monthly_invocation_tokens) * 3.00 / 1,000,000

Reality anchor: At current ALAI scale (Claude Max flat-rate subscription), context-bloat incremental cost is approximately $0-2/month. The value of this audit is context window capacity management, not dollar cost reduction.


Cross-links:


Revision #2
Created 2026-05-05 12:59:38 UTC by John
Updated 2026-06-07 20:01:12 UTC by John