Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add mindspore-ai/akg --skill akg-reviewgit clone --depth 1 https://github.com/mindspore-ai/akgWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/mindspore-ai/akg/akg-review)<a href="https://agentmods.dev/skills/mindspore-ai/akg/akg-review"><img src="https://agentmods.dev/badge/skills/mindspore-ai/akg/akg-review/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/mindspore-ai/akg/akg-review"><img src="https://agentmods.dev/badge/skills/mindspore-ai/akg/akg-review.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00067 | $0.03836 |
| Opus 5.5 | $0.00027 | $0.01534 |
| Sonnet 5.5 | $0.00013 | $0.00767 |
| Haiku 4.5 | $0.00007 | $0.00384 |
Grade C, and why
akg-review scanned grade C with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Recursive force deletehighDestructive command
rm -rf with a variable or a broad path is one typo away from removing the wrong tree.
rm -rf "$REVIEW_TMP_DIR" How it starts
The opening of the file, as written. The whole thing — 422 lines — stays where its author put it; the contents beside it link to each section on GitHub.
AKG Review - 提交前代码自审
⛔ 核心规则
- 所有产物写入
$AKG_AGENTS_DIR/.tmp/review/。 - 优先使用现成工具:
ruff(代码规范)、git(rebase 检查)。 - 自定义检查仅覆盖项目特定规则(危险函数、包名、SPEC.md)。
- 不执行任何修改,只检查和报告。
依赖检查(自动):
ruff- 如未安装,自动执行pip install ruffgit- 系统自带
流程
Step 0: 依赖检查(自动安装)
for tool in ruff bandit; do
if ! command -v $tool &> /dev/null; then
echo "$tool 未安装,正在安装..."
pip install $tool -q
fi
done
MYPY_AVAILABLE=$(command -v mypy &> /dev/null && echo "yes" || echo "no")
VULTURE_AVAILABLE=$(command -v vulture &> /dev/null && echo "yes" || echo "no")
REVIEW_TMP_DIR=$(mktemp -d "${TMPDIR:-/tmp}/akg_review_XXXXXX")
Step 1: 确定目标分支(需用户确认)
缓存文件:$AKG_AGENTS_DIR/.tmp/review_last.txt,记录上次确认过的参数。
CURRENT_BRANCH=$(git rev-parse --abbrev-ref HEAD)
TARGET_BRANCH=${ARGUMENTS:-}
REVIEW_CACHE="$AKG_AGENTS_DIR/.tmp/review_last.txt"
确定 TARGET_BRANCH 的优先级(依次尝试,取第一个有效值):
- 用户本次指定的参数(
$ARGUMENTS) - 缓存文件中记录的上次值(
$REVIEW_CACHE) - 自动探测远程分支
# 如果用户未指定,尝试读缓存
if [ -z "$TARGET_BRANCH" ] && [ -f "$REVIEW_CACHE" ]; then
CACHED_TARGET=$(grep '^target_branch=' "$REVIEW_CACHE" | cut -d= -f2)
if [ -n "$CACHED_TARGET" ] && git rev-parse --verify "$CACHED_TARGET" &>/dev/null; then
TARGET_BRANCH="$CACHED_TARGET"
fi
fi
# 如果仍为空,自动探测
if [ -z "$TARGET_BRANCH" ]; then
for candidate in origin/br_agents $(git branch -r | grep '/br_agents$' | head -1 | tr -d ' '); do
if git rev-parse --verify "$candidate" &>/dev/null; then
TARGET_BRANCH="$candidate"
break
fi
done
fi
必须向用户展示以下信息并等待确认后才能继续:
📋 审查参数确认
- 当前分支:
$CURRENT_BRANCH- 目标分支:
$TARGET_BRANCH(来源:用户指定 / 上次缓存 / 自动探测)- 变更文件数:
git diff $TARGET_BRANCH...HEAD --name-only --relative | wc -l- 变更 .py 文件数:
git diff $TARGET_BRANCH...HEAD --name-only --diff-filter=ACMR --relative | grep '\.py$' | wc -l确认以上信息正确?(y/n),或指定其他目标分支。
What ships with it
4 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 3mo ago First seen · 422 lines · 67 tokens per session scan C 7fce94a811bf
akg-review is a skill published in the GitHub repository mindspore-ai/akg (269 stars, last pushed yesterday), licensed Apache-2.0. It adds 67 tokens to every session and 3,836 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it C with 1 finding (recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
akg-review compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| akg-reviewmindspore-ai/akg | Skill | 269 | yesterday | Apache-2.0 | C | 67 | Claude Code, OpenCode |
| autoreviewopenclaw/clawhub | Skill | 9.6k | yesterday | MIT | A | 17 | Claude Code, Codex |
| omh-code-reviewrlaope/oh-my-hermes | Skill | 6.4k | today | MIT | A | 18 | Claude Code |
| agent-teams-simplify-and-hardenLeoYeAI/openclaw-master-skills | Skill | 2.2k | 2d ago | MIT | A | 115 | Claude Code, Codex |
| asplos-writing-stylebrycewang-stanford/Awesome-Journal-Skills | Skill | 1.5k | 4d ago | MIT | A | 65 | Claude Code |
| revdiff-planumputun/revdiff | Skill | 978 | yesterday | MIT | A | 84 | Claude Code |
| re0-mergeLilMGenius/paperthin | Skill | 1.5k | yesterday | MIT | A | 51 | Claude Code, Codex |