schema-implementation

Guide developers through implementing schema.org types in a PHP library.

1|Updated Apr 10, 2024
One-click install
npx skills add https://github.com/EvaLok/schema-org-json-ld --skill schema-implementation
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: schema-implementation
Source: https://github.com/EvaLok/schema-org-json-ld/tree/main/.claude/skills/schema-implementation
Command: npx skills add https://github.com/EvaLok/schema-org-json-ld --skill schema-implementation

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides a standardized, step-by-step process for developers to implement new schema.org types within the library, ensuring consistency and adherence to best practices.

Core Features & Use Cases

  • Guided Implementation: Follows a clear, sequential procedure from understanding the schema to writing tests.
  • Code Generation Templates: Provides ready-to-use templates for schema classes and enum types.
  • Testing & Validation: Integrates unit testing, code style checks, and static analysis to ensure quality.
  • Use Case: A developer needs to add support for the Recipe schema.org type. They can use this Skill to guide them through creating the Recipe.php class, defining its properties, writing tests, and ensuring it integrates seamlessly with the existing library.

Quick Start

Use the schema-implementation skill to add a new schema.org type called 'ProductModel'.

Frequently Asked Questions about schema-implementation

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

FAQPage Schema
How do I implement new schema.org types in a PHP library?

To implement new schema.org types in a PHP library, follow a systematic process covering schema understanding, dependency checking, class and enum creation, unit test writing, and sample JSON-LD generation to ensure adherence to library standards.

What is the step-by-step process for adding schema.org structured data types?

The process for adding schema.org structured data types involves understanding the schema, checking dependencies, generating class and enum templates, writing unit tests, generating sample JSON-LD, and enforcing code style through automated testing and static analysis.

How does automated testing validate schema.org class implementation?

Automated testing validates schema.org class implementation by executing unit tests and static analysis to enforce code style, verify sample JSON-LD generation, and ensure the new types integrate seamlessly with the existing library standards.

Can I use this guided implementation to add any schema.org type like Recipe or ProductModel?

Yes, you can use this guided implementation to add any schema.org type like Recipe or ProductModel by generating the PHP class, defining properties, writing tests, and ensuring seamless integration with the existing library.

What's the best way to ensure code style consistency when creating schema.org enums?

The best way to ensure code style consistency when creating schema.org enums is to use ready-to-use generation templates and validate the implementation through automated static analysis and library standard enforcement.

Why do I need to generate sample JSON-LD when implementing structured data types?

You need to generate sample JSON-LD when implementing structured data types to validate the output structure, ensure the PHP class correctly maps properties, and verify the structured data adheres to schema.org specifications through automated testing.