← スキル一覧に戻る

authoring-global-scripts
by jasonkuhrt
Opinionated Standard Lib for TypeScript
⭐ 5🍴 0📅 2025年12月29日
SKILL.md
name: authoring-global-scripts description: Authors and manages global package scripts using the _: prefix convention. Scripts defined in root package.json are propagated to all packages with the prefix stripped.
Authoring Global Scripts
Manage package scripts that apply to all packages in the monorepo.
Steps
Adding a Global Script
-
Add script to root
package.jsonwith_:prefix:{ "scripts": { "_:build": "tsgo -p tsconfig.build.json", "_:check:types": "tsgo --noEmit" } } -
Run the sync script at
.claude/skills/authoring-global-scripts/scripts/sync-package-scripts.ts
Auditing for Inconsistencies
Run with --check flag to verify all packages are in sync without modifying:
tsx .claude/skills/authoring-global-scripts/scripts/sync-package-scripts.ts --check
Reference
Convention
| Location | Format | Example |
|---|---|---|
| Root package.json | _:script-name | "_:build": "tsgo -p tsconfig.build.json" |
| Package package.json | script-name | "build": "tsgo -p tsconfig.build.json" |
The _: prefix marks scripts as "global templates". The sync script:
- Strips the prefix when copying to packages
- Replaces all package scripts (packages should not have custom scripts)
- Warns about extra scripts in packages that aren't in the template
Relative Paths
Relative paths like ../../oxlint.json are preserved as-is. They're relative from each package directory, so ../../ correctly points to the monorepo root from packages/*/.
Notes
- Packages should NOT have custom scripts - all scripts come from the global template
- If a package needs a unique script, reconsider whether it belongs as a global script
- Run audit (
--check) to catch manual edits that broke the pattern
スコア
総合スコア
50/100
リポジトリの品質指標に基づく評価
✓SKILL.md
SKILL.mdファイルが含まれている
+20
○LICENSE
ライセンスが設定されている
0/10
○説明文
100文字以上の説明がある
0/10
○人気
GitHub Stars 100以上
0/15
○最近の活動
3ヶ月以内に更新がある
0/10
○フォーク
10回以上フォークされている
0/5
○Issue管理
オープンIssueが50未満
0/5
✓言語
プログラミング言語が設定されている
+5
✓タグ
1つ以上のタグが設定されている
+5
レビュー
💬
レビュー機能は近日公開予定です


