agentleFS
JordanGunnJordanGunn/aux/CLAUDE.md

aux

CLAUDE.md4 starsChanged 8 months agoApache-2.0View on GitHub

Python package (aux-skills, Python ≥3.10) installed via uv tool install. Entry point: aux.cli:main. Each command follows the same layered pattern: Two invocation modes for every command: - Simple: aux search "pattern" --root /path --glob "*.py" - Plan: aux search --plan '<json>' — accepts a full plan JSON matching the Pydantic schema --schema flag on any command prints the JSON schema for that skill's plan. Each skill is fully self-contained and independent: skill.sh init concatenates all reference docs — this is…

The file

We split this CLAUDE.md into the rules it gives an agent

3 rules. About 0 are common, 0 are distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Add a Pydantic plan model to cli/src/aux/plans/schemas.py

    line 99
  2. Very specific:

    Write numbered reference docs under skills/<name>/references/

    line 102
  3. Very specific:

    Add a docs/skills/<SKILL>.md documentation file

    line 103

≈ “Common” is an estimate: at least 1 in 5 of the 12,729 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
CLAUDE.md

CLAUDE.md

This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.

Setup and Installation

# Install aux CLI and validate system dependencies (requires uv, rg, fd/fdfind, git, diff)
./scripts/install.sh

# Verify dependencies post-install
aux doctor

Common Commands

# Run all tests
cd cli && python -m pytest

# Run a single test file
cd cli && python -m pytest tests/path/to/test_file.py

# Lint
cd cli && ruff check src/

# Get schema for any skill (source of truth)
aux search --schema
aux find --schema
aux ccx --schema
aux hotspots --schema

# Validate a skill is runnable
./skills/search/scripts/skill.sh validate

# Emit all reference docs for a skill (agent onboarding)
./skills/search/scripts/skill.sh init

Architecture

CLI Layer (cli/)

Python package (aux-skills, Python ≥3.10) installed via uv tool install. Entry point: aux.cli:main.

Each command follows the same layered pattern:

commands/<skill>.py   → arg parsing, plan construction, output formatting
plans/schemas.py      → Pydantic models (GrepPlan, FindPlan, SearchPlan, ...)
kernels/<skill>.py    → deterministic execution (uses ThreadPoolExecutor for concurrency)
util/subprocess.py    → subprocess wrapper for system tools (rg, fd, git diff)
output/               → format_output(), TTY detection, truncation

Two invocation modes for every command:

  • Simple: aux search "pattern" --root /path --glob "*.py"
  • Plan: aux search --plan '<json>' — accepts a full plan JSON matching the Pydantic schema

--schema flag on any command prints the JSON schema for that skill's plan.

Skills Layer (skills/)

Each skill is fully self-contained and independent:

skills/<name>/
  SKILL.md                  # Frontmatter manifest (name, version, scripts, keywords)
  references/
    01_SUMMARY.md           # Identity, scope, constraints
    02_INTENT.md            # When and why to invoke
    03_POLICIES.md          # Explicit prohibitions and mandates
    04_PROCEDURE.md         # Step-by-step execution flow
  scripts/
    skill.sh                # Main entry (Unix): init | validate | schema | run
    skill.ps1               # Main entry (Windows)

skill.sh init concatenates all reference docs — this is the agent onboarding entrypoint. skill.sh run delegates to the aux CLI backend.

search Command

Hierarchical pipeline: fd → rg [→ tree-sitter]. Defined in commands/search.py and uses find_kernel, grep_kernel, and optionally query_kernel.

Core Constraints

These apply to all skills and the CLI:

  • Read-only by default — no filesystem mutation
  • Deterministic — same input must produce same output; no hidden state
  • Schema is source of truth — run aux <skill> --schema before assuming field names
  • Agents select parameters; scripts execute — kernels own execution, not the agent

Adding a New Skill

  1. Copy structure from an existing skill (e.g., skills/grep/)
  2. Implement scripts/skill.sh and scripts/skill.ps1
  3. Add a Pydantic plan model to cli/src/aux/plans/schemas.py
  4. Implement the kernel in cli/src/aux/kernels/<skill>.py
  5. Register the command parser in cli/src/aux/commands/<skill>.py and wire it in cli.py
  6. Write numbered reference docs under skills/<name>/references/
  7. Add a docs/skills/<SKILL>.md documentation file

ASI Alignment

Skills follow the ASI (Agentic Skill Interface) governance model. Before designing a new skill, consult the ASI framework for determinism, replayability, and scope-bounding requirements.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.