entity-api
Dynamic entity API patterns for CRUD operations. Covers entity resolution, query parameters, response formats, child entities, and metadata. Use this skill when consuming entity APIs or understanding dynamic endpoint behavior.
npx skills add majiayu000/claude-skill-registry --skill entity-api --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# Entity API Skill Patterns for consuming the dynamic entity API system. ## Architecture Overview ``` app/api/v1/ ├── [entity]/route.ts # LIST (GET), CREATE (POST) ├── [entity]/[id]/route.ts # READ (GET), UPDATE (PATCH), DELETE ├── [entity]/[id]/child/[childType]/route.ts # Child LIST/CREATE └── [entity]/[id]/child/[childType]/[childId]/route.ts # Child UPDATE/DELETE core/lib/api/entity/ ├── generic-handler.ts # CRUD handlers ├── resolver.ts # Entity resolution └── helpers.ts # Metadata, response formatting ``` ## When to Use This Skill - Consuming entity endpoints in frontend code - Understanding API response formats - Working with query parameters (filtering, pagination, search) - Implementing child entity operations - Working with metadata (metas) system ## Entity Resolution Order When a request hits `/api/v1/{entity}`: 1. **Extract slug** - `/api/v1/products` → `products` 2. **Check core path** - Skip if: users, api-keys, auth, system, health, internal, admin, debug 3. **Registry lookup** - `entityRegistry.getBySlug('products')` 4. **Custom override check** - Look for `app/api/v1/(contents)/products/route.ts` 5. **Return resolution** - `{ entityConfig, hasCustomOverride, isVali
- Architecture Overview
- When to Use This Skill
- Entity Resolution Order
- Query Parameters
- Pagination
- Field Selection
- Multiple IDs
- Filtering (Field-Based)
- Search
- Date Range
- Taxonomy Filtering
- Metadata
- Child Entities
- Sorting
What does the entity-api skill do?
Dynamic entity API patterns for CRUD operations. Covers entity resolution, query parameters, response formats, child entities, and metadata. Use this skill when consuming entity APIs or understanding dynamic endpoint behavior.
How do I install it?
Run `npx skills add majiayu000/claude-skill-registry --skill entity-api --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
