Adding or changing a workspace package. Use when creating a package or app, making a private package publishable, renaming a package, or changing its entry points.
Ships in envoy-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
These conventions are for pnpm + Turborepo + Effect v4 workspaces. When the repository's own
AGENTS.md or neighbouring code says otherwise, follow the repository.
Treat a new package as a registration change, not a directory copy. Start from the closest existing package of the same kind (a published library, private tooling, or an app).
packages/, apps in apps/, repository tooling in tools/.package.json, tsconfig.json, src/index.ts, and for a
published library also tsdown.config.ts, README.md, LICENSE (copy of the root one) and
test/.pnpm install..config/vitest.config.ts: a project for its test/ folder;.github/ISSUE_TEMPLATE/bug.yml: the package in the Packages dropdown (published only);README.md: the packages table (published only);AGENTS.md and CONTRIBUTING.md: the workspace map;.changeset/config.json: fixed or linked groups if versions move together.pnpm check and, for a published package, pnpm pack:check.minor from 0.0.0).{
"name": "@<scope>/<name>",
"version": "0.0.0",
"description": "<What it does, for whom, in one sentence>",
"keywords": ["<5-12 specific search terms>"],
"homepage": "https://github.com/<owner>/<repo>/tree/main/packages/<name>#readme",
"bugs": "https://github.com/<owner>/<repo>/issues",
"license": "<SPDX id of the root LICENSE>",
"author": "<Name> (<url>)",
"repository": {
"type": "git",
"url": "git+https://github.com/<owner>/<repo>.git",
"directory": "packages/<name>"
},
"files": ["CHANGELOG.md", "dist", "src"],
"type": "module",
"sideEffects": false,
"exports": {
".": { "workspace-source": "./src/index.ts", "default": "./dist/index.js" },
"./package.json": "./package.json"
},
"publishConfig": {
"exports": { ".": "./dist/index.js", "./package.json": "./package.json" },
"access": "public",
"provenance": true
},
"scripts": {
"build": "tsdown",
"dev": "tsdown --watch",
"lint": "oxlint -c ../../.config/oxlint.config.ts --deny-warnings .",
"pack:check": "publint && attw --pack . --profile esm-only",
"typecheck": "tsc --noEmit"
},
"peerDependencies": { "effect": "^4.1.5" },
"devDependencies": { "@effect/vitest": "catalog:", "effect": "catalog:", "tsdown": "catalog:" },
"engines": { "node": ">=22" }
}
"./*" (landmines' package-exports rule).exports (with workspace-source pointing at src) and
publishConfig.exports (pointing at dist).effect is a peer dependency of libraries so consumers share one copy; it is also a
devDependency from the catalog for development.tsconfig.json extends the klarity preset for the runtime (klarity/tsconfig/library,
library/node, library/browser, library/react, or an app/* preset), sets
customConditions: ["workspace-source"], includes src and test, and keeps the
@effect/language-service plugin block of the neighbouring packages.
Published libraries build with tsdown through the matching klarity factory (klarity/tsdown/library,
/node, /browser, /react). React packages use src/index.tsx, react as a ranged peer
dependency, a jsdom Vitest project and an oxlint override with klarity's React preset:
import defineConfig from "klarity/tsdown/library";
export default defineConfig({
exports: { devExports: "workspace-source" },
// WARNING: drop these once TypeScript 7.1 is stable; never suppress any other warning.
suppressWarnings: [
/^TypeScript 7\.0 does not yet have a stable API and is experimental\. Some options will be unavailable\.$/,
/^The `tsgo` generator on TypeScript 7\.0 is deprecated/,
],
});
devExports keeps exports pointing at src under the workspace-source condition and writes
the built entries to publishConfig.exports. Add an entry map for subpath exports ({ index: "src/index.ts", effect: "src/effect.ts" });
tsdown regenerates exports and publishConfig.exports from it on every build. Use plain tsc
only when a package needs one output file per source file (for example to keep export * as
re-exports tree-shakeable for app bundlers), and say why in its README.
Set "private": true, skip publishConfig, files, pack:check and changesets. Apps use their
framework's build and dev scripts and keep lint and typecheck scripts so Turborepo runs them.
What SKILL.md sets; muted values are Claude Code's defaults
5 skills in this plugin
/changesetsRelease notes with Changesets. Use when a change affects a published package, when choosing a version bump, or when preparing or reviewing a release./dependenciesDependency policy for this pnpm workspace. Use when adding, upgrading, removing or pinning a dependency, editing the pnpm catalog, or reviewing a Dependabot PR./effect-conventionsThe single guide for writing Effect v4 TypeScript that reads like the Effect source itself — using Effect APIs from the installed docs instead of memory, module and file layout, data types, dual APIs, naming, type-level design, services, layers, errors, TSDoc with runnable examples, runtime and type tests, package manifests and tooling — checked against a pinned clone of Effect-TS/effect. Use whenever writing, reviewing or documenting any Effect v4 code (library packages, apps, tools, tests), designing a public API, or setting up a package.Other plugins' skills for the same job
/envoy-skills:package-developmentfrom envoy-skills
npx claudepluginhub envoy1084/skills --plugin envoy-skills