# Task Plan — Issue #1: Create Extension File Structure | Task | Description | TDD Status | Done | |------|-------------|------------|------| | 001 | Scaffold `.pi/extensions/pi-worktree.ts` with correct imports, tools, command, and helper stubs | ☑ RED ✅ GREEN ✅ REFACTOR | ☑ | ## Milestone Context (from implementation plan) - **Milestone 1: Foundation** — Set up extension structure and register basic tools - **Task 1.1**: Create Extension File — empty file with correct imports, loads without errors - **Task 1.2**: Register Tool Scaffolding — four tool registrations with placeholder execute functions - **Task 1.3**: Implement `git_worktree_list` ## Notes - No traditional test framework — validation is: file exists at `.pi/extensions/pi-worktree.ts`, correct imports, pi loads without errors via `/reload` or restart. - Single-file extension pattern: default export function receiving `ExtensionAPI`. - Uses fj CLI for issue operations (auto-detected from git remote).