creating-tools
Skill0 starsChanged 2 months agoMITView on GitHub
Use when authoring an auxiliary developer tool — a one-off automation, data generator, migration helper, scaffolder, seed/fixture script, CI/CD helper, or reusable config — i.e. support tooling that is NOT product business logic; also whenever such a tool's runs, logs, or outputs need a consistent home. Creates and organizes the tool under docs/tools/<tool>/ with a README, the code (or a pointer to it in a source repo), timestamped run logs (runs/<ts>/), and results (output/), and creates docs/tools if missing. Stack-agnostic; works in any repo. Ships scaffold-tool and record-run scripts. For the tool's code quality, the `coding-standards` skill (and the matching stack skill) helps if available; for safe commits, the `git-conventions` skill if available; for the README prose, the `technical-writing` skill if available; for secrets or SQL, the `security-practices` skill if available — DB mutations are never run inline (SQL goes to a versioned script the user applies).
- Installs packages
1 other project uses a version of this.
Adopted by
Most recently taken up by
- paradigmxyz/centaurtheir own version, first seen Oct 8, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- paradigmxyz/centaur★ 1.5ksame name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository21 other files it gives its agents.
- authoring-skillsSkill
- system-diagramsSkill
- java-spring-standardsSkill
- sql-authoringSkill
- exploring-designs-with-agentsSkill
- ui-authoringSkill
- project-docsSkill
- technical-writingSkill
- coding-standardsSkill
- critical-thinkingSkill
- github-workflowsSkill
- reviewing-codeSkill
- security-practicesSkill
- software-testingSkill
- version-evolutionSkill
- angular-standardsSkill
- git-conventionsSkill
- resolving-merge-conflictsSkill
- releasing-android-appsSkill
- coordinating-agentsSkill
- masterSkill
The file
We split this skill into the rules it gives an agent
9 rules. About 0 are common, 3 are distinctive, and 6 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 10
Run this once, when the skill loads and before its other steps.
- Very specific: line 12
Run node <skill dir>/scripts/permissions.mjs check --root <session folder> --host <claude|codex|agy>.
- Very specific: line 13
If node is missing or the command fails, say so, list the needs in <skill dir>/permissions.json and go on with the skill.
- Very specific: line 14
Read hosts.<host> in the output.
- Very specific: line 16
Run the command of the option the person chose, exactly as given.
- Distinctive: line 18
After "Skip for now", do not run this step again in the session.
- Distinctive: line 36
If the artifact is product business logic → it is not a tool (this skill does not apply).
- Very specific: line 57
runs/is immutable: every execution creates its timestamped folder. - Very specific: line 81
Run them as node <skill dir>/scripts/<script>.mjs, with the absolute folder of this SKILL.md: that is the form the rules of step 0 allow.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill 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
creating-tools — Authoring and organizing auxiliary tools
Step 0 — Permissions this skill uses
Run this once, when the skill loads and before its other steps. It keeps the session from stopping on a prompt for a command this skill is known to run. It is not a security check: the host and its hooks still decide.
- Run
node <skill dir>/scripts/permissions.mjs check --root <session folder> --host <claude|codex|agy>.<skill dir>is the folder of thisSKILL.md;<session folder>is the folder where the session started; the host is the one you run in. - If
nodeis missing or the command fails, say so, list the needs in<skill dir>/permissions.jsonand go on with the skill. - Read
hosts.<host>in the output. Show itsnoticewhen there is one. - Ask each entry of its
questionswith the host's structured question tool, in the person's language: itstext, then its options in the given order, the one markedrecommendedfirst. Low-risk and high-risk needs are separate questions; ask them separately and never recommend allowing a high-risk need. - Run the
commandof the option the person chose, exactly as given. An option without a command writes nothing. Write nothing the person did not choose. - Tell the person the
appliesline of the result: whether the change works now or after a restart. If the command fails, say so and go on. - After "Skip for now", do not run this step again in the session.
Purpose
Create auxiliary tools/utilities (scripts, CLIs, helpers, generators, reusable configs) with a consistent structure under docs/tools/<tool>/: the code (or a pointer to its repo), a README, per-run logs and the results. It covers support tooling — never product code. Reusable at any time, in any repo; it creates docs/tools if missing. It contributes the structure and the lifecycle; the tool's code is written by the consumer (following the coding-standards skill, if available).
Knowledge
Tool vs product code
A tool is a support artifact, never business logic of the final product:
- Seed/fixture scripts for local development.
- Auxiliary CLIs (
validate-schema.js,sync-env.sh). - CI/CD helpers (deploy, config linters).
- Generators/scaffolders for repetitive tasks.
- Reusable configs (environment templates, test fixtures).
If the artifact is product business logic → it is not a tool (this skill does not apply).
On-disk structure — docs/tools/<tool>/
One folder per tool, with a short, clear, descriptive name (kebab-case; no NNN numbering — addressed by name):
docs/tools/
├── README.md # tool index (table)
└── <tool-slug>/
├── README.md # the tool's contract (see assets/README.template.md)
├── <code> # only if the tool is self-contained
├── runs/ # one run = one immutable folder
│ └── <YYYY-MM-DD_HH-MM-SS>/
│ ├── command.txt # exact command + args + exit_code
│ ├── run.log # captured stdout/stderr
│ └── output/ # results of THAT run
└── output/
└── latest -> ../runs/<latest>/outputruns/is immutable: every execution creates its timestamped folder; never overwritten.output/latestpoints at the most recent one.
Where does the code live? Two models (the README declares it)
| Model | Code | docs/tools/<tool>/ | When |
| code-in-repo (default) | in the source repo (scripts/, tools/, bin/) | README (with Repo+Path) + runs/ + output/ | the tool belongs to a concrete source |
| self-contained | inside docs/tools/<tool>/ | code + README + runs/ + output/ | a workspace utility, not tied to one repo |
Lifecycle (checklist)
- Create the structure:
node scaffold-tool.mjs <slug>→ createsdocs/tools/<slug>/+runs/+output/+README.mdfrom the template (anddocs/toolsif missing; never clobbers an already-edited README). - Write the tool's code (in the source repo, or self-contained) — following the
coding-standardsskill and the stack skill, if available. - Document the README: purpose, usage, parameters, inputs/outputs, dependencies, examples.
- Run via
node record-run.mjs <slug> -- <cmd…>→ archivesruns/<ts>/{command.txt, run.log, output/}and movesoutput/latest. - Register the tool in the
docs/tools/README.mdindex (the scaffolder does it).
Bundled scripts (prefer them over regenerating by hand)
node scripts/scaffold-tool.mjs <slug> [--type T] [--repo ALIAS] [--path REL]— creates the idempotent structure + the README fromassets/README.template.md. Run--helpfor the flags.node scripts/record-run.mjs <slug> -- <cmd> [args…]— runs the command, capturescommand.txt+run.log+output/underruns/<ts>/, exportsRUN_OUTPUT_DIR(absolute) so the tool writes there, and updatesoutput/latest.
Single-source Node (no deps): they run identically on native Windows, macOS and Linux — always invoked with
node(no bash dependency).
Run them as node <skill dir>/scripts/<script>.mjs, with the absolute folder of this SKILL.md: that is the form the rules of step 0 allow.
Self-contained tools: declare dependencies
A tool that fails silently for a missing binary is worse than no tool. Check dependencies at start:
command -v jq >/dev/null 2>&1 || { echo "jq required: brew install jq" >&2; exit 1; }Shell: set -euo pipefail, quoted variables, shellcheck-friendly. Other languages: follow the stack skill (explicit types, explicit error handling, docstring/Javadoc on the public surface).
Git and DB
- Git-safe (the
git-conventionsskill, if available, has the detail): verify the expected branch before writing; propose the commit; neverpush/--amend/--no-verify. If the tool modifies an existing file, read it whole first. - DB (the
security-practicesandsql-authoringskills, if available, have the detail): a tool may generate a.sql, but it never executes it against the DB (mutations go to a versioned script the user applies; DB via MCP = read-only).
Output
Per tool, under docs/tools/<tool>/:
- README.md — the contract (template in
assets/README.template.md). - code — in the source repo (code-in-repo) or here (self-contained); the README says which.
- runs/
<ts>/ —command.txt+run.log+output/per execution (immutable). - output/latest — pointer to the latest run.
- A row in the
docs/tools/README.mdindex.
It creates docs/tools/ if missing. It writes in no other docs/ folder.
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.

