重要前提
安装AI Skills的关键前提是:必须科学上网,且开启TUN模式,这一点至关重要,直接决定安装能否顺利完成,在此郑重提醒三遍:科学上网,科学上网,科学上网。查看完整安装教程 →
npx skills add https://github.com/datadog/dd-trace-java --skill techdebt分析当前分支的变更,识别并修复技术债务、代码重复和不必要的复杂性。
查找合并基准点(该分支与 master 分支分离的位置)并进行比较:
# 查找上游(DataDog 组织仓库)
UPSTREAM=$(git remote -v | grep -E 'DataDog/[^/]+(.git)?\s' | head -1 | awk '{print $1}')
if [ -z "$UPSTREAM" ]; then
echo "No DataDog upstream found, using origin"
UPSTREAM="origin"
fi
# 查找合并基准点(该分支与 master 分支分离的提交)
MERGE_BASE=$(git merge-base HEAD ${UPSTREAM}/master)
echo "Comparing changes introduced on this branch since diverging from master using base commit: $MERGE_BASE"
git diff $MERGE_BASE --stat
git diff $MERGE_BASE --name-status
如果不存在变更,则通知用户并停止。
如果存在变更,请读取差异和修改的源文件(非测试文件)的完整内容以理解上下文。
查找以下内容:
代码重复
不必要的复杂性
冗余代码
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
提供发现问题的简明摘要,并附上文件:行号引用。
然后询问用户是否希望您修复这些问题。修复时:
每周安装次数
38
代码仓库
GitHub 星标数
695
首次出现
2026年2月5日
安全审计
安装于
amp38
github-copilot38
codex38
kimi-cli38
gemini-cli38
opencode38
Analyze changes on the current branch to identify and fix technical debt, code duplication, and unnecessary complexity.
Find the merge-base (where this branch diverged from master) and compare against it:
# Find upstream (DataDog org repo)
UPSTREAM=$(git remote -v | grep -E 'DataDog/[^/]+(.git)?\s' | head -1 | awk '{print $1}')
if [ -z "$UPSTREAM" ]; then
echo "No DataDog upstream found, using origin"
UPSTREAM="origin"
fi
# Find the merge-base (commit where this branch diverged from master)
MERGE_BASE=$(git merge-base HEAD ${UPSTREAM}/master)
echo "Comparing changes introduced on this branch since diverging from master using base commit: $MERGE_BASE"
git diff $MERGE_BASE --stat
git diff $MERGE_BASE --name-status
If no changes exist, inform the user and stop.
If changes exist, read the diff and the full content of modified source files (not test files) to understand context.
Look for:
Code Duplication
Unnecessary Complexity
Redundant Code
Present a concise summary of issues found with file:line references.
Then ask the user if they want you to fix the issues. When fixing:
Weekly Installs
38
Repository
GitHub Stars
695
First Seen
Feb 5, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
amp38
github-copilot38
codex38
kimi-cli38
gemini-cli38
opencode38
Skills CLI 使用指南:AI Agent 技能包管理器安装与管理教程
52,700 周安装