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.
git clone --depth 1 https://github.com/TestAny-io/testany-agent-skillsWrote 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/commands/testany-io/testany-agent-skills/import-git)<a href="https://agentmods.dev/commands/testany-io/testany-agent-skills/import-git"><img src="https://agentmods.dev/badge/commands/testany-io/testany-agent-skills/import-git/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/commands/testany-io/testany-agent-skills/import-git"><img src="https://agentmods.dev/badge/commands/testany-io/testany-agent-skills/import-git.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.00030 | $0.00776 |
| Opus 5.5 | $0.00012 | $0.00310 |
| Sonnet 5.5 | $0.00006 | $0.00155 |
| Haiku 4.5 | $0.00003 | $0.00078 |
Grade A, and why
import-git scanned grade A with 0 findings 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 1mo 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.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
What it actually says
Testany V2 Git Import
驱动 Testany /api/v2/case/importHistory 全生命周期。不处理 v1 导入(v1 依赖界面交互,不在本 command 范围)。
使用方式
$ARGUMENTS
核心动作
- 连接 Git 平台:GitHub / GitLab 的 OAuth 连接管理(initiate 返回
authorize_url,由用户浏览器完成) - 浏览仓库:列仓库 / 分支 / commit、浏览目录、预览文件
- 创建导入:managed(后端镜像) / sync_link(用户显式选文件)两种模式
- 同步 / 切换:sync/switch 先 preview,relation 先取得候选 snapshot;按真实差异及授权决定是否提交
- 同步记录:列表与 per-file 详情
- Webhook:启用 / 关闭 / 轮换 secret / 查看平台侧配置步骤
示例
/import-git 帮我连一下 GitHub
/import-git 在 owner/repo 上建一个 managed 导入,跟 main 分支
/import-git 这个导入现在有啥要 sync 的?
/import-git 切到 commit abc123 并确认
/import-git 查最近一次 sync 出啥错了
/import-git 把 A1B2-... 这个导入的 webhook 开起来
/import-git 轮换一下 webhook secret
重要边界
- OAuth 必须浏览器完成:agent 只能给出
authorize_url,完成授权需用户在浏览器操作(frontend_return_uri必填) - webhook_secret 只显示一次:首次启用 / regenerate 后必须立刻保存并在 Git 平台同步更新
- current-phase 约束:
confirm_git_sync仅 managed_import 可用;sync_link 的 binding 演化统一走 addFiles / sourceDeleted 关系流(managed_import 也支持这两条路径) - switchMode 只动 sync_mode:把
pinned_commit → latest;不是 managed_import ↔ sync_link 的切换 - idempotency_key 自动生成:不要手动传 UUID,除非跨多次调用显式去重
- confirm 不等于人类批准:按 同步授权决策表 处理;授权内差异不重复问,意外删除/扩大集合/版本漂移须停对应动作
- 不能假锁定快照:managed confirm 不支持用 file_selections 筛选或自造 snapshot 参数;提交后核对实际 commit 和逐项结果,部分失败不得说全部完成
MCP Schema 资源
读 testany://schema/import-git 了解全量类型、枚举、典型流程和工具归类。
与其它 command 的关系
- 导入产生的仍是 platform cases;若要真正执行还需
/pipeline组装 +/trigger配执行入口 - 如需手工构建脚本包(而非从 Git 导入),用
/case-writing+/case
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.
- 1mo ago Changed · +2 lines f01e1e1531e4
- 1mo ago First seen · 51 lines · 30 tokens per session scan A 69db9547cef4
import-git is a command published in the GitHub repository TestAny-io/testany-agent-skills (82 stars, last pushed yesterday), licensed MIT. It adds 30 tokens to every session and 776 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other commands, from other repositories
merge-conflict-analysis
You are analyzing merge conflicts for PR #${{ pr-number }}.
release-notes
Generate consistent, well-structured release notes from git history. Triggered on release tags following semver patterns (v..) to produce categorized changelog with breaking changes, features, fixes, and contributor attribution.
commit
A command that examines staged Git changes and proposes a commit message using the Conventional Commits format, such as feat, fix, or docs. Git is a tool for tracking changes to code.
repo-audit
Audit a codebase (local or remote GitHub/GitLab) against architecture principles and requirements, surfacing drift, risk, and missing decisions.
pr
Handle the full workflow from current branch state to an open, CI-monitored pull request.
release-plan
A release-planning command for a software change. It documents the release scope, rollback plan, gradual or full rollout, and monitoring before waiting for human approval.