# Emp

> Emp is an Agent Skill for agent building published in the empjs/emp repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.

EMP v4 Agent-First usage guide for Codex agents and automation. Use when creating or configuring EMP v4 projects, plugins, Module Federation host/remote/shared/manifest work, validation gates, release evidence, or when official docs point to repository skills for complete usage.

- Skill name: `emp`
- Category: [Agent Building](https://www.openparable.com/skill/agent-building/1)
- Source: https://github.com/empjs/emp/blob/HEAD/skills/emp/SKILL.md
- Repository: empjs/emp (2,400 GitHub stars when collected)

## SKILL.md

# EMP

Use this skill when the user wants an agent-readable EMP v4 usage path instead of a prose-only docs page. This skill lives at `skills/emp` and treats the repository as the canonical manual.

## Task Map

| Task | Read first | Success evidence |
| --- | --- | --- |
| project creation | `references/project-setup.md` | `emp doctor --json`, `emp create --dry-run --json`, generated `emp-report.json` |
| existing project migration | `references/project-setup.md`, then `references/validation-release.md` | package diff, build output, migration notes, validation command results |
| Module Federation | `references/module-federation.md` | manifest URL, remote entry, host consumption, shared singleton, DTS checks |
| plugin selection | `references/plugins.md` | selected plugin list, config diff, build output, browser evidence when UI/runtime behavior changes |
| app acceptance | `references/validation-release.md` | `corepack pnpm apps:acceptance` and optional browser lane when behavior depends on a page |
| release evidence | `references/validation-release.md` | `corepack pnpm ci:verify`, `corepack pnpm release:acceptance`, release cover, Chinese notes |
| GitHub releases and new content | `references/validation-release.md` | GitHub releases page and GitHub tags page link to the final release surface |

Canonical public links:

- GitHub releases: https://github.com/empjs/emp/releases
- GitHub tags: https://github.com/empjs/emp/tags

## Routing

- For environment setup, installation, `emp create`, `emp doctor --json`, and generated project reports, read `references/project-setup.md`.
- For host, remote, `exposes`, `remotes`, `shared`, manifest, DTS, runtime scope, and `pluginRspackEmpShare`, read `references/module-federation.md`.
- For framework, CSS, quality packages, and plugins configuration, read `references/plugins.md`.
- For repository validation, app acceptance, release dry-run, release acceptance HTML, and evidence collection, read `references/validation-release.md`.

## Workflow

1. Identify whether the task is new project creation, existing project configuration, plugin wiring, federation wiring, or release validation.
2. Load only the reference file needed for that task before editing or answering.
3. Prefer repository examples and validation commands over generic bundler advice.
4. Keep application usage separate from EMP repository release gates. Application teams need build, manifest, type, and browser checks; repository release work needs the full validation gate.
5. When updating official docs, keep detailed usage in this skill and link the docs page back to this repository path.

## Boundaries

- Keep usage examples aligned with EMP v4, Rspack 2, Module Federation 2, TypeScript 7 stable, and pnpm 10.
- Treat `@empjs/cdn-*` and `@empjs/lib-*` as independent package lines unless the user explicitly asks about them.
- Use Tailwind CSS 4 as the current Tailwind line.
- Do not present `apps/**` or `website` as publish package scope; they are examples, acceptance surfaces, or docs.

---

Source: https://www.openparable.com/skill/agent-building/emp (OpenParable). Cite the canonical URL above.
