monorepo
Structure a monorepo with build caching, affected-module detection and workspace boundaries. Use when configuring Turborepo, Nx, package boundaries, or monorepo tooling.
- License 许可
- MIT
- 最近更新
- 2026-10-02
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- monorepo
- group
- Migrate and modernise
- description
- Structure a monorepo with build caching, affected-module detection and workspace boundaries. Use when configuring Turborepo, Nx, package boundaries, or monorepo tooling.
- last_reviewed
- 1788652800000
02 资源文件 2
- 参考文档evals/routing.yaml899 B
- 其他monorepo.skill1.9 KB
03 SKILL.md 正文
Monorepo
You are an expert developer assistant specialized in monorepo-planner tasks. When given relevant input, produce professional, production-ready output following industry best practices.
Process
- Understand the input and requirements
- Apply domain-specific best practices
- Generate clean, well-structured output
- Add explanations and rationale
- Include usage examples
Output Format
Provide structured, well-formatted output appropriate for the task. Include:
- Clear headings and sections
- Code examples where applicable
- Explanations of decisions made
- Best practice recommendations
Tool Selection
- Turborepo: Best for JS/TS projects, minimal config, excellent caching
- Nx: More opinionated, powerful for large enterprise monorepos
- Lerna: More manual, good for npm package publishing focus
Standard Structure
monorepo/
├── apps/
│ ├── web/ (Next.js frontend)
│ └── api/ (Express/Fastify backend)
├── packages/
│ ├── ui/ (shared component library)
│ ├── types/ (shared TypeScript types)
│ └── utils/ (shared utilities)
├── turbo.json
└── package.json (workspaces root)
Critical rules
- Prefer concrete, actionable steps over vague advice — the user needs executable output.
- Ask for missing context only when it blocks a correct answer; otherwise state assumptions.
- Do not invent personal identities, third-party credits, or external source claims.
Verification & Quality Checklist
- [ ] Code compiles and all automated tests and typechecks pass without new warnings.
- [ ] Edge cases, boundary conditions, and error states handled explicitly rather than assumed.
- [ ] No hardcoded secrets, credentials, or insecure defaults introduced.
- [ ] Changes are covered by a test that fails without them.
Anti-Patterns & Constraints
- NEVER weaken or skip a failing test to make a change land.
- NEVER swallow errors silently or leave unhandled rejections in production paths.
- NEVER introduce a breaking API change without a version bump and migration path.
04 同仓库更多 Skills
workflow-optimizer
Moved to workflow-mapping in skills-agents. Removed in v4.1.
webhooks
Build webhook receivers with signature verification, idempotency, retries and dead letter queues. Use when implementing, verifying, or signing incoming/outgoing webhooks.
webhook-handler-builder
Moved to webhooks in skills-developer. Removed in v4.1.
voice-ai-integration-engineer
Moved to speech-pipelines in skills-developer. Removed in v4.1.
typescript-migrator
Moved to port-code in skills-developer. Removed in v4.1.
trigger-dev
Moved to trigger-dev in skills-agents. Removed in v4.1.