本文へスキップ
Skillpedia
デプロイとクラウド(DevOps)10k · #12001

speckit-git-initialize

できること

このスキルは、プロジェクトのフォルダでGitのリポジトリを始め、最初のファイル群を保存します。最初からバージョンの履歴を持ちたい、新しいプロジェクトを始める人向けです。

使う場面

  • ✓新しいプロジェクトのフォルダを作り、最初からGitで追跡したいとき。
  • ✓プロジェクトのフォルダがまだバージョン管理の下にないとき。
  • ✓プロジェクトのファイルで、最初のコミットを自動で作ってほしいとき。

スキルのリンク

https://github.com/unoplatform/uno/blob/master/.claude/skills/speckit-git-initialize/SKILL.md

コピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。

使い方

いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。

貼り付け用メッセージ

このスキルを使って手伝ってください:https://github.com/unoplatform/uno/blob/master/.claude/skills/speckit-git-initialize/SKILL.md このリンクのSKILL.mdファイルを読んで、私の作業でその指示に従ってください。
こういうスキルを、AIが自分で見つけてくれたら?無料のSkillpedia MCPをインストール。1行で、作業の前に15,000+のスキルから探してくれます。1分でインストール →

AIへの頼み方の例

“この新しいプロジェクトのフォルダにGitを設定し、現在のファイルで最初のコミットを作ってください。”

毎週5つの新しいスキル。1分で読めます。

仕組み

このスキルは、Gitがあるかと、フォルダがすでにリポジトリかを確認します。そうでなければ、リポジトリを始め、ファイルを追加して、最初のコミットを作ります。

技術的な内容(元のSKILL.md)

作者による元のテキスト(英語)をGitHubからそのまま表示しています。

Initialize Git Repository

Initialize a Git repository in the current project directory if one does not already exist.

Execution

Run the appropriate script from the project root:

  • Bash: .specify/extensions/git/scripts/bash/initialize-repo.sh
  • PowerShell: .specify/extensions/git/scripts/powershell/initialize-repo.ps1

If the extension scripts are not found, fall back to:

  • Bash: git init && git add . && git commit -m "Initial commit from Specify template"
  • PowerShell: git init; git add .; git commit -m "Initial commit from Specify template"

The script handles all checks internally:

  • Skips if Git is not available
  • Skips if already inside a Git repository
  • Runs git init, git add ., and git commit with an initial commit message

Customization

Replace the script to add project-specific Git initialization steps:

  • Custom .gitignore templates
  • Default branch naming (git config init.defaultBranch)
  • Git LFS setup
  • Git hooks installation
  • Commit signing configuration
  • Git Flow initialization

Output

On success:

  • ✓ Git repository initialized

Graceful Degradation

If Git is not installed:

  • Warn the user
  • Skip repository initialization
  • The project continues to function without Git (specs can still be created under specs/)

If Git is installed but git init, git add ., or git commit fails:

  • Surface the error to the user
  • Stop this command rather than continuing with a partially initialized repository
よくある質問

フォルダがすでにリポジトリだった場合はどうなりますか?

このスキルは設定を飛ばすため、既存のリポジトリは変更しません。

Gitがインストールされていない場合はどうなりますか?

このスキルは警告し、作業を続けます。プロジェクトはGitなしでも動きます。

設定をカスタマイズできますか?

はい。スクリプトを、.gitignoreのテンプレートや署名の設定などの手順を追加するように置き換えられると、内容は述べています。

詳細

作者による元の説明

Initialize a Git repository with an initial commit

repo: unoplatform/uno

人気

GitHubのスター
10k
ランキング
#12001
ライセンス
Apache-2.0
更新日
2026/11/2

このスキルは役に立ちますか?

0

ログイン して投票しましょう。

コメント

  • …

このリポジトリの他のスキル

似ているスキル