folder-audit

folder-audit is a skill for Claude Code, Codex from peteromallet/Arnold. It costs 38 tokens per session (823 once invoked), scanned A, original, Apache-2.0.

A directory-structure audit that checks whether folders contain the right kinds of items for their level. It returns a structured JSON report and a Markdown tree with notes.

In plain words
What is it for?
Use it to inspect and reorganize project directories or other nested folder trees.
Why use it?
It helps reveal misplaced files and folders whose contents do not match their role.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions subagents; runs codex exec; mentions Codex.

Good fit Use it to inspect and reorganize project directories or other nested folder trees.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/peteromallet/arnold/folder-audit
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add peteromallet/Arnold --skill folder-audit
Clone the repo
git clone --depth 1 https://github.com/peteromallet/Arnold

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for folder-audit

README.md
[![agentmods](https://agentmods.dev/badge/skills/peteromallet/arnold/folder-audit/github.svg)](https://agentmods.dev/skills/peteromallet/arnold/folder-audit)
Your own site
<a href="https://agentmods.dev/skills/peteromallet/arnold/folder-audit"><img src="https://agentmods.dev/badge/skills/peteromallet/arnold/folder-audit/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for folder-audit

Your own site · 80×15
<a href="https://agentmods.dev/skills/peteromallet/arnold/folder-audit"><img src="https://agentmods.dev/badge/skills/peteromallet/arnold/folder-audit.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 38 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 823 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00038 $0.00823
Opus 5.5 $0.00015 $0.00329
Sonnet 5.5 $0.00008 $0.00165
Haiku 4.5 $0.00004 $0.00082

Measured 1mo ago against content hash ecdda82e42bd, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

folder-audit scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

docs/archive/m5/pipelines/folder_audit/skills/folder-audit/SKILL.md · 104 lines

How it starts

The opening of the file, as written. The whole thing — 104 lines — stays where its author put it; the contents beside it link to each section on GitHub.

folder-audit

What it does

The folder-audit pipeline inspects a target directory, builds a tree of folders up to a configurable depth, and asks an LLM auditor to classify every immediate child as fit, misplaced, duplicate, naming_mismatch, etc.

It emits two artifacts in the plan directory:

  • audit.json — machine-readable audit with summary and per-folder entries
  • audit.md — human-readable nested annotated tree

Running it

The pipeline is built around the native Arnold AgentStep. The audit stage injects a worker callable that dispatches to Codex by default. A local profile is provided at profiles/standard.toml.

Default mode (Codex worker)

python -m arnold run folder-audit \
  --inputs target_dir=/path/to/repo,max_depth=2,chunk_size=5,max_workers=3 \
  --plan-dir /tmp/folder-audit-plan

The default profile resolves the audit stage to codex. If you want to use a different model, override the profile:

python -m arnold run folder-audit \
  --inputs target_dir=/path/to/repo,max_depth=2,chunk_size=5,max_workers=3 \
  --profile @folder-audit:standard \
  --plan-dir /tmp/folder-audit-plan

Using pre-generated subagent results

For faster iteration or when you want to supply audits from another agent harness, pass an agent_results JSON file:

python -m arnold run folder-audit \
  --inputs target_dir=/path/to/repo,agent_results=/tmp/agent_results.json \
  --plan-dir /tmp/folder-audit-plan

The agent_results file must be a JSON object with a top-level folders array. The pipeline will compute a summary and reconcile the entries with the real filesystem tree when rendering audit.md.

Inputs

Key Default Description
target_dir required Directory to audit
max_depth 8 How many levels deep to walk
chunk_size 5 Folders per Codex call
max_workers 3 Parallel Codex calls per level
agent_results none Path to external audit JSON

Read the full file on GitHub · 104 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 104 lines · 38 tokens per session scan A ecdda82e42bd

Subscribe to this mod's changes

folder-audit is a skill published in the GitHub repository peteromallet/Arnold (98 stars, last pushed yesterday), licensed Apache-2.0. It adds 38 tokens to every session and 823 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-04.

Related

Other skills, from other repositories

orbit-notion

Open Orbit briefing skill — selected by the Orbit pipeline when Notion is the user's only connected connector, or when the user explicitly scopes their daily digest to Notion. Pulls the past 24 hours of document edits, comments, mentions, and database row changes from the user's authenticated Notion connection and…

nexu-io/open-design · 117 tokens

agentmail

Use your assigned AgentMail inbox to read email tasks, explicitly send or reply, and check delivery. Provided automatically by your inbox assignment.

paperclipai/paperclip · 30 tokens

Cortex

LifeOS memory, prior-session recall, and learning capture. USE WHEN capture this learning, document this learning, what did we learn recently, recent learnings, cortex, knowledge, knowledge base, search knowledge, what do we know about, archive, harvest, knowledge status, develop note, add to knowledge, add a people…

danielmiessler/LifeOS · 184 tokens

rowboat-spaces

How to work as a member of Rowboat Spaces, the team chat where people and agents work together. Load it once per session, before acting on any request that reaches you from Rowboat; it covers your setup, mentions and hand-offs, the tools, and files.

rowboatlabs/rowboat · 60 tokens

pinchtab-mcp

Use this skill when a task requires browser automation through PinchTab's MCP server connected to a remote browser instance. Covers navigation, element interaction, data extraction, form filling, multi-step flows, and session management via MCP tools.

pinchtab/pinchtab · 52 tokens

feishu

Work with Feishu or Lark bots, docs, sheets, bitables, approval flows, and OpenAPI/MCP setup without hardcoding credentials.

Hmbown/CodeWhale · 33 tokens