Skip to content
Back to skills

Vcsdd Language Typescript

ASecurity

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.

  • 27 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added June 1, 2026
testingjavascripttypescriptjavabashtesting

Security analysis

A92/100
  • mediumInstalls packages at runtime which could introduce malicious dependencies

Pro shows the line behind each finding and how to fix it

Scanned June 1, 2026

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

Installs into .claude/skills of the current project.

Are you the author of Vcsdd Language Typescript?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Vcsdd Language Typescript
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/sc30gsw-vcsdd-language-typescript/badge)](https://www.skillsdirectory.com/skills/sc30gsw-vcsdd-language-typescript)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: vcsdd-language-typescript
description: 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.
origin: VCSDD
---

# VCSDD Language Profile: TypeScript

## Verification Toolset

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

## fast-check Pattern

```typescript
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

```bash
# Initialize Stryker
npx stryker init

# Run mutation testing
npx stryker run

# Check results in reports/mutation/
```

stryker.config.js:
```javascript
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

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

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.