Coreex Api E2e
ASecurityCreate a complete new entity with CRUD API endpoints end-to-end in a single guided workflow: DTO contract, database migration, EF Core repository, validator (+ unit tests), optional policy guard (+ unit tests), application service, API endpoint, and integration tests. USE FOR: adding a brand-new entity to an existing CoreEx solution where the full stack — from database table to HTTP endpoint — is needed. DO NOT USE FOR: modifying an existing entity or endpoint (use the targeted L1 skill direc...
- 29 stars
- 0 votes
- 0 copies
- 7 views
- Added August 31, 2026
Works with
Security analysis
100/100Pro scans all 2 files and shows the line behind each finding
npx -y skills add Avanade/CoreEx --skill coreex-api-e2e --agent claude-codeAre you the author of Coreex Api E2e?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/avanade-coreex-api-e2e)---
name: coreex-api-e2e
description: "Create a complete new entity with CRUD API endpoints end-to-end in a single guided workflow: DTO contract, database migration, EF Core repository, validator (+ unit tests), optional policy guard (+ unit tests), application service, API endpoint, and integration tests. USE FOR: adding a brand-new entity to an existing CoreEx solution where the full stack — from database table to HTTP endpoint — is needed. DO NOT USE FOR: modifying an existing entity or endpoint (use the targeted L1 skill directly), read-only façade entities backed by an external adapter with no local table (use individual L1 skills), or any partial-stack additions."
argument-hint: "Optional: entity name, CRUD operations needed (Get/Query/Create/Update/Patch/Delete), key fields"
tags: ["coreex", "api", "entity", "end-to-end", "crud", "vertical-slice"]
---
<!--
AI workflow asset — dual-audience notice:
- In the Avanade/CoreEx repository: this file is the authored source. Edit it here.
- In a consumer repository: this file was generated by `dotnet new coreex-ai` (or refreshed via
`dotnet new coreex-ai --force` / the `/coreex-docs-sync` skill). Do not hand-edit it directly —
propose the change upstream in Avanade/CoreEx instead, then refresh once it is released.
-->
# CoreEx: Add API (End-to-End)
Guides you through adding a complete new entity and its CRUD API in one sitting: resolves requirements through focused interactions, then invokes the appropriate L1 skills in sequence without repeating answered questions.
## When to Use
- Adding a brand-new entity to an existing CoreEx solution — full stack from database table to HTTP endpoint
- The entity will be owned and persisted locally (not sourced purely from an external adapter)
- You want the entire vertical slice — contract, migration, repository, validator, app-service, API, and tests — in one workflow
## When Not to Use
- Modifying an existing entity, endpoint, or validator — invoke the targeted L1 skill directly (e.g. `coreex-validator`, `coreex-api`)
- Read-only façade entity backed by an external adapter with no local table — use individual L1 skills and skip migration/repository
- Adding only a subset of layers (e.g. validator only, API only) — call the relevant L1 skill directly
## Workflow Overview
1. **Read Feature Configuration** — resolve `rop-enabled`, `outbox-enabled`, and `data-provider` (`SqlServer` / `Postgres` / `Cosmos` / `None`) from the solution-root `AGENTS.md`, and check whether a `*.Domain` project exists, before asking anything.
2. **Interview** — resolve recorded decisions first, then ask only unresolved behavioral/design questions one at a time using the available interaction mechanism. Gather entity name, fields, operations (Get/Query/Create/Update/Patch/Delete), identifier type, policy needs, and ref-data status without batching separate questions. Present one compact plan and wait for approval unless the user's request already authorizes implementation; approval remains valid unless scope changes.
3. **Execute L1 sequence** — invoke each L1 skill in order, passing context resolved in steps 1–2; no repeated questions.
4. **Validate** — build the solution and execute the generated unit and API integration suites; report infrastructure-blocked tests explicitly. File presence alone is not validation.
For full step-by-step guidance see [`references/workflow.md`](references/workflow.md).
## L1 Sequence
| Step | Skill | Condition |
|---|---|---|
| 1 | [`coreex-refdata`](../coreex-refdata/SKILL.md) | Only if a brand-new reference-data type was identified in the interview (must exist before Step 2 can compile) |
| 2 | [`coreex-aggregate`](../coreex-aggregate/SKILL.md) | Only when `*.Domain` project exists |
| 3 | [`coreex-contract`](../coreex-contract/SKILL.md) | Always |
| 4 | [`coreex-db-migration`](../coreex-db-migration/SKILL.md) | Skip when `data-provider = None` |
| 5 | [`coreex-repository`](../coreex-repository/SKILL.md) | Skip when `data-provider = None` |
| 6 | [`coreex-validator`](../coreex-validator/SKILL.md) | Always — also generates `*.Test.Unit/Validators/` unit tests |
| 7 | [`coreex-policy`](../coreex-policy/SKILL.md) | Only if a business guard was identified in the interview — also generates `*.Test.Unit/Policies/` unit tests |
| 8 | [`coreex-app-service`](../coreex-app-service/SKILL.md) | Always |
| 9 | [`coreex-api`](../coreex-api/SKILL.md) | Always |
| 10 | [`coreex-test-api`](../coreex-test-api/SKILL.md) | Always |
## Key References
- [`/.github/instructions/coreex-contracts.instructions.md`](/.github/instructions/coreex-contracts.instructions.md) — entity contract conventions
- [`/.github/instructions/coreex-application-services.instructions.md`](/.github/instructions/coreex-application-services.instructions.md) — layering rules and Result<T> pipeline
- [`/.github/instructions/coreex-api-controllers.instructions.md`](/.github/instructions/coreex-api-controllers.instructions.md) — endpoint conventions
- [`/.github/instructions/coreex-tests.instructions.md`](/.github/instructions/coreex-tests.instructions.md) — integration and unit test conventions
- [`/.github/instructions/coreex-domain.instructions.md`](/.github/instructions/coreex-domain.instructions.md) — DDD aggregate conventions (when `*.Domain` project exists)
Files in this skill
- SKILL.md
- references/workflow.md
Attribution
Related skills
View all in databases →Comments
Loading comments…
Newsletter
Get the weekly list of safe new skills, and the ones we pulled.