smithery.ai

test-pyramid-advisor

分析unit/integration/e2e测试分?

First seen Apr 22, 2026

Installation

$ npx skills add https://smithery.ai

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from smithery.ai · top by installs.

npx skills add https://smithery.ai

Browse all from smithery.ai

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 1,959 B
  • docs SUMMARY.md 186 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 1 installs

SKILL.md

test-pyramid-advisor: 测试金字塔建议

描述

分析unit/integration/e2e测试的当前分配比例,对标CRAFT标准建议调整,确保测试金字塔比例合理。

适用场景

  • WORKFLOWSTEP5 Task S5-2: 创建 AICTXT(如 aictxt.md)和 test_suites.md 时
  • WORKFLOWSTEP5 Task S5-3: Self-Reflection分析测试粒度时
  • WORKFLOWSTEP5 Task S5-5: CONSTRAINT验收前的结构检查

输入

  • AICTXT artifact host file(如 aictxt.md,包含测试策略与质量门禁口径)
  • test_suites.md(测试套件组织)
  • scenarios/bddtestscenarios.md(所有测试场景)
  • 当前级别(L1/L2/L3)

输出

  • 测试金字塔分析报告(markdown)
  • 当前分配比例(如"unit:55%, integration:30%, e2e:15%")
  • 对标标准比例:L1(60/30/10), L2(70/20/10), L3(70/20/10)
  • 失衡诊断和调整建议
  • 关键路径建议(哪些SC应作为unit/integration/e2e)

执行策略

  1. 从test_suites.md提取各层级测试计数

- Unit tests: 基础单元测试数量 - Integration tests: 模块间集成测试数量 - E2E tests: 端到端业务流测试数量

  1. 计算当前分配比例
  2. 对标CRAFT标准(L1/L2/L3各不同)
  3. 分析失衡原因
  4. 根据SC优先级建议重新分配
  5. 生成调整方案

价值

  • SPEC组织: 确保测试金字塔比例合理,优化测试成本
  • PM: 理解测试投入分配,评估测试时间
  • Dev: 清晰的各层级测试策略,提升TDD效率

验收标准(CRAFT标准)

级别 Unit Integration E2E
L1 60% 30% 10%
L2 70% 20% 10%
L3 70% 20% 10%