Agent Skill
2/7/2026

code-with-task

Implements a task from spec/tasks in a git worktree following TDD. Use when working on a specific task by keyword.

N
ncukondo
0GitHub Stars
1Views
npx skills add ncukondo/search-hub

SKILL.md

Namecode-with-task
DescriptionImplements a task from spec/tasks in a git worktree following TDD. Use when working on a specific task by keyword.

name: code-with-task description: Implements a task from spec/tasks in a git worktree following TDD. Use when working on a specific task by keyword.

Task Implementation: $ARGUMENTS

spec/tasks内の [prefix]-*$ARGUMENTS*.md に一致するタスクファイルの実装に取り組みます。

Prerequisites

まず以下を確認:

  • CLAUDE.md
  • spec/README.md

Worktree Setup

作業はgit worktree内で行います:

# worktree作成(ブランチがなければ自動作成)
git worktree add /workspaces/search-hub--worktrees/<branch-name> -b <branch-name>
cd /workspaces/search-hub--worktrees/<branch-name>
npm install

パス規則: worktreeは必ず /workspaces/search-hub--worktrees/ 内に作成

Implementation Flow

TDD Cycle

  1. Red: 失敗するテストを書く
  2. Green: テストを通す最小限の実装
  3. Refactor: リファクタリング
  4. 各ステップ完了後にcommit

Progress Tracking

  • ステップ完了毎にcommit
  • 次の作業前にcontext残量を確認
  • compact が必要になりそうなら作業を中断して報告

Completion Checks

npm run test:all
npm run lint
npm run typecheck

PR Creation

全テスト通過後:

gh pr create --title "feat: ..." --body "..."

Work Boundaries

並列作業時のconflict回避のため:

  • worktree内での作業: 実装 → テスト → PR作成まで
  • マージ後にmainブランチで: ROADMAP.md更新とタスクファイル移動
Skills Info
Original Name:code-with-taskAuthor:ncukondo