From mims-harvard-tooluniverse
Provides code quality patterns and guidelines for ToolUniverse Python tool development, including pre-commit checks, API bug fixes, and schema patterns.
How this skill is triggered — by the user, by Claude, or both
Slash command
/mims-harvard-tooluniverse:devtu-code-optimizationThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Always run `Skill(skill="simplify")` after writing or modifying code.
Always run Skill(skill="simplify") after writing or modifying code.
return_schema has oneOf: [{data+metadata}, {error}]try: has except: at exact same indentation levelpython3 -c "import json; json.load(open('f.json'))")_lazy_registry_static.py and default_config.pyruff check src/tooluniverse/<file>.py passespython -c "from tooluniverse.<module> import <Class>" passespython -m tooluniverse.cli run <Tool> '<real_args_json>' returns expected dataSkill(skill="simplify") on all modified files| Category | Signal | Reference |
|---|---|---|
| Silent param ignored | API accepts but drops filter | code-patterns.md — Client-Side Filter |
| Wrong API field/endpoint | 0 results or 404 | api-fixes.md — Quick Lookup Table |
| Schema invalid | null type, missing oneOf | code-patterns.md — Schema Patterns |
| Undisclosed normalization | Auto-transform hidden from user | code-patterns.md — Normalization Disclosure |
| try/except indent | SyntaxError at runtime | code-patterns.md — try/except section |
| Truncation buried | Data count hidden in notes | code-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 -e | code-patterns.md — R-subprocess Tools |
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
main directlymims-harvard/ToolUniverse — verify with git remote -vnpx claudepluginhub mims-harvard/tooluniverseReviews UI code for compliance with Web Interface Guidelines, covering accessibility, design, and UX. Activated by phrases like 'review my UI' or 'audit design'.