monorepo-workflows
БесплатноБез исполняемых скриптовНе проверенUse when setting up CI/CD, implementing versioning, optimizing workflows, or managing releases with monorepo development workflows including version…
от TheBushidoCollective★ 202 звезды на GitHubОб этом скилле
Monorepo Workflows Skill
Overview
This skill provides comprehensive guidance on development workflows, CI/CD patterns, version management, publishing strategies, and collaboration practices for monorepo environments.
Development Workflows
Local Development Setup
Configure efficient local development environment.
Package.json scripts:
{
"scripts": {
"dev": "turbo run dev --parallel",
"dev:web": "turbo run dev --filter=@myorg/web...",
"build": "turbo run build",
"test": "turbo run test",
"lint": "turbo run lint",
"clean": "turbo run clean && rm -rf node_modules",
"reset": "pnpm clean && pnpm install"
}
}
Environment setup script:
#!/bin/bash
# scripts/setup-dev.sh
echo "Setting up development environment..."
# Check Node version
required_node_version="18.0.0"
current_node_version=$(node -v | cut -d'v' -f2)
if [ "$(printf '%s\n' "$required_node_version" \
"$current_node_version" | sort -V | head -n1)" != \
"$required_node_version" ]; then
echo "Error: Node.js $required_node_version or higher required"
exit 1
fi
# Enable pnpm
corepack enable pnpm
# Install dependencies
pnpm install
# Build all packages
pnpm run build
# Setup git hooks
pnpm husky install
echo "Development environment ready!"
Cross-Package Development
Work across multiple packages simultaneously.
Using workspace linking:
# All workspace packages automatically linked
pnpm install
# Verify links
pnpm list --depth 1
Development with watch mode:
{
"scripts": {
"dev:packages": "turbo run dev --filter='./packages/*'",
"dev:apps": "turbo run dev --filter='./apps/*'"
}
}
Concurrent development:
{
"scripts": {
"dev:all": "concurrently \"pnpm:dev:*\"",
"dev:ui": "pnpm --filter @myorg/ui run dev",
"dev:web": "pnpm --filter @myorg/web run dev",
"dev:api": "pnpm --filter @myorg/api run dev"
},
"devDependencies": {
"concurrently": "^8.2.2"
}
}
Hot Module Reloading
Enable fast refresh across package boundaries.
Vite configuration:
// apps/web/vite.config.ts
import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react';
export default defineConfig({
plugins: [react()],
server: {
watch: {
// Watch workspace packages
ignored: ['!**/node_modules/@myorg/**']
}
},
optimizeDeps: {
// Force optimize workspace packages
include: ['@myorg/ui', '@myorg/utils']
}
});
Next.js configuration:
// apps/web/next.config.js
const withTM = require('next-transpile-modules')([
'@myorg/ui',
'@myorg/utils'
]);
module.exports = withTM({
reactStrictMode: true,
experimental: {
esmExternals: 'loose'
}
});
Debugging Across Packages
Set up debugging for monorepo projects.
VS Code launch configuration:
{
"version": "0.2.0",
"configurations": [
{
"name": "Debug Web App",
"type": "node",
"request": "launch",
"runtimeExecutable": "pnpm",
"runtimeArgs": ["--filter", "@myorg/web", "run", "dev"],
"skipFiles": ["<node_internals>/**"],
"console": "integratedTerminal"
},
{
"name": "Debug API",
"type": "node",
"request": "launch",
"program": "${workspaceFolder}/apps/api/src/index.ts",
"preLaunchTask": "build-dependencies",
"outFiles": ["${workspaceFolder}/apps/api/dist/**/*.js"],
"sourceMaps": true
},
{
"name": "Debug Tests",
"type": "node",
"request": "launch",
"runtimeExecutable": "pnpm",
"runtimeArgs": ["test", "--", "--inspect-brk"],
"console": "integratedTerminal",
"internalConsoleOptions": "neverOpen"
}
]
}
Chrome DevTools debugging:
{
"scripts": {
"debug:web": "NODE_OPTIONS='--inspect' pnpm --filter @myorg/web run dev",
"debug:api": "NODE_OPTIONS='--inspect-brk' pnpm --filter @myorg/api run dev"
}
}
Testing Strategies
Comprehensive testing across monorepo packages.
Test organization:
packages/ui/
├── src/
│ ├── components/
│ │ ├── Button/
│ │ │ ├── Button.tsx
│ │ │ └── Button.test.tsx
│ │ └── Input/
│ │ ├── Input.tsx
│ │ └── Input.test.tsx
└── __tests__/
└── integration/
└── form.test.tsx
Shared test configuration:
// packages/test-config/jest.config.js
module.exports = {
preset: 'ts-jest',
testEnvironment: 'jsdom',
setupFilesAfterEnv: ['<rootDir>/jest.setup.ts'],
moduleNameMapper: {
'^@myorg/(.*)$': '<rootDir>/../../packages/$1/src'
},
collectCoverageFrom: [
'src/**/*.{ts,tsx}',
'!src/**/*.d.ts',
'!src/**/*.stories.tsx'
]
};
Package test scripts:
{
"scripts": {
"test": "jest",
"test:watch": "jest --watch",
"test:coverage": "jest --coverage",
"test:ci": "jest --ci --coverage --maxWorkers=2"
}
}
**Integratio
Установить monorepo-workflows в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
ReadWriteEditBashGlobGrepFAQ
Что делает скилл monorepo-workflows?
Use when setting up CI/CD, implementing versioning, optimizing workflows, or managing releases with monorepo development workflows including version management, publishing, and team collaboration practices.
Как установить скилл monorepo-workflows?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл monorepo-workflows запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
ci-review
The scan that the plugin's GitHub Action runs.
от Anthropicazure-static-web-apps
Helps create, configure, and deploy Azure Static Web Apps using the SWA CLI. Use when deploying static sites to Azure, setting up SWA local development…
от GitHubai-ready
Make any repo AI-ready — analyzes your codebase and generates AGENTS.md, copilot-instructions.md, CI workflows, issue templates, and more. Mines your PR…
от GitHubaws-cdk-python-setup
Setup and initialization guide for developing AWS CDK (Cloud Development Kit) applications in Python. This skill enables users to configure environment…
от GitHub