@santoshyadavdev
An audit prompt that finds re-export shims and barrel files left behind by earlier monorepo extractions, lists their remaining importers, and proposes which to remove.
Find compatibility shims and barrel files left behind by earlier extractions. These are files that only re-export from a new home, and package `exports` entries that point at them. For each one, list the remaining importers. If there are none, or every importer can be repointed in one small change, propose removing it. Check for: - package.json "exports" subpaths - tsconfig path aliases - vitest aliases - lint-guard baselines that mention the old path
A read-only audit prompt that finds re-exports forwarding symbols from other monorepo workspace packages, classifies each one, and recommends whether to keep or remove it.
Find convenience re-exports in <package>: `export * from` and `export { X } from` statements that forward symbols owned by another workspace package.
For each re-export:
- Name the owning package. Say whether the re-export forces consumers to install or build that package when they would not otherwise need it.
- Count consumers with `git grep` and note which ones already depend on the owning package.
- Classify it:
(a) Type-only. Usually keep it, because it has no runtime cost.
(b) A runtime value with few consumers. Remove it and point consumers at the owner.
(c) Real code that only looks like a re-export. Keep it.
(d) Many consumers. Defer it to its own PR.
Produce a table with these columns: symbol, owner, consumers, classification, recommended action. Do not edit any files yet.A read-only audit prompt that finds shared monorepo packages depending on apps or services, groups the hits by root cause, and measures the build-graph cost with turbo dry runs.
Audit the monorepo for shared packages (under packages/) that depend on an app or service, either directly or transitively.
1. For every package.json under packages/, list the workspace dependencies that point to apps/*, services, or other non-package workspaces.
2. Search source for imports of app modules. Use `git grep` with a pathspec rather than recursive grep. Search for both package-name imports and relative paths that escape the package.
3. For each hit, record the importing file, the imported symbol, and whether it is used as a type or at runtime.
4. Group the hits by root cause:
- a schema or generated types
- test support
- constants or headers
- real logic
5. Rank the groups by how many consumers they unblock and how much build-graph weight they remove.
Measure the improvement by comparing `turbo run build --dry=json --filter=<pkg>` before and after. Count tasks and dependency edges. Report numbers, not estimates. Do not change any code.