# Package Public API

> A new-architecture package (shared/, domain/, features/) exposes its API through barrels that contain nothing but `export *`, and keeps its private code in an internals location. Read this when creating a package under shared/, domain/ or features/, when editing any `index.*` file, or when a `lint:structure` check fails.

- Skill: `ledgerhq/package-public-api-2` (Agent Skill)
- Install (CLI): `npx skillmds@latest add ledgerhq/package-public-api-2`
- Raw SKILL.md: https://api.skillmd.com/api/skills/ledgerhq/package-public-api-2/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Integrations & APIs
- Author: ledgerhq (https://skillmd.com/u/ledgerhq)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/ledgerhq/package-public-api-2

---


Read and follow the [canonical skill](../../../.agents/skills/package-public-api/SKILL.md) completely before acting. Treat it as the single source of truth.

