agentsclimarketplace

Vcsdd language typescript

Skill sc30gsw/vcsdd-claude-code/skills/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.From its SKILL.md

Install
npx -y skills add sc30gsw/vcsdd-claude-code --skill vcsdd-language-typescript

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.

SKILL.md

2.1 KB, as published. Nobody here has run it

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.

Keep looking

Skills are one crate of 613,757. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.