跳到正文
Skillpedia
测试48k · #6191

wjttc-builder

它能做什么

这个代理会制定详细的测试计划,用来验证你代码的质量。它会分析你的项目,并生成测试,确保一切运行完美,就像高水平赛事那样严格。

适用场景

  • ✓在开始编写代码之前。
  • ✓当你希望代码尽可能做到最好时。
  • ✓在问题造成麻烦之前,找出并修复漏洞。

技能链接

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/wjttc-builder/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/wjttc-builder/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“为这段计算平均值的 Python 代码制定一个测试计划。”

每周 5 个新技能,1 分钟读完。

工作原理

它会先理解你的项目是做什么的,然后定义成功标准(即测试)。只有这样,才会编写代码以满足这些标准,从一开始就保证质量。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

WJTTC Builder - Championship Test Suite Generator

Philosophy: "We break things so others never have to know they were broken."

This skill generates F1-inspired test suites following the WJTTC (Wolfe James Tests The Code) methodology.

GOALS

Goal How
Pre-defined Test plan before code → improves code quality
Inline Testing Tests/approves at write time → catches bugs at inception
Layer 1 → Layer 2 Industry + Expert = GOLD Code
AI Optimized 100% bi-sync with project.faf
Best Code Possible ✪ Championship standard

GOLD Code ✨

Code earns GOLD status when:

┌────────────────────────────────────────┐
│         ✪ GOLD CODE ✨                │
│  ════════════════════════════════════  │
│  ✓ Pre-test plan defined               │
│  ✓ Inline testing at write time        │
│  ✓ Layer 1: 100% industry coverage     │
│  ✓ Layer 2: WJTTC expert edge cases    │
│  ✓ Bi-sync with project.faf            │
│  ✓ All tests passing                   │
│  ════════════════════════════════════  │
│  This code has earned its name.        │
└────────────────────────────────────────┘

Position in Development Pipeline

WJTTC comes AFTER project.faf, BEFORE coding:

1. project.faf      → Define WHAT we're building (context)
2. WJTTC-TESTS.md   → Define SUCCESS CRITERIA (tests first)
3. Code             → Build to pass the tests
4. Test             → Pass/Fail
5. Repeat           → Until Championship grade

Test-Driven Code (TDC)

The WJTTC Cycle:

Think → Cross-check → Confirm → Code → Test → [Repeat]
  │         │           │        │       │
  │         │           │        │       └── Pass/Fail verdict
  │         │           │        └── Write implementation
  │         │           └── Green light to proceed
  │         └── STOP if missing info - get it first
  └── Understand what we're building

Cross-check Gate: STOP if missing information. Get it before proceeding.

  • Missing requirements? Ask.
  • Unclear acceptance criteria? Clarify.
  • Unknown edge cases? Define them.

Red → Green → Refactor:

  1. Write failing test (RED)
  2. Write code to pass (GREEN)
  3. Clean up (REFACTOR)

Never code without knowing what "done" looks like.

Two-Layer Testing Architecture

Layer 1: Industry Standard (100% Coverage)

Use the framework's native testing - Jest, pytest, Vitest, etc.

  • Unit tests
  • Integration tests
  • Standard assertions
  • Coverage requirements

This is the baseline. Non-negotiable.

Layer 2: WJTTC Expert (Stress + Edge Cases)

The championship layer that catches what industry tests miss:

Category What We Test
Syntax Special chars, escapes, quotes, brackets
Emoji 🏎️ in strings, filenames, variables
Typecases camelCase, snake_case, SCREAMING_CASE, mixed
Variables Empty, null, undefined, MAX_INT, negative
Unicode RTL text, combining chars, zero-width
Injection SQL, XSS, command injection attempts
Boundaries 0, 1, -1, MAX, MAX+1, empty array

Test Targets:

  • MCP servers and tools
  • CLI commands and flags
  • API endpoints and payloads
  • Engine internals
  • Infrastructure configs

We Test the Testing

Meta-testing checklist:

  • Do the tests actually run?
  • Do they fail when code is broken?
  • Do they pass when code is correct?
  • Are edge cases covered?
  • Can tests be run in isolation?
  • Do tests clean up after themselves?

Signal Integrity Audit (The Red-Means-Real Doctrine)

Before you measure coverage, measure signal trust.

Red CI is a contract: stop, look, fix. If red means "shrug, runner had a noisy neighbor, just rerun," the signal is dead — and dead signal is worse than no signal at all. A test suite with 100% coverage but flaky reds is less trustworthy than one with 80% coverage and zero false alarms, because the team has stopped reading the reds.

This is the parent doctrine. Every other testing principle serves it.

The Audit

For any test suite under review, classify the last 30 days of CI failures into three buckets:

Bucket Meaning Action
Real bug Red corresponded to an actual code defect that was fixed by a code change ✓ Signal worked
Flake Red was timing/network/concurrency noise; passed on rerun with no code change ✗ Test design defect

…

常见问题

什么是 WJTTC?

它是一种受一级方程式赛车启发的测试方法论,致力于打造尽可能可靠、高质量的代码。

“GOLD Code”是什么意思?

指通过了所有测试级别(包括专家级测试),并达到最高质量和可靠性标准的代码。

为什么要先测试再编码?

先定义测试(即成功标准),能确保你清楚地知道要构建什么,避免返工,从而整体提升质量。

详情

作者的原始描述

PLAN and GENERATE WJTTC (Championship-Grade) test suites for any project. Analyzes the codebase, classifies components across the WJTTC five tiers (Brake · Engine · Aero · Tyre · Pit), writes a tiered test plan, and scaffolds executable test files.

repo: sickn33/agentic-awesome-skills

热度

GitHub 星标
48k
排名
#6191
许可证
MIT
更新时间
2026/10/15

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能