add-npm-package
Freemodules/npm/packages/ に新しい npm/pnpm パッケージを追加するスキル
The English summary is being prepared. Showing the original description.
install/ 配下に新しいセットアップ用シェルスクリプトを追加するスキル
The English summary is being prepared. Showing the original description.
See how to installReview the instructions the agent will receive before you install.
install/ 配下に冪等なセットアップ用シェルスクリプトを追加し、必要に応じて setup.sh に組み込む。
install/common/: OS に依存しない処理install/ubuntu/: Ubuntu / Debian 固有の処理以下のテンプレートをベースに対象ファイルを作成する。
#!/usr/bin/env bash
# <スクリプトの説明>
# Usage: ./install/<type>/<name>.sh
set -euo pipefail
# 冪等性チェック: 処理済みなら早期終了
if <already_done_condition>; then
echo "<name>: already done. Skipping."
exit 0
fi
# 本処理
必須ルール:
#!/usr/bin/env bash を使うset -euo pipefail を入れるexit 0 する[ "${CI:-}" = "true" ] を使うchmod +x install/<type>/<name>.sh
git は実行ビットを追跡するため、実行権限を付与した状態でコミットする。
shellcheck install/<type>/<name>.sh
警告とエラーを解消する。
setup.sh に組み込むセットアップフローに含める場合は該当する setup.sh に追記する。
echo "==> <説明>..."
"$REPO_DIR/install/<type>/<name>.sh"
必要に応じて関連するセットアップフローを確認し、コミットが必要なら git-commit 系のスキルや通常の git 手順を使う。
sudo が必要な処理は CI でスキップする: [ "${CI:-}" = "true" ] && { echo "skip in CI"; exit 0; }command -v <cmd> で存在確認するREPO_DIR が必要なら REPO_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/../../.." && pwd)" のように階層に応じて組み立てるecho より printf の方が shellcheck 的に安全な場面があるNo reviews yet. Tell others what you thought.
No login needed. Share how it worked for you, ask a question, or note where it did not run.
No comments yet. Be the first to write one.
modules/npm/packages/ に新しい npm/pnpm パッケージを追加するスキル
The English summary is being prepared. Showing the original description.
GitHub issue を新規作成・下書きするとき、または既存 issue の本文を書き直すときに必ず使うスキル。「issue を作って」「issue 化して」「これを issue にまとめて」のような依頼で発火し、`gh issue create` を直接呼ぶ前に必ず参照する。人間が合意した内容だけを、意味を足さずに issue へ残すための基準を定める。
The English summary is being prepared. Showing the original description.
GitHub に Pull Request を作成するスキル。ユーザーが「PRを作って」「プルリクエストを出して」「PR作成して」と言ったとき、またはコミット済みの変更をレビューに出したいときに使用する。
The English summary is being prepared. Showing the original description.
ドメインモデル、可視性、操作可能性、不変条件、層境界、API 設計に関わる実装時に使う。不正な状態や誤った呼び出し方を、型、関数の境界、ドメイン語彙で表し、正しい使い方が自然になる設計へ寄せるためのスキル。
The English summary is being prepared. Showing the original description.
コミットやPR作成の前に、作業ブランチが適切かどうかを確認・切り替えるスキル。git-commit や create-pr からサブルーチンとして呼び出される。
The English summary is being prepared. Showing the original description.
コードを実装・修正・リファクタリングするすべてのタスクで使うスキル。純粋関数を中心に設計し、副作用(DB、HTTP、ファイル、時刻、乱数、ログなど)を境界へ寄せ、データ変換、エラー表現、コレクション操作、可変状態の扱いを既存コードに合う形で整理する。ユーザーが明示的に指示しなくても、言語を問わず、コードを書き始める前に発火する。設定値やドキュメントだけの変更では不要。
The English summary is being prepared. Showing the original description.