Chuyển đến nội dung
Skillpedia
Kiểm thử48k · #6191

wjttc-builder

Skill này làm gì

Agent này tạo các kế hoạch kiểm thử chi tiết để xác minh chất lượng mã của bạn. Nó phân tích dự án và tạo các bài kiểm thử đảm bảo mọi thứ hoạt động hoàn hảo, như trong các cuộc thi đẳng cấp cao.

Khi nào nên dùng

  • ✓Trước khi bạn bắt đầu viết mã.
  • ✓Khi bạn muốn đảm bảo mã của mình đạt chất lượng tốt nhất có thể.
  • ✓Để tìm và sửa lỗi trước khi chúng gây ra vấn đề.

Liên kết skill

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

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/wjttc-builder/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Tạo một kế hoạch kiểm thử cho đoạn mã Python này tính trung bình cộng.”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Trước tiên, nó hiểu dự án làm gì và sau đó xác định tiêu chí thành công (các bài kiểm thử). Chỉ sau đó mã mới được viết để đáp ứng các tiêu chí này, đảm bảo chất lượng ngay từ đầu.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

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

…

Câu hỏi thường gặp

WJTTC là gì?

Đó là phương pháp kiểm thử lấy cảm hứng từ đua xe F1, tập trung vào việc tạo ra mã đáng tin cậy và chất lượng cao nhất có thể.

‘GOLD Code’ nghĩa là gì?

Là mã đã vượt qua mọi cấp độ kiểm thử, bao gồm các bài kiểm thử chuyên gia, và đáp ứng tiêu chuẩn chất lượng và độ tin cậy cao nhất.

Vì sao kiểm thử trước khi viết mã?

Việc định nghĩa bài kiểm thử trước (như tiêu chí thành công) đảm bảo bạn biết chính xác cần xây dựng gì và tránh làm lại, từ đó nâng cao chất lượng tổng thể.

Chi tiết

Mô tả gốc của tác giả

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

Độ phổ biến

Sao GitHub
48k
Vị trí xếp hạng
#6191
Giấy phép
MIT
Cập nhật
15/10/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự