Communitygithub.com

YepAPI/skills

Turborepo 單一儲存庫 — 共用套件、建置快取、Pipeline 設定。

skills 是什麼?

此技能定義了 Turborepo 單一儲存庫 (Monorepo) 的開發規則與慣例。它描述如何透過 `turbo.json` 設定 Pipeline 來協調任務,並利用工作空間 (Workspaces) 組織應用程式 (`apps/`) 與共用套件 (`packages/`)。此規則集強制要求共用 TypeScript 與 ESLint 設定,避免應用程式間的直接引用,並禁止對內部套件進行建置步驟,從而實現高效的快取與路徑別名。瞭解這份指南能協助開發者維持一致的建置管道、減少重複的相依性,並確保專案能隨規模擴張而保持穩定性。

相容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/YepAPI/skills/tree/HEAD/skills/monorepo

在你喜歡的 AI 中提問

開啟一個已預先載入此 Agent Skill 的新對話。

說明文件

Monorepo

規則

  • 使用 Turborepo 進行任務協調 — turbo.json 定義了 Pipeline
  • package.json 中的工作空間設定:"workspaces": ["apps/*", "packages/*"]
  • 共用套件位於 packages/ — UI 元件、設定檔、型別
  • 應用程式位於 apps/ — web、api、mobile 等
  • 內部套件使用 "main": "./src/index.ts" — 無需建置步驟
  • turbo.json Pipeline:定義 dependsOn、outputs、cache
  • 共用 tsconfig:packages/config-typescript/ 由所有套件繼承
  • 共用 ESLint 設定:packages/config-eslint/

避免

  • 應用程式之間直接引用 — 應使用共用套件
  • 不同套件中使用不同版本的相同相依性 — 應使用 pnpm overrides
  • 在 turbo pipeline 中遺漏 dependsOn — 會導致過時建置
  • 建置內部套件 — 應使用 TypeScript 路徑別名或 main: ./src/index.ts

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

YepAPI/skills

WCAG 2.1 AA — semantic HTML, keyboard navigation, screen readers.

YepAPI/skills

Experiment setup, variant splitting, statistical significance, and feature flag integration.

YepAPI/skills

CRUD generators, data tables, user management, role-based access, and bulk operations.

YepAPI/skills

Monitor what ChatGPT and Gemini say about your brand using YepAPI.

YepAPI/skills

Queue workers with BullMQ/Inngest/Trigger.dev, job retries, dead letter queues, concurrency.

YepAPI/skills

Commander.js, interactive prompts with Clack, spinners, colors, config files, exit codes, and npm publishing.

YepAPI/skills

cmdk integration, Cmd+K trigger, fuzzy search, grouped actions, keyboard navigation, and dynamic action registration.

YepAPI/skills

Content planning with trend and sentiment data from YepAPI.

YepAPI/skills

Content calendar, keyword-driven planning, and content briefs.

YepAPI/skills

Theme switching with CSS variables, system preference detection, next-themes, and persistence.

YepAPI/skills

Threaded comments, @mentions, reactions, moderation queue, optimistic UI, and cursor pagination.

YepAPI/skills

Competitive analysis between domains using YepAPI.

YepAPI/skills

Layout grids, KPI cards, data tables with sorting/filtering, sidebar navigation, and responsive breakpoints.

YepAPI/skills

Data encryption — TLS everywhere, AES-256-GCM for PII, bcrypt passwords, encrypted backups.

YepAPI/skills

Chart patterns with Recharts/Nivo/D3, responsive containers, color scales, and accessibility.

YepAPI/skills

Drizzle schema definition, push vs migrate, type-safe queries, relations, transactions, and prepared statements.

YepAPI/skills

Upload handling, resize/compress, CDN delivery, blur placeholders, and next/image patterns.

YepAPI/skills

Local business and Google Maps research using YepAPI.

YepAPI/skills

Cursor-based pagination, IntersectionObserver, virtualized lists with @tanstack/react-virtual, and scroll position restoration.

YepAPI/skills

Chat UI components, streaming responses with AI SDK, context window management, and RAG patterns.

相關技能