Initialise a blank CoreEx repository by generating root guidance files (README, AGENTS, CLAUDE) and immediately chaining to /coreex-scaffold for solution shaping. USE FOR: first-time setup of a new repository that has just had dotnet new coreex-ai run and has no root guidance files yet. DO NOT USE FOR: existing solutions, partial retrofits, or repositories that already contain src/, tests/, or tools/.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Coreex Bootstrap?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/avanade-coreex-bootstrap)
---
name: coreex-bootstrap
description: "Initialise a blank CoreEx repository by generating root guidance files (README, AGENTS, CLAUDE) and immediately chaining to /coreex-scaffold for solution shaping. USE FOR: first-time setup of a new repository that has just had dotnet new coreex-ai run and has no root guidance files yet. DO NOT USE FOR: existing solutions, partial retrofits, or repositories that already contain src/, tests/, or tools/."
argument-hint: "Optional: project name in [Company].[Product].[Domain] form (e.g. Avanade.Bookstore.Books)"
tags: ["coreex", "bootstrap", "scaffolding"]
---
<!--
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 Bootstrap
Initialises a blank CoreEx repository by generating root guidance files and immediately chaining to `/coreex-scaffold` for solution shaping.
## When to Use
- The repository has just had `dotnet new coreex-ai` run — `.github/` and `.claude/` AI assets are present but there are no root guidance files (`README.md`, `AGENTS.md`, `CLAUDE.md`).
- This is a brand-new, empty-first greenfield repository with no `src/`, `tests/`, or `tools/` directories.
## When Not to Use
- The repository already has a `README.md` or `src/` — use `/coreex-scaffold` directly.
- You are adding new hosts to an existing CoreEx solution — use `/coreex-scaffold` instead.
- You want architecture guidance — use `/coreex-expert` instead.
- `dotnet new coreex-ai` has not yet been run — run it first so the AI workflow assets are present.
## Workflow
1. **Confirm the project name and broad shape.** Read the workspace root folder name as the default. Conventional domains use `[Company].[Product].[Domain]`; standalone Functions/integration solutions can use the actual solution name without inventing domain segments.
2. **Generate root guidance files.** Write the three files below, substituting `{{project-name}}` with the confirmed project name.
3. **Chain to `/coreex-scaffold`.** Immediately invoke the scaffold skill, carrying forward the user's supplied requirements and decisions. Interview only unresolved choices, then run the right `dotnet new coreex*` commands; do not restart an already answered interview.
Standalone Functions uses `coreex-solution` for repository conventions and Test.Common by default, then `coreex-functions --shared-core false` with the actual common reference. The full `coreex` domain scaffold is not a prerequisite. CodeGen is an optional independent add-on, not an automatic database/ref-data dependency.
## File Templates
### README.md
```markdown
# {{project-name}}
This repository will use CoreEx; the scaffold workflow chooses a layered domain or a standalone integration shape.
## Next Step
Run `/coreex-scaffold` in Copilot Chat or Claude Code. The workflow will ask about:
- the bounded context and solution name;
- whether the domain owns data or is a facade;
- whether it needs an API host;
- whether it needs reliable event publishing and an outbox relay;
- whether it needs to consume events with a subscriber host;
- whether reference data, a domain layer, and ROP should be enabled.
From that interview, the workflow will derive and run the right `dotnet new coreex*` commands for the solution.
```
### AGENTS.md
```markdown
# {{project-name}} — CoreEx Bootstrap
This repository is intentionally bootstrapped with only the **CoreEx AI workflow assets**.
Run `/coreex-scaffold` to interview the business/domain shape and scaffold the smallest safe `dotnet new coreex*` command set for this solution.
Until that workflow runs, the repository is expected to stay mostly empty apart from:
- `.github/` instructions, prompts, skills, and the cached CoreEx docs.
- `.claude/commands/` prompt shims.
- this bootstrap guidance file.
If the repository still only contains this bootstrap shell, it is safe for `/coreex-scaffold` to use `dotnet new ... --force` when replacing placeholder files with the full solution scaffold.
Use `/coreex-expert` when you need CoreEx architecture guidance before choosing the final shape.
```
### CLAUDE.md
```markdown
@.github/instructions/coreex.instructions.md
@.github/instructions/coreex-conventions.instructions.md
@.github/instructions/coreex-contracts.instructions.md
@.github/instructions/coreex-application-services.instructions.md
@.github/instructions/coreex-aspire.instructions.md
@.github/instructions/coreex-validators.instructions.md
@.github/instructions/coreex-repositories.instructions.md
@.github/instructions/coreex-api-controllers.instructions.md
@.github/instructions/coreex-event-subscribers.instructions.md
@.github/instructions/coreex-host-setup.instructions.md
@.github/instructions/coreex-domain.instructions.md
@.github/instructions/coreex-tests.instructions.md
@.github/instructions/coreex-tooling.instructions.md
## Slash commands
| Command | What it does |
|---|---|
| `/coreex-bootstrap` | Generates root guidance files for a blank CoreEx repo, then chains to `/coreex-scaffold` |
| `/coreex-scaffold` | Guided interview → derives and runs the right `dotnet new coreex*` commands for this solution shape |
| `/coreex-expert` | Architecture guidance, pattern decisions, and sample-aligned implementation advice |
| `/coreex-docs-sync` | Refreshes the entire AI asset bundle and docs cache from the CoreEx.Template release matching this project's CoreEx NuGet version |
```