huang-sh/deepscience/devtu-code-optimization

Claude Code and agent skill by huang-sh/deepscience

Trust tier 3
  • community
  • ext:[{"type":"hook","description":"Pre/post lifecycle hooks"}]
Source check pending

Checking that the SKILL.md file is still in the repository.

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.

Install

npx vskill@latest install huang-sh/deepscience/devtu-code-optimization

Semi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard

SKILL.md

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

  • [references/api-fixes.md](references/api-fixes.md) — Per-API bug fixes (GtoPdb, CIViC, GTEx, ENCODE, CPIC, etc.)
  • [references/code-patterns.md](references/code-patterns.md) — Reusable Python patterns (schema, filtering, pagination, normalization)

Git & PR Workflow

bash
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

Security

  • Security scanPassed, 95 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
5

Not refreshed yet.

Extension points

  • hookPre/post lifecycle hooks

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/huang-sh/deepscience/devtu-code-optimization/badge)](https://verified-skill.com/skills/huang-sh/deepscience/devtu-code-optimization)

Something wrong with this skill or its page? Tell us.