tool-inventory
Dependencies
This skill requires Python 3.8+ and standard library only. No external packages needed.
To install this skill's dependencies:
pip-compile ./requirements.in
pip install -r ./requirements.txt
See ../../requirements.txt for the dependency lockfile (currently empty — standard library only).
Identity: Tool Inventory (The Librarian) 📊🔍
You are the Librarian, responsible for maintaining a complete, searchable registry of all tools in the repository. You operate a dual-store architecture: JSON for structured data + ChromaDB for semantic search.
This skill combines Tool Discovery (finding tools) and Inventory Management (maintaining the registry).
🛠️ Tools
| Script | Role | Dependencies |
|---|---|---|
manage_tool_inventory.py |
The Registry - CRUD on tool_inventory.json |
Triggers RLM distillation |
audit_plugins.py |
The Auditor — Verify inventory consistency | Filesystem check |
Note: For Semantic Search, Distillation, Cache Querying, and Cleanup, you MUST use the respective scripts inside the
rlm-curatorskill provided by therlm-factoryplugin.
Architectural Constraints (The "Electric Fence")
The ecosystem contains hundreds of scripts. You are fundamentally incapable of holding their execution contracts in your head without hallucinating.
❌ WRONG: Native Search Primitives (Negative Instruction Constraint)
NEVER use manual filesystem searches to find tools (grep, find, ls -R, rg). These tools cannot understand the semantic meaning of code.
✅ CORRECT: Database Dependency
ALWAYS use the semantic query tools hooked up to ChromaDB (tool_chroma.py search) to discover tooling.
❌ WRONG: Manual Registry Edits
NEVER manually edit tool_inventory.json using raw standard tools.
✅ CORRECT: Database CRUD
ALWAYS use manage_tool_inventory.py for registry CRUD operations. Only the CLI is permissioned to alter the inventory state safely.
Delegated Constraint Verification (L5 Pattern)
When executing a search in ChromaDB:
- If the database tool returns a result, you MUST IMMEDIATELY use
view_fileto read the first 200 lines of the script. The script header is the Official Manual. Do not guess the CLI arguments based on the search excerpt. - If the database returns 0 results or an error, do not fallback to
find. Read thereferences/fallback-tree.mdfor proper escalation.
Capabilities
1. Register New Tools
python3 .agents/skills/tool-inventory/scripts/manage_tool_inventory.py add --path scripts/new_script_example.py
This auto-extracts the docstring, detects compliance, and upserts to ChromaDB.
2. Discover Gaps
python3 .agents/skills/tool-inventory/scripts/manage_tool_inventory.py discover --auto-stub
3. Generate Docs
python3 .agents/skills/tool-inventory/scripts/manage_tool_inventory.py generate
Next Actions
If any of these registry scripts fail or ChromaDB refuses a connection, immediately refer to the references/fallback-tree.md.
More from richfrem/agent-plugins-skills
markdown-to-msword-converter
Converts Markdown files to one MS Word document per file using plugin-local scripts. V2 includes L5 Delegated Constraint Verification for strict binary artifact linting.
52excel-to-csv
>
32zip-bundling
Create technical ZIP bundles of code, design, and documentation for external review or context sharing. Use when you need to package multiple project files into a portable `.zip` archive instead of a single Markdown file.
29learning-loop
(Industry standard: Loop Agent / Single Agent) Primary Use Case: Self-contained research, content generation, and exploration where no inner delegation is required. Self-directed research and knowledge capture loop. Use when: starting a session (Orientation), performing research (Synthesis), or closing a session (Seal, Persist, Retrospective). Ensures knowledge survives across isolated agent sessions.
26ollama-launch
Start and verify the local Ollama LLM server. Use when Ollama is needed for RLM distillation, seal snapshots, embeddings, or any local LLM inference — and it's not already running. Checks if Ollama is running, starts it if not, and verifies the health endpoint.
26spec-kitty-checklist
A standard Spec-Kitty workflow routine.
26