create-tool
Skill1 starsChanged 50 days agoMITView on GitHub
Scaffold a new MCP tool: types, implementation, tests, and registration.
3 other projects use a version of this.
Adopted by
Most recently taken up by
- awaku7/agentclitheir own version, first seen Nov 2, 2026
- nordinit/agent-hqtheir own version, first seen Sep 25, 2026
- VapiAI/skillstheir own version, first seen Sep 3, 2026
Other versions3 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 3
- VapiAI/skills★ 69same name
- awaku7/agentcli★ 12same name
- nordinit/agent-hq★ 1same 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 repository9 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- create-testSkill
- create-toolSkill
- polishSkill
- review-changesSkill
- create-testSkill
- polishSkill
- review-changesSkill
The file
We split this skill into the rules it gives an agent
6 rules. About 0 are common, 1 is distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 23
Read docs/patterns.md for tool registration, error handling, and testing patterns.
- Very specific: line 30
Registration: add the import and register*Tool(server, context) call in createServer() in src/server.ts, add the tool name to …
- Very specific: line 34
Add the tool to the quick reference table in TOOLS.md
- Very specific: line 35
Add detailed docs to the appropriate docs/tools-*.md file
- Very specific: line 36
Add the tool to the list in README.md, and update the tool count there and in docs/tools-overview.md
- Distinctive: line 45
Run all source-change checks in docs/code-quality.md, including changed registration, implementation, and test files.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 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
Create Tool
Scaffold all files for a new MCP tool following project conventions.
Workflow
1. Gather requirements
Infer these from the request and repository; ask only for missing requirements:
- Tool name (snake_case, e.g.,
get_dependency_graph) - Description (one sentence, used in MCP tool listing)
- Input parameters (name, type, required/optional, description)
- Output shape (what the result looks like)
2. Reference existing patterns
Read docs/patterns.md for tool registration, error handling, and testing patterns. Also read an existing tool in src/tools/ as a concrete example.
3. Create files
- Types:
src/types/[concern].ts(named by domain, e.g.complexity.ts,thresholds.ts) as Zod schemas withz.infertypes, exported fromsrc/types/index.ts - Implementation:
src/tools/[toolName].tsfollowing the registration pattern - Tests:
src/tools/[toolName].test.tsusinggetToolHandler/parseContentfromsrc/testUtils/toolTestHarness.ts - Registration: add the import and
register*Tool(server, context)call increateServer()insrc/server.ts, add the tool name toEXPECTED_TOOLSinsrc/server.test.ts, and add its calls toCALLSinsrc/server.outputSchema.test.ts
4. Update documentation
- Add the tool to the quick reference table in
TOOLS.md - Add detailed docs to the appropriate
docs/tools-*.mdfile - Add the tool to the list in
README.md, and update the tool count there and indocs/tools-overview.md
5. Verify
npm run check # check:versions + lint:fix + typecheck
npm run test # all tests passRun all source-change checks in docs/code-quality.md, including changed registration, implementation, and test files. Fix actionable findings and rerun the detecting tools before declaring the tool complete. Exercise the new tool through its MCP handler tests and verify the documented response shape.
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.

