Feature Test — Testing skill for Claude Code
AI 接口级测试 skill:开发者写完功能,AI 完成接口测试并出报告——用例设计/执行/证据分级报告/机器可重放回归,面向 Spring Cloud 微服务,零依赖 Node runner.
How to install Feature Test
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open 921-Jared/feature-test and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Feature Test does
AI 接口级测试 skill:开发者写完功能,AI 完成接口测试并出报告——用例设计/执行/证据分级报告/机器可重放回归,面向 Spring Cloud 微服务,零依赖 Node runner.
Alternatives in Testing
- Test Runner — Run Python tests with pytest, unittest, or other testing frameworks 23.4k ★
- Test Repl — Run a REPL test scenario against the claude-in-mobile REPL plugin (python/node/bash/...) 356 ★
- Production Grade — Production Grade — route any build, feature, review, test, harden, ship, or docs request through the 14-agent 175 ★
README
feature-test
AI 接口级测试 skill:开发者写完一个新功能,AI 完成接口级测试并出报告——用例设计(三档)→ 执行(三探+断言纪律)→ 证据分级报告 → 机器可重放回归 → 前端对接导入件。
适用于 Claude Code 类 AI 编程助手的 skill 机制(放 `/feature-test/`),面向 RuoYi 系 Spring Cloud 微服务项目(示例领域:充电桩管理系统)。
这是什么
- SKILL.md:入口。定位、5 步核心流程、断言三件套、证据四级标注、红灯清单(≤100 行,按流程走时全读)
- patterns/:场景配方库,按需加载。每文件头注明适用语境 + 实证状态
- RUN-CASES.md + run-cases.js:机器可重放回归 runner(node,自包含)
- test/:离线自测 mock 系统(mock-server.js + mock.cases.json),不依赖任何真实服务即可验证 runner 本身
安装
- 复制整个目录到 skills 安装路径(如
~/.claude/skills/feature-test/) - 无构建、无依赖(仅 node;测试执行还需 curl)
- 自测:
node test/mock-server.js &起本地 mock,按 RUN-CASES.md 跑 mock.cases.json,期望 7 PASS / 4 FAIL(4 条是故意设计的应 FAIL 用例)/ 0 ERR
仓库自检(改动本仓代码时)
CI 是 GitHub Actions 格式,仓托管在 gitee 时不会自动跑——本地等价把关:
node verify.js:一条命令过四道检查(mock 基线/边界自测/玩具重放/敏感词双扫描),判据从 ci.yml 提取,单一来源不漂移- push 前自动拦截:
git config core.hooksPath githooks启用 pre-push 钩子(仓级配置,只影响本仓) - 敏感词扫描含 git 全历史:任何历史改写后必须重跑
使用
对 AI 说「测一下 xx / 帮忙测 xx 接口 / 回归 xx / 出 Apifox 件」即可触发;完整流程见 [SKILL.md](SKILL.md)。新项目首次接入按 [ONBOARDING.md](ONBOARDING.md) 五步走。
适用边界(诚实声明)
本 skill 的全部配方**仅在单一项目(一个充电桩微服务项目+本地 mock 系统)上实证过**,不是通用已验证结论:
- 各 patterns 文件头的「实证状态」逐条标注了实证程度(实测/源码推导/部分实证/未实证),换项目首用须按文内判据复测
- 项目相关数值(缺省 pageSize、reasonable 默认、TokenSupport 行号等)是对被测项目及其依赖版本(pagehelper 5.3.2 等)的实测,不保证你的项目同形
- 使用本 skill 时,AI 只允许向 localhost 与你指定的测试网关发请求;数据库操作一律出 SQL 交人执行;生产环境永远不碰(详见 SKILL.md 红灯清单)
安全剥离说明
本仓库为可发布版,由内部全量版剥离而来:真实网关地址、本机路径、类名+行号锚点、测试数据指纹等敏感值已替换为占位符——
| 占位符 | 含义 | 实值来源 |
|---|---|---|
<被测网关地址> |
测试网关 host:port | 你的项目档案/用例库 envs.gateway |
<项目用例库> |
cases/ 与 reports/ 的根目录 | 自定,如独立测试平台目录 |
|
本 skill 安装路径 | 安装时确定 |
<功能id>//<单号形态> |
测试数据指纹 | 各项目实测时回填 |
<日期> |
报告/回归报告文件名中的日期段 | 落盘当天(YYYY-MM-DD) |
{GW} |
网关基址占位(SKILL.md 正文) | 同 <被测网关地址> |
被剥离的完整指纹存于维护方本地全量版档案(不入本仓库)。
目录结构
feature-test/
├── SKILL.md
Related Skills
Snout Code
A native IDE for Java, Gradle and Spring Boot, TypeScript on Node and Playwright tests, written in Rust, with
Spec Bridge Community
Official Community Hub, Feature Roadmap & IDE Agent Starter Rules (Cursor, Claude Code, Copilot, Rovo) for Spe
Spec Runner
Agent skill and CLI that runs a bounded task feature by feature: a features.json queue kept outside the reposi
Content Store
Scaffold a custom Alfresco ContentStore connector (extending AbstractContentStore, optionally wrapping a cachi
Metadata Extractor
Scaffold a custom Alfresco metadata extractor/embedder (extending AbstractMappingMetadataExtracter) with a pro
Contract Test Agent
AI agent (Claude Agent SDK) that writes and runs Specmatic consumer contract tests for Java Spring services, u
Related Agents
Section Builder
Builds one page section from a Figma node into this starter's conventions — tokens, spring motion, semantic ma
Java Architect
Senior Java architect specializing in enterprise-grade applications, Spring ecosystem, and cloud-native develo
Bench Runner
Executes a11y skill benchmarks across hosted and local model families. Runs cloud/Codex/Ollama benchmark scrip