fix-codegen-typescript

Diagnoses and fixes TypeScript codegen issues in Datrix-generated code.

2|Updated Feb 13, 2026
One-click install
npx skills add https://github.com/keturk/datrix --skill fix-codegen-typescript
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: fix-codegen-typescript
Source: https://github.com/keturk/datrix/tree/main/claude-config/.claude/skills/fix-codegen-typescript
Command: npx skills add https://github.com/keturk/datrix --skill fix-codegen-typescript

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill automates the diagnosis and resolution of test failures, errors, and warnings in TypeScript code generated by Datrix, significantly reducing manual debugging and maintenance efforts.

Core Features & Use Cases

  • Test Failure Analysis: Analyze and identify the root causes of test failures in TypeScript code.
  • Error Resolution: Fix common issues such as missing imports, incorrect type mappings, and template errors.
  • Use Case: When using Datrix to generate TypeScript code, use this Skill to automatically resolve known issues, ensuring the generated code is stable and ready for production.

Quick Start

/fix-codegen-typescript /path/to/datrix-codegen-typescript/test-results/index.json

Frequently Asked Questions about fix-codegen-typescript

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I fix TypeScript codegen errors automatically?

To fix TypeScript codegen errors automatically, this Skill analyzes structured test results to diagnose and resolve issues like missing imports and incorrect type mappings in Datrix-generated code. It requires a path to your structured test results JSON file to identify and apply the necessary corrections.

Why does Datrix generated TypeScript code have missing imports and type mapping errors?

Datrix generated TypeScript code can have missing imports and type mapping errors due to template issues during the generation phase. This Skill identifies these specific failure patterns by analyzing test results and automatically applies the required import statements and type corrections.

How do I resolve test failures in Datrix TypeScript codegen output?

To resolve test failures in Datrix TypeScript codegen output, run the Skill with the path to your test results index file. It parses the structured test data to locate root causes of failures and patches the generated code to ensure stability and production readiness.

Do I need structured test results to analyze TypeScript codegen issues?

Yes, you need structured test results to analyze TypeScript codegen issues with this Skill. It depends on reading a structured test results JSON file to accurately diagnose failures and identify specific errors like incorrect type mappings before applying automated fixes.

What is the best way to debug Datrix TypeScript code generation issues?

The best way to debug Datrix TypeScript code generation issues is to automate the diagnosis using this Skill, which processes structured test results to detect and fix template problems and missing imports, significantly reducing manual debugging and maintenance efforts.

Can this Skill fix template issues in generated TypeScript code?

Yes, this Skill can fix template issues in generated TypeScript code. Along with resolving missing imports and incorrect type mappings, it specifically targets and repairs template errors found within Datrix-generated code by analyzing the output of structured tests.