Best for
- Cannot find module '@org/ui' or Cannot find module '@org/ui' or its
- TypeScript TS2307, or a bundler resolving a workspace import to undefined.
- A workspace import that works in the editor and fails in the build (or the
event4u-app/agent-config/src/skills/workspace-link/SKILL.md
Use when a cross-workspace import will not resolve — cannot find module @org/*, TS2307 — to link the packages properly with the workspace: protocol instead of patching tsconfig paths.
Decision brief
One workspace imports another and the import does not resolve. The fix is a dependency declaration, not a resolver override.
Compatibility matrix
| Platform | Status | Evidence | What to check |
|---|---|---|---|
| Codex | Not declared | No explicit evidence | Portability before use |
| Claude Code | Not declared | No explicit evidence | Portability before use |
| Cursor | Not declared | No explicit evidence | Portability before use |
| Gemini CLI | Not declared | No explicit evidence | Portability before use |
Installation
The source command is displayed only when detected. A safe inspection prompt is always available so your agent can explain every action before execution.
npx skills add https://github.com/event4u-app/agent-config --skill "src/skills/workspace-link"Inspect the Agent Skill "workspace-link" from https://github.com/event4u-app/agent-config/blob/6a5670b7881a676c0da90d2afb950298087c4ccb/src/skills/workspace-link/SKILL.md at commit 6a5670b7881a676c0da90d2afb950298087c4ccb. List every install step, command, network request, credential, file read/write, external action, and rollback step. Explain whether it fits my task. Do not install or execute anything until I approve.
Workflow
The importing workspace's package.json must name the imported workspace in dependencies (or devDependencies when the import is test-only):
Cannot find module '@org/ui' or Cannot find module '@org/ui' or its
The importing workspace's package.json must name the imported workspace in dependencies (or devDependencies when the import is test-only):
Four forms, and the difference only shows up at publish time:
Protocol support is not uniform. pnpm and Yarn (berry) implement all four forms; Bun implements the protocol; npm's support arrived later than the others. Confirm against the version in packageManager / the lockfile rather than assuming — monorepo-workspace step 1 reports which…
Permission review
The documentation asks the agent to run terminal commands or scripts.
Re-run the failing command, not the editor. A resolved editor and a failingEvidence record
| Signal | Value | Evidence type | Meaning |
|---|---|---|---|
| Quality score | 93/100 | Computed | Documentation, specificity, maintenance, and trust rules |
| Repository stars | 9 | Source | Repository attention, not individual Skill quality |
| Compatibility | 0 platforms | Source | Declared in the catalog source record |
| Usage guide | automated source guide | Editorial | Generated or reviewed according to the visible evidence level |
Pinned source
One workspace imports another and the import does not resolve. The fix is a dependency declaration, not a resolver override.
Own analysis. The forms and failure modes below are derived from the public behaviour of the package managers named, not adopted from a third-party artefact, so no provenance ledger entry backs them. Verify the protocol support against the manager version the repository actually pins — see § Check the manager, not the table.
Cannot find module '@org/ui' or Cannot find module '@org/ui' or its corresponding type declarations.TS2307, or a bundler resolving a workspace import to undefined.paths patch standing in for a
dependency.The importing workspace's package.json must name the imported workspace in
dependencies (or devDependencies when the import is test-only):
{
"name": "@org/web",
"dependencies": { "@org/ui": "workspace:*" }
}
The name on the left is the imported package's own name field — not its
directory. Then re-run the install so the manager creates the link.
Four forms, and the difference only shows up at publish time:
| Form | Resolves locally to | On publish, rewritten to |
|---|---|---|
workspace:* | the local workspace, any version | the exact version at publish |
workspace:^ | the local workspace | ^<version> |
workspace:~ | the local workspace | ~<version> |
workspace:<range> | the local workspace if its version satisfies <range>, else fails the install | <range> |
For a private monorepo that never publishes, workspace:* is the right default
— it cannot drift out of sync with the local version. For packages that are
published, workspace:^ is what keeps the released range honest.
The explicit-range form is the only one that can fail the install, and that is a feature: it is how a workspace states which version of a sibling it needs.
Protocol support is not uniform. pnpm and Yarn (berry) implement all four forms;
Bun implements the protocol; npm's support arrived later than the others.
Confirm against the version in packageManager / the lockfile rather than
assuming — monorepo-workspace step 1 reports
which manager this repository actually uses.
Where the protocol is unsupported, the correct fallback is still a dependency declaration — the sibling's version range — never a resolver override.
Re-run the failing command, not the editor. A resolved editor and a failing
build is the exact state a paths patch produces, so the build is the probe.
A workspace-link answer MUST contain, in order:
name (not its directory), and the exact error text.package.json path, the section
(dependencies or devDependencies), and the workspace: form chosen, with
one sentence on why that form (private-and-unpublished → workspace:*;
published → workspace:^).packageManager / the lockfile rather than assumed.paths patch produces, so the build is the probe.workspace: dependency on a package that is not actually in the workspace
globs fails with a confusing "not found" — check the globs
(monorepo-workspace step 2) before the
spelling of the name.main / exports /
types). A correct link into a package that exports nothing reads as the same
TS2307.tsconfig.json paths to point at the sibling's source. It
silences the type error in the editor while the runtime and the bundler still
have no dependency to resolve, and it hides the edge from the task runner, so
the affected-set calculation and build ordering both go wrong. A paths entry
is a compiler hint, not a dependency.package.json link fields or the lockfile to point at a
relative path (file:../ui, a hand-written entry under node_modules). It
works once, on one machine, and is undone by the next install.package.json to make the error go
away — the importing workspace is what must declare it.monorepo-workspace — which manager, which workspaces, which graph.monorepo-antipatterns — the task-graph mistakes a paths patch hides.blast-radius-analyzer — § Monorepo, once the edge exists.Frequently asked questions
One workspace imports another and the import does not resolve. The fix is a dependency declaration, not a resolver override.
The source record exposes this install command: npx skills add https://github.com/event4u-app/agent-config --skill "src/skills/workspace-link". Inspect the command and pinned source before running it.
Static rules flagged exec-script in the source; the page lists the matching lines and excerpts.
Alternatives
coreyhaines31/marketingskills
When the user wants to plan, design, or implement an A/B test or experiment, or build a growth experimentation program. Also use when the user mentions "A/B test," "split test," "experiment," "test this change," "variant copy," "multivariate test," "hypothesis," "should I test this," "which version is better," "test two versions," "statistical significance," "how long should I run this test," "growth experiments," "experiment velocity," "experiment backlog," "ICE score," "experimentation program
garrytan/gbrain
End-to-end discipline for turning any large data source (audio libraries, email takeouts, document corpora, chat exports, API dumps) into brain pages at scale. The lifecycle spine: SCHEMA → ACCESS → TRIAL → EVALUATE → IMPROVE → CODIFY → TEST → SKILLIFY → BULK → MONITOR. State is tracked in a durable JSON manifest (see MANIFEST-PATTERN.md) so any crash, session boundary, or subagent fan-out resumes from ground truth instead of memory.
alirezarezvani/claude-skills
App Store Optimization (ASO) toolkit for researching keywords, analyzing competitor rankings, generating metadata suggestions, and improving app visibility on Apple App Store and Google Play Store. Use when the user asks about ASO, app store rankings, app metadata, app titles and descriptions, app store listings, app visibility, or mobile app marketing on iOS or Android. Supports keyword research and scoring, competitor keyword analysis, metadata optimization, A/B test planning, launch checklist
dotnet/skills
Migrates .NET test projects from VSTest to Microsoft.Testing.Platform (MTP). Use when user asks to "migrate to MTP", "switch from VSTest", "enable Microsoft.Testing.Platform", "use MTP runner", set OutputType=Exe only for test projects in Directory.Build.props, or mentions EnableMSTestRunner, EnableNUnitRunner, or UseMicrosoftTestingPlatformRunner. USE FOR: MTP behavioral differences vs VSTest (exit code 8, zero tests discovered, --ignore-exit-code, TESTINGPLATFORM_EXITCODE_IGNORE); centralizing