Use this skill when running or interpreting VCSDD adversarial reviews. Provides calibration guidance for the Adversary agent, finding severity classification, and anti-leniency enforcement patterns.
中文简介正在准备中。当前显示原文说明。
Use this skill when applying VCSDD to TypeScript/JavaScript projects. Provides fast-check property testing patterns, Stryker mutation testing, and vitest/jest integration for the VCSDD pipeline.
中文简介正在准备中。当前显示原文说明。
查看安装方法安装前可以查看交给 AI 代理的指令内容。
| Tier | Tool | Install | Use Case |
|---|---|---|---|
| 1 | fast-check | npm install -D fast-check | Property-based testing |
| 1 | @stryker-mutator/core | npm install -D @stryker-mutator/core | Mutation testing |
| 1 | vitest / jest | npm install -D vitest | Unit + property tests |
import * as fc from 'fast-check';
import { describe, it } from 'vitest';
import { parse, serialize } from '../src/parser';
describe('parser properties', () => {
it('never throws on arbitrary input', () => {
fc.assert(
fc.property(fc.string(), (s) => {
// Should return Ok or Err, never throw
const result = parse(s);
return result !== undefined;
})
);
});
it('roundtrip: parse(serialize(x)) === x', () => {
fc.assert(
fc.property(fc.string({ minLength: 1, maxLength: 50 }), (s) => {
const result = parse(s);
if (result.ok) {
return serialize(result.value) === s;
}
return true; // Error cases are valid
}),
{ numRuns: 1000 }
);
});
});
# Initialize Stryker
npx stryker init
# Run mutation testing
npx stryker run
# Check results in reports/mutation/
stryker.config.js:
module.exports = {
mutate: ['src/**/*.ts', '!src/**/*.test.ts'],
testRunner: 'vitest',
reporters: ['html', 'clear-text', 'progress'],
thresholds: { high: 80, low: 60, break: 50 },
};
type Result<T, E> = { ok: true; value: T } | { ok: false; error: E };
function parse(input: string): Result<ParsedDoc, ParseError> {
if (!input) return { ok: false, error: ParseError.Empty };
// ...
}
Using discriminated unions ensures the compiler enforces error handling.
还没有评价。欢迎分享你的使用感受。
无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。
还没有评论。来写第一条吧。
Use this skill when running or interpreting VCSDD adversarial reviews. Provides calibration guidance for the Adversary agent, finding severity classification, and anti-leniency enforcement patterns.
中文简介正在准备中。当前显示原文说明。
Run Phase 3 (adversarial review) for the active VCSDD feature. Spawns a fresh vcsdd-adversary agent with zero Builder context to review implementation against spec. Produces binary PASS/FAIL verdict per dimension.
中文简介正在准备中。当前显示原文说明。
Create a git commit for the current VCSDD phase. Auto-generates a conventional commit message from state.json including phase, sprint, gate verdict, and affected bead IDs. Tags with vcsdd/<feature>/phase-<id>.
中文简介正在准备中。当前显示原文说明。
Run the strict-mode sprint contract review after Phase 2c. Spawns a fresh vcsdd-adversary instance to review `contracts/sprint-N.md` and writes a PASS/FAIL verdict under `reviews/contracts/sprint-N/output/`.
中文简介正在准备中。当前显示原文说明。
Run Phase 6 (convergence check) for the active VCSDD feature. Validates four-dimensional convergence: finding diminishment, finding specificity, criteria coverage, and duplicate detection.
中文简介正在准备中。当前显示原文说明。
Use this skill during Phase 6 convergence checks. Provides four-dimensional convergence analysis, hallucination detection, and duplicate finding identification.
中文简介正在准备中。当前显示原文说明。