agentsclimarketplace

System audit

Skill kenantang/codex-and-claude-skills/collected-academic-research-skills/sources/flonat__claude-research/skills/system-audit

Use when you need to run parallel audits across skills, hooks, agents, rules, and conventions.From its SKILL.md

Install
npx -y skills add kenantang/codex-and-claude-skills --skill system-audit

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

2 things to look at

  • no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
  • 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

SKILL.md

5.7 KB, ~1.4k tokens by cl100k_base, as published. Nobody here has run it

Maintenance Sweep

System-wide health check using agnix lint + 7 parallel sub-agents. Produces a consolidated report at log/audits/system-audit-YYYY-MM-DD.md. Report-only — never modifies any files.

When to Use

  • Periodic system hygiene (monthly or after major changes)
  • When the user says "maintenance sweep", "system health check", "audit my setup"
  • After adding/removing skills, hooks, agents, or rules
  • Before presenting the system to others (ensure everything is consistent)

Overview

  1. Lint — run npx agnix . to validate skills, hooks, agents, and CLAUDE.md
  2. Dispatch — launch 7 sub-agents in parallel via the Task tool
  3. Collect — gather each sub-agent's findings
  4. Consolidate — merge lint results + sub-agent findings into a single timestamped report
  5. Present — show key findings to the user

Python: Always use uv run python or uv pip install. Never bare python, python3, pip, or pip3. Include this in sub-agent prompts.


Phase 0: agnix Lint

Run npx agnix . in the main context (no sub-agent needed — it's fast). Capture the summary line.

Pass criteria: 0 errors. Warnings are informational only.

If errors > 0, list them in the report under an agnix Lint section. These are structural issues in skill/hook/agent frontmatter that should be fixed.

Config lives in .agnix.toml at project root — known false positives are already suppressed.


Phase 1: Dispatch Sub-Agents

Launch all 7 in a single message using parallel Task tool calls. Each sub-agent is subagent_type: Explore.

Context overflow prevention: Instruct each sub-agent to keep its returned output concise — summary tables and key findings only (under 500 words). If detailed findings are large, the sub-agent should write them to a temp file (e.g., /tmp/system-audit/sa-N.md) and return only the file path + summary.

All sub-agents receive shared context (Task Management root, research projects root, category directories). Full shared context block and all 6 sub-agent prompt templates:

references/sub-agent-prompts.md

Sub-agents at a glance:

#NameWhat it checks
1Inventory AuditorSkill/hook/agent/rule counts, symlinks, MCP alignment
2Bibliography & Project Hygiene.bib files, naming, MEMORY.md presence
3Convention ComplianceLaTeX out/, Overleaf separation, Python env, git health
4Documentation FreshnessStale counts, broken links, .context/ freshness
5Ecosystem HealthMCP server refs, staleness, orphans, CLI tools
6Skill Quality & OverlapBloat, staleness, cross-component overlap
7Friends Repo HealthSkill/rule freshness vs upstream, anonymisation, install script

Phase 2: Collect and Consolidate

After all 7 sub-agents return, merge their findings into a single report.

Report Template

Write to log/audits/system-audit-YYYY-MM-DD.md:

# Maintenance Sweep — YYYY-MM-DD

## Dashboard

| Area | Status | Issues |
|------|--------|--------|
| agnix Lint | <OK/WARN/FAIL> | <count> |
| Inventory | <OK/WARN/FAIL> | <count> |
| Bibliography & Projects | <OK/WARN/FAIL> | <count> |
| Conventions | <OK/WARN/FAIL> | <count> |
| Documentation | <OK/WARN/FAIL> | <count> |
| Ecosystem Health | <OK/WARN/FAIL> | <count> |
| Skill Quality & Overlap | <OK/WARN/FAIL> | <count> |
| Friends Repo Health | <OK/WARN/FAIL> | <count> |

## agnix Lint
<Phase 0 results: error count, warning count, any specific errors>

## Inventory Audit
<Sub-agent 1 findings>

## Bibliography & Project Hygiene
<Sub-agent 2 findings>

## Convention Compliance
<Sub-agent 3 findings>

## Documentation Freshness
<Sub-agent 4 findings>

## Ecosystem Health
<Sub-agent 5 findings>

## Skill Quality & Cross-Component Overlap
<Sub-agent 6 findings>

## Friends Repo Health
<Sub-agent 7 findings>

## Recommended Actions
<Prioritised list of things to fix, grouped by effort level>

### Quick Fixes (< 5 min each)
- ...

### Medium Effort (5–30 min)
- ...

### Larger Tasks (> 30 min)
- ...

Phase 3: Present

Show the user:

  1. The dashboard table
  2. Any FAIL-status areas with specifics
  3. The quick fixes list
  4. Ask if he wants to address any issues now

Error Handling

  • Sub-agent timeout: If a sub-agent doesn't return, note "timed out" in the report and continue with the others.
  • Missing directories: If a category folder is empty or doesn't exist, note "no projects found" rather than erroring.
  • Permission issues: If files can't be read, note "access denied" and continue.

Integration with Other Skills

SkillRelationship
/bib-validateRun on projects flagged by the Bibliography Hygiene sub-agent
/audit-project-researchComplements Convention Compliance with deeper per-project checks
/update-project-docFix documentation staleness found by Documentation Freshness
/sync-permissionsFix symlink issues found by Inventory Auditor
/atlas-auditFull cross-system audit (local + vault + Paperpile + pipeline) — deeper than this sweep
/insights-deckMaintenance findings can feed into system insights presentations
/repo-doc-audit friendsDedicated deep audit for friends-repo — Sub-agent 7 is a quick health check; the audit skill is the full version
/sync-friends-repoFix freshness issues found by Sub-agent 7

What ships with it: 1 file

14.9 KB alongside SKILL.md

references/

Keep looking

Skills are one crate of 326,790. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.