{"enrichment":{"faq":[{"a":"TypeScript's strict mode enables multiple compiler flags that enforce type safety. In your tsconfig.json, set \"strict\": true to activate all strict checks at once, or enable individual flags like \"noImplicitAny\", \"strictNullChecks\", \"strictFunctionTypes\", and \"noImplicitThis\". This skill provides templates showing which strict options work best for different project types and how to gradually adopt them in existing codebases.","q":"How do I configure TypeScript strict compiler options?"},{"a":"TypeScript setup combines three layers: configure tsconfig.json with strict mode enabled, install ESLint with typescript-eslint parser and recommended rules, then add Jest with ts-jest preset for type-aware testing. This skill walks through each tool's configuration, shows how they integrate, and provides a complete starter template that includes pre-commit hooks via Husky to catch issues before code reaches your repository.","q":"What's the best way to set up TypeScript with strict mode, ESLint, and Jest?"},{"a":"TypeScript project structure best practices emphasize clear separation of concerns: keep source code in src/, tests alongside or in a dedicated test/ folder, configuration files at the root, and build output in dist/. This skill provides folder templates for different project types\u2014libraries, APIs, full-stack apps\u2014with guidance on where to place types, utilities, domain logic, and infrastructure code for maximum maintainability.","q":"How should I organize a TypeScript project structure?"},{"a":"TypeScript type safety patterns include branded types for domain-specific values, discriminated unions for exhaustive type narrowing, and type guards over assertions. Anti-patterns to avoid include using any, over-relying on type assertions, and loose union types without discrimination. This skill covers these patterns with real examples, showing how each improves code reliability and how to refactor unsafe code into safer alternatives.","q":"What are TypeScript type safety patterns and anti-patterns to avoid?"},{"a":"TypeScript quality gates combine type checking, linting, and test coverage in CI/CD pipelines. This skill provides GitHub Actions workflow templates that run tsc for type checking, ESLint for code quality, and Jest with coverage thresholds. The workflows fail the build if type errors occur, linting rules are violated, or test coverage drops below your threshold, ensuring every merged commit meets your standards.","q":"How do I set up automated quality gates with GitHub Actions?"},{"a":"Zod provides runtime schema validation that generates TypeScript types automatically, bridging the gap between compile-time and runtime safety. This skill shows how to define Zod schemas for API responses, form data, and configuration, then extract TypeScript types using z.infer<>. Examples include validating external data, creating type-safe API clients, and handling validation errors gracefully in your application.","q":"How can I implement runtime validation with Zod in TypeScript?"}],"shadow_tags":["type-safety","linting-workflow","testing-framework","ci-automation","code-quality","project-scaffolding","error-handling","validation-runtime","pre-commit-hooks","compiler-config"],"summary_rewrite":"This skill establishes a TypeScript development environment with strict compiler options, ESLint rules, and Jest test coverage. It provides project structure templates, tooling configuration, and GitHub Actions workflows to maintain code quality and type safety across your codebase."},"files":[{"bytes":5176,"path":"skills/typescript/SKILL.md","sha256":"6fc3b62209f40e911f9f6e414d28b2fb027082e5425fc037ec65a8e80c21c56e","url":"https://skillfed.io/files/alinaqi/maggy/typescript/83fc11dc/SKILL.md"}],"id":"alinaqi/maggy/typescript","links":{"html":"https://skillfed.io/alinaqi/maggy/typescript","md":"https://skillfed.io/alinaqi/maggy/typescript.md","repo":"https://github.com/alinaqi/maggy"},"meta":{"agents_supported":[],"first_seen":"2026-07-28","forks":56,"language":"Python","last_updated":"2026-07-14","license":"MIT","name":"typescript","publisher":"alinaqi","stars":703},"relations":{"similar":[{"id":"alinaqi/maggy/existing-repo"},{"id":"patricio0312rev/skills/eslint-prettier-config"},{"id":"patricio0312rev/skills/code-formatter-installer"},{"id":"organvm/a-i--skills/coding-standards-enforcer"},{"id":"shipshitdev/skills/linter-formatter-init"},{"id":"CuriousLearner/devkit/project-scaffolder"},{"id":"bobmatnyc/claude-mpm-skills/biome"},{"id":"Svenja-dev/claude-code-skills/code-quality-gate"},{"id":"softspark/ai-toolkit/typescript-patterns"},{"id":"wu529778790/shenzjd-skills/git-hooks-setup"}]},"slug":{"owner":"alinaqi","repo":"maggy","skill":"typescript"},"version":"83fc11dc"}
