Token导航 LogoToken导航TokenDH.com
研究检索敏感数据github未标认证来源可访问许可证需确认审计通过

devtu-githubdevtu GitHub 搜索

Agent Skill

用于围绕 GitHub 仓库、Issue、Pull Request、分支、提交和代码协作流程提供辅助能力。它适合让 Agent 查询项目状态、整理变更、辅助创建或检查协作事项,并把仓库中的信息转成可执行的下一步。使用时需要区分只读查询和写入操作;涉及创建 PR、修改 Issue、推送分支或访问私有仓库时,应确认 token 权限、目标仓库范围和用户授权。

总安装

4,632

周安装

193

GitHub Stars

1,325

下载量

1,544
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:devtu-github(devtu GitHub 搜索)
来源仓库:https://github.com/mims-harvard/tooluniverse
仓库路径:skills/devtu-github
安装命令:
npx skills add https://github.com/mims-harvard/tooluniverse --skill devtu-github
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/mims-harvard/tooluniverse --skill devtu-github

简介

安全推送 ToolUniverse 代码至 GitHub,强制执行预处理清理。

  • 包含临时文件隔离、提交钩子与测试验证三重保障。
  • 自动移动根目录非必要文档与测试脚本至隔离区。
  • 确保仅合规代码进入版本控制,降低误提交风险。
  • devtu-github 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

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

  1. Move temp files out of root - session docs and ad-hoc test scripts must NOT be pushed:
# Move session markdown files to temp_docs_and_tests/
for f in $(ls *.md 2>/dev/null | grep -v README.md | grep -v CHANGELOG.md | grep -v LICENSE.md); do
  mv "$f" temp_docs_and_tests/
done

# Move root-level test scripts to temp_docs_and_tests/
for f in $(ls test_*.py 2>/dev/null); do
  mv "$f" temp_docs_and_tests/
done
  1. Verify nothing unwanted is staged:
git status --short

Red flags - these should NEVER be staged:

  • *_SUMMARY.md, *_REPORT.md, SESSION_*.md in root
  • test_*.py in root (these are ad-hoc scripts, not real tests)
  • .env or credential files
  • temp_docs_and_tests/ contents

Phase 2: Activate Pre-Commit Hooks

  1. Ensure pre-commit is installed and active:
pre-commit install

This enables automatic checks on every git commit:

  • ruff check --fix - Python linting with auto-fix
  • ruff format - Code formatting
  • YAML/TOML validation
  • Trailing whitespace removal
  • End of file fixes
  1. Verify hooks are active:
ls -la .git/hooks/pre-commit

Phase 3: Run Tests

  1. Run the full test suite locally:
python -m pytest tests/ -x --tb=short -q
  1. If tests fail, diagnose using the error patterns below and fix before proceeding.

Phase 4: Commit and Push

  1. Stage only specific files (never use git add. or git add -A):
git add src/tooluniverse/specific_file.py tests/specific_test.py
  1. Commit (pre-commit hooks run automatically):
git commit -m "Clear, descriptive message"
  1. Rebase onto latest main BEFORE pushing (CRITICAL — prevents PR conflicts):
git fetch origin
git stash            # stash any uncommitted work
git rebase origin/main
git stash pop        # restore uncommitted work

If rebase conflicts arise, resolve them (keep our newer changes), then:

git add <conflicted-file>
git rebase --continue
  1. Push (force-with-lease after a rebase):
git push --force-with-lease origin <branch-name>

After pushing, verify the PR is conflict-free:

gh pr view <PR-number> --json mergeable,mergeStateStatus
# Must show: "mergeable":"MERGEABLE"

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:

PatternExample
*_SUMMARY.mdAPI_DISCOVERY_SESSION_SUMMARY.md
*_REPORT.mdSKILL_TESTING_REPORT.md, TOOLUNIVERSE_BUG_REPORT.md
SESSION_*.mdSESSION_2026_02_13.md
IMPLEMENTATION_*.mdIMPLEMENTATION_COMPLETE.md
BUG_ANALYSIS_*.mdBUG_ANALYSIS_DETAILED.md
FIX_*.mdFIX_SUMMARY.md, CORRECT_FIX.md
AGENT_*.mdAGENT_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/:

FilePurpose
test_clear_tools.pyOne-off tool cleanup test
test_finemapping_tools.pyAd-hoc tool validation
test_metabolomics_tools.pyAd-hoc tool validation
test_original_bug.pyBug reproduction
test_pathway_tools.pyAd-hoc tool validation
test_protein_interaction_skill.pySkill test
test_reload_fix.pyBug reproduction
test_round10_tools.pyAd-hoc tool validation

Other Excluded Files

  • .env - Environment variables with secrets
  • temp_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():

messages = tu.run(calls, use_cache=True, return_message=True)
if msg.get("role") == "tool":

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:

mock_tu.all_tool_dict = {"Tool": mock_tool}
mock_tu._get_tool_instance = lambda name, cache=True: mock_tu.all_tool_dict.get(name)

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:

git rm -r --cached temp_docs_and_tests/
git rm --cached API_DISCOVERY_SESSION_SUMMARY.md
git commit -m "Remove temp files from tracking"

Pre-Commit Hook Configuration

The project uses .pre-commit-config.yaml:

repos:
  - repo: https://github.com/pre-commit/pre-commit-hooks
    hooks: [end-of-file-fixer, trailing-whitespace, check-yaml, check-toml]
  - repo: https://github.com/astral-sh/ruff-pre-commit
    hooks: [ruff-check --fix, ruff-format]

Scope: Only files matching ^(ToolUniverse/)?src/tooluniverse/

Quick Reference

TaskCommand
Activate hookspre-commit install
Run all testspytest tests/ -x --tb=short -q
Run specific testpytest tests/path/test.py::Class::method -xvs
Check staged filesgit status --short
Unstage a filegit restore --staged <file>
Remove from trackinggit rm --cached <file>
Move temp filesSee Phase 1 commands
Run hooks manuallypre-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_*.py scripts moved to temp_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 of git add.
  • Write clean, professional commit messages
  • One logical change per commit

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

35.94%
按下载量换算555

Claude

29.72%
按下载量换算459

Cursor

20.9%
按下载量换算323

Gemini CLI

10.17%
按下载量换算157

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills