Skip to main content

package-architect

Design and maintain TypeScript packages in a monorepo, including exports and build configuration. Use when creating or restructuring monorepo packages, defining package.json exports, or setting up tsconfig references.

ソース情報

リポジトリ
shipshitdev/shipcode
ソースの最終更新活動
2026年7月10日 11:20
検出された SKILL.md の言語
英語
スター
7
フォーク
1

インストール方法

デフォルトでは、最初にソースを確認する Prompt が選択されています。直接コマンドに切り替えるか、ローカルコピーをダウンロードすることもできます。

ソースファイルを確認

インストールを決める前に、SKILL.md と SkillsMP に表示されている付属ファイルをお読みください。

ファイルエクスプローラー
2 ファイル

SKILL.md を表示中

SKILL.md
ソースの指示 · 読み取り専用プレビュー
name
package-architect
description
Design and maintain TypeScript packages in a monorepo, including exports and build configuration. Use when creating or restructuring monorepo packages, defining package.json exports, or setting up tsconfig references.
metadata
{"version":"1.0.0","tags":"packages, monorepo, typescript"}
# Package Architect Design reusable TypeScript packages in monorepos (Bun, pnpm, or npm workspaces). ## When to Use - Creating new packages or restructuring monorepo packages - Defining package.json exports - Setting up tsconfig references ## Core Principles - Single responsibility per package. - Stable public APIs with clear exports. - Avoid inline interfaces; centralize types. - Keep build outputs separated from sources. ## Package Structure (Example) ``` packages/ utils/ src/ package.json tsconfig.json api-client/ src/ package.json tsconfig.json ``` ## Exports Pattern (Example) ```json { "name": "@scope/utils", "main": "dist/index.js", "types": "dist/index.d.ts", "exports": { ".": { "import": "./dist/index.js", "types": "./dist/index.d.ts" } } } ``` ## TypeScript References - Use project references for inter-package dependencies. - Prefer path aliases for local dev imports. - Keep tsconfig base shared across packages. ## Checklist - Exports map matches intended public API - Types build alongside JS output - No circular dependencies - Consistent lint and tsconfig settings
GitHubで見る