gerard-labs

60 mods across 1 repository, 2 stars between them.

test

33

gerard-labs/superpowers-api-platform

Command

Test stage — symfony-tdd-coach reads plan + dev report, validates AC × test mapping, kills Infection mutants in-session, emits API-TEST report.

2 3mo ago A 32 tokens original MIT

SessionStart

35

gerard-labs/superpowers-api-platform

Hook

Runs when a session starts on startup, resume, clear and compact, executing session-start.sh. From gerard-labs/superpowers-api-platform.

2 3mo ago A tokens not measured copy · 100% MIT

gerard-labs/superpowers-api-platform

Skill Claude CodeCodex

Introduce Input/Output DTOs in API Platform 4.3 to decouple the API contract from the Doctrine entity, validate at the boundary, force IRI-only relations (no scalar IDs), and use BackedEnum natively. Covers the new Symfony Object Mapper 4.3 integration (#[Map], ObjectMapperProvider/Processor) for boilerplate-free DTO…

2 3mo ago A 130 tokens original MIT

api-platform-errors

37

gerard-labs/superpowers-api-platform

Skill Claude CodeCodex

Design API Platform 4.3 error handling around RFC 7807 (application/problem+json, default in 4.x). Covers exceptionToStatus mapping at config / resource / operation level, the 4.3 errors: [DomainException::class] flag on operations (auto-documented in OpenAPI), #[ErrorResource] + ProblemExceptionInterface to turn…

2 3mo ago A 314 tokens original MIT

gerard-labs/superpowers-api-platform

Skill Claude CodeCodex

Implement file uploads in API Platform 4.3 with the canonical pattern — VichUploaderBundle (#[Vich\\Uploadable], #[Vich\\UploadableField]), the multipart/form-data format enabled on the Post operation (inputFormats: ['multipart' => …]), a MediaObject resource exposing contentUrl via a custom Normalizer that resolves…

2 3mo ago A 217 tokens original MIT

gerard-labs/superpowers-api-platform

Skill Claude CodeCodex

Build API Platform 4.3 filters with the modern parameters + QueryParameter pattern. Use when adding search, sort, range, full-text, or sparse-fieldset filtering to an operation. Covers ExactFilter, PartialSearchFilter (caseSensitive 4.3), IriFilter (nested), UuidFilter (4.3), ComparisonFilter (gt/gte/lt/lte/ne 4.3)…

2 3mo ago A 240 tokens original MIT

gerard-labs/superpowers-api-platform

Skill Claude CodeCodex

Choose and wire up API Platform 4.3 resource identifiers — UUID v7 (recommended for temporal cursor pagination), ULID, scalar (string/int), \DateTimeInterface, composite identifiers via Link(uriVariables: …), custom identifiers (slug) with #[ApiProperty(identifier: true)], decorating UriVariableTransformerInterface to…

2 3mo ago A 148 tokens original MIT

api-platform-mcp

41

gerard-labs/superpowers-api-platform

Skill Claude CodeCodex

Expose API Platform 4.3 operations as Model Context Protocol tools for AI agents (Claude, ChatGPT, etc.) via the new api-platform/mcp + symfony/mcp-bundle components — marked @experimental upstream. Covers #[McpTool] standalone (name, description, processor, optional validate: true), the mcp: keyword on #[ApiResource]…

2 3mo ago A 227 tokens original MIT

gerard-labs/superpowers-api-platform

Skill Claude CodeCodex

Use API Platform 4.3's new #[AsResourceMutator(resourceClass: …)] and #[AsOperationMutator(operationName: …)] to mutate resource/operation metadata at build time — zero runtime cost. Implement ResourceMutatorInterface::invoke(ApiResource $resource): ApiResource to e.g. prefix every operation's routePrefix, or…

2 3mo ago A 175 tokens original MIT

gerard-labs/superpowers-api-platform

Skill Claude CodeCodex

Customize API Platform 4.3 OpenAPI / Hydra / Scalar documentation — the openapi: new \\ApiPlatform\\OpenApi\\Model\\Operation(...) attribute (with Info, Parameter, RequestBody, Response, Server, Contact, License), decorating apiplatform.openapi.factory to inject x-logo and global metadata, the openapi: false flag to…

2 3mo ago A 204 tokens original MIT

gerard-labs/superpowers-api-platform

Skill Claude CodeCodex

Configure API Platform 4.3 pagination — default page size (30 items in 4.x, not 20), hydraprefix: false shape (member / totalItems / view / next keys, no hydra: prefix), partial pagination (paginationPartial: true) to skip the COUNT on large tables, cursor-based pagination via paginationViaCursor paired with UUID v7 /…

2 3mo ago A 191 tokens original MIT

gerard-labs/superpowers-api-platform

Skill Claude CodeCodex

Tune API Platform 4.3 + Doctrine + Symfony performance — recognize the 4.x default trap eagerloading.forceeager: true (often counter-productive, switch to false + targeted join fetches), use EXTRALAZY for large collections, project DTOs in DQL (NEW App\\Dto\\PostListItem(...)) to avoid hydrating full entities for list…

2 3mo ago A 237 tokens original MIT

gerard-labs/superpowers-api-platform

Skill Claude CodeCodex

Build resilience patterns around an API Platform 4.3 app — Circuit Breaker (Closed → Open → Half-Open) on external dependencies (ERP, payment, search), cached fallback on Open state with a notice.type: degradedmode marker in the response, asynchronous writes for slow upstreams (HTTP 202 + status: pendingerpprocessing…

2 3mo ago A 158 tokens original MIT

gerard-labs/superpowers-api-platform

Skill Claude CodeCodex

Design or evolve API Platform 4.3 resources — choose operations (Get/GetCollection/Post/Put/Patch/Delete), apply the Resource-First principle (Resource ≠ Entity), enforce the IRI-only relation rule, model subresources with Link(fromClass:, toProperty:), set shortName / uriTemplate / itemUriTemplate, configure content…

2 3mo ago A 132 tokens original MIT

gerard-labs/superpowers-api-platform

Skill Claude CodeCodex

Secure an API Platform 4.3 application end-to-end — operation-level security (security, securityPostDenormalize with previousobject, securityPostValidation, throwonaccessdenied), property-level security (#[ApiProperty(security: ...)]), Doctrine collection extensions for owner-scoped lists, voters, UUID/ULID…

2 3mo ago A 177 tokens original MIT