monorepo-project-standard
Monorepo 项目规范,涵盖 pnpm workspace、Turborepo、Nx 的目录结构、依赖管理、任务编排、包发布。当用户提到 monorepo、workspace、多包、pnpm workspace、Turborepo、Nx 时自动激活。
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/bovinphang/monorepo-project-standardWhat This Skill Does
The monorepo-project-standard skill serves as an authoritative guide for architects and developers building large-scale TypeScript or JavaScript projects. It codifies the industry-standard architecture for Monorepo management using pnpm workspaces, Turborepo, and Nx. By automating best practices for directory structure, dependency resolution, and task orchestration, this skill helps users avoid common pitfalls such as circular dependencies, inconsistent tool configurations, and slow build times. It acts as a consultant, assisting in the setup of shared workspaces where multiple applications (apps/) and libraries (packages/) coexist harmoniously.
Installation
To integrate this skill into your OpenClaw environment, execute the following command in your terminal:
clawhub install openclaw/skills/skills/bovinphang/monorepo-project-standard
Once installed, the agent will automatically recognize monorepo-related queries and provide specialized architectural guidance.
Use Cases
- Project Initialization: Setting up a clean, scalable folder structure from scratch using pnpm and Turbo.
- Performance Tuning: Configuring Turborepo or Nx task pipelines to maximize cache efficiency and parallelize build processes.
- Dependency Governance: Implementing the 'workspace:*' protocol to ensure packages share the latest internal code without version mismatches.
- Refactoring: Migrating fragmented multi-repo projects into a unified workspace structure.
- Standardization: Enforcing shared ESLint, TypeScript, and Prettier configurations across diverse sub-projects.
Example Prompts
- "I'm starting a new web project and want to include a shared UI library. How should I structure my pnpm workspace?"
- "My Turborepo build is running slowly. Can you check my turbo.json and suggest ways to improve cache hits?"
- "How do I configure my ESLint setup so that it's shared across all packages in my Nx workspace?"
Tips & Limitations
- Tip: Always prioritize using 'workspace:*' for internal packages to ensure instantaneous updates across your repository.
- Tip: Utilize the 'outputs' field in your task runner configuration strictly to optimize incremental builds and CI/CD performance.
- Limitation: This skill focuses on frontend-heavy monorepo stacks (pnpm/Turbo/Nx). It does not provide guidance for non-Node.js monorepo tools like Bazel or Pants.
- Limitation: Users must still manually enforce strict file system boundaries; the skill provides the config templates, but the developer must ensure logical separation of domain boundaries within the directories.
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-bovinphang-monorepo-project-standard": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: file-read
Related Skills
accessibility-check
审查或改进前端 UI 的语义结构、键盘支持、焦点管理、标签以及常见的 WCAG 相关问题,并将报告保存为 Markdown 文件。当用户提到无障碍、accessibility、a11y、WCAG,或在实现交互组件时自动激活。
security-review
前端代码安全审查,检测 XSS、CSRF、敏感数据泄露、不安全的用户输入处理和依赖风险,并将报告保存为 Markdown 文件。当用户要求安全检查、安全审查,或代码涉及用户输入、认证、支付、文件上传等敏感操作时自动激活。
test-and-fix
执行项目校验命令(lint、type-check、test、build),分析失败原因,安全修复问题,并将总结报告保存为 Markdown 文件。当用户要求检查、验证、测试代码改动时自动激活。
vue3-project-standard
Vue 3 + TypeScript 项目的完整工程规范,涵盖项目结构、组件设计、Composables、路由、Pinia 状态管理、API 层、错误处理、测试和性能优化。当用户在 Vue 项目中创建、修改组件或模块,涉及架构设计、代码编写时自动激活。
nextjs-project-standard
Next.js 14+ 项目规范,涵盖 App Router、SSR/SSG、流式渲染、路由与布局、数据获取、中间件、元数据与 SEO。当用户在 Next.js 项目中创建、修改页面或模块时自动激活。