Adonis0123/adonis-skills / skills/dev-environment-roi-audit
dev-environment-roi-audit
VerifiedAudit a local coding-agent environment with real logs and controlled ablations, then make evidence-backed keep, narrow, on-demand, or remove decisions for MCP servers, skills, instruction files, plugins, commands, hooks, and memory, plus the attention they cost the user (notifications, pending decisions, scheduled automations, and settings toggles). Use whenever the user asks to audit or slim a Claude, Codex, Grok, Cursor, or similar development setup; find unused tools; quantify context, startup, or attention tax; review noisy notifications or scheduled jobs; or clean agent configuration by ROI. Enforces discovered paths, per-file JSONL schema probes, OUT_DIR-only artifacts, secret-safe output, and item-by-item approval before mutations.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 12.3 KB |
| evals/evals.json | config | 2.3 KB |
| evals/fixtures/schema-a.jsonl | other | 72 B |
| evals/fixtures/schema-b.jsonl | other | 151 B |
| references/artifact-contract.md | markdown | 2.2 KB |
| references/metrics-and-decisions.md | markdown | 5.5 KB |
| scripts/finalize_audit.pyexecutable | script | 2.4 KB |
| scripts/init_audit.pyexecutable | script | 2.0 KB |
| scripts/probe_jsonl_schema.pyexecutable | script | 2.6 KB |
scripts/init_audit.py
View on GitHub#!/usr/bin/env python3
from __future__ import annotations
import argparse
import json
import shutil
from datetime import datetime, timezone
from pathlib import Path
HELPERS = ("init_audit.py", "probe_jsonl_schema.py", "finalize_audit.py")
def main() -> int:
parser = argparse.ArgumentParser()
parser.add_argument("--out-dir", required=True, type=Path)
parser.add_argument("--window-days", type=int, default=90)
parser.add_argument("--resume", action="store_true")
args = parser.parse_args()
if args.window_days <= 0:
parser.error("--window-days must be positive")
out_dir = args.out_dir.expanduser().resolve()
forbidden = {Path("/").resolve(), Path.home().resolve()}
if out_dir in forbidden:
parser.error("OUT_DIR must not be / or the home directory")
if out_dir.exists() and any(out_dir.iterdir()) and not args.resume:
parser.error("OUT_DIR is non-empty; use --resume only for the same audit")
for name in ("raw", "scripts", "runtime", "proposed", "recovery"):
(out_dir / name).mkdir(parents=True, exist_ok=True)
source_dir = Path(__file__).resolve().parent
for helper in HELPERS:
shutil.copy2(source_dir / helper, out_dir / "scripts" / helper)
config_path = out_dir / "audit-config.json"
if not config_path.exists():
config = {
"out_dir": str(out_dir),
"window_days": args.window_days,
"created_at": datetime.now(timezone.utc).isoformat(),
}
config_path.write_text(
json.dumps(config, ensure_ascii=False, indent=2) + "\n", encoding="utf-8"
)
print(
json.dumps(
{
"out_dir": str(out_dir),
"window_days": args.window_days,
"helper_count": len(HELPERS),
"resume": args.resume,
},
ensure_ascii=False,
indent=2,
)
)
return 0
if __name__ == "__main__":
raise SystemExit(main())
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| rea-analysis-optimizationmorluto/reaOptimize REA providers and shared analysis workflows for agent context, latency, CPU, and memory while preserving correctness and Evidence. Use for analysis bottlenecks and cache or query design; CI/test-suite optimization belongs to rea-ci-tests-audit. | Stars: 471k | Updated | Claude CodeCodex | Verified | Install |
| rea-ci-tests-auditmorluto/reaAudit REA CI and test suites for correctness, fixture drift, false passes, and measured performance; use for suite or workflow investigations and efficiency changes, rather than ordinary feature testing or a single test failure. | Stars: 471k | Updated | Claude CodeCodex | Verified | Install |
| rea-tool-designmorluto/reaAudit, investigate, design, or change REA investigation tools, CLI/MCP contracts, provider capabilities, and Evidence semantics. | Stars: 471k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-auditDietrichGebert/ponytailQuality audit of the whole repo: bugs, security, real load, missing tests, speed, and what to delete. Most important first. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |