OpenParable
Skip to content
← Back to skills

Emp

Agent Building
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.

View on GitHub ↗
QUICK START

How to use this skill

Bring this guide into your coding agent with a prompt tailored to the tool you use.

  1. Open your project in Codex.
  2. Copy and paste the prompt below.
  3. Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/empjs/emp/blob/HEAD/skills/emp/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/emp, but wait for my approval before writing files or running scripts.

Copying this prompt does not install or run the skill. Review third-party files before use.

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

TaskRead firstSuccess evidence
project creationreferences/project-setup.mdemp doctor --json, emp create --dry-run --json, generated emp-report.json
existing project migrationreferences/project-setup.md, then references/validation-release.mdpackage diff, build output, migration notes, validation command results
Module Federationreferences/module-federation.mdmanifest URL, remote entry, host consumption, shared singleton, DTS checks
plugin selectionreferences/plugins.mdselected plugin list, config diff, build output, browser evidence when UI/runtime behavior changes
app acceptancereferences/validation-release.mdcorepack pnpm apps:acceptance and optional browser lane when behavior depends on a page
release evidencereferences/validation-release.mdcorepack pnpm ci:verify, corepack pnpm release:acceptance, release cover, Chinese notes
GitHub releases and new contentreferences/validation-release.mdGitHub releases page and GitHub tags page link to the final release surface

Canonical public links:

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.