소스 정보
- 저장소
- Wan-ZL/AptByBART
- 최근 소스 활동
- 2026년 4월 9일 07:50
- 감지된 SKILL.md 언어
- 영어
- 스타
- 0
- 포크
- 0
설치 방법
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
소스 파일 검토
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
메뉴
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
직접 명령은 검토 Prompt를 거치지 않습니다. 실행하기 전에 소스를 확인하세요.
npx skills add https://github.com/Wan-ZL/AptByBART --skill test-medium명령은 한 줄로 유지됩니다. 복사하기 전에 가로로 스크롤해 전체 내용을 확인하세요.
로컬 사본을 원하시나요? SkillsMP에서 현재 제공할 수 있는 파일을 다운로드하세요.
Quick unit + property-based test run with AI auto-fix loop
Complete test suite — unit, property, integration, e2e, mutation, and coverage audit
Lighthouse performance/SEO/a11y/best-practices optimization with AI self-loop to push all scores to 90+
SOC 직업 분류 기준
SKILL.md 표시 중
| name | test-medium |
| description | Unit + property tests verified by mutation testing with AI self-improvement loop |
| user-invocable | true |
You are running a mutation-verified testing workflow. The core idea: use StrykerJS mutation testing to ensure tests actually catch real bugs, not just pass trivially. You will iterate up to 3 rounds, improving tests each round until the mutation score reaches >= 80%.
Determine which files to test:
git diff --name-only HEAD
git diff --name-only --cached
lib/**/*.ts and app/api/**/*.ts (excluding *.test.ts, *.spec.ts, *.d.ts)."No changed files match Stryker's mutate paths (lib//*.ts, app/api//*.ts). Mutation testing only covers those directories. Running unit tests only." Then run just Step 1 and skip to Step 5.
__tests__/ or __tests__/property/ for the changed source files. Also check for co-located .test.ts / .test.tsx files.Run Vitest scoped to the relevant test files:
npx vitest run --reporter=verbose <test-file-paths>
Run StrykerJS scoped to the changed source files using the --mutate flag:
npx stryker run --mutate "{file1.ts,file2.ts}"
For a single file:
npx stryker run --mutate "lib/utils.ts"
IMPORTANT: ALWAYS scope with --mutate. Never run unscoped npx stryker run — it mutates the entire project and takes too long.
Parse the clear-text reporter output. It shows each mutant with format:
#1. [Survived] ConditionalExpression
src/file.ts:42:5
- if (x > 0) {
+ if (false) {
Extract:
If mutation score >= 80% → PASS, skip to Step 5.
If score < 80%, categorize each surviving mutant:
| Category | Examples | Priority |
|---|---|---|
| Logic/Conditional | if(x) → if(false), && → || | HIGH — these hide real bugs |
| Boundary | > → >=, < → <= | HIGH — off-by-one errors |
| Return value | return true → return false | HIGH — inverted logic |
| Arithmetic | + → -, * → / | MEDIUM |
| Equality | === → !== | MEDIUM |
| String/literal | "error" → "" | LOW |
| Removal | block/statement removed | Depends on what was removed |
Acceptable mutants (do NOT count against the score target):
console.log / console.error / console.warn statementsFor each HIGH/MEDIUM surviving mutant, determine what specific test assertion would kill it. Be precise — name the test case, the input values, and the expected output.
Based on the analysis, add or strengthen test assertions:
__tests__/property/.Rules:
expect(true).toBe(true)).@/ path alias, vi.mock() for mocking, describe/it blocks.After modifying tests, output progress:
Round X/3: targeting Y surviving mutants with Z new/modified assertions
Then go back to Step 1 (re-run baseline to confirm tests still pass, then re-run mutation).
Output a clear summary:
## Mutation Testing Results
**Status**: PASS | NEEDS ATTENTION | MAX ITERATIONS REACHED
### Mutation Score
- Before: XX% → After: YY%
- Killed: N / Total: M
- Survived: S (of which A are acceptable)
- Timed out: T
- No coverage: C
### Rounds
- Round 1: XX% → YY% (N mutants killed)
- Round 2: YY% → ZZ% (N mutants killed)
### Remaining Surviving Mutants (if any)
| # | File:Line | Mutation Type | Why Acceptable |
|---|-----------|--------------|----------------|
| 1 | lib/foo.ts:42 | StringLiteral | Error message text |
### Test Files Modified
- __tests__/lib/foo.test.ts (added 3 assertions)
- __tests__/property/foo.property.test.ts (new file, 2 property tests)
Exit statuses:
--mutate flag. Never run full-project mutation.>= but is >), report it to the user rather than writing a test that enshrines the bug.