Commit Graph

114 Commits

Author SHA1 Message Date
toyota 1d8103be4d docs: add index auto-derivation from apiOptions to step 6
🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-10 11:16:51 +09:00
toyota cb338bd642 docs: add onDelete-based foreign key constraints to step 5
🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-10 11:16:51 +09:00
toyota 2adc0a3e21 docs: add OpenAPI parameter generation from apiOptions to step 4
🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-10 11:16:51 +09:00
toyota 3404e459c0 docs: add auto-derivation from apiOptions/relationOptions to step 3
🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-10 11:16:51 +09:00
toyota d739ce9559 docs: add apiOptions/relationOptions confirmation to step 1
🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-10 11:16:51 +09:00
toyota 867f48c7b3 feat: add apiOptions, relationOptions and useCase details to JSON spec
🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-10 11:16:51 +09:00
Pregum 0ce3036801 feat: add UserPromptSubmit hook for direct slash command tracking
- Add user_prompt_command_counter.js to detect slash commands in user prompts
- Update hooks.json with UserPromptSubmit hook configuration
- Records events with source: "user_prompt" to distinguish from tool invocations

This enables tracking when users directly type slash commands (e.g., /command),
which previously wasn't captured by the PostToolUse SlashCommand hook.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-09 15:16:07 +09:00
Pregum 65dc3192f1 feat: add slash command usage tracking
- Add slash_command_counter.js hook to record SlashCommand tool usage
- Update hooks.json to trigger counter on PostToolUse for SlashCommand
- Enhance skill-stats.js to display both skill and command statistics
- Add reset option to skill-stats.js for clearing usage data

Note: This only tracks when Claude programmatically invokes slash
commands via the SlashCommand tool, not direct user input.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-09 15:09:30 +09:00
Pregum a8b5d3cc57 fix: remove error details from log messages to prevent info leakage
- Remove error.message from loadEventsData() catch block
- Remove error.message from saveEventsData() catch block
- Remove redundant main().catch() handler (already handled inside main)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-09 14:40:25 +09:00
Pregum f910df823c fix: add event validation and update descriptions to match implementation
- Add validation for event.skill in skill_usage_sender.js
- Update plugin.json description to reflect local-only storage
- Update marketplace.json description and features to match current implementation

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-09 14:27:08 +09:00
Pregum 02fd4e0b7e fix: add error handling and async I/O, add privacy section
- Add catch handler to main() for unhandled promise rejections
- Use fs.promises for async file I/O operations
- Add privacy and data handling section to README

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-09 14:27:08 +09:00
Pregum 3dbc883ab4 chore: remove unused sendRegistration.js
🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-09 14:27:08 +09:00
Pregum 989a99b5d0 docs: update README with collected data details and troubleshooting
- Add table explaining collected data (git config, context info)
- Document /skill-stats custom command
- Add troubleshooting for permission denied errors
- Note that Stop hook doesn't work with Ctrl+C

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-09 14:27:08 +09:00
Pregum 9c7c52ed2e feat: add skill-stats command for usage summary
- Add bin/skill-stats.js for displaying skill usage statistics
- Add commands/skill-stats.md as custom slash command

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-09 14:27:08 +09:00
Pregum 2f9f9fc8c7 feat: add skill usage tracking with timestamp and user info
- Enhance skill_usage_counter.js to record detailed event data
  - Timestamp, user info (git config), context (project, branch, hostname)
- Add skill_usage_sender.js for Stop hook to display usage summary
- Update hooks.json to include Stop hook
- Simplify README for current feature scope

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-09 14:27:08 +09:00
Pregum ce2b6c858f refactor: simplify skill-usage-tracker plugin configuration
- Remove tools configuration from plugin.json (keep hooks only)
- Move sendRegistration.js from tools/ to root directory

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-09 14:27:08 +09:00
Pregum d19eddbf34 Add skill-usage-tracker plugin for monitoring skill invocations
This plugin provides two main features:
1. Automatic skill usage counting via PostToolUse hook
2. Custom command to send registration data with usage statistics

Features:
- Tracks skill invocations automatically through PostToolUse hook
- Stores usage counts in ~/.claude/hooks/state/skill_usage_counts.json
- Provides sendRegistration command to POST data to external services
- Configurable endpoint URL via environment variables or CLI args
- Combines user payload with skill usage statistics

Technical details:
- Requires Node.js 18.0.0+ (for native fetch API support)
- Hook matcher: "Skill" tool
- Data persistence: JSON file storage
- Executable scripts with proper permissions

Author: HINO, Yasushi <y.hino@xtone.co.jp>

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-09 14:27:07 +09:00
Pregum ec650687fb Merge pull request #8 from xtone/feature/add-flutter-widget-assistant
Add Flutter Widget Implementation Assistant plugin
2025-12-08 11:35:12 +09:00
かたなか f4d9db25d7 Merge pull request #12 from xtone/feature/add-android-test-runner-generic
feat: Add android-test-runner v1.0 (generic version)
2025-12-05 09:51:49 +09:00
Pregum 5568aa6dd8 Add marketplace.json for flutter-development plugin
スキルを含むプラグインに必要なmarketplace.jsonを追加

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-03 12:51:40 +09:00
Pregum 3854a95e5a Fix author name: HINO, Yusaku -> HINO, Yasushi
🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-03 12:51:40 +09:00
Pregum 680000225e Add Flutter Widget Implementation Assistant plugin
Flutter開発向けのインタラクティブなWidget実装アシスタントを追加しました。

主な機能:
- インタビュー形式でWidget実装の要件を収集
- 3つの質問を通じて最適なアーキテクチャを決定
  1. 状態管理の必要性 (StatefulWidget vs StatelessWidget)
  2. Widget種別 (Screen vs Component)
  3. 状態共有の判断 (Riverpod使用 vs 不使用)
- 構造化された実装仕様書の自動生成
- Flutter/AutoRoute/Riverpodのベストプラクティスに基づいた設計支援

プラグイン構成:
- flutter_development/.claude-plugin/plugin.json
- flutter_development/skills/flutter-widget-assistant/SKILL.md
- flutter_development/README.md

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-03 12:51:40 +09:00
Yoichi Toyota 52dddd463c Merge pull request #15 from xtone/fix/marketplace-config
fix: Move backend-development plugin config to root marketplace.json
2025-12-01 12:33:18 +09:00
TOYOTA, Yoichi b17022624b fix: move backend-development plugin config to root marketplace.json
🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-01 12:25:28 +09:00
Yoichi Toyota 125e7977ad Merge pull request #13 from xtone/feature/add-backend-development-plugin
feat: add backend-development plugin for Rails API implementation
2025-11-28 18:40:00 +09:00
TOYOTA, Yoichi 388415370f fix: Update orchestrating-api-implementation from best plactice 2025-11-28 18:20:48 +09:00
TOYOTA, Yoichi 8b0ac35e2a fix: correct skill name in SKILL.md front matter
🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-27 00:26:41 +09:00
TOYOTA, Yoichi 5e05b856d0 feat: add backend-development plugin marketplace configuration
🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-27 00:06:45 +09:00
TOYOTA, Yoichi 5962e3697c feat: add orchestrating-api-implementation skill for Rails backend
🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-27 00:06:40 +09:00
masaya ishihara fac1308f21 feat: Add android-test-runner v1.0 (generic version)
Android テスト実行を自動化し、テスト失敗を分析し、実行可能な修正提案を提供する
Claude Code スキルの汎用版。

主な機能:
- Pattern 1-19 を実装(全19パターンの失敗分析)
- Multi-variant プロジェクトサポート(複数のビルドバリアント対応)
- JAVA_HOME 自動設定(macOS Android Studio JBR)
- Quick Reference 追加(優先度別エラー分類)
- 包括的なドキュメント(日本語で記述、視認性・メンテナンス性重視)

ファイル構成:
- README.md: インストールと使用方法
- SKILL.md: システムインストラクションとパターン詳細
- knowledge/test-failure-patterns.md: 19パターンの詳細(835行)
- knowledge/project-template.md: プロジェクトカスタマイズ用テンプレート
- templates/fix-suggestions.md: 修正提案テンプレート

Based on: android-test-runner v0.2 (project-specific version with 98% accuracy)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-20 18:25:50 +09:00
Yoichi Toyota 192f7fd58f Merge pull request #9 from xtone/feature/add-github-review-skills
Add GitHub PR review skills and Biome auto-format hook
2025-11-11 23:39:29 +09:00
toyota 073bfbfeb4 feat: add GitHub MCP inline comment support for PR reviews
GitHub MCPを利用してインラインコメント機能を追加:

変更内容:
- allowedToolsに`mcp__github_inline_comment__create_inline_comment`を追加
- プロンプトにインラインコメント投稿の指示を追加
- 具体的なファイルと行番号が特定できる問題はインラインコメントで指摘
- 全体レビューコメントではインラインコメントへの参照のみ記載

効果:
- レビューの可読性向上(問題箇所が明確)
- 全体レビューコメントの簡潔化
- コードレビューの効率化

参考:
https://github.com/anthropics/claude-code-action/blob/main/docs/solutions.md#automatic-pr-code-review

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-11 23:31:32 +09:00
toyota 97f0d07b43 fix: address review feedback from automated PR review
レビュー指摘事項に対応:

Major問題の修正:
- max-turnsを20に変更 (.github/workflows/pr-review-vertex-ai.yml:341)
- フックパスを修正 (frontend_nextjs_development/hooks/biome-format/hooks.json:9)
  ${CLAUDE_PLUGIN_ROOT}/hooks/biome_format.sh
  → ${CLAUDE_PLUGIN_ROOT}/hooks/biome-format/biome_format.sh

Minor問題の修正:
- Biomeフックにエラーハンドリングを追加 (biome_format.sh:62-77)
  - npx実行の成功/失敗を判定
  - 失敗時はエラーメッセージを出力してexit 1

テスト実施:
- PR #9での動作確認完了
- レビュー投稿成功確認(Changes Requested)
- テスト結果をPR本文に追記

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-11 23:12:26 +09:00
toyota 5555474855 fix: use --allowedTools in claude_args instead of additional_permissions
claude_argsで--allowedToolsを使用する正しい方法に修正:
- additional_permissionsパラメータを削除
- claude_argsに--allowedTools "Bash(gh:*)"を追加
- ghコマンド全般の実行を許可

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-11 22:54:24 +09:00
toyota a556f2c199 fix: add gh command permission to additional_permissions
Claude Code Actionでghコマンドが権限エラーで拒否される問題を修正:
- additional_permissions に "Bash(gh:*)" を追加
- これによりgh pr view, gh pr review, gh issue createが実行可能に

Permission denials:
- gh pr view (PR情報取得)
- gh pr diff (差分取得)
- gh pr review (レビュー投稿)
- gh issue create (Issue作成)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-11 22:48:08 +09:00
toyota 39cf93c99a fix: remove unsupported --timeout option from claude_args
Claude Codeが--timeoutオプションをサポートしていないため削除:
- エラー: "unknown option '--timeout'"
- --max-turns 10のみでタイムアウトを制御

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-11 22:33:38 +09:00
toyota 4804736eb4 fix: add timeout and paths-ignore to prevent workflow hanging
GitHub Actionsが1時間以上実行される問題を修正:
- タイムアウトを10分(600秒)に設定
- max-turnsを20から10に削減
- ワークフロー自体の変更をレビュー対象から除外
- ドキュメントファイルもレビュー対象から除外

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-11 17:18:26 +09:00
toyota 06c4a25a41 refactor: embed SKILL.md logic into workflow and remove skill directory
SKILL.mdの内容をGitHub Actionsワークフローのプロンプトに直接埋め込み、
skillディレクトリを削除しました。これにより、GitHub Actions環境で
Skillツールの権限エラーを回避できます。

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-11 16:08:15 +09:00
toyota 7dddab0c03 feat: sync root workflow with updated skill implementation
🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-11 15:55:39 +09:00
toyota 5ac5c0ebdc docs: update documentation for gh CLI-based implementation
🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-11 15:55:20 +09:00
toyota 16e08d843e feat: update workflows to pass repository and PR info via prompt
🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-11 15:54:57 +09:00
toyota 20dacf5c3f feat: rewrite SKILL.md to use gh CLI and GitHub MCP
🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-11 15:54:37 +09:00
toyota aa9dc197c5 refactor: remove Python scripts and migrate to prompt-based implementation
🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-11 15:54:16 +09:00
toyota a31b84c0a1 ci: configure Vertex AI environment variables for PR review
🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-11 15:18:58 +09:00
toyota f386605cdd ci: add Vertex AI automated PR review workflow 2025-11-11 15:10:01 +09:00
toyota 0773bdd8a3 docs: update marketplace config and README for biome-format hook 2025-11-11 14:39:37 +09:00
toyota 52be8985a8 feat: add biome-format hook for auto-formatting 2025-11-11 14:39:33 +09:00
toyota a221923fc7 feat: add github review skills 2025-11-11 14:11:30 +09:00
toyota a73bb5b7ef Separate figma-design-extractor skill into two specialized skills
## 概要

figma-design-extractorスキルを2つの専門特化したスキルに分離しました:
- figma-design-analyzer: Figmaデザインの分析・抽出
- nextjs-react-implementation: Next.js/React実装の生成

## 変更内容

### 1. 新規スキルの作成

**figma-design-analyzer** (`frontend_nextjs_development/skills/figma-design-analyzer/`)
- Figma MCP toolsを使った設計情報の抽出
- レイアウト、スペーシング、タイポグラフィの分析
- Atomic Design分類とセマンティックHTML選択
- 設計仕様書(Markdown形式)の生成
- 5つの分析ガイドを含む

**nextjs-react-implementation** (`frontend_nextjs_development/skills/nextjs-react-implementation/`)
- 設計仕様書からのReact/TypeScriptコンポーネント生成
- Tailwind CSSスタイリング
- Vitest browser modeテスト生成
- Storybookストーリー生成
- 3つの実装テンプレートを含む

### 2. 中間データフォーマットの定義

`frontend_nextjs_development/shared/`
- design-spec-format.md: 設計仕様書フォーマットの詳細定義
- Button.design.md.example: 具体的なサンプル仕様書

### 3. ディレクトリ構成の整理

スキルを `skills/` ディレクトリ配下に配置し、agents、hooks、commandsと並列に:
```
frontend_nextjs_development/
├── .claude-plugin/
├── agents/
├── commands/
├── hooks/
├── skills/
│   ├── figma-design-analyzer/
│   └── nextjs-react-implementation/
└── shared/
```

### 4. marketplace.json の更新

- 2つのスキルをpluginとして登録
- 適切なタグとメタデータを設定
- sourceパスを `./skills/*` に更新

### 5. README.md の刷新

- 2つのスキルの使い方を詳細に説明
- ワークフローの図解
- 使用例とサンプルコマンドを追加
- バージョン履歴の記録

## 利用フロー

1. **分析フェーズ**: figma-design-analyzerでFigmaデザインを分析し設計仕様書を生成
2. **実装フェーズ**: nextjs-react-implementationで設計仕様書から実装を生成
3. または、両スキルを連続実行して分析→実装をワンストップで完了

## メリット

- **責務の明確化**: デザイン分析と実装生成を分離
- **再利用性向上**: 各スキルを独立して使用可能
- **保守性向上**: 各スキルが独自のリソースを持ち、変更影響が限定的
- **拡張性向上**: 新しい実装ターゲット(Vue、Svelte等)を追加しやすい

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-21 13:16:34 +09:00
Yoichi Toyota 9d466950c7 Merge pull request #7 from xtone/feature/update-readme-plugin-commands
Update README to use /plugin commands and add official documentation references
2025-10-15 13:21:39 +09:00