mcpField
C
create-tooluniverse-skill

create-tooluniverse-skill

github.com/mims-harvardAgent workflows1.8k411 installsUpdated 2d ago
Repository

About create-tooluniverse-skill

create-tooluniverse-skill is a maintainer-facing skill for building ToolUniverse skills through staged analysis, implementation, testing, documentation, and packaging. Its workflow emphasizes verifying tools before writing implementations and docs.

Key features

  1. 01Seven-phase skill creation workflow
  2. 02Discover and test tools first
  3. 03Templates for implementation and tests
  4. 04Validate and package skill deliverables

Use cases

  1. 01Create a skill for a new ToolUniverse domain
  2. 02Add tool tests to a skill implementation
  3. 03Validate and package a skill using checklists

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/mims-harvard/tooluniverse --skill create-tooluniverse-skill

After installing, type/create-tooluniverse-skillin Claude Code to confirm it loaded.

Bundled files

References and scripts installed along with SKILL.md.

CODE_TEMPLATES.md
OPTIMIZE_INTEGRATION.md
PACKAGING_TEMPLATE.md
PARAMETER_VERIFICATION.md
QUICKSTART_TEMPLATE.md
SKILL_TEMPLATE.md
test_tools_template.py
TESTING_GUIDE.md
VALIDATION_CHECKLIST.md
assets/skill_template/
python_implementation.py
QUICK_START.md
test_skill.py
references/
devtu_optimize_integration.md
implementation_agnostic_format.md
skill_standards_checklist.md
tool_testing_workflow.md
scripts/
test_tools_template.py

Details

From the project README

Create ToolUniverse Skill

Systematic workflow for creating production-ready ToolUniverse skills.

The devtu-* skills this one hands off to are no longer in this repository. devtu-optimize-skills, devtu-create-tool and devtu-fix-tool moved to the tu-harness plugin (tooluniverse/tooluniverse-harness), because they operate on this repository rather than being something a user of it calls. Install them with claude plugin install tu-harness@tooluniverse-harness; the references below name them by skill, so they resolve once that plugin is present. This skill is maintainer-facing too -- it is not in the user-facing plugin mirror -- and belongs beside them; it has not moved yet only because nothing forced the question.

Core Principles

Build on the 10 pillars from devtu-optimize-skills:

  1. TEST FIRST - never document untested tools
  2. Verify tool contracts - don't trust function names
  3. Handle SOAP tools - add operation parameter
  4. Implementation-agnostic docs - no Python/MCP code in SKILL.md
  5. Foundation first - query aggregators before specialized tools
  6. Disambiguate carefully - resolve IDs properly
  7. Implement fallbacks - Primary -> Fallback -> Default
  8. Grade evidence - T1-T4 tiers on claims
  9. Quantified completeness - numeric minimums per section
  10. Synthesize - models and hypotheses, not just lists

See OPTIMIZE_INTEGRATION.md for detailed application of each pillar.

7-Phase Workflow

PhaseDurationDescription
1. Domain Analysis15 minUnderstand use cases, data types, analysis phases
2. Tool Discovery30-45 minSearch, read configs, test tools (MANDATORY)
3. Tool Creation0-60 minCreate missing tools via devtu-create-tool
4. Implementation30-45 minWrite python_implementation.py with tested tools
5. Documentation30-45 minWrite SKILL.md (agnostic) + QUICK_START.md
6. Validation15-30 minRun test suite, validate checklist, manual verify
7. Packaging15 minCreate summary, update tracking

Total: ~1.5-2 hours (without tool creation).

Phase 1: Domain Analysis
  • Gather concrete use cases and expected outputs
  • Identify inputs, outputs, and intermediate data types
  • Break workflow into logical phases
  • Review existing skills in skills/ for patterns
Phase 2: Tool Discovery and Testing

Search tools in /src/tooluniverse/data/*.json (186 tool files). For each tool, read its config to understand parameters and return schema. See PARAMETER_VERIFICATION.md for common pitfalls.

Create and run a test script using test_tools_template.py. For each tool: call with known-good params, verify response format, document corrections. See TESTING_GUIDE.md for the full test suite template and procedures.

Phase 3: Tool Creation (If Needed)

Invoke devtu-create-tool when required functionality is missing and analysis is blocked. Use devtu-fix-tool if new tools fail tests.

Phase 4: Implementation

Create skills/tooluniverse-[domain]/ with:

  • python_implementation.py - use only tested tools, try/except per phase, progressive report writing
  • test_skill.py - test each input type, combined inputs, error handling

Use templates from CODE_TEMPLATES.md.

Phase 5: Documentation

Write implementation-agnostic SKILL.md using SKILL_TEMPLATE.md. Write multi-implementation QUICK_START.md using QUICKSTART_TEMPLATE.md. Key rules: zero Python/MCP code in SKILL.md, equal treatment of both interfaces in QUICK_START.

See IMPLEMENTATION_AGNOSTIC.md for format guidelines with examples.

Phase 6: Validation

Run the comprehensive test suite (see TESTING_GUIDE.md). Validate against VALIDATION_CHECKLIST.md. Perform manual verification: load ToolUniverse fresh, copy-paste QUICK_START example, verify output works.

Phase 7: Packaging

Create summary document using PACKAGING_TEMPLATE.md. Update session tracking if creating multiple skills.

Skill Integration

SkillWhen to Use
devtu-create-toolCritical functionality missing
devtu-fix-toolTool returns errors or unexpected format
devtu-optimize-skillsEvidence grading, report optimization

Quality Indicators

High quality: 100% test coverage before docs, agnostic SKILL.md, multi-implementation QUICK_START, fallback strategies, parameter corrections table, response format docs.

Red flags: Docs before testing, Python in SKILL.md, assumed parameters, no fallbacks, SOAP tools missing operation, no test script.

Reference Files

FileContent
SKILL_TEMPLATE.mdTemplate for writing SKILL.md
QUICKSTART_TEMPLATE.mdTemplate for writing QUICK_START.md
TESTING_GUIDE.mdTest suite template and procedures
VALIDATION_CHECKLIST.mdPre-release quality checklist
PACKAGING_TEMPLATE.mdSummary document template
PARAMETER_VERIFICATION.mdTool parameter verification guide
OPTIMIZE_INTEGRATION.mddevtu-optimize-skills 10-pillar integration
IMPLEMENTATION_AGNOSTIC.mdImplementation-agnostic format guide with examples
CODE_TEMPLATES.mdPython implementation and test templates
test_tools_template.pyTool testing script template

Comments

Markdown supported