agent-harness-testing SKILL.md skillA
agent-harness-testing from huiliyi37/tianshu-harness is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.
mdr add huiliyi37/tianshu-harness/agent-harness-testing@git:20260917.bf456dbPins git:20260917.bf456db in mdr.lock. Pin the fingerprint instead.
- Audit grade
- A, 17 of 17 checks passed
- Kind
- SKILL.md skill
- Repository
- huiliyi37/tianshu-harness
- Path
docs/skills/optional/agent-harness-testing/SKILL.md- Versions recorded
- 1
- Latest version
- git:20260917.bf456db, committed Sep 17, 2026
- Size
- 7,144 bytes
- Repository stars
- 1,254
- License
- Apache-2.0
在任意项目中执行开发任务时的测试方法论——包括测试能力探测、RED→GREEN 纪律、探针管理、环境模拟、测试策略选择。当面对 bugfix、功能开发、重构等需要验证的代码改动时使用。.
Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.
What the file says
# Agent Harness Testing — 通用项目测试方法论 你在别人的项目中工作。你不知道他们的测试框架、不知道他们的构建系统、不知道他们的 CI。但你必须验证你的改动是正确且安全的——不能跳过测试、不能编造结果、不能假设一切正常。 > 总则(先复现再修复、先红灯再绿灯、结果必须来自真实执行、探针必须清理)已由运行时强制: > 证据义务状态机跟踪 RED→GREEN、编辑门拦截无复现的源码修改、探针追踪扫描残留、 > 交付门禁核验验证证据。本 Skill 是**操作手册**——怎么探测测试能力、怎么构造红灯、 > 怎么模拟环境,不再复述总则。 --- ## Stage 1: 探测测试能力 进入陌生项目的第一件事——不是改代码,是了解怎么验证。 ### 1.1 运行 inspect_project 这会返回项目摘要:语言、包管理器、scripts、入口文件、测试框架提示。先用它建立全局认知。 ### 1.2 读项目配置文件 根据语言读对应配置: | 语言 | 读什么 | 找什么 | |------|--------|--------| | Node/TS | `package.json` | `scripts.test`, `scripts.typecheck`, `scripts.lint`, `devDependencies` 中的 vitest/jest/mocha | | Python | `pyproject.toml` / `setup.cfg` | `[tool.pytest]`, `[tool.mypy]`, `[tool.ruff]` | | Go | `go.mod` + 项目根 `*_test.go` | 测试文件存在即表示 `go test ./...` 可用 | | Rust | `Cargo.toml` | `[dev-dependencies]` 中的 test 相关 crate | ### 1.3 列出测试文件 ```bash # Node ls **/*.test.ts **/*.spec.ts **/__tests__/*.ts 2>/dev/null # Python ls **/test_*.py **/*_test.py 2>/dev/null # Go ls **/*_test.go 2>/dev/null # Rust ls tests/ 2>/dev/null ``` ### 1.4 试跑一条测试命令 ```bash # Node 常见 npx vitest --run 2>&1 | head -5 npx jest --passWithNoTests 2>&1 | head -5 # Python …
Read the whole file at its exact version.
How to install
mdr add huiliyi37/tianshu-harness/agent-harness-testing@sha256:d7648148c288c4bfThe line at the top of this page pins the label git:20260917.bf456db, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.
[](https://markdownregistry.com/a/art_syd6zgpcx7pk4irs)
3 badge image fetches in 30 days. What the badge shows.
Versions
The registry has recorded 1 version of this file, committed on Sep 17, 2026.
Audit of the latest version
- pass: Frontmatter block present
- pass: Frontmatter declares a name
- pass: Frontmatter declares a description
- pass: Size between 200 bytes and 200 KB (7144 bytes)
- pass: No zero-width or bidi control characters
- pass: No instruction hidden inside an HTML comment
- pass: No link to an exfiltration or paste host
- pass: No credential-shaped string
- pass: No instruction to send local credentials anywhere
- pass: No text hidden with inline styles
- pass: No prompt-injection phrasing
- pass: No curl or wget piped into a shell
- pass: No recursive delete of root, home or parent
- pass: No instruction to read or print local credentials
- pass: No base64 blob over 200 characters
- pass: No link to a raw IP address
- pass: No script tag
Source
huiliyi37/tianshu-harness · 1,254 stars · license Apache-2.0 · pushed 2026-10-31 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_syd6zgpcx7pk4irs GET https://markdownregistry.com/api/v1/resolve?ref=huiliyi37/tianshu-harness/agent-harness-testing GET https://markdownregistry.com/api/v1/blob/d7648148c288c4bff527c871eee68d807aad95a7b1a9c78414af40d9d7d68cf0
Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.
Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.