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…
In this repositoryOne other file it gives its agents.
- llms.txtllms.txt
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
- Very specific: line 99
Add a Pydantic plan model to cli/src/aux/plans/schemas.py
- Very specific: line 102
Write numbered reference docs under skills/<name>/references/
- Very specific: line 103
Add a docs/skills/<SKILL>.md documentation file
≈ “Common” is an estimate: at least 1 in 5 of the 28,633 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.
Files
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 doctorCommon 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 initArchitecture
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, truncationTwo 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> --schemabefore assuming field names - Agents select parameters; scripts execute — kernels own execution, not the agent
Adding a New Skill
- Copy structure from an existing skill (e.g.,
skills/grep/) - Implement
scripts/skill.shandscripts/skill.ps1 - Add a Pydantic plan model to
cli/src/aux/plans/schemas.py - Implement the kernel in
cli/src/aux/kernels/<skill>.py - Register the command parser in
cli/src/aux/commands/<skill>.pyand wire it incli.py - Write numbered reference docs under
skills/<name>/references/ - Add a
docs/skills/<SKILL>.mddocumentation 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.
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
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.

