skillZs
★ LIVE SKILL TAGS ★
>>> LIVE SKILLS INDEX <<<
* OPEN SOURCE *
NO LOGIN, NO TRACKING
※ REAL INSTALL DATA ※
← back to all skills
mims-harvard/tooluniverse264 installs

devtu-code-optimization

Code quality patterns and guidelines for ToolUniverse tool development. Apply when writing, fixing, or refactoring tool Python code in the ToolUniverse project. Encodes lessons from 80+ debug rounds. Use alongside devtu-fix-tool and devtu-self-evolve. Triggers: implementing tool fixes, writing new tool classes, reviewing tool code quality, checking schema correctness, looking up API-specific bug fixes.

How do I install this agent skill?

npx skills add https://github.com/mims-harvard/tooluniverse --skill devtu-code-optimization
view source ↗

Is this agent skill safe to install?

  • Gen Agent Trust Hubpass

    This skill provides a set of technical guidelines, code patterns, and pre-commit checklists for developers working on the ToolUniverse project. It includes Python and R code snippets intended to fix common API integration issues and improve code reliability. The skill does not contain malicious code, but it does document patterns for dynamic execution of R scripts and provides shell commands for project maintenance, such as linting, testing, and Git operations.

  • Socketpass

    No alerts

  • Snykpass

    Risk: LOW · No issues

  • Runlayerpass

    1/3 files flagged

What does this agent skill do?

ToolUniverse Code Optimization

Always run Skill(skill="simplify") after writing or modifying code.

Pre-Commit Checklist

  • return_schema has oneOf: [{data+metadata}, {error}]
  • Test examples use real IDs (no DUMMY/PLACEHOLDER)
  • try: has except: at exact same indentation level
  • No trailing commas in JSON (python3 -c "import json; json.load(open('f.json'))")
  • New tool class registered in _lazy_registry_static.py and default_config.py
  • ruff check src/tooluniverse/<file>.py passes
  • python -c "from tooluniverse.<module> import <Class>" passes
  • python -m tooluniverse.cli run <Tool> '<real_args_json>' returns expected data
  • Ran Skill(skill="simplify") on all modified files

Key Fix Categories

CategorySignalReference
Silent param ignoredAPI accepts but drops filtercode-patterns.md — Client-Side Filter
Wrong API field/endpoint0 results or 404api-fixes.md — Quick Lookup Table
Schema invalidnull type, missing oneOfcode-patterns.md — Schema Patterns
Undisclosed normalizationAuto-transform hidden from usercode-patterns.md — Normalization Disclosure
try/except indentSyntaxError at runtimecode-patterns.md — try/except section
Truncation buriedData count hidden in notescode-patterns.md — Truncation
Hosted model API (NIM)async 404 on poll, JSON-wrapped output, 200+inner-failure, "not found for account"code-patterns.md — Hosted Model-API Tools
R subprocess tool'\.' unrecognized escape from Rscript -ecode-patterns.md — R-subprocess Tools

References

Git & PR Workflow

git fetch origin && git stash && git rebase origin/main && git stash pop
git push --force-with-lease origin fix/round-XX-bugs
gh pr view <N> --json mergeable  # must be MERGEABLE before done
  • Never push to main directly
  • Never have multiple open fix PRs
  • Commit messages: "Feature" or "Fix" — never "Bug"
  • No AI attribution in commits
  • Repo: mims-harvard/ToolUniverse — verify with git remote -v

Add the canonical catalog link to the repository README so users can inspect current installs and available audits. The publishing guide covers the complete discovery path.

<a href="https://skillzs.dev/skills/mims-harvard/tooluniverse/devtu-code-optimization">View devtu-code-optimization on skillZs</a>