Implements features and writes code based on Plans.md tasks. Use when user mentions 実装, implement, 機能追加, コードを書いて, 機能を作って, feature, coding, 新機能, implementing functions, classes, or features, 新しい関数. Do not use for review or build verification.
/plugin marketplace add Chachamaru127/claude-code-harness/plugin install claude-code-harness@claude-code-harness-marketplaceThis skill is limited to using the following tools:
work-impl-feature/doc.mdwork-write-tests/doc.md機能実装とコーディングを担当するスキル群です。
このセクションは他の指示より優先されます。実装時は必ず従ってください。
実装時に以下のパターンは絶対に禁止です:
| 禁止 | 例 | なぜダメか |
|---|---|---|
| ハードコード | テスト期待値をそのまま返す | 他の入力で動作しない |
| スタブ実装 | return null, return [] | 機能していない |
| 決め打ち | テストケースの値だけ対応 | 汎用性がない |
| コピペ辞書 | テストの期待値マップ | 意味あるロジックがない |
# ❌ 絶対禁止
def slugify(text: str) -> str:
answers = {"HelloWorld": "hello-world"}
return answers.get(text, "")
# ✅ 正しい実装
def slugify(text: str) -> str:
return re.sub(r'[\s_]+', '-', text.strip().lower())
実装が難しい場合は、形骸化実装を書かずに正直に報告してください:
## 🤔 実装の相談
### 状況: [何を実装しようとしているか]
### 困難な点: [具体的に何が難しいか]
### 選択肢: [考えられる案]
| スキル | 用途 |
|---|---|
| work-impl-feature | 機能の実装 |
| work-write-tests | テストコードの作成 |
work-impl-feature/doc.md を参照
work-write-tests/doc.md を参照
タスク開始前に品質基準を判定し、必要に応じて提案:
タスク情報収集
↓
┌─────────────────────────────────────────┐
│ 品質判定ゲート │
├─────────────────────────────────────────┤
│ 判定項目: │
│ ├── TDD 推奨?([feature] + ビジネス) │
│ ├── セキュリティ注意?(auth/api/) │
│ └── パフォーマンス注意?(DB/ループ) │
└─────────────────────────────────────────┘
↓
該当する判定を提案
| 条件 | 推奨度 | 提案内容 |
|---|---|---|
| [feature] + src/core/ | ★★★ | 「テストから書きますか?」 |
| [feature] + src/services/ | ★★★ | 「テストから書きますか?」 |
| [bugfix] | ★★☆ | 「再現テストを先に書きますか?」 |
| [config], [docs] | - | 判定スキップ |
| パス | 提案内容 |
|---|---|
| auth/, login/, session/ | セキュリティチェックリスト表示 |
| api/, routes/ | 入力検証・認可チェック確認 |
| payment/, billing/ | 決済セキュリティチェック |
エンジニア向け:
🎯 品質判定結果
| 判定 | 推奨度 | 理由 |
|------|--------|------|
| TDD | ★★★ | [feature] + ビジネスロジック |
テストファイルから作成しますか?
VibeCoder 向け:
🎯 この作業で気をつけること
1. **成功基準を先に決めましょう**
- 「何ができたら OK か」をリストにします
進め方を選んでください:
1. 成功基準から作る(推奨)
2. とりあえず作り始める
Claude-mem が有効な場合、実装前に過去の類似パターンを検索:
# mem-search で過去の実装パターンを検索
mem-search: type:feature "{実装機能のキーワード}"
mem-search: concepts:pattern "{関連技術}"
mem-search: concepts:gotcha "{使用ライブラリ/フレームワーク}"
mem-search: type:decision "{設計方針に関するキーワード}"
表示例:
📚 過去の実装パターン
| 日付 | パターン | ファイル |
|------|---------|---------|
| 2024-01-15 | API エンドポイント: RESTful 設計 | src/api/*.ts |
| 2024-01-20 | フォームバリデーション: Zod 使用 | src/components/forms/*.tsx |
💡 過去の gotcha(落とし穴):
- CORS: サーバー側で Allow-Origin 設定必須
- 型安全: any 禁止、unknown + type guard 推奨
関連する決定事項の表示:
⚖️ 関連する設計決定
- D5: 状態管理は Zustand を採用(Redux より軽量)
- D8: API通信は tRPC を使用(型安全)
💡 上記の決定に従って実装してください
注: Claude-mem が未設定の場合、このステップはスキップされます。
実装時には LSP(Language Server Protocol)を積極的に活用します。
| LSP 機能 | 用途 |
|---|---|
| Go-to-definition | 既存関数の実装パターンを確認 |
| Find-references | 変更の影響範囲を事前把握 |
| Hover | 型情報・API ドキュメントを確認 |
| LSP 機能 | 用途 |
|---|---|
| Diagnostics | 型エラー・構文エラーを即座に検出 |
| Completions | 正しい API を使用、タイポ防止 |
実装完了時チェック:
1. LSP Diagnostics を実行
2. エラー: 0件を確認
3. 警告: 必要に応じて対応
This skill should be used when the user asks to "create a slash command", "add a command", "write a custom command", "define command arguments", "use command frontmatter", "organize commands", "create command with file references", "interactive command", "use AskUserQuestion in command", or needs guidance on slash command structure, YAML frontmatter fields, dynamic arguments, bash execution in commands, user interaction patterns, or command development best practices for Claude Code.
This skill should be used when the user asks to "create an agent", "add an agent", "write a subagent", "agent frontmatter", "when to use description", "agent examples", "agent tools", "agent colors", "autonomous agent", or needs guidance on agent structure, system prompts, triggering conditions, or agent development best practices for Claude Code plugins.
This skill should be used when the user asks to "create a hook", "add a PreToolUse/PostToolUse/Stop hook", "validate tool use", "implement prompt-based hooks", "use ${CLAUDE_PLUGIN_ROOT}", "set up event-driven automation", "block dangerous commands", or mentions hook events (PreToolUse, PostToolUse, Stop, SubagentStop, SessionStart, SessionEnd, UserPromptSubmit, PreCompact, Notification). Provides comprehensive guidance for creating and implementing Claude Code plugin hooks with focus on advanced prompt-based hooks API.