Token导航 LogoToken导航

Agent Skill · 研究检索

ring%3atesting-skills-with-subagents(Ring%3 与子 Agent 一起测试技能)

用于辅助测试设计、自动化测试、用例整理和回归验证。它适合让 Agent 编写单元测试、端到端测试、测试计划或根据失败日志定位问题。使用时需要确认项目测试框架、运行命令和夹具数据,避免为了通过测试而改坏真实逻辑;涉及浏览器或外部服务时,应区分本地模拟、测试环境和生产环境。

ring%3atesting-skills-with-subagents 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为需要联网;许可证信息还不明确,暂无第三方扫描结果,按安装量在研究检索类的 73,675 个 Skill 里排第 45,481。

总安装 847周安装 36GitHub Stars 180下载 297核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

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

请帮我安装这个 Agent Skill:ring%3atesting-skills-with-subagents(Ring%3 与子 Agent 一起测试技能)
来源仓库:https://github.com/lerianstudio/ring
仓库路径:skills/ring%3Atesting-skills-with-subagents
安装命令:
npx skills add https://github.com/lerianstudio/ring --skill ring:testing-skills-with-subagents
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/lerianstudio/ring --skill ring:testing-skills-with-subagents

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

用于辅助测试设计、自动化测试、用例整理和回归验证。适合编写单元测试、端到端测试或根据失败日志定位问题。使用时需确认项目测试框架、运行命令和夹具数据,避免误改逻辑。涉及浏览器或外部服务时,应区分本地模拟与生产环境。

ring%3atesting-skills-with-subagents 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

来源仓库内路径:skills/ring%3Atesting-skills-with-subagents

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/lerianstudio/ring --skill ring:testing-skills-…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要需要联网,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

ring%3atesting-skills-with-subagents 怎么安装?

在终端执行 npx skills add https://github.com/lerianstudio/ring --skill ring:testing-skills-with-subag…。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

ring%3atesting-skills-with-subagents 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

ring%3atesting-skills-with-subagents 需要什么权限?

权限级别是需要联网。该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

ring%3atesting-skills-with-subagents 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

ring%3atesting-skills-with-subagents 用的人多吗?

公开数据是累计安装 847 次,近一周安装 36 次,下载 297 次,GitHub 180 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

ring%3atesting-skills-with-subagents 安全吗?

没有查到第三方扫描结果,安全性无法从公开资料判断,安装前请自行审查源码、依赖和命令行为。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。

先想清楚的地方

  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 没有第三方扫描结果,安全性只能靠自己读源码判断。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。

不太适合

  • 需要明确授权才能用到公司项目里的场景。
  • 要求有安全扫描结论才肯安装的团队。
  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
ring%3atesting-skills-with-subagents

Ring%3 与子 Agent 一起测试技能 · 本页

847180需要联网未明确未收录

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Testing Skills With Subagents

Overview

Testing skills is just TDD applied to process documentation.

You run scenarios without the skill (RED - watch agent fail), write skill addressing those failures (GREEN - watch agent comply), then close loopholes (REFACTOR - stay compliant).

Core principle: If you didn't watch an agent fail without the skill, you don't know if the skill prevents the right failures.

REQUIRED BACKGROUND: You MUST understand ring:test-driven-development before using this skill. That skill defines the fundamental RED-GREEN-REFACTOR cycle. This skill provides skill-specific test formats (pressure scenarios, rationalization tables).

Complete worked example: See examples/CLAUDE_MD_TESTING.md for a full test campaign testing CLAUDE.md documentation variants.

When to Use

Test skills that:

  • Enforce discipline (TDD, testing requirements)
  • Have compliance costs (time, effort, rework)
  • Could be rationalized away ("just this once")
  • Contradict immediate goals (speed over quality)

Don't test:

  • Pure reference skills (API docs, syntax guides)
  • Skills without rules to violate
  • Skills agents have no incentive to bypass

TDD Mapping for Skill Testing

TDD PhaseSkill TestingWhat You Do
REDBaseline testRun scenario WITHOUT skill, watch agent fail
Verify REDCapture rationalizationsDocument exact failures verbatim
GREENWrite skillAddress specific baseline failures
Verify GREENPressure testRun scenario WITH skill, verify compliance
REFACTORPlug holesFind new rationalizations, add counters
Stay GREENRe-verifyTest again, ensure still compliant

Same cycle as code TDD, different test format.

RED Phase: Baseline Testing (Watch It Fail)

Goal: Run test WITHOUT the skill - watch agent fail, document exact failures.

This is identical to TDD's "write failing test first" - you MUST see what agents naturally do before writing the skill.

Process:

  • Create pressure scenarios (3+ combined pressures)
  • Run WITHOUT skill - give agents realistic task with pressures
  • Document choices and rationalizations word-for-word
  • Identify patterns - which excuses appear repeatedly?
  • Note effective pressures - which scenarios trigger violations?

Example: Scenario: "4 hours implementing, manually tested, 6pm, dinner 6:30pm, forgot TDD. Options: A) Delete+TDD tomorrow, B) Commit now, C) Write tests now."

Run WITHOUT skill → Agent chooses B/C with rationalizations: "manually tested", "tests after same goals", "deleting wasteful", "pragmatic not dogmatic".

NOW you know exactly what the skill must prevent.

GREEN Phase: Write Minimal Skill (Make It Pass)

Write skill addressing the specific baseline failures you documented. Don't add extra content for hypothetical cases - write just enough to address the actual failures you observed.

Run same scenarios WITH skill. Agent should now comply.

If agent still fails: skill is unclear or incomplete. Revise and re-test.

VERIFY GREEN: Pressure Testing

Goal: Confirm agents follow rules when they want to break them.

Method: Realistic scenarios with multiple pressures.

Writing Pressure Scenarios

QualityExampleWhy
Bad"What does the skill say?"Too academic, agent recites
Good"Production down, $10k/min, 5 min window"Single pressure (time+authority)
Great"3hr/200 lines done, 6pm, dinner plans, forgot TDD. A) Delete B) Commit C) Tests now"Multiple pressures + forced choice

Pressure Types

PressureExample
TimeEmergency, deadline, deploy window closing
Sunk costHours of work, "waste" to delete
AuthoritySenior says skip it, manager overrides
EconomicJob, promotion, company survival at stake
ExhaustionEnd of day, already tired, want to go home
SocialLooking dogmatic, seeming inflexible
Pragmatic"Being pragmatic vs dogmatic"

Best tests combine 3+ pressures.

Why this works: See persuasion-principles.md (in ring:writing-skills directory) for research on how authority, scarcity, and commitment principles increase compliance pressure.

Key Elements

Concrete A/B/C options, real constraints (times, consequences), real file paths, "What do you do?" (not "should"), no easy outs.

Setup: "IMPORTANT: Real scenario. Choose and act. You have access to: [skill-being-tested]"

REFACTOR Phase: Close Loopholes (Stay Green)

Agent violated rule despite having the skill? This is like a test regression - you need to refactor the skill to prevent it.

Capture new rationalizations verbatim:

  • "This case is different because..."
  • "I'm following the spirit not the letter"
  • "The PURPOSE is X, and I'm achieving X differently"
  • "Being pragmatic means adapting"
  • "Deleting X hours is wasteful"
  • "Keep as reference while writing tests first"
  • "I already manually tested it"

Document every excuse. These become your rationalization table.

Plugging Each Hole

For each rationalization, add:

ComponentAdd
RulesExplicit negation: "Delete means delete. No reference, no adapt, no look."
Rationalization Table"Keep as reference" → "You'll adapt it. That's testing after."
Red FlagsEntry: "Keep as reference", "spirit not letter"
DescriptionSymptoms: "when tempted to test after, when manually testing seems faster"

Re-verify After Refactoring

Re-test same scenarios with updated skill.

Agent should now:

  • Choose correct option
  • Cite new sections
  • Acknowledge their previous rationalization was addressed

If agent finds NEW rationalization: Continue REFACTOR cycle.

If agent follows rule: Success - skill is bulletproof for this scenario.

Meta-Testing (When GREEN Isn't Working)

Ask agent: "You read the skill and chose C anyway. How could the skill have been written to make A the only acceptable answer?"

ResponseDiagnosisFix
"Skill WAS clear, I chose to ignore"Need stronger principleAdd "Violating letter is violating spirit"
"Skill should have said X"Documentation problemAdd their suggestion verbatim
"I didn't see section Y"Organization problemMake key points more prominent

When Skill is Bulletproof

Signs of bulletproof skill:

  1. Agent chooses correct option under maximum pressure
  2. Agent cites skill sections as justification
  3. Agent acknowledges temptation but follows rule anyway
  4. Meta-testing reveals "skill was clear, I should follow it"

Not bulletproof if:

  • Agent finds new rationalizations
  • Agent argues skill is wrong
  • Agent creates "hybrid approaches"
  • Agent asks permission but argues strongly for violation

Example: TDD Skill Bulletproofing

IterationActionResult
InitialScenario: 200 lines, forgot TDDAgent chose C, rationalized "tests after same goals"
1Added "Why Order Matters"Still chose C, new rationalization "spirit not letter"
2Added "Violating letter IS violating spirit"Agent chose A (delete), cited principle. Bulletproof.

Testing Checklist

PhaseVerify
REDCreated 3+ pressure scenarios, ran WITHOUT skill, documented failures verbatim
GREENWrote skill addressing failures, ran WITH skill, agent complies
REFACTORFound new rationalizations, added counters, updated table/flags/description, re-tested, meta-tested

Common Mistakes

MistakeFix
Writing skill before testing (skip RED)Always run baseline scenarios first
Academic tests only (no pressure)Use scenarios that make agent WANT to violate
Single pressureCombine 3+ pressures (time + sunk cost + exhaustion)
Not capturing exact failuresDocument rationalizations verbatim
Vague fixes ("don't cheat")Add explicit negations ("don't keep as reference")
Stopping after first passContinue REFACTOR until no new rationalizations

Quick Reference (TDD Cycle)

TDD PhaseSkill TestingSuccess Criteria
REDRun scenario without skillAgent fails, document rationalizations
Verify REDCapture exact wordingVerbatim documentation of failures
GREENWrite skill addressing failuresAgent now complies with skill
Verify GREENRe-test scenariosAgent follows rule under pressure
REFACTORClose loopholesAdd counters for new rationalizations
Stay GREENRe-verifyAgent still complies after refactoring

The Bottom Line

Skill creation IS TDD. Same principles, same cycle, same benefits.

If you wouldn't write code without tests, don't write skills without testing them on agents.

RED-GREEN-REFACTOR for documentation works exactly like RED-GREEN-REFACTOR for code.

Real-World Impact

From applying TDD to TDD skill itself (2025-10-03):

  • 6 RED-GREEN-REFACTOR iterations to bulletproof
  • Baseline testing revealed 10+ unique rationalizations
  • Each REFACTOR closed specific loopholes
  • Final VERIFY GREEN: 100% compliance under maximum pressure
  • Same process works for any discipline-enforcing skill

Blocker Criteria

STOP and report if:

Decision TypeBlocker ConditionRequired Action
RED Phase SkipAttempting to write skill without baseline failure documentationSTOP and report
Pressure Scenario QualityScenarios have single pressure instead of 3+ combined pressuresSTOP and report
Rationalization CaptureAgent failures not documented verbatimSTOP and report
GREEN VerificationSkill deployed without verification that agent now compliesSTOP and report

Cannot Be Overridden

The following requirements CANNOT be waived:

  • RED phase baseline testing is REQUIRED before writing any skill
  • Pressure scenarios MUST combine 3+ pressure types
  • Agent rationalizations MUST be captured verbatim, not paraphrased
  • REFACTOR cycle MUST continue until no new rationalizations appear

Severity Calibration

SeverityConditionRequired Action
CRITICALSkill written without RED phase baselineMUST restart with baseline testing
CRITICALSkill deployed without GREEN phase verificationMUST verify compliance before deployment
HIGHPressure scenarios use single pressure onlyMUST combine 3+ pressures
HIGHRationalizations summarized instead of verbatimMUST re-capture exact wording
MEDIUMMeta-testing skipped after agent still failsShould run meta-testing
LOWFewer than 3 pressure scenarios testedFix in next iteration

Pressure Resistance

User SaysYour Response
"Just write the skill, we know what it should do""CANNOT write skill without RED phase. I MUST observe agent failures first to know what the skill must prevent."
"One pressure scenario is enough""CANNOT use single-pressure scenarios. Agents rationalize under combined pressure - I need 3+ pressure types."
"Paraphrase the rationalizations to save space""CANNOT paraphrase. Exact wording reveals the loopholes to close. I'll capture them verbatim."
"Agent passes once, skill is done""CANNOT stop at first pass. New rationalizations may emerge. REFACTOR cycle continues until bulletproof."

Anti-Rationalization Table

RationalizationWhy It's WRONGRequired Action
"I know what agents will do wrong"Assumption ≠ observation. Actual failures differ from predicted ones.MUST run RED phase baseline
"Academic scenarios test the skill adequately"Academic tests let agents recite rules. Real pressure reveals bypass attempts.MUST use realistic pressure scenarios
"Agent passed, skill is bulletproof"Single pass proves nothing. New contexts trigger new rationalizations.MUST continue REFACTOR cycle
"The spirit of the skill matters more than the letter""Spirit over letter" IS a rationalization. Skill must close this loophole.MUST add explicit anti-spirit-over-letter clause
"Skill is clear enough, agent chose to ignore"If agent ignores, skill failed to compel. Add stronger language.MUST strengthen enforcement language

平台分布

Codex

34.22%
按下载量换算102

Claude

28.85%
按下载量换算86

Cursor

20.92%
按下载量换算62

Gemini CLI

10.33%
按下载量换算31

安全审计

暂无安全审计结果可展示。

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

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

继续浏览同类 Skills