What problem does it solve?
This Skill provides a standardized, step-by-step process for developers to implement new schema.org types within the TypeScript version of the schema-org-json-ld library, ensuring consistency and maintainability.
Core Features & Use Cases
- Structured Implementation Guide: Follows a clear, sequential process from understanding the schema to final code verification.
- Test-Driven Development (TDD): Emphasizes writing failing tests before implementation to ensure correctness.
- Code Generation Standards: Details the exact patterns for class structure, options interfaces, enum creation, and barrel exports.
- PHP Parity Verification: Includes steps to ensure the TypeScript implementation matches the existing PHP version.
- Use Case: A developer needs to add support for a new schema type, like
Recipe, to the library. This Skill guides them through creating the Recipe.ts class, its options interface, writing tests in Recipe.test.ts, and exporting it correctly.
Quick Start
Use the ts-schema-implementation skill to add a new schema.org type called 'ProductModel' to the TypeScript library.