Skip to content
cccskills
FreePublished on GitHub

vcsdd-language-typescript

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.

The English summary is being prepared. Showing the original description.

See how to install

Files included (1)

  • SKILL.md2.1 KB

SKILL.md (original)

Review the instructions the agent will receive before you install.

VCSDD Language Profile: TypeScript

Verification Toolset

TierToolInstallUse Case
1fast-checknpm install -D fast-checkProperty-based testing
1@stryker-mutator/corenpm install -D @stryker-mutator/coreMutation testing
1vitest / jestnpm install -D vitestUnit + property tests

fast-check Pattern

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 }
    );
  });
});

Stryker Setup

# 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-Safe Result Pattern

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.

Reviews

No reviews yet. Tell others what you thought.

Comments

No login needed. Share how it worked for you, ask a question, or note where it did not run.

No comments yet. Be the first to write one.

Comments are published right away. Do not include personal information such as email addresses or phone numbers. Up to 2 URLs.

0 / 1,000 characters

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.

More skills from this repository

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.

The English summary is being prepared. Showing the original description.

sc30gsw/vcsdd-claude-code27Updated Apr 5, 2026

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.

The English summary is being prepared. Showing the original description.

sc30gsw/vcsdd-claude-code27Updated Apr 5, 2026

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>.

The English summary is being prepared. Showing the original description.

sc30gsw/vcsdd-claude-code27Updated Apr 5, 2026

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/`.

The English summary is being prepared. Showing the original description.

sc30gsw/vcsdd-claude-code27Updated Apr 5, 2026

Run Phase 6 (convergence check) for the active VCSDD feature. Validates four-dimensional convergence: finding diminishment, finding specificity, criteria coverage, and duplicate detection.

The English summary is being prepared. Showing the original description.

sc30gsw/vcsdd-claude-code27Updated Apr 5, 2026

Use this skill during Phase 6 convergence checks. Provides four-dimensional convergence analysis, hallucination detection, and duplicate finding identification.

The English summary is being prepared. Showing the original description.

sc30gsw/vcsdd-claude-code27Updated Apr 5, 2026

See all skills by sc30gsw

Report a problem with this skill