Agent skill · Backend & API

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.

majiayu000github.com/majiayu000GitHub ↗
claude-coderead-onlyMIT
Install
npx skills add majiayu000/claude-skill-registry --skill entity-api --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 2
SKILL.md size: 10 KB
Bundled scripts: none
Version: 1.0.0
Allowed tools: ReadGlobGrep
Path: skills/api/entity-api/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 534
Language: HTML

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# 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

What's inside
Steps it walks through
  1. Architecture Overview
  2. When to Use This Skill
  3. Entity Resolution Order
  4. Query Parameters
  5. Pagination
  6. Field Selection
  7. Multiple IDs
  8. Filtering (Field-Based)
  9. Search
  10. Date Range
  11. Taxonomy Filtering
  12. Metadata
  13. Child Entities
  14. Sorting
Ships with 1 file
  • metadata.json
More from claude-skill-registry
All skills →
About this skill
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.

Keep going