zaoqu-liu/scienceclaw/devtu-github
Claude Code and agent skill by zaoqu-liu/scienceclaw
- community
- ext:[{"type":"hook","description":"Pre/post lifecycle hooks"}]
Checking that the SKILL.md file is still in the repository.
GitHub workflow for ToolUniverse - push code safely by moving temp files, activating pre-commit hooks, running tests, and cleaning staged files. Use when pushing to GitHub, fixing CI failures, or cleaning up before commits.
Install
npx vskill@latest install zaoqu-liu/scienceclaw/devtu-githubSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
DevTU GitHub Workflow
Safely push ToolUniverse code to GitHub by enforcing pre-push cleanup, pre-commit hooks, and test validation.
Instructions
When the user wants to push code, fix CI, or prepare a commit, follow this workflow:
Phase 1: Pre-Push Cleanup
- Move temp files out of root - session docs and ad-hoc test scripts must NOT be pushed:
- Verify nothing unwanted is staged:
Red flags - these should NEVER be staged:
*_SUMMARY.md,*_REPORT.md,SESSION_*.mdin roottest_*.pyin root (these are ad-hoc scripts, not real tests).envor credential filestemp_docs_and_tests/contents
Phase 2: Activate Pre-Commit Hooks
- Ensure pre-commit is installed and active:
This enables automatic checks on every git commit:
ruff check --fix- Python linting with auto-fixruff format- Code formatting- YAML/TOML validation
- Trailing whitespace removal
- End of file fixes
- Verify hooks are active:
Phase 3: Run Tests
- Run the full test suite locally:
- If tests fail, diagnose using the error patterns below and fix before proceeding.
Phase 4: Commit and Push
- Stage only specific files (never use
git add .orgit add -A):
- Commit (pre-commit hooks run automatically):
- Rebase onto latest main BEFORE pushing (CRITICAL — prevents PR conflicts):
If rebase conflicts arise, resolve them (keep our newer changes), then:
- Push (force-with-lease after a rebase):
After pushing, verify the PR is conflict-free:
Files That Must NEVER Be Pushed
Temp Session Documents (Root-Level .md)
These are session notes created during development. Move to temp_docs_and_tests/ before committing:
| Pattern | Example | |
|---|---|---|
*_SUMMARY.md | API_DISCOVERY_SESSION_SUMMARY.md | |
*_REPORT.md | SKILL_TESTING_REPORT.md, TOOLUNIVERSE_BUG_REPORT.md | |
SESSION_*.md | SESSION_2026_02_13.md | |
IMPLEMENTATION_*.md | IMPLEMENTATION_COMPLETE.md | |
BUG_ANALYSIS_*.md | BUG_ANALYSIS_DETAILED.md | |
FIX_*.md | FIX_SUMMARY.md, CORRECT_FIX.md | |
AGENT_*.md | AGENT_DESIGN_UPDATES.md |
Exception: README.md, CHANGELOG.md, LICENSE.md are real docs and MUST stay.
Root-Level Test Scripts
Ad-hoc test scripts like test_*.py in root are NOT part of the test suite (tests/ directory is). Move them to temp_docs_and_tests/:
| File | Purpose | |
|---|---|---|
test_clear_tools.py | One-off tool cleanup test | |
test_finemapping_tools.py | Ad-hoc tool validation | |
test_metabolomics_tools.py | Ad-hoc tool validation | |
test_original_bug.py | Bug reproduction | |
test_pathway_tools.py | Ad-hoc tool validation | |
test_protein_interaction_skill.py | Skill test | |
test_reload_fix.py | Bug reproduction | |
test_round10_tools.py | Ad-hoc tool validation |
Other Excluded Files
.env- Environment variables with secretstemp_docs_and_tests/- Already in .gitignore.claude/- Claude Code configuration__pycache__/,*.pyc- Python bytecode.DS_Store- macOS metadata
Common Test Failure Patterns
Pattern 1: KeyError: 'role'
Symptom: KeyError: 'role' when accessing message dicts
Fix: Add return_message=True to tu.run() and use .get():
Pattern 2: Mock Not Subscriptable
Symptom: TypeError: 'Mock' object is not subscriptable
Fix: Use real dicts for all_tool_dict and add _get_tool_instance:
Pattern 3: Linting Errors (F841, E731)
Fix F841 (unused variable): Use _ prefix or _ = func() Fix E731 (lambda assignment): Replace with def
Pattern 4: Temp Files Tracked by Git
Symptom: git status shows temp files as modified/staged
Fix:
Pre-Commit Hook Configuration
The project uses .pre-commit-config.yaml:
Scope: Only files matching ^(ToolUniverse/)?src/tooluniverse/
Quick Reference
| Task | Command | |
|---|---|---|
| Activate hooks | pre-commit install | |
| Run all tests | pytest tests/ -x --tb=short -q | |
| Run specific test | pytest tests/path/test.py::Class::method -xvs | |
| Check staged files | git status --short | |
| Unstage a file | git restore --staged <file> | |
| Remove from tracking | git rm --cached <file> | |
| Move temp files | See Phase 1 commands | |
| Run hooks manually | pre-commit run --all-files |
Pre-Push Checklist
Before every push, verify:
- [ ] Temp markdown files moved from root to
temp_docs_and_tests/ - [ ] Root-level
test_*.pyscripts moved totemp_docs_and_tests/ - [ ] Pre-commit hooks installed (
pre-commit install) - [ ] All tests pass locally (
pytest tests/ -x) - [ ] No linting errors
- [ ] Only relevant files staged (no
.env, no temp files) - [ ] Commit message is clear and descriptive
- [ ] Correct branch selected
Git Commit Guidelines
- Never include AI attribution in commits
- Never commit session documentation markdown files
- Use
git add <specific-files>instead ofgit add . - Write clean, professional commit messages
- One logical change per commit
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/devtu-github/SKILL.md
Popularity
- Repository stars
- 39
- Repository forks
- 7
- 7-day trend score
- 18
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 25 Mar 2026, 8 months ago.
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
[](https://verified-skill.com/skills/zaoqu-liu/scienceclaw/devtu-github)