本文へ移動
cccskills
無料GitHub で公開日本語紹介

new-feature

機能追加や修正に着手する前に、作業ごとのGit worktreeとブランチを用意し、既存の担当作業や変更範囲を確認して安全に編集を進めます。

原文原文の説明を見る

Isolate repository edits in a Git worktree before starting a feature, fix, or documentation change. Preserve a worktree already assigned to the same task. Read-only reviews and investigations do not need a new worktree.

michaelshimeles/rstackスター 1,392(GitHub 1,392 + cccskills 0)
連携ツールGitHub

実行スコア 未検証

インストール方法を見る

こんなときに便利

  • 機能追加を専用ブランチで始めたいとき
  • 共有チェックアウトを保って修正したいとき
  • 既存PRとの変更範囲を確認したいとき
  • ドキュメント変更を分けて進めたいとき

日本語での紹介

できること

機能追加、バグ修正、ドキュメント変更を始める前に、作業専用のGit worktreeとブランチを用意します。まず既存のworktreeやブランチ、作業の割り当てを確認し、同じ作業用の環境がすでにあればそのまま使います。新しく始める場合は、指定がなければ最新の origin/main を起点にします。開いているPRの変更ファイルも調べ、共有箇所で競合や他の作業への依存がないかを確認します。

こんなときに便利

複数の機能や修正を並行して進めるとき、共有チェックアウトへの未コミット変更を保ちながら別の作業に取り組みたいときに役立ちます。読み取りだけのレビューや調査では、新しいworktreeを作らず既存のチェックアウトを使えます。

使い方の例

  • 「この機能追加用に、作業を分けるworktreeを準備してください」
  • 「修正を始める前に、既存PRと変更範囲が重ならないか確認してください」

注意点

Gitとリモートへのアクセスが必要です。PRの確認にはGitHubなら gh を使い、別のホスティングサービスでは同等のPR/MRツールを使います。worktreeは開発サーバーのポートや共有データベースを分離しません。

この紹介文は、公開されている SKILL.md をもとに AI(OpenAI Codex)が作成しました。正確な仕様は下の原文を確認してください。

含まれるファイル(1)

  • SKILL.md3.0 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

New Feature

Each editing task gets its own worktree and branch, created from the latest origin/main unless the user specifies a different base. Read-only work can use the existing checkout. Never build on main or reuse another task's work.

Check existing isolation first

Inspect git worktree list, git status --short, the current branch, and the session's task assignment. If the environment already created a worktree for this task, keep its path and branch and skip steps 3 and 4. In step 5, use the actual assigned path. Do not infer isolation from the editor name or a branch prefix alone. Otherwise follow all steps.

Steps

  1. Sync: git fetch origin.

  2. Scope check: run gh pr list and skim the open PRs' changed files (gh pr diff <n> --name-only). For shared files, read the overlapping diffs. Independent edits may proceed in your own worktree. Ask for direction only when the changes conflict in behavior, require another task's unfinished work, or ownership is unclear. Check shared checkouts for uncommitted work without changing it. On another hosting platform, use its equivalent PR/MR tools; if unavailable, report the scope-check limitation and still isolate.

  3. Name the task: lowercase-with-hyphens plus a short unique suffix, e.g. user-auth-0816a. If git worktree add fails because the name exists, pick a different name — never force or reuse.

  4. Create the worktree from the repo root:

    git worktree add <worktrees-dir>/<task-name> \
      -b <branch-prefix>/<task-name> origin/main
    

    Use a directory outside the checkout, or a gitignored directory inside it, so worktrees cannot be committed by accident. Use a consistent branch prefix (e.g. agent/). Follow the repo's conventions if it defines them.

  5. Enter and verify:

    cd <worktrees-dir>/<task-name>
    git branch --show-current   # must print your new branch, not main
    

    Confirm the required runtime version. Install dependencies inside the worktree when needed for the task's checks. Documentation-only work does not require installing an unrelated application toolchain.

Remember

  • Worktrees do not isolate dev-server ports or shared databases. Tracked dependency lockfiles are separate in each worktree. Confirm a port answers your process (lsof -i :<port>) before trusting what it serves, and resolve lockfile conflicts by regenerating, never by hand-merging.

  • Keep the worktree until the PR is merged or closed. Cleanup after merge:

    git worktree remove <worktrees-dir>/<task-name>
    git branch -D <branch-prefix>/<task-name>
    

    -D is expected: after a squash- or rebase-merge, -d refuses even though the work is merged.

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

コメント

ログインなしで書き込めます。使ってみた感想、質問、動かなかった環境などを気軽にどうぞ。

まだコメントはありません。最初のコメントを書いてみませんか。

送信するとすぐに公開されます。メールアドレスや電話番号などの個人情報は書かないでください。URL は 2 つまでです。

0 / 1000 文字

このフォームは reCAPTCHA で保護されており、Google のプライバシーポリシーと利用規約が適用されます。

同じリポジトリのスキル

before-and-after

無料概要あり

Webページや画像の変更前後を同じ条件で撮影し、画面の差を比べるためのスクリーンショットと、必要に応じて共有用Markdownを作成します。

  • UI変更の前後を比較したいとき
  • PR用の画面比較資料を作りたいとき
  • 特定のページ要素だけ撮影したいとき
michaelshimeles/rstack1,3922026年10月26日 更新

code-structure

無料概要あり

複数の機能で重複する処理を整理し、業務ルールを担うアクションと再利用できる処理を担うサービスの分け方や移行手順を示します。

  • 重複した処理を共通化すべきか判断したいとき
  • 業務ルールと共通処理の置き場所を整理したいとき
  • 複数の呼び出し元を段階的にリファクタリングしたいとき
michaelshimeles/rstack1,3922026年10月26日 更新

evidence-driven-testing

無料概要あり

アプリの操作や変更後の動作を確かめ、画面録画やスクリーンショット、測定結果などの証拠をまとめて、指定先に結果を届けます。

  • UI操作を録画して動作を示したいとき
  • GUIなしで画面の状態を検証したいとき
  • APIや性能の変更を数値で確かめたいとき
michaelshimeles/rstack1,3922026年10月26日 更新

greploop

無料概要あり

PRやMRに寄せられたGreptileの指摘を確認し、対象を絞った修正と再レビューを繰り返して、現行リビジョンの評価と未対応事項を整理します。

  • PRのGreptile指摘を修正したいとき
  • MRのレビューを再依頼して確認したいとき
  • Perforceの変更をレビューしたいとき
michaelshimeles/rstack1,3922026年10月26日 更新

greploop-apps

無料概要あり

通常のトリガーで大きなPRを処理できない場合に、`greploop` のワークフローを `@greptile-apps` トリガーで実行する互換用エントリーポイントです。

  • 大きなPRをGreptile Appsで処理したいとき
  • 通常のトリガーで扱えないPRをレビューしたいとき
  • 既存のgreploopワークフローを指定トリガーで実行
michaelshimeles/rstack1,3922026年10月26日 更新

unslop

無料概要あり

コミット文やPR、ドキュメント、返信など、人が読む文章からAIらしい定型表現を取り除き、意味と口調を保ちながら具体的で自然な文に整えます。

  • PR本文を自然な文に整えたいとき
  • コミットメッセージを推敲したいとき
  • ドキュメントの定型表現を減らしたいとき
michaelshimeles/rstack1,3922026年10月26日 更新

michaelshimeles のスキルをすべて見る

このスキルの問題を報告する