本文へ移動
cccskills
無料GitHub で公開

monorepo-setup

Monorepo decisions: tool choice, package structure, dependency management, build pipeline, CI caching, versioning.

日本語の概要は準備中です。原文の説明を表示しています。

SebastianLuser/claude-code-arcaneスター 3(GitHub 3 + cccskills 0)

実行スコア 未検証

インストール方法を見る

含まれるファイル(2)

  • SKILL.md2.7 KB
  • references/anti-patterns-and-checklist.md991 B

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

monorepo-setup — Monorepo Structure & Tooling

Monorepo vs Polyrepo

Use monorepo: apps share code (UI kit, SDK, types), need atomic cross-app refactors, frontend + mobile share logic. Stay polyrepo: apps have nothing in common, independent teams with incompatible toolchains, single isolated service.

Tool Choice

ToolWhenTrade-off
pnpm workspacesAlways as base layerMinimal, fast, workspace:*. No task runner
TurborepoDefault for TS monoreposLocal+remote cache, simple pipelines
NxLarge teams, many apps, generatorsPowerful but steeper curve
LernaNever for new projectsSuperseded

Package Structure

  • apps/ — deployable applications (web, mobile, admin)
  • packages/ui/ — shared components (no route/auth deps). Use exports subpaths
  • packages/sdk/ — API client generated from OpenAPI. Stateless, auth via factory
  • packages/types/ — shared types, ideally generated from backend schema
  • packages/config/ — shared ESLint/TS/Prettier configs
  • Root: pnpm-workspace.yaml, turbo.json, tsconfig.base.json

Dependency Boundaries

  • apps → packages OK. packages → packages OK (DAG, no cycles). packages → apps PROHIBITED.
  • Enforce with eslint-plugin-boundaries or @nx/enforce-module-boundaries

Dependency Management

  • Single version policy: same React/TS/Vite across repo via pnpm.overrides
  • Internal packages: always workspace:* protocol. Never publish private packages to npm
  • Updates: Renovate with grouped PRs (preferred), or pnpm up -r

Build Pipeline (Turborepo)

  • build: dependsOn: ["^build"], outputs: dist/**
  • lint/typecheck: no outputs. test: outputs: coverage/**
  • dev: cache: false, persistent: true
  • Filter single app: --filter=web... | Affected only: --filter=...[origin/main]
  • Remote cache (Turbo Cloud or self-hosted) shares between devs + CI

CI Strategy

Only build/test what changed. Use --filter=...[origin/main] + remote cache + job matrix per app.

Time targets: 1-app PR < 2 min, shared-package PR < 8 min, full cold < 15 min.

Versioning

ArtifactStrategy
AppsContinuous deploy, tag: web-v2025.04.14
Public libsChangesets, strict semver
Private libsworkspace:*, no versioning

→ Read references/anti-patterns-and-checklist.md for anti-patterns list and setup checklist

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

コメント

ログインなしで書き込めます。使ってみた感想、質問、動かなかった環境などを気軽にどうぞ。

まだコメントはありません。最初のコメントを書いてみませんか。

送信するとすぐに公開されます。メールアドレスや電話番号などの個人情報は書かないでください。URL は 2 つまでです。

0 / 1000 文字

このフォームは reCAPTCHA で保護されており、Google のプライバシーポリシーと利用規約が適用されます。

同じリポジトリのスキル

Plan, design, and implement A/B tests and experiments with statistical rigor. Covers hypothesis frameworks, sample sizing, metrics, and result analysis.

日本語の概要は準備中です。原文の説明を表示しています。

SebastianLuser/claude-code-arcane32026年10月29日 更新

Web/mobile accessibility decision guide: WCAG 2.2 AA, ARIA, keyboard nav, focus management, contrast, testing. Use for: a11y, accessibility, wcag, aria, screen reader, keyboard, contrast.

日本語の概要は準備中です。原文の説明を表示しています。

SebastianLuser/claude-code-arcane32026年10月29日 更新

Generate, iterate, and scale ad creative for paid advertising across Google, Meta, LinkedIn, and X. Covers platform specs, creative frameworks, and quality validation.

日本語の概要は準備中です。原文の説明を表示しています。

SebastianLuser/claude-code-arcane32026年10月29日 更新

Interactive music for games: vertical layering, horizontal re-sequencing, stingers, transition rules with sync points, and mapping gameplay states to music. Use for: adaptive music, dynamic music system, musical transitions, combat music.

日本語の概要は準備中です。原文の説明を表示しています。

SebastianLuser/claude-code-arcane32026年10月29日 更新

Design multi-agent systems, create agent architectures, define communication patterns, and build autonomous agent workflows with structured evaluation frameworks.

日本語の概要は準備中です。原文の説明を表示しています。

SebastianLuser/claude-code-arcane32026年10月29日 更新

Inter-agent communication protocol for C-suite agent teams. Defines invocation syntax, loop prevention, isolation rules, response formats, and quality loops.

日本語の概要は準備中です。原文の説明を表示しています。

SebastianLuser/claude-code-arcane32026年10月29日 更新

SebastianLuser のスキルをすべて見る

このスキルの問題を報告する