diff --git a/README.md b/README.md index 97a6176d..2635dab4 100644 --- a/README.md +++ b/README.md @@ -8,15 +8,15 @@ Claude Code / Codex / Kiro CLI向けのスキル・MCP設定を共有するた **NDFプラグイン v4.20.1** は、同じ `ndf@ai-plugins` という名前で Claude Code / Codex / Kiro CLI へ配布されるランタイム別プラグインです。共通ソースは `plugins/ndf-shared/` に集約し、利用者が install する配布物は `plugins/ndf-claude/` / `plugins/ndf-codex/` / `plugins/ndf-kiro/` に分かれています。 -- **公開Skills**: Claude Code向け core 29個、Kiro向け core 28個、Codex向け core 30個に分離。 -- **元Skills(49個)**: +- **公開Skills**: Claude Code向け core 27個、Kiro向け core 26個、Codex向け core 28個に分離。 +- **元Skills(41個)**: - PR/レビューワークフロー (13): pr, pr-tests, fix, review, review-branch, review-pr-comments, resolve-pr-comments, cherry-pick-pr, deploy, sync-main, merged, clean, browser-test - 原則・ガイドライン (10): ndf-policies, branch-fix-strategy, implementation-plan, plan-to-spec, investigation-rules, problem-solving, logging-guidelines, markdown-writing, issue-plan-strategy, ml-model-structure - - データ分析・品質・環境 (12): data-analyst-sql-optimization, data-analyst-export, qa-security-scan, python-execution, docker-container-access, git-gh-operations, google-auth, codex, deepwiki-transfer, knowledge-reorg, mcp-builder, official-skills-autoloader - - E2Eテスト/Playwright (6): playwright-test-planning, playwright-script-creation, playwright-execution, playwright-report, playwright-kit-ops, playwright-scenario-test - - 外部サービス連携 (2): google-drive, google-chat + - データ分析・品質・環境 (5): qa-security-scan, docker-container-access, google-auth, codex, official-skills-autoloader + - E2Eテスト/Playwright (8): playwright-test-planning, playwright-script-creation, playwright-execution, playwright-report, playwright-kit-ops, playwright-scenario-test, playwright-browser-connect, playwright-evidence-drive + - 外部サービス連携 (1): google-drive - AIクロスレビュー (2): cross-review, gemini - - 運用 (1): skill-stats + - 運用 (2): skill-stats, statusline - **8つの専門エージェント**: director, data-analyst, corder, researcher, qa, debugger, devops-engineer, code-reviewer - **自動フック**: SessionStart (transcript保持期間を最低90日に保つ) + Stop (AI要約生成+Slack通知) - **外部AI委譲**: `/ndf:codex` skill + `corder` エージェント経由で Codex CLI をバックグラウンド実行 (v4.0.0 で Codex MCP サーバは廃止) diff --git a/docs/ndf-plugin-reference.md b/docs/ndf-plugin-reference.md index 34773d4f..ae45ae91 100644 --- a/docs/ndf-plugin-reference.md +++ b/docs/ndf-plugin-reference.md @@ -67,8 +67,8 @@ NDF の Skill 実装は `plugins/ndf-shared/skills/` が編集元です。公開 - PR / review workflow: `pr`, `pr-tests`, `fix`, `review`, `cross-review`, `resolve-pr-comments` - branch / release workflow: `deploy`, `cherry-pick-pr`, `sync-main`, `merged`, `clean` - planning / documentation: `implementation-plan`, `issue-plan-strategy`, `plan-to-spec`, `markdown-writing` -- quality / execution: `playwright-*`, `python-execution`, `docker-container-access`, `git-gh-operations` -- external services: `google-drive`, `google-chat`, `data-analyst-*` +- quality / execution: `playwright-*`, `docker-container-access` +- external services: `google-drive` - policy: `ndf-policies`, `problem-solving`, `logging-guidelines` ## MCP Plugins diff --git a/docs/official-skills-installation.md b/docs/official-skills-installation.md index d012dda6..b5814f0f 100644 --- a/docs/official-skills-installation.md +++ b/docs/official-skills-installation.md @@ -105,9 +105,9 @@ cp -r ~/work/anthropic-skills/skills/docx .claude/skills/ ## NDFプラグインとの関係 -### NDFが同梱している公式Skill(Apache-2.0のみ) +### NDFが同梱している公式Skill -- `mcp-builder` → `plugins/ndf-shared/skills/mcp-builder/`(LICENSE.txt同梱) +現在はありません。以前同梱していた `mcp-builder`(Apache-2.0)は利用実績がないため削除しました。必要な場合は下記インストーラで各自の環境に配置してください。 ### NDFが提供するインストーラ diff --git a/plugins/ndf-claude/.claude-plugin/plugin.json b/plugins/ndf-claude/.claude-plugin/plugin.json index 1dfb737a..812bf78c 100644 --- a/plugins/ndf-claude/.claude-plugin/plugin.json +++ b/plugins/ndf-claude/.claude-plugin/plugin.json @@ -37,9 +37,7 @@ "./skills/clean", "./skills/ndf-policies", "./skills/markdown-writing", - "./skills/python-execution", "./skills/docker-container-access", - "./skills/git-gh-operations", "./skills/branch-fix-strategy", "./skills/implementation-plan", "./skills/investigation-rules", diff --git a/plugins/ndf-claude/agents/data-analyst.md b/plugins/ndf-claude/agents/data-analyst.md index 802ca89d..05b23460 100644 --- a/plugins/ndf-claude/agents/data-analyst.md +++ b/plugins/ndf-claude/agents/data-analyst.md @@ -26,11 +26,46 @@ description: | - ビジネスインサイトの抽出 ### 3. データ出力 -- CSV、JSON、Excel形式でのデータエクスポート +- CSV、JSON、Excel、Markdownテーブル形式でのデータエクスポート - 結果データのファイル保存 - レポート生成とデータ可視化の準備 - データサマリーの作成 +## SQL最適化パターン + +遅いクエリは EXPLAIN で実行計画を確認し、該当パターンを適用してから再度 EXPLAIN で改善を確認する。 + +| パターン | 問題 | 解決策 | +|---------|------|--------| +| N+1削減 | ループ内SQL | JOINで1回に統合 | +| インデックス | フルスキャン | WHERE/JOIN列にインデックス | +| JOIN最適化 | 不要な大規模JOIN | 必要な列のみ取得 | +| ウィンドウ関数 | 複雑なサブクエリ | ROW_NUMBER(), RANK()使用 | +| EXISTS vs IN | 遅いIN句 | EXISTSに変更 | +| LIMIT活用 | 全件取得 | SQLでページング | + +| DO | DON'T | +|----|-------| +| EXPLAINで実行計画を確認 | 不要なDISTINCT | +| インデックスは選択的に作成 | 関数をWHERE句の列に適用 | +| 必要な列のみSELECT | 過剰なJOIN | +| 早期フィルタリング | サブクエリの多用 | + +## エクスポート形式の選択 + +| 形式 | 用途 | 注意点 | +|------|------|--------| +| CSV | 単純なデータ、他システム連携 | Excelで開くならUTF-8 BOMを付与 | +| JSON | API連携、構造化データ | 日付は ISO 8601 に統一 | +| Excel | 複雑なレポート、書式設定 | 1シート1,048,576行の上限を超えたら分割 | +| Markdown | ドキュメント埋め込み | パイプ文字のエスケープ | + +| DO | DON'T | +|----|-------| +| ヘッダー行を含める | 全データをメモリに展開 | +| 大きなデータはストリーミングで書き出す | 日付フォーマットの不統一 | +| 文字コードは UTF-8 に統一 | 特殊文字のエスケープ忘れ | + ## 使用可能なMCPツール ### BigQuery MCP diff --git a/plugins/ndf-claude/skills/deploy/SKILL.md b/plugins/ndf-claude/skills/deploy/SKILL.md index 769919d7..b338c84c 100644 --- a/plugins/ndf-claude/skills/deploy/SKILL.md +++ b/plugins/ndf-claude/skills/deploy/SKILL.md @@ -1,6 +1,6 @@ --- name: deploy -description: "Create deploy PRs from feature to environment branches." +description: "Create a deploy PR from the current feature branch to an environment branch such as qa/staging or release/v2. 破壊的操作のため、利用者が /ndf:deploy を明示的に指示したときのみ実行する(環境ブランチへデプロイ / qaに上げる / stagingに反映 / リリースブランチへPR)。deployブランチを作成し origin/main を取り込んでからPRを出す。" argument-hint: " (例: qa/staging, release/v2)" disable-model-invocation: true allowed-tools: diff --git a/plugins/ndf-claude/skills/docker-container-access/SKILL.md b/plugins/ndf-claude/skills/docker-container-access/SKILL.md index eadd1ffe..444a993f 100644 --- a/plugins/ndf-claude/skills/docker-container-access/SKILL.md +++ b/plugins/ndf-claude/skills/docker-container-access/SKILL.md @@ -67,7 +67,6 @@ ls -la /var/run/docker.sock 2>/dev/null && echo "DooD環境" || echo "DinDまた ## 関連Skill -- **python-execution**: Python実行環境の判定 - **corder-code-templates**: Dockerfileテンプレート ## 関連リソース diff --git a/plugins/ndf-claude/skills/git-gh-operations/01-common-errors.md b/plugins/ndf-claude/skills/git-gh-operations/01-common-errors.md deleted file mode 100644 index a7afa445..00000000 --- a/plugins/ndf-claude/skills/git-gh-operations/01-common-errors.md +++ /dev/null @@ -1,145 +0,0 @@ -# Git / gh 共通エラー事例集 - -## 1. git add pathspec エラー - -### 事象 -``` -fatal: pathspec 'lambda-batch/CarImageProcessingPipeline/src/foo.py' did not match any files -``` - -### 原因 -CWD が `/work/repo/lambda-batch/CarImageProcessingPipeline/` なのに、 -リポジトリルートからの相対パスで `git add` した。 - -`git status` はリポジトリルートからの相対パスで表示するが、 -`git add` は CWD からの相対パスで解決する。 - -### 予防策 -```bash -# Step 1: CWD確認 -pwd -# => /work/repo/lambda-batch/CarImageProcessingPipeline/ - -# Step 2: git status の出力を確認 -git status -# modified: lambda-batch/CarImageProcessingPipeline/src/foo.py -# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -# これはリポジトリルートからの相対パス - -# Step 3: CWD からの相対パスに変換 -git add src/foo.py -# または -git add . # CWD以下のすべての変更 -``` - -## 2. gh api 404 エラー - -### 事象 -``` -gh api repos/owner/repo/pulls/comments/123/replies -f body='message' -# => 404 Not Found -``` - -### 原因 -POST メソッドが必要な API エンドポイントに GET でアクセスした。 -`gh api` はデフォルトで GET を使用する。 - -### 修正 -```bash -gh api -X POST repos/owner/repo/pulls/comments/123/replies -f body='message' -``` - -## 3. GitHub 自己 Approve エラー - -### 事象 -``` -Could not approve for pull request review. Can not approve your own pull request -``` - -### 原因 -GitHub はセキュリティ上、自分で作成した PR を APPROVE できない。 - -### 対策 -```bash -# pending review を削除してから COMMENT として再送信 -# method: "delete_pending" → method: "create" + event: "COMMENT" -``` - -## 4. AWS CLI [$LATEST] パースエラー - -### 事象 -``` -Unknown options: , , , -``` - -### 原因 -CloudWatch ログストリーム名に含まれる `[$LATEST]` が -`--query` JMESPath パーサーや shell の glob として解釈される。 - -### 対策 -```bash -# シングルクォートで囲んでも --query との組み合わせで問題が出る -# --output json + python パースが最も安全 -aws logs get-log-events \ - --log-group-name "/aws/lambda/func-name" \ - --log-stream-name '2026/02/18/[$LATEST]abc123' \ - --output json | python3 -c " -import sys, json -data = json.loads(sys.stdin.read()) -for e in data['events']: - print(e['message'].strip()) -" -``` - -## 5. git commit メッセージの特殊文字 - -### 事象 -コミットメッセージに日本語や改行が含まれるとエスケープ問題が発生。 - -### 対策 -常に HEREDOC 形式を使用: -```bash -git commit -m "$(cat <<'EOF' -日本語メッセージ - -詳細説明 - -Co-Authored-By: Claude Opus 4.6 -EOF -)" -``` - -注意: `<<'EOF'` (シングルクォート付き)で変数展開を抑制する。 - -## 6. gh pr checks が exit code 1 で止まる - -### 事象 -``` -gh pr checks 11765 2>&1 -# => チェック結果は表示されるが、1つでもfailがあると exit code 1 で終了 -# => Claude Code が「コマンド失敗」と判定して処理を中断 -``` - -### 原因 -`gh pr checks` は CI チェックに失敗があると非0の exit code を返す仕様。 -Claude Code の Bash ツールはコマンドの exit code が 0 以外だとエラーとして扱う。 - -### 対策 -常に `|| true` を付けて exit code を 0 にする: -```bash -# チェック一覧を取得(failがあっても止まらない) -gh pr checks 11765 2>&1 || true - -# --watch で完了待ちする場合も同様 -gh pr checks 11765 --watch 2>&1 || true - -# 失敗のみフィルタする場合 -gh pr checks 11765 2>&1 | grep -i fail || true -``` - -### 補足 -同様の問題が発生する gh コマンド: -- `gh run view RUN_ID --log-failed` (失敗ログ取得時) -- `gh pr diff` (差分が大きい場合にパイプ破損) - -いずれも `2>&1 || true` を付けることで安全に実行できる。 diff --git a/plugins/ndf-claude/skills/git-gh-operations/SKILL.md b/plugins/ndf-claude/skills/git-gh-operations/SKILL.md deleted file mode 100644 index 68b8a7a0..00000000 --- a/plugins/ndf-claude/skills/git-gh-operations/SKILL.md +++ /dev/null @@ -1,228 +0,0 @@ ---- -name: git-gh-operations -description: "Resolve git and GitHub CLI operation errors." -when_to_use: "git / gh コマンドでエラーが出た or 操作方法に迷うとき。Triggers: 'git add', 'git commit', 'git push', 'gh pr', 'gh api', 'GitHub操作', 'gitエラー', 'fatal:', 'pathspec'" -allowed-tools: - - Bash - - Read ---- - -# Git / gh 操作スキル - -## 最重要ルール: CWD とパスの整合性 - -git コマンドはすべて **CWD からの相対パス** で解決される。 -操作前に必ず `pwd` で CWD を確認すること。 - -### パターン1: CWDがサブディレクトリの場合 - -``` -# CWD: /work/repo/lambda-batch/MyProject/ -# リポジトリルート: /work/repo/ - -# NG: リポジトリルートからのパスを指定 -git add lambda-batch/MyProject/src/foo.py -# => fatal: pathspec did not match any files - -# OK: CWDからの相対パスを指定 -git add src/foo.py - -# OK: 絶対パスを指定 -git add /work/repo/lambda-batch/MyProject/src/foo.py -``` - -### パターン2: 安全な方法 - -```bash -# 方法A: git -C でリポジトリルートを指定 -git -C /work/repo add lambda-batch/MyProject/src/foo.py - -# 方法B: CWD を変更せずに絶対パスを使用 -git add "$(git rev-parse --show-toplevel)/lambda-batch/MyProject/src/foo.py" - -# 方法C(推奨): CWDからの相対パスを使用 -# まず pwd で確認してからパスを組み立てる -``` - -## git 操作チェックリスト - -### git add の前に - -1. `pwd` で CWD を確認 -2. `git status` で変更ファイルのパスを確認(表示されるパスはリポジトリルートからの相対パス) -3. `git status` の出力パスと CWD の関係を計算してから `git add` する - -### git commit の前に - -1. `git diff --cached` でステージング内容を確認 -2. HEREDOC形式でメッセージを渡す(改行・特殊文字の問題回避) - -```bash -git commit -m "$(cat <<'EOF' -コミットメッセージ - -Co-Authored-By: Claude Opus 4.6 -EOF -)" -``` - -## gh CLI / GitHub API の注意点 - -### パラメータ: `-f` vs `-F` - -```bash -# -f: 文字列パラメータ -gh api repos/OWNER/REPO/pulls/PR/comments -f body="テキスト" - -# -F: 非文字列パラメータ(数値、boolean、null、ファイル) -gh api repos/OWNER/REPO/pulls/PR/comments -F in_reply_to=2826074026 - -# 混在OK -gh api repos/OWNER/REPO/pulls/PR/comments -f body="返信テキスト" -F in_reply_to=2826074026 -``` - -### PRレビューコメントの取得 - -```bash -# コメント一覧を取得(id, path, body の先頭を表示) -gh api repos/OWNER/REPO/pulls/PR/comments \ - --jq '.[] | {id: .id, path: .path, body: (.body | split("\n")[0][:80])}' -``` - -### PRレビューコメントへの返信 - -```bash -# NG: /replies エンドポイントは存在しない(404になる) -gh api repos/OWNER/REPO/pulls/comments/{id}/replies -f body='...' -# => 404 Not Found - -# NG: -X POST を付けても同じ(エンドポイント自体が存在しない) -gh api -X POST repos/OWNER/REPO/pulls/comments/{id}/replies -f body='...' -# => 404 Not Found - -# OK: in_reply_to パラメータを使って新規コメントとして投稿 -gh api repos/OWNER/REPO/pulls/PR/comments \ - -f body="返信テキスト" \ - -F in_reply_to=COMMENT_ID -``` - -### レビュースレッドの Resolve(GraphQL) - -```bash -# 1. 未解決スレッドのID一覧を取得 -gh api graphql -f query=' -query { - repository(owner: "OWNER", name: "REPO") { - pullRequest(number: PR) { - reviewThreads(first: 50) { - nodes { - id - isResolved - comments(first: 1) { - nodes { path body } - } - } - } - } - } -}' --jq '.data.repository.pullRequest.reviewThreads.nodes[] | select(.isResolved == false) | {id, path: .comments.nodes[0].path}' - -# 2. スレッドを Resolve -gh api graphql -f query=' -mutation { - resolveReviewThread(input: {threadId: "PRRT_xxx"}) { - thread { isResolved } - } -}' -``` - -### PR の CI チェック結果 - -`gh pr checks` は1つでもfailがあると **exit code 1** で終了する。 -Claude Codeではコマンド失敗と判定されて処理が止まるため、必ず `|| true` を付ける。 - -```bash -# NG: failがあるとexit code 1で止まる -gh pr checks PR --repo OWNER/REPO - -# OK: exit codeを常に0にして出力を取得 -gh pr checks PR --repo OWNER/REPO 2>&1 || true - -# OK: 失敗のみフィルタ -gh pr checks PR --repo OWNER/REPO 2>&1 | grep -i fail || true -``` - -#### 重要: CIの完了を待ってはいけない - -- `--watch` や完了までのポーリングは **禁止**。現在のステータスを一度スナップショットするだけでよい。 -- チェックが `in_progress` / `queued` / `pending` の場合は **完了を待たず次のステップへ進む**。 -- 対応対象は **コード修正で直せるfailのみ**。以下のような「ステータス確認系」チェックは無視する: - - `check_pr_requirements` 等、PR要件・メタ情報のみ検証するもの - - Lint/テストに非依存なラベル/タイトル/説明チェック - - 外部サービス起因で自己修復するトランジェントなfail(再実行で直るもの) -- 対応する: ビルド失敗・テスト失敗・型エラー・lint違反など、**リポジトリ内コードの修正で解消可能なもの**。 - -```bash -# 失敗ジョブのログ(エラー行のみ抽出) -gh run view RUN_ID --repo OWNER/REPO --log-failed 2>&1 \ - | grep -E '(FAIL|Error|Tests:)' | head -20 || true -``` - -### 自分のPRは Approve できない - -``` -# GitHub の制約: 自分で作成した PR に APPROVE レビューは不可 -# => "Can not approve your own pull request" -# 対策: event を "COMMENT" に変更して送信 -``` - -### PR作成時の body は HEREDOC - -```bash -# NG: \n がリテラルで混入する可能性 -gh pr create --title "タイトル" --body "行1\n行2" - -# OK: HEREDOC形式 -gh pr create --title "タイトル" --body "$(cat <<'EOF' -## Summary -- 変更内容 - -## Test plan -- [ ] テスト項目 -EOF -)" -``` - -## AWS CLI の注意点 - -### CloudWatch ログストリーム名の [$LATEST] - -```bash -# NG: --query で [$LATEST] を含む文字列がパースエラー -aws logs get-log-events --query 'events[*].message' --output text - -# OK: --output json にして python でパース -aws logs get-log-events --output json | python3 -c " -import sys,json -data = json.loads(sys.stdin.read()) -for e in data['events']: - print(e['message'].strip()) -" -``` - -## エラー事例集 - -| エラーメッセージ | 原因 | 対策 | -|----------------|------|------| -| `fatal: pathspec '...' did not match any files` | CWD とパスの不一致 | `pwd` 確認後、CWD相対パスで指定 | -| `404 Not Found` (gh api replies) | `/comments/{id}/replies` は存在しない | `in_reply_to` パラメータで投稿 | -| `422 Unprocessable` (gh api) | `-f` で数値を渡した | 数値は `-F` を使う | -| `Can not approve your own pull request` | 自己 Approve 不可 | `COMMENT` イベントに変更 | -| `gh pr checks` が exit code 1 | 1つでもfailがあると非0終了 | `gh pr checks ... 2>&1 \|\| true` | -| `Unknown options: , , ,` (aws cli) | `[$LATEST]` のシェルエスケープ | `--output json` + python パース | - -## 詳細ガイド - -| ファイル | 内容 | 参照タイミング | -|---------|------|--------------| -| `01-common-errors.md` | 詳細なエラー事例と再現手順 | エラー発生時 | diff --git a/plugins/ndf-claude/skills/logging-guidelines/SKILL.md b/plugins/ndf-claude/skills/logging-guidelines/SKILL.md index 007b9691..3ad64b34 100644 --- a/plugins/ndf-claude/skills/logging-guidelines/SKILL.md +++ b/plugins/ndf-claude/skills/logging-guidelines/SKILL.md @@ -1,7 +1,19 @@ --- name: logging-guidelines -description: "Design safe and useful application logging." -when_to_use: "コードにログを追加・修正・整理するとき。Triggers: 'ログ追加', 'log追加', 'logger', 'logging', 'ログレベル', 'log level', 'デバッグログ', 'エラーログ', 'logger.info', 'logger.error', 'print文をログに'" +description: "Choose log levels and write safe, useful application logs when adding or reworking logging in code(ログ追加 / logger / ログレベル / デバッグログ / エラーログ / print文をログに). Use when editing source code that emits logs, to pick the level and keep secrets and personal data out of the output." +paths: + - "**/*.py" + - "**/*.ts" + - "**/*.tsx" + - "**/*.js" + - "**/*.jsx" + - "**/*.go" + - "**/*.rb" + - "**/*.java" + - "**/*.kt" + - "**/*.php" + - "**/*.rs" + - "**/*.sh" --- # ログ運用ガイドライン diff --git a/plugins/ndf-claude/skills/python-execution/01-uv-setup.md b/plugins/ndf-claude/skills/python-execution/01-uv-setup.md deleted file mode 100644 index aafd4f1c..00000000 --- a/plugins/ndf-claude/skills/python-execution/01-uv-setup.md +++ /dev/null @@ -1,85 +0,0 @@ -# uv詳細セットアップガイド - -> **Note**: 基本的な`uv sync`と`uv run python`はSKILL.mdを参照。このファイルは初回セットアップや詳細設定が必要な場合のみ参照。 - -## uvインストール - -```bash -# Linux/macOS -curl -LsSf https://astral.sh/uv/install.sh | sh - -# pip経由(代替) -pip install uv - -# 確認 -uv --version -``` - -## 依存関係管理 - -```bash -# uv.lockがある場合(推奨) -uv sync - -# uv.lockがない場合 -uv lock && uv sync - -# 開発用依存関係も含める -uv sync --dev - -# 特定のextraを含める -uv sync --extra test -``` - -## Pythonバージョン管理 - -```bash -# 特定バージョンをインストール -uv python install 3.12 -uv python install 3.11 - -# プロジェクトで使用するバージョンを固定 -uv python pin 3.12 - -# インストール済みバージョン一覧 -uv python list -``` - -## 実行オプション - -```bash -# スクリプト実行 -uv run python script.py - -# モジュール実行 -uv run python -m pytest -uv run python -m mypy . - -# 引数付き -uv run python script.py --arg value - -# インタラクティブシェル -uv run python -``` - -## プロジェクト初期化(新規作成時) - -```bash -# 新規プロジェクト作成 -uv init my-project -cd my-project - -# 依存関係追加 -uv add requests -uv add --dev pytest - -# ロックファイル生成 -uv lock -``` - -## uv環境の利点 - -- **高速**: Rustで実装、pip比10-100倍速 -- **再現性**: uv.lockで完全な依存関係固定 -- **Pythonバージョン管理**: pyenvなしでバージョン切り替え -- **グローバル環境を汚染しない**: プロジェクト単位で隔離 diff --git a/plugins/ndf-claude/skills/python-execution/02-troubleshooting.md b/plugins/ndf-claude/skills/python-execution/02-troubleshooting.md deleted file mode 100644 index 3475b7ec..00000000 --- a/plugins/ndf-claude/skills/python-execution/02-troubleshooting.md +++ /dev/null @@ -1,112 +0,0 @@ -# Python実行 トラブルシューティング - -## よくある問題と解決策 - -### Q: `uv: command not found` - -**原因**: uvがインストールされていない - -**解決策**: -```bash -curl -LsSf https://astral.sh/uv/install.sh | sh -# シェルを再起動するか、パスを通す -source ~/.bashrc # または ~/.zshrc -``` - -### Q: `ModuleNotFoundError` - -**原因**: 依存関係がインストールされていない - -**解決策**: -```bash -# uv環境の場合 -uv sync - -# venv環境の場合 -.venv/bin/pip install -r requirements.txt - -# pyproject.tomlがある場合 -.venv/bin/pip install -e . -``` - -### Q: `python: command not found` - -**原因**: Pythonがインストールされていない、またはパスが通っていない - -**解決策**: -```bash -# python3を試す -python3 --version - -# uvでPythonをインストール -uv python install 3.12 -``` - -### Q: 異なるPythonバージョンが必要 - -**解決策(uv環境)**: -```bash -# 特定バージョンをインストール -uv python install 3.11 - -# プロジェクトで使用するバージョンを固定 -uv python pin 3.11 - -# そのバージョンで実行 -uv run python script.py -``` - -### Q: `pyproject.toml`はあるが`uv.lock`がない - -**解決策**: -```bash -# ロックファイルを生成 -uv lock - -# 依存関係をインストール -uv sync -``` - -### Q: 仮想環境が壊れている - -**解決策**: -```bash -# 仮想環境を削除して再作成 -rm -rf .venv - -# uv環境の場合 -uv sync - -# 手動で作成する場合 -python3 -m venv .venv -.venv/bin/pip install -r requirements.txt -``` - -### Q: パーミッションエラー - -**解決策**: -```bash -# 仮想環境を使用(推奨) -uv sync -uv run python script.py - -# どうしてもグローバルにインストールする場合(非推奨) -pip install --user package_name -``` - -### Q: SSL証明書エラー - -**解決策**: -```bash -# macOSの場合 -/Applications/Python\ 3.x/Install\ Certificates.command - -# または環境変数で一時的に無効化(非推奨) -export PYTHONHTTPSVERIFY=0 -``` - -## 関連リソース - -- [uv公式ドキュメント](https://docs.astral.sh/uv/) -- [Python venv](https://docs.python.org/3/library/venv.html) -- [pyproject.toml仕様](https://packaging.python.org/en/latest/specifications/pyproject-toml/) diff --git a/plugins/ndf-claude/skills/python-execution/SKILL.md b/plugins/ndf-claude/skills/python-execution/SKILL.md deleted file mode 100644 index a07705aa..00000000 --- a/plugins/ndf-claude/skills/python-execution/SKILL.md +++ /dev/null @@ -1,86 +0,0 @@ ---- -name: python-execution -description: "Detect and run the right Python environment." -when_to_use: "Python スクリプトを実行 / セットアップするとき。Triggers: 'python', 'uv', 'スクリプト', 'python環境'" -allowed-tools: - - Read - - Bash - - Glob ---- - -# Python Execution Skill - -## 概要 - -Pythonコードを実行する前に、プロジェクトの実行環境を調査し、適切な方法で実行するためのガイドラインです。 - -## Step 1: 環境検出 - -```bash -ls -la pyproject.toml uv.lock .venv/ venv/ requirements.txt 2>/dev/null -``` - -## Step 2: 実行コマンド選択 - -| 検出ファイル | 実行方法 | 優先度 | -|-------------|---------|-------| -| `pyproject.toml` | `uv run python` | 最高 | -| `.venv/` | `.venv/bin/python` | 中 | -| `venv/` | `venv/bin/python` | 中 | -| 何もなし | `python3` | 最低 | - -## Step 3: 実行 - -### uv環境(pyproject.tomlあり) - -```bash -# 依存関係インストール(初回のみ) -uv sync - -# 実行 -uv run python script.py -uv run python -m module_name -``` - -**uvがない場合のインストール**: -```bash -curl -LsSf https://astral.sh/uv/install.sh | sh -source ~/.bashrc # パスを反映 -``` - -### venv環境(.venv/あり) - -```bash -# 依存関係インストール(初回のみ) -.venv/bin/pip install -r requirements.txt - -# 実行 -.venv/bin/python script.py -``` - -### システムPython - -```bash -python3 script.py -``` - -## ベストプラクティス - -| DO | DON'T | -|----|-------| -| 実行前に環境を調査 | 環境を確認せずに実行 | -| README.md/CLAUDE.mdの指示を優先 | グローバル環境に依存関係をインストール | -| pyproject.tomlがあればuv使用 | source activateに依存 | -| 仮想環境のPythonをパス指定で実行 | python2を使用 | - -## 詳細ガイド(必要時のみ参照) - -| ファイル | 内容 | 参照タイミング | -|---------|------|--------------| -| `01-uv-setup.md` | uv詳細セットアップ、Pythonバージョン管理 | 初回セットアップ時 | -| `02-troubleshooting.md` | エラー解決策 | 問題発生時 | - -## 関連Skill - -- **corder-code-templates**: Pythonコードテンプレート -- **corder-test-generation**: Pythonテスト生成 diff --git a/plugins/ndf-codex/.codex-plugin/plugin.json b/plugins/ndf-codex/.codex-plugin/plugin.json index 806a9c3d..127ba714 100644 --- a/plugins/ndf-codex/.codex-plugin/plugin.json +++ b/plugins/ndf-codex/.codex-plugin/plugin.json @@ -1,7 +1,7 @@ { "name": "ndf", "version": "4.20.1", - "description": "Codex plugin with focused NDF skills for PR/review workflows, cross-review, implementation planning, Playwright testing, Docker container access, GitHub operations, and optional Slack completion notifications.", + "description": "Codex plugin with focused NDF skills for PR/review workflows, cross-review, implementation planning, Playwright testing, Docker container access, and optional Slack completion notifications.", "skills": "./skills/", "hooks": "./hooks/hooks.json" } diff --git a/plugins/ndf-codex/skills/deploy/SKILL.md b/plugins/ndf-codex/skills/deploy/SKILL.md index 769919d7..b338c84c 100644 --- a/plugins/ndf-codex/skills/deploy/SKILL.md +++ b/plugins/ndf-codex/skills/deploy/SKILL.md @@ -1,6 +1,6 @@ --- name: deploy -description: "Create deploy PRs from feature to environment branches." +description: "Create a deploy PR from the current feature branch to an environment branch such as qa/staging or release/v2. 破壊的操作のため、利用者が /ndf:deploy を明示的に指示したときのみ実行する(環境ブランチへデプロイ / qaに上げる / stagingに反映 / リリースブランチへPR)。deployブランチを作成し origin/main を取り込んでからPRを出す。" argument-hint: " (例: qa/staging, release/v2)" disable-model-invocation: true allowed-tools: diff --git a/plugins/ndf-codex/skills/docker-container-access/SKILL.md b/plugins/ndf-codex/skills/docker-container-access/SKILL.md index eadd1ffe..444a993f 100644 --- a/plugins/ndf-codex/skills/docker-container-access/SKILL.md +++ b/plugins/ndf-codex/skills/docker-container-access/SKILL.md @@ -67,7 +67,6 @@ ls -la /var/run/docker.sock 2>/dev/null && echo "DooD環境" || echo "DinDまた ## 関連Skill -- **python-execution**: Python実行環境の判定 - **corder-code-templates**: Dockerfileテンプレート ## 関連リソース diff --git a/plugins/ndf-codex/skills/git-gh-operations/01-common-errors.md b/plugins/ndf-codex/skills/git-gh-operations/01-common-errors.md deleted file mode 100644 index a7afa445..00000000 --- a/plugins/ndf-codex/skills/git-gh-operations/01-common-errors.md +++ /dev/null @@ -1,145 +0,0 @@ -# Git / gh 共通エラー事例集 - -## 1. git add pathspec エラー - -### 事象 -``` -fatal: pathspec 'lambda-batch/CarImageProcessingPipeline/src/foo.py' did not match any files -``` - -### 原因 -CWD が `/work/repo/lambda-batch/CarImageProcessingPipeline/` なのに、 -リポジトリルートからの相対パスで `git add` した。 - -`git status` はリポジトリルートからの相対パスで表示するが、 -`git add` は CWD からの相対パスで解決する。 - -### 予防策 -```bash -# Step 1: CWD確認 -pwd -# => /work/repo/lambda-batch/CarImageProcessingPipeline/ - -# Step 2: git status の出力を確認 -git status -# modified: lambda-batch/CarImageProcessingPipeline/src/foo.py -# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -# これはリポジトリルートからの相対パス - -# Step 3: CWD からの相対パスに変換 -git add src/foo.py -# または -git add . # CWD以下のすべての変更 -``` - -## 2. gh api 404 エラー - -### 事象 -``` -gh api repos/owner/repo/pulls/comments/123/replies -f body='message' -# => 404 Not Found -``` - -### 原因 -POST メソッドが必要な API エンドポイントに GET でアクセスした。 -`gh api` はデフォルトで GET を使用する。 - -### 修正 -```bash -gh api -X POST repos/owner/repo/pulls/comments/123/replies -f body='message' -``` - -## 3. GitHub 自己 Approve エラー - -### 事象 -``` -Could not approve for pull request review. Can not approve your own pull request -``` - -### 原因 -GitHub はセキュリティ上、自分で作成した PR を APPROVE できない。 - -### 対策 -```bash -# pending review を削除してから COMMENT として再送信 -# method: "delete_pending" → method: "create" + event: "COMMENT" -``` - -## 4. AWS CLI [$LATEST] パースエラー - -### 事象 -``` -Unknown options: , , , -``` - -### 原因 -CloudWatch ログストリーム名に含まれる `[$LATEST]` が -`--query` JMESPath パーサーや shell の glob として解釈される。 - -### 対策 -```bash -# シングルクォートで囲んでも --query との組み合わせで問題が出る -# --output json + python パースが最も安全 -aws logs get-log-events \ - --log-group-name "/aws/lambda/func-name" \ - --log-stream-name '2026/02/18/[$LATEST]abc123' \ - --output json | python3 -c " -import sys, json -data = json.loads(sys.stdin.read()) -for e in data['events']: - print(e['message'].strip()) -" -``` - -## 5. git commit メッセージの特殊文字 - -### 事象 -コミットメッセージに日本語や改行が含まれるとエスケープ問題が発生。 - -### 対策 -常に HEREDOC 形式を使用: -```bash -git commit -m "$(cat <<'EOF' -日本語メッセージ - -詳細説明 - -Co-Authored-By: Claude Opus 4.6 -EOF -)" -``` - -注意: `<<'EOF'` (シングルクォート付き)で変数展開を抑制する。 - -## 6. gh pr checks が exit code 1 で止まる - -### 事象 -``` -gh pr checks 11765 2>&1 -# => チェック結果は表示されるが、1つでもfailがあると exit code 1 で終了 -# => Claude Code が「コマンド失敗」と判定して処理を中断 -``` - -### 原因 -`gh pr checks` は CI チェックに失敗があると非0の exit code を返す仕様。 -Claude Code の Bash ツールはコマンドの exit code が 0 以外だとエラーとして扱う。 - -### 対策 -常に `|| true` を付けて exit code を 0 にする: -```bash -# チェック一覧を取得(failがあっても止まらない) -gh pr checks 11765 2>&1 || true - -# --watch で完了待ちする場合も同様 -gh pr checks 11765 --watch 2>&1 || true - -# 失敗のみフィルタする場合 -gh pr checks 11765 2>&1 | grep -i fail || true -``` - -### 補足 -同様の問題が発生する gh コマンド: -- `gh run view RUN_ID --log-failed` (失敗ログ取得時) -- `gh pr diff` (差分が大きい場合にパイプ破損) - -いずれも `2>&1 || true` を付けることで安全に実行できる。 diff --git a/plugins/ndf-codex/skills/git-gh-operations/SKILL.md b/plugins/ndf-codex/skills/git-gh-operations/SKILL.md deleted file mode 100644 index 68b8a7a0..00000000 --- a/plugins/ndf-codex/skills/git-gh-operations/SKILL.md +++ /dev/null @@ -1,228 +0,0 @@ ---- -name: git-gh-operations -description: "Resolve git and GitHub CLI operation errors." -when_to_use: "git / gh コマンドでエラーが出た or 操作方法に迷うとき。Triggers: 'git add', 'git commit', 'git push', 'gh pr', 'gh api', 'GitHub操作', 'gitエラー', 'fatal:', 'pathspec'" -allowed-tools: - - Bash - - Read ---- - -# Git / gh 操作スキル - -## 最重要ルール: CWD とパスの整合性 - -git コマンドはすべて **CWD からの相対パス** で解決される。 -操作前に必ず `pwd` で CWD を確認すること。 - -### パターン1: CWDがサブディレクトリの場合 - -``` -# CWD: /work/repo/lambda-batch/MyProject/ -# リポジトリルート: /work/repo/ - -# NG: リポジトリルートからのパスを指定 -git add lambda-batch/MyProject/src/foo.py -# => fatal: pathspec did not match any files - -# OK: CWDからの相対パスを指定 -git add src/foo.py - -# OK: 絶対パスを指定 -git add /work/repo/lambda-batch/MyProject/src/foo.py -``` - -### パターン2: 安全な方法 - -```bash -# 方法A: git -C でリポジトリルートを指定 -git -C /work/repo add lambda-batch/MyProject/src/foo.py - -# 方法B: CWD を変更せずに絶対パスを使用 -git add "$(git rev-parse --show-toplevel)/lambda-batch/MyProject/src/foo.py" - -# 方法C(推奨): CWDからの相対パスを使用 -# まず pwd で確認してからパスを組み立てる -``` - -## git 操作チェックリスト - -### git add の前に - -1. `pwd` で CWD を確認 -2. `git status` で変更ファイルのパスを確認(表示されるパスはリポジトリルートからの相対パス) -3. `git status` の出力パスと CWD の関係を計算してから `git add` する - -### git commit の前に - -1. `git diff --cached` でステージング内容を確認 -2. HEREDOC形式でメッセージを渡す(改行・特殊文字の問題回避) - -```bash -git commit -m "$(cat <<'EOF' -コミットメッセージ - -Co-Authored-By: Claude Opus 4.6 -EOF -)" -``` - -## gh CLI / GitHub API の注意点 - -### パラメータ: `-f` vs `-F` - -```bash -# -f: 文字列パラメータ -gh api repos/OWNER/REPO/pulls/PR/comments -f body="テキスト" - -# -F: 非文字列パラメータ(数値、boolean、null、ファイル) -gh api repos/OWNER/REPO/pulls/PR/comments -F in_reply_to=2826074026 - -# 混在OK -gh api repos/OWNER/REPO/pulls/PR/comments -f body="返信テキスト" -F in_reply_to=2826074026 -``` - -### PRレビューコメントの取得 - -```bash -# コメント一覧を取得(id, path, body の先頭を表示) -gh api repos/OWNER/REPO/pulls/PR/comments \ - --jq '.[] | {id: .id, path: .path, body: (.body | split("\n")[0][:80])}' -``` - -### PRレビューコメントへの返信 - -```bash -# NG: /replies エンドポイントは存在しない(404になる) -gh api repos/OWNER/REPO/pulls/comments/{id}/replies -f body='...' -# => 404 Not Found - -# NG: -X POST を付けても同じ(エンドポイント自体が存在しない) -gh api -X POST repos/OWNER/REPO/pulls/comments/{id}/replies -f body='...' -# => 404 Not Found - -# OK: in_reply_to パラメータを使って新規コメントとして投稿 -gh api repos/OWNER/REPO/pulls/PR/comments \ - -f body="返信テキスト" \ - -F in_reply_to=COMMENT_ID -``` - -### レビュースレッドの Resolve(GraphQL) - -```bash -# 1. 未解決スレッドのID一覧を取得 -gh api graphql -f query=' -query { - repository(owner: "OWNER", name: "REPO") { - pullRequest(number: PR) { - reviewThreads(first: 50) { - nodes { - id - isResolved - comments(first: 1) { - nodes { path body } - } - } - } - } - } -}' --jq '.data.repository.pullRequest.reviewThreads.nodes[] | select(.isResolved == false) | {id, path: .comments.nodes[0].path}' - -# 2. スレッドを Resolve -gh api graphql -f query=' -mutation { - resolveReviewThread(input: {threadId: "PRRT_xxx"}) { - thread { isResolved } - } -}' -``` - -### PR の CI チェック結果 - -`gh pr checks` は1つでもfailがあると **exit code 1** で終了する。 -Claude Codeではコマンド失敗と判定されて処理が止まるため、必ず `|| true` を付ける。 - -```bash -# NG: failがあるとexit code 1で止まる -gh pr checks PR --repo OWNER/REPO - -# OK: exit codeを常に0にして出力を取得 -gh pr checks PR --repo OWNER/REPO 2>&1 || true - -# OK: 失敗のみフィルタ -gh pr checks PR --repo OWNER/REPO 2>&1 | grep -i fail || true -``` - -#### 重要: CIの完了を待ってはいけない - -- `--watch` や完了までのポーリングは **禁止**。現在のステータスを一度スナップショットするだけでよい。 -- チェックが `in_progress` / `queued` / `pending` の場合は **完了を待たず次のステップへ進む**。 -- 対応対象は **コード修正で直せるfailのみ**。以下のような「ステータス確認系」チェックは無視する: - - `check_pr_requirements` 等、PR要件・メタ情報のみ検証するもの - - Lint/テストに非依存なラベル/タイトル/説明チェック - - 外部サービス起因で自己修復するトランジェントなfail(再実行で直るもの) -- 対応する: ビルド失敗・テスト失敗・型エラー・lint違反など、**リポジトリ内コードの修正で解消可能なもの**。 - -```bash -# 失敗ジョブのログ(エラー行のみ抽出) -gh run view RUN_ID --repo OWNER/REPO --log-failed 2>&1 \ - | grep -E '(FAIL|Error|Tests:)' | head -20 || true -``` - -### 自分のPRは Approve できない - -``` -# GitHub の制約: 自分で作成した PR に APPROVE レビューは不可 -# => "Can not approve your own pull request" -# 対策: event を "COMMENT" に変更して送信 -``` - -### PR作成時の body は HEREDOC - -```bash -# NG: \n がリテラルで混入する可能性 -gh pr create --title "タイトル" --body "行1\n行2" - -# OK: HEREDOC形式 -gh pr create --title "タイトル" --body "$(cat <<'EOF' -## Summary -- 変更内容 - -## Test plan -- [ ] テスト項目 -EOF -)" -``` - -## AWS CLI の注意点 - -### CloudWatch ログストリーム名の [$LATEST] - -```bash -# NG: --query で [$LATEST] を含む文字列がパースエラー -aws logs get-log-events --query 'events[*].message' --output text - -# OK: --output json にして python でパース -aws logs get-log-events --output json | python3 -c " -import sys,json -data = json.loads(sys.stdin.read()) -for e in data['events']: - print(e['message'].strip()) -" -``` - -## エラー事例集 - -| エラーメッセージ | 原因 | 対策 | -|----------------|------|------| -| `fatal: pathspec '...' did not match any files` | CWD とパスの不一致 | `pwd` 確認後、CWD相対パスで指定 | -| `404 Not Found` (gh api replies) | `/comments/{id}/replies` は存在しない | `in_reply_to` パラメータで投稿 | -| `422 Unprocessable` (gh api) | `-f` で数値を渡した | 数値は `-F` を使う | -| `Can not approve your own pull request` | 自己 Approve 不可 | `COMMENT` イベントに変更 | -| `gh pr checks` が exit code 1 | 1つでもfailがあると非0終了 | `gh pr checks ... 2>&1 \|\| true` | -| `Unknown options: , , ,` (aws cli) | `[$LATEST]` のシェルエスケープ | `--output json` + python パース | - -## 詳細ガイド - -| ファイル | 内容 | 参照タイミング | -|---------|------|--------------| -| `01-common-errors.md` | 詳細なエラー事例と再現手順 | エラー発生時 | diff --git a/plugins/ndf-codex/skills/logging-guidelines/SKILL.md b/plugins/ndf-codex/skills/logging-guidelines/SKILL.md index 007b9691..3ad64b34 100644 --- a/plugins/ndf-codex/skills/logging-guidelines/SKILL.md +++ b/plugins/ndf-codex/skills/logging-guidelines/SKILL.md @@ -1,7 +1,19 @@ --- name: logging-guidelines -description: "Design safe and useful application logging." -when_to_use: "コードにログを追加・修正・整理するとき。Triggers: 'ログ追加', 'log追加', 'logger', 'logging', 'ログレベル', 'log level', 'デバッグログ', 'エラーログ', 'logger.info', 'logger.error', 'print文をログに'" +description: "Choose log levels and write safe, useful application logs when adding or reworking logging in code(ログ追加 / logger / ログレベル / デバッグログ / エラーログ / print文をログに). Use when editing source code that emits logs, to pick the level and keep secrets and personal data out of the output." +paths: + - "**/*.py" + - "**/*.ts" + - "**/*.tsx" + - "**/*.js" + - "**/*.jsx" + - "**/*.go" + - "**/*.rb" + - "**/*.java" + - "**/*.kt" + - "**/*.php" + - "**/*.rs" + - "**/*.sh" --- # ログ運用ガイドライン diff --git a/plugins/ndf-codex/skills/python-execution/01-uv-setup.md b/plugins/ndf-codex/skills/python-execution/01-uv-setup.md deleted file mode 100644 index aafd4f1c..00000000 --- a/plugins/ndf-codex/skills/python-execution/01-uv-setup.md +++ /dev/null @@ -1,85 +0,0 @@ -# uv詳細セットアップガイド - -> **Note**: 基本的な`uv sync`と`uv run python`はSKILL.mdを参照。このファイルは初回セットアップや詳細設定が必要な場合のみ参照。 - -## uvインストール - -```bash -# Linux/macOS -curl -LsSf https://astral.sh/uv/install.sh | sh - -# pip経由(代替) -pip install uv - -# 確認 -uv --version -``` - -## 依存関係管理 - -```bash -# uv.lockがある場合(推奨) -uv sync - -# uv.lockがない場合 -uv lock && uv sync - -# 開発用依存関係も含める -uv sync --dev - -# 特定のextraを含める -uv sync --extra test -``` - -## Pythonバージョン管理 - -```bash -# 特定バージョンをインストール -uv python install 3.12 -uv python install 3.11 - -# プロジェクトで使用するバージョンを固定 -uv python pin 3.12 - -# インストール済みバージョン一覧 -uv python list -``` - -## 実行オプション - -```bash -# スクリプト実行 -uv run python script.py - -# モジュール実行 -uv run python -m pytest -uv run python -m mypy . - -# 引数付き -uv run python script.py --arg value - -# インタラクティブシェル -uv run python -``` - -## プロジェクト初期化(新規作成時) - -```bash -# 新規プロジェクト作成 -uv init my-project -cd my-project - -# 依存関係追加 -uv add requests -uv add --dev pytest - -# ロックファイル生成 -uv lock -``` - -## uv環境の利点 - -- **高速**: Rustで実装、pip比10-100倍速 -- **再現性**: uv.lockで完全な依存関係固定 -- **Pythonバージョン管理**: pyenvなしでバージョン切り替え -- **グローバル環境を汚染しない**: プロジェクト単位で隔離 diff --git a/plugins/ndf-codex/skills/python-execution/02-troubleshooting.md b/plugins/ndf-codex/skills/python-execution/02-troubleshooting.md deleted file mode 100644 index 3475b7ec..00000000 --- a/plugins/ndf-codex/skills/python-execution/02-troubleshooting.md +++ /dev/null @@ -1,112 +0,0 @@ -# Python実行 トラブルシューティング - -## よくある問題と解決策 - -### Q: `uv: command not found` - -**原因**: uvがインストールされていない - -**解決策**: -```bash -curl -LsSf https://astral.sh/uv/install.sh | sh -# シェルを再起動するか、パスを通す -source ~/.bashrc # または ~/.zshrc -``` - -### Q: `ModuleNotFoundError` - -**原因**: 依存関係がインストールされていない - -**解決策**: -```bash -# uv環境の場合 -uv sync - -# venv環境の場合 -.venv/bin/pip install -r requirements.txt - -# pyproject.tomlがある場合 -.venv/bin/pip install -e . -``` - -### Q: `python: command not found` - -**原因**: Pythonがインストールされていない、またはパスが通っていない - -**解決策**: -```bash -# python3を試す -python3 --version - -# uvでPythonをインストール -uv python install 3.12 -``` - -### Q: 異なるPythonバージョンが必要 - -**解決策(uv環境)**: -```bash -# 特定バージョンをインストール -uv python install 3.11 - -# プロジェクトで使用するバージョンを固定 -uv python pin 3.11 - -# そのバージョンで実行 -uv run python script.py -``` - -### Q: `pyproject.toml`はあるが`uv.lock`がない - -**解決策**: -```bash -# ロックファイルを生成 -uv lock - -# 依存関係をインストール -uv sync -``` - -### Q: 仮想環境が壊れている - -**解決策**: -```bash -# 仮想環境を削除して再作成 -rm -rf .venv - -# uv環境の場合 -uv sync - -# 手動で作成する場合 -python3 -m venv .venv -.venv/bin/pip install -r requirements.txt -``` - -### Q: パーミッションエラー - -**解決策**: -```bash -# 仮想環境を使用(推奨) -uv sync -uv run python script.py - -# どうしてもグローバルにインストールする場合(非推奨) -pip install --user package_name -``` - -### Q: SSL証明書エラー - -**解決策**: -```bash -# macOSの場合 -/Applications/Python\ 3.x/Install\ Certificates.command - -# または環境変数で一時的に無効化(非推奨) -export PYTHONHTTPSVERIFY=0 -``` - -## 関連リソース - -- [uv公式ドキュメント](https://docs.astral.sh/uv/) -- [Python venv](https://docs.python.org/3/library/venv.html) -- [pyproject.toml仕様](https://packaging.python.org/en/latest/specifications/pyproject-toml/) diff --git a/plugins/ndf-codex/skills/python-execution/SKILL.md b/plugins/ndf-codex/skills/python-execution/SKILL.md deleted file mode 100644 index a07705aa..00000000 --- a/plugins/ndf-codex/skills/python-execution/SKILL.md +++ /dev/null @@ -1,86 +0,0 @@ ---- -name: python-execution -description: "Detect and run the right Python environment." -when_to_use: "Python スクリプトを実行 / セットアップするとき。Triggers: 'python', 'uv', 'スクリプト', 'python環境'" -allowed-tools: - - Read - - Bash - - Glob ---- - -# Python Execution Skill - -## 概要 - -Pythonコードを実行する前に、プロジェクトの実行環境を調査し、適切な方法で実行するためのガイドラインです。 - -## Step 1: 環境検出 - -```bash -ls -la pyproject.toml uv.lock .venv/ venv/ requirements.txt 2>/dev/null -``` - -## Step 2: 実行コマンド選択 - -| 検出ファイル | 実行方法 | 優先度 | -|-------------|---------|-------| -| `pyproject.toml` | `uv run python` | 最高 | -| `.venv/` | `.venv/bin/python` | 中 | -| `venv/` | `venv/bin/python` | 中 | -| 何もなし | `python3` | 最低 | - -## Step 3: 実行 - -### uv環境(pyproject.tomlあり) - -```bash -# 依存関係インストール(初回のみ) -uv sync - -# 実行 -uv run python script.py -uv run python -m module_name -``` - -**uvがない場合のインストール**: -```bash -curl -LsSf https://astral.sh/uv/install.sh | sh -source ~/.bashrc # パスを反映 -``` - -### venv環境(.venv/あり) - -```bash -# 依存関係インストール(初回のみ) -.venv/bin/pip install -r requirements.txt - -# 実行 -.venv/bin/python script.py -``` - -### システムPython - -```bash -python3 script.py -``` - -## ベストプラクティス - -| DO | DON'T | -|----|-------| -| 実行前に環境を調査 | 環境を確認せずに実行 | -| README.md/CLAUDE.mdの指示を優先 | グローバル環境に依存関係をインストール | -| pyproject.tomlがあればuv使用 | source activateに依存 | -| 仮想環境のPythonをパス指定で実行 | python2を使用 | - -## 詳細ガイド(必要時のみ参照) - -| ファイル | 内容 | 参照タイミング | -|---------|------|--------------| -| `01-uv-setup.md` | uv詳細セットアップ、Pythonバージョン管理 | 初回セットアップ時 | -| `02-troubleshooting.md` | エラー解決策 | 問題発生時 | - -## 関連Skill - -- **corder-code-templates**: Pythonコードテンプレート -- **corder-test-generation**: Pythonテスト生成 diff --git a/plugins/ndf-kiro/skills/deploy/SKILL.md b/plugins/ndf-kiro/skills/deploy/SKILL.md index 769919d7..b338c84c 100644 --- a/plugins/ndf-kiro/skills/deploy/SKILL.md +++ b/plugins/ndf-kiro/skills/deploy/SKILL.md @@ -1,6 +1,6 @@ --- name: deploy -description: "Create deploy PRs from feature to environment branches." +description: "Create a deploy PR from the current feature branch to an environment branch such as qa/staging or release/v2. 破壊的操作のため、利用者が /ndf:deploy を明示的に指示したときのみ実行する(環境ブランチへデプロイ / qaに上げる / stagingに反映 / リリースブランチへPR)。deployブランチを作成し origin/main を取り込んでからPRを出す。" argument-hint: " (例: qa/staging, release/v2)" disable-model-invocation: true allowed-tools: diff --git a/plugins/ndf-kiro/skills/docker-container-access/SKILL.md b/plugins/ndf-kiro/skills/docker-container-access/SKILL.md index eadd1ffe..444a993f 100644 --- a/plugins/ndf-kiro/skills/docker-container-access/SKILL.md +++ b/plugins/ndf-kiro/skills/docker-container-access/SKILL.md @@ -67,7 +67,6 @@ ls -la /var/run/docker.sock 2>/dev/null && echo "DooD環境" || echo "DinDまた ## 関連Skill -- **python-execution**: Python実行環境の判定 - **corder-code-templates**: Dockerfileテンプレート ## 関連リソース diff --git a/plugins/ndf-kiro/skills/git-gh-operations/01-common-errors.md b/plugins/ndf-kiro/skills/git-gh-operations/01-common-errors.md deleted file mode 100644 index a7afa445..00000000 --- a/plugins/ndf-kiro/skills/git-gh-operations/01-common-errors.md +++ /dev/null @@ -1,145 +0,0 @@ -# Git / gh 共通エラー事例集 - -## 1. git add pathspec エラー - -### 事象 -``` -fatal: pathspec 'lambda-batch/CarImageProcessingPipeline/src/foo.py' did not match any files -``` - -### 原因 -CWD が `/work/repo/lambda-batch/CarImageProcessingPipeline/` なのに、 -リポジトリルートからの相対パスで `git add` した。 - -`git status` はリポジトリルートからの相対パスで表示するが、 -`git add` は CWD からの相対パスで解決する。 - -### 予防策 -```bash -# Step 1: CWD確認 -pwd -# => /work/repo/lambda-batch/CarImageProcessingPipeline/ - -# Step 2: git status の出力を確認 -git status -# modified: lambda-batch/CarImageProcessingPipeline/src/foo.py -# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -# これはリポジトリルートからの相対パス - -# Step 3: CWD からの相対パスに変換 -git add src/foo.py -# または -git add . # CWD以下のすべての変更 -``` - -## 2. gh api 404 エラー - -### 事象 -``` -gh api repos/owner/repo/pulls/comments/123/replies -f body='message' -# => 404 Not Found -``` - -### 原因 -POST メソッドが必要な API エンドポイントに GET でアクセスした。 -`gh api` はデフォルトで GET を使用する。 - -### 修正 -```bash -gh api -X POST repos/owner/repo/pulls/comments/123/replies -f body='message' -``` - -## 3. GitHub 自己 Approve エラー - -### 事象 -``` -Could not approve for pull request review. Can not approve your own pull request -``` - -### 原因 -GitHub はセキュリティ上、自分で作成した PR を APPROVE できない。 - -### 対策 -```bash -# pending review を削除してから COMMENT として再送信 -# method: "delete_pending" → method: "create" + event: "COMMENT" -``` - -## 4. AWS CLI [$LATEST] パースエラー - -### 事象 -``` -Unknown options: , , , -``` - -### 原因 -CloudWatch ログストリーム名に含まれる `[$LATEST]` が -`--query` JMESPath パーサーや shell の glob として解釈される。 - -### 対策 -```bash -# シングルクォートで囲んでも --query との組み合わせで問題が出る -# --output json + python パースが最も安全 -aws logs get-log-events \ - --log-group-name "/aws/lambda/func-name" \ - --log-stream-name '2026/02/18/[$LATEST]abc123' \ - --output json | python3 -c " -import sys, json -data = json.loads(sys.stdin.read()) -for e in data['events']: - print(e['message'].strip()) -" -``` - -## 5. git commit メッセージの特殊文字 - -### 事象 -コミットメッセージに日本語や改行が含まれるとエスケープ問題が発生。 - -### 対策 -常に HEREDOC 形式を使用: -```bash -git commit -m "$(cat <<'EOF' -日本語メッセージ - -詳細説明 - -Co-Authored-By: Claude Opus 4.6 -EOF -)" -``` - -注意: `<<'EOF'` (シングルクォート付き)で変数展開を抑制する。 - -## 6. gh pr checks が exit code 1 で止まる - -### 事象 -``` -gh pr checks 11765 2>&1 -# => チェック結果は表示されるが、1つでもfailがあると exit code 1 で終了 -# => Claude Code が「コマンド失敗」と判定して処理を中断 -``` - -### 原因 -`gh pr checks` は CI チェックに失敗があると非0の exit code を返す仕様。 -Claude Code の Bash ツールはコマンドの exit code が 0 以外だとエラーとして扱う。 - -### 対策 -常に `|| true` を付けて exit code を 0 にする: -```bash -# チェック一覧を取得(failがあっても止まらない) -gh pr checks 11765 2>&1 || true - -# --watch で完了待ちする場合も同様 -gh pr checks 11765 --watch 2>&1 || true - -# 失敗のみフィルタする場合 -gh pr checks 11765 2>&1 | grep -i fail || true -``` - -### 補足 -同様の問題が発生する gh コマンド: -- `gh run view RUN_ID --log-failed` (失敗ログ取得時) -- `gh pr diff` (差分が大きい場合にパイプ破損) - -いずれも `2>&1 || true` を付けることで安全に実行できる。 diff --git a/plugins/ndf-kiro/skills/git-gh-operations/SKILL.md b/plugins/ndf-kiro/skills/git-gh-operations/SKILL.md deleted file mode 100644 index 68b8a7a0..00000000 --- a/plugins/ndf-kiro/skills/git-gh-operations/SKILL.md +++ /dev/null @@ -1,228 +0,0 @@ ---- -name: git-gh-operations -description: "Resolve git and GitHub CLI operation errors." -when_to_use: "git / gh コマンドでエラーが出た or 操作方法に迷うとき。Triggers: 'git add', 'git commit', 'git push', 'gh pr', 'gh api', 'GitHub操作', 'gitエラー', 'fatal:', 'pathspec'" -allowed-tools: - - Bash - - Read ---- - -# Git / gh 操作スキル - -## 最重要ルール: CWD とパスの整合性 - -git コマンドはすべて **CWD からの相対パス** で解決される。 -操作前に必ず `pwd` で CWD を確認すること。 - -### パターン1: CWDがサブディレクトリの場合 - -``` -# CWD: /work/repo/lambda-batch/MyProject/ -# リポジトリルート: /work/repo/ - -# NG: リポジトリルートからのパスを指定 -git add lambda-batch/MyProject/src/foo.py -# => fatal: pathspec did not match any files - -# OK: CWDからの相対パスを指定 -git add src/foo.py - -# OK: 絶対パスを指定 -git add /work/repo/lambda-batch/MyProject/src/foo.py -``` - -### パターン2: 安全な方法 - -```bash -# 方法A: git -C でリポジトリルートを指定 -git -C /work/repo add lambda-batch/MyProject/src/foo.py - -# 方法B: CWD を変更せずに絶対パスを使用 -git add "$(git rev-parse --show-toplevel)/lambda-batch/MyProject/src/foo.py" - -# 方法C(推奨): CWDからの相対パスを使用 -# まず pwd で確認してからパスを組み立てる -``` - -## git 操作チェックリスト - -### git add の前に - -1. `pwd` で CWD を確認 -2. `git status` で変更ファイルのパスを確認(表示されるパスはリポジトリルートからの相対パス) -3. `git status` の出力パスと CWD の関係を計算してから `git add` する - -### git commit の前に - -1. `git diff --cached` でステージング内容を確認 -2. HEREDOC形式でメッセージを渡す(改行・特殊文字の問題回避) - -```bash -git commit -m "$(cat <<'EOF' -コミットメッセージ - -Co-Authored-By: Claude Opus 4.6 -EOF -)" -``` - -## gh CLI / GitHub API の注意点 - -### パラメータ: `-f` vs `-F` - -```bash -# -f: 文字列パラメータ -gh api repos/OWNER/REPO/pulls/PR/comments -f body="テキスト" - -# -F: 非文字列パラメータ(数値、boolean、null、ファイル) -gh api repos/OWNER/REPO/pulls/PR/comments -F in_reply_to=2826074026 - -# 混在OK -gh api repos/OWNER/REPO/pulls/PR/comments -f body="返信テキスト" -F in_reply_to=2826074026 -``` - -### PRレビューコメントの取得 - -```bash -# コメント一覧を取得(id, path, body の先頭を表示) -gh api repos/OWNER/REPO/pulls/PR/comments \ - --jq '.[] | {id: .id, path: .path, body: (.body | split("\n")[0][:80])}' -``` - -### PRレビューコメントへの返信 - -```bash -# NG: /replies エンドポイントは存在しない(404になる) -gh api repos/OWNER/REPO/pulls/comments/{id}/replies -f body='...' -# => 404 Not Found - -# NG: -X POST を付けても同じ(エンドポイント自体が存在しない) -gh api -X POST repos/OWNER/REPO/pulls/comments/{id}/replies -f body='...' -# => 404 Not Found - -# OK: in_reply_to パラメータを使って新規コメントとして投稿 -gh api repos/OWNER/REPO/pulls/PR/comments \ - -f body="返信テキスト" \ - -F in_reply_to=COMMENT_ID -``` - -### レビュースレッドの Resolve(GraphQL) - -```bash -# 1. 未解決スレッドのID一覧を取得 -gh api graphql -f query=' -query { - repository(owner: "OWNER", name: "REPO") { - pullRequest(number: PR) { - reviewThreads(first: 50) { - nodes { - id - isResolved - comments(first: 1) { - nodes { path body } - } - } - } - } - } -}' --jq '.data.repository.pullRequest.reviewThreads.nodes[] | select(.isResolved == false) | {id, path: .comments.nodes[0].path}' - -# 2. スレッドを Resolve -gh api graphql -f query=' -mutation { - resolveReviewThread(input: {threadId: "PRRT_xxx"}) { - thread { isResolved } - } -}' -``` - -### PR の CI チェック結果 - -`gh pr checks` は1つでもfailがあると **exit code 1** で終了する。 -Claude Codeではコマンド失敗と判定されて処理が止まるため、必ず `|| true` を付ける。 - -```bash -# NG: failがあるとexit code 1で止まる -gh pr checks PR --repo OWNER/REPO - -# OK: exit codeを常に0にして出力を取得 -gh pr checks PR --repo OWNER/REPO 2>&1 || true - -# OK: 失敗のみフィルタ -gh pr checks PR --repo OWNER/REPO 2>&1 | grep -i fail || true -``` - -#### 重要: CIの完了を待ってはいけない - -- `--watch` や完了までのポーリングは **禁止**。現在のステータスを一度スナップショットするだけでよい。 -- チェックが `in_progress` / `queued` / `pending` の場合は **完了を待たず次のステップへ進む**。 -- 対応対象は **コード修正で直せるfailのみ**。以下のような「ステータス確認系」チェックは無視する: - - `check_pr_requirements` 等、PR要件・メタ情報のみ検証するもの - - Lint/テストに非依存なラベル/タイトル/説明チェック - - 外部サービス起因で自己修復するトランジェントなfail(再実行で直るもの) -- 対応する: ビルド失敗・テスト失敗・型エラー・lint違反など、**リポジトリ内コードの修正で解消可能なもの**。 - -```bash -# 失敗ジョブのログ(エラー行のみ抽出) -gh run view RUN_ID --repo OWNER/REPO --log-failed 2>&1 \ - | grep -E '(FAIL|Error|Tests:)' | head -20 || true -``` - -### 自分のPRは Approve できない - -``` -# GitHub の制約: 自分で作成した PR に APPROVE レビューは不可 -# => "Can not approve your own pull request" -# 対策: event を "COMMENT" に変更して送信 -``` - -### PR作成時の body は HEREDOC - -```bash -# NG: \n がリテラルで混入する可能性 -gh pr create --title "タイトル" --body "行1\n行2" - -# OK: HEREDOC形式 -gh pr create --title "タイトル" --body "$(cat <<'EOF' -## Summary -- 変更内容 - -## Test plan -- [ ] テスト項目 -EOF -)" -``` - -## AWS CLI の注意点 - -### CloudWatch ログストリーム名の [$LATEST] - -```bash -# NG: --query で [$LATEST] を含む文字列がパースエラー -aws logs get-log-events --query 'events[*].message' --output text - -# OK: --output json にして python でパース -aws logs get-log-events --output json | python3 -c " -import sys,json -data = json.loads(sys.stdin.read()) -for e in data['events']: - print(e['message'].strip()) -" -``` - -## エラー事例集 - -| エラーメッセージ | 原因 | 対策 | -|----------------|------|------| -| `fatal: pathspec '...' did not match any files` | CWD とパスの不一致 | `pwd` 確認後、CWD相対パスで指定 | -| `404 Not Found` (gh api replies) | `/comments/{id}/replies` は存在しない | `in_reply_to` パラメータで投稿 | -| `422 Unprocessable` (gh api) | `-f` で数値を渡した | 数値は `-F` を使う | -| `Can not approve your own pull request` | 自己 Approve 不可 | `COMMENT` イベントに変更 | -| `gh pr checks` が exit code 1 | 1つでもfailがあると非0終了 | `gh pr checks ... 2>&1 \|\| true` | -| `Unknown options: , , ,` (aws cli) | `[$LATEST]` のシェルエスケープ | `--output json` + python パース | - -## 詳細ガイド - -| ファイル | 内容 | 参照タイミング | -|---------|------|--------------| -| `01-common-errors.md` | 詳細なエラー事例と再現手順 | エラー発生時 | diff --git a/plugins/ndf-kiro/skills/logging-guidelines/SKILL.md b/plugins/ndf-kiro/skills/logging-guidelines/SKILL.md index 007b9691..3ad64b34 100644 --- a/plugins/ndf-kiro/skills/logging-guidelines/SKILL.md +++ b/plugins/ndf-kiro/skills/logging-guidelines/SKILL.md @@ -1,7 +1,19 @@ --- name: logging-guidelines -description: "Design safe and useful application logging." -when_to_use: "コードにログを追加・修正・整理するとき。Triggers: 'ログ追加', 'log追加', 'logger', 'logging', 'ログレベル', 'log level', 'デバッグログ', 'エラーログ', 'logger.info', 'logger.error', 'print文をログに'" +description: "Choose log levels and write safe, useful application logs when adding or reworking logging in code(ログ追加 / logger / ログレベル / デバッグログ / エラーログ / print文をログに). Use when editing source code that emits logs, to pick the level and keep secrets and personal data out of the output." +paths: + - "**/*.py" + - "**/*.ts" + - "**/*.tsx" + - "**/*.js" + - "**/*.jsx" + - "**/*.go" + - "**/*.rb" + - "**/*.java" + - "**/*.kt" + - "**/*.php" + - "**/*.rs" + - "**/*.sh" --- # ログ運用ガイドライン diff --git a/plugins/ndf-kiro/skills/python-execution/01-uv-setup.md b/plugins/ndf-kiro/skills/python-execution/01-uv-setup.md deleted file mode 100644 index aafd4f1c..00000000 --- a/plugins/ndf-kiro/skills/python-execution/01-uv-setup.md +++ /dev/null @@ -1,85 +0,0 @@ -# uv詳細セットアップガイド - -> **Note**: 基本的な`uv sync`と`uv run python`はSKILL.mdを参照。このファイルは初回セットアップや詳細設定が必要な場合のみ参照。 - -## uvインストール - -```bash -# Linux/macOS -curl -LsSf https://astral.sh/uv/install.sh | sh - -# pip経由(代替) -pip install uv - -# 確認 -uv --version -``` - -## 依存関係管理 - -```bash -# uv.lockがある場合(推奨) -uv sync - -# uv.lockがない場合 -uv lock && uv sync - -# 開発用依存関係も含める -uv sync --dev - -# 特定のextraを含める -uv sync --extra test -``` - -## Pythonバージョン管理 - -```bash -# 特定バージョンをインストール -uv python install 3.12 -uv python install 3.11 - -# プロジェクトで使用するバージョンを固定 -uv python pin 3.12 - -# インストール済みバージョン一覧 -uv python list -``` - -## 実行オプション - -```bash -# スクリプト実行 -uv run python script.py - -# モジュール実行 -uv run python -m pytest -uv run python -m mypy . - -# 引数付き -uv run python script.py --arg value - -# インタラクティブシェル -uv run python -``` - -## プロジェクト初期化(新規作成時) - -```bash -# 新規プロジェクト作成 -uv init my-project -cd my-project - -# 依存関係追加 -uv add requests -uv add --dev pytest - -# ロックファイル生成 -uv lock -``` - -## uv環境の利点 - -- **高速**: Rustで実装、pip比10-100倍速 -- **再現性**: uv.lockで完全な依存関係固定 -- **Pythonバージョン管理**: pyenvなしでバージョン切り替え -- **グローバル環境を汚染しない**: プロジェクト単位で隔離 diff --git a/plugins/ndf-kiro/skills/python-execution/02-troubleshooting.md b/plugins/ndf-kiro/skills/python-execution/02-troubleshooting.md deleted file mode 100644 index 3475b7ec..00000000 --- a/plugins/ndf-kiro/skills/python-execution/02-troubleshooting.md +++ /dev/null @@ -1,112 +0,0 @@ -# Python実行 トラブルシューティング - -## よくある問題と解決策 - -### Q: `uv: command not found` - -**原因**: uvがインストールされていない - -**解決策**: -```bash -curl -LsSf https://astral.sh/uv/install.sh | sh -# シェルを再起動するか、パスを通す -source ~/.bashrc # または ~/.zshrc -``` - -### Q: `ModuleNotFoundError` - -**原因**: 依存関係がインストールされていない - -**解決策**: -```bash -# uv環境の場合 -uv sync - -# venv環境の場合 -.venv/bin/pip install -r requirements.txt - -# pyproject.tomlがある場合 -.venv/bin/pip install -e . -``` - -### Q: `python: command not found` - -**原因**: Pythonがインストールされていない、またはパスが通っていない - -**解決策**: -```bash -# python3を試す -python3 --version - -# uvでPythonをインストール -uv python install 3.12 -``` - -### Q: 異なるPythonバージョンが必要 - -**解決策(uv環境)**: -```bash -# 特定バージョンをインストール -uv python install 3.11 - -# プロジェクトで使用するバージョンを固定 -uv python pin 3.11 - -# そのバージョンで実行 -uv run python script.py -``` - -### Q: `pyproject.toml`はあるが`uv.lock`がない - -**解決策**: -```bash -# ロックファイルを生成 -uv lock - -# 依存関係をインストール -uv sync -``` - -### Q: 仮想環境が壊れている - -**解決策**: -```bash -# 仮想環境を削除して再作成 -rm -rf .venv - -# uv環境の場合 -uv sync - -# 手動で作成する場合 -python3 -m venv .venv -.venv/bin/pip install -r requirements.txt -``` - -### Q: パーミッションエラー - -**解決策**: -```bash -# 仮想環境を使用(推奨) -uv sync -uv run python script.py - -# どうしてもグローバルにインストールする場合(非推奨) -pip install --user package_name -``` - -### Q: SSL証明書エラー - -**解決策**: -```bash -# macOSの場合 -/Applications/Python\ 3.x/Install\ Certificates.command - -# または環境変数で一時的に無効化(非推奨) -export PYTHONHTTPSVERIFY=0 -``` - -## 関連リソース - -- [uv公式ドキュメント](https://docs.astral.sh/uv/) -- [Python venv](https://docs.python.org/3/library/venv.html) -- [pyproject.toml仕様](https://packaging.python.org/en/latest/specifications/pyproject-toml/) diff --git a/plugins/ndf-kiro/skills/python-execution/SKILL.md b/plugins/ndf-kiro/skills/python-execution/SKILL.md deleted file mode 100644 index a07705aa..00000000 --- a/plugins/ndf-kiro/skills/python-execution/SKILL.md +++ /dev/null @@ -1,86 +0,0 @@ ---- -name: python-execution -description: "Detect and run the right Python environment." -when_to_use: "Python スクリプトを実行 / セットアップするとき。Triggers: 'python', 'uv', 'スクリプト', 'python環境'" -allowed-tools: - - Read - - Bash - - Glob ---- - -# Python Execution Skill - -## 概要 - -Pythonコードを実行する前に、プロジェクトの実行環境を調査し、適切な方法で実行するためのガイドラインです。 - -## Step 1: 環境検出 - -```bash -ls -la pyproject.toml uv.lock .venv/ venv/ requirements.txt 2>/dev/null -``` - -## Step 2: 実行コマンド選択 - -| 検出ファイル | 実行方法 | 優先度 | -|-------------|---------|-------| -| `pyproject.toml` | `uv run python` | 最高 | -| `.venv/` | `.venv/bin/python` | 中 | -| `venv/` | `venv/bin/python` | 中 | -| 何もなし | `python3` | 最低 | - -## Step 3: 実行 - -### uv環境(pyproject.tomlあり) - -```bash -# 依存関係インストール(初回のみ) -uv sync - -# 実行 -uv run python script.py -uv run python -m module_name -``` - -**uvがない場合のインストール**: -```bash -curl -LsSf https://astral.sh/uv/install.sh | sh -source ~/.bashrc # パスを反映 -``` - -### venv環境(.venv/あり) - -```bash -# 依存関係インストール(初回のみ) -.venv/bin/pip install -r requirements.txt - -# 実行 -.venv/bin/python script.py -``` - -### システムPython - -```bash -python3 script.py -``` - -## ベストプラクティス - -| DO | DON'T | -|----|-------| -| 実行前に環境を調査 | 環境を確認せずに実行 | -| README.md/CLAUDE.mdの指示を優先 | グローバル環境に依存関係をインストール | -| pyproject.tomlがあればuv使用 | source activateに依存 | -| 仮想環境のPythonをパス指定で実行 | python2を使用 | - -## 詳細ガイド(必要時のみ参照) - -| ファイル | 内容 | 参照タイミング | -|---------|------|--------------| -| `01-uv-setup.md` | uv詳細セットアップ、Pythonバージョン管理 | 初回セットアップ時 | -| `02-troubleshooting.md` | エラー解決策 | 問題発生時 | - -## 関連Skill - -- **corder-code-templates**: Pythonコードテンプレート -- **corder-test-generation**: Pythonテスト生成 diff --git a/plugins/ndf-shared/manifests/claude-skills.txt b/plugins/ndf-shared/manifests/claude-skills.txt index bb74879b..068c05d0 100644 --- a/plugins/ndf-shared/manifests/claude-skills.txt +++ b/plugins/ndf-shared/manifests/claude-skills.txt @@ -7,9 +7,7 @@ merged clean ndf-policies markdown-writing -python-execution docker-container-access -git-gh-operations branch-fix-strategy implementation-plan investigation-rules diff --git a/plugins/ndf-shared/manifests/codex-skills.txt b/plugins/ndf-shared/manifests/codex-skills.txt index 403632f8..dea561e8 100644 --- a/plugins/ndf-shared/manifests/codex-skills.txt +++ b/plugins/ndf-shared/manifests/codex-skills.txt @@ -5,7 +5,6 @@ cross-review deploy docker-container-access fix -git-gh-operations implementation-plan investigation-rules issue-plan-strategy @@ -22,7 +21,6 @@ playwright-test-planning pr pr-tests problem-solving -python-execution resolve-pr-comments review review-branch diff --git a/plugins/ndf-shared/manifests/kiro-skills.txt b/plugins/ndf-shared/manifests/kiro-skills.txt index b58dc6bd..14216801 100644 --- a/plugins/ndf-shared/manifests/kiro-skills.txt +++ b/plugins/ndf-shared/manifests/kiro-skills.txt @@ -7,9 +7,7 @@ merged clean ndf-policies markdown-writing -python-execution docker-container-access -git-gh-operations branch-fix-strategy implementation-plan investigation-rules diff --git a/plugins/ndf-shared/skills/data-analyst-export/01-formats.md b/plugins/ndf-shared/skills/data-analyst-export/01-formats.md deleted file mode 100644 index b30fc41f..00000000 --- a/plugins/ndf-shared/skills/data-analyst-export/01-formats.md +++ /dev/null @@ -1,143 +0,0 @@ -# エクスポート形式詳細 - -## CSV出力 - -### export-csv.js - -JSON配列をCSV形式に変換します。 - -**機能**: -- 自動ヘッダー生成 -- カスタムデリミタ(カンマ、タブ、セミコロン) -- 引用符エスケープ -- UTF-8 BOM対応(Excel互換) - -**使用例**: -```bash -# 基本的な使用 -node export-csv.js data.json output.csv - -# タブ区切り -node export-csv.js data.json output.tsv --delimiter="\t" - -# Excel互換(BOM付き) -node export-csv.js data.json output.csv --bom -``` - -**入力データ形式** (input.json): -```json -[ - {"id": 1, "name": "Product A", "price": 1000}, - {"id": 2, "name": "Product B", "price": 2000} -] -``` - -**出力** (output.csv): -```csv -id,name,price -1,Product A,1000 -2,Product B,2000 -``` - -## JSON出力 - -### export-json.js - -CSV/配列データをJSON形式に変換します。 - -**機能**: -- Pretty-print(整形出力) -- 圧縮出力 -- 配列またはオブジェクト形式 - -**使用例**: -```bash -# Pretty-print -node export-json.js data.csv output.json --pretty - -# 圧縮 -node export-json.js data.csv output.json --compact -``` - -## Excel出力 - -### export-excel.js - -JSON配列をExcelファイル(.xlsx)に変換します。 - -**機能**: -- 複数シート作成 -- ヘッダー書式設定 -- セルの書式設定(数値、通貨、日付) -- 列幅自動調整 - -**使用例**: -```bash -# 単一シート -node export-excel.js data.json output.xlsx - -# 複数シート(各シートのデータはdata.jsonに含む) -node export-excel.js multi-sheet-data.json output.xlsx -``` - -**multi-sheet-data.json の形式**: -```json -{ - "Sheet1": [ - {"id": 1, "name": "Item 1"} - ], - "Sheet2": [ - {"id": 2, "name": "Item 2"} - ] -} -``` - -## Markdownテーブル出力 - -### export-markdown.js - -JSON配列をMarkdownテーブルに変換します。 - -**機能**: -- GitHub Flavored Markdown形式 -- 列の自動整列 -- 見出し行の区切り - -**使用例**: -```bash -node export-markdown.js data.json output.md -``` - -**出力例**: -```markdown -| id | name | price | -|----|------|-------| -| 1 | Product A | 1000 | -| 2 | Product B | 2000 | -``` - -## トラブルシューティング - -### Q: Excelで日本語が文字化けする - -A: UTF-8 BOMを付与してください: -```bash -node export-csv.js data.json output.csv --bom -``` - -### Q: 大きなデータでメモリ不足 - -A: ストリーミング処理に変更: -```javascript -// ストリーミング版のスクリプトを使用 -node export-csv-stream.js large-data.json output.csv -``` - -### Q: Excelの行数制限(1048576行)を超える - -A: 複数ファイルに分割: -```javascript -// 100万行ごとに分割 -node export-excel.js data.json output --split 1000000 -// output-1.xlsx, output-2.xlsx, ... が生成される -``` diff --git a/plugins/ndf-shared/skills/data-analyst-export/02-examples.md b/plugins/ndf-shared/skills/data-analyst-export/02-examples.md deleted file mode 100644 index 3ec07abe..00000000 --- a/plugins/ndf-shared/skills/data-analyst-export/02-examples.md +++ /dev/null @@ -1,116 +0,0 @@ -# エクスポート実装例 - -## 例1: BigQueryクエリ結果をCSVにエクスポート - -```javascript -// クエリ実行(BigQuery MCP使用) -const results = await bigquery.query("SELECT * FROM dataset.table LIMIT 1000"); - -// CSVに変換 -const fs = require('fs'); -const exportCSV = require('./scripts/export-csv.js'); - -exportCSV(results, 'query-results.csv'); -console.log('✅ CSVにエクスポート完了: query-results.csv'); -``` - -## 例2: 分析結果をExcelレポートに出力 - -```javascript -// 複数の分析結果を取得 -const salesData = await bigquery.query("SELECT * FROM sales"); -const productData = await bigquery.query("SELECT * FROM products"); - -// 複数シートでExcel出力 -const data = { - "Sales": salesData, - "Products": productData -}; - -exportExcel(data, 'monthly-report.xlsx'); -console.log('✅ Excelレポート作成完了: monthly-report.xlsx'); -``` - -## 例3: ドキュメントにMarkdownテーブル挿入 - -```javascript -// クエリ結果を取得 -const topProducts = await bigquery.query( - "SELECT name, sales FROM products ORDER BY sales DESC LIMIT 10" -); - -// Markdownテーブルに変換 -const markdown = exportMarkdown(topProducts); - -// README.mdに挿入 -const fs = require('fs'); -const readme = fs.readFileSync('README.md', 'utf-8'); -const updatedReadme = readme.replace('', markdown); -fs.writeFileSync('README.md', updatedReadme); - -console.log('✅ README.mdにテーブルを挿入しました'); -``` - -## 例4: 日付付きファイル名でエクスポート - -```javascript -const today = new Date().toISOString().split('T')[0]; - -// 日付付きファイル名 -exportCSV(data, `sales-${today}.csv`); -exportExcel(data, `report-${today}.xlsx`); -``` - -## 例5: 大容量データの分割エクスポート - -```javascript -const CHUNK_SIZE = 100000; - -async function exportLargeData(query, outputPrefix) { - let offset = 0; - let fileIndex = 1; - let hasMore = true; - - while (hasMore) { - const results = await bigquery.query( - `${query} LIMIT ${CHUNK_SIZE} OFFSET ${offset}` - ); - - if (results.length === 0) { - hasMore = false; - break; - } - - const filename = `${outputPrefix}-${fileIndex}.csv`; - exportCSV(results, filename); - console.log(`✅ ${filename} 作成完了 (${results.length}行)`); - - offset += CHUNK_SIZE; - fileIndex++; - } - - console.log(`✅ 全${fileIndex - 1}ファイル作成完了`); -} - -// 使用 -await exportLargeData( - "SELECT * FROM large_table", - "output/large-data" -); -``` - -## 例6: フィルタ付きエクスポート - -```javascript -// 特定の条件でフィルタしてエクスポート -const results = await bigquery.query(` - SELECT * - FROM sales - WHERE date >= '2024-01-01' - AND region = 'APAC' -`); - -// ファイル名に条件を含める -exportCSV(results, 'sales-2024-apac.csv'); -exportJSON(results, 'sales-2024-apac.json', { pretty: true }); -``` diff --git a/plugins/ndf-shared/skills/data-analyst-export/SKILL.md b/plugins/ndf-shared/skills/data-analyst-export/SKILL.md deleted file mode 100644 index 59e6a2d8..00000000 --- a/plugins/ndf-shared/skills/data-analyst-export/SKILL.md +++ /dev/null @@ -1,64 +0,0 @@ ---- -name: data-analyst-export -description: "Export analysis results to CSV, JSON, Excel, or Markdown." -when_to_use: "Use when saving analysis results to files. Triggers: 'export data', 'save results', 'output CSV', 'output JSON', 'output Excel', 'データ出力', '結果保存', 'エクスポート'" -allowed-tools: - - Write - - Bash ---- - -# Data Analyst Export Skill - -## 概要 - -data-analystエージェントがクエリ結果を様々な形式でエクスポートする際に使用します。CSV、JSON、Excel、Markdownテーブルなど、用途に応じた最適な形式で出力できます。 - -## クイックリファレンス - -### 形式別コマンド - -```bash -# CSV出力 -node scripts/export-csv.js input.json output.csv - -# JSON出力 -node scripts/export-json.js input.csv output.json --pretty - -# Excel出力 -node scripts/export-excel.js input.json output.xlsx - -# Markdownテーブル出力 -node scripts/export-markdown.js input.json output.md -``` - -### 形式選択ガイド - -| 形式 | 用途 | -|------|------| -| CSV | 単純なデータ、他システム連携 | -| JSON | API連携、構造化データ | -| Excel | 複雑なレポート、書式設定 | -| Markdown | ドキュメント埋め込み | - -## ベストプラクティス - -| DO | DON'T | -|----|-------| -| 適切な形式を選択 | 全データをメモリに展開 | -| ヘッダーを含める | Excel形式で巨大データ(100万行制限) | -| 大きなデータはストリーミング | 日付フォーマットの不統一 | -| UTF-8 BOMを付与(Excel用CSV) | 特殊文字のエスケープ忘れ | - -## 詳細ガイド - -| ファイル | 内容 | -|---------|------| -| `01-formats.md` | 各形式のスクリプト詳細、オプション | -| `02-examples.md` | BigQuery結果のCSVエクスポート、Excelレポート作成の実例 | - -## 関連リソース - -- **scripts/export-csv.js**: CSV出力スクリプト -- **scripts/export-json.js**: JSON出力スクリプト -- **scripts/export-excel.js**: Excel出力スクリプト -- **scripts/export-markdown.js**: Markdownテーブル出力スクリプト diff --git a/plugins/ndf-shared/skills/data-analyst-export/scripts/export-csv.js b/plugins/ndf-shared/skills/data-analyst-export/scripts/export-csv.js deleted file mode 100755 index 2a284bc1..00000000 --- a/plugins/ndf-shared/skills/data-analyst-export/scripts/export-csv.js +++ /dev/null @@ -1,151 +0,0 @@ -#!/usr/bin/env node - -/** - * JSON配列をCSV形式に変換するスクリプト - * - * 使用方法: - * node export-csv.js input.json output.csv [options] - * - * オプション: - * --delimiter="," : デリミタ(デフォルト: カンマ) - * --bom : UTF-8 BOMを付与(Excel互換) - */ - -const fs = require('fs'); - -/** - * JSON配列をCSV文字列に変換 - */ -function jsonToCSV(data, options = {}) { - if (!Array.isArray(data) || data.length === 0) { - throw new Error('データは空でない配列である必要があります'); - } - - const delimiter = options.delimiter || ','; - const includeHeaders = options.includeHeaders !== false; - - // ヘッダー行を生成 - const headers = Object.keys(data[0]); - const headerLine = headers.map(h => escapeCSVValue(h, delimiter)).join(delimiter); - - // データ行を生成 - const dataLines = data.map(row => { - return headers.map(header => { - const value = row[header]; - return escapeCSVValue(value, delimiter); - }).join(delimiter); - }); - - // ヘッダーとデータを結合 - const lines = includeHeaders ? [headerLine, ...dataLines] : dataLines; - return lines.join('\n'); -} - -/** - * CSV値をエスケープ - */ -function escapeCSVValue(value, delimiter) { - if (value === null || value === undefined) { - return ''; - } - - const stringValue = String(value); - - // デリミタ、改行、ダブルクォートを含む場合はクォートで囲む - const needsQuoting = stringValue.includes(delimiter) || - stringValue.includes('\n') || - stringValue.includes('\r') || - stringValue.includes('"'); - - if (needsQuoting) { - // ダブルクォートをエスケープ(""に変換) - const escapedValue = stringValue.replace(/"/g, '""'); - return `"${escapedValue}"`; - } - - return stringValue; -} - -/** - * CSVファイルに書き込み - */ -function writeCSV(csv, outputPath, options = {}) { - let content = csv; - - // UTF-8 BOMを付与(Excel互換) - if (options.bom) { - content = '\uFEFF' + content; - } - - fs.writeFileSync(outputPath, content, 'utf-8'); -} - -/** - * メイン処理 - */ -function main() { - const args = process.argv.slice(2); - - if (args.length < 2) { - console.error('使用方法: node export-csv.js [options]'); - console.error(''); - console.error('オプション:'); - console.error(' --delimiter="," : デリミタ(デフォルト: カンマ)'); - console.error(' --bom : UTF-8 BOMを付与(Excel互換)'); - console.error(''); - console.error('例:'); - console.error(' node export-csv.js data.json output.csv'); - console.error(' node export-csv.js data.json output.tsv --delimiter="\\t"'); - console.error(' node export-csv.js data.json output.csv --bom'); - process.exit(1); - } - - const inputPath = args[0]; - const outputPath = args[1]; - - // オプションを解析 - const options = {}; - for (let i = 2; i < args.length; i++) { - const arg = args[i]; - if (arg.startsWith('--delimiter=')) { - options.delimiter = arg.split('=')[1]; - // エスケープシーケンスを処理 - options.delimiter = options.delimiter.replace(/\\t/g, '\t'); - } else if (arg === '--bom') { - options.bom = true; - } - } - - try { - // JSONファイルを読み込み - console.log(`📖 JSONファイルを読み込み中: ${inputPath}`); - const jsonData = fs.readFileSync(inputPath, 'utf-8'); - const data = JSON.parse(jsonData); - - // CSVに変換 - console.log('🔄 CSVに変換中...'); - const csv = jsonToCSV(data, options); - - // ファイルに書き込み - console.log(`💾 CSVファイルを保存中: ${outputPath}`); - writeCSV(csv, outputPath, options); - - console.log(''); - console.log('✅ CSVエクスポート完了'); - console.log(` 入力: ${inputPath}`); - console.log(` 出力: ${outputPath}`); - console.log(` 行数: ${data.length}行`); - console.log(` 列数: ${Object.keys(data[0] || {}).length}列`); - - } catch (error) { - console.error('❌ エラーが発生しました:', error.message); - process.exit(1); - } -} - -// モジュールとしてエクスポート(他のスクリプトから使用可能) -if (require.main === module) { - main(); -} else { - module.exports = { jsonToCSV, escapeCSVValue, writeCSV }; -} diff --git a/plugins/ndf-shared/skills/data-analyst-sql-optimization/01-patterns.md b/plugins/ndf-shared/skills/data-analyst-sql-optimization/01-patterns.md deleted file mode 100644 index f179b8be..00000000 --- a/plugins/ndf-shared/skills/data-analyst-sql-optimization/01-patterns.md +++ /dev/null @@ -1,145 +0,0 @@ -# SQL最適化パターン詳細 - -## 1. N+1クエリ削減 - -**問題**: ループ内で繰り返しSELECT文を実行 - -**解決**: JOINまたはサブクエリで1回のクエリに統合 - -```sql --- ❌ Bad: ループで実行(N+1クエリ) -SELECT * FROM users WHERE id = ?; -- N回実行 - --- ✅ Good: 1回のクエリで取得 -SELECT u.*, o.order_count -FROM users u -LEFT JOIN ( - SELECT user_id, COUNT(*) as order_count - FROM orders - GROUP BY user_id -) o ON u.id = o.user_id; -``` - -## 2. インデックス活用 - -**問題**: WHERE句の列にインデックスがない - -**解決**: 適切なインデックスを作成 - -```sql --- インデックス作成 -CREATE INDEX idx_orders_status_created ON orders(status, created_at); - --- ✅ インデックス効率化のためWHERE句の順序を調整 -SELECT * FROM orders -WHERE status = 'completed' -AND created_at > '2023-01-01'; -``` - -**インデックス作成の指針**: -- WHERE句で頻繁に使用される列 -- JOIN条件の列 -- ORDER BY句の列 -- カーディナリティ(値の多様性)が高い列 - -## 3. JOIN最適化 - -**問題**: 不要な大規模テーブルのJOIN - -**解決**: 必要な列のみ取得、結合順序の最適化 - -```sql --- ❌ Bad: SELECT * -SELECT * FROM orders o -JOIN products p ON o.product_id = p.id -JOIN users u ON o.user_id = u.id; - --- ✅ Good: 必要な列のみ -SELECT o.id, o.total, p.name, u.email -FROM orders o -JOIN products p ON o.product_id = p.id -JOIN users u ON o.user_id = u.id; -``` - -## 4. ウィンドウ関数活用 - -**問題**: 複雑なサブクエリの入れ子 - -**解決**: ROW_NUMBER(), RANK()等のウィンドウ関数を使用 - -```sql --- ❌ Bad: サブクエリの入れ子 -SELECT u.name, - (SELECT COUNT(*) FROM orders o WHERE o.user_id = u.id) as order_count, - (SELECT SUM(total) FROM orders o WHERE o.user_id = u.id) as order_total -FROM users u; - --- ✅ Good: ウィンドウ関数で1回のスキャン -SELECT DISTINCT u.name, - COUNT(o.id) OVER (PARTITION BY u.id) as order_count, - SUM(o.total) OVER (PARTITION BY u.id) as order_total -FROM users u -LEFT JOIN orders o ON u.id = o.user_id; -``` - -## 5. EXISTS vs IN - -**問題**: サブクエリでINを使用 - -**解決**: EXISTSに変更(多くの場合高速) - -```sql --- ❌ 遅い場合がある -SELECT * FROM users -WHERE id IN (SELECT user_id FROM orders WHERE total > 1000); - --- ✅ 通常より高速 -SELECT * FROM users u -WHERE EXISTS ( - SELECT 1 FROM orders o - WHERE o.user_id = u.id AND o.total > 1000 -); -``` - -## 6. LIMIT活用 - -**問題**: 全件取得後にアプリ側でフィルタ - -**解決**: SQLでLIMIT/OFFSETを使用 - -```sql --- ✅ ページング -SELECT * FROM orders -ORDER BY created_at DESC -LIMIT 20 OFFSET 0; -- 1ページ目 -``` - -## 7. 計算列のインデックス - -**問題**: WHERE句で関数を列に適用 - -**解決**: 計算済み列を作成してインデックス - -```sql --- ❌ Bad: 関数適用でインデックス無効 -SELECT * FROM users WHERE YEAR(created_at) = 2024; - --- ✅ Good: 範囲検索でインデックス有効 -SELECT * FROM users -WHERE created_at >= '2024-01-01' -AND created_at < '2025-01-01'; -``` - -## パフォーマンス測定 - -### 改善前後の比較 - -1. **実行時間測定** -2. **スキャンバイト数確認**(BigQuery) -3. **実行計画比較**: `EXPLAIN SELECT ...;` - -### 目標指標 - -- **実行時間**: 50%以上削減 -- **スキャンバイト数**: 70%以上削減 -- **インデックス使用**: EXPLAINでtype=ref以上 diff --git a/plugins/ndf-shared/skills/data-analyst-sql-optimization/02-examples.md b/plugins/ndf-shared/skills/data-analyst-sql-optimization/02-examples.md deleted file mode 100644 index ddfc6364..00000000 --- a/plugins/ndf-shared/skills/data-analyst-sql-optimization/02-examples.md +++ /dev/null @@ -1,136 +0,0 @@ -# SQL最適化 Before/After実例集 - -## 例1: N+1クエリの削減 - -**Before**: -```sql --- ループで実行(N+1クエリ) -SELECT * FROM users WHERE id = ?; -- N回実行 -``` - -**After**: -```sql --- 1回のクエリで取得 -SELECT u.*, o.order_count -FROM users u -LEFT JOIN ( - SELECT user_id, COUNT(*) as order_count - FROM orders - GROUP BY user_id -) o ON u.id = o.user_id; -``` - -**改善**: N+1回 → 1回のクエリ、大幅な高速化 - -## 例2: インデックス活用 - -**Before**: -```sql -SELECT * FROM orders -WHERE created_at > '2023-01-01' -AND status = 'completed'; --- インデックスなし、フルスキャン -``` - -**After**: -```sql --- インデックス作成 -CREATE INDEX idx_orders_status_created ON orders(status, created_at); - --- 同じクエリがインデックスを使用 -SELECT * FROM orders -WHERE status = 'completed' -AND created_at > '2023-01-01'; --- ORDER BY の順序を逆にしてインデックス効率化 -``` - -**改善**: フルスキャン → インデックススキャン、10倍以上高速化 - -## 例3: ウィンドウ関数活用 - -**Before**: -```sql --- サブクエリの入れ子 -SELECT u.name, - (SELECT COUNT(*) FROM orders o WHERE o.user_id = u.id) as order_count, - (SELECT SUM(total) FROM orders o WHERE o.user_id = u.id) as order_total -FROM users u; --- usersの各行でordersを2回スキャン -``` - -**After**: -```sql --- ウィンドウ関数で1回のスキャン -SELECT u.name, - COUNT(o.id) OVER (PARTITION BY u.id) as order_count, - SUM(o.total) OVER (PARTITION BY u.id) as order_total -FROM users u -LEFT JOIN orders o ON u.id = o.user_id; --- 1回のJOINで完結 -``` - -**改善**: 2N回スキャン → 1回のJOIN、大幅な高速化 - -## 例4: 不要なDISTINCTの削除 - -**Before**: -```sql -SELECT DISTINCT u.id, u.name -FROM users u -JOIN orders o ON u.id = o.user_id; --- DISTINCTで重複排除(コスト高) -``` - -**After**: -```sql -SELECT u.id, u.name -FROM users u -WHERE EXISTS ( - SELECT 1 FROM orders o WHERE o.user_id = u.id -); --- DISTINCTなしで同じ結果 -``` - -## 例5: BigQuery向け最適化 - -**Before**: -```sql -SELECT * -FROM `project.dataset.large_table` -WHERE DATE(timestamp) = '2024-01-15'; --- フルスキャン(高コスト) -``` - -**After**: -```sql -SELECT * -FROM `project.dataset.large_table` -WHERE timestamp >= '2024-01-15' -AND timestamp < '2024-01-16'; --- パーティション利用(低コスト) -``` - -**改善**: パーティションプルーニングで90%以上のコスト削減 - -## トラブルシューティング - -### Q: 最適化したのに遅い - -A: 以下を確認: -- インデックスが実際に使用されているか(EXPLAIN確認) -- 統計情報が最新か(ANALYZE TABLE実行) -- データ量が想定通りか - -### Q: どのパターンを適用すべきか分からない - -A: 以下の順で確認: -1. EXPLAINで実行計画を確認 -2. フルスキャンがあればインデックス作成 -3. N+1パターンがあればJOINに統合 -4. サブクエリが複雑ならウィンドウ関数検討 - -### Q: インデックスを作成したら書き込みが遅くなった - -A: インデックスの見直しが必要: -- 使用頻度の低いインデックスを削除 -- 複合インデックスで統合できないか検討 diff --git a/plugins/ndf-shared/skills/data-analyst-sql-optimization/SKILL.md b/plugins/ndf-shared/skills/data-analyst-sql-optimization/SKILL.md deleted file mode 100644 index 740130c4..00000000 --- a/plugins/ndf-shared/skills/data-analyst-sql-optimization/SKILL.md +++ /dev/null @@ -1,48 +0,0 @@ ---- -name: data-analyst-sql-optimization -description: "Optimize SQL queries and slow database workloads." -when_to_use: "Use when improving query performance or analyzing slow queries. Triggers: 'optimize SQL', 'slow query', 'improve performance', 'SQL最適化', 'クエリ改善', 'パフォーマンス向上'" ---- - -# Data Analyst SQL Optimization Skill - -## 概要 - -data-analystエージェントがSQLクエリのパフォーマンスを改善する際に使用します。実績のある最適化パターンとベストプラクティスを提供します。 - -## クイックリファレンス - -### 最適化パターン一覧 - -| # | パターン | 問題 | 解決策 | -|---|---------|------|--------| -| 1 | N+1削減 | ループ内SQL | JOINで1回に統合 | -| 2 | インデックス | フルスキャン | WHERE/JOIN列にインデックス | -| 3 | JOIN最適化 | 不要な大規模JOIN | 必要な列のみ取得 | -| 4 | ウィンドウ関数 | 複雑なサブクエリ | ROW_NUMBER(), RANK()使用 | -| 5 | EXISTS vs IN | 遅いIN句 | EXISTSに変更 | -| 6 | LIMIT活用 | 全件取得 | SQLでページング | - -### 基本的な使い方 - -1. 遅いクエリを特定 -2. EXPLAINで実行計画を確認 -3. 該当する最適化パターンを適用 -4. 再度EXPLAINで改善を確認 - -## ベストプラクティス - -| DO | DON'T | -|----|-------| -| EXPLAINで実行計画を確認 | 不要なDISTINCT | -| インデックスは選択的に作成 | 関数をWHERE句の列に適用 | -| 必要な列のみSELECT | 過剰なJOIN | -| 早期フィルタリング | サブクエリの多用 | -| 統計情報を更新 | インデックスの作り過ぎ | - -## 詳細ガイド - -| ファイル | 内容 | -|---------|------| -| `01-patterns.md` | 各最適化パターンの詳細説明 | -| `02-examples.md` | Before/After実例集 | diff --git a/plugins/ndf-shared/skills/deepwiki-transfer/SKILL.md b/plugins/ndf-shared/skills/deepwiki-transfer/SKILL.md deleted file mode 100644 index c2933b7c..00000000 --- a/plugins/ndf-shared/skills/deepwiki-transfer/SKILL.md +++ /dev/null @@ -1,144 +0,0 @@ ---- -name: deepwiki-transfer -description: "Transfer DeepWiki content into Markdown docs." -when_to_use: "DeepWiki から Markdown としてコンテンツを取得・転載したいとき。Triggers: 'deepwiki transfer', 'deepwiki転載', 'wiki転載', 'リポジトリドキュメント取得', 'DeepWikiからMarkdown', 'transfer wiki contents'" -disable-model-invocation: true -allowed-tools: - - Bash - - Read - - Write - - Edit - - Task ---- - -# DeepWiki コンテンツ転載スキル - -DeepWikiのドキュメントをリポジトリ内のディレクトリに1ページ1ファイルのMarkdownとして転載し、PRを作成する。 - -## 必要な入力 - -- **対象リポジトリ**: `owner/repo` 形式(例: `facebook/react`) -- **出力先ディレクトリ**: リポジトリ内のパス(例: `deepWiki/`) -- **出力言語**: ファイル名および内容の出力言語(デフォルト: 日本語) -- **ベースブランチ**: PRのマージ先(デフォルト: `main`) - -## スクリプトのパス - -本スキルのスクリプトは `$CLAUDE_PLUGIN_ROOT/skills/deepwiki-transfer/scripts/` に配置されている。 - -```bash -# スクリプトディレクトリの確認 -SCRIPT_DIR="$CLAUDE_PLUGIN_ROOT/skills/deepwiki-transfer/scripts" -ls "$SCRIPT_DIR" -``` - -## 処理手順 - -### Phase A: DeepWikiコンテンツの取得とファイル化 - -`scripts/fetch_wiki.py` を使って MCP サーバーに直接HTTPリクエストを送信し、全コンテンツを一時ファイルに保存する。LLMコンテキストを経由しないため、130万文字超のレスポンスも完全に保存できる。 - -```bash -# 公開リポジトリ(認証不要) -python "$SCRIPT_DIR/fetch_wiki.py" \ - --repo owner/repo \ - --output /tmp/deepwiki_raw.md \ - --public - -# プライベートリポジトリ(Devin APIキー必要) -python "$SCRIPT_DIR/fetch_wiki.py" \ - --repo owner/repo \ - --output /tmp/deepwiki_raw.md - -# Wiki構造も取得(セクション順序の決定に使用) -python "$SCRIPT_DIR/fetch_wiki.py" \ - --repo owner/repo \ - --output /tmp/deepwiki_structure.md \ - --tool read_wiki_structure \ - --public -``` - -プライベートリポジトリの場合、環境変数 `DEVIN_API_KEY` にDevin APIキーを設定しておくこと。 - -### Phase B: 機械的ファイル分割&リネーム - -`scripts/split_pages.py` を使い、一時ファイルを `# Page:` マーカーで分割し、セクション番号prefix付きファイル名で出力する。 - -```bash -# まず dry-run で確認 -python "$SCRIPT_DIR/split_pages.py" \ - /tmp/deepwiki_raw.md ./deepWiki/ \ - --structure /tmp/deepwiki_structure.md \ - --dry-run - -# 問題なければ実行 -python "$SCRIPT_DIR/split_pages.py" \ - /tmp/deepwiki_raw.md ./deepWiki/ \ - --structure /tmp/deepwiki_structure.md -``` - -ファイル名の命名規則: -- トップレベル: `XX_Title.md`(例: `01_Overview.md`) -- サブセクション: `XX_Y_Title.md`(例: `01_1_System_Architecture.md`) -- ソート順がセクション順と一致すること - -**この時点では内容を一切変更しない。** - -### Phase C: 1ページずつGFM形式変換 - -`scripts/validate_gfm.py` で自動修正した後、各ファイルを1ページずつ確認・修正する。 - -```bash -# 自動修正 -python "$SCRIPT_DIR/validate_gfm.py" ./deepWiki/ --verbose - -# 検証のみ -python "$SCRIPT_DIR/validate_gfm.py" ./deepWiki/ --check-only -``` - -自動修正の範囲: -- コードブロックの言語指定(``` → ```mermaid, ```php, ```sql 等) -- 見出し前後の空行挿入 -- 末尾改行の統一 - -自動修正後、各ファイルを1ページずつ開いて以下を確認: -- コードブロックの言語指定が正しいか(自動推定が誤っている場合は手動修正) -- テーブルのパイプ区切りやアライメント行が正しいか -- リンクや画像参照の構文が正しいか -- 見出しの階層が適切か - -**内容の意味を変えず、GFM上の記法修正のみ行う。言語変換はこのフェーズでは行わない。** - -### Phase D: 1ページずつ言語変換(出力言語が原文と異なる場合のみ) - -ユーザー指定の出力言語が原文の言語と異なる場合、各ファイルを1ページずつ処理する: - -1. **ファイル名**: タイトル部分を指定言語に翻訳してリネーム(prefixの `XX_` / `XX_Y_` は変更しない) -2. **ファイル内容**: 本文を指定言語に翻訳する。コードブロック内のコード、コマンド、変数名等は翻訳しない - -### Phase E: バリデーションとPR作成 - -1. 出力ディレクトリの `ls` でファイル一覧を表示し、ファイル数とセクション番号の整合性を確認 -2. 数件をランダムに選び、DeepWiki原文と照合して内容が一致していることを確認 -3. 変更をコミットしてプッシュ -4. PRを作成する。`.github/pull_request_template.md` がある場合はそのテンプレートに沿ってPR説明を作成 - -## 前提条件 - -- `requests` ライブラリ(`pip install requests`) -- 公開リポジトリ: 認証不要 -- プライベートリポジトリ: 環境変数 `DEVIN_API_KEY` にDevin APIキーを設定 - -## 禁止事項 - -- **Phase B完了時点では原文を一字一句そのまま保持すること。要約・省略・改変してはならない** -- Phase B・Cの時点では翻訳してはならない。言語変換はPhase Dでのみ行う -- 原文の内容を「理解して書き直す」のではなく、スクリプトで機械的に処理すること -- 出力先ディレクトリ以外のファイルを変更してはならない - -## 注意事項 - -- DeepWikiのコンテンツは通常**英語**で生成される。日本語出力が指定されている場合、Phase Dで翻訳する -- セクション番号が10以上でも0埋め2桁にすることでソート順を維持(`01_`, `02_`, ..., `10_`) -- `fetch_wiki.py` は MCP サーバーに直接HTTPリクエストを送信するため、`requests` ライブラリが必要 -- 既存ファイルがある場合は内容を比較し、差分がある部分のみ更新する diff --git a/plugins/ndf-shared/skills/deepwiki-transfer/scripts/fetch_wiki.py b/plugins/ndf-shared/skills/deepwiki-transfer/scripts/fetch_wiki.py deleted file mode 100644 index 17c2a83a..00000000 --- a/plugins/ndf-shared/skills/deepwiki-transfer/scripts/fetch_wiki.py +++ /dev/null @@ -1,229 +0,0 @@ -#!/usr/bin/env python3 -""" -DeepWiki MCP から read_wiki_contents を直接HTTP呼び出しし、 -レスポンス全体をファイルに保存するスクリプト。 - -LLMコンテキストを経由せず、MCPサーバーに直接HTTPリクエストを送信して -全コンテンツをファイル化する。 - -使用方法: - # プライベートリポジトリ(Devin MCP、APIキー必要) - python fetch_wiki.py --repo owner/repo --output /tmp/deepwiki_raw.md --api-key YOUR_KEY - - # 環境変数 DEVIN_API_KEY 利用 - DEVIN_API_KEY=xxx python fetch_wiki.py --repo owner/repo --output /tmp/deepwiki_raw.md - - # 公開リポジトリ(DeepWiki MCP、認証不要) - python fetch_wiki.py --repo facebook/react --output /tmp/deepwiki_raw.md --public - - # Wiki構造のみ取得 - python fetch_wiki.py --repo owner/repo --output /tmp/deepwiki_structure.md --tool read_wiki_structure -""" - -import argparse -import json -import os -import sys -import uuid - -try: - import requests -except ImportError: - print("エラー: requests ライブラリが必要です。pip install requests を実行してください。", file=sys.stderr) - sys.exit(1) - -# MCPサーバーのエンドポイント -DEVIN_MCP_URL = "https://mcp.devin.ai/mcp" -DEEPWIKI_MCP_URL = "https://mcp.deepwiki.com/mcp" - - -def create_jsonrpc_request(method: str, params: dict, request_id: int) -> dict: - """JSON-RPC 2.0 リクエストを生成する""" - return { - "jsonrpc": "2.0", - "id": request_id, - "method": method, - "params": params, - } - - -def parse_sse_json(resp: requests.Response) -> dict: - """SSE(Server-Sent Events)形式のレスポンスからJSON-RPCメッセージを抽出する""" - content_type = resp.headers.get("Content-Type", "") - if "text/event-stream" in content_type: - # SSE形式: "event: message\ndata: {...}\n\n" をパースする - for line in resp.text.split("\n"): - line = line.strip() - if line.startswith("data: "): - data_str = line[6:] - return json.loads(data_str) - raise RuntimeError("SSEレスポンスにdataフィールドが見つかりません") - else: - return resp.json() - - -def mcp_initialize(session: requests.Session, url: str) -> str | None: - """MCPサーバーとの初期化ハンドシェイクを行い、セッションIDを取得する""" - init_request = create_jsonrpc_request( - "initialize", - { - "protocolVersion": "2024-11-05", - "capabilities": {}, - "clientInfo": {"name": "deepwiki-fetch", "version": "1.0.0"}, - }, - 1, - ) - resp = session.post(url, json=init_request) - resp.raise_for_status() - - # SSE形式のレスポンスをパース - parse_sse_json(resp) - - # セッションIDをヘッダーから取得 - session_id = resp.headers.get("Mcp-Session-Id") - - # initialized 通知を送信 - notification = { - "jsonrpc": "2.0", - "method": "notifications/initialized", - "params": {}, - } - headers = {} - if session_id: - headers["Mcp-Session-Id"] = session_id - session.post(url, json=notification, headers=headers) - - return session_id - - -def mcp_call_tool( - session: requests.Session, - url: str, - tool_name: str, - arguments: dict, - session_id: str | None, -) -> str: - """MCPツールを呼び出し、テキスト結果を返す""" - call_request = create_jsonrpc_request( - "tools/call", - {"name": tool_name, "arguments": arguments}, - 2, - ) - headers = {} - if session_id: - headers["Mcp-Session-Id"] = session_id - - resp = session.post(url, json=call_request, headers=headers, timeout=300) - resp.raise_for_status() - - result = parse_sse_json(resp) - - if "error" in result: - error = result["error"] - raise RuntimeError(f"MCPエラー: [{error.get('code')}] {error.get('message')}") - - # レスポンスからテキストコンテンツを抽出 - content_parts = result.get("result", {}).get("content", []) - texts = [] - for part in content_parts: - if part.get("type") == "text": - texts.append(part["text"]) - - if not texts: - raise RuntimeError("MCPレスポンスにテキストコンテンツが含まれていません") - - return "\n".join(texts) - - -def main(): - parser = argparse.ArgumentParser( - description="DeepWiki MCPからWikiコンテンツを取得してファイルに保存する" - ) - parser.add_argument( - "--repo", - required=True, - help="対象リポジトリ(owner/repo形式、例: volareinc/carmo-system-console)", - ) - parser.add_argument( - "--output", - required=True, - help="出力先ファイルパス(例: /tmp/deepwiki_raw.md)", - ) - parser.add_argument( - "--api-key", - default=None, - help="Devin APIキー(未指定時は環境変数 DEVIN_API_KEY を使用)", - ) - parser.add_argument( - "--public", - action="store_true", - help="公開リポジトリ用のDeepWiki MCPを使用(認証不要)", - ) - parser.add_argument( - "--tool", - default="read_wiki_contents", - choices=["read_wiki_contents", "read_wiki_structure"], - help="使用するMCPツール(デフォルト: read_wiki_contents)", - ) - args = parser.parse_args() - - # エンドポイントと認証の設定 - if args.public: - url = DEEPWIKI_MCP_URL - api_key = None - print(f"DeepWiki MCP(公開)を使用: {url}") - else: - url = DEVIN_MCP_URL - api_key = args.api_key or os.environ.get("DEVIN_API_KEY") - if not api_key: - print( - "エラー: --api-key または環境変数 DEVIN_API_KEY が必要です(公開リポジトリは --public を指定)", - file=sys.stderr, - ) - sys.exit(1) - print(f"Devin MCP(プライベート対応)を使用: {url}") - - # HTTPセッション作成 - session = requests.Session() - if api_key: - session.headers["Authorization"] = f"Bearer {api_key}" - session.headers["Content-Type"] = "application/json" - session.headers["Accept"] = "application/json, text/event-stream" - - try: - # 1. MCP初期化 - print("MCPサーバーに接続中...") - session_id = mcp_initialize(session, url) - print(f"接続完了(セッションID: {session_id or 'なし'})") - - # 2. ツール呼び出し - print(f"{args.tool} を呼び出し中(リポジトリ: {args.repo})...") - content = mcp_call_tool( - session, url, args.tool, {"repoName": args.repo}, session_id - ) - - # 3. ファイルに保存 - with open(args.output, "w", encoding="utf-8") as f: - f.write(content) - - file_size = os.path.getsize(args.output) - line_count = content.count("\n") + 1 - print(f"保存完了: {args.output}") - print(f" サイズ: {file_size:,} bytes") - print(f" 行数: {line_count:,}") - - # ページ数をカウント(read_wiki_contents の場合) - if args.tool == "read_wiki_contents": - page_count = content.count("# Page: ") - print(f" ページ数: {page_count}") - - except requests.exceptions.RequestException as e: - print(f"HTTP通信エラー: {e}", file=sys.stderr) - sys.exit(1) - except RuntimeError as e: - print(f"エラー: {e}", file=sys.stderr) - sys.exit(1) - - -if __name__ == "__main__": - main() diff --git a/plugins/ndf-shared/skills/deepwiki-transfer/scripts/pyproject.toml b/plugins/ndf-shared/skills/deepwiki-transfer/scripts/pyproject.toml deleted file mode 100644 index 9213b749..00000000 --- a/plugins/ndf-shared/skills/deepwiki-transfer/scripts/pyproject.toml +++ /dev/null @@ -1,13 +0,0 @@ -[project] -name = "deepwiki-transfer-scripts" -version = "1.0.0" -description = "DeepWiki MCP コンテンツ取得・分割・GFM検証スクリプト" -requires-python = ">=3.10" -dependencies = [ - "requests>=2.28.0", -] - -[project.scripts] -fetch-wiki = "fetch_wiki:main" -split-pages = "split_pages:main" -validate-gfm = "validate_gfm:main" diff --git a/plugins/ndf-shared/skills/deepwiki-transfer/scripts/split_pages.py b/plugins/ndf-shared/skills/deepwiki-transfer/scripts/split_pages.py deleted file mode 100644 index a2ad498f..00000000 --- a/plugins/ndf-shared/skills/deepwiki-transfer/scripts/split_pages.py +++ /dev/null @@ -1,266 +0,0 @@ -#!/usr/bin/env python3 -""" -DeepWiki生データファイルを `# Page:` マーカーで機械的に分割し、 -セクション番号prefix付きのファイル名でリネームして出力するスクリプト。 - -分割時に内容は一切変更しない(`# Page: {タイトル}` → `# {タイトル}` の置換のみ)。 - -使用方法: - python split_pages.py /tmp/deepwiki_raw.md ./deepWiki/ - - # 構造確認のみ(ファイル出力なし) - python split_pages.py /tmp/deepwiki_raw.md ./deepWiki/ --dry-run - - # Wiki構造ファイルからセクション順序を指定 - python split_pages.py /tmp/deepwiki_raw.md ./deepWiki/ --structure /tmp/deepwiki_structure.md -""" - -import argparse -import os -import re -import sys - - -def sanitize_filename(title: str) -> str: - """タイトルをファイル名に変換する(スペース→アンダースコア、特殊文字除去)""" - name = title.strip() - name = name.replace(" ", "_") - name = name.replace("/", "_") - name = name.replace("\\", "_") - # ファイル名として安全な文字のみ残す(英数字、日本語、アンダースコア、ハイフン、ドット) - name = re.sub(r"[^\w\-.]", "", name, flags=re.UNICODE) - return name - - -def parse_raw_file(filepath: str) -> list[tuple[str, str]]: - """ - 生データファイルを読み込み、`# Page:` マーカーで分割する。 - - 戻り値: [(タイトル, 内容), ...] のリスト - 内容の先頭行は `# Page: {タイトル}` → `# {タイトル}` に置換済み - """ - with open(filepath, "r", encoding="utf-8") as f: - raw = f.read() - - # `# Page: ` で始まる行を境界として分割 - pages = [] - current_title = None - current_lines = [] - - for line in raw.splitlines(keepends=True): - if line.startswith("# Page: "): - # 前のページを保存 - if current_title is not None: - pages.append((current_title, "".join(current_lines))) - # 新しいページ開始 - current_title = line[len("# Page: "):].strip() - # `# Page: {タイトル}` → `# {タイトル}` に置換 - current_lines = [f"# {current_title}\n"] - else: - if current_title is not None: - current_lines.append(line) - - # 最後のページを保存 - if current_title is not None: - pages.append((current_title, "".join(current_lines))) - - return pages - - -def parse_structure_file(filepath: str) -> list[str]: - """ - Wiki構造ファイルからページタイトルの順序リストを取得する。 - read_wiki_structure の出力を解析する。 - """ - with open(filepath, "r", encoding="utf-8") as f: - content = f.read() - - titles = [] - for line in content.splitlines(): - line = line.strip() - if not line: - continue - # 番号付きリスト、ハイフンリスト、または単純なタイトル行を検出 - # 例: "1. Overview", "- Overview", " 1.1 System Architecture" - match = re.match(r"^[\d.\-\s]*\s*(.+)$", line) - if match: - title = match.group(1).strip() - if title and not title.startswith("#") and not title.startswith("```"): - titles.append(title) - - return titles - - -def strip_section_number(title: str) -> str: - """タイトルからセクション番号部分を除去する(ファイル名生成用)""" - # "1.1 System Architecture" → "System Architecture" - # "2. API Reference" → "API Reference" - # "Overview" → "Overview"(変更なし) - stripped = re.sub(r"^\d+\.\d+\.?\s+", "", title) - stripped = re.sub(r"^\d+\.?\s+", "", stripped) - return stripped if stripped else title - - -def assign_prefixes(pages: list[tuple[str, str]], structure_titles: list[str] | None = None) -> list[tuple[str, str, str]]: - """ - 各ページにセクション番号prefixを割り当てる。 - - structure_titles が指定されている場合、その順序に従う。 - 未指定の場合、ページの出現順に連番を振る。 - - 戻り値: [(prefix, タイトル, 内容), ...] のリスト - タイトルはセクション番号を除去済み(ファイル名生成用) - """ - # ページタイトルからセクション構造を推定 - # DeepWikiの構造: トップレベルページ → サブセクションページの順 - result = [] - section_num = 0 - subsection_counts = {} - - if structure_titles: - # 構造ファイルからの順序に基づいてprefix割り当て - title_to_content = {title: content for title, content in pages} - ordered_titles = [] - - # 構造ファイルのタイトルとページタイトルをマッチング - for struct_title in structure_titles: - for page_title, _ in pages: - if _titles_match(struct_title, page_title): - ordered_titles.append(page_title) - break - - # マッチしなかったページを末尾に追加 - matched = set(ordered_titles) - for page_title, _ in pages: - if page_title not in matched: - ordered_titles.append(page_title) - - pages_ordered = [(t, title_to_content.get(t, "")) for t in ordered_titles if t in title_to_content] - else: - pages_ordered = pages - - # セクション構造の推定とprefix割り当て - # DeepWikiの典型的な構造: - # - 最初のページはOverview(トップレベル) - # - その後はセクション番号付きのページが続く - # - サブセクションはメインセクションの直後に配置される - prev_section = 0 - section_map = {} # タイトル → (section, subsection) - - for title, content in pages_ordered: - # タイトルからセクション番号を推定 - # パターン: "1.1 Title", "1.1. Title", "Section 1: Title" など - subsection_match = re.match(r"^(\d+)\.(\d+)\.?\s", title) - section_match = re.match(r"^(\d+)\.?\s", title) - - if subsection_match: - sec = int(subsection_match.group(1)) - sub = int(subsection_match.group(2)) - prefix = f"{sec:02d}_{sub}_" - prev_section = sec - elif section_match: - sec = int(section_match.group(1)) - prefix = f"{sec:02d}_" - prev_section = sec - else: - # 番号なしのページ(Overviewなど) - section_num += 1 - # 既に番号付きセクションが出現している場合、連番を続ける - if prev_section > 0 and section_num <= prev_section: - section_num = prev_section + 1 - prefix = f"{section_num:02d}_" - prev_section = section_num - - # ファイル名用にセクション番号を除去したタイトルを使用 - clean_title = strip_section_number(title) - result.append((prefix, clean_title, content)) - - return result - - -def _titles_match(struct_title: str, page_title: str) -> bool: - """構造ファイルのタイトルとページタイトルが一致するか判定する""" - # 完全一致 - if struct_title == page_title: - return True - # 正規化して比較(スペース、ハイフン、アンダースコアの違いを無視) - normalize = lambda s: re.sub(r"[\s\-_]+", " ", s.lower().strip()) - return normalize(struct_title) == normalize(page_title) - - -def main(): - parser = argparse.ArgumentParser( - description="DeepWiki生データを # Page: マーカーでファイル分割する" - ) - parser.add_argument( - "input", - help="入力ファイルパス(fetch_wiki.py の出力ファイル)", - ) - parser.add_argument( - "output_dir", - help="出力先ディレクトリパス(例: ./deepWiki/)", - ) - parser.add_argument( - "--structure", - default=None, - help="Wiki構造ファイルパス(read_wiki_structure の出力、セクション順序の決定に使用)", - ) - parser.add_argument( - "--dry-run", - action="store_true", - help="ファイル出力せず、分割結果のみ表示する", - ) - args = parser.parse_args() - - # 入力ファイル読み込み・分割 - if not os.path.exists(args.input): - print(f"エラー: 入力ファイルが見つかりません: {args.input}", file=sys.stderr) - sys.exit(1) - - print(f"入力ファイル読み込み中: {args.input}") - pages = parse_raw_file(args.input) - print(f"検出ページ数: {len(pages)}") - - if not pages: - print("エラー: ページが検出されませんでした。入力ファイルに `# Page:` マーカーが含まれているか確認してください。", file=sys.stderr) - sys.exit(1) - - # 構造ファイルがあればセクション順序を取得 - structure_titles = None - if args.structure: - if os.path.exists(args.structure): - structure_titles = parse_structure_file(args.structure) - print(f"構造ファイルから {len(structure_titles)} タイトルを読み込みました") - else: - print(f"警告: 構造ファイルが見つかりません: {args.structure}", file=sys.stderr) - - # prefix割り当て - prefixed_pages = assign_prefixes(pages, structure_titles) - - # 出力先ディレクトリ作成 - if not args.dry_run: - os.makedirs(args.output_dir, exist_ok=True) - - # ファイル出力 - print("\n--- 分割結果 ---") - for prefix, title, content in prefixed_pages: - filename = f"{prefix}{sanitize_filename(title)}.md" - filepath = os.path.join(args.output_dir, filename) - - content_size = len(content.encode("utf-8")) - line_count = content.count("\n") - print(f" {filename} ({content_size:,} bytes, {line_count} lines)") - - if not args.dry_run: - with open(filepath, "w", encoding="utf-8") as f: - f.write(content) - - print(f"\n合計: {len(prefixed_pages)} ファイル") - if args.dry_run: - print("(dry-runモード: ファイルは出力されていません)") - else: - print(f"出力先: {args.output_dir}") - - -if __name__ == "__main__": - main() diff --git a/plugins/ndf-shared/skills/deepwiki-transfer/scripts/validate_gfm.py b/plugins/ndf-shared/skills/deepwiki-transfer/scripts/validate_gfm.py deleted file mode 100644 index 867257a0..00000000 --- a/plugins/ndf-shared/skills/deepwiki-transfer/scripts/validate_gfm.py +++ /dev/null @@ -1,324 +0,0 @@ -#!/usr/bin/env python3 -""" -Markdownファイルを GitHub Flavored Markdown (GFM) Spec に準拠するよう検証・修正するスクリプト。 - -主な修正: - - 言語指定のないコードブロックに適切な言語を推定・付与 - - テーブルのパイプ区切りとアライメント行の修正 - - 見出し前後の空行挿入 - - 末尾改行の統一 - -使用方法: - # 単一ファイルを検証・修正 - python validate_gfm.py ./deepWiki/01_Overview.md - - # ディレクトリ内の全 .md ファイルを一括処理 - python validate_gfm.py ./deepWiki/ - - # 検証のみ(修正しない) - python validate_gfm.py ./deepWiki/ --check-only - - # 修正内容の詳細表示 - python validate_gfm.py ./deepWiki/ --verbose -""" - -import argparse -import glob -import os -import re -import sys - - -# コードブロックの言語推定パターン -LANGUAGE_PATTERNS = { - "mermaid": [ - re.compile(r"^\s*(graph\s+(TD|TB|BT|RL|LR)|flowchart\s+(TD|TB|BT|RL|LR)|sequenceDiagram|classDiagram|stateDiagram|erDiagram|gantt|pie|gitGraph|journey)", re.MULTILINE), - ], - "php": [ - re.compile(r"<\?php"), - re.compile(r"\$this->"), - re.compile(r"(function|class|namespace|use)\s+\w+"), - re.compile(r"->(get|set|find|create|update|delete)\w*\("), - ], - "sql": [ - re.compile(r"^\s*(SELECT|INSERT|UPDATE|DELETE|CREATE|ALTER|DROP|FROM|WHERE|JOIN|GROUP BY|ORDER BY)\s", re.MULTILINE | re.IGNORECASE), - ], - "json": [ - re.compile(r'^\s*\{[\s\S]*"[^"]+"\s*:', re.MULTILINE), - ], - "yaml": [ - re.compile(r"^\w+:\s*$", re.MULTILINE), - re.compile(r"^\s+-\s+\w+:", re.MULTILINE), - ], - "bash": [ - re.compile(r"^\s*(#!/bin/bash|#!/bin/sh|export\s|source\s|\$\(|apt-get|npm|pip|composer|docker|kubectl)", re.MULTILINE), - re.compile(r"^\s*\$\s+\w+", re.MULTILINE), - ], - "javascript": [ - re.compile(r"(const|let|var|function|=>\s*\{|import\s+.*from|require\()"), - ], - "typescript": [ - re.compile(r"(interface\s+\w+|type\s+\w+\s*=|:\s*(string|number|boolean|any)\b)"), - ], - "html": [ - re.compile(r"<(!DOCTYPE|html|head|body|div|span|table|form)\b", re.IGNORECASE), - ], - "css": [ - re.compile(r"^\s*[.#@]\w+.*\{", re.MULTILINE), - re.compile(r"(color|background|font-size|margin|padding|display)\s*:"), - ], - "python": [ - re.compile(r"(def\s+\w+|class\s+\w+|import\s+\w+|from\s+\w+\s+import)"), - ], - "xml": [ - re.compile(r"<\?xml\s"), - re.compile(r"<\w+\s+xmlns[=:]"), - ], -} - - -def detect_language(code_content: str) -> str | None: - """コードブロックの内容から言語を推定する""" - # スコアベースで最も適合する言語を選択 - scores = {} - for lang, patterns in LANGUAGE_PATTERNS.items(): - score = 0 - for pattern in patterns: - if pattern.search(code_content): - score += 1 - if score > 0: - scores[lang] = score - - if not scores: - return None - - # 最高スコアの言語を返す - return max(scores, key=scores.get) - - -def fix_code_blocks(content: str, verbose: bool = False) -> tuple[str, list[str]]: - """コードブロックに適切な言語指定を付与する""" - fixes = [] - lines = content.split("\n") - result = [] - i = 0 - - while i < len(lines): - line = lines[i] - - # 言語指定ありのコードブロック開始 → 閉じフェンスまでスキップ - if re.match(r"^```\w+", line): - result.append(line) - i += 1 - while i < len(lines) and not re.match(r"^```\s*$", lines[i]): - result.append(lines[i]) - i += 1 - if i < len(lines): - result.append(lines[i]) # 閉じフェンス - i += 1 - continue - - # 言語指定なしのコードブロック開始を検出 - if re.match(r"^```\s*$", line): - # コードブロックの内容を収集 - code_lines = [] - j = i + 1 - while j < len(lines) and not re.match(r"^```\s*$", lines[j]): - code_lines.append(lines[j]) - j += 1 - - code_content = "\n".join(code_lines) - detected = detect_language(code_content) - - if detected: - result.append(f"```{detected}") - fixes.append(f"行{i+1}: ``` → ```{detected}") - if verbose: - preview = code_content[:80].replace("\n", " ") - fixes[-1] += f" (内容: {preview}...)" - else: - result.append(line) - - # コンテンツ行を追加 - for cl in code_lines: - result.append(cl) - - # 閉じフェンスを追加してインデックスを進める - if j < len(lines): - result.append(lines[j]) # 閉じフェンス - i = j + 1 - else: - i = j - continue - - result.append(line) - i += 1 - - return "\n".join(result), fixes - - -def fix_table_formatting(content: str) -> tuple[str, list[str]]: - """テーブルのパイプ区切りとアライメント行を修正する""" - fixes = [] - lines = content.split("\n") - result = [] - i = 0 - - while i < len(lines): - line = lines[i] - - # テーブルヘッダー行の検出(パイプで区切られた行) - if "|" in line and i + 1 < len(lines): - # 次の行がアライメント行かチェック - next_line = lines[i + 1] - if re.match(r"^\s*\|[\s\-:|]+\|\s*$", next_line): - # アライメント行の列数がヘッダーと一致するか確認 - header_cols = len([c for c in line.split("|") if c.strip()]) - sep_cols = len([c for c in next_line.split("|") if c.strip() or c == ""]) - - # アライメント行のフォーマットを統一 - sep_parts = [p.strip() for p in next_line.split("|")] - sep_parts = [p for p in sep_parts if p or p == ""] - - result.append(line) - else: - result.append(line) - else: - result.append(line) - - i += 1 - - return "\n".join(result), fixes - - -def fix_heading_spacing(content: str) -> tuple[str, list[str]]: - """見出し前後に適切な空行を挿入する""" - fixes = [] - lines = content.split("\n") - result = [] - - for i, line in enumerate(lines): - # 見出し行の検出(# で始まる行) - if re.match(r"^#{1,6}\s+", line): - # 前の行が空行でない場合、空行を挿入(ファイル先頭を除く) - if result and result[-1].strip(): - result.append("") - fixes.append(f"行{i+1}: 見出し前に空行を挿入") - - result.append(line) - - # 見出し行の次が空行でない場合、空行を挿入 - if re.match(r"^#{1,6}\s+", line) and i + 1 < len(lines): - next_line = lines[i + 1] - if next_line.strip() and not re.match(r"^#{1,6}\s+", next_line): - # 次のループで追加されるので、ここでは何もしない - pass - - return "\n".join(result), fixes - - -def fix_trailing_newline(content: str) -> tuple[str, list[str]]: - """ファイル末尾の改行を統一する(1つの改行で終わる)""" - fixes = [] - if not content.endswith("\n"): - content += "\n" - fixes.append("ファイル末尾に改行を追加") - elif content.endswith("\n\n"): - content = content.rstrip("\n") + "\n" - fixes.append("ファイル末尾の余分な改行を削除") - return content, fixes - - -def validate_and_fix(filepath: str, check_only: bool = False, verbose: bool = False) -> list[str]: - """Markdownファイルを検証・修正する""" - with open(filepath, "r", encoding="utf-8") as f: - original = f.read() - - content = original - all_fixes = [] - - # 1. コードブロックの言語指定 - content, fixes = fix_code_blocks(content, verbose) - all_fixes.extend(fixes) - - # 2. テーブルフォーマット - content, fixes = fix_table_formatting(content) - all_fixes.extend(fixes) - - # 3. 見出し前後の空行 - content, fixes = fix_heading_spacing(content) - all_fixes.extend(fixes) - - # 4. 末尾改行 - content, fixes = fix_trailing_newline(content) - all_fixes.extend(fixes) - - # 修正を適用 - if all_fixes and not check_only: - with open(filepath, "w", encoding="utf-8") as f: - f.write(content) - - return all_fixes - - -def main(): - parser = argparse.ArgumentParser( - description="MarkdownファイルをGFM準拠に検証・修正する" - ) - parser.add_argument( - "path", - help="対象ファイルまたはディレクトリ", - ) - parser.add_argument( - "--check-only", - action="store_true", - help="検証のみ行い、ファイルを修正しない", - ) - parser.add_argument( - "--verbose", - "-v", - action="store_true", - help="修正内容の詳細を表示する", - ) - args = parser.parse_args() - - # 対象ファイル一覧を取得 - if os.path.isfile(args.path): - files = [args.path] - elif os.path.isdir(args.path): - files = sorted(glob.glob(os.path.join(args.path, "*.md"))) - else: - print(f"エラー: パスが見つかりません: {args.path}", file=sys.stderr) - sys.exit(1) - - if not files: - print(f"対象の .md ファイルが見つかりません: {args.path}") - sys.exit(0) - - total_fixes = 0 - files_with_fixes = 0 - - for filepath in files: - filename = os.path.basename(filepath) - fixes = validate_and_fix(filepath, args.check_only, args.verbose) - - if fixes: - files_with_fixes += 1 - total_fixes += len(fixes) - status = "要修正" if args.check_only else "修正済" - print(f" [{status}] {filename}: {len(fixes)} 件") - if args.verbose: - for fix in fixes: - print(f" - {fix}") - else: - if args.verbose: - print(f" [OK] {filename}") - - print(f"\n合計: {len(files)} ファイル, {files_with_fixes} ファイルに {total_fixes} 件の{'問題' if args.check_only else '修正'}") - - if args.check_only and total_fixes > 0: - sys.exit(1) - - -if __name__ == "__main__": - main() diff --git a/plugins/ndf-shared/skills/deploy/SKILL.md b/plugins/ndf-shared/skills/deploy/SKILL.md index 769919d7..b338c84c 100644 --- a/plugins/ndf-shared/skills/deploy/SKILL.md +++ b/plugins/ndf-shared/skills/deploy/SKILL.md @@ -1,6 +1,6 @@ --- name: deploy -description: "Create deploy PRs from feature to environment branches." +description: "Create a deploy PR from the current feature branch to an environment branch such as qa/staging or release/v2. 破壊的操作のため、利用者が /ndf:deploy を明示的に指示したときのみ実行する(環境ブランチへデプロイ / qaに上げる / stagingに反映 / リリースブランチへPR)。deployブランチを作成し origin/main を取り込んでからPRを出す。" argument-hint: " (例: qa/staging, release/v2)" disable-model-invocation: true allowed-tools: diff --git a/plugins/ndf-shared/skills/docker-container-access/SKILL.md b/plugins/ndf-shared/skills/docker-container-access/SKILL.md index eadd1ffe..444a993f 100644 --- a/plugins/ndf-shared/skills/docker-container-access/SKILL.md +++ b/plugins/ndf-shared/skills/docker-container-access/SKILL.md @@ -67,7 +67,6 @@ ls -la /var/run/docker.sock 2>/dev/null && echo "DooD環境" || echo "DinDまた ## 関連Skill -- **python-execution**: Python実行環境の判定 - **corder-code-templates**: Dockerfileテンプレート ## 関連リソース diff --git a/plugins/ndf-shared/skills/git-gh-operations/01-common-errors.md b/plugins/ndf-shared/skills/git-gh-operations/01-common-errors.md deleted file mode 100644 index a7afa445..00000000 --- a/plugins/ndf-shared/skills/git-gh-operations/01-common-errors.md +++ /dev/null @@ -1,145 +0,0 @@ -# Git / gh 共通エラー事例集 - -## 1. git add pathspec エラー - -### 事象 -``` -fatal: pathspec 'lambda-batch/CarImageProcessingPipeline/src/foo.py' did not match any files -``` - -### 原因 -CWD が `/work/repo/lambda-batch/CarImageProcessingPipeline/` なのに、 -リポジトリルートからの相対パスで `git add` した。 - -`git status` はリポジトリルートからの相対パスで表示するが、 -`git add` は CWD からの相対パスで解決する。 - -### 予防策 -```bash -# Step 1: CWD確認 -pwd -# => /work/repo/lambda-batch/CarImageProcessingPipeline/ - -# Step 2: git status の出力を確認 -git status -# modified: lambda-batch/CarImageProcessingPipeline/src/foo.py -# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -# これはリポジトリルートからの相対パス - -# Step 3: CWD からの相対パスに変換 -git add src/foo.py -# または -git add . # CWD以下のすべての変更 -``` - -## 2. gh api 404 エラー - -### 事象 -``` -gh api repos/owner/repo/pulls/comments/123/replies -f body='message' -# => 404 Not Found -``` - -### 原因 -POST メソッドが必要な API エンドポイントに GET でアクセスした。 -`gh api` はデフォルトで GET を使用する。 - -### 修正 -```bash -gh api -X POST repos/owner/repo/pulls/comments/123/replies -f body='message' -``` - -## 3. GitHub 自己 Approve エラー - -### 事象 -``` -Could not approve for pull request review. Can not approve your own pull request -``` - -### 原因 -GitHub はセキュリティ上、自分で作成した PR を APPROVE できない。 - -### 対策 -```bash -# pending review を削除してから COMMENT として再送信 -# method: "delete_pending" → method: "create" + event: "COMMENT" -``` - -## 4. AWS CLI [$LATEST] パースエラー - -### 事象 -``` -Unknown options: , , , -``` - -### 原因 -CloudWatch ログストリーム名に含まれる `[$LATEST]` が -`--query` JMESPath パーサーや shell の glob として解釈される。 - -### 対策 -```bash -# シングルクォートで囲んでも --query との組み合わせで問題が出る -# --output json + python パースが最も安全 -aws logs get-log-events \ - --log-group-name "/aws/lambda/func-name" \ - --log-stream-name '2026/02/18/[$LATEST]abc123' \ - --output json | python3 -c " -import sys, json -data = json.loads(sys.stdin.read()) -for e in data['events']: - print(e['message'].strip()) -" -``` - -## 5. git commit メッセージの特殊文字 - -### 事象 -コミットメッセージに日本語や改行が含まれるとエスケープ問題が発生。 - -### 対策 -常に HEREDOC 形式を使用: -```bash -git commit -m "$(cat <<'EOF' -日本語メッセージ - -詳細説明 - -Co-Authored-By: Claude Opus 4.6 -EOF -)" -``` - -注意: `<<'EOF'` (シングルクォート付き)で変数展開を抑制する。 - -## 6. gh pr checks が exit code 1 で止まる - -### 事象 -``` -gh pr checks 11765 2>&1 -# => チェック結果は表示されるが、1つでもfailがあると exit code 1 で終了 -# => Claude Code が「コマンド失敗」と判定して処理を中断 -``` - -### 原因 -`gh pr checks` は CI チェックに失敗があると非0の exit code を返す仕様。 -Claude Code の Bash ツールはコマンドの exit code が 0 以外だとエラーとして扱う。 - -### 対策 -常に `|| true` を付けて exit code を 0 にする: -```bash -# チェック一覧を取得(failがあっても止まらない) -gh pr checks 11765 2>&1 || true - -# --watch で完了待ちする場合も同様 -gh pr checks 11765 --watch 2>&1 || true - -# 失敗のみフィルタする場合 -gh pr checks 11765 2>&1 | grep -i fail || true -``` - -### 補足 -同様の問題が発生する gh コマンド: -- `gh run view RUN_ID --log-failed` (失敗ログ取得時) -- `gh pr diff` (差分が大きい場合にパイプ破損) - -いずれも `2>&1 || true` を付けることで安全に実行できる。 diff --git a/plugins/ndf-shared/skills/git-gh-operations/SKILL.md b/plugins/ndf-shared/skills/git-gh-operations/SKILL.md deleted file mode 100644 index 68b8a7a0..00000000 --- a/plugins/ndf-shared/skills/git-gh-operations/SKILL.md +++ /dev/null @@ -1,228 +0,0 @@ ---- -name: git-gh-operations -description: "Resolve git and GitHub CLI operation errors." -when_to_use: "git / gh コマンドでエラーが出た or 操作方法に迷うとき。Triggers: 'git add', 'git commit', 'git push', 'gh pr', 'gh api', 'GitHub操作', 'gitエラー', 'fatal:', 'pathspec'" -allowed-tools: - - Bash - - Read ---- - -# Git / gh 操作スキル - -## 最重要ルール: CWD とパスの整合性 - -git コマンドはすべて **CWD からの相対パス** で解決される。 -操作前に必ず `pwd` で CWD を確認すること。 - -### パターン1: CWDがサブディレクトリの場合 - -``` -# CWD: /work/repo/lambda-batch/MyProject/ -# リポジトリルート: /work/repo/ - -# NG: リポジトリルートからのパスを指定 -git add lambda-batch/MyProject/src/foo.py -# => fatal: pathspec did not match any files - -# OK: CWDからの相対パスを指定 -git add src/foo.py - -# OK: 絶対パスを指定 -git add /work/repo/lambda-batch/MyProject/src/foo.py -``` - -### パターン2: 安全な方法 - -```bash -# 方法A: git -C でリポジトリルートを指定 -git -C /work/repo add lambda-batch/MyProject/src/foo.py - -# 方法B: CWD を変更せずに絶対パスを使用 -git add "$(git rev-parse --show-toplevel)/lambda-batch/MyProject/src/foo.py" - -# 方法C(推奨): CWDからの相対パスを使用 -# まず pwd で確認してからパスを組み立てる -``` - -## git 操作チェックリスト - -### git add の前に - -1. `pwd` で CWD を確認 -2. `git status` で変更ファイルのパスを確認(表示されるパスはリポジトリルートからの相対パス) -3. `git status` の出力パスと CWD の関係を計算してから `git add` する - -### git commit の前に - -1. `git diff --cached` でステージング内容を確認 -2. HEREDOC形式でメッセージを渡す(改行・特殊文字の問題回避) - -```bash -git commit -m "$(cat <<'EOF' -コミットメッセージ - -Co-Authored-By: Claude Opus 4.6 -EOF -)" -``` - -## gh CLI / GitHub API の注意点 - -### パラメータ: `-f` vs `-F` - -```bash -# -f: 文字列パラメータ -gh api repos/OWNER/REPO/pulls/PR/comments -f body="テキスト" - -# -F: 非文字列パラメータ(数値、boolean、null、ファイル) -gh api repos/OWNER/REPO/pulls/PR/comments -F in_reply_to=2826074026 - -# 混在OK -gh api repos/OWNER/REPO/pulls/PR/comments -f body="返信テキスト" -F in_reply_to=2826074026 -``` - -### PRレビューコメントの取得 - -```bash -# コメント一覧を取得(id, path, body の先頭を表示) -gh api repos/OWNER/REPO/pulls/PR/comments \ - --jq '.[] | {id: .id, path: .path, body: (.body | split("\n")[0][:80])}' -``` - -### PRレビューコメントへの返信 - -```bash -# NG: /replies エンドポイントは存在しない(404になる) -gh api repos/OWNER/REPO/pulls/comments/{id}/replies -f body='...' -# => 404 Not Found - -# NG: -X POST を付けても同じ(エンドポイント自体が存在しない) -gh api -X POST repos/OWNER/REPO/pulls/comments/{id}/replies -f body='...' -# => 404 Not Found - -# OK: in_reply_to パラメータを使って新規コメントとして投稿 -gh api repos/OWNER/REPO/pulls/PR/comments \ - -f body="返信テキスト" \ - -F in_reply_to=COMMENT_ID -``` - -### レビュースレッドの Resolve(GraphQL) - -```bash -# 1. 未解決スレッドのID一覧を取得 -gh api graphql -f query=' -query { - repository(owner: "OWNER", name: "REPO") { - pullRequest(number: PR) { - reviewThreads(first: 50) { - nodes { - id - isResolved - comments(first: 1) { - nodes { path body } - } - } - } - } - } -}' --jq '.data.repository.pullRequest.reviewThreads.nodes[] | select(.isResolved == false) | {id, path: .comments.nodes[0].path}' - -# 2. スレッドを Resolve -gh api graphql -f query=' -mutation { - resolveReviewThread(input: {threadId: "PRRT_xxx"}) { - thread { isResolved } - } -}' -``` - -### PR の CI チェック結果 - -`gh pr checks` は1つでもfailがあると **exit code 1** で終了する。 -Claude Codeではコマンド失敗と判定されて処理が止まるため、必ず `|| true` を付ける。 - -```bash -# NG: failがあるとexit code 1で止まる -gh pr checks PR --repo OWNER/REPO - -# OK: exit codeを常に0にして出力を取得 -gh pr checks PR --repo OWNER/REPO 2>&1 || true - -# OK: 失敗のみフィルタ -gh pr checks PR --repo OWNER/REPO 2>&1 | grep -i fail || true -``` - -#### 重要: CIの完了を待ってはいけない - -- `--watch` や完了までのポーリングは **禁止**。現在のステータスを一度スナップショットするだけでよい。 -- チェックが `in_progress` / `queued` / `pending` の場合は **完了を待たず次のステップへ進む**。 -- 対応対象は **コード修正で直せるfailのみ**。以下のような「ステータス確認系」チェックは無視する: - - `check_pr_requirements` 等、PR要件・メタ情報のみ検証するもの - - Lint/テストに非依存なラベル/タイトル/説明チェック - - 外部サービス起因で自己修復するトランジェントなfail(再実行で直るもの) -- 対応する: ビルド失敗・テスト失敗・型エラー・lint違反など、**リポジトリ内コードの修正で解消可能なもの**。 - -```bash -# 失敗ジョブのログ(エラー行のみ抽出) -gh run view RUN_ID --repo OWNER/REPO --log-failed 2>&1 \ - | grep -E '(FAIL|Error|Tests:)' | head -20 || true -``` - -### 自分のPRは Approve できない - -``` -# GitHub の制約: 自分で作成した PR に APPROVE レビューは不可 -# => "Can not approve your own pull request" -# 対策: event を "COMMENT" に変更して送信 -``` - -### PR作成時の body は HEREDOC - -```bash -# NG: \n がリテラルで混入する可能性 -gh pr create --title "タイトル" --body "行1\n行2" - -# OK: HEREDOC形式 -gh pr create --title "タイトル" --body "$(cat <<'EOF' -## Summary -- 変更内容 - -## Test plan -- [ ] テスト項目 -EOF -)" -``` - -## AWS CLI の注意点 - -### CloudWatch ログストリーム名の [$LATEST] - -```bash -# NG: --query で [$LATEST] を含む文字列がパースエラー -aws logs get-log-events --query 'events[*].message' --output text - -# OK: --output json にして python でパース -aws logs get-log-events --output json | python3 -c " -import sys,json -data = json.loads(sys.stdin.read()) -for e in data['events']: - print(e['message'].strip()) -" -``` - -## エラー事例集 - -| エラーメッセージ | 原因 | 対策 | -|----------------|------|------| -| `fatal: pathspec '...' did not match any files` | CWD とパスの不一致 | `pwd` 確認後、CWD相対パスで指定 | -| `404 Not Found` (gh api replies) | `/comments/{id}/replies` は存在しない | `in_reply_to` パラメータで投稿 | -| `422 Unprocessable` (gh api) | `-f` で数値を渡した | 数値は `-F` を使う | -| `Can not approve your own pull request` | 自己 Approve 不可 | `COMMENT` イベントに変更 | -| `gh pr checks` が exit code 1 | 1つでもfailがあると非0終了 | `gh pr checks ... 2>&1 \|\| true` | -| `Unknown options: , , ,` (aws cli) | `[$LATEST]` のシェルエスケープ | `--output json` + python パース | - -## 詳細ガイド - -| ファイル | 内容 | 参照タイミング | -|---------|------|--------------| -| `01-common-errors.md` | 詳細なエラー事例と再現手順 | エラー発生時 | diff --git a/plugins/ndf-shared/skills/google-chat/SKILL.md b/plugins/ndf-shared/skills/google-chat/SKILL.md deleted file mode 100644 index cffb61cf..00000000 --- a/plugins/ndf-shared/skills/google-chat/SKILL.md +++ /dev/null @@ -1,153 +0,0 @@ ---- -name: google-chat -description: "Read Google Chat spaces and messages." -when_to_use: "Google Chat スペースのメッセージ取得・スペース一覧が必要なとき。Triggers: 'Google Chat', 'chat.spaces', 'chat.messages', 'Chatスペース', 'メッセージ取得', 'チャット履歴'" -allowed-tools: - - Read - - Bash(python *) - - Bash(uv *) ---- - -# Google Chat アクセス - -## 概要 - -Google Chat API (Python) を使ってチャットスペースのメッセージを取得する。 -認証は `ndf:google-auth` スキルの共通モジュール (`get_credentials()`) を使用。 - -## 提供物 - -``` -google-chat/ -├── SKILL.md ← このファイル -├── pyproject.toml ← uv プロジェクト (Chat API 依存) -└── scripts/ - └── gchat_read.py ← CLI: メッセージ一覧 / スペース一覧 -``` - -`gchat_read.py` は実行時に `ndf:google-auth` スキルの `google_auth.py` を sys.path に追加して -`get_credentials()` を呼ぶ。`google-auth` 側で OAuth2 トークンを取得済みであれば追加の認証は不要。 - -## 前提条件 - -| 項目 | 値 | -|---|---| -| 認証 | `ndf:google-auth` スキル (共通 OAuth2 モジュール) | -| Python 実行 | `uv run --project ${CLAUDE_SKILL_DIR} python ...` または `uv run --with ...` | -| client_secret.json | `ndf:google-auth` の手順で配置済み | -| 既存トークン | `~/.config/gcloud/google_token.json` (`ndf:google-auth` で取得済み) | -| Cloud Console | **Google Chat API の有効化**が必要 | -| アカウント | Google Workspace (Business / Enterprise)。無料 Gmail では利用不可 | - -## URL から Space ID を取得 - -Google Chat URL の末尾がそのまま Space ID になる。 - -``` -https://mail.google.com/mail/u/0/#chat/space/AAQA6AWG1iE - ^^^^^^^^^^^ - これが Space ID -``` - -API 呼び出し時は `spaces/AAQA6AWG1iE` の形式で指定する (スクリプトは ID のみ受け取る)。 - -## クイックスタート - -```bash -SKILL_DIR=${CLAUDE_SKILL_DIR} -SCRIPT=$SKILL_DIR/scripts/gchat_read.py - -# スペース一覧を表示 -uv run --project $SKILL_DIR python $SCRIPT --list-spaces - -# メッセージ一覧 (デフォルト Space ID) -uv run --project $SKILL_DIR python $SCRIPT - -# Space ID を指定 -uv run --project $SKILL_DIR python $SCRIPT --space AAQA6AWG1iE - -# 日付フィルタ (RFC-3339 形式) -uv run --project $SKILL_DIR python $SCRIPT --space AAQA6AWG1iE \ - --after "2024-01-01T00:00:00+09:00" - -# 出力先を変更 -uv run --project $SKILL_DIR python $SCRIPT --space AAQA6AWG1iE --output /tmp/my_chat.json -``` - -### 出力 - -- `--output` で指定した JSON ファイル (デフォルト: `/tmp/gchat_messages.json`) -- 標準出力に直近 5 件のプレビュー - -## API パラメータリファレンス - -### ListMessagesRequest - -| パラメータ | 型 | 説明 | -|---|---|---| -| `parent` | string | `spaces/{space_id}` 形式 (必須) | -| `page_size` | int | 最大取得件数 (デフォルト 25、最大 1,000) | -| `page_token` | string | ページネーション用トークン | -| `filter` | string | `createTime` や `thread.name` でフィルタ | -| `order_by` | string | `createTime ASC` または `createTime DESC` | -| `show_deleted` | bool | 削除済みメッセージを含めるか | - -### フィルタ構文 - -``` -# 特定日時以降 -createTime > "2024-01-01T00:00:00+09:00" - -# 日付範囲 -createTime > "2024-03-01T00:00:00+09:00" AND createTime < "2024-04-01T00:00:00+09:00" - -# スレッド指定 -thread.name = "spaces/AAQA6AWG1iE/threads/THREAD_ID" -``` - -### 必要な OAuth スコープ - -| スコープ | 用途 | -|---|---| -| `chat.spaces.readonly` | スペース一覧取得 (読み取り専用) | -| `chat.messages.readonly` | メッセージ一覧取得 (読み取り専用) | -| `chat.messages` | メッセージ読み書き (送信が必要な場合) | - -`ndf:google-auth` でこれらのスコープを取得しておく: - -```bash -! python ${CLAUDE_SKILLS_DIR:-${CLAUDE_PROJECT_DIR}/.claude/skills}/google-auth/scripts/google_auth.py \ - chat.messages.readonly chat.spaces.readonly -``` - -## トラブルシューティング - -### 403 PERMISSION_DENIED - -- Google Cloud Console で Chat API が有効化されているか確認 -- OAuth クライアント ID が Desktop app 用か確認 -- Google Workspace (Business / Enterprise) アカウントでログインしているか確認 -- 無料 Gmail アカウントでは利用不可 - -### 403 Insufficient scopes - -スコープ変更時はトークンを削除して再認証 (`ndf:google-auth` の `--clear` を使う): - -```bash -python ${CLAUDE_SKILLS_DIR:-${CLAUDE_PROJECT_DIR}/.claude/skills}/google-auth/scripts/google_auth.py --clear -! python ${CLAUDE_SKILLS_DIR:-${CLAUDE_PROJECT_DIR}/.claude/skills}/google-auth/scripts/google_auth.py \ - chat.messages.readonly chat.spaces.readonly -``` - -### INVALID_ARGUMENT (filter) - -- 日付は RFC-3339 形式: `"2024-01-01T00:00:00+09:00"` -- スレッド名はフルパス: `spaces/SPACE_ID/threads/THREAD_ID` - -### `GOOGLE_APPLICATION_CREDENTIALS` の干渉 - -サービスアカウントを指している場合は明示的にクリアする: - -```bash -GOOGLE_APPLICATION_CREDENTIALS="" uv run --project $SKILL_DIR python $SCRIPT --list-spaces -``` diff --git a/plugins/ndf-shared/skills/google-chat/pyproject.toml b/plugins/ndf-shared/skills/google-chat/pyproject.toml deleted file mode 100644 index f3d5b808..00000000 --- a/plugins/ndf-shared/skills/google-chat/pyproject.toml +++ /dev/null @@ -1,11 +0,0 @@ -[project] -name = "google-chat-skill" -version = "0.1.0" -description = "Google Chat API アクセスの依存関係 (ndf:google-auth と組み合わせて使用)" -requires-python = ">=3.9" -dependencies = [ - "google-apps-chat>=0.1.0", - "google-auth>=2.0.0", - "google-auth-httplib2>=0.2.0", - "google-auth-oauthlib>=1.0.0", -] diff --git a/plugins/ndf-shared/skills/google-chat/scripts/gchat_read.py b/plugins/ndf-shared/skills/google-chat/scripts/gchat_read.py deleted file mode 100644 index b98f3829..00000000 --- a/plugins/ndf-shared/skills/google-chat/scripts/gchat_read.py +++ /dev/null @@ -1,168 +0,0 @@ -"""Google Chat API メッセージ読み取りスクリプト - -Usage: - # デフォルトSpace IDでメッセージ取得 - python3 gchat_read.py - - # Space IDを指定 - python3 gchat_read.py --space AAQA6AWG1iE - - # 日付フィルタ付き - python3 gchat_read.py --space AAQA6AWG1iE --after "2024-01-01T00:00:00+09:00" - - # 出力先を変更 - python3 gchat_read.py --space AAQA6AWG1iE --output /tmp/my_chat.json - - # スペース一覧を表示 - python3 gchat_read.py --list-spaces -""" - -import argparse -import json -import os -import sys -from pathlib import Path - -# google-auth スキルの get_credentials() を使う。 -# 環境変数 GOOGLE_AUTH_SCRIPTS で google-auth/scripts のパスを指定可能。 -# 未指定の場合は次の候補を順に探す: -# 1. ~/.claude/skills/google-auth/scripts (uttarov 互換) -# 2. ../../google-auth/scripts (ndf プラグイン内の隣接スキル) -_CANDIDATES = ( - os.environ.get("GOOGLE_AUTH_SCRIPTS"), - os.path.expanduser("~/.claude/skills/google-auth/scripts"), - str(Path(__file__).resolve().parent.parent.parent / "google-auth" / "scripts"), -) -for _p in _CANDIDATES: - if _p and os.path.isdir(_p): - if _p not in sys.path: - sys.path.insert(0, _p) - break -from google_auth import get_credentials as _get_credentials # type: ignore # noqa: E402 - -from google.apps import chat_v1 as google_chat # noqa: E402 - -SCOPES = [ - 'chat.messages.readonly', - 'chat.spaces.readonly', -] - -DEFAULT_SPACE_ID = os.environ.get('GCHAT_DEFAULT_SPACE') or None -DEFAULT_OUTPUT = '/tmp/gchat_messages.json' - - -def get_credentials(): - return _get_credentials(SCOPES) - - -def create_client(): - creds = get_credentials() - full_scopes = [f'https://www.googleapis.com/auth/{s}' for s in SCOPES] - return google_chat.ChatServiceClient( - credentials=creds, - client_options={"scopes": full_scopes}, - ) - - -def list_spaces(): - client = create_client() - request = google_chat.ListSpacesRequest(filter='space_type = "SPACE"') - for space in client.list_spaces(request): - print(f"{space.name} - {space.display_name}") - - -def list_messages(space_id, page_size=200, filter_str=None, order_by='createTime DESC'): - client = create_client() - kwargs = { - 'parent': f'spaces/{space_id}', - 'page_size': page_size, - 'order_by': order_by, - } - if filter_str: - kwargs['filter'] = filter_str - - request = google_chat.ListMessagesRequest(**kwargs) - messages = [] - for message in client.list_messages(request): - d = type(message).to_dict(message) - - # attachment からDriveリンクを抽出 - attachments = [] - for att in (d.get('attachment') or []): - drive_ref = att.get('drive_data_ref') or {} - file_id = drive_ref.get('drive_file_id') - content_name = att.get('content_name', '') - content_type = att.get('content_type', '') - if file_id: - url = f'https://drive.google.com/file/d/{file_id}/view' - if 'folder' in content_type: - url = f'https://drive.google.com/drive/folders/{file_id}' - elif 'spreadsheet' in content_type: - url = f'https://docs.google.com/spreadsheets/d/{file_id}/edit' - elif 'document' in content_type: - url = f'https://docs.google.com/document/d/{file_id}/edit' - elif 'presentation' in content_type: - url = f'https://docs.google.com/presentation/d/{file_id}/edit' - attachments.append({ - 'name': content_name, - 'type': content_type, - 'url': url, - }) - - # annotation からrich_linkを抽出 - rich_links = [] - for ann in (d.get('annotations') or []): - rl = ann.get('rich_link_metadata') - if rl and rl.get('uri'): - rich_links.append(rl['uri']) - - messages.append({ - 'name': message.name, - 'sender': message.sender.name if message.sender else None, - 'create_time': message.create_time.isoformat() if message.create_time else None, - 'text': message.text or '', - 'thread': message.thread.name if message.thread else None, - 'attachments': attachments, - 'rich_links': rich_links, - }) - return messages - - -def main(): - parser = argparse.ArgumentParser(description='Google Chat メッセージ読み取り') - parser.add_argument('--space', default=DEFAULT_SPACE_ID, - help='Space ID (URL末尾。env GCHAT_DEFAULT_SPACE で既定値も指定可)') - parser.add_argument('--output', default=DEFAULT_OUTPUT, help='出力ファイルパス') - parser.add_argument('--after', help='この日時以降のメッセージを取得 (RFC-3339形式)') - parser.add_argument('--before', help='この日時以前のメッセージを取得 (RFC-3339形式)') - parser.add_argument('--list-spaces', action='store_true', help='スペース一覧を表示') - parser.add_argument('--page-size', type=int, default=200, help='1ページあたりの取得件数 (最大1000)') - args = parser.parse_args() - - if args.list_spaces: - list_spaces() - return - - if not args.space: - parser.error("--space が必要です (または env GCHAT_DEFAULT_SPACE で既定値を指定)") - - # フィルタ構築 - filters = [] - if args.after: - filters.append(f'createTime > "{args.after}"') - if args.before: - filters.append(f'createTime < "{args.before}"') - filter_str = ' AND '.join(filters) if filters else None - - messages = list_messages(args.space, page_size=args.page_size, filter_str=filter_str) - with open(args.output, 'w', encoding='utf-8') as f: - json.dump(messages, f, ensure_ascii=False, indent=2) - print(f'OK: {len(messages)} messages saved to {args.output}') - - for msg in messages[:5]: - text_preview = msg['text'][:100] if msg['text'] else '(empty)' - print(f"[{msg['create_time']}] {text_preview}") - - -if __name__ == '__main__': - main() diff --git a/plugins/ndf-shared/skills/google-chat/uv.lock b/plugins/ndf-shared/skills/google-chat/uv.lock deleted file mode 100644 index c2cf875c..00000000 --- a/plugins/ndf-shared/skills/google-chat/uv.lock +++ /dev/null @@ -1,693 +0,0 @@ -version = 1 -revision = 3 -requires-python = ">=3.9" -resolution-markers = [ - "python_full_version >= '3.14'", - "python_full_version == '3.13.*'", - "python_full_version >= '3.11' and python_full_version < '3.13'", - "python_full_version == '3.10.*'", - "python_full_version < '3.10'", -] - -[[package]] -name = "certifi" -version = "2026.4.22" -source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/25/ee/6caf7a40c36a1220410afe15a1cc64993a1f864871f698c0f93acb72842a/certifi-2026.4.22.tar.gz", hash = "sha256:8d455352a37b71bf76a79caa83a3d6c25afee4a385d632127b6afb3963f1c580", size = 137077, upload-time = "2026-04-22T11:26:11.191Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/22/30/7cd8fdcdfbc5b869528b079bfb76dcdf6056b1a2097a662e5e8c04f42965/certifi-2026.4.22-py3-none-any.whl", hash = "sha256:3cb2210c8f88ba2318d29b0388d1023c8492ff72ecdde4ebdaddbb13a31b1c4a", size = 135707, upload-time = "2026-04-22T11:26:09.372Z" }, -] - -[[package]] -name = "cffi" -version = "2.0.0" -source = { registry = "https://pypi.org/simple" } -dependencies = [ - { name = "pycparser", version = "2.23", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version < '3.10' and implementation_name != 'PyPy'" }, - { name = "pycparser", version = "3.0", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version >= '3.10' and implementation_name != 'PyPy'" }, -] -sdist = { url = "https://files.pythonhosted.org/packages/eb/56/b1ba7935a17738ae8453301356628e8147c79dbb825bcbc73dc7401f9846/cffi-2.0.0.tar.gz", hash = "sha256:44d1b5909021139fe36001ae048dbdde8214afa20200eda0f64c068cac5d5529", size = 523588, upload-time = "2025-09-08T23:24:04.541Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/93/d7/516d984057745a6cd96575eea814fe1edd6646ee6efd552fb7b0921dec83/cffi-2.0.0-cp310-cp310-macosx_10_13_x86_64.whl", hash = "sha256:0cf2d91ecc3fcc0625c2c530fe004f82c110405f101548512cce44322fa8ac44", size = 184283, upload-time = "2025-09-08T23:22:08.01Z" }, - { url = "https://files.pythonhosted.org/packages/9e/84/ad6a0b408daa859246f57c03efd28e5dd1b33c21737c2db84cae8c237aa5/cffi-2.0.0-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:f73b96c41e3b2adedc34a7356e64c8eb96e03a3782b535e043a986276ce12a49", size = 180504, upload-time = "2025-09-08T23:22:10.637Z" }, - { url = "https://files.pythonhosted.org/packages/50/bd/b1a6362b80628111e6653c961f987faa55262b4002fcec42308cad1db680/cffi-2.0.0-cp310-cp310-manylinux1_i686.manylinux2014_i686.manylinux_2_17_i686.manylinux_2_5_i686.whl", hash = "sha256:53f77cbe57044e88bbd5ed26ac1d0514d2acf0591dd6bb02a3ae37f76811b80c", size = 208811, upload-time = "2025-09-08T23:22:12.267Z" }, - { url = "https://files.pythonhosted.org/packages/4f/27/6933a8b2562d7bd1fb595074cf99cc81fc3789f6a6c05cdabb46284a3188/cffi-2.0.0-cp310-cp310-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:3e837e369566884707ddaf85fc1744b47575005c0a229de3327f8f9a20f4efeb", size = 216402, upload-time = "2025-09-08T23:22:13.455Z" }, - { url = "https://files.pythonhosted.org/packages/05/eb/b86f2a2645b62adcfff53b0dd97e8dfafb5c8aa864bd0d9a2c2049a0d551/cffi-2.0.0-cp310-cp310-manylinux2014_ppc64le.manylinux_2_17_ppc64le.whl", hash = "sha256:5eda85d6d1879e692d546a078b44251cdd08dd1cfb98dfb77b670c97cee49ea0", size = 203217, upload-time = "2025-09-08T23:22:14.596Z" }, - { url = "https://files.pythonhosted.org/packages/9f/e0/6cbe77a53acf5acc7c08cc186c9928864bd7c005f9efd0d126884858a5fe/cffi-2.0.0-cp310-cp310-manylinux2014_s390x.manylinux_2_17_s390x.whl", hash = "sha256:9332088d75dc3241c702d852d4671613136d90fa6881da7d770a483fd05248b4", size = 203079, upload-time = "2025-09-08T23:22:15.769Z" }, - { url = "https://files.pythonhosted.org/packages/98/29/9b366e70e243eb3d14a5cb488dfd3a0b6b2f1fb001a203f653b93ccfac88/cffi-2.0.0-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:fc7de24befaeae77ba923797c7c87834c73648a05a4bde34b3b7e5588973a453", size = 216475, upload-time = "2025-09-08T23:22:17.427Z" }, - { url = "https://files.pythonhosted.org/packages/21/7a/13b24e70d2f90a322f2900c5d8e1f14fa7e2a6b3332b7309ba7b2ba51a5a/cffi-2.0.0-cp310-cp310-musllinux_1_2_aarch64.whl", hash = "sha256:cf364028c016c03078a23b503f02058f1814320a56ad535686f90565636a9495", size = 218829, upload-time = "2025-09-08T23:22:19.069Z" }, - { url = "https://files.pythonhosted.org/packages/60/99/c9dc110974c59cc981b1f5b66e1d8af8af764e00f0293266824d9c4254bc/cffi-2.0.0-cp310-cp310-musllinux_1_2_i686.whl", hash = "sha256:e11e82b744887154b182fd3e7e8512418446501191994dbf9c9fc1f32cc8efd5", size = 211211, upload-time = "2025-09-08T23:22:20.588Z" }, - { url = "https://files.pythonhosted.org/packages/49/72/ff2d12dbf21aca1b32a40ed792ee6b40f6dc3a9cf1644bd7ef6e95e0ac5e/cffi-2.0.0-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:8ea985900c5c95ce9db1745f7933eeef5d314f0565b27625d9a10ec9881e1bfb", size = 218036, upload-time = "2025-09-08T23:22:22.143Z" }, - { url = "https://files.pythonhosted.org/packages/e2/cc/027d7fb82e58c48ea717149b03bcadcbdc293553edb283af792bd4bcbb3f/cffi-2.0.0-cp310-cp310-win32.whl", hash = "sha256:1f72fb8906754ac8a2cc3f9f5aaa298070652a0ffae577e0ea9bd480dc3c931a", size = 172184, upload-time = "2025-09-08T23:22:23.328Z" }, - { url = "https://files.pythonhosted.org/packages/33/fa/072dd15ae27fbb4e06b437eb6e944e75b068deb09e2a2826039e49ee2045/cffi-2.0.0-cp310-cp310-win_amd64.whl", hash = "sha256:b18a3ed7d5b3bd8d9ef7a8cb226502c6bf8308df1525e1cc676c3680e7176739", size = 182790, upload-time = "2025-09-08T23:22:24.752Z" }, - { url = "https://files.pythonhosted.org/packages/12/4a/3dfd5f7850cbf0d06dc84ba9aa00db766b52ca38d8b86e3a38314d52498c/cffi-2.0.0-cp311-cp311-macosx_10_13_x86_64.whl", hash = "sha256:b4c854ef3adc177950a8dfc81a86f5115d2abd545751a304c5bcf2c2c7283cfe", size = 184344, upload-time = "2025-09-08T23:22:26.456Z" }, - { url = "https://files.pythonhosted.org/packages/4f/8b/f0e4c441227ba756aafbe78f117485b25bb26b1c059d01f137fa6d14896b/cffi-2.0.0-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:2de9a304e27f7596cd03d16f1b7c72219bd944e99cc52b84d0145aefb07cbd3c", size = 180560, upload-time = "2025-09-08T23:22:28.197Z" }, - { url = "https://files.pythonhosted.org/packages/b1/b7/1200d354378ef52ec227395d95c2576330fd22a869f7a70e88e1447eb234/cffi-2.0.0-cp311-cp311-manylinux1_i686.manylinux2014_i686.manylinux_2_17_i686.manylinux_2_5_i686.whl", hash = "sha256:baf5215e0ab74c16e2dd324e8ec067ef59e41125d3eade2b863d294fd5035c92", size = 209613, upload-time = "2025-09-08T23:22:29.475Z" }, - { url = "https://files.pythonhosted.org/packages/b8/56/6033f5e86e8cc9bb629f0077ba71679508bdf54a9a5e112a3c0b91870332/cffi-2.0.0-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:730cacb21e1bdff3ce90babf007d0a0917cc3e6492f336c2f0134101e0944f93", size = 216476, upload-time = "2025-09-08T23:22:31.063Z" }, - { url = "https://files.pythonhosted.org/packages/dc/7f/55fecd70f7ece178db2f26128ec41430d8720f2d12ca97bf8f0a628207d5/cffi-2.0.0-cp311-cp311-manylinux2014_ppc64le.manylinux_2_17_ppc64le.whl", hash = "sha256:6824f87845e3396029f3820c206e459ccc91760e8fa24422f8b0c3d1731cbec5", size = 203374, upload-time = "2025-09-08T23:22:32.507Z" }, - { url = "https://files.pythonhosted.org/packages/84/ef/a7b77c8bdc0f77adc3b46888f1ad54be8f3b7821697a7b89126e829e676a/cffi-2.0.0-cp311-cp311-manylinux2014_s390x.manylinux_2_17_s390x.whl", hash = "sha256:9de40a7b0323d889cf8d23d1ef214f565ab154443c42737dfe52ff82cf857664", size = 202597, upload-time = "2025-09-08T23:22:34.132Z" }, - { url = "https://files.pythonhosted.org/packages/d7/91/500d892b2bf36529a75b77958edfcd5ad8e2ce4064ce2ecfeab2125d72d1/cffi-2.0.0-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:8941aaadaf67246224cee8c3803777eed332a19d909b47e29c9842ef1e79ac26", size = 215574, upload-time = "2025-09-08T23:22:35.443Z" }, - { url = "https://files.pythonhosted.org/packages/44/64/58f6255b62b101093d5df22dcb752596066c7e89dd725e0afaed242a61be/cffi-2.0.0-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:a05d0c237b3349096d3981b727493e22147f934b20f6f125a3eba8f994bec4a9", size = 218971, upload-time = "2025-09-08T23:22:36.805Z" }, - { url = "https://files.pythonhosted.org/packages/ab/49/fa72cebe2fd8a55fbe14956f9970fe8eb1ac59e5df042f603ef7c8ba0adc/cffi-2.0.0-cp311-cp311-musllinux_1_2_i686.whl", hash = "sha256:94698a9c5f91f9d138526b48fe26a199609544591f859c870d477351dc7b2414", size = 211972, upload-time = "2025-09-08T23:22:38.436Z" }, - { url = "https://files.pythonhosted.org/packages/0b/28/dd0967a76aab36731b6ebfe64dec4e981aff7e0608f60c2d46b46982607d/cffi-2.0.0-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:5fed36fccc0612a53f1d4d9a816b50a36702c28a2aa880cb8a122b3466638743", size = 217078, upload-time = "2025-09-08T23:22:39.776Z" }, - { url = "https://files.pythonhosted.org/packages/2b/c0/015b25184413d7ab0a410775fdb4a50fca20f5589b5dab1dbbfa3baad8ce/cffi-2.0.0-cp311-cp311-win32.whl", hash = "sha256:c649e3a33450ec82378822b3dad03cc228b8f5963c0c12fc3b1e0ab940f768a5", size = 172076, upload-time = "2025-09-08T23:22:40.95Z" }, - { url = "https://files.pythonhosted.org/packages/ae/8f/dc5531155e7070361eb1b7e4c1a9d896d0cb21c49f807a6c03fd63fc877e/cffi-2.0.0-cp311-cp311-win_amd64.whl", hash = "sha256:66f011380d0e49ed280c789fbd08ff0d40968ee7b665575489afa95c98196ab5", size = 182820, upload-time = "2025-09-08T23:22:42.463Z" }, - { url = "https://files.pythonhosted.org/packages/95/5c/1b493356429f9aecfd56bc171285a4c4ac8697f76e9bbbbb105e537853a1/cffi-2.0.0-cp311-cp311-win_arm64.whl", hash = "sha256:c6638687455baf640e37344fe26d37c404db8b80d037c3d29f58fe8d1c3b194d", size = 177635, upload-time = "2025-09-08T23:22:43.623Z" }, - { url = "https://files.pythonhosted.org/packages/ea/47/4f61023ea636104d4f16ab488e268b93008c3d0bb76893b1b31db1f96802/cffi-2.0.0-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:6d02d6655b0e54f54c4ef0b94eb6be0607b70853c45ce98bd278dc7de718be5d", size = 185271, upload-time = "2025-09-08T23:22:44.795Z" }, - { url = "https://files.pythonhosted.org/packages/df/a2/781b623f57358e360d62cdd7a8c681f074a71d445418a776eef0aadb4ab4/cffi-2.0.0-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:8eca2a813c1cb7ad4fb74d368c2ffbbb4789d377ee5bb8df98373c2cc0dee76c", size = 181048, upload-time = "2025-09-08T23:22:45.938Z" }, - { url = "https://files.pythonhosted.org/packages/ff/df/a4f0fbd47331ceeba3d37c2e51e9dfc9722498becbeec2bd8bc856c9538a/cffi-2.0.0-cp312-cp312-manylinux1_i686.manylinux2014_i686.manylinux_2_17_i686.manylinux_2_5_i686.whl", hash = "sha256:21d1152871b019407d8ac3985f6775c079416c282e431a4da6afe7aefd2bccbe", size = 212529, upload-time = "2025-09-08T23:22:47.349Z" }, - { url = "https://files.pythonhosted.org/packages/d5/72/12b5f8d3865bf0f87cf1404d8c374e7487dcf097a1c91c436e72e6badd83/cffi-2.0.0-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:b21e08af67b8a103c71a250401c78d5e0893beff75e28c53c98f4de42f774062", size = 220097, upload-time = "2025-09-08T23:22:48.677Z" }, - { url = "https://files.pythonhosted.org/packages/c2/95/7a135d52a50dfa7c882ab0ac17e8dc11cec9d55d2c18dda414c051c5e69e/cffi-2.0.0-cp312-cp312-manylinux2014_ppc64le.manylinux_2_17_ppc64le.whl", hash = "sha256:1e3a615586f05fc4065a8b22b8152f0c1b00cdbc60596d187c2a74f9e3036e4e", size = 207983, upload-time = "2025-09-08T23:22:50.06Z" }, - { url = "https://files.pythonhosted.org/packages/3a/c8/15cb9ada8895957ea171c62dc78ff3e99159ee7adb13c0123c001a2546c1/cffi-2.0.0-cp312-cp312-manylinux2014_s390x.manylinux_2_17_s390x.whl", hash = "sha256:81afed14892743bbe14dacb9e36d9e0e504cd204e0b165062c488942b9718037", size = 206519, upload-time = "2025-09-08T23:22:51.364Z" }, - { url = "https://files.pythonhosted.org/packages/78/2d/7fa73dfa841b5ac06c7b8855cfc18622132e365f5b81d02230333ff26e9e/cffi-2.0.0-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:3e17ed538242334bf70832644a32a7aae3d83b57567f9fd60a26257e992b79ba", size = 219572, upload-time = "2025-09-08T23:22:52.902Z" }, - { url = "https://files.pythonhosted.org/packages/07/e0/267e57e387b4ca276b90f0434ff88b2c2241ad72b16d31836adddfd6031b/cffi-2.0.0-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:3925dd22fa2b7699ed2617149842d2e6adde22b262fcbfada50e3d195e4b3a94", size = 222963, upload-time = "2025-09-08T23:22:54.518Z" }, - { url = "https://files.pythonhosted.org/packages/b6/75/1f2747525e06f53efbd878f4d03bac5b859cbc11c633d0fb81432d98a795/cffi-2.0.0-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:2c8f814d84194c9ea681642fd164267891702542f028a15fc97d4674b6206187", size = 221361, upload-time = "2025-09-08T23:22:55.867Z" }, - { url = "https://files.pythonhosted.org/packages/7b/2b/2b6435f76bfeb6bbf055596976da087377ede68df465419d192acf00c437/cffi-2.0.0-cp312-cp312-win32.whl", hash = "sha256:da902562c3e9c550df360bfa53c035b2f241fed6d9aef119048073680ace4a18", size = 172932, upload-time = "2025-09-08T23:22:57.188Z" }, - { url = "https://files.pythonhosted.org/packages/f8/ed/13bd4418627013bec4ed6e54283b1959cf6db888048c7cf4b4c3b5b36002/cffi-2.0.0-cp312-cp312-win_amd64.whl", hash = "sha256:da68248800ad6320861f129cd9c1bf96ca849a2771a59e0344e88681905916f5", size = 183557, upload-time = "2025-09-08T23:22:58.351Z" }, - { url = "https://files.pythonhosted.org/packages/95/31/9f7f93ad2f8eff1dbc1c3656d7ca5bfd8fb52c9d786b4dcf19b2d02217fa/cffi-2.0.0-cp312-cp312-win_arm64.whl", hash = "sha256:4671d9dd5ec934cb9a73e7ee9676f9362aba54f7f34910956b84d727b0d73fb6", size = 177762, upload-time = "2025-09-08T23:22:59.668Z" }, - { url = "https://files.pythonhosted.org/packages/4b/8d/a0a47a0c9e413a658623d014e91e74a50cdd2c423f7ccfd44086ef767f90/cffi-2.0.0-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:00bdf7acc5f795150faa6957054fbbca2439db2f775ce831222b66f192f03beb", size = 185230, upload-time = "2025-09-08T23:23:00.879Z" }, - { url = "https://files.pythonhosted.org/packages/4a/d2/a6c0296814556c68ee32009d9c2ad4f85f2707cdecfd7727951ec228005d/cffi-2.0.0-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:45d5e886156860dc35862657e1494b9bae8dfa63bf56796f2fb56e1679fc0bca", size = 181043, upload-time = "2025-09-08T23:23:02.231Z" }, - { url = "https://files.pythonhosted.org/packages/b0/1e/d22cc63332bd59b06481ceaac49d6c507598642e2230f201649058a7e704/cffi-2.0.0-cp313-cp313-manylinux1_i686.manylinux2014_i686.manylinux_2_17_i686.manylinux_2_5_i686.whl", hash = "sha256:07b271772c100085dd28b74fa0cd81c8fb1a3ba18b21e03d7c27f3436a10606b", size = 212446, upload-time = "2025-09-08T23:23:03.472Z" }, - { url = "https://files.pythonhosted.org/packages/a9/f5/a2c23eb03b61a0b8747f211eb716446c826ad66818ddc7810cc2cc19b3f2/cffi-2.0.0-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:d48a880098c96020b02d5a1f7d9251308510ce8858940e6fa99ece33f610838b", size = 220101, upload-time = "2025-09-08T23:23:04.792Z" }, - { url = "https://files.pythonhosted.org/packages/f2/7f/e6647792fc5850d634695bc0e6ab4111ae88e89981d35ac269956605feba/cffi-2.0.0-cp313-cp313-manylinux2014_ppc64le.manylinux_2_17_ppc64le.whl", hash = "sha256:f93fd8e5c8c0a4aa1f424d6173f14a892044054871c771f8566e4008eaa359d2", size = 207948, upload-time = "2025-09-08T23:23:06.127Z" }, - { url = "https://files.pythonhosted.org/packages/cb/1e/a5a1bd6f1fb30f22573f76533de12a00bf274abcdc55c8edab639078abb6/cffi-2.0.0-cp313-cp313-manylinux2014_s390x.manylinux_2_17_s390x.whl", hash = "sha256:dd4f05f54a52fb558f1ba9f528228066954fee3ebe629fc1660d874d040ae5a3", size = 206422, upload-time = "2025-09-08T23:23:07.753Z" }, - { url = "https://files.pythonhosted.org/packages/98/df/0a1755e750013a2081e863e7cd37e0cdd02664372c754e5560099eb7aa44/cffi-2.0.0-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:c8d3b5532fc71b7a77c09192b4a5a200ea992702734a2e9279a37f2478236f26", size = 219499, upload-time = "2025-09-08T23:23:09.648Z" }, - { url = "https://files.pythonhosted.org/packages/50/e1/a969e687fcf9ea58e6e2a928ad5e2dd88cc12f6f0ab477e9971f2309b57c/cffi-2.0.0-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:d9b29c1f0ae438d5ee9acb31cadee00a58c46cc9c0b2f9038c6b0b3470877a8c", size = 222928, upload-time = "2025-09-08T23:23:10.928Z" }, - { url = "https://files.pythonhosted.org/packages/36/54/0362578dd2c9e557a28ac77698ed67323ed5b9775ca9d3fe73fe191bb5d8/cffi-2.0.0-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:6d50360be4546678fc1b79ffe7a66265e28667840010348dd69a314145807a1b", size = 221302, upload-time = "2025-09-08T23:23:12.42Z" }, - { url = "https://files.pythonhosted.org/packages/eb/6d/bf9bda840d5f1dfdbf0feca87fbdb64a918a69bca42cfa0ba7b137c48cb8/cffi-2.0.0-cp313-cp313-win32.whl", hash = "sha256:74a03b9698e198d47562765773b4a8309919089150a0bb17d829ad7b44b60d27", size = 172909, upload-time = "2025-09-08T23:23:14.32Z" }, - { url = "https://files.pythonhosted.org/packages/37/18/6519e1ee6f5a1e579e04b9ddb6f1676c17368a7aba48299c3759bbc3c8b3/cffi-2.0.0-cp313-cp313-win_amd64.whl", hash = "sha256:19f705ada2530c1167abacb171925dd886168931e0a7b78f5bffcae5c6b5be75", size = 183402, upload-time = "2025-09-08T23:23:15.535Z" }, - { url = "https://files.pythonhosted.org/packages/cb/0e/02ceeec9a7d6ee63bb596121c2c8e9b3a9e150936f4fbef6ca1943e6137c/cffi-2.0.0-cp313-cp313-win_arm64.whl", hash = "sha256:256f80b80ca3853f90c21b23ee78cd008713787b1b1e93eae9f3d6a7134abd91", size = 177780, upload-time = "2025-09-08T23:23:16.761Z" }, - { url = "https://files.pythonhosted.org/packages/92/c4/3ce07396253a83250ee98564f8d7e9789fab8e58858f35d07a9a2c78de9f/cffi-2.0.0-cp314-cp314-macosx_10_13_x86_64.whl", hash = "sha256:fc33c5141b55ed366cfaad382df24fe7dcbc686de5be719b207bb248e3053dc5", size = 185320, upload-time = "2025-09-08T23:23:18.087Z" }, - { url = "https://files.pythonhosted.org/packages/59/dd/27e9fa567a23931c838c6b02d0764611c62290062a6d4e8ff7863daf9730/cffi-2.0.0-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:c654de545946e0db659b3400168c9ad31b5d29593291482c43e3564effbcee13", size = 181487, upload-time = "2025-09-08T23:23:19.622Z" }, - { url = "https://files.pythonhosted.org/packages/d6/43/0e822876f87ea8a4ef95442c3d766a06a51fc5298823f884ef87aaad168c/cffi-2.0.0-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:24b6f81f1983e6df8db3adc38562c83f7d4a0c36162885ec7f7b77c7dcbec97b", size = 220049, upload-time = "2025-09-08T23:23:20.853Z" }, - { url = "https://files.pythonhosted.org/packages/b4/89/76799151d9c2d2d1ead63c2429da9ea9d7aac304603de0c6e8764e6e8e70/cffi-2.0.0-cp314-cp314-manylinux2014_ppc64le.manylinux_2_17_ppc64le.whl", hash = "sha256:12873ca6cb9b0f0d3a0da705d6086fe911591737a59f28b7936bdfed27c0d47c", size = 207793, upload-time = "2025-09-08T23:23:22.08Z" }, - { url = "https://files.pythonhosted.org/packages/bb/dd/3465b14bb9e24ee24cb88c9e3730f6de63111fffe513492bf8c808a3547e/cffi-2.0.0-cp314-cp314-manylinux2014_s390x.manylinux_2_17_s390x.whl", hash = "sha256:d9b97165e8aed9272a6bb17c01e3cc5871a594a446ebedc996e2397a1c1ea8ef", size = 206300, upload-time = "2025-09-08T23:23:23.314Z" }, - { url = "https://files.pythonhosted.org/packages/47/d9/d83e293854571c877a92da46fdec39158f8d7e68da75bf73581225d28e90/cffi-2.0.0-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:afb8db5439b81cf9c9d0c80404b60c3cc9c3add93e114dcae767f1477cb53775", size = 219244, upload-time = "2025-09-08T23:23:24.541Z" }, - { url = "https://files.pythonhosted.org/packages/2b/0f/1f177e3683aead2bb00f7679a16451d302c436b5cbf2505f0ea8146ef59e/cffi-2.0.0-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:737fe7d37e1a1bffe70bd5754ea763a62a066dc5913ca57e957824b72a85e205", size = 222828, upload-time = "2025-09-08T23:23:26.143Z" }, - { url = "https://files.pythonhosted.org/packages/c6/0f/cafacebd4b040e3119dcb32fed8bdef8dfe94da653155f9d0b9dc660166e/cffi-2.0.0-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:38100abb9d1b1435bc4cc340bb4489635dc2f0da7456590877030c9b3d40b0c1", size = 220926, upload-time = "2025-09-08T23:23:27.873Z" }, - { url = "https://files.pythonhosted.org/packages/3e/aa/df335faa45b395396fcbc03de2dfcab242cd61a9900e914fe682a59170b1/cffi-2.0.0-cp314-cp314-win32.whl", hash = "sha256:087067fa8953339c723661eda6b54bc98c5625757ea62e95eb4898ad5e776e9f", size = 175328, upload-time = "2025-09-08T23:23:44.61Z" }, - { url = "https://files.pythonhosted.org/packages/bb/92/882c2d30831744296ce713f0feb4c1cd30f346ef747b530b5318715cc367/cffi-2.0.0-cp314-cp314-win_amd64.whl", hash = "sha256:203a48d1fb583fc7d78a4c6655692963b860a417c0528492a6bc21f1aaefab25", size = 185650, upload-time = "2025-09-08T23:23:45.848Z" }, - { url = "https://files.pythonhosted.org/packages/9f/2c/98ece204b9d35a7366b5b2c6539c350313ca13932143e79dc133ba757104/cffi-2.0.0-cp314-cp314-win_arm64.whl", hash = "sha256:dbd5c7a25a7cb98f5ca55d258b103a2054f859a46ae11aaf23134f9cc0d356ad", size = 180687, upload-time = "2025-09-08T23:23:47.105Z" }, - { url = "https://files.pythonhosted.org/packages/3e/61/c768e4d548bfa607abcda77423448df8c471f25dbe64fb2ef6d555eae006/cffi-2.0.0-cp314-cp314t-macosx_10_13_x86_64.whl", hash = "sha256:9a67fc9e8eb39039280526379fb3a70023d77caec1852002b4da7e8b270c4dd9", size = 188773, upload-time = "2025-09-08T23:23:29.347Z" }, - { url = "https://files.pythonhosted.org/packages/2c/ea/5f76bce7cf6fcd0ab1a1058b5af899bfbef198bea4d5686da88471ea0336/cffi-2.0.0-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:7a66c7204d8869299919db4d5069a82f1561581af12b11b3c9f48c584eb8743d", size = 185013, upload-time = "2025-09-08T23:23:30.63Z" }, - { url = "https://files.pythonhosted.org/packages/be/b4/c56878d0d1755cf9caa54ba71e5d049479c52f9e4afc230f06822162ab2f/cffi-2.0.0-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:7cc09976e8b56f8cebd752f7113ad07752461f48a58cbba644139015ac24954c", size = 221593, upload-time = "2025-09-08T23:23:31.91Z" }, - { url = "https://files.pythonhosted.org/packages/e0/0d/eb704606dfe8033e7128df5e90fee946bbcb64a04fcdaa97321309004000/cffi-2.0.0-cp314-cp314t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.whl", hash = "sha256:92b68146a71df78564e4ef48af17551a5ddd142e5190cdf2c5624d0c3ff5b2e8", size = 209354, upload-time = "2025-09-08T23:23:33.214Z" }, - { url = "https://files.pythonhosted.org/packages/d8/19/3c435d727b368ca475fb8742ab97c9cb13a0de600ce86f62eab7fa3eea60/cffi-2.0.0-cp314-cp314t-manylinux2014_s390x.manylinux_2_17_s390x.whl", hash = "sha256:b1e74d11748e7e98e2f426ab176d4ed720a64412b6a15054378afdb71e0f37dc", size = 208480, upload-time = "2025-09-08T23:23:34.495Z" }, - { url = "https://files.pythonhosted.org/packages/d0/44/681604464ed9541673e486521497406fadcc15b5217c3e326b061696899a/cffi-2.0.0-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:28a3a209b96630bca57cce802da70c266eb08c6e97e5afd61a75611ee6c64592", size = 221584, upload-time = "2025-09-08T23:23:36.096Z" }, - { url = "https://files.pythonhosted.org/packages/25/8e/342a504ff018a2825d395d44d63a767dd8ebc927ebda557fecdaca3ac33a/cffi-2.0.0-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:7553fb2090d71822f02c629afe6042c299edf91ba1bf94951165613553984512", size = 224443, upload-time = "2025-09-08T23:23:37.328Z" }, - { url = "https://files.pythonhosted.org/packages/e1/5e/b666bacbbc60fbf415ba9988324a132c9a7a0448a9a8f125074671c0f2c3/cffi-2.0.0-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:6c6c373cfc5c83a975506110d17457138c8c63016b563cc9ed6e056a82f13ce4", size = 223437, upload-time = "2025-09-08T23:23:38.945Z" }, - { url = "https://files.pythonhosted.org/packages/a0/1d/ec1a60bd1a10daa292d3cd6bb0b359a81607154fb8165f3ec95fe003b85c/cffi-2.0.0-cp314-cp314t-win32.whl", hash = "sha256:1fc9ea04857caf665289b7a75923f2c6ed559b8298a1b8c49e59f7dd95c8481e", size = 180487, upload-time = "2025-09-08T23:23:40.423Z" }, - { url = "https://files.pythonhosted.org/packages/bf/41/4c1168c74fac325c0c8156f04b6749c8b6a8f405bbf91413ba088359f60d/cffi-2.0.0-cp314-cp314t-win_amd64.whl", hash = "sha256:d68b6cef7827e8641e8ef16f4494edda8b36104d79773a334beaa1e3521430f6", size = 191726, upload-time = "2025-09-08T23:23:41.742Z" }, - { url = "https://files.pythonhosted.org/packages/ae/3a/dbeec9d1ee0844c679f6bb5d6ad4e9f198b1224f4e7a32825f47f6192b0c/cffi-2.0.0-cp314-cp314t-win_arm64.whl", hash = "sha256:0a1527a803f0a659de1af2e1fd700213caba79377e27e4693648c2923da066f9", size = 184195, upload-time = "2025-09-08T23:23:43.004Z" }, - { url = "https://files.pythonhosted.org/packages/c0/cc/08ed5a43f2996a16b462f64a7055c6e962803534924b9b2f1371d8c00b7b/cffi-2.0.0-cp39-cp39-macosx_10_13_x86_64.whl", hash = "sha256:fe562eb1a64e67dd297ccc4f5addea2501664954f2692b69a76449ec7913ecbf", size = 184288, upload-time = "2025-09-08T23:23:48.404Z" }, - { url = "https://files.pythonhosted.org/packages/3d/de/38d9726324e127f727b4ecc376bc85e505bfe61ef130eaf3f290c6847dd4/cffi-2.0.0-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:de8dad4425a6ca6e4e5e297b27b5c824ecc7581910bf9aee86cb6835e6812aa7", size = 180509, upload-time = "2025-09-08T23:23:49.73Z" }, - { url = "https://files.pythonhosted.org/packages/9b/13/c92e36358fbcc39cf0962e83223c9522154ee8630e1df7c0b3a39a8124e2/cffi-2.0.0-cp39-cp39-manylinux1_i686.manylinux2014_i686.manylinux_2_17_i686.manylinux_2_5_i686.whl", hash = "sha256:4647afc2f90d1ddd33441e5b0e85b16b12ddec4fca55f0d9671fef036ecca27c", size = 208813, upload-time = "2025-09-08T23:23:51.263Z" }, - { url = "https://files.pythonhosted.org/packages/15/12/a7a79bd0df4c3bff744b2d7e52cc1b68d5e7e427b384252c42366dc1ecbc/cffi-2.0.0-cp39-cp39-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:3f4d46d8b35698056ec29bca21546e1551a205058ae1a181d871e278b0b28165", size = 216498, upload-time = "2025-09-08T23:23:52.494Z" }, - { url = "https://files.pythonhosted.org/packages/a3/ad/5c51c1c7600bdd7ed9a24a203ec255dccdd0ebf4527f7b922a0bde2fb6ed/cffi-2.0.0-cp39-cp39-manylinux2014_ppc64le.manylinux_2_17_ppc64le.whl", hash = "sha256:e6e73b9e02893c764e7e8d5bb5ce277f1a009cd5243f8228f75f842bf937c534", size = 203243, upload-time = "2025-09-08T23:23:53.836Z" }, - { url = "https://files.pythonhosted.org/packages/32/f2/81b63e288295928739d715d00952c8c6034cb6c6a516b17d37e0c8be5600/cffi-2.0.0-cp39-cp39-manylinux2014_s390x.manylinux_2_17_s390x.whl", hash = "sha256:cb527a79772e5ef98fb1d700678fe031e353e765d1ca2d409c92263c6d43e09f", size = 203158, upload-time = "2025-09-08T23:23:55.169Z" }, - { url = "https://files.pythonhosted.org/packages/1f/74/cc4096ce66f5939042ae094e2e96f53426a979864aa1f96a621ad128be27/cffi-2.0.0-cp39-cp39-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:61d028e90346df14fedc3d1e5441df818d095f3b87d286825dfcbd6459b7ef63", size = 216548, upload-time = "2025-09-08T23:23:56.506Z" }, - { url = "https://files.pythonhosted.org/packages/e8/be/f6424d1dc46b1091ffcc8964fa7c0ab0cd36839dd2761b49c90481a6ba1b/cffi-2.0.0-cp39-cp39-musllinux_1_2_aarch64.whl", hash = "sha256:0f6084a0ea23d05d20c3edcda20c3d006f9b6f3fefeac38f59262e10cef47ee2", size = 218897, upload-time = "2025-09-08T23:23:57.825Z" }, - { url = "https://files.pythonhosted.org/packages/f7/e0/dda537c2309817edf60109e39265f24f24aa7f050767e22c98c53fe7f48b/cffi-2.0.0-cp39-cp39-musllinux_1_2_i686.whl", hash = "sha256:1cd13c99ce269b3ed80b417dcd591415d3372bcac067009b6e0f59c7d4015e65", size = 211249, upload-time = "2025-09-08T23:23:59.139Z" }, - { url = "https://files.pythonhosted.org/packages/2b/e7/7c769804eb75e4c4b35e658dba01de1640a351a9653c3d49ca89d16ccc91/cffi-2.0.0-cp39-cp39-musllinux_1_2_x86_64.whl", hash = "sha256:89472c9762729b5ae1ad974b777416bfda4ac5642423fa93bd57a09204712322", size = 218041, upload-time = "2025-09-08T23:24:00.496Z" }, - { url = "https://files.pythonhosted.org/packages/aa/d9/6218d78f920dcd7507fc16a766b5ef8f3b913cc7aa938e7fc80b9978d089/cffi-2.0.0-cp39-cp39-win32.whl", hash = "sha256:2081580ebb843f759b9f617314a24ed5738c51d2aee65d31e02f6f7a2b97707a", size = 172138, upload-time = "2025-09-08T23:24:01.7Z" }, - { url = "https://files.pythonhosted.org/packages/54/8f/a1e836f82d8e32a97e6b29cc8f641779181ac7363734f12df27db803ebda/cffi-2.0.0-cp39-cp39-win_amd64.whl", hash = "sha256:b882b3df248017dba09d6b16defe9b5c407fe32fc7c65a9c69798e6175601be9", size = 182794, upload-time = "2025-09-08T23:24:02.943Z" }, -] - -[[package]] -name = "charset-normalizer" -version = "3.4.7" -source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/e7/a1/67fe25fac3c7642725500a3f6cfe5821ad557c3abb11c9d20d12c7008d3e/charset_normalizer-3.4.7.tar.gz", hash = "sha256:ae89db9e5f98a11a4bf50407d4363e7b09b31e55bc117b4f7d80aab97ba009e5", size = 144271, upload-time = "2026-04-02T09:28:39.342Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/26/08/0f303cb0b529e456bb116f2d50565a482694fbb94340bf56d44677e7ed03/charset_normalizer-3.4.7-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:cdd68a1fb318e290a2077696b7eb7a21a49163c455979c639bf5a5dcdc46617d", size = 315182, upload-time = "2026-04-02T09:25:40.673Z" }, - { url = "https://files.pythonhosted.org/packages/24/47/b192933e94b546f1b1fe4df9cc1f84fcdbf2359f8d1081d46dd029b50207/charset_normalizer-3.4.7-cp310-cp310-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:e17b8d5d6a8c47c85e68ca8379def1303fd360c3e22093a807cd34a71cd082b8", size = 209329, upload-time = "2026-04-02T09:25:42.354Z" }, - { url = "https://files.pythonhosted.org/packages/c2/b4/01fa81c5ca6141024d89a8fc15968002b71da7f825dd14113207113fabbd/charset_normalizer-3.4.7-cp310-cp310-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:511ef87c8aec0783e08ac18565a16d435372bc1ac25a91e6ac7f5ef2b0bff790", size = 231230, upload-time = "2026-04-02T09:25:44.281Z" }, - { url = "https://files.pythonhosted.org/packages/20/f7/7b991776844dfa058017e600e6e55ff01984a063290ca5622c0b63162f68/charset_normalizer-3.4.7-cp310-cp310-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:007d05ec7321d12a40227aae9e2bc6dca73f3cb21058999a1df9e193555a9dcc", size = 225890, upload-time = "2026-04-02T09:25:45.475Z" }, - { url = "https://files.pythonhosted.org/packages/20/e7/bed0024a0f4ab0c8a9c64d4445f39b30c99bd1acd228291959e3de664247/charset_normalizer-3.4.7-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:cf29836da5119f3c8a8a70667b0ef5fdca3bb12f80fd06487cfa575b3909b393", size = 216930, upload-time = "2026-04-02T09:25:46.58Z" }, - { url = "https://files.pythonhosted.org/packages/e2/ab/b18f0ab31cdd7b3ddb8bb76c4a414aeb8160c9810fdf1bc62f269a539d87/charset_normalizer-3.4.7-cp310-cp310-manylinux_2_31_armv7l.whl", hash = "sha256:12d8baf840cc7889b37c7c770f478adea7adce3dcb3944d02ec87508e2dcf153", size = 202109, upload-time = "2026-04-02T09:25:48.031Z" }, - { url = "https://files.pythonhosted.org/packages/82/e5/7e9440768a06dfb3075936490cb82dbf0ee20a133bf0dd8551fa096914ec/charset_normalizer-3.4.7-cp310-cp310-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:d560742f3c0d62afaccf9f41fe485ed69bd7661a241f86a3ef0f0fb8b1a397af", size = 214684, upload-time = "2026-04-02T09:25:49.245Z" }, - { url = "https://files.pythonhosted.org/packages/71/94/8c61d8da9f062fdf457c80acfa25060ec22bf1d34bbeaca4350f13bcfd07/charset_normalizer-3.4.7-cp310-cp310-musllinux_1_2_aarch64.whl", hash = "sha256:b14b2d9dac08e28bb8046a1a0434b1750eb221c8f5b87a68f4fa11a6f97b5e34", size = 212785, upload-time = "2026-04-02T09:25:50.671Z" }, - { url = "https://files.pythonhosted.org/packages/66/cd/6e9889c648e72c0ab2e5967528bb83508f354d706637bc7097190c874e13/charset_normalizer-3.4.7-cp310-cp310-musllinux_1_2_armv7l.whl", hash = "sha256:bc17a677b21b3502a21f66a8cc64f5bfad4df8a0b8434d661666f8ce90ac3af1", size = 203055, upload-time = "2026-04-02T09:25:51.802Z" }, - { url = "https://files.pythonhosted.org/packages/92/2e/7a951d6a08aefb7eb8e1b54cdfb580b1365afdd9dd484dc4bee9e5d8f258/charset_normalizer-3.4.7-cp310-cp310-musllinux_1_2_ppc64le.whl", hash = "sha256:750e02e074872a3fad7f233b47734166440af3cdea0add3e95163110816d6752", size = 232502, upload-time = "2026-04-02T09:25:53.388Z" }, - { url = "https://files.pythonhosted.org/packages/58/d5/abcf2d83bf8e0a1286df55cd0dc1d49af0da4282aa77e986df343e7de124/charset_normalizer-3.4.7-cp310-cp310-musllinux_1_2_riscv64.whl", hash = "sha256:4e5163c14bffd570ef2affbfdd77bba66383890797df43dc8b4cc7d6f500bf53", size = 214295, upload-time = "2026-04-02T09:25:54.765Z" }, - { url = "https://files.pythonhosted.org/packages/47/3a/7d4cd7ed54be99973a0dc176032cba5cb1f258082c31fa6df35cff46acfc/charset_normalizer-3.4.7-cp310-cp310-musllinux_1_2_s390x.whl", hash = "sha256:6ed74185b2db44f41ef35fd1617c5888e59792da9bbc9190d6c7300617182616", size = 227145, upload-time = "2026-04-02T09:25:55.904Z" }, - { url = "https://files.pythonhosted.org/packages/1d/98/3a45bf8247889cf28262ebd3d0872edff11565b2a1e3064ccb132db3fbb0/charset_normalizer-3.4.7-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:94e1885b270625a9a828c9793b4d52a64445299baa1fea5a173bf1d3dd9a1a5a", size = 218884, upload-time = "2026-04-02T09:25:57.074Z" }, - { url = "https://files.pythonhosted.org/packages/ad/80/2e8b7f8915ed5c9ef13aa828d82738e33888c485b65ebf744d615040c7ea/charset_normalizer-3.4.7-cp310-cp310-win32.whl", hash = "sha256:6785f414ae0f3c733c437e0f3929197934f526d19dfaa75e18fdb4f94c6fb374", size = 148343, upload-time = "2026-04-02T09:25:58.199Z" }, - { url = "https://files.pythonhosted.org/packages/35/1b/3b8c8c77184af465ee9ad88b5aea46ea6b2e1f7b9dc9502891e37af21e30/charset_normalizer-3.4.7-cp310-cp310-win_amd64.whl", hash = "sha256:6696b7688f54f5af4462118f0bfa7c1621eeb87154f77fa04b9295ce7a8f2943", size = 159174, upload-time = "2026-04-02T09:25:59.322Z" }, - { url = "https://files.pythonhosted.org/packages/be/c1/feb40dca40dbb21e0a908801782d9288c64fc8d8e562c2098e9994c8c21b/charset_normalizer-3.4.7-cp310-cp310-win_arm64.whl", hash = "sha256:66671f93accb62ed07da56613636f3641f1a12c13046ce91ffc923721f23c008", size = 147805, upload-time = "2026-04-02T09:26:00.756Z" }, - { url = "https://files.pythonhosted.org/packages/c2/d7/b5b7020a0565c2e9fa8c09f4b5fa6232feb326b8c20081ccded47ea368fd/charset_normalizer-3.4.7-cp311-cp311-macosx_10_9_universal2.whl", hash = "sha256:7641bb8895e77f921102f72833904dcd9901df5d6d72a2ab8f31d04b7e51e4e7", size = 309705, upload-time = "2026-04-02T09:26:02.191Z" }, - { url = "https://files.pythonhosted.org/packages/5a/53/58c29116c340e5456724ecd2fff4196d236b98f3da97b404bc5e51ac3493/charset_normalizer-3.4.7-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:202389074300232baeb53ae2569a60901f7efadd4245cf3a3bf0617d60b439d7", size = 206419, upload-time = "2026-04-02T09:26:03.583Z" }, - { url = "https://files.pythonhosted.org/packages/b2/02/e8146dc6591a37a00e5144c63f29fb7c97a734ea8a111190783c0e60ab63/charset_normalizer-3.4.7-cp311-cp311-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:30b8d1d8c52a48c2c5690e152c169b673487a2a58de1ec7393196753063fcd5e", size = 227901, upload-time = "2026-04-02T09:26:04.738Z" }, - { url = "https://files.pythonhosted.org/packages/fb/73/77486c4cd58f1267bf17db420e930c9afa1b3be3fe8c8b8ebbebc9624359/charset_normalizer-3.4.7-cp311-cp311-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:532bc9bf33a68613fd7d65e4b1c71a6a38d7d42604ecf239c77392e9b4e8998c", size = 222742, upload-time = "2026-04-02T09:26:06.36Z" }, - { url = "https://files.pythonhosted.org/packages/a1/fa/f74eb381a7d94ded44739e9d94de18dc5edc9c17fb8c11f0a6890696c0a9/charset_normalizer-3.4.7-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:2fe249cb4651fd12605b7288b24751d8bfd46d35f12a20b1ba33dea122e690df", size = 214061, upload-time = "2026-04-02T09:26:08.347Z" }, - { url = "https://files.pythonhosted.org/packages/dc/92/42bd3cefcf7687253fb86694b45f37b733c97f59af3724f356fa92b8c344/charset_normalizer-3.4.7-cp311-cp311-manylinux_2_31_armv7l.whl", hash = "sha256:65bcd23054beab4d166035cabbc868a09c1a49d1efe458fe8e4361215df40265", size = 199239, upload-time = "2026-04-02T09:26:09.823Z" }, - { url = "https://files.pythonhosted.org/packages/4c/3d/069e7184e2aa3b3cddc700e3dd267413dc259854adc3380421c805c6a17d/charset_normalizer-3.4.7-cp311-cp311-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:08e721811161356f97b4059a9ba7bafb23ea5ee2255402c42881c214e173c6b4", size = 210173, upload-time = "2026-04-02T09:26:10.953Z" }, - { url = "https://files.pythonhosted.org/packages/62/51/9d56feb5f2e7074c46f93e0ebdbe61f0848ee246e2f0d89f8e20b89ebb8f/charset_normalizer-3.4.7-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:e060d01aec0a910bdccb8be71faf34e7799ce36950f8294c8bf612cba65a2c9e", size = 209841, upload-time = "2026-04-02T09:26:12.142Z" }, - { url = "https://files.pythonhosted.org/packages/d2/59/893d8f99cc4c837dda1fe2f1139079703deb9f321aabcb032355de13b6c7/charset_normalizer-3.4.7-cp311-cp311-musllinux_1_2_armv7l.whl", hash = "sha256:38c0109396c4cfc574d502df99742a45c72c08eff0a36158b6f04000043dbf38", size = 200304, upload-time = "2026-04-02T09:26:13.711Z" }, - { url = "https://files.pythonhosted.org/packages/7d/1d/ee6f3be3464247578d1ed5c46de545ccc3d3ff933695395c402c21fa6b77/charset_normalizer-3.4.7-cp311-cp311-musllinux_1_2_ppc64le.whl", hash = "sha256:1c2a768fdd44ee4a9339a9b0b130049139b8ce3c01d2ce09f67f5a68048d477c", size = 229455, upload-time = "2026-04-02T09:26:14.941Z" }, - { url = "https://files.pythonhosted.org/packages/54/bb/8fb0a946296ea96a488928bdce8ef99023998c48e4713af533e9bb98ef07/charset_normalizer-3.4.7-cp311-cp311-musllinux_1_2_riscv64.whl", hash = "sha256:1a87ca9d5df6fe460483d9a5bbf2b18f620cbed41b432e2bddb686228282d10b", size = 210036, upload-time = "2026-04-02T09:26:16.478Z" }, - { url = "https://files.pythonhosted.org/packages/9a/bc/015b2387f913749f82afd4fcba07846d05b6d784dd16123cb66860e0237d/charset_normalizer-3.4.7-cp311-cp311-musllinux_1_2_s390x.whl", hash = "sha256:d635aab80466bc95771bb78d5370e74d36d1fe31467b6b29b8b57b2a3cd7d22c", size = 224739, upload-time = "2026-04-02T09:26:17.751Z" }, - { url = "https://files.pythonhosted.org/packages/17/ab/63133691f56baae417493cba6b7c641571a2130eb7bceba6773367ab9ec5/charset_normalizer-3.4.7-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:ae196f021b5e7c78e918242d217db021ed2a6ace2bc6ae94c0fc596221c7f58d", size = 216277, upload-time = "2026-04-02T09:26:18.981Z" }, - { url = "https://files.pythonhosted.org/packages/06/6d/3be70e827977f20db77c12a97e6a9f973631a45b8d186c084527e53e77a4/charset_normalizer-3.4.7-cp311-cp311-win32.whl", hash = "sha256:adb2597b428735679446b46c8badf467b4ca5f5056aae4d51a19f9570301b1ad", size = 147819, upload-time = "2026-04-02T09:26:20.295Z" }, - { url = "https://files.pythonhosted.org/packages/20/d9/5f67790f06b735d7c7637171bbfd89882ad67201891b7275e51116ed8207/charset_normalizer-3.4.7-cp311-cp311-win_amd64.whl", hash = "sha256:8e385e4267ab76874ae30db04c627faaaf0b509e1ccc11a95b3fc3e83f855c00", size = 159281, upload-time = "2026-04-02T09:26:21.74Z" }, - { url = "https://files.pythonhosted.org/packages/ca/83/6413f36c5a34afead88ce6f66684d943d91f233d76dd083798f9602b75ae/charset_normalizer-3.4.7-cp311-cp311-win_arm64.whl", hash = "sha256:d4a48e5b3c2a489fae013b7589308a40146ee081f6f509e047e0e096084ceca1", size = 147843, upload-time = "2026-04-02T09:26:22.901Z" }, - { url = "https://files.pythonhosted.org/packages/0c/eb/4fc8d0a7110eb5fc9cc161723a34a8a6c200ce3b4fbf681bc86feee22308/charset_normalizer-3.4.7-cp312-cp312-macosx_10_13_universal2.whl", hash = "sha256:eca9705049ad3c7345d574e3510665cb2cf844c2f2dcfe675332677f081cbd46", size = 311328, upload-time = "2026-04-02T09:26:24.331Z" }, - { url = "https://files.pythonhosted.org/packages/f8/e3/0fadc706008ac9d7b9b5be6dc767c05f9d3e5df51744ce4cc9605de7b9f4/charset_normalizer-3.4.7-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:6178f72c5508bfc5fd446a5905e698c6212932f25bcdd4b47a757a50605a90e2", size = 208061, upload-time = "2026-04-02T09:26:25.568Z" }, - { url = "https://files.pythonhosted.org/packages/42/f0/3dd1045c47f4a4604df85ec18ad093912ae1344ac706993aff91d38773a2/charset_normalizer-3.4.7-cp312-cp312-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:e1421b502d83040e6d7fb2fb18dff63957f720da3d77b2fbd3187ceb63755d7b", size = 229031, upload-time = "2026-04-02T09:26:26.865Z" }, - { url = "https://files.pythonhosted.org/packages/dc/67/675a46eb016118a2fbde5a277a5d15f4f69d5f3f5f338e5ee2f8948fcf43/charset_normalizer-3.4.7-cp312-cp312-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:edac0f1ab77644605be2cbba52e6b7f630731fc42b34cb0f634be1a6eface56a", size = 225239, upload-time = "2026-04-02T09:26:28.044Z" }, - { url = "https://files.pythonhosted.org/packages/4b/f8/d0118a2f5f23b02cd166fa385c60f9b0d4f9194f574e2b31cef350ad7223/charset_normalizer-3.4.7-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:5649fd1c7bade02f320a462fdefd0b4bd3ce036065836d4f42e0de958038e116", size = 216589, upload-time = "2026-04-02T09:26:29.239Z" }, - { url = "https://files.pythonhosted.org/packages/b1/f1/6d2b0b261b6c4ceef0fcb0d17a01cc5bc53586c2d4796fa04b5c540bc13d/charset_normalizer-3.4.7-cp312-cp312-manylinux_2_31_armv7l.whl", hash = "sha256:203104ed3e428044fd943bc4bf45fa73c0730391f9621e37fe39ecf477b128cb", size = 202733, upload-time = "2026-04-02T09:26:30.5Z" }, - { url = "https://files.pythonhosted.org/packages/6f/c0/7b1f943f7e87cc3db9626ba17807d042c38645f0a1d4415c7a14afb5591f/charset_normalizer-3.4.7-cp312-cp312-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:298930cec56029e05497a76988377cbd7457ba864beeea92ad7e844fe74cd1f1", size = 212652, upload-time = "2026-04-02T09:26:31.709Z" }, - { url = "https://files.pythonhosted.org/packages/38/dd/5a9ab159fe45c6e72079398f277b7d2b523e7f716acc489726115a910097/charset_normalizer-3.4.7-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:708838739abf24b2ceb208d0e22403dd018faeef86ddac04319a62ae884c4f15", size = 211229, upload-time = "2026-04-02T09:26:33.282Z" }, - { url = "https://files.pythonhosted.org/packages/d5/ff/531a1cad5ca855d1c1a8b69cb71abfd6d85c0291580146fda7c82857caa1/charset_normalizer-3.4.7-cp312-cp312-musllinux_1_2_armv7l.whl", hash = "sha256:0f7eb884681e3938906ed0434f20c63046eacd0111c4ba96f27b76084cd679f5", size = 203552, upload-time = "2026-04-02T09:26:34.845Z" }, - { url = "https://files.pythonhosted.org/packages/c1/4c/a5fb52d528a8ca41f7598cb619409ece30a169fbdf9cdce592e53b46c3a6/charset_normalizer-3.4.7-cp312-cp312-musllinux_1_2_ppc64le.whl", hash = "sha256:4dc1e73c36828f982bfe79fadf5919923f8a6f4df2860804db9a98c48824ce8d", size = 230806, upload-time = "2026-04-02T09:26:36.152Z" }, - { url = "https://files.pythonhosted.org/packages/59/7a/071feed8124111a32b316b33ae4de83d36923039ef8cf48120266844285b/charset_normalizer-3.4.7-cp312-cp312-musllinux_1_2_riscv64.whl", hash = "sha256:aed52fea0513bac0ccde438c188c8a471c4e0f457c2dd20cdbf6ea7a450046c7", size = 212316, upload-time = "2026-04-02T09:26:37.672Z" }, - { url = "https://files.pythonhosted.org/packages/fd/35/f7dba3994312d7ba508e041eaac39a36b120f32d4c8662b8814dab876431/charset_normalizer-3.4.7-cp312-cp312-musllinux_1_2_s390x.whl", hash = "sha256:fea24543955a6a729c45a73fe90e08c743f0b3334bbf3201e6c4bc1b0c7fa464", size = 227274, upload-time = "2026-04-02T09:26:38.93Z" }, - { url = "https://files.pythonhosted.org/packages/8a/2d/a572df5c9204ab7688ec1edc895a73ebded3b023bb07364710b05dd1c9be/charset_normalizer-3.4.7-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:bb6d88045545b26da47aa879dd4a89a71d1dce0f0e549b1abcb31dfe4a8eac49", size = 218468, upload-time = "2026-04-02T09:26:40.17Z" }, - { url = "https://files.pythonhosted.org/packages/86/eb/890922a8b03a568ca2f336c36585a4713c55d4d67bf0f0c78924be6315ca/charset_normalizer-3.4.7-cp312-cp312-win32.whl", hash = "sha256:2257141f39fe65a3fdf38aeccae4b953e5f3b3324f4ff0daf9f15b8518666a2c", size = 148460, upload-time = "2026-04-02T09:26:41.416Z" }, - { url = "https://files.pythonhosted.org/packages/35/d9/0e7dffa06c5ab081f75b1b786f0aefc88365825dfcd0ac544bdb7b2b6853/charset_normalizer-3.4.7-cp312-cp312-win_amd64.whl", hash = "sha256:5ed6ab538499c8644b8a3e18debabcd7ce684f3fa91cf867521a7a0279cab2d6", size = 159330, upload-time = "2026-04-02T09:26:42.554Z" }, - { url = "https://files.pythonhosted.org/packages/9e/5d/481bcc2a7c88ea6b0878c299547843b2521ccbc40980cb406267088bc701/charset_normalizer-3.4.7-cp312-cp312-win_arm64.whl", hash = "sha256:56be790f86bfb2c98fb742ce566dfb4816e5a83384616ab59c49e0604d49c51d", size = 147828, upload-time = "2026-04-02T09:26:44.075Z" }, - { url = "https://files.pythonhosted.org/packages/c1/3b/66777e39d3ae1ddc77ee606be4ec6d8cbd4c801f65e5a1b6f2b11b8346dd/charset_normalizer-3.4.7-cp313-cp313-macosx_10_13_universal2.whl", hash = "sha256:f496c9c3cc02230093d8330875c4c3cdfc3b73612a5fd921c65d39cbcef08063", size = 309627, upload-time = "2026-04-02T09:26:45.198Z" }, - { url = "https://files.pythonhosted.org/packages/2e/4e/b7f84e617b4854ade48a1b7915c8ccfadeba444d2a18c291f696e37f0d3b/charset_normalizer-3.4.7-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:0ea948db76d31190bf08bd371623927ee1339d5f2a0b4b1b4a4439a65298703c", size = 207008, upload-time = "2026-04-02T09:26:46.824Z" }, - { url = "https://files.pythonhosted.org/packages/c4/bb/ec73c0257c9e11b268f018f068f5d00aa0ef8c8b09f7753ebd5f2880e248/charset_normalizer-3.4.7-cp313-cp313-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:a277ab8928b9f299723bc1a2dabb1265911b1a76341f90a510368ca44ad9ab66", size = 228303, upload-time = "2026-04-02T09:26:48.397Z" }, - { url = "https://files.pythonhosted.org/packages/85/fb/32d1f5033484494619f701e719429c69b766bfc4dbc61aa9e9c8c166528b/charset_normalizer-3.4.7-cp313-cp313-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:3bec022aec2c514d9cf199522a802bd007cd588ab17ab2525f20f9c34d067c18", size = 224282, upload-time = "2026-04-02T09:26:49.684Z" }, - { url = "https://files.pythonhosted.org/packages/fa/07/330e3a0dda4c404d6da83b327270906e9654a24f6c546dc886a0eb0ffb23/charset_normalizer-3.4.7-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:e044c39e41b92c845bc815e5ae4230804e8e7bc29e399b0437d64222d92809dd", size = 215595, upload-time = "2026-04-02T09:26:50.915Z" }, - { url = "https://files.pythonhosted.org/packages/e3/7c/fc890655786e423f02556e0216d4b8c6bcb6bdfa890160dc66bf52dee468/charset_normalizer-3.4.7-cp313-cp313-manylinux_2_31_armv7l.whl", hash = "sha256:f495a1652cf3fbab2eb0639776dad966c2fb874d79d87ca07f9d5f059b8bd215", size = 201986, upload-time = "2026-04-02T09:26:52.197Z" }, - { url = "https://files.pythonhosted.org/packages/d8/97/bfb18b3db2aed3b90cf54dc292ad79fdd5ad65c4eae454099475cbeadd0d/charset_normalizer-3.4.7-cp313-cp313-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:e712b419df8ba5e42b226c510472b37bd57b38e897d3eca5e8cfd410a29fa859", size = 211711, upload-time = "2026-04-02T09:26:53.49Z" }, - { url = "https://files.pythonhosted.org/packages/6f/a5/a581c13798546a7fd557c82614a5c65a13df2157e9ad6373166d2a3e645d/charset_normalizer-3.4.7-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:7804338df6fcc08105c7745f1502ba68d900f45fd770d5bdd5288ddccb8a42d8", size = 210036, upload-time = "2026-04-02T09:26:54.975Z" }, - { url = "https://files.pythonhosted.org/packages/8c/bf/b3ab5bcb478e4193d517644b0fb2bf5497fbceeaa7a1bc0f4d5b50953861/charset_normalizer-3.4.7-cp313-cp313-musllinux_1_2_armv7l.whl", hash = "sha256:481551899c856c704d58119b5025793fa6730adda3571971af568f66d2424bb5", size = 202998, upload-time = "2026-04-02T09:26:56.303Z" }, - { url = "https://files.pythonhosted.org/packages/e7/4e/23efd79b65d314fa320ec6017b4b5834d5c12a58ba4610aa353af2e2f577/charset_normalizer-3.4.7-cp313-cp313-musllinux_1_2_ppc64le.whl", hash = "sha256:f59099f9b66f0d7145115e6f80dd8b1d847176df89b234a5a6b3f00437aa0832", size = 230056, upload-time = "2026-04-02T09:26:57.554Z" }, - { url = "https://files.pythonhosted.org/packages/b9/9f/1e1941bc3f0e01df116e68dc37a55c4d249df5e6fa77f008841aef68264f/charset_normalizer-3.4.7-cp313-cp313-musllinux_1_2_riscv64.whl", hash = "sha256:f59ad4c0e8f6bba240a9bb85504faa1ab438237199d4cce5f622761507b8f6a6", size = 211537, upload-time = "2026-04-02T09:26:58.843Z" }, - { url = "https://files.pythonhosted.org/packages/80/0f/088cbb3020d44428964a6c97fe1edfb1b9550396bf6d278330281e8b709c/charset_normalizer-3.4.7-cp313-cp313-musllinux_1_2_s390x.whl", hash = "sha256:3dedcc22d73ec993f42055eff4fcfed9318d1eeb9a6606c55892a26964964e48", size = 226176, upload-time = "2026-04-02T09:27:00.437Z" }, - { url = "https://files.pythonhosted.org/packages/6a/9f/130394f9bbe06f4f63e22641d32fc9b202b7e251c9aef4db044324dac493/charset_normalizer-3.4.7-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:64f02c6841d7d83f832cd97ccf8eb8a906d06eb95d5276069175c696b024b60a", size = 217723, upload-time = "2026-04-02T09:27:02.021Z" }, - { url = "https://files.pythonhosted.org/packages/73/55/c469897448a06e49f8fa03f6caae97074fde823f432a98f979cc42b90e69/charset_normalizer-3.4.7-cp313-cp313-win32.whl", hash = "sha256:4042d5c8f957e15221d423ba781e85d553722fc4113f523f2feb7b188cc34c5e", size = 148085, upload-time = "2026-04-02T09:27:03.192Z" }, - { url = "https://files.pythonhosted.org/packages/5d/78/1b74c5bbb3f99b77a1715c91b3e0b5bdb6fe302d95ace4f5b1bec37b0167/charset_normalizer-3.4.7-cp313-cp313-win_amd64.whl", hash = "sha256:3946fa46a0cf3e4c8cb1cc52f56bb536310d34f25f01ca9b6c16afa767dab110", size = 158819, upload-time = "2026-04-02T09:27:04.454Z" }, - { url = "https://files.pythonhosted.org/packages/68/86/46bd42279d323deb8687c4a5a811fd548cb7d1de10cf6535d099877a9a9f/charset_normalizer-3.4.7-cp313-cp313-win_arm64.whl", hash = "sha256:80d04837f55fc81da168b98de4f4b797ef007fc8a79ab71c6ec9bc4dd662b15b", size = 147915, upload-time = "2026-04-02T09:27:05.971Z" }, - { url = "https://files.pythonhosted.org/packages/97/c8/c67cb8c70e19ef1960b97b22ed2a1567711de46c4ddf19799923adc836c2/charset_normalizer-3.4.7-cp314-cp314-macosx_10_15_universal2.whl", hash = "sha256:c36c333c39be2dbca264d7803333c896ab8fa7d4d6f0ab7edb7dfd7aea6e98c0", size = 309234, upload-time = "2026-04-02T09:27:07.194Z" }, - { url = "https://files.pythonhosted.org/packages/99/85/c091fdee33f20de70d6c8b522743b6f831a2f1cd3ff86de4c6a827c48a76/charset_normalizer-3.4.7-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:1c2aed2e5e41f24ea8ef1590b8e848a79b56f3a5564a65ceec43c9d692dc7d8a", size = 208042, upload-time = "2026-04-02T09:27:08.749Z" }, - { url = "https://files.pythonhosted.org/packages/87/1c/ab2ce611b984d2fd5d86a5a8a19c1ae26acac6bad967da4967562c75114d/charset_normalizer-3.4.7-cp314-cp314-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:54523e136b8948060c0fa0bc7b1b50c32c186f2fceee897a495406bb6e311d2b", size = 228706, upload-time = "2026-04-02T09:27:09.951Z" }, - { url = "https://files.pythonhosted.org/packages/a8/29/2b1d2cb00bf085f59d29eb773ce58ec2d325430f8c216804a0a5cd83cbca/charset_normalizer-3.4.7-cp314-cp314-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:715479b9a2802ecac752a3b0efa2b0b60285cf962ee38414211abdfccc233b41", size = 224727, upload-time = "2026-04-02T09:27:11.175Z" }, - { url = "https://files.pythonhosted.org/packages/47/5c/032c2d5a07fe4d4855fea851209cca2b6f03ebeb6d4e3afdb3358386a684/charset_normalizer-3.4.7-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:bd6c2a1c7573c64738d716488d2cdd3c00e340e4835707d8fdb8dc1a66ef164e", size = 215882, upload-time = "2026-04-02T09:27:12.446Z" }, - { url = "https://files.pythonhosted.org/packages/2c/c2/356065d5a8b78ed04499cae5f339f091946a6a74f91e03476c33f0ab7100/charset_normalizer-3.4.7-cp314-cp314-manylinux_2_31_armv7l.whl", hash = "sha256:c45e9440fb78f8ddabcf714b68f936737a121355bf59f3907f4e17721b9d1aae", size = 200860, upload-time = "2026-04-02T09:27:13.721Z" }, - { url = "https://files.pythonhosted.org/packages/0c/cd/a32a84217ced5039f53b29f460962abb2d4420def55afabe45b1c3c7483d/charset_normalizer-3.4.7-cp314-cp314-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:3534e7dcbdcf757da6b85a0bbf5b6868786d5982dd959b065e65481644817a18", size = 211564, upload-time = "2026-04-02T09:27:15.272Z" }, - { url = "https://files.pythonhosted.org/packages/44/86/58e6f13ce26cc3b8f4a36b94a0f22ae2f00a72534520f4ae6857c4b81f89/charset_normalizer-3.4.7-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:e8ac484bf18ce6975760921bb6148041faa8fef0547200386ea0b52b5d27bf7b", size = 211276, upload-time = "2026-04-02T09:27:16.834Z" }, - { url = "https://files.pythonhosted.org/packages/8f/fe/d17c32dc72e17e155e06883efa84514ca375f8a528ba2546bee73fc4df81/charset_normalizer-3.4.7-cp314-cp314-musllinux_1_2_armv7l.whl", hash = "sha256:a5fe03b42827c13cdccd08e6c0247b6a6d4b5e3cdc53fd1749f5896adcdc2356", size = 201238, upload-time = "2026-04-02T09:27:18.229Z" }, - { url = "https://files.pythonhosted.org/packages/6a/29/f33daa50b06525a237451cdb6c69da366c381a3dadcd833fa5676bc468b3/charset_normalizer-3.4.7-cp314-cp314-musllinux_1_2_ppc64le.whl", hash = "sha256:2d6eb928e13016cea4f1f21d1e10c1cebd5a421bc57ddf5b1142ae3f86824fab", size = 230189, upload-time = "2026-04-02T09:27:19.445Z" }, - { url = "https://files.pythonhosted.org/packages/b6/6e/52c84015394a6a0bdcd435210a7e944c5f94ea1055f5cc5d56c5fe368e7b/charset_normalizer-3.4.7-cp314-cp314-musllinux_1_2_riscv64.whl", hash = "sha256:e74327fb75de8986940def6e8dee4f127cc9752bee7355bb323cc5b2659b6d46", size = 211352, upload-time = "2026-04-02T09:27:20.79Z" }, - { url = "https://files.pythonhosted.org/packages/8c/d7/4353be581b373033fb9198bf1da3cf8f09c1082561e8e922aa7b39bf9fe8/charset_normalizer-3.4.7-cp314-cp314-musllinux_1_2_s390x.whl", hash = "sha256:d6038d37043bced98a66e68d3aa2b6a35505dc01328cd65217cefe82f25def44", size = 227024, upload-time = "2026-04-02T09:27:22.063Z" }, - { url = "https://files.pythonhosted.org/packages/30/45/99d18aa925bd1740098ccd3060e238e21115fffbfdcb8f3ece837d0ace6c/charset_normalizer-3.4.7-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:7579e913a5339fb8fa133f6bbcfd8e6749696206cf05acdbdca71a1b436d8e72", size = 217869, upload-time = "2026-04-02T09:27:23.486Z" }, - { url = "https://files.pythonhosted.org/packages/5c/05/5ee478aa53f4bb7996482153d4bfe1b89e0f087f0ab6b294fcf92d595873/charset_normalizer-3.4.7-cp314-cp314-win32.whl", hash = "sha256:5b77459df20e08151cd6f8b9ef8ef1f961ef73d85c21a555c7eed5b79410ec10", size = 148541, upload-time = "2026-04-02T09:27:25.146Z" }, - { url = "https://files.pythonhosted.org/packages/48/77/72dcb0921b2ce86420b2d79d454c7022bf5be40202a2a07906b9f2a35c97/charset_normalizer-3.4.7-cp314-cp314-win_amd64.whl", hash = "sha256:92a0a01ead5e668468e952e4238cccd7c537364eb7d851ab144ab6627dbbe12f", size = 159634, upload-time = "2026-04-02T09:27:26.642Z" }, - { url = "https://files.pythonhosted.org/packages/c6/a3/c2369911cd72f02386e4e340770f6e158c7980267da16af8f668217abaa0/charset_normalizer-3.4.7-cp314-cp314-win_arm64.whl", hash = "sha256:67f6279d125ca0046a7fd386d01b311c6363844deac3e5b069b514ba3e63c246", size = 148384, upload-time = "2026-04-02T09:27:28.271Z" }, - { url = "https://files.pythonhosted.org/packages/94/09/7e8a7f73d24dba1f0035fbbf014d2c36828fc1bf9c88f84093e57d315935/charset_normalizer-3.4.7-cp314-cp314t-macosx_10_15_universal2.whl", hash = "sha256:effc3f449787117233702311a1b7d8f59cba9ced946ba727bdc329ec69028e24", size = 330133, upload-time = "2026-04-02T09:27:29.474Z" }, - { url = "https://files.pythonhosted.org/packages/8d/da/96975ddb11f8e977f706f45cddd8540fd8242f71ecdb5d18a80723dcf62c/charset_normalizer-3.4.7-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:fbccdc05410c9ee21bbf16a35f4c1d16123dcdeb8a1d38f33654fa21d0234f79", size = 216257, upload-time = "2026-04-02T09:27:30.793Z" }, - { url = "https://files.pythonhosted.org/packages/e5/e8/1d63bf8ef2d388e95c64b2098f45f84758f6d102a087552da1485912637b/charset_normalizer-3.4.7-cp314-cp314t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:733784b6d6def852c814bce5f318d25da2ee65dd4839a0718641c696e09a2960", size = 234851, upload-time = "2026-04-02T09:27:32.44Z" }, - { url = "https://files.pythonhosted.org/packages/9b/40/e5ff04233e70da2681fa43969ad6f66ca5611d7e669be0246c4c7aaf6dc8/charset_normalizer-3.4.7-cp314-cp314t-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:a89c23ef8d2c6b27fd200a42aa4ac72786e7c60d40efdc76e6011260b6e949c4", size = 233393, upload-time = "2026-04-02T09:27:34.03Z" }, - { url = "https://files.pythonhosted.org/packages/be/c1/06c6c49d5a5450f76899992f1ee40b41d076aee9279b49cf9974d2f313d5/charset_normalizer-3.4.7-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:6c114670c45346afedc0d947faf3c7f701051d2518b943679c8ff88befe14f8e", size = 223251, upload-time = "2026-04-02T09:27:35.369Z" }, - { url = "https://files.pythonhosted.org/packages/2b/9f/f2ff16fb050946169e3e1f82134d107e5d4ae72647ec8a1b1446c148480f/charset_normalizer-3.4.7-cp314-cp314t-manylinux_2_31_armv7l.whl", hash = "sha256:a180c5e59792af262bf263b21a3c49353f25945d8d9f70628e73de370d55e1e1", size = 206609, upload-time = "2026-04-02T09:27:36.661Z" }, - { url = "https://files.pythonhosted.org/packages/69/d5/a527c0cd8d64d2eab7459784fb4169a0ac76e5a6fc5237337982fd61347e/charset_normalizer-3.4.7-cp314-cp314t-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:3c9a494bc5ec77d43cea229c4f6db1e4d8fe7e1bbffa8b6f0f0032430ff8ab44", size = 220014, upload-time = "2026-04-02T09:27:38.019Z" }, - { url = "https://files.pythonhosted.org/packages/7e/80/8a7b8104a3e203074dc9aa2c613d4b726c0e136bad1cc734594b02867972/charset_normalizer-3.4.7-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:8d828b6667a32a728a1ad1d93957cdf37489c57b97ae6c4de2860fa749b8fc1e", size = 218979, upload-time = "2026-04-02T09:27:39.37Z" }, - { url = "https://files.pythonhosted.org/packages/02/9a/b759b503d507f375b2b5c153e4d2ee0a75aa215b7f2489cf314f4541f2c0/charset_normalizer-3.4.7-cp314-cp314t-musllinux_1_2_armv7l.whl", hash = "sha256:cf1493cd8607bec4d8a7b9b004e699fcf8f9103a9284cc94962cb73d20f9d4a3", size = 209238, upload-time = "2026-04-02T09:27:40.722Z" }, - { url = "https://files.pythonhosted.org/packages/c2/4e/0f3f5d47b86bdb79256e7290b26ac847a2832d9a4033f7eb2cd4bcf4bb5b/charset_normalizer-3.4.7-cp314-cp314t-musllinux_1_2_ppc64le.whl", hash = "sha256:0c96c3b819b5c3e9e165495db84d41914d6894d55181d2d108cc1a69bfc9cce0", size = 236110, upload-time = "2026-04-02T09:27:42.33Z" }, - { url = "https://files.pythonhosted.org/packages/96/23/bce28734eb3ed2c91dcf93abeb8a5cf393a7b2749725030bb630e554fdd8/charset_normalizer-3.4.7-cp314-cp314t-musllinux_1_2_riscv64.whl", hash = "sha256:752a45dc4a6934060b3b0dab47e04edc3326575f82be64bc4fc293914566503e", size = 219824, upload-time = "2026-04-02T09:27:43.924Z" }, - { url = "https://files.pythonhosted.org/packages/2c/6f/6e897c6984cc4d41af319b077f2f600fc8214eb2fe2d6bcb79141b882400/charset_normalizer-3.4.7-cp314-cp314t-musllinux_1_2_s390x.whl", hash = "sha256:8778f0c7a52e56f75d12dae53ae320fae900a8b9b4164b981b9c5ce059cd1fcb", size = 233103, upload-time = "2026-04-02T09:27:45.348Z" }, - { url = "https://files.pythonhosted.org/packages/76/22/ef7bd0fe480a0ae9b656189ec00744b60933f68b4f42a7bb06589f6f576a/charset_normalizer-3.4.7-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:ce3412fbe1e31eb81ea42f4169ed94861c56e643189e1e75f0041f3fe7020abe", size = 225194, upload-time = "2026-04-02T09:27:46.706Z" }, - { url = "https://files.pythonhosted.org/packages/c5/a7/0e0ab3e0b5bc1219bd80a6a0d4d72ca74d9250cb2382b7c699c147e06017/charset_normalizer-3.4.7-cp314-cp314t-win32.whl", hash = "sha256:c03a41a8784091e67a39648f70c5f97b5b6a37f216896d44d2cdcb82615339a0", size = 159827, upload-time = "2026-04-02T09:27:48.053Z" }, - { url = "https://files.pythonhosted.org/packages/7a/1d/29d32e0fb40864b1f878c7f5a0b343ae676c6e2b271a2d55cc3a152391da/charset_normalizer-3.4.7-cp314-cp314t-win_amd64.whl", hash = "sha256:03853ed82eeebbce3c2abfdbc98c96dc205f32a79627688ac9a27370ea61a49c", size = 174168, upload-time = "2026-04-02T09:27:49.795Z" }, - { url = "https://files.pythonhosted.org/packages/de/32/d92444ad05c7a6e41fb2036749777c163baf7a0301a040cb672d6b2b1ae9/charset_normalizer-3.4.7-cp314-cp314t-win_arm64.whl", hash = "sha256:c35abb8bfff0185efac5878da64c45dafd2b37fb0383add1be155a763c1f083d", size = 153018, upload-time = "2026-04-02T09:27:51.116Z" }, - { url = "https://files.pythonhosted.org/packages/01/1b/ef725f8eb19b5a261b30f78efa9252ef9d017985cb499102f6f49834cd12/charset_normalizer-3.4.7-cp39-cp39-macosx_10_9_universal2.whl", hash = "sha256:177a0ba5f0211d488e295aaf82707237e331c24788d8d76c96c5a41594723217", size = 299121, upload-time = "2026-04-02T09:28:14.372Z" }, - { url = "https://files.pythonhosted.org/packages/a3/22/2f12878fbc680fbbb52386cd39a379801f62eaca74fc8b323381325f0f04/charset_normalizer-3.4.7-cp39-cp39-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:6e0d51f618228538a3e8f46bd246f87a6cd030565e015803691603f55e12afb5", size = 200612, upload-time = "2026-04-02T09:28:16.162Z" }, - { url = "https://files.pythonhosted.org/packages/bc/b6/10c84e789126ca97d4a7228863a30481e786980a8b8cfcbf4f30658ca63c/charset_normalizer-3.4.7-cp39-cp39-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:14265bfe1f09498b9d8ec91e9ec9fa52775edf90fcbde092b25f4a33d444fea9", size = 221041, upload-time = "2026-04-02T09:28:17.554Z" }, - { url = "https://files.pythonhosted.org/packages/21/7b/c414866a138400b2e81973d006da7f694cfeaf895ef07d2cba9a8743841a/charset_normalizer-3.4.7-cp39-cp39-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:87fad7d9ba98c86bcb41b2dc8dbb326619be2562af1f8ff50776a39e55721c5a", size = 216323, upload-time = "2026-04-02T09:28:18.863Z" }, - { url = "https://files.pythonhosted.org/packages/2e/92/bdcf94997e06b223d826df3abed45a5ad6e17f609b7df9d25cd23b5bde30/charset_normalizer-3.4.7-cp39-cp39-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:f22dec1690b584cea26fade98b2435c132c1b5f68e39f5a0b7627cd7ae31f1dc", size = 208419, upload-time = "2026-04-02T09:28:20.332Z" }, - { url = "https://files.pythonhosted.org/packages/1a/64/3f9142293c88b1b10e199649ed1330f070c2a68e305335a5819fa7f25fa7/charset_normalizer-3.4.7-cp39-cp39-manylinux_2_31_armv7l.whl", hash = "sha256:d61f00a0869d77422d9b2aba989e2d24afa6ffd552af442e0e58de4f35ea6d00", size = 195016, upload-time = "2026-04-02T09:28:21.657Z" }, - { url = "https://files.pythonhosted.org/packages/c1/d1/d8a6b7dd5c5636b76ce0d080bc57d8e56c7bbd6bc2ac941529a35e41d84a/charset_normalizer-3.4.7-cp39-cp39-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:6370e8686f662e6a3941ee48ed4742317cafbe5707e36406e9df792cdb535776", size = 206115, upload-time = "2026-04-02T09:28:23.259Z" }, - { url = "https://files.pythonhosted.org/packages/dd/8c/60ebe912379627d023eb96995b40bc50308729f210f43d66109ca0a7bbd2/charset_normalizer-3.4.7-cp39-cp39-musllinux_1_2_aarch64.whl", hash = "sha256:a6c5863edfbe888d9eff9c8b8087354e27618d9da76425c119293f11712a6319", size = 204022, upload-time = "2026-04-02T09:28:24.779Z" }, - { url = "https://files.pythonhosted.org/packages/d5/2a/41816ceda78a551cbfdfbeab6f3891152b0e3f758ce6580c2c18c829f774/charset_normalizer-3.4.7-cp39-cp39-musllinux_1_2_armv7l.whl", hash = "sha256:ed065083d0898c9d5b4bbec7b026fd755ff7454e6e8b73a67f8c744b13986e24", size = 195914, upload-time = "2026-04-02T09:28:26.181Z" }, - { url = "https://files.pythonhosted.org/packages/8f/9b/7c7f4b7f11525fcbdfba752455314ac60646bae91cdd671d531c1f7a97c6/charset_normalizer-3.4.7-cp39-cp39-musllinux_1_2_ppc64le.whl", hash = "sha256:2cd4a60d0e2fb04537162c62bbbb4182f53541fe0ede35cdf270a1c1e723cc42", size = 222159, upload-time = "2026-04-02T09:28:27.504Z" }, - { url = "https://files.pythonhosted.org/packages/9f/57/301682e7469bdbfa2ce219a804f0668b2266ab8520570d85d3b3ef483ea3/charset_normalizer-3.4.7-cp39-cp39-musllinux_1_2_riscv64.whl", hash = "sha256:813c0e0132266c08eb87469a642cb30aaff57c5f426255419572aaeceeaa7bf4", size = 206154, upload-time = "2026-04-02T09:28:28.848Z" }, - { url = "https://files.pythonhosted.org/packages/20/ec/90339ff5cdc598b265748c1f231c7d7fbd9123a92cee10f757e0b1448de4/charset_normalizer-3.4.7-cp39-cp39-musllinux_1_2_s390x.whl", hash = "sha256:07d9e39b01743c3717745f4c530a6349eadbfa043c7577eef86c502c15df2c67", size = 217423, upload-time = "2026-04-02T09:28:30.248Z" }, - { url = "https://files.pythonhosted.org/packages/2e/e7/a7a6147f8e3375676309cf584b25c72a3bab784ea4085b0011fa07b23aeb/charset_normalizer-3.4.7-cp39-cp39-musllinux_1_2_x86_64.whl", hash = "sha256:c0f081d69a6e58272819b70288d3221a6ee64b98df852631c80f293514d3b274", size = 210604, upload-time = "2026-04-02T09:28:31.736Z" }, - { url = "https://files.pythonhosted.org/packages/1a/62/d9340c7a79c393e57807d7fb6c57e82060687891f81b74d3201958b919c1/charset_normalizer-3.4.7-cp39-cp39-win32.whl", hash = "sha256:8751d2787c9131302398b11e6c8068053dcb55d5a8964e114b6e196cf16cb366", size = 144631, upload-time = "2026-04-02T09:28:33.158Z" }, - { url = "https://files.pythonhosted.org/packages/21/e7/92901117e2ddc8facfe8235a3ecd4eb482185b2ad5d5b6606b37c1afea06/charset_normalizer-3.4.7-cp39-cp39-win_amd64.whl", hash = "sha256:12a6fff75f6bc66711b73a2f0addfc4c8c15a20e805146a02d147a318962c444", size = 154710, upload-time = "2026-04-02T09:28:34.557Z" }, - { url = "https://files.pythonhosted.org/packages/cc/4f/e1fb138201ad9a32499dd9a98aa4a5a5441fbf7f56b52b619a54b7ee8777/charset_normalizer-3.4.7-cp39-cp39-win_arm64.whl", hash = "sha256:bb8cc7534f51d9a017b93e3e85b260924f909601c3df002bcdb58ddb4dc41a5c", size = 143716, upload-time = "2026-04-02T09:28:35.908Z" }, - { url = "https://files.pythonhosted.org/packages/db/8f/61959034484a4a7c527811f4721e75d02d653a35afb0b6054474d8185d4c/charset_normalizer-3.4.7-py3-none-any.whl", hash = "sha256:3dce51d0f5e7951f8bb4900c257dad282f49190fdbebecd4ba99bcc41fef404d", size = 61958, upload-time = "2026-04-02T09:28:37.794Z" }, -] - -[[package]] -name = "cryptography" -version = "47.0.0" -source = { registry = "https://pypi.org/simple" } -dependencies = [ - { name = "cffi", marker = "platform_python_implementation != 'PyPy'" }, - { name = "typing-extensions", marker = "python_full_version < '3.11'" }, -] -sdist = { url = "https://files.pythonhosted.org/packages/ef/b2/7ffa7fe8207a8c42147ffe70c3e360b228160c1d85dc3faff16aaa3244c0/cryptography-47.0.0.tar.gz", hash = "sha256:9f8e55fe4e63613a5e1cc5819030f27b97742d720203a087802ce4ce9ceb52bb", size = 830863, upload-time = "2026-04-24T19:54:57.056Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/a4/98/40dfe932134bdcae4f6ab5927c87488754bf9eb79297d7e0070b78dd58e9/cryptography-47.0.0-cp311-abi3-macosx_10_9_universal2.whl", hash = "sha256:160ad728f128972d362e714054f6ba0067cab7fb350c5202a9ae8ae4ce3ef1a0", size = 7912214, upload-time = "2026-04-24T19:53:03.864Z" }, - { url = "https://files.pythonhosted.org/packages/34/c6/2733531243fba725f58611b918056b277692f1033373dcc8bd01af1c05d4/cryptography-47.0.0-cp311-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:b9a8943e359b7615db1a3ba587994618e094ff3d6fa5a390c73d079ce18b3973", size = 4644617, upload-time = "2026-04-24T19:53:06.909Z" }, - { url = "https://files.pythonhosted.org/packages/00/e3/b27be1a670a9b87f855d211cf0e1174a5d721216b7616bd52d8581d912ed/cryptography-47.0.0-cp311-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:f5c15764f261394b22aef6b00252f5195f46f2ca300bec57149474e2538b31f8", size = 4668186, upload-time = "2026-04-24T19:53:09.053Z" }, - { url = "https://files.pythonhosted.org/packages/81/b9/8443cfe5d17d482d348cee7048acf502bb89a51b6382f06240fd290d4ca3/cryptography-47.0.0-cp311-abi3-manylinux_2_28_aarch64.whl", hash = "sha256:9c59ab0e0fa3a180a5a9c59f3a5abe3ef90d474bc56d7fadfbe80359491b615b", size = 4651244, upload-time = "2026-04-24T19:53:11.217Z" }, - { url = "https://files.pythonhosted.org/packages/5d/5e/13ed0cdd0eb88ba159d6dd5ebfece8cb901dbcf1ae5ac4072e28b55d3153/cryptography-47.0.0-cp311-abi3-manylinux_2_28_ppc64le.whl", hash = "sha256:34b4358b925a5ea3e14384ca781a2c0ef7ac219b57bb9eacc4457078e2b19f92", size = 5252906, upload-time = "2026-04-24T19:53:13.532Z" }, - { url = "https://files.pythonhosted.org/packages/64/16/ed058e1df0f33d440217cd120d41d5dda9dd215a80b8187f68483185af82/cryptography-47.0.0-cp311-abi3-manylinux_2_28_x86_64.whl", hash = "sha256:0024b87d47ae2399165a6bfb20d24888881eeab83ae2566d62467c5ff0030ce7", size = 4701842, upload-time = "2026-04-24T19:53:15.618Z" }, - { url = "https://files.pythonhosted.org/packages/02/e0/3d30986b30fdbd9e969abbdf8ba00ed0618615144341faeb57f395a084fe/cryptography-47.0.0-cp311-abi3-manylinux_2_31_armv7l.whl", hash = "sha256:1e47422b5557bb82d3fff997e8d92cff4e28b9789576984f08c248d2b3535d93", size = 4289313, upload-time = "2026-04-24T19:53:17.755Z" }, - { url = "https://files.pythonhosted.org/packages/df/fd/32db38e3ad0cb331f0691cb4c7a8a6f176f679124dee746b3af6633db4d9/cryptography-47.0.0-cp311-abi3-manylinux_2_34_aarch64.whl", hash = "sha256:6f29f36582e6151d9686235e586dd35bb67491f024767d10b842e520dc6a07ac", size = 4650964, upload-time = "2026-04-24T19:53:20.062Z" }, - { url = "https://files.pythonhosted.org/packages/86/53/5395d944dfd48cb1f67917f533c609c34347185ef15eb4308024c876f274/cryptography-47.0.0-cp311-abi3-manylinux_2_34_ppc64le.whl", hash = "sha256:a9b761f012a943b7de0e828843c5688d0de94a0578d44d6c85a1bae32f87791f", size = 5207817, upload-time = "2026-04-24T19:53:22.498Z" }, - { url = "https://files.pythonhosted.org/packages/34/4f/e5711b28e1901f7d480a2b1b688b645aa4c77c73f10731ed17e7f7db3f0d/cryptography-47.0.0-cp311-abi3-manylinux_2_34_x86_64.whl", hash = "sha256:4e1de79e047e25d6e9f8cea71c86b4a53aced64134f0f003bbcbf3655fd172c8", size = 4701544, upload-time = "2026-04-24T19:53:24.356Z" }, - { url = "https://files.pythonhosted.org/packages/22/22/c8ddc25de3010fc8da447648f5a092c40e7a8fadf01dd6d255d9c0b9373d/cryptography-47.0.0-cp311-abi3-musllinux_1_2_aarch64.whl", hash = "sha256:ef6b3634087f18d2155b1e8ce264e5345a753da2c5fa9815e7d41315c90f8318", size = 4783536, upload-time = "2026-04-24T19:53:26.665Z" }, - { url = "https://files.pythonhosted.org/packages/66/b6/d4a68f4ea999c6d89e8498579cba1c5fcba4276284de7773b17e4fa69293/cryptography-47.0.0-cp311-abi3-musllinux_1_2_x86_64.whl", hash = "sha256:11dbb9f50a0f1bb9757b3d8c27c1101780efb8f0bdecfb12439c22a74d64c001", size = 4926106, upload-time = "2026-04-24T19:53:28.686Z" }, - { url = "https://files.pythonhosted.org/packages/54/ed/5f524db1fade9c013aa618e1c99c6ed05e8ffc9ceee6cda22fed22dda3f4/cryptography-47.0.0-cp311-abi3-win32.whl", hash = "sha256:7fda2f02c9015db3f42bb8a22324a454516ed10a8c29ca6ece6cdbb5efe2a203", size = 3258581, upload-time = "2026-04-24T19:53:31.058Z" }, - { url = "https://files.pythonhosted.org/packages/b2/dc/1b901990b174786569029f67542b3edf72ac068b6c3c8683c17e6a2f5363/cryptography-47.0.0-cp311-abi3-win_amd64.whl", hash = "sha256:f5c3296dab66202f1b18a91fa266be93d6aa0c2806ea3d67762c69f60adc71aa", size = 3775309, upload-time = "2026-04-24T19:53:33.054Z" }, - { url = "https://files.pythonhosted.org/packages/14/88/7aa18ad9c11bc87689affa5ce4368d884b517502d75739d475fc6f4a03c7/cryptography-47.0.0-cp314-cp314t-macosx_10_9_universal2.whl", hash = "sha256:be12cb6a204f77ed968bcefe68086eb061695b540a3dd05edac507a3111b25f0", size = 7904299, upload-time = "2026-04-24T19:53:35.003Z" }, - { url = "https://files.pythonhosted.org/packages/07/55/c18f75724544872f234678fdedc871391722cb34a2aee19faa9f63100bb2/cryptography-47.0.0-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:2ebd84adf0728c039a3be2700289378e1c164afc6748df1a5ed456767bef9ba7", size = 4631180, upload-time = "2026-04-24T19:53:37.517Z" }, - { url = "https://files.pythonhosted.org/packages/ee/65/31a5cc0eaca99cec5bafffe155d407115d96136bb161e8b49e0ef73f09a7/cryptography-47.0.0-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:7f68d6fbc7fbbcfb0939fea72c3b96a9f9a6edfc0e1b1d29778a2066030418b1", size = 4653529, upload-time = "2026-04-24T19:53:39.775Z" }, - { url = "https://files.pythonhosted.org/packages/e5/bc/641c0519a495f3bfd0421b48d7cd325c4336578523ccd76ea322b6c29c7a/cryptography-47.0.0-cp314-cp314t-manylinux_2_28_aarch64.whl", hash = "sha256:6651d32eff255423503aa276739da98c30f26c40cbeffcc6048e0d54ef704c0c", size = 4638570, upload-time = "2026-04-24T19:53:42.129Z" }, - { url = "https://files.pythonhosted.org/packages/2b/f2/300327b0a47f6dc94dd8b71b57052aefe178bb51745073d73d80604f11ab/cryptography-47.0.0-cp314-cp314t-manylinux_2_28_ppc64le.whl", hash = "sha256:3fb8fa48075fad7193f2e5496135c6a76ac4b2aa5a38433df0a539296b377829", size = 5238019, upload-time = "2026-04-24T19:53:44.577Z" }, - { url = "https://files.pythonhosted.org/packages/e9/5a/5b5cf994391d4bf9d9c7efd4c66aabe4d95227256627f8fea6cff7dfadbd/cryptography-47.0.0-cp314-cp314t-manylinux_2_28_x86_64.whl", hash = "sha256:11438c7518132d95f354fa01a4aa2f806d172a061a7bed18cf18cbdacdb204d7", size = 4686832, upload-time = "2026-04-24T19:53:47.015Z" }, - { url = "https://files.pythonhosted.org/packages/dc/2c/ae950e28fd6475c852fc21a44db3e6b5bcc1261d1e370f2b6e42fa800fef/cryptography-47.0.0-cp314-cp314t-manylinux_2_31_armv7l.whl", hash = "sha256:8c1a736bbb3288005796c3f7ccb9453360d7fed483b13b9f468aea5171432923", size = 4269301, upload-time = "2026-04-24T19:53:48.97Z" }, - { url = "https://files.pythonhosted.org/packages/67/fb/6a39782e150ffe5cc1b0018cb6ddc48bf7ca62b498d7539ffc8a758e977d/cryptography-47.0.0-cp314-cp314t-manylinux_2_34_aarch64.whl", hash = "sha256:f1557695e5c2b86e204f6ce9470497848634100787935ab7adc5397c54abd7ab", size = 4638110, upload-time = "2026-04-24T19:53:51.011Z" }, - { url = "https://files.pythonhosted.org/packages/8e/d7/0b3c71090a76e5c203164a47688b697635ece006dcd2499ab3a4dbd3f0bd/cryptography-47.0.0-cp314-cp314t-manylinux_2_34_ppc64le.whl", hash = "sha256:f9a034b642b960767fb343766ae5ba6ad653f2e890ddd82955aef288ffea8736", size = 5194988, upload-time = "2026-04-24T19:53:52.962Z" }, - { url = "https://files.pythonhosted.org/packages/63/33/63a961498a9df51721ab578c5a2622661411fc520e00bd83b0cc64eb20c4/cryptography-47.0.0-cp314-cp314t-manylinux_2_34_x86_64.whl", hash = "sha256:b1c76fca783aa7698eb21eb14f9c4aa09452248ee54a627d125025a43f83e7a7", size = 4686563, upload-time = "2026-04-24T19:53:55.274Z" }, - { url = "https://files.pythonhosted.org/packages/b7/bf/5ee5b145248f92250de86145d1c1d6edebbd57a7fe7caa4dedb5d4cf06a1/cryptography-47.0.0-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:4f7722c97826770bab8ae92959a2e7b20a5e9e9bf4deae68fd86c3ca457bab52", size = 4770094, upload-time = "2026-04-24T19:53:57.753Z" }, - { url = "https://files.pythonhosted.org/packages/92/43/21d220b2da5d517773894dacdcdb5c682c28d3fffce65548cb06e87d5501/cryptography-47.0.0-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:09f6d7bf6724f8db8b32f11eccf23efc8e759924bc5603800335cf8859a3ddbd", size = 4913811, upload-time = "2026-04-24T19:54:00.236Z" }, - { url = "https://files.pythonhosted.org/packages/31/98/dc4ad376ac5f1a1a7d4a83f7b0c6f2bcad36b5d2d8f30aeb482d3a7d9582/cryptography-47.0.0-cp314-cp314t-win32.whl", hash = "sha256:6eebcaf0df1d21ce1f90605c9b432dd2c4f4ab665ac29a40d5e3fc68f51b5e63", size = 3237158, upload-time = "2026-04-24T19:54:02.606Z" }, - { url = "https://files.pythonhosted.org/packages/bc/da/97f62d18306b5133468bc3f8cc73a3111e8cdc8cf8d3e69474d6e5fd2d1b/cryptography-47.0.0-cp314-cp314t-win_amd64.whl", hash = "sha256:51c9313e90bd1690ec5a75ed047c27c0b8e6c570029712943d6116ef9a90620b", size = 3758706, upload-time = "2026-04-24T19:54:04.433Z" }, - { url = "https://files.pythonhosted.org/packages/e0/34/a4fae8ae7c3bc227460c9ae43f56abf1b911da0ec29e0ebac53bb0a4b6b7/cryptography-47.0.0-cp38-abi3-macosx_10_9_universal2.whl", hash = "sha256:14432c8a9bcb37009784f9594a62fae211a2ae9543e96c92b2a8e4c3cd5cd0c4", size = 7904072, upload-time = "2026-04-24T19:54:06.411Z" }, - { url = "https://files.pythonhosted.org/packages/01/64/d7b1e54fdb69f22d24a64bb3e88dc718b31c7fb10ef0b9691a3cf7eeea6e/cryptography-47.0.0-cp38-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:07efe86201817e7d3c18781ca9770bc0db04e1e48c994be384e4602bc38f8f27", size = 4635767, upload-time = "2026-04-24T19:54:08.519Z" }, - { url = "https://files.pythonhosted.org/packages/8b/7b/cca826391fb2a94efdcdfe4631eb69306ee1cff0b22f664a412c90713877/cryptography-47.0.0-cp38-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:2b45761c6ec22b7c726d6a829558777e32d0f1c8be7c3f3480f9c912d5ee8a10", size = 4654350, upload-time = "2026-04-24T19:54:10.795Z" }, - { url = "https://files.pythonhosted.org/packages/4c/65/4b57bcc823f42a991627c51c2f68c9fd6eb1393c1756aac876cba2accae2/cryptography-47.0.0-cp38-abi3-manylinux_2_28_aarch64.whl", hash = "sha256:edd4da498015da5b9f26d38d3bfc2e90257bfa9cbed1f6767c282a0025ae649b", size = 4643394, upload-time = "2026-04-24T19:54:13.275Z" }, - { url = "https://files.pythonhosted.org/packages/f4/c4/2c5fbeea70adbbca2bbae865e1d605d6a4a7f8dbd9d33eaf69645087f06c/cryptography-47.0.0-cp38-abi3-manylinux_2_28_ppc64le.whl", hash = "sha256:9af828c0d5a65c70ec729cd7495a4bf1a67ecb66417b8f02ff125ab8a6326a74", size = 5225777, upload-time = "2026-04-24T19:54:15.18Z" }, - { url = "https://files.pythonhosted.org/packages/7e/b8/ac57107ef32749d2b244e36069bb688792a363aaaa3acc9e3cf84c130315/cryptography-47.0.0-cp38-abi3-manylinux_2_28_x86_64.whl", hash = "sha256:256d07c78a04d6b276f5df935a9923275f53bd1522f214447fdf365494e2d515", size = 4688771, upload-time = "2026-04-24T19:54:17.835Z" }, - { url = "https://files.pythonhosted.org/packages/56/fc/9f1de22ff8be99d991f240a46863c52d475404c408886c5a38d2b5c3bb26/cryptography-47.0.0-cp38-abi3-manylinux_2_31_armv7l.whl", hash = "sha256:5d0e362ff51041b0c0d219cc7d6924d7b8996f57ce5712bdcef71eb3c65a59cc", size = 4270753, upload-time = "2026-04-24T19:54:19.963Z" }, - { url = "https://files.pythonhosted.org/packages/00/68/d70c852797aa68e8e48d12e5a87170c43f67bb4a59403627259dd57d15de/cryptography-47.0.0-cp38-abi3-manylinux_2_34_aarch64.whl", hash = "sha256:1581aef4219f7ca2849d0250edaa3866212fb74bf5667284f46aa92f9e65c1ca", size = 4642911, upload-time = "2026-04-24T19:54:21.818Z" }, - { url = "https://files.pythonhosted.org/packages/a5/51/661cbee74f594c5d97ff82d34f10d5551c085ca4668645f4606ebd22bd5d/cryptography-47.0.0-cp38-abi3-manylinux_2_34_ppc64le.whl", hash = "sha256:a49a3eb5341b9503fa3000a9a0db033161db90d47285291f53c2a9d2cd1b7f76", size = 5181411, upload-time = "2026-04-24T19:54:24.376Z" }, - { url = "https://files.pythonhosted.org/packages/94/87/f2b6c374a82cf076cfa1416992ac8e8ec94d79facc37aec87c1a5cb72352/cryptography-47.0.0-cp38-abi3-manylinux_2_34_x86_64.whl", hash = "sha256:2207a498b03275d0051589e326b79d4cf59985c99031b05bb292ac52631c37fe", size = 4688262, upload-time = "2026-04-24T19:54:26.946Z" }, - { url = "https://files.pythonhosted.org/packages/14/e2/8b7462f4acf21ec509616f0245018bb197194ab0b65c2ea21a0bdd53c0eb/cryptography-47.0.0-cp38-abi3-musllinux_1_2_aarch64.whl", hash = "sha256:7a02675e2fabd0c0fc04c868b8781863cbf1967691543c22f5470500ff840b31", size = 4775506, upload-time = "2026-04-24T19:54:28.926Z" }, - { url = "https://files.pythonhosted.org/packages/70/75/158e494e4c08dc05e039da5bb48553826bd26c23930cf8d3cd5f21fa8921/cryptography-47.0.0-cp38-abi3-musllinux_1_2_x86_64.whl", hash = "sha256:80887c5cbd1774683cb126f0ab4184567f080071d5acf62205acb354b4b753b7", size = 4912060, upload-time = "2026-04-24T19:54:30.869Z" }, - { url = "https://files.pythonhosted.org/packages/06/bd/0a9d3edbf5eadbac926d7b9b3cd0c4be584eeeae4a003d24d9eda4affbbd/cryptography-47.0.0-cp38-abi3-win32.whl", hash = "sha256:ed67ea4e0cfb5faa5bc7ecb6e2b8838f3807a03758eec239d6c21c8769355310", size = 3248487, upload-time = "2026-04-24T19:54:33.494Z" }, - { url = "https://files.pythonhosted.org/packages/60/80/5681af756d0da3a599b7bdb586fac5a1540f1bcefd2717a20e611ddade45/cryptography-47.0.0-cp38-abi3-win_amd64.whl", hash = "sha256:835d2d7f47cdc53b3224e90810fb1d36ca94ea29cc1801fb4c1bc43876735769", size = 3755737, upload-time = "2026-04-24T19:54:35.408Z" }, - { url = "https://files.pythonhosted.org/packages/1b/a0/928c9ce0d120a40a81aa99e3ba383e87337b9ac9ef9f6db02e4d7822424d/cryptography-47.0.0-pp311-pypy311_pp73-macosx_11_0_arm64.whl", hash = "sha256:7f1207974a904e005f762869996cf620e9bf79ecb4622f148550bb48e0eb35a7", size = 3909893, upload-time = "2026-04-24T19:54:38.334Z" }, - { url = "https://files.pythonhosted.org/packages/81/75/d691e284750df5d9569f2b1ce4a00a71e1d79566da83b2b3e5549c84917f/cryptography-47.0.0-pp311-pypy311_pp73-manylinux_2_28_aarch64.whl", hash = "sha256:1a405c08857258c11016777e11c02bacbe7ef596faf259305d282272a3a05cbe", size = 4587867, upload-time = "2026-04-24T19:54:40.619Z" }, - { url = "https://files.pythonhosted.org/packages/07/d6/1b90f1a4e453009730b4545286f0b39bb348d805c11181fc31544e4f9a65/cryptography-47.0.0-pp311-pypy311_pp73-manylinux_2_28_x86_64.whl", hash = "sha256:20fdbe3e38fb67c385d233c89371fa27f9909f6ebca1cecc20c13518dae65475", size = 4627192, upload-time = "2026-04-24T19:54:42.849Z" }, - { url = "https://files.pythonhosted.org/packages/dc/53/cb358a80e9e359529f496870dd08c102aa8a4b5b9f9064f00f0d6ed5b527/cryptography-47.0.0-pp311-pypy311_pp73-manylinux_2_34_aarch64.whl", hash = "sha256:f7db373287273d8af1414cf95dc4118b13ffdc62be521997b0f2b270771fef50", size = 4587486, upload-time = "2026-04-24T19:54:44.908Z" }, - { url = "https://files.pythonhosted.org/packages/8b/57/aaa3d53876467a226f9a7a82fd14dd48058ad2de1948493442dfa16e2ffd/cryptography-47.0.0-pp311-pypy311_pp73-manylinux_2_34_x86_64.whl", hash = "sha256:9fe6b7c64926c765f9dff301f9c1b867febcda5768868ca084e18589113732ab", size = 4626327, upload-time = "2026-04-24T19:54:47.813Z" }, - { url = "https://files.pythonhosted.org/packages/ab/9c/51f28c3550276bcf35660703ba0ab829a90b88be8cd98a71ef23c2413913/cryptography-47.0.0-pp311-pypy311_pp73-win_amd64.whl", hash = "sha256:cffbba3392df0fa8629bb7f43454ee2925059ee158e23c54620b9063912b86c8", size = 3698916, upload-time = "2026-04-24T19:54:49.782Z" }, -] - -[[package]] -name = "google-api-core" -version = "2.30.3" -source = { registry = "https://pypi.org/simple" } -dependencies = [ - { name = "google-auth" }, - { name = "googleapis-common-protos" }, - { name = "proto-plus" }, - { name = "protobuf" }, - { name = "requests", version = "2.32.5", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version < '3.10'" }, - { name = "requests", version = "2.33.1", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version >= '3.10'" }, -] -sdist = { url = "https://files.pythonhosted.org/packages/16/ce/502a57fb0ec752026d24df1280b162294b22a0afb98a326084f9a979138b/google_api_core-2.30.3.tar.gz", hash = "sha256:e601a37f148585319b26db36e219df68c5d07b6382cff2d580e83404e44d641b", size = 177001, upload-time = "2026-04-10T00:41:28.035Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/03/15/e56f351cf6ef1cfea58e6ac226a7318ed1deb2218c4b3cc9bd9e4b786c5a/google_api_core-2.30.3-py3-none-any.whl", hash = "sha256:a85761ba72c444dad5d611c2220633480b2b6be2521eca69cca2dbb3ffd6bfe8", size = 173274, upload-time = "2026-04-09T22:57:16.198Z" }, -] - -[package.optional-dependencies] -grpc = [ - { name = "grpcio" }, - { name = "grpcio-status" }, -] - -[[package]] -name = "google-apps-card" -version = "0.6.0" -source = { registry = "https://pypi.org/simple" } -dependencies = [ - { name = "google-api-core", extra = ["grpc"] }, - { name = "google-auth" }, - { name = "grpcio" }, - { name = "proto-plus" }, - { name = "protobuf" }, -] -sdist = { url = "https://files.pythonhosted.org/packages/87/5a/6cd7a16e30841773067b122d09f1a7fa51224620b2af2544d0af5b50042e/google_apps_card-0.6.0.tar.gz", hash = "sha256:d105fdb0e79535d681df876d799abcc54eebbab860faf5865fad9a100dc8b26b", size = 39499, upload-time = "2026-03-30T22:50:21.338Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/26/f8/ac95b3175c5de49c4f8560bd406696b707462ed58e26dc659bed668a149a/google_apps_card-0.6.0-py3-none-any.whl", hash = "sha256:807ec85caec67cf4df8ddb0e31992c71fc53eecd573a1648bae78e8f2c16ac43", size = 40002, upload-time = "2026-03-30T22:49:17.962Z" }, -] - -[[package]] -name = "google-apps-chat" -version = "0.8.0" -source = { registry = "https://pypi.org/simple" } -dependencies = [ - { name = "google-api-core", extra = ["grpc"] }, - { name = "google-apps-card" }, - { name = "google-auth" }, - { name = "grpcio" }, - { name = "proto-plus" }, - { name = "protobuf" }, -] -sdist = { url = "https://files.pythonhosted.org/packages/e3/b8/05d86a16bf48c3e5e75e8f3754b4cdae5e3e4dd9bd9cb1a82dceddb5fadd/google_apps_chat-0.8.0.tar.gz", hash = "sha256:c86f405c05e46fcd03a244a99b0afe9050f6b152bdfc1809b3f9597b52840270", size = 240159, upload-time = "2026-04-10T00:41:29.264Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/91/88/e37eef4d7cb5dd48015469efe610f3e0079435f924f3bde004664b200f3c/google_apps_chat-0.8.0-py3-none-any.whl", hash = "sha256:196ee1a667a59b1b0542dd10b855746a950db86f0fe4ef475c56f82f54defa15", size = 199850, upload-time = "2026-04-10T00:41:08.112Z" }, -] - -[[package]] -name = "google-auth" -version = "2.49.2" -source = { registry = "https://pypi.org/simple" } -dependencies = [ - { name = "cryptography" }, - { name = "pyasn1-modules" }, -] -sdist = { url = "https://files.pythonhosted.org/packages/c6/fc/e925290a1ad95c975c459e2df070fac2b90954e13a0370ac505dff78cb99/google_auth-2.49.2.tar.gz", hash = "sha256:c1ae38500e73065dcae57355adb6278cf8b5c8e391994ae9cbadbcb9631ab409", size = 333958, upload-time = "2026-04-10T00:41:21.888Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/73/76/d241a5c927433420507215df6cac1b1fa4ac0ba7a794df42a84326c68da8/google_auth-2.49.2-py3-none-any.whl", hash = "sha256:c2720924dfc82dedb962c9f52cabb2ab16714fd0a6a707e40561d217574ed6d5", size = 240638, upload-time = "2026-04-10T00:41:14.501Z" }, -] - -[[package]] -name = "google-auth-httplib2" -version = "0.3.1" -source = { registry = "https://pypi.org/simple" } -dependencies = [ - { name = "google-auth" }, - { name = "httplib2" }, -] -sdist = { url = "https://files.pythonhosted.org/packages/ed/99/107612bef8d24b298bb5a7c8466f908ecda791d43f9466f5c3978f5b24c1/google_auth_httplib2-0.3.1.tar.gz", hash = "sha256:0af542e815784cb64159b4469aa5d71dd41069ba93effa006e1916b1dcd88e55", size = 11152, upload-time = "2026-03-30T22:50:26.766Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/97/e9/93afb14d23a949acaa3f4e7cc51a0024671174e116e35f42850764b99634/google_auth_httplib2-0.3.1-py3-none-any.whl", hash = "sha256:682356a90ef4ba3d06548c37e9112eea6fc00395a11b0303a644c1a86abc275c", size = 9534, upload-time = "2026-03-30T22:49:03.384Z" }, -] - -[[package]] -name = "google-auth-oauthlib" -version = "1.3.1" -source = { registry = "https://pypi.org/simple" } -dependencies = [ - { name = "google-auth" }, - { name = "requests-oauthlib" }, -] -sdist = { url = "https://files.pythonhosted.org/packages/a6/82/62482931dcbe5266a2680d0da17096f2aab983ecb320277d9556700ce00e/google_auth_oauthlib-1.3.1.tar.gz", hash = "sha256:14c22c7b3dd3d06dbe44264144409039465effdd1eef94f7ce3710e486cc4bfa", size = 21663, upload-time = "2026-03-30T22:49:56.408Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/2a/e0/cb454a95f460903e39f101e950038ec24a072ca69d0a294a6df625cc1627/google_auth_oauthlib-1.3.1-py3-none-any.whl", hash = "sha256:1a139ef23f1318756805b0e95f655c238bffd29655329a2978218248da4ee7f8", size = 19247, upload-time = "2026-03-30T20:02:23.894Z" }, -] - -[[package]] -name = "google-chat-skill" -version = "0.1.0" -source = { virtual = "." } -dependencies = [ - { name = "google-apps-chat" }, - { name = "google-auth" }, - { name = "google-auth-httplib2" }, - { name = "google-auth-oauthlib" }, -] - -[package.metadata] -requires-dist = [ - { name = "google-apps-chat", specifier = ">=0.1.0" }, - { name = "google-auth", specifier = ">=2.0.0" }, - { name = "google-auth-httplib2", specifier = ">=0.2.0" }, - { name = "google-auth-oauthlib", specifier = ">=1.0.0" }, -] - -[[package]] -name = "googleapis-common-protos" -version = "1.74.0" -source = { registry = "https://pypi.org/simple" } -dependencies = [ - { name = "protobuf" }, -] -sdist = { url = "https://files.pythonhosted.org/packages/20/18/a746c8344152d368a5aac738d4c857012f2c5d1fd2eac7e17b647a7861bd/googleapis_common_protos-1.74.0.tar.gz", hash = "sha256:57971e4eeeba6aad1163c1f0fc88543f965bb49129b8bb55b2b7b26ecab084f1", size = 151254, upload-time = "2026-04-02T21:23:26.679Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/b6/b0/be5d3329badb9230b765de6eea66b73abd5944bdeb5afb3562ddcd80ae84/googleapis_common_protos-1.74.0-py3-none-any.whl", hash = "sha256:702216f78610bb510e3f12ac3cafd281b7ac45cc5d86e90ad87e4d301a3426b5", size = 300743, upload-time = "2026-04-02T21:22:49.108Z" }, -] - -[[package]] -name = "grpcio" -version = "1.80.0" -source = { registry = "https://pypi.org/simple" } -dependencies = [ - { name = "typing-extensions" }, -] -sdist = { url = "https://files.pythonhosted.org/packages/b7/48/af6173dbca4454f4637a4678b67f52ca7e0c1ed7d5894d89d434fecede05/grpcio-1.80.0.tar.gz", hash = "sha256:29aca15edd0688c22ba01d7cc01cb000d72b2033f4a3c72a81a19b56fd143257", size = 12978905, upload-time = "2026-03-30T08:49:10.502Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/9d/cd/bb7b7e54084a344c03d68144450da7ddd5564e51a298ae1662de65f48e2d/grpcio-1.80.0-cp310-cp310-linux_armv7l.whl", hash = "sha256:886457a7768e408cdce226ad1ca67d2958917d306523a0e21e1a2fdaa75c9c9c", size = 6050363, upload-time = "2026-03-30T08:46:20.894Z" }, - { url = "https://files.pythonhosted.org/packages/16/02/1417f5c3460dea65f7a2e3c14e8b31e77f7ffb730e9bfadd89eda7a9f477/grpcio-1.80.0-cp310-cp310-macosx_11_0_universal2.whl", hash = "sha256:7b641fc3f1dc647bfd80bd713addc68f6d145956f64677e56d9ebafc0bd72388", size = 12026037, upload-time = "2026-03-30T08:46:25.144Z" }, - { url = "https://files.pythonhosted.org/packages/43/98/c910254eedf2cae368d78336a2de0678e66a7317d27c02522392f949b5c6/grpcio-1.80.0-cp310-cp310-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:33eb763f18f006dc7fee1e69831d38d23f5eccd15b2e0f92a13ee1d9242e5e02", size = 6602306, upload-time = "2026-03-30T08:46:27.593Z" }, - { url = "https://files.pythonhosted.org/packages/7c/f8/88ca4e78c077b2b2113d95da1e1ab43efd43d723c9a0397d26529c2c1a56/grpcio-1.80.0-cp310-cp310-manylinux2014_i686.manylinux_2_17_i686.whl", hash = "sha256:52d143637e3872633fc7dd7c3c6a1c84e396b359f3a72e215f8bf69fd82084fc", size = 7301535, upload-time = "2026-03-30T08:46:29.556Z" }, - { url = "https://files.pythonhosted.org/packages/f9/96/f28660fe2fe0f153288bf4a04e4910b7309d442395135c88ed4f5b3b8b40/grpcio-1.80.0-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:c51bf8ac4575af2e0678bccfb07e47321fc7acb5049b4482832c5c195e04e13a", size = 6808669, upload-time = "2026-03-30T08:46:31.984Z" }, - { url = "https://files.pythonhosted.org/packages/47/eb/3f68a5e955779c00aeef23850e019c1c1d0e032d90633ba49c01ad5a96e0/grpcio-1.80.0-cp310-cp310-musllinux_1_2_aarch64.whl", hash = "sha256:50a9871536d71c4fba24ee856abc03a87764570f0c457dd8db0b4018f379fed9", size = 7409489, upload-time = "2026-03-30T08:46:34.684Z" }, - { url = "https://files.pythonhosted.org/packages/5b/a7/d2f681a4bfb881be40659a309771f3bdfbfdb1190619442816c3f0ffc079/grpcio-1.80.0-cp310-cp310-musllinux_1_2_i686.whl", hash = "sha256:a72d84ad0514db063e21887fbacd1fd7acb4d494a564cae22227cd45c7fbf199", size = 8423167, upload-time = "2026-03-30T08:46:36.833Z" }, - { url = "https://files.pythonhosted.org/packages/97/8a/29b4589c204959aa35ce5708400a05bba72181807c45c47b3ec000c39333/grpcio-1.80.0-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:f7691a6788ad9196872f95716df5bc643ebba13c97140b7a5ee5c8e75d1dea81", size = 7846761, upload-time = "2026-03-30T08:46:40.091Z" }, - { url = "https://files.pythonhosted.org/packages/6b/d2/ed143e097230ee121ac5848f6ff14372dba91289b10b536d54fb1b7cbae7/grpcio-1.80.0-cp310-cp310-win32.whl", hash = "sha256:46c2390b59d67f84e882694d489f5b45707c657832d7934859ceb8c33f467069", size = 4156534, upload-time = "2026-03-30T08:46:42.026Z" }, - { url = "https://files.pythonhosted.org/packages/d5/c9/df8279bb49b29409995e95efa85b72973d62f8aeff89abee58c91f393710/grpcio-1.80.0-cp310-cp310-win_amd64.whl", hash = "sha256:dc053420fc75749c961e2a4c906398d7c15725d36ccc04ae6d16093167223b58", size = 4889869, upload-time = "2026-03-30T08:46:44.219Z" }, - { url = "https://files.pythonhosted.org/packages/5d/db/1d56e5f5823257b291962d6c0ce106146c6447f405b60b234c4f222a7cde/grpcio-1.80.0-cp311-cp311-linux_armv7l.whl", hash = "sha256:dfab85db094068ff42e2a3563f60ab3dddcc9d6488a35abf0132daec13209c8a", size = 6055009, upload-time = "2026-03-30T08:46:46.265Z" }, - { url = "https://files.pythonhosted.org/packages/6e/18/c83f3cad64c5ca63bca7e91e5e46b0d026afc5af9d0a9972472ceba294b3/grpcio-1.80.0-cp311-cp311-macosx_11_0_universal2.whl", hash = "sha256:5c07e82e822e1161354e32da2662f741a4944ea955f9f580ec8fb409dd6f6060", size = 12035295, upload-time = "2026-03-30T08:46:49.099Z" }, - { url = "https://files.pythonhosted.org/packages/0f/8e/e14966b435be2dda99fbe89db9525ea436edc79780431a1c2875a3582644/grpcio-1.80.0-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:ba0915d51fd4ced2db5ff719f84e270afe0e2d4c45a7bdb1e8d036e4502928c2", size = 6610297, upload-time = "2026-03-30T08:46:52.123Z" }, - { url = "https://files.pythonhosted.org/packages/cc/26/d5eb38f42ce0e3fdc8174ea4d52036ef8d58cc4426cb800f2610f625dd75/grpcio-1.80.0-cp311-cp311-manylinux2014_i686.manylinux_2_17_i686.whl", hash = "sha256:3cb8130ba457d2aa09fa6b7c3ed6b6e4e6a2685fce63cb803d479576c4d80e21", size = 7300208, upload-time = "2026-03-30T08:46:54.859Z" }, - { url = "https://files.pythonhosted.org/packages/25/51/bd267c989f85a17a5b3eea65a6feb4ff672af41ca614e5a0279cc0ea381c/grpcio-1.80.0-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:09e5e478b3d14afd23f12e49e8b44c8684ac3c5f08561c43a5b9691c54d136ab", size = 6813442, upload-time = "2026-03-30T08:46:57.056Z" }, - { url = "https://files.pythonhosted.org/packages/9e/d9/d80eef735b19e9169e30164bbf889b46f9df9127598a83d174eb13a48b26/grpcio-1.80.0-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:00168469238b022500e486c1c33916acf2f2a9b2c022202cf8a1885d2e3073c1", size = 7414743, upload-time = "2026-03-30T08:46:59.682Z" }, - { url = "https://files.pythonhosted.org/packages/de/f2/567f5bd5054398ed6b0509b9a30900376dcf2786bd936812098808b49d8d/grpcio-1.80.0-cp311-cp311-musllinux_1_2_i686.whl", hash = "sha256:8502122a3cc1714038e39a0b071acb1207ca7844208d5ea0d091317555ee7106", size = 8426046, upload-time = "2026-03-30T08:47:02.474Z" }, - { url = "https://files.pythonhosted.org/packages/62/29/73ef0141b4732ff5eacd68430ff2512a65c004696997f70476a83e548e7e/grpcio-1.80.0-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:ce1794f4ea6cc3ca29463f42d665c32ba1b964b48958a66497917fe9069f26e6", size = 7851641, upload-time = "2026-03-30T08:47:05.462Z" }, - { url = "https://files.pythonhosted.org/packages/46/69/abbfa360eb229a8623bab5f5a4f8105e445bd38ce81a89514ba55d281ad0/grpcio-1.80.0-cp311-cp311-win32.whl", hash = "sha256:51b4a7189b0bef2aa30adce3c78f09c83526cf3dddb24c6a96555e3b97340440", size = 4154368, upload-time = "2026-03-30T08:47:08.027Z" }, - { url = "https://files.pythonhosted.org/packages/6f/d4/ae92206d01183b08613e846076115f5ac5991bae358d2a749fa864da5699/grpcio-1.80.0-cp311-cp311-win_amd64.whl", hash = "sha256:02e64bb0bb2da14d947a49e6f120a75e947250aebe65f9629b62bb1f5c14e6e9", size = 4894235, upload-time = "2026-03-30T08:47:10.839Z" }, - { url = "https://files.pythonhosted.org/packages/5c/e8/a2b749265eb3415abc94f2e619bbd9e9707bebdda787e61c593004ec927a/grpcio-1.80.0-cp312-cp312-linux_armv7l.whl", hash = "sha256:c624cc9f1008361014378c9d776de7182b11fe8b2e5a81bc69f23a295f2a1ad0", size = 6015616, upload-time = "2026-03-30T08:47:13.428Z" }, - { url = "https://files.pythonhosted.org/packages/3e/97/b1282161a15d699d1e90c360df18d19165a045ce1c343c7f313f5e8a0b77/grpcio-1.80.0-cp312-cp312-macosx_11_0_universal2.whl", hash = "sha256:f49eddcac43c3bf350c0385366a58f36bed8cc2c0ec35ef7b74b49e56552c0c2", size = 12014204, upload-time = "2026-03-30T08:47:15.873Z" }, - { url = "https://files.pythonhosted.org/packages/6e/5e/d319c6e997b50c155ac5a8cb12f5173d5b42677510e886d250d50264949d/grpcio-1.80.0-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:d334591df610ab94714048e0d5b4f3dd5ad1bee74dfec11eee344220077a79de", size = 6563866, upload-time = "2026-03-30T08:47:18.588Z" }, - { url = "https://files.pythonhosted.org/packages/ae/f6/fdd975a2cb4d78eb67769a7b3b3830970bfa2e919f1decf724ae4445f42c/grpcio-1.80.0-cp312-cp312-manylinux2014_i686.manylinux_2_17_i686.whl", hash = "sha256:0cb517eb1d0d0aaf1d87af7cc5b801d686557c1d88b2619f5e31fab3c2315921", size = 7273060, upload-time = "2026-03-30T08:47:21.113Z" }, - { url = "https://files.pythonhosted.org/packages/db/f0/a3deb5feba60d9538a962913e37bd2e69a195f1c3376a3dd44fe0427e996/grpcio-1.80.0-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:4e78c4ac0d97dc2e569b2f4bcbbb447491167cb358d1a389fc4af71ab6f70411", size = 6782121, upload-time = "2026-03-30T08:47:23.827Z" }, - { url = "https://files.pythonhosted.org/packages/ca/84/36c6dcfddc093e108141f757c407902a05085e0c328007cb090d56646cdf/grpcio-1.80.0-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:2ed770b4c06984f3b47eb0517b1c69ad0b84ef3f40128f51448433be904634cd", size = 7383811, upload-time = "2026-03-30T08:47:26.517Z" }, - { url = "https://files.pythonhosted.org/packages/7c/ef/f3a77e3dc5b471a0ec86c564c98d6adfa3510d38f8ee99010410858d591e/grpcio-1.80.0-cp312-cp312-musllinux_1_2_i686.whl", hash = "sha256:256507e2f524092f1473071a05e65a5b10d84b82e3ff24c5b571513cfaa61e2f", size = 8393860, upload-time = "2026-03-30T08:47:29.439Z" }, - { url = "https://files.pythonhosted.org/packages/9b/8d/9d4d27ed7f33d109c50d6b5ce578a9914aa68edab75d65869a17e630a8d1/grpcio-1.80.0-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:9a6284a5d907c37db53350645567c522be314bac859a64a7a5ca63b77bb7958f", size = 7830132, upload-time = "2026-03-30T08:47:33.254Z" }, - { url = "https://files.pythonhosted.org/packages/14/e4/9990b41c6d7a44e1e9dee8ac11d7a9802ba1378b40d77468a7761d1ad288/grpcio-1.80.0-cp312-cp312-win32.whl", hash = "sha256:c71309cfce2f22be26aa4a847357c502db6c621f1a49825ae98aa0907595b193", size = 4140904, upload-time = "2026-03-30T08:47:35.319Z" }, - { url = "https://files.pythonhosted.org/packages/2f/2c/296f6138caca1f4b92a31ace4ae1b87dab692fc16a7a3417af3bb3c805bf/grpcio-1.80.0-cp312-cp312-win_amd64.whl", hash = "sha256:9fe648599c0e37594c4809d81a9e77bd138cc82eb8baa71b6a86af65426723ff", size = 4880944, upload-time = "2026-03-30T08:47:37.831Z" }, - { url = "https://files.pythonhosted.org/packages/2f/3a/7c3c25789e3f069e581dc342e03613c5b1cb012c4e8c7d9d5cf960a75856/grpcio-1.80.0-cp313-cp313-linux_armv7l.whl", hash = "sha256:e9e408fc016dffd20661f0126c53d8a31c2821b5c13c5d67a0f5ed5de93319ad", size = 6017243, upload-time = "2026-03-30T08:47:40.075Z" }, - { url = "https://files.pythonhosted.org/packages/04/19/21a9806eb8240e174fd1ab0cd5b9aa948bb0e05c2f2f55f9d5d7405e6d08/grpcio-1.80.0-cp313-cp313-macosx_11_0_universal2.whl", hash = "sha256:92d787312e613754d4d8b9ca6d3297e69994a7912a32fa38c4c4e01c272974b0", size = 12010840, upload-time = "2026-03-30T08:47:43.11Z" }, - { url = "https://files.pythonhosted.org/packages/18/3a/23347d35f76f639e807fb7a36fad3068aed100996849a33809591f26eca6/grpcio-1.80.0-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:8ac393b58aa16991a2f1144ec578084d544038c12242da3a215966b512904d0f", size = 6567644, upload-time = "2026-03-30T08:47:46.806Z" }, - { url = "https://files.pythonhosted.org/packages/ff/40/96e07ecb604a6a67ae6ab151e3e35b132875d98bc68ec65f3e5ab3e781d7/grpcio-1.80.0-cp313-cp313-manylinux2014_i686.manylinux_2_17_i686.whl", hash = "sha256:68e5851ac4b9afe07e7f84483803ad167852570d65326b34d54ca560bfa53fb6", size = 7277830, upload-time = "2026-03-30T08:47:49.643Z" }, - { url = "https://files.pythonhosted.org/packages/9b/e2/da1506ecea1f34a5e365964644b35edef53803052b763ca214ba3870c856/grpcio-1.80.0-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:873ff5d17d68992ef6605330127425d2fc4e77e612fa3c3e0ed4e668685e3140", size = 6783216, upload-time = "2026-03-30T08:47:52.817Z" }, - { url = "https://files.pythonhosted.org/packages/44/83/3b20ff58d0c3b7f6caaa3af9a4174d4023701df40a3f39f7f1c8e7c48f9d/grpcio-1.80.0-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:2bea16af2750fd0a899bf1abd9022244418b55d1f37da2202249ba4ba673838d", size = 7385866, upload-time = "2026-03-30T08:47:55.687Z" }, - { url = "https://files.pythonhosted.org/packages/47/45/55c507599c5520416de5eefecc927d6a0d7af55e91cfffb2e410607e5744/grpcio-1.80.0-cp313-cp313-musllinux_1_2_i686.whl", hash = "sha256:ba0db34f7e1d803a878284cd70e4c63cb6ae2510ba51937bf8f45ba997cefcf7", size = 8391602, upload-time = "2026-03-30T08:47:58.303Z" }, - { url = "https://files.pythonhosted.org/packages/10/bb/dd06f4c24c01db9cf11341b547d0a016b2c90ed7dbbb086a5710df7dd1d7/grpcio-1.80.0-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:8eb613f02d34721f1acf3626dfdb3545bd3c8505b0e52bf8b5710a28d02e8aa7", size = 7826752, upload-time = "2026-03-30T08:48:01.311Z" }, - { url = "https://files.pythonhosted.org/packages/f9/1e/9d67992ba23371fd63d4527096eb8c6b76d74d52b500df992a3343fd7251/grpcio-1.80.0-cp313-cp313-win32.whl", hash = "sha256:93b6f823810720912fd131f561f91f5fed0fda372b6b7028a2681b8194d5d294", size = 4142310, upload-time = "2026-03-30T08:48:04.594Z" }, - { url = "https://files.pythonhosted.org/packages/cf/e6/283326a27da9e2c3038bc93eeea36fb118ce0b2d03922a9cda6688f53c5b/grpcio-1.80.0-cp313-cp313-win_amd64.whl", hash = "sha256:e172cf795a3ba5246d3529e4d34c53db70e888fa582a8ffebd2e6e48bc0cba50", size = 4882833, upload-time = "2026-03-30T08:48:07.363Z" }, - { url = "https://files.pythonhosted.org/packages/c5/6d/e65307ce20f5a09244ba9e9d8476e99fb039de7154f37fb85f26978b59c3/grpcio-1.80.0-cp314-cp314-linux_armv7l.whl", hash = "sha256:3d4147a97c8344d065d01bbf8b6acec2cf86fb0400d40696c8bdad34a64ffc0e", size = 6017376, upload-time = "2026-03-30T08:48:10.005Z" }, - { url = "https://files.pythonhosted.org/packages/69/10/9cef5d9650c72625a699c549940f0abb3c4bfdb5ed45a5ce431f92f31806/grpcio-1.80.0-cp314-cp314-macosx_11_0_universal2.whl", hash = "sha256:d8e11f167935b3eb089ac9038e1a063e6d7dbe995c0bb4a661e614583352e76f", size = 12018133, upload-time = "2026-03-30T08:48:12.927Z" }, - { url = "https://files.pythonhosted.org/packages/04/82/983aabaad82ba26113caceeb9091706a0696b25da004fe3defb5b346e15b/grpcio-1.80.0-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:f14b618fc30de822681ee986cfdcc2d9327229dc4c98aed16896761cacd468b9", size = 6574748, upload-time = "2026-03-30T08:48:16.386Z" }, - { url = "https://files.pythonhosted.org/packages/07/d7/031666ef155aa0bf399ed7e19439656c38bbd143779ae0861b038ce82abd/grpcio-1.80.0-cp314-cp314-manylinux2014_i686.manylinux_2_17_i686.whl", hash = "sha256:4ed39fbdcf9b87370f6e8df4e39ca7b38b3e5e9d1b0013c7b6be9639d6578d14", size = 7277711, upload-time = "2026-03-30T08:48:19.627Z" }, - { url = "https://files.pythonhosted.org/packages/e8/43/f437a78f7f4f1d311804189e8f11fb311a01049b2e08557c1068d470cb2e/grpcio-1.80.0-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:2dcc70e9f0ba987526e8e8603a610fb4f460e42899e74e7a518bf3c68fe1bf05", size = 6785372, upload-time = "2026-03-30T08:48:22.373Z" }, - { url = "https://files.pythonhosted.org/packages/93/3d/f6558e9c6296cb4227faa5c43c54a34c68d32654b829f53288313d16a86e/grpcio-1.80.0-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:448c884b668b868562b1bda833c5fce6272d26e1926ec46747cda05741d302c1", size = 7395268, upload-time = "2026-03-30T08:48:25.638Z" }, - { url = "https://files.pythonhosted.org/packages/06/21/0fdd77e84720b08843c371a2efa6f2e19dbebf56adc72df73d891f5506f0/grpcio-1.80.0-cp314-cp314-musllinux_1_2_i686.whl", hash = "sha256:a1dc80fe55685b4a543555e6eef975303b36c8db1023b1599b094b92aa77965f", size = 8392000, upload-time = "2026-03-30T08:48:28.974Z" }, - { url = "https://files.pythonhosted.org/packages/f5/68/67f4947ed55d2e69f2cc199ab9fd85e0a0034d813bbeef84df6d2ba4d4b7/grpcio-1.80.0-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:31b9ac4ad1aa28ffee5503821fafd09e4da0a261ce1c1281c6c8da0423c83b6e", size = 7828477, upload-time = "2026-03-30T08:48:32.054Z" }, - { url = "https://files.pythonhosted.org/packages/44/b6/8d4096691b2e385e8271911a0de4f35f0a6c7d05aff7098e296c3de86939/grpcio-1.80.0-cp314-cp314-win32.whl", hash = "sha256:367ce30ba67d05e0592470428f0ec1c31714cab9ef19b8f2e37be1f4c7d32fae", size = 4218563, upload-time = "2026-03-30T08:48:34.538Z" }, - { url = "https://files.pythonhosted.org/packages/e5/8c/bbe6baf2557262834f2070cf668515fa308b2d38a4bbf771f8f7872a7036/grpcio-1.80.0-cp314-cp314-win_amd64.whl", hash = "sha256:3b01e1f5464c583d2f567b2e46ff0d516ef979978f72091fd81f5ab7fa6e2e7f", size = 5019457, upload-time = "2026-03-30T08:48:37.308Z" }, - { url = "https://files.pythonhosted.org/packages/08/58/7151ffa07cb3faf4bdd1a1902c067d2d162a4ba24678afd2ad5084a42382/grpcio-1.80.0-cp39-cp39-linux_armv7l.whl", hash = "sha256:aacdfb4ed3eb919ca997504d27e03d5dba403c85130b8ed450308590a738f7a4", size = 6048562, upload-time = "2026-03-30T08:48:40.068Z" }, - { url = "https://files.pythonhosted.org/packages/40/58/0287051dc65c2760155977d9775d1f3c87939e4d575a29aac40f9006b357/grpcio-1.80.0-cp39-cp39-macosx_11_0_universal2.whl", hash = "sha256:a361c20ec1ccd3c3953d20fb6d7b4125093bdd10dff44c5e2bbb39e58917cedc", size = 12031536, upload-time = "2026-03-30T08:48:43.031Z" }, - { url = "https://files.pythonhosted.org/packages/7b/62/8fc355ffcc9fd8a3ca0438f007307c130dfb93949d3138cd23c8c9f434e8/grpcio-1.80.0-cp39-cp39-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:43168871f170d1e4ed16ae03d10cd21efa29f190e710a624cee7e5ae07da6f4f", size = 6602175, upload-time = "2026-03-30T08:48:46.099Z" }, - { url = "https://files.pythonhosted.org/packages/12/cb/3efd0b505090804dfe88bf258ed26a6fb19ccbb31889a05b9edb3ae035fe/grpcio-1.80.0-cp39-cp39-manylinux2014_i686.manylinux_2_17_i686.whl", hash = "sha256:1b97cd29a8eda100b559b455331c487a80915b6ea6bd91cf3e89836c4ee8d957", size = 7299777, upload-time = "2026-03-30T08:48:48.848Z" }, - { url = "https://files.pythonhosted.org/packages/54/b1/50fdb826acafd5ac661e10df25b089721172530f2eb4aa1f36bd3c3d4254/grpcio-1.80.0-cp39-cp39-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:bac1d573dfa84ce59a5547073e28fa7326d53352adda6912e362da0b917fcef4", size = 6808790, upload-time = "2026-03-30T08:48:51.625Z" }, - { url = "https://files.pythonhosted.org/packages/60/29/41e9ed0bb5544836bb2685097beea972b0cabc8970aeaace0f152bfc5441/grpcio-1.80.0-cp39-cp39-musllinux_1_2_aarch64.whl", hash = "sha256:4560cf0e86514595dbbd330cd65b7afad4b5c4b8c4905c041cfffa138d45e6fd", size = 7410605, upload-time = "2026-03-30T08:48:54.466Z" }, - { url = "https://files.pythonhosted.org/packages/41/ad/889f0dfbc8a08050db6e23c3180dbe712b03af490352a4d7df649db26bc8/grpcio-1.80.0-cp39-cp39-musllinux_1_2_i686.whl", hash = "sha256:ec0a592e926071b4abad50c1495cd0d0d513324b3ff5e7267067c33ba27506e4", size = 8423134, upload-time = "2026-03-30T08:48:57.71Z" }, - { url = "https://files.pythonhosted.org/packages/3d/76/f44d853f38165d26a309565da31a312587dda668e9e7b5323179b87bcab4/grpcio-1.80.0-cp39-cp39-musllinux_1_2_x86_64.whl", hash = "sha256:deb10a1528473c11f72a0939eed36d83e847d7cbb63e8cc5611fb7a912d38614", size = 7846917, upload-time = "2026-03-30T08:49:00.969Z" }, - { url = "https://files.pythonhosted.org/packages/74/fe/99c56d12b48f8c8b0d28c42edfb171642eb52dd90a0fe7bc74676909fa97/grpcio-1.80.0-cp39-cp39-win32.whl", hash = "sha256:627fb7312171cdc52828bd6fac8d7028ff2a64b89f1957b6f3416caa2218d141", size = 4157647, upload-time = "2026-03-30T08:49:04.196Z" }, - { url = "https://files.pythonhosted.org/packages/e6/ff/33f6a8823f06c6a1d1f530c1531e563b76c02091525e36255c08575ae775/grpcio-1.80.0-cp39-cp39-win_amd64.whl", hash = "sha256:05d55e1798756282cddd52d56c896b3e7d673e3a8798c2f1cd05ba249a3bb4de", size = 4892359, upload-time = "2026-03-30T08:49:06.902Z" }, -] - -[[package]] -name = "grpcio-status" -version = "1.80.0" -source = { registry = "https://pypi.org/simple" } -dependencies = [ - { name = "googleapis-common-protos" }, - { name = "grpcio" }, - { name = "protobuf" }, -] -sdist = { url = "https://files.pythonhosted.org/packages/b1/ed/105f619bdd00cb47a49aa2feea6232ea2bbb04199d52a22cc6a7d603b5cb/grpcio_status-1.80.0.tar.gz", hash = "sha256:df73802a4c89a3ea88aa2aff971e886fccce162bc2e6511408b3d67a144381cd", size = 13901, upload-time = "2026-03-30T08:54:34.784Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/76/80/58cd2dfc19a07d022abe44bde7c365627f6c7cb6f692ada6c65ca437d09a/grpcio_status-1.80.0-py3-none-any.whl", hash = "sha256:4b56990363af50dbf2c2ebb80f1967185c07d87aa25aa2bea45ddb75fc181dbe", size = 14638, upload-time = "2026-03-30T08:54:01.569Z" }, -] - -[[package]] -name = "httplib2" -version = "0.31.2" -source = { registry = "https://pypi.org/simple" } -dependencies = [ - { name = "pyparsing" }, -] -sdist = { url = "https://files.pythonhosted.org/packages/c1/1f/e86365613582c027dda5ddb64e1010e57a3d53e99ab8a72093fa13d565ec/httplib2-0.31.2.tar.gz", hash = "sha256:385e0869d7397484f4eab426197a4c020b606edd43372492337c0b4010ae5d24", size = 250800, upload-time = "2026-01-23T11:04:44.165Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/2f/90/fd509079dfcab01102c0fdd87f3a9506894bc70afcf9e9785ef6b2b3aff6/httplib2-0.31.2-py3-none-any.whl", hash = "sha256:dbf0c2fa3862acf3c55c078ea9c0bc4481d7dc5117cae71be9514912cf9f8349", size = 91099, upload-time = "2026-01-23T11:04:42.78Z" }, -] - -[[package]] -name = "idna" -version = "3.13" -source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/ce/cc/762dfb036166873f0059f3b7de4565e1b5bc3d6f28a414c13da27e442f99/idna-3.13.tar.gz", hash = "sha256:585ea8fe5d69b9181ec1afba340451fba6ba764af97026f92a91d4eef164a242", size = 194210, upload-time = "2026-04-22T16:42:42.314Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/5d/13/ad7d7ca3808a898b4612b6fe93cde56b53f3034dcde235acb1f0e1df24c6/idna-3.13-py3-none-any.whl", hash = "sha256:892ea0cde124a99ce773decba204c5552b69c3c67ffd5f232eb7696135bc8bb3", size = 68629, upload-time = "2026-04-22T16:42:40.909Z" }, -] - -[[package]] -name = "oauthlib" -version = "3.3.1" -source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/0b/5f/19930f824ffeb0ad4372da4812c50edbd1434f678c90c2733e1188edfc63/oauthlib-3.3.1.tar.gz", hash = "sha256:0f0f8aa759826a193cf66c12ea1af1637f87b9b4622d46e866952bb022e538c9", size = 185918, upload-time = "2025-06-19T22:48:08.269Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/be/9c/92789c596b8df838baa98fa71844d84283302f7604ed565dafe5a6b5041a/oauthlib-3.3.1-py3-none-any.whl", hash = "sha256:88119c938d2b8fb88561af5f6ee0eec8cc8d552b7bb1f712743136eb7523b7a1", size = 160065, upload-time = "2025-06-19T22:48:06.508Z" }, -] - -[[package]] -name = "proto-plus" -version = "1.27.2" -source = { registry = "https://pypi.org/simple" } -dependencies = [ - { name = "protobuf" }, -] -sdist = { url = "https://files.pythonhosted.org/packages/81/0d/94dfe80193e79d55258345901acd2917523d56e8381bc4dee7fd38e3868a/proto_plus-1.27.2.tar.gz", hash = "sha256:b2adde53adadf75737c44d3dcb0104fde65250dfc83ad59168b4aa3e574b6a24", size = 57204, upload-time = "2026-03-26T22:18:57.174Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/84/f3/1fba73eeffafc998a25d59703b63f8be4fe8a5cb12eaff7386a0ba0f7125/proto_plus-1.27.2-py3-none-any.whl", hash = "sha256:6432f75893d3b9e70b9c412f1d2f03f65b11fb164b793d14ae2ca01821d22718", size = 50450, upload-time = "2026-03-26T22:13:42.927Z" }, -] - -[[package]] -name = "protobuf" -version = "6.33.6" -source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/66/70/e908e9c5e52ef7c3a6c7902c9dfbb34c7e29c25d2f81ade3856445fd5c94/protobuf-6.33.6.tar.gz", hash = "sha256:a6768d25248312c297558af96a9f9c929e8c4cee0659cb07e780731095f38135", size = 444531, upload-time = "2026-03-18T19:05:00.988Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/fc/9f/2f509339e89cfa6f6a4c4ff50438db9ca488dec341f7e454adad60150b00/protobuf-6.33.6-cp310-abi3-win32.whl", hash = "sha256:7d29d9b65f8afef196f8334e80d6bc1d5d4adedb449971fefd3723824e6e77d3", size = 425739, upload-time = "2026-03-18T19:04:48.373Z" }, - { url = "https://files.pythonhosted.org/packages/76/5d/683efcd4798e0030c1bab27374fd13a89f7c2515fb1f3123efdfaa5eab57/protobuf-6.33.6-cp310-abi3-win_amd64.whl", hash = "sha256:0cd27b587afca21b7cfa59a74dcbd48a50f0a6400cfb59391340ad729d91d326", size = 437089, upload-time = "2026-03-18T19:04:50.381Z" }, - { url = "https://files.pythonhosted.org/packages/5c/01/a3c3ed5cd186f39e7880f8303cc51385a198a81469d53d0fdecf1f64d929/protobuf-6.33.6-cp39-abi3-macosx_10_9_universal2.whl", hash = "sha256:9720e6961b251bde64edfdab7d500725a2af5280f3f4c87e57c0208376aa8c3a", size = 427737, upload-time = "2026-03-18T19:04:51.866Z" }, - { url = "https://files.pythonhosted.org/packages/ee/90/b3c01fdec7d2f627b3a6884243ba328c1217ed2d978def5c12dc50d328a3/protobuf-6.33.6-cp39-abi3-manylinux2014_aarch64.whl", hash = "sha256:e2afbae9b8e1825e3529f88d514754e094278bb95eadc0e199751cdd9a2e82a2", size = 324610, upload-time = "2026-03-18T19:04:53.096Z" }, - { url = "https://files.pythonhosted.org/packages/9b/ca/25afc144934014700c52e05103c2421997482d561f3101ff352e1292fb81/protobuf-6.33.6-cp39-abi3-manylinux2014_s390x.whl", hash = "sha256:c96c37eec15086b79762ed265d59ab204dabc53056e3443e702d2681f4b39ce3", size = 339381, upload-time = "2026-03-18T19:04:54.616Z" }, - { url = "https://files.pythonhosted.org/packages/16/92/d1e32e3e0d894fe00b15ce28ad4944ab692713f2e7f0a99787405e43533a/protobuf-6.33.6-cp39-abi3-manylinux2014_x86_64.whl", hash = "sha256:e9db7e292e0ab79dd108d7f1a94fe31601ce1ee3f7b79e0692043423020b0593", size = 323436, upload-time = "2026-03-18T19:04:55.768Z" }, - { url = "https://files.pythonhosted.org/packages/0c/bd/88a687e9147329fc7e6c26a058fc52214c47190688a496bb283000a4d2a3/protobuf-6.33.6-cp39-cp39-win32.whl", hash = "sha256:bd56799fb262994b2c2faa1799693c95cc2e22c62f56fb43af311cae45d26f0e", size = 425861, upload-time = "2026-03-18T19:04:57.064Z" }, - { url = "https://files.pythonhosted.org/packages/84/d6/fab384eea064bfc3b273183e4e09bb3a3cf4ec83876b3828c09fcacbb651/protobuf-6.33.6-cp39-cp39-win_amd64.whl", hash = "sha256:f443a394af5ed23672bc6c486be138628fbe5c651ccbc536873d7da23d1868cf", size = 437109, upload-time = "2026-03-18T19:04:58.713Z" }, - { url = "https://files.pythonhosted.org/packages/c4/72/02445137af02769918a93807b2b7890047c32bfb9f90371cbc12688819eb/protobuf-6.33.6-py3-none-any.whl", hash = "sha256:77179e006c476e69bf8e8ce866640091ec42e1beb80b213c3900006ecfba6901", size = 170656, upload-time = "2026-03-18T19:04:59.826Z" }, -] - -[[package]] -name = "pyasn1" -version = "0.6.3" -source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/5c/5f/6583902b6f79b399c9c40674ac384fd9cd77805f9e6205075f828ef11fb2/pyasn1-0.6.3.tar.gz", hash = "sha256:697a8ecd6d98891189184ca1fa05d1bb00e2f84b5977c481452050549c8a72cf", size = 148685, upload-time = "2026-03-17T01:06:53.382Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/5d/a0/7d793dce3fa811fe047d6ae2431c672364b462850c6235ae306c0efd025f/pyasn1-0.6.3-py3-none-any.whl", hash = "sha256:a80184d120f0864a52a073acc6fc642847d0be408e7c7252f31390c0f4eadcde", size = 83997, upload-time = "2026-03-17T01:06:52.036Z" }, -] - -[[package]] -name = "pyasn1-modules" -version = "0.4.2" -source = { registry = "https://pypi.org/simple" } -dependencies = [ - { name = "pyasn1" }, -] -sdist = { url = "https://files.pythonhosted.org/packages/e9/e6/78ebbb10a8c8e4b61a59249394a4a594c1a7af95593dc933a349c8d00964/pyasn1_modules-0.4.2.tar.gz", hash = "sha256:677091de870a80aae844b1ca6134f54652fa2c8c5a52aa396440ac3106e941e6", size = 307892, upload-time = "2025-03-28T02:41:22.17Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/47/8d/d529b5d697919ba8c11ad626e835d4039be708a35b0d22de83a269a6682c/pyasn1_modules-0.4.2-py3-none-any.whl", hash = "sha256:29253a9207ce32b64c3ac6600edc75368f98473906e8fd1043bd6b5b1de2c14a", size = 181259, upload-time = "2025-03-28T02:41:19.028Z" }, -] - -[[package]] -name = "pycparser" -version = "2.23" -source = { registry = "https://pypi.org/simple" } -resolution-markers = [ - "python_full_version < '3.10'", -] -sdist = { url = "https://files.pythonhosted.org/packages/fe/cf/d2d3b9f5699fb1e4615c8e32ff220203e43b248e1dfcc6736ad9057731ca/pycparser-2.23.tar.gz", hash = "sha256:78816d4f24add8f10a06d6f05b4d424ad9e96cfebf68a4ddc99c65c0720d00c2", size = 173734, upload-time = "2025-09-09T13:23:47.91Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/a0/e3/59cd50310fc9b59512193629e1984c1f95e5c8ae6e5d8c69532ccc65a7fe/pycparser-2.23-py3-none-any.whl", hash = "sha256:e5c6e8d3fbad53479cab09ac03729e0a9faf2bee3db8208a550daf5af81a5934", size = 118140, upload-time = "2025-09-09T13:23:46.651Z" }, -] - -[[package]] -name = "pycparser" -version = "3.0" -source = { registry = "https://pypi.org/simple" } -resolution-markers = [ - "python_full_version >= '3.14'", - "python_full_version == '3.13.*'", - "python_full_version >= '3.11' and python_full_version < '3.13'", - "python_full_version == '3.10.*'", -] -sdist = { url = "https://files.pythonhosted.org/packages/1b/7d/92392ff7815c21062bea51aa7b87d45576f649f16458d78b7cf94b9ab2e6/pycparser-3.0.tar.gz", hash = "sha256:600f49d217304a5902ac3c37e1281c9fe94e4d0489de643a9504c5cdfdfc6b29", size = 103492, upload-time = "2026-01-21T14:26:51.89Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/0c/c3/44f3fbbfa403ea2a7c779186dc20772604442dde72947e7d01069cbe98e3/pycparser-3.0-py3-none-any.whl", hash = "sha256:b727414169a36b7d524c1c3e31839a521725078d7b2ff038656844266160a992", size = 48172, upload-time = "2026-01-21T14:26:50.693Z" }, -] - -[[package]] -name = "pyparsing" -version = "3.3.2" -source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/f3/91/9c6ee907786a473bf81c5f53cf703ba0957b23ab84c264080fb5a450416f/pyparsing-3.3.2.tar.gz", hash = "sha256:c777f4d763f140633dcb6d8a3eda953bf7a214dc4eff598413c070bcdc117cbc", size = 6851574, upload-time = "2026-01-21T03:57:59.36Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/10/bd/c038d7cc38edc1aa5bf91ab8068b63d4308c66c4c8bb3cbba7dfbc049f9c/pyparsing-3.3.2-py3-none-any.whl", hash = "sha256:850ba148bd908d7e2411587e247a1e4f0327839c40e2e5e6d05a007ecc69911d", size = 122781, upload-time = "2026-01-21T03:57:55.912Z" }, -] - -[[package]] -name = "requests" -version = "2.32.5" -source = { registry = "https://pypi.org/simple" } -resolution-markers = [ - "python_full_version < '3.10'", -] -dependencies = [ - { name = "certifi", marker = "python_full_version < '3.10'" }, - { name = "charset-normalizer", marker = "python_full_version < '3.10'" }, - { name = "idna", marker = "python_full_version < '3.10'" }, - { name = "urllib3", marker = "python_full_version < '3.10'" }, -] -sdist = { url = "https://files.pythonhosted.org/packages/c9/74/b3ff8e6c8446842c3f5c837e9c3dfcfe2018ea6ecef224c710c85ef728f4/requests-2.32.5.tar.gz", hash = "sha256:dbba0bac56e100853db0ea71b82b4dfd5fe2bf6d3754a8893c3af500cec7d7cf", size = 134517, upload-time = "2025-08-18T20:46:02.573Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/1e/db/4254e3eabe8020b458f1a747140d32277ec7a271daf1d235b70dc0b4e6e3/requests-2.32.5-py3-none-any.whl", hash = "sha256:2462f94637a34fd532264295e186976db0f5d453d1cdd31473c85a6a161affb6", size = 64738, upload-time = "2025-08-18T20:46:00.542Z" }, -] - -[[package]] -name = "requests" -version = "2.33.1" -source = { registry = "https://pypi.org/simple" } -resolution-markers = [ - "python_full_version >= '3.14'", - "python_full_version == '3.13.*'", - "python_full_version >= '3.11' and python_full_version < '3.13'", - "python_full_version == '3.10.*'", -] -dependencies = [ - { name = "certifi", marker = "python_full_version >= '3.10'" }, - { name = "charset-normalizer", marker = "python_full_version >= '3.10'" }, - { name = "idna", marker = "python_full_version >= '3.10'" }, - { name = "urllib3", marker = "python_full_version >= '3.10'" }, -] -sdist = { url = "https://files.pythonhosted.org/packages/5f/a4/98b9c7c6428a668bf7e42ebb7c79d576a1c3c1e3ae2d47e674b468388871/requests-2.33.1.tar.gz", hash = "sha256:18817f8c57c6263968bc123d237e3b8b08ac046f5456bd1e307ee8f4250d3517", size = 134120, upload-time = "2026-03-30T16:09:15.531Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/d7/8e/7540e8a2036f79a125c1d2ebadf69ed7901608859186c856fa0388ef4197/requests-2.33.1-py3-none-any.whl", hash = "sha256:4e6d1ef462f3626a1f0a0a9c42dd93c63bad33f9f1c1937509b8c5c8718ab56a", size = 64947, upload-time = "2026-03-30T16:09:13.83Z" }, -] - -[[package]] -name = "requests-oauthlib" -version = "2.0.0" -source = { registry = "https://pypi.org/simple" } -dependencies = [ - { name = "oauthlib" }, - { name = "requests", version = "2.32.5", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version < '3.10'" }, - { name = "requests", version = "2.33.1", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version >= '3.10'" }, -] -sdist = { url = "https://files.pythonhosted.org/packages/42/f2/05f29bc3913aea15eb670be136045bf5c5bbf4b99ecb839da9b422bb2c85/requests-oauthlib-2.0.0.tar.gz", hash = "sha256:b3dffaebd884d8cd778494369603a9e7b58d29111bf6b41bdc2dcd87203af4e9", size = 55650, upload-time = "2024-03-22T20:32:29.939Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/3b/5d/63d4ae3b9daea098d5d6f5da83984853c1bbacd5dc826764b249fe119d24/requests_oauthlib-2.0.0-py2.py3-none-any.whl", hash = "sha256:7dd8a5c40426b779b0868c404bdef9768deccf22749cde15852df527e6269b36", size = 24179, upload-time = "2024-03-22T20:32:28.055Z" }, -] - -[[package]] -name = "typing-extensions" -version = "4.15.0" -source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/72/94/1a15dd82efb362ac84269196e94cf00f187f7ed21c242792a923cdb1c61f/typing_extensions-4.15.0.tar.gz", hash = "sha256:0cea48d173cc12fa28ecabc3b837ea3cf6f38c6d1136f85cbaaf598984861466", size = 109391, upload-time = "2025-08-25T13:49:26.313Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/18/67/36e9267722cc04a6b9f15c7f3441c2363321a3ea07da7ae0c0707beb2a9c/typing_extensions-4.15.0-py3-none-any.whl", hash = "sha256:f0fa19c6845758ab08074a0cfa8b7aecb71c999ca73d62883bc25cc018c4e548", size = 44614, upload-time = "2025-08-25T13:49:24.86Z" }, -] - -[[package]] -name = "urllib3" -version = "2.6.3" -source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/c7/24/5f1b3bdffd70275f6661c76461e25f024d5a38a46f04aaca912426a2b1d3/urllib3-2.6.3.tar.gz", hash = "sha256:1b62b6884944a57dbe321509ab94fd4d3b307075e0c2eae991ac71ee15ad38ed", size = 435556, upload-time = "2026-01-07T16:24:43.925Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/39/08/aaaad47bc4e9dc8c725e68f9d04865dbcb2052843ff09c97b08904852d84/urllib3-2.6.3-py3-none-any.whl", hash = "sha256:bf272323e553dfb2e87d9bfd225ca7b0f467b919d7bbd355436d3fd37cb0acd4", size = 131584, upload-time = "2026-01-07T16:24:42.685Z" }, -] diff --git a/plugins/ndf-shared/skills/knowledge-reorg/SKILL.md b/plugins/ndf-shared/skills/knowledge-reorg/SKILL.md deleted file mode 100644 index 1541f052..00000000 --- a/plugins/ndf-shared/skills/knowledge-reorg/SKILL.md +++ /dev/null @@ -1,269 +0,0 @@ ---- -name: knowledge-reorg -description: "Reorganize AGENTS, docs, and Skills knowledge." -argument-hint: "[--target AGENTS.md|skills|docs|all] [--dry-run] [--migrate-memory]" -disable-model-invocation: true -allowed-tools: - - Bash - - Read - - Write - - Edit - - Glob - - Grep - - AskUserQuestion - - Task ---- - -# Knowledge Reorg Command - -AGENTS.md・Skills・docsを「AI Agent Knowledge Architecture Policy」に基づいて分析・整理する。 - -## 入力 - -$ARGUMENTS - -## ポリシー(AI Agent Knowledge Architecture) - -知識を以下の3層に分離する。**実際のパスはリポジトリやAIエージェントごとに異なる。** - -| 層 | 役割 | -|----|------| -| エントリポイント | ナビゲーション + ポリシー(軽量、300行以下推奨) | -| ドキュメント | リポジトリ知識(アーキテクチャ、モジュール説明、依存関係) | -| スキル | 実行可能なワークフロー(手順、コマンド、チェックリスト) | - -### マルチエージェント対応戦略 - -**推奨**: `AGENTS.md`を共通エントリポイントとし、各エージェント固有ファイルからインポートで参照する。 - -``` -AGENTS.md ← 共通エントリポイント(本体) -.claude/CLAUDE.md ← @../AGENTS.md でインポート -.gemini/GEMINI.md ← @../AGENTS.md でインポート -(Codex CLI) ← AGENTS.md を直接読込(設定不要) -(Kiro CLI) ← AGENTS.md を直接読込(設定不要) -``` - -#### エージェント固有ファイルの設定例 - -**Claude Code** (`.claude/CLAUDE.md`): -```markdown -@../AGENTS.md -``` - -**Gemini CLI** (`.gemini/GEMINI.md`): -```markdown -@../AGENTS.md -``` -または`.gemini/settings.json`で: -```json -{ "context": { "fileName": ["AGENTS.md", "GEMINI.md"] } } -``` - -**Codex CLI / Kiro CLI**: `AGENTS.md`をネイティブに読込。追加設定不要。 - -#### エージェント別ファイル配置リファレンス - -##### エントリポイント - -| エージェント | 固有ファイル | グローバル | AGENTS.md | -|-------------|------------|-----------|-----------| -| Claude Code | `.claude/CLAUDE.md` | `~/.claude/CLAUDE.md` | `@../AGENTS.md`でインポート | -| Kiro CLI | `.kiro/steering/*.md` | `~/.kiro/steering/*.md` | 直接読込 | -| Codex CLI | なし(AGENTS.md標準) | `~/.codex/AGENTS.md` | 直接読込 | -| Gemini CLI | `.gemini/GEMINI.md` | `~/.gemini/GEMINI.md` | `@../AGENTS.md`でインポート or settings.json | - -**補足**: -- Kiro CLIはsteering体系(`product.md`/`tech.md`/`structure.md`)で構造化指示を管理 -- Codex CLIは`AGENTS.override.md`による上書き機構あり -- Gemini CLIは`@`構文でネストインポート対応(循環検出あり、最大深度5) - -##### スキル配置 - -| エージェント | プロジェクト | ユーザー | -|-------------|------------|---------| -| Claude Code | `.claude/skills//SKILL.md` | `~/.claude/skills//SKILL.md` | -| Kiro CLI | `.kiro/skills//SKILL.md` | なし(エージェント経由) | -| Codex CLI | `.agents/skills//SKILL.md` | `~/.agents/skills//SKILL.md` | -| Gemini CLI | `.agents/skills//SKILL.md` or `.gemini/skills//SKILL.md` | `~/.agents/skills//SKILL.md` or `~/.gemini/skills//SKILL.md` | - -**共通**: 全エージェントが`SKILL.md`ファイルを採用(Agent Skillsオープンスタンダードに収束傾向)。 - -##### ドキュメント - -ドキュメントディレクトリはエージェント標準では規定されていない。`docs/`が一般的な慣例。 - -### 0) パス検出(実行時に最初に行う) - -整理を始める前に、対象リポジトリで以下を検出する: - -1. **エントリポイント**: 上表を参考に、存在するファイルを特定(複数エージェント対応の場合はすべて列挙) -2. **ドキュメントディレクトリ**: `docs/`が存在するか、なければ作成先を提案 -3. **スキルディレクトリ**: 上表を参考に、存在するディレクトリを特定 -4. **対象エージェント**: どのエージェント向けに整理するかを確認 - -検出結果を`AskUserQuestion`でユーザーに確認し、以降の作業で使用する。 - -### エントリポイントに含めるべきもの - -- リポジトリ概要 -- ドキュメントへのナビゲーション -- エージェント行動ルール -- スキルへの参照 - -### エントリポイントに含めてはいけないもの - -- 詳細なアーキテクチャ説明 -- データベーススキーマ -- 長い説明文 -- 運用手順(スキルへ) - -### ドキュメントに含めるべきもの - -- システムアーキテクチャ -- リポジトリ構造の説明 -- モジュール説明 -- 依存関係 -- インフラ概要 -- 設計思想 - -### スキルに含めるべきもの - -- ステップバイステップの手順 -- 実行コマンド -- バリデーションルール -- チェックリスト - -## 手順 - -### 1) 現状分析 - -まず「0) パス検出」でエントリポイント・ドキュメントディレクトリ・スキルディレクトリを特定した上で、以下を分析する: - -1. **エントリポイントの行数とトークン概算を計測** - - 300行以上なら「肥大化」と判定 - - 含まれている情報の種類を分類(ナビゲーション/知識/手順/ポリシー) - -2. **ドキュメントディレクトリの状態を確認** - - 存在するか - - どの程度の知識が格納されているか - -3. **スキルディレクトリの状態を確認** - - 各スキルの役割分類 - - 知識がスキルに混入していないか - -4. **Serena memoryの状態を確認**(`--migrate-memory`指定時) - - `.serena/memories/`の内容を一覧 - - 各メモリーの分類(知識→ドキュメント / 手順→スキル / 一時的→削除候補) - -### 2) 分析レポート作成 - -以下の形式でユーザーに報告する: - -```markdown -## 現状分析レポート - -### エントリポイント({検出したファイル名}) -- 行数: X行(目標: 300行以下) -- 状態: 適正 / 肥大化 -- 含まれる情報の内訳: - - ナビゲーション: X行 - - 知識(ドキュメント移動候補): X行 - - 手順(スキル移動候補): X行 - - ポリシー: X行 - -### ドキュメント({検出したパス}) -- 状態: 未作成 / 不足 / 適正 -- 不足している知識: [リスト] - -### スキル({検出したパス}) -- 状態: 適正 / 知識混入あり -- 問題のあるスキル: [リスト] - -### Serena Memory(該当時) -- 移行対象: X件 - - ドキュメント移動: X件 - - スキル移動: X件 - - 削除候補: X件 -``` - -### 3) 整理計画の提案 - -`AskUserQuestion`で以下を確認: - -1. **対象スコープ**: AGENTS.md / skills / docs / all -2. **実行モード**: dry-run(レポートのみ) / 実行(実際に変更) -3. **Serena memory移行**: する / しない - -### 4) 実行(dry-runでない場合) - -#### エントリポイント整理 -- 詳細な知識をドキュメントディレクトリに抽出 -- 手順をスキルディレクトリに抽出 -- エントリポイントをナビゲーション+ポリシーのみに圧縮 -- ドキュメントへのリンクを追加 - -#### ドキュメント整理 -- 必要なサブディレクトリを作成(architecture/, modules/など) -- エントリポイントから抽出した知識を配置 -- Serena memoryから移行(該当時) - -#### スキル整理 -- 知識が混入しているスキルを特定 -- 知識部分をドキュメントに抽出し、スキルからはリンク参照に変更 - -#### Serena memory移行(該当時) -以下のルールで再配置: - -| Memory種別 | 移行先 | -|-----------|--------| -| リポジトリ構造 | ドキュメント | -| アーキテクチャ説明 | ドキュメント | -| モジュール説明 | ドキュメント | -| 依存関係 | ドキュメント | -| エージェント手順 | スキル | -| 一時的な調査結果 | 削除 | -| タスク履歴 | 削除 | - -### 5) 検証 - -整理後に以下を検証: -- エントリポイントが300行以下か -- 3層構造(エントリポイント/ドキュメント/スキル)が守られているか -- リンク切れがないか -- マルチエージェント互換性(Claude Code, Codex CLI, Gemini CLI, Kiro) - -### 6) 完了報告 - -```markdown -## 整理完了レポート - -### 変更サマリー -- エントリポイント: X行 → Y行(Z行削減) -- ドキュメント: X件のファイルを追加/更新 -- スキル: X件のスキルを整理 -- Serena memory: X件を移行、Y件を削除候補 - -### 作成/変更したファイル -- [ファイル一覧] - -### 次のステップ -- [ ] 変更内容のレビュー -- [ ] 不要なSerena memoryの削除(手動確認推奨) -- [ ] コミット&PR作成(`/ndf:pr`) -``` - -## マルチエージェント互換性 - -整理時は以下を遵守: -- ツール固有のフォーマットを避ける -- Serena固有の知識ストレージに依存しない -- プレーンMarkdownを使用(図はmermaidで記述) -- 安定したディレクトリ構造を維持 - -## 注意事項 - -- `--dry-run`指定時はレポートのみ出力し、ファイルを変更しない -- 大規模な変更前は必ずユーザー確認を取る -- 既存のリンクやパス参照を壊さないよう注意する -- AGENTS.md内のClaude Code固有設定(CLAUDE.md参照など)は保持する diff --git a/plugins/ndf-shared/skills/logging-guidelines/SKILL.md b/plugins/ndf-shared/skills/logging-guidelines/SKILL.md index 007b9691..3ad64b34 100644 --- a/plugins/ndf-shared/skills/logging-guidelines/SKILL.md +++ b/plugins/ndf-shared/skills/logging-guidelines/SKILL.md @@ -1,7 +1,19 @@ --- name: logging-guidelines -description: "Design safe and useful application logging." -when_to_use: "コードにログを追加・修正・整理するとき。Triggers: 'ログ追加', 'log追加', 'logger', 'logging', 'ログレベル', 'log level', 'デバッグログ', 'エラーログ', 'logger.info', 'logger.error', 'print文をログに'" +description: "Choose log levels and write safe, useful application logs when adding or reworking logging in code(ログ追加 / logger / ログレベル / デバッグログ / エラーログ / print文をログに). Use when editing source code that emits logs, to pick the level and keep secrets and personal data out of the output." +paths: + - "**/*.py" + - "**/*.ts" + - "**/*.tsx" + - "**/*.js" + - "**/*.jsx" + - "**/*.go" + - "**/*.rb" + - "**/*.java" + - "**/*.kt" + - "**/*.php" + - "**/*.rs" + - "**/*.sh" --- # ログ運用ガイドライン diff --git a/plugins/ndf-shared/skills/mcp-builder/LICENSE.txt b/plugins/ndf-shared/skills/mcp-builder/LICENSE.txt deleted file mode 100644 index 4f881c52..00000000 --- a/plugins/ndf-shared/skills/mcp-builder/LICENSE.txt +++ /dev/null @@ -1,202 +0,0 @@ - - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "[]" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright 2026 Anthropic, PBC. - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. \ No newline at end of file diff --git a/plugins/ndf-shared/skills/mcp-builder/SKILL.md b/plugins/ndf-shared/skills/mcp-builder/SKILL.md deleted file mode 100644 index 1290f77e..00000000 --- a/plugins/ndf-shared/skills/mcp-builder/SKILL.md +++ /dev/null @@ -1,236 +0,0 @@ ---- -name: mcp-builder -description: "Build high-quality MCP servers." -license: Complete terms in LICENSE.txt ---- - -# MCP Server Development Guide - -## Overview - -Create MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. The quality of an MCP server is measured by how well it enables LLMs to accomplish real-world tasks. - ---- - -# Process - -## 🚀 High-Level Workflow - -Creating a high-quality MCP server involves four main phases: - -### Phase 1: Deep Research and Planning - -#### 1.1 Understand Modern MCP Design - -**API Coverage vs. Workflow Tools:** -Balance comprehensive API endpoint coverage with specialized workflow tools. Workflow tools can be more convenient for specific tasks, while comprehensive coverage gives agents flexibility to compose operations. Performance varies by client—some clients benefit from code execution that combines basic tools, while others work better with higher-level workflows. When uncertain, prioritize comprehensive API coverage. - -**Tool Naming and Discoverability:** -Clear, descriptive tool names help agents find the right tools quickly. Use consistent prefixes (e.g., `github_create_issue`, `github_list_repos`) and action-oriented naming. - -**Context Management:** -Agents benefit from concise tool descriptions and the ability to filter/paginate results. Design tools that return focused, relevant data. Some clients support code execution which can help agents filter and process data efficiently. - -**Actionable Error Messages:** -Error messages should guide agents toward solutions with specific suggestions and next steps. - -#### 1.2 Study MCP Protocol Documentation - -**Navigate the MCP specification:** - -Start with the sitemap to find relevant pages: `https://modelcontextprotocol.io/sitemap.xml` - -Then fetch specific pages with `.md` suffix for markdown format (e.g., `https://modelcontextprotocol.io/specification/draft.md`). - -Key pages to review: -- Specification overview and architecture -- Transport mechanisms (streamable HTTP, stdio) -- Tool, resource, and prompt definitions - -#### 1.3 Study Framework Documentation - -**Recommended stack:** -- **Language**: TypeScript (high-quality SDK support and good compatibility in many execution environments e.g. MCPB. Plus AI models are good at generating TypeScript code, benefiting from its broad usage, static typing and good linting tools) -- **Transport**: Streamable HTTP for remote servers, using stateless JSON (simpler to scale and maintain, as opposed to stateful sessions and streaming responses). stdio for local servers. - -**Load framework documentation:** - -- **MCP Best Practices**: [📋 View Best Practices](./reference/mcp_best_practices.md) - Core guidelines - -**For TypeScript (recommended):** -- **TypeScript SDK**: Use WebFetch to load `https://raw.githubusercontent.com/modelcontextprotocol/typescript-sdk/main/README.md` -- [⚡ TypeScript Guide](./reference/node_mcp_server.md) - TypeScript patterns and examples - -**For Python:** -- **Python SDK**: Use WebFetch to load `https://raw.githubusercontent.com/modelcontextprotocol/python-sdk/main/README.md` -- [🐍 Python Guide](./reference/python_mcp_server.md) - Python patterns and examples - -#### 1.4 Plan Your Implementation - -**Understand the API:** -Review the service's API documentation to identify key endpoints, authentication requirements, and data models. Use web search and WebFetch as needed. - -**Tool Selection:** -Prioritize comprehensive API coverage. List endpoints to implement, starting with the most common operations. - ---- - -### Phase 2: Implementation - -#### 2.1 Set Up Project Structure - -See language-specific guides for project setup: -- [⚡ TypeScript Guide](./reference/node_mcp_server.md) - Project structure, package.json, tsconfig.json -- [🐍 Python Guide](./reference/python_mcp_server.md) - Module organization, dependencies - -#### 2.2 Implement Core Infrastructure - -Create shared utilities: -- API client with authentication -- Error handling helpers -- Response formatting (JSON/Markdown) -- Pagination support - -#### 2.3 Implement Tools - -For each tool: - -**Input Schema:** -- Use Zod (TypeScript) or Pydantic (Python) -- Include constraints and clear descriptions -- Add examples in field descriptions - -**Output Schema:** -- Define `outputSchema` where possible for structured data -- Use `structuredContent` in tool responses (TypeScript SDK feature) -- Helps clients understand and process tool outputs - -**Tool Description:** -- Concise summary of functionality -- Parameter descriptions -- Return type schema - -**Implementation:** -- Async/await for I/O operations -- Proper error handling with actionable messages -- Support pagination where applicable -- Return both text content and structured data when using modern SDKs - -**Annotations:** -- `readOnlyHint`: true/false -- `destructiveHint`: true/false -- `idempotentHint`: true/false -- `openWorldHint`: true/false - ---- - -### Phase 3: Review and Test - -#### 3.1 Code Quality - -Review for: -- No duplicated code (DRY principle) -- Consistent error handling -- Full type coverage -- Clear tool descriptions - -#### 3.2 Build and Test - -**TypeScript:** -- Run `npm run build` to verify compilation -- Test with MCP Inspector: `npx @modelcontextprotocol/inspector` - -**Python:** -- Verify syntax: `python -m py_compile your_server.py` -- Test with MCP Inspector - -See language-specific guides for detailed testing approaches and quality checklists. - ---- - -### Phase 4: Create Evaluations - -After implementing your MCP server, create comprehensive evaluations to test its effectiveness. - -**Load [✅ Evaluation Guide](./reference/evaluation.md) for complete evaluation guidelines.** - -#### 4.1 Understand Evaluation Purpose - -Use evaluations to test whether LLMs can effectively use your MCP server to answer realistic, complex questions. - -#### 4.2 Create 10 Evaluation Questions - -To create effective evaluations, follow the process outlined in the evaluation guide: - -1. **Tool Inspection**: List available tools and understand their capabilities -2. **Content Exploration**: Use READ-ONLY operations to explore available data -3. **Question Generation**: Create 10 complex, realistic questions -4. **Answer Verification**: Solve each question yourself to verify answers - -#### 4.3 Evaluation Requirements - -Ensure each question is: -- **Independent**: Not dependent on other questions -- **Read-only**: Only non-destructive operations required -- **Complex**: Requiring multiple tool calls and deep exploration -- **Realistic**: Based on real use cases humans would care about -- **Verifiable**: Single, clear answer that can be verified by string comparison -- **Stable**: Answer won't change over time - -#### 4.4 Output Format - -Create an XML file with this structure: - -```xml - - - Find discussions about AI model launches with animal codenames. One model needed a specific safety designation that uses the format ASL-X. What number X was being determined for the model named after a spotted wild cat? - 3 - - - -``` - ---- - -# Reference Files - -## 📚 Documentation Library - -Load these resources as needed during development: - -### Core MCP Documentation (Load First) -- **MCP Protocol**: Start with sitemap at `https://modelcontextprotocol.io/sitemap.xml`, then fetch specific pages with `.md` suffix -- [📋 MCP Best Practices](./reference/mcp_best_practices.md) - Universal MCP guidelines including: - - Server and tool naming conventions - - Response format guidelines (JSON vs Markdown) - - Pagination best practices - - Transport selection (streamable HTTP vs stdio) - - Security and error handling standards - -### SDK Documentation (Load During Phase 1/2) -- **Python SDK**: Fetch from `https://raw.githubusercontent.com/modelcontextprotocol/python-sdk/main/README.md` -- **TypeScript SDK**: Fetch from `https://raw.githubusercontent.com/modelcontextprotocol/typescript-sdk/main/README.md` - -### Language-Specific Implementation Guides (Load During Phase 2) -- [🐍 Python Implementation Guide](./reference/python_mcp_server.md) - Complete Python/FastMCP guide with: - - Server initialization patterns - - Pydantic model examples - - Tool registration with `@mcp.tool` - - Complete working examples - - Quality checklist - -- [⚡ TypeScript Implementation Guide](./reference/node_mcp_server.md) - Complete TypeScript guide with: - - Project structure - - Zod schema patterns - - Tool registration with `server.registerTool` - - Complete working examples - - Quality checklist - -### Evaluation Guide (Load During Phase 4) -- [✅ Evaluation Guide](./reference/evaluation.md) - Complete evaluation creation guide with: - - Question creation guidelines - - Answer verification strategies - - XML format specifications - - Example questions and answers - - Running an evaluation with the provided scripts diff --git a/plugins/ndf-shared/skills/mcp-builder/reference/evaluation.md b/plugins/ndf-shared/skills/mcp-builder/reference/evaluation.md deleted file mode 100644 index 87e9bb78..00000000 --- a/plugins/ndf-shared/skills/mcp-builder/reference/evaluation.md +++ /dev/null @@ -1,602 +0,0 @@ -# MCP Server Evaluation Guide - -## Overview - -This document provides guidance on creating comprehensive evaluations for MCP servers. Evaluations test whether LLMs can effectively use your MCP server to answer realistic, complex questions using only the tools provided. - ---- - -## Quick Reference - -### Evaluation Requirements -- Create 10 human-readable questions -- Questions must be READ-ONLY, INDEPENDENT, NON-DESTRUCTIVE -- Each question requires multiple tool calls (potentially dozens) -- Answers must be single, verifiable values -- Answers must be STABLE (won't change over time) - -### Output Format -```xml - - - Your question here - Single verifiable answer - - -``` - ---- - -## Purpose of Evaluations - -The measure of quality of an MCP server is NOT how well or comprehensively the server implements tools, but how well these implementations (input/output schemas, docstrings/descriptions, functionality) enable LLMs with no other context and access ONLY to the MCP servers to answer realistic and difficult questions. - -## Evaluation Overview - -Create 10 human-readable questions requiring ONLY READ-ONLY, INDEPENDENT, NON-DESTRUCTIVE, and IDEMPOTENT operations to answer. Each question should be: -- Realistic -- Clear and concise -- Unambiguous -- Complex, requiring potentially dozens of tool calls or steps -- Answerable with a single, verifiable value that you identify in advance - -## Question Guidelines - -### Core Requirements - -1. **Questions MUST be independent** - - Each question should NOT depend on the answer to any other question - - Should not assume prior write operations from processing another question - -2. **Questions MUST require ONLY NON-DESTRUCTIVE AND IDEMPOTENT tool use** - - Should not instruct or require modifying state to arrive at the correct answer - -3. **Questions must be REALISTIC, CLEAR, CONCISE, and COMPLEX** - - Must require another LLM to use multiple (potentially dozens of) tools or steps to answer - -### Complexity and Depth - -4. **Questions must require deep exploration** - - Consider multi-hop questions requiring multiple sub-questions and sequential tool calls - - Each step should benefit from information found in previous questions - -5. **Questions may require extensive paging** - - May need paging through multiple pages of results - - May require querying old data (1-2 years out-of-date) to find niche information - - The questions must be DIFFICULT - -6. **Questions must require deep understanding** - - Rather than surface-level knowledge - - May pose complex ideas as True/False questions requiring evidence - - May use multiple-choice format where LLM must search different hypotheses - -7. **Questions must not be solvable with straightforward keyword search** - - Do not include specific keywords from the target content - - Use synonyms, related concepts, or paraphrases - - Require multiple searches, analyzing multiple related items, extracting context, then deriving the answer - -### Tool Testing - -8. **Questions should stress-test tool return values** - - May elicit tools returning large JSON objects or lists, overwhelming the LLM - - Should require understanding multiple modalities of data: - - IDs and names - - Timestamps and datetimes (months, days, years, seconds) - - File IDs, names, extensions, and mimetypes - - URLs, GIDs, etc. - - Should probe the tool's ability to return all useful forms of data - -9. **Questions should MOSTLY reflect real human use cases** - - The kinds of information retrieval tasks that HUMANS assisted by an LLM would care about - -10. **Questions may require dozens of tool calls** - - This challenges LLMs with limited context - - Encourages MCP server tools to reduce information returned - -11. **Include ambiguous questions** - - May be ambiguous OR require difficult decisions on which tools to call - - Force the LLM to potentially make mistakes or misinterpret - - Ensure that despite AMBIGUITY, there is STILL A SINGLE VERIFIABLE ANSWER - -### Stability - -12. **Questions must be designed so the answer DOES NOT CHANGE** - - Do not ask questions that rely on "current state" which is dynamic - - For example, do not count: - - Number of reactions to a post - - Number of replies to a thread - - Number of members in a channel - -13. **DO NOT let the MCP server RESTRICT the kinds of questions you create** - - Create challenging and complex questions - - Some may not be solvable with the available MCP server tools - - Questions may require specific output formats (datetime vs. epoch time, JSON vs. MARKDOWN) - - Questions may require dozens of tool calls to complete - -## Answer Guidelines - -### Verification - -1. **Answers must be VERIFIABLE via direct string comparison** - - If the answer can be re-written in many formats, clearly specify the output format in the QUESTION - - Examples: "Use YYYY/MM/DD.", "Respond True or False.", "Answer A, B, C, or D and nothing else." - - Answer should be a single VERIFIABLE value such as: - - User ID, user name, display name, first name, last name - - Channel ID, channel name - - Message ID, string - - URL, title - - Numerical quantity - - Timestamp, datetime - - Boolean (for True/False questions) - - Email address, phone number - - File ID, file name, file extension - - Multiple choice answer - - Answers must not require special formatting or complex, structured output - - Answer will be verified using DIRECT STRING COMPARISON - -### Readability - -2. **Answers should generally prefer HUMAN-READABLE formats** - - Examples: names, first name, last name, datetime, file name, message string, URL, yes/no, true/false, a/b/c/d - - Rather than opaque IDs (though IDs are acceptable) - - The VAST MAJORITY of answers should be human-readable - -### Stability - -3. **Answers must be STABLE/STATIONARY** - - Look at old content (e.g., conversations that have ended, projects that have launched, questions answered) - - Create QUESTIONS based on "closed" concepts that will always return the same answer - - Questions may ask to consider a fixed time window to insulate from non-stationary answers - - Rely on context UNLIKELY to change - - Example: if finding a paper name, be SPECIFIC enough so answer is not confused with papers published later - -4. **Answers must be CLEAR and UNAMBIGUOUS** - - Questions must be designed so there is a single, clear answer - - Answer can be derived from using the MCP server tools - -### Diversity - -5. **Answers must be DIVERSE** - - Answer should be a single VERIFIABLE value in diverse modalities and formats - - User concept: user ID, user name, display name, first name, last name, email address, phone number - - Channel concept: channel ID, channel name, channel topic - - Message concept: message ID, message string, timestamp, month, day, year - -6. **Answers must NOT be complex structures** - - Not a list of values - - Not a complex object - - Not a list of IDs or strings - - Not natural language text - - UNLESS the answer can be straightforwardly verified using DIRECT STRING COMPARISON - - And can be realistically reproduced - - It should be unlikely that an LLM would return the same list in any other order or format - -## Evaluation Process - -### Step 1: Documentation Inspection - -Read the documentation of the target API to understand: -- Available endpoints and functionality -- If ambiguity exists, fetch additional information from the web -- Parallelize this step AS MUCH AS POSSIBLE -- Ensure each subagent is ONLY examining documentation from the file system or on the web - -### Step 2: Tool Inspection - -List the tools available in the MCP server: -- Inspect the MCP server directly -- Understand input/output schemas, docstrings, and descriptions -- WITHOUT calling the tools themselves at this stage - -### Step 3: Developing Understanding - -Repeat steps 1 & 2 until you have a good understanding: -- Iterate multiple times -- Think about the kinds of tasks you want to create -- Refine your understanding -- At NO stage should you READ the code of the MCP server implementation itself -- Use your intuition and understanding to create reasonable, realistic, but VERY challenging tasks - -### Step 4: Read-Only Content Inspection - -After understanding the API and tools, USE the MCP server tools: -- Inspect content using READ-ONLY and NON-DESTRUCTIVE operations ONLY -- Goal: identify specific content (e.g., users, channels, messages, projects, tasks) for creating realistic questions -- Should NOT call any tools that modify state -- Will NOT read the code of the MCP server implementation itself -- Parallelize this step with individual sub-agents pursuing independent explorations -- Ensure each subagent is only performing READ-ONLY, NON-DESTRUCTIVE, and IDEMPOTENT operations -- BE CAREFUL: SOME TOOLS may return LOTS OF DATA which would cause you to run out of CONTEXT -- Make INCREMENTAL, SMALL, AND TARGETED tool calls for exploration -- In all tool call requests, use the `limit` parameter to limit results (<10) -- Use pagination - -### Step 5: Task Generation - -After inspecting the content, create 10 human-readable questions: -- An LLM should be able to answer these with the MCP server -- Follow all question and answer guidelines above - -## Output Format - -Each QA pair consists of a question and an answer. The output should be an XML file with this structure: - -```xml - - - Find the project created in Q2 2024 with the highest number of completed tasks. What is the project name? - Website Redesign - - - Search for issues labeled as "bug" that were closed in March 2024. Which user closed the most issues? Provide their username. - sarah_dev - - - Look for pull requests that modified files in the /api directory and were merged between January 1 and January 31, 2024. How many different contributors worked on these PRs? - 7 - - - Find the repository with the most stars that was created before 2023. What is the repository name? - data-pipeline - - -``` - -## Evaluation Examples - -### Good Questions - -**Example 1: Multi-hop question requiring deep exploration (GitHub MCP)** -```xml - - Find the repository that was archived in Q3 2023 and had previously been the most forked project in the organization. What was the primary programming language used in that repository? - Python - -``` - -This question is good because: -- Requires multiple searches to find archived repositories -- Needs to identify which had the most forks before archival -- Requires examining repository details for the language -- Answer is a simple, verifiable value -- Based on historical (closed) data that won't change - -**Example 2: Requires understanding context without keyword matching (Project Management MCP)** -```xml - - Locate the initiative focused on improving customer onboarding that was completed in late 2023. The project lead created a retrospective document after completion. What was the lead's role title at that time? - Product Manager - -``` - -This question is good because: -- Doesn't use specific project name ("initiative focused on improving customer onboarding") -- Requires finding completed projects from specific timeframe -- Needs to identify the project lead and their role -- Requires understanding context from retrospective documents -- Answer is human-readable and stable -- Based on completed work (won't change) - -**Example 3: Complex aggregation requiring multiple steps (Issue Tracker MCP)** -```xml - - Among all bugs reported in January 2024 that were marked as critical priority, which assignee resolved the highest percentage of their assigned bugs within 48 hours? Provide the assignee's username. - alex_eng - -``` - -This question is good because: -- Requires filtering bugs by date, priority, and status -- Needs to group by assignee and calculate resolution rates -- Requires understanding timestamps to determine 48-hour windows -- Tests pagination (potentially many bugs to process) -- Answer is a single username -- Based on historical data from specific time period - -**Example 4: Requires synthesis across multiple data types (CRM MCP)** -```xml - - Find the account that upgraded from the Starter to Enterprise plan in Q4 2023 and had the highest annual contract value. What industry does this account operate in? - Healthcare - -``` - -This question is good because: -- Requires understanding subscription tier changes -- Needs to identify upgrade events in specific timeframe -- Requires comparing contract values -- Must access account industry information -- Answer is simple and verifiable -- Based on completed historical transactions - -### Poor Questions - -**Example 1: Answer changes over time** -```xml - - How many open issues are currently assigned to the engineering team? - 47 - -``` - -This question is poor because: -- The answer will change as issues are created, closed, or reassigned -- Not based on stable/stationary data -- Relies on "current state" which is dynamic - -**Example 2: Too easy with keyword search** -```xml - - Find the pull request with title "Add authentication feature" and tell me who created it. - developer123 - -``` - -This question is poor because: -- Can be solved with a straightforward keyword search for exact title -- Doesn't require deep exploration or understanding -- No synthesis or analysis needed - -**Example 3: Ambiguous answer format** -```xml - - List all the repositories that have Python as their primary language. - repo1, repo2, repo3, data-pipeline, ml-tools - -``` - -This question is poor because: -- Answer is a list that could be returned in any order -- Difficult to verify with direct string comparison -- LLM might format differently (JSON array, comma-separated, newline-separated) -- Better to ask for a specific aggregate (count) or superlative (most stars) - -## Verification Process - -After creating evaluations: - -1. **Examine the XML file** to understand the schema -2. **Load each task instruction** and in parallel using the MCP server and tools, identify the correct answer by attempting to solve the task YOURSELF -3. **Flag any operations** that require WRITE or DESTRUCTIVE operations -4. **Accumulate all CORRECT answers** and replace any incorrect answers in the document -5. **Remove any ``** that require WRITE or DESTRUCTIVE operations - -Remember to parallelize solving tasks to avoid running out of context, then accumulate all answers and make changes to the file at the end. - -## Tips for Creating Quality Evaluations - -1. **Think Hard and Plan Ahead** before generating tasks -2. **Parallelize Where Opportunity Arises** to speed up the process and manage context -3. **Focus on Realistic Use Cases** that humans would actually want to accomplish -4. **Create Challenging Questions** that test the limits of the MCP server's capabilities -5. **Ensure Stability** by using historical data and closed concepts -6. **Verify Answers** by solving the questions yourself using the MCP server tools -7. **Iterate and Refine** based on what you learn during the process - ---- - -# Running Evaluations - -After creating your evaluation file, you can use the provided evaluation harness to test your MCP server. - -## Setup - -1. **Install Dependencies** - - ```bash - pip install -r scripts/requirements.txt - ``` - - Or install manually: - ```bash - pip install anthropic mcp - ``` - -2. **Set API Key** - - ```bash - export ANTHROPIC_API_KEY=your_api_key_here - ``` - -## Evaluation File Format - -Evaluation files use XML format with `` elements: - -```xml - - - Find the project created in Q2 2024 with the highest number of completed tasks. What is the project name? - Website Redesign - - - Search for issues labeled as "bug" that were closed in March 2024. Which user closed the most issues? Provide their username. - sarah_dev - - -``` - -## Running Evaluations - -The evaluation script (`scripts/evaluation.py`) supports three transport types: - -**Important:** -- **stdio transport**: The evaluation script automatically launches and manages the MCP server process for you. Do not run the server manually. -- **sse/http transports**: You must start the MCP server separately before running the evaluation. The script connects to the already-running server at the specified URL. - -### 1. Local STDIO Server - -For locally-run MCP servers (script launches the server automatically): - -```bash -python scripts/evaluation.py \ - -t stdio \ - -c python \ - -a my_mcp_server.py \ - evaluation.xml -``` - -With environment variables: -```bash -python scripts/evaluation.py \ - -t stdio \ - -c python \ - -a my_mcp_server.py \ - -e API_KEY=abc123 \ - -e DEBUG=true \ - evaluation.xml -``` - -### 2. Server-Sent Events (SSE) - -For SSE-based MCP servers (you must start the server first): - -```bash -python scripts/evaluation.py \ - -t sse \ - -u https://example.com/mcp \ - -H "Authorization: Bearer token123" \ - -H "X-Custom-Header: value" \ - evaluation.xml -``` - -### 3. HTTP (Streamable HTTP) - -For HTTP-based MCP servers (you must start the server first): - -```bash -python scripts/evaluation.py \ - -t http \ - -u https://example.com/mcp \ - -H "Authorization: Bearer token123" \ - evaluation.xml -``` - -## Command-Line Options - -``` -usage: evaluation.py [-h] [-t {stdio,sse,http}] [-m MODEL] [-c COMMAND] - [-a ARGS [ARGS ...]] [-e ENV [ENV ...]] [-u URL] - [-H HEADERS [HEADERS ...]] [-o OUTPUT] - eval_file - -positional arguments: - eval_file Path to evaluation XML file - -optional arguments: - -h, --help Show help message - -t, --transport Transport type: stdio, sse, or http (default: stdio) - -m, --model Claude model to use (default: claude-3-7-sonnet-20250219) - -o, --output Output file for report (default: print to stdout) - -stdio options: - -c, --command Command to run MCP server (e.g., python, node) - -a, --args Arguments for the command (e.g., server.py) - -e, --env Environment variables in KEY=VALUE format - -sse/http options: - -u, --url MCP server URL - -H, --header HTTP headers in 'Key: Value' format -``` - -## Output - -The evaluation script generates a detailed report including: - -- **Summary Statistics**: - - Accuracy (correct/total) - - Average task duration - - Average tool calls per task - - Total tool calls - -- **Per-Task Results**: - - Prompt and expected response - - Actual response from the agent - - Whether the answer was correct (✅/❌) - - Duration and tool call details - - Agent's summary of its approach - - Agent's feedback on the tools - -### Save Report to File - -```bash -python scripts/evaluation.py \ - -t stdio \ - -c python \ - -a my_server.py \ - -o evaluation_report.md \ - evaluation.xml -``` - -## Complete Example Workflow - -Here's a complete example of creating and running an evaluation: - -1. **Create your evaluation file** (`my_evaluation.xml`): - -```xml - - - Find the user who created the most issues in January 2024. What is their username? - alice_developer - - - Among all pull requests merged in Q1 2024, which repository had the highest number? Provide the repository name. - backend-api - - - Find the project that was completed in December 2023 and had the longest duration from start to finish. How many days did it take? - 127 - - -``` - -2. **Install dependencies**: - -```bash -pip install -r scripts/requirements.txt -export ANTHROPIC_API_KEY=your_api_key -``` - -3. **Run evaluation**: - -```bash -python scripts/evaluation.py \ - -t stdio \ - -c python \ - -a github_mcp_server.py \ - -e GITHUB_TOKEN=ghp_xxx \ - -o github_eval_report.md \ - my_evaluation.xml -``` - -4. **Review the report** in `github_eval_report.md` to: - - See which questions passed/failed - - Read the agent's feedback on your tools - - Identify areas for improvement - - Iterate on your MCP server design - -## Troubleshooting - -### Connection Errors - -If you get connection errors: -- **STDIO**: Verify the command and arguments are correct -- **SSE/HTTP**: Check the URL is accessible and headers are correct -- Ensure any required API keys are set in environment variables or headers - -### Low Accuracy - -If many evaluations fail: -- Review the agent's feedback for each task -- Check if tool descriptions are clear and comprehensive -- Verify input parameters are well-documented -- Consider whether tools return too much or too little data -- Ensure error messages are actionable - -### Timeout Issues - -If tasks are timing out: -- Use a more capable model (e.g., `claude-3-7-sonnet-20250219`) -- Check if tools are returning too much data -- Verify pagination is working correctly -- Consider simplifying complex questions \ No newline at end of file diff --git a/plugins/ndf-shared/skills/mcp-builder/reference/mcp_best_practices.md b/plugins/ndf-shared/skills/mcp-builder/reference/mcp_best_practices.md deleted file mode 100644 index b9d343cc..00000000 --- a/plugins/ndf-shared/skills/mcp-builder/reference/mcp_best_practices.md +++ /dev/null @@ -1,249 +0,0 @@ -# MCP Server Best Practices - -## Quick Reference - -### Server Naming -- **Python**: `{service}_mcp` (e.g., `slack_mcp`) -- **Node/TypeScript**: `{service}-mcp-server` (e.g., `slack-mcp-server`) - -### Tool Naming -- Use snake_case with service prefix -- Format: `{service}_{action}_{resource}` -- Example: `slack_send_message`, `github_create_issue` - -### Response Formats -- Support both JSON and Markdown formats -- JSON for programmatic processing -- Markdown for human readability - -### Pagination -- Always respect `limit` parameter -- Return `has_more`, `next_offset`, `total_count` -- Default to 20-50 items - -### Transport -- **Streamable HTTP**: For remote servers, multi-client scenarios -- **stdio**: For local integrations, command-line tools -- Avoid SSE (deprecated in favor of streamable HTTP) - ---- - -## Server Naming Conventions - -Follow these standardized naming patterns: - -**Python**: Use format `{service}_mcp` (lowercase with underscores) -- Examples: `slack_mcp`, `github_mcp`, `jira_mcp` - -**Node/TypeScript**: Use format `{service}-mcp-server` (lowercase with hyphens) -- Examples: `slack-mcp-server`, `github-mcp-server`, `jira-mcp-server` - -The name should be general, descriptive of the service being integrated, easy to infer from the task description, and without version numbers. - ---- - -## Tool Naming and Design - -### Tool Naming - -1. **Use snake_case**: `search_users`, `create_project`, `get_channel_info` -2. **Include service prefix**: Anticipate that your MCP server may be used alongside other MCP servers - - Use `slack_send_message` instead of just `send_message` - - Use `github_create_issue` instead of just `create_issue` -3. **Be action-oriented**: Start with verbs (get, list, search, create, etc.) -4. **Be specific**: Avoid generic names that could conflict with other servers - -### Tool Design - -- Tool descriptions must narrowly and unambiguously describe functionality -- Descriptions must precisely match actual functionality -- Provide tool annotations (readOnlyHint, destructiveHint, idempotentHint, openWorldHint) -- Keep tool operations focused and atomic - ---- - -## Response Formats - -All tools that return data should support multiple formats: - -### JSON Format (`response_format="json"`) -- Machine-readable structured data -- Include all available fields and metadata -- Consistent field names and types -- Use for programmatic processing - -### Markdown Format (`response_format="markdown"`, typically default) -- Human-readable formatted text -- Use headers, lists, and formatting for clarity -- Convert timestamps to human-readable format -- Show display names with IDs in parentheses -- Omit verbose metadata - ---- - -## Pagination - -For tools that list resources: - -- **Always respect the `limit` parameter** -- **Implement pagination**: Use `offset` or cursor-based pagination -- **Return pagination metadata**: Include `has_more`, `next_offset`/`next_cursor`, `total_count` -- **Never load all results into memory**: Especially important for large datasets -- **Default to reasonable limits**: 20-50 items is typical - -Example pagination response: -```json -{ - "total": 150, - "count": 20, - "offset": 0, - "items": [...], - "has_more": true, - "next_offset": 20 -} -``` - ---- - -## Transport Options - -### Streamable HTTP - -**Best for**: Remote servers, web services, multi-client scenarios - -**Characteristics**: -- Bidirectional communication over HTTP -- Supports multiple simultaneous clients -- Can be deployed as a web service -- Enables server-to-client notifications - -**Use when**: -- Serving multiple clients simultaneously -- Deploying as a cloud service -- Integration with web applications - -### stdio - -**Best for**: Local integrations, command-line tools - -**Characteristics**: -- Standard input/output stream communication -- Simple setup, no network configuration needed -- Runs as a subprocess of the client - -**Use when**: -- Building tools for local development environments -- Integrating with desktop applications -- Single-user, single-session scenarios - -**Note**: stdio servers should NOT log to stdout (use stderr for logging) - -### Transport Selection - -| Criterion | stdio | Streamable HTTP | -|-----------|-------|-----------------| -| **Deployment** | Local | Remote | -| **Clients** | Single | Multiple | -| **Complexity** | Low | Medium | -| **Real-time** | No | Yes | - ---- - -## Security Best Practices - -### Authentication and Authorization - -**OAuth 2.1**: -- Use secure OAuth 2.1 with certificates from recognized authorities -- Validate access tokens before processing requests -- Only accept tokens specifically intended for your server - -**API Keys**: -- Store API keys in environment variables, never in code -- Validate keys on server startup -- Provide clear error messages when authentication fails - -### Input Validation - -- Sanitize file paths to prevent directory traversal -- Validate URLs and external identifiers -- Check parameter sizes and ranges -- Prevent command injection in system calls -- Use schema validation (Pydantic/Zod) for all inputs - -### Error Handling - -- Don't expose internal errors to clients -- Log security-relevant errors server-side -- Provide helpful but not revealing error messages -- Clean up resources after errors - -### DNS Rebinding Protection - -For streamable HTTP servers running locally: -- Enable DNS rebinding protection -- Validate the `Origin` header on all incoming connections -- Bind to `127.0.0.1` rather than `0.0.0.0` - ---- - -## Tool Annotations - -Provide annotations to help clients understand tool behavior: - -| Annotation | Type | Default | Description | -|-----------|------|---------|-------------| -| `readOnlyHint` | boolean | false | Tool does not modify its environment | -| `destructiveHint` | boolean | true | Tool may perform destructive updates | -| `idempotentHint` | boolean | false | Repeated calls with same args have no additional effect | -| `openWorldHint` | boolean | true | Tool interacts with external entities | - -**Important**: Annotations are hints, not security guarantees. Clients should not make security-critical decisions based solely on annotations. - ---- - -## Error Handling - -- Use standard JSON-RPC error codes -- Report tool errors within result objects (not protocol-level errors) -- Provide helpful, specific error messages with suggested next steps -- Don't expose internal implementation details -- Clean up resources properly on errors - -Example error handling: -```typescript -try { - const result = performOperation(); - return { content: [{ type: "text", text: result }] }; -} catch (error) { - return { - isError: true, - content: [{ - type: "text", - text: `Error: ${error.message}. Try using filter='active_only' to reduce results.` - }] - }; -} -``` - ---- - -## Testing Requirements - -Comprehensive testing should cover: - -- **Functional testing**: Verify correct execution with valid/invalid inputs -- **Integration testing**: Test interaction with external systems -- **Security testing**: Validate auth, input sanitization, rate limiting -- **Performance testing**: Check behavior under load, timeouts -- **Error handling**: Ensure proper error reporting and cleanup - ---- - -## Documentation Requirements - -- Provide clear documentation of all tools and capabilities -- Include working examples (at least 3 per major feature) -- Document security considerations -- Specify required permissions and access levels -- Document rate limits and performance characteristics diff --git a/plugins/ndf-shared/skills/mcp-builder/reference/node_mcp_server.md b/plugins/ndf-shared/skills/mcp-builder/reference/node_mcp_server.md deleted file mode 100644 index f6e5df98..00000000 --- a/plugins/ndf-shared/skills/mcp-builder/reference/node_mcp_server.md +++ /dev/null @@ -1,970 +0,0 @@ -# Node/TypeScript MCP Server Implementation Guide - -## Overview - -This document provides Node/TypeScript-specific best practices and examples for implementing MCP servers using the MCP TypeScript SDK. It covers project structure, server setup, tool registration patterns, input validation with Zod, error handling, and complete working examples. - ---- - -## Quick Reference - -### Key Imports -```typescript -import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js"; -import { StreamableHTTPServerTransport } from "@modelcontextprotocol/sdk/server/streamableHttp.js"; -import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js"; -import express from "express"; -import { z } from "zod"; -``` - -### Server Initialization -```typescript -const server = new McpServer({ - name: "service-mcp-server", - version: "1.0.0" -}); -``` - -### Tool Registration Pattern -```typescript -server.registerTool( - "tool_name", - { - title: "Tool Display Name", - description: "What the tool does", - inputSchema: { param: z.string() }, - outputSchema: { result: z.string() } - }, - async ({ param }) => { - const output = { result: `Processed: ${param}` }; - return { - content: [{ type: "text", text: JSON.stringify(output) }], - structuredContent: output // Modern pattern for structured data - }; - } -); -``` - ---- - -## MCP TypeScript SDK - -The official MCP TypeScript SDK provides: -- `McpServer` class for server initialization -- `registerTool` method for tool registration -- Zod schema integration for runtime input validation -- Type-safe tool handler implementations - -**IMPORTANT - Use Modern APIs Only:** -- **DO use**: `server.registerTool()`, `server.registerResource()`, `server.registerPrompt()` -- **DO NOT use**: Old deprecated APIs such as `server.tool()`, `server.setRequestHandler(ListToolsRequestSchema, ...)`, or manual handler registration -- The `register*` methods provide better type safety, automatic schema handling, and are the recommended approach - -See the MCP SDK documentation in the references for complete details. - -## Server Naming Convention - -Node/TypeScript MCP servers must follow this naming pattern: -- **Format**: `{service}-mcp-server` (lowercase with hyphens) -- **Examples**: `github-mcp-server`, `jira-mcp-server`, `stripe-mcp-server` - -The name should be: -- General (not tied to specific features) -- Descriptive of the service/API being integrated -- Easy to infer from the task description -- Without version numbers or dates - -## Project Structure - -Create the following structure for Node/TypeScript MCP servers: - -``` -{service}-mcp-server/ -├── package.json -├── tsconfig.json -├── README.md -├── src/ -│ ├── index.ts # Main entry point with McpServer initialization -│ ├── types.ts # TypeScript type definitions and interfaces -│ ├── tools/ # Tool implementations (one file per domain) -│ ├── services/ # API clients and shared utilities -│ ├── schemas/ # Zod validation schemas -│ └── constants.ts # Shared constants (API_URL, CHARACTER_LIMIT, etc.) -└── dist/ # Built JavaScript files (entry point: dist/index.js) -``` - -## Tool Implementation - -### Tool Naming - -Use snake_case for tool names (e.g., "search_users", "create_project", "get_channel_info") with clear, action-oriented names. - -**Avoid Naming Conflicts**: Include the service context to prevent overlaps: -- Use "slack_send_message" instead of just "send_message" -- Use "github_create_issue" instead of just "create_issue" -- Use "asana_list_tasks" instead of just "list_tasks" - -### Tool Structure - -Tools are registered using the `registerTool` method with the following requirements: -- Use Zod schemas for runtime input validation and type safety -- The `description` field must be explicitly provided - JSDoc comments are NOT automatically extracted -- Explicitly provide `title`, `description`, `inputSchema`, and `annotations` -- The `inputSchema` must be a Zod schema object (not a JSON schema) -- Type all parameters and return values explicitly - -```typescript -import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js"; -import { z } from "zod"; - -const server = new McpServer({ - name: "example-mcp", - version: "1.0.0" -}); - -// Zod schema for input validation -const UserSearchInputSchema = z.object({ - query: z.string() - .min(2, "Query must be at least 2 characters") - .max(200, "Query must not exceed 200 characters") - .describe("Search string to match against names/emails"), - limit: z.number() - .int() - .min(1) - .max(100) - .default(20) - .describe("Maximum results to return"), - offset: z.number() - .int() - .min(0) - .default(0) - .describe("Number of results to skip for pagination"), - response_format: z.nativeEnum(ResponseFormat) - .default(ResponseFormat.MARKDOWN) - .describe("Output format: 'markdown' for human-readable or 'json' for machine-readable") -}).strict(); - -// Type definition from Zod schema -type UserSearchInput = z.infer; - -server.registerTool( - "example_search_users", - { - title: "Search Example Users", - description: `Search for users in the Example system by name, email, or team. - -This tool searches across all user profiles in the Example platform, supporting partial matches and various search filters. It does NOT create or modify users, only searches existing ones. - -Args: - - query (string): Search string to match against names/emails - - limit (number): Maximum results to return, between 1-100 (default: 20) - - offset (number): Number of results to skip for pagination (default: 0) - - response_format ('markdown' | 'json'): Output format (default: 'markdown') - -Returns: - For JSON format: Structured data with schema: - { - "total": number, // Total number of matches found - "count": number, // Number of results in this response - "offset": number, // Current pagination offset - "users": [ - { - "id": string, // User ID (e.g., "U123456789") - "name": string, // Full name (e.g., "John Doe") - "email": string, // Email address - "team": string, // Team name (optional) - "active": boolean // Whether user is active - } - ], - "has_more": boolean, // Whether more results are available - "next_offset": number // Offset for next page (if has_more is true) - } - -Examples: - - Use when: "Find all marketing team members" -> params with query="team:marketing" - - Use when: "Search for John's account" -> params with query="john" - - Don't use when: You need to create a user (use example_create_user instead) - -Error Handling: - - Returns "Error: Rate limit exceeded" if too many requests (429 status) - - Returns "No users found matching ''" if search returns empty`, - inputSchema: UserSearchInputSchema, - annotations: { - readOnlyHint: true, - destructiveHint: false, - idempotentHint: true, - openWorldHint: true - } - }, - async (params: UserSearchInput) => { - try { - // Input validation is handled by Zod schema - // Make API request using validated parameters - const data = await makeApiRequest( - "users/search", - "GET", - undefined, - { - q: params.query, - limit: params.limit, - offset: params.offset - } - ); - - const users = data.users || []; - const total = data.total || 0; - - if (!users.length) { - return { - content: [{ - type: "text", - text: `No users found matching '${params.query}'` - }] - }; - } - - // Prepare structured output - const output = { - total, - count: users.length, - offset: params.offset, - users: users.map((user: any) => ({ - id: user.id, - name: user.name, - email: user.email, - ...(user.team ? { team: user.team } : {}), - active: user.active ?? true - })), - has_more: total > params.offset + users.length, - ...(total > params.offset + users.length ? { - next_offset: params.offset + users.length - } : {}) - }; - - // Format text representation based on requested format - let textContent: string; - if (params.response_format === ResponseFormat.MARKDOWN) { - const lines = [`# User Search Results: '${params.query}'`, "", - `Found ${total} users (showing ${users.length})`, ""]; - for (const user of users) { - lines.push(`## ${user.name} (${user.id})`); - lines.push(`- **Email**: ${user.email}`); - if (user.team) lines.push(`- **Team**: ${user.team}`); - lines.push(""); - } - textContent = lines.join("\n"); - } else { - textContent = JSON.stringify(output, null, 2); - } - - return { - content: [{ type: "text", text: textContent }], - structuredContent: output // Modern pattern for structured data - }; - } catch (error) { - return { - content: [{ - type: "text", - text: handleApiError(error) - }] - }; - } - } -); -``` - -## Zod Schemas for Input Validation - -Zod provides runtime type validation: - -```typescript -import { z } from "zod"; - -// Basic schema with validation -const CreateUserSchema = z.object({ - name: z.string() - .min(1, "Name is required") - .max(100, "Name must not exceed 100 characters"), - email: z.string() - .email("Invalid email format"), - age: z.number() - .int("Age must be a whole number") - .min(0, "Age cannot be negative") - .max(150, "Age cannot be greater than 150") -}).strict(); // Use .strict() to forbid extra fields - -// Enums -enum ResponseFormat { - MARKDOWN = "markdown", - JSON = "json" -} - -const SearchSchema = z.object({ - response_format: z.nativeEnum(ResponseFormat) - .default(ResponseFormat.MARKDOWN) - .describe("Output format") -}); - -// Optional fields with defaults -const PaginationSchema = z.object({ - limit: z.number() - .int() - .min(1) - .max(100) - .default(20) - .describe("Maximum results to return"), - offset: z.number() - .int() - .min(0) - .default(0) - .describe("Number of results to skip") -}); -``` - -## Response Format Options - -Support multiple output formats for flexibility: - -```typescript -enum ResponseFormat { - MARKDOWN = "markdown", - JSON = "json" -} - -const inputSchema = z.object({ - query: z.string(), - response_format: z.nativeEnum(ResponseFormat) - .default(ResponseFormat.MARKDOWN) - .describe("Output format: 'markdown' for human-readable or 'json' for machine-readable") -}); -``` - -**Markdown format**: -- Use headers, lists, and formatting for clarity -- Convert timestamps to human-readable format -- Show display names with IDs in parentheses -- Omit verbose metadata -- Group related information logically - -**JSON format**: -- Return complete, structured data suitable for programmatic processing -- Include all available fields and metadata -- Use consistent field names and types - -## Pagination Implementation - -For tools that list resources: - -```typescript -const ListSchema = z.object({ - limit: z.number().int().min(1).max(100).default(20), - offset: z.number().int().min(0).default(0) -}); - -async function listItems(params: z.infer) { - const data = await apiRequest(params.limit, params.offset); - - const response = { - total: data.total, - count: data.items.length, - offset: params.offset, - items: data.items, - has_more: data.total > params.offset + data.items.length, - next_offset: data.total > params.offset + data.items.length - ? params.offset + data.items.length - : undefined - }; - - return JSON.stringify(response, null, 2); -} -``` - -## Character Limits and Truncation - -Add a CHARACTER_LIMIT constant to prevent overwhelming responses: - -```typescript -// At module level in constants.ts -export const CHARACTER_LIMIT = 25000; // Maximum response size in characters - -async function searchTool(params: SearchInput) { - let result = generateResponse(data); - - // Check character limit and truncate if needed - if (result.length > CHARACTER_LIMIT) { - const truncatedData = data.slice(0, Math.max(1, data.length / 2)); - response.data = truncatedData; - response.truncated = true; - response.truncation_message = - `Response truncated from ${data.length} to ${truncatedData.length} items. ` + - `Use 'offset' parameter or add filters to see more results.`; - result = JSON.stringify(response, null, 2); - } - - return result; -} -``` - -## Error Handling - -Provide clear, actionable error messages: - -```typescript -import axios, { AxiosError } from "axios"; - -function handleApiError(error: unknown): string { - if (error instanceof AxiosError) { - if (error.response) { - switch (error.response.status) { - case 404: - return "Error: Resource not found. Please check the ID is correct."; - case 403: - return "Error: Permission denied. You don't have access to this resource."; - case 429: - return "Error: Rate limit exceeded. Please wait before making more requests."; - default: - return `Error: API request failed with status ${error.response.status}`; - } - } else if (error.code === "ECONNABORTED") { - return "Error: Request timed out. Please try again."; - } - } - return `Error: Unexpected error occurred: ${error instanceof Error ? error.message : String(error)}`; -} -``` - -## Shared Utilities - -Extract common functionality into reusable functions: - -```typescript -// Shared API request function -async function makeApiRequest( - endpoint: string, - method: "GET" | "POST" | "PUT" | "DELETE" = "GET", - data?: any, - params?: any -): Promise { - try { - const response = await axios({ - method, - url: `${API_BASE_URL}/${endpoint}`, - data, - params, - timeout: 30000, - headers: { - "Content-Type": "application/json", - "Accept": "application/json" - } - }); - return response.data; - } catch (error) { - throw error; - } -} -``` - -## Async/Await Best Practices - -Always use async/await for network requests and I/O operations: - -```typescript -// Good: Async network request -async function fetchData(resourceId: string): Promise { - const response = await axios.get(`${API_URL}/resource/${resourceId}`); - return response.data; -} - -// Bad: Promise chains -function fetchData(resourceId: string): Promise { - return axios.get(`${API_URL}/resource/${resourceId}`) - .then(response => response.data); // Harder to read and maintain -} -``` - -## TypeScript Best Practices - -1. **Use Strict TypeScript**: Enable strict mode in tsconfig.json -2. **Define Interfaces**: Create clear interface definitions for all data structures -3. **Avoid `any`**: Use proper types or `unknown` instead of `any` -4. **Zod for Runtime Validation**: Use Zod schemas to validate external data -5. **Type Guards**: Create type guard functions for complex type checking -6. **Error Handling**: Always use try-catch with proper error type checking -7. **Null Safety**: Use optional chaining (`?.`) and nullish coalescing (`??`) - -```typescript -// Good: Type-safe with Zod and interfaces -interface UserResponse { - id: string; - name: string; - email: string; - team?: string; - active: boolean; -} - -const UserSchema = z.object({ - id: z.string(), - name: z.string(), - email: z.string().email(), - team: z.string().optional(), - active: z.boolean() -}); - -type User = z.infer; - -async function getUser(id: string): Promise { - const data = await apiCall(`/users/${id}`); - return UserSchema.parse(data); // Runtime validation -} - -// Bad: Using any -async function getUser(id: string): Promise { - return await apiCall(`/users/${id}`); // No type safety -} -``` - -## Package Configuration - -### package.json - -```json -{ - "name": "{service}-mcp-server", - "version": "1.0.0", - "description": "MCP server for {Service} API integration", - "type": "module", - "main": "dist/index.js", - "scripts": { - "start": "node dist/index.js", - "dev": "tsx watch src/index.ts", - "build": "tsc", - "clean": "rm -rf dist" - }, - "engines": { - "node": ">=18" - }, - "dependencies": { - "@modelcontextprotocol/sdk": "^1.6.1", - "axios": "^1.7.9", - "zod": "^3.23.8" - }, - "devDependencies": { - "@types/node": "^22.10.0", - "tsx": "^4.19.2", - "typescript": "^5.7.2" - } -} -``` - -### tsconfig.json - -```json -{ - "compilerOptions": { - "target": "ES2022", - "module": "Node16", - "moduleResolution": "Node16", - "lib": ["ES2022"], - "outDir": "./dist", - "rootDir": "./src", - "strict": true, - "esModuleInterop": true, - "skipLibCheck": true, - "forceConsistentCasingInFileNames": true, - "declaration": true, - "declarationMap": true, - "sourceMap": true, - "allowSyntheticDefaultImports": true - }, - "include": ["src/**/*"], - "exclude": ["node_modules", "dist"] -} -``` - -## Complete Example - -```typescript -#!/usr/bin/env node -/** - * MCP Server for Example Service. - * - * This server provides tools to interact with Example API, including user search, - * project management, and data export capabilities. - */ - -import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js"; -import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js"; -import { z } from "zod"; -import axios, { AxiosError } from "axios"; - -// Constants -const API_BASE_URL = "https://api.example.com/v1"; -const CHARACTER_LIMIT = 25000; - -// Enums -enum ResponseFormat { - MARKDOWN = "markdown", - JSON = "json" -} - -// Zod schemas -const UserSearchInputSchema = z.object({ - query: z.string() - .min(2, "Query must be at least 2 characters") - .max(200, "Query must not exceed 200 characters") - .describe("Search string to match against names/emails"), - limit: z.number() - .int() - .min(1) - .max(100) - .default(20) - .describe("Maximum results to return"), - offset: z.number() - .int() - .min(0) - .default(0) - .describe("Number of results to skip for pagination"), - response_format: z.nativeEnum(ResponseFormat) - .default(ResponseFormat.MARKDOWN) - .describe("Output format: 'markdown' for human-readable or 'json' for machine-readable") -}).strict(); - -type UserSearchInput = z.infer; - -// Shared utility functions -async function makeApiRequest( - endpoint: string, - method: "GET" | "POST" | "PUT" | "DELETE" = "GET", - data?: any, - params?: any -): Promise { - try { - const response = await axios({ - method, - url: `${API_BASE_URL}/${endpoint}`, - data, - params, - timeout: 30000, - headers: { - "Content-Type": "application/json", - "Accept": "application/json" - } - }); - return response.data; - } catch (error) { - throw error; - } -} - -function handleApiError(error: unknown): string { - if (error instanceof AxiosError) { - if (error.response) { - switch (error.response.status) { - case 404: - return "Error: Resource not found. Please check the ID is correct."; - case 403: - return "Error: Permission denied. You don't have access to this resource."; - case 429: - return "Error: Rate limit exceeded. Please wait before making more requests."; - default: - return `Error: API request failed with status ${error.response.status}`; - } - } else if (error.code === "ECONNABORTED") { - return "Error: Request timed out. Please try again."; - } - } - return `Error: Unexpected error occurred: ${error instanceof Error ? error.message : String(error)}`; -} - -// Create MCP server instance -const server = new McpServer({ - name: "example-mcp", - version: "1.0.0" -}); - -// Register tools -server.registerTool( - "example_search_users", - { - title: "Search Example Users", - description: `[Full description as shown above]`, - inputSchema: UserSearchInputSchema, - annotations: { - readOnlyHint: true, - destructiveHint: false, - idempotentHint: true, - openWorldHint: true - } - }, - async (params: UserSearchInput) => { - // Implementation as shown above - } -); - -// Main function -// For stdio (local): -async function runStdio() { - if (!process.env.EXAMPLE_API_KEY) { - console.error("ERROR: EXAMPLE_API_KEY environment variable is required"); - process.exit(1); - } - - const transport = new StdioServerTransport(); - await server.connect(transport); - console.error("MCP server running via stdio"); -} - -// For streamable HTTP (remote): -async function runHTTP() { - if (!process.env.EXAMPLE_API_KEY) { - console.error("ERROR: EXAMPLE_API_KEY environment variable is required"); - process.exit(1); - } - - const app = express(); - app.use(express.json()); - - app.post('/mcp', async (req, res) => { - const transport = new StreamableHTTPServerTransport({ - sessionIdGenerator: undefined, - enableJsonResponse: true - }); - res.on('close', () => transport.close()); - await server.connect(transport); - await transport.handleRequest(req, res, req.body); - }); - - const port = parseInt(process.env.PORT || '3000'); - app.listen(port, () => { - console.error(`MCP server running on http://localhost:${port}/mcp`); - }); -} - -// Choose transport based on environment -const transport = process.env.TRANSPORT || 'stdio'; -if (transport === 'http') { - runHTTP().catch(error => { - console.error("Server error:", error); - process.exit(1); - }); -} else { - runStdio().catch(error => { - console.error("Server error:", error); - process.exit(1); - }); -} -``` - ---- - -## Advanced MCP Features - -### Resource Registration - -Expose data as resources for efficient, URI-based access: - -```typescript -import { ResourceTemplate } from "@modelcontextprotocol/sdk/types.js"; - -// Register a resource with URI template -server.registerResource( - { - uri: "file://documents/{name}", - name: "Document Resource", - description: "Access documents by name", - mimeType: "text/plain" - }, - async (uri: string) => { - // Extract parameter from URI - const match = uri.match(/^file:\/\/documents\/(.+)$/); - if (!match) { - throw new Error("Invalid URI format"); - } - - const documentName = match[1]; - const content = await loadDocument(documentName); - - return { - contents: [{ - uri, - mimeType: "text/plain", - text: content - }] - }; - } -); - -// List available resources dynamically -server.registerResourceList(async () => { - const documents = await getAvailableDocuments(); - return { - resources: documents.map(doc => ({ - uri: `file://documents/${doc.name}`, - name: doc.name, - mimeType: "text/plain", - description: doc.description - })) - }; -}); -``` - -**When to use Resources vs Tools:** -- **Resources**: For data access with simple URI-based parameters -- **Tools**: For complex operations requiring validation and business logic -- **Resources**: When data is relatively static or template-based -- **Tools**: When operations have side effects or complex workflows - -### Transport Options - -The TypeScript SDK supports two main transport mechanisms: - -#### Streamable HTTP (Recommended for Remote Servers) - -```typescript -import { StreamableHTTPServerTransport } from "@modelcontextprotocol/sdk/server/streamableHttp.js"; -import express from "express"; - -const app = express(); -app.use(express.json()); - -app.post('/mcp', async (req, res) => { - // Create new transport for each request (stateless, prevents request ID collisions) - const transport = new StreamableHTTPServerTransport({ - sessionIdGenerator: undefined, - enableJsonResponse: true - }); - - res.on('close', () => transport.close()); - - await server.connect(transport); - await transport.handleRequest(req, res, req.body); -}); - -app.listen(3000); -``` - -#### stdio (For Local Integrations) - -```typescript -import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js"; - -const transport = new StdioServerTransport(); -await server.connect(transport); -``` - -**Transport selection:** -- **Streamable HTTP**: Web services, remote access, multiple clients -- **stdio**: Command-line tools, local development, subprocess integration - -### Notification Support - -Notify clients when server state changes: - -```typescript -// Notify when tools list changes -server.notification({ - method: "notifications/tools/list_changed" -}); - -// Notify when resources change -server.notification({ - method: "notifications/resources/list_changed" -}); -``` - -Use notifications sparingly - only when server capabilities genuinely change. - ---- - -## Code Best Practices - -### Code Composability and Reusability - -Your implementation MUST prioritize composability and code reuse: - -1. **Extract Common Functionality**: - - Create reusable helper functions for operations used across multiple tools - - Build shared API clients for HTTP requests instead of duplicating code - - Centralize error handling logic in utility functions - - Extract business logic into dedicated functions that can be composed - - Extract shared markdown or JSON field selection & formatting functionality - -2. **Avoid Duplication**: - - NEVER copy-paste similar code between tools - - If you find yourself writing similar logic twice, extract it into a function - - Common operations like pagination, filtering, field selection, and formatting should be shared - - Authentication/authorization logic should be centralized - -## Building and Running - -Always build your TypeScript code before running: - -```bash -# Build the project -npm run build - -# Run the server -npm start - -# Development with auto-reload -npm run dev -``` - -Always ensure `npm run build` completes successfully before considering the implementation complete. - -## Quality Checklist - -Before finalizing your Node/TypeScript MCP server implementation, ensure: - -### Strategic Design -- [ ] Tools enable complete workflows, not just API endpoint wrappers -- [ ] Tool names reflect natural task subdivisions -- [ ] Response formats optimize for agent context efficiency -- [ ] Human-readable identifiers used where appropriate -- [ ] Error messages guide agents toward correct usage - -### Implementation Quality -- [ ] FOCUSED IMPLEMENTATION: Most important and valuable tools implemented -- [ ] All tools registered using `registerTool` with complete configuration -- [ ] All tools include `title`, `description`, `inputSchema`, and `annotations` -- [ ] Annotations correctly set (readOnlyHint, destructiveHint, idempotentHint, openWorldHint) -- [ ] All tools use Zod schemas for runtime input validation with `.strict()` enforcement -- [ ] All Zod schemas have proper constraints and descriptive error messages -- [ ] All tools have comprehensive descriptions with explicit input/output types -- [ ] Descriptions include return value examples and complete schema documentation -- [ ] Error messages are clear, actionable, and educational - -### TypeScript Quality -- [ ] TypeScript interfaces are defined for all data structures -- [ ] Strict TypeScript is enabled in tsconfig.json -- [ ] No use of `any` type - use `unknown` or proper types instead -- [ ] All async functions have explicit Promise return types -- [ ] Error handling uses proper type guards (e.g., `axios.isAxiosError`, `z.ZodError`) - -### Advanced Features (where applicable) -- [ ] Resources registered for appropriate data endpoints -- [ ] Appropriate transport configured (stdio or streamable HTTP) -- [ ] Notifications implemented for dynamic server capabilities -- [ ] Type-safe with SDK interfaces - -### Project Configuration -- [ ] Package.json includes all necessary dependencies -- [ ] Build script produces working JavaScript in dist/ directory -- [ ] Main entry point is properly configured as dist/index.js -- [ ] Server name follows format: `{service}-mcp-server` -- [ ] tsconfig.json properly configured with strict mode - -### Code Quality -- [ ] Pagination is properly implemented where applicable -- [ ] Large responses check CHARACTER_LIMIT constant and truncate with clear messages -- [ ] Filtering options are provided for potentially large result sets -- [ ] All network operations handle timeouts and connection errors gracefully -- [ ] Common functionality is extracted into reusable functions -- [ ] Return types are consistent across similar operations - -### Testing and Build -- [ ] `npm run build` completes successfully without errors -- [ ] dist/index.js created and executable -- [ ] Server runs: `node dist/index.js --help` -- [ ] All imports resolve correctly -- [ ] Sample tool calls work as expected \ No newline at end of file diff --git a/plugins/ndf-shared/skills/mcp-builder/reference/python_mcp_server.md b/plugins/ndf-shared/skills/mcp-builder/reference/python_mcp_server.md deleted file mode 100644 index cf7ec996..00000000 --- a/plugins/ndf-shared/skills/mcp-builder/reference/python_mcp_server.md +++ /dev/null @@ -1,719 +0,0 @@ -# Python MCP Server Implementation Guide - -## Overview - -This document provides Python-specific best practices and examples for implementing MCP servers using the MCP Python SDK. It covers server setup, tool registration patterns, input validation with Pydantic, error handling, and complete working examples. - ---- - -## Quick Reference - -### Key Imports -```python -from mcp.server.fastmcp import FastMCP -from pydantic import BaseModel, Field, field_validator, ConfigDict -from typing import Optional, List, Dict, Any -from enum import Enum -import httpx -``` - -### Server Initialization -```python -mcp = FastMCP("service_mcp") -``` - -### Tool Registration Pattern -```python -@mcp.tool(name="tool_name", annotations={...}) -async def tool_function(params: InputModel) -> str: - # Implementation - pass -``` - ---- - -## MCP Python SDK and FastMCP - -The official MCP Python SDK provides FastMCP, a high-level framework for building MCP servers. It provides: -- Automatic description and inputSchema generation from function signatures and docstrings -- Pydantic model integration for input validation -- Decorator-based tool registration with `@mcp.tool` - -**For complete SDK documentation, use WebFetch to load:** -`https://raw.githubusercontent.com/modelcontextprotocol/python-sdk/main/README.md` - -## Server Naming Convention - -Python MCP servers must follow this naming pattern: -- **Format**: `{service}_mcp` (lowercase with underscores) -- **Examples**: `github_mcp`, `jira_mcp`, `stripe_mcp` - -The name should be: -- General (not tied to specific features) -- Descriptive of the service/API being integrated -- Easy to infer from the task description -- Without version numbers or dates - -## Tool Implementation - -### Tool Naming - -Use snake_case for tool names (e.g., "search_users", "create_project", "get_channel_info") with clear, action-oriented names. - -**Avoid Naming Conflicts**: Include the service context to prevent overlaps: -- Use "slack_send_message" instead of just "send_message" -- Use "github_create_issue" instead of just "create_issue" -- Use "asana_list_tasks" instead of just "list_tasks" - -### Tool Structure with FastMCP - -Tools are defined using the `@mcp.tool` decorator with Pydantic models for input validation: - -```python -from pydantic import BaseModel, Field, ConfigDict -from mcp.server.fastmcp import FastMCP - -# Initialize the MCP server -mcp = FastMCP("example_mcp") - -# Define Pydantic model for input validation -class ServiceToolInput(BaseModel): - '''Input model for service tool operation.''' - model_config = ConfigDict( - str_strip_whitespace=True, # Auto-strip whitespace from strings - validate_assignment=True, # Validate on assignment - extra='forbid' # Forbid extra fields - ) - - param1: str = Field(..., description="First parameter description (e.g., 'user123', 'project-abc')", min_length=1, max_length=100) - param2: Optional[int] = Field(default=None, description="Optional integer parameter with constraints", ge=0, le=1000) - tags: Optional[List[str]] = Field(default_factory=list, description="List of tags to apply", max_items=10) - -@mcp.tool( - name="service_tool_name", - annotations={ - "title": "Human-Readable Tool Title", - "readOnlyHint": True, # Tool does not modify environment - "destructiveHint": False, # Tool does not perform destructive operations - "idempotentHint": True, # Repeated calls have no additional effect - "openWorldHint": False # Tool does not interact with external entities - } -) -async def service_tool_name(params: ServiceToolInput) -> str: - '''Tool description automatically becomes the 'description' field. - - This tool performs a specific operation on the service. It validates all inputs - using the ServiceToolInput Pydantic model before processing. - - Args: - params (ServiceToolInput): Validated input parameters containing: - - param1 (str): First parameter description - - param2 (Optional[int]): Optional parameter with default - - tags (Optional[List[str]]): List of tags - - Returns: - str: JSON-formatted response containing operation results - ''' - # Implementation here - pass -``` - -## Pydantic v2 Key Features - -- Use `model_config` instead of nested `Config` class -- Use `field_validator` instead of deprecated `validator` -- Use `model_dump()` instead of deprecated `dict()` -- Validators require `@classmethod` decorator -- Type hints are required for validator methods - -```python -from pydantic import BaseModel, Field, field_validator, ConfigDict - -class CreateUserInput(BaseModel): - model_config = ConfigDict( - str_strip_whitespace=True, - validate_assignment=True - ) - - name: str = Field(..., description="User's full name", min_length=1, max_length=100) - email: str = Field(..., description="User's email address", pattern=r'^[\w\.-]+@[\w\.-]+\.\w+$') - age: int = Field(..., description="User's age", ge=0, le=150) - - @field_validator('email') - @classmethod - def validate_email(cls, v: str) -> str: - if not v.strip(): - raise ValueError("Email cannot be empty") - return v.lower() -``` - -## Response Format Options - -Support multiple output formats for flexibility: - -```python -from enum import Enum - -class ResponseFormat(str, Enum): - '''Output format for tool responses.''' - MARKDOWN = "markdown" - JSON = "json" - -class UserSearchInput(BaseModel): - query: str = Field(..., description="Search query") - response_format: ResponseFormat = Field( - default=ResponseFormat.MARKDOWN, - description="Output format: 'markdown' for human-readable or 'json' for machine-readable" - ) -``` - -**Markdown format**: -- Use headers, lists, and formatting for clarity -- Convert timestamps to human-readable format (e.g., "2024-01-15 10:30:00 UTC" instead of epoch) -- Show display names with IDs in parentheses (e.g., "@john.doe (U123456)") -- Omit verbose metadata (e.g., show only one profile image URL, not all sizes) -- Group related information logically - -**JSON format**: -- Return complete, structured data suitable for programmatic processing -- Include all available fields and metadata -- Use consistent field names and types - -## Pagination Implementation - -For tools that list resources: - -```python -class ListInput(BaseModel): - limit: Optional[int] = Field(default=20, description="Maximum results to return", ge=1, le=100) - offset: Optional[int] = Field(default=0, description="Number of results to skip for pagination", ge=0) - -async def list_items(params: ListInput) -> str: - # Make API request with pagination - data = await api_request(limit=params.limit, offset=params.offset) - - # Return pagination info - response = { - "total": data["total"], - "count": len(data["items"]), - "offset": params.offset, - "items": data["items"], - "has_more": data["total"] > params.offset + len(data["items"]), - "next_offset": params.offset + len(data["items"]) if data["total"] > params.offset + len(data["items"]) else None - } - return json.dumps(response, indent=2) -``` - -## Error Handling - -Provide clear, actionable error messages: - -```python -def _handle_api_error(e: Exception) -> str: - '''Consistent error formatting across all tools.''' - if isinstance(e, httpx.HTTPStatusError): - if e.response.status_code == 404: - return "Error: Resource not found. Please check the ID is correct." - elif e.response.status_code == 403: - return "Error: Permission denied. You don't have access to this resource." - elif e.response.status_code == 429: - return "Error: Rate limit exceeded. Please wait before making more requests." - return f"Error: API request failed with status {e.response.status_code}" - elif isinstance(e, httpx.TimeoutException): - return "Error: Request timed out. Please try again." - return f"Error: Unexpected error occurred: {type(e).__name__}" -``` - -## Shared Utilities - -Extract common functionality into reusable functions: - -```python -# Shared API request function -async def _make_api_request(endpoint: str, method: str = "GET", **kwargs) -> dict: - '''Reusable function for all API calls.''' - async with httpx.AsyncClient() as client: - response = await client.request( - method, - f"{API_BASE_URL}/{endpoint}", - timeout=30.0, - **kwargs - ) - response.raise_for_status() - return response.json() -``` - -## Async/Await Best Practices - -Always use async/await for network requests and I/O operations: - -```python -# Good: Async network request -async def fetch_data(resource_id: str) -> dict: - async with httpx.AsyncClient() as client: - response = await client.get(f"{API_URL}/resource/{resource_id}") - response.raise_for_status() - return response.json() - -# Bad: Synchronous request -def fetch_data(resource_id: str) -> dict: - response = requests.get(f"{API_URL}/resource/{resource_id}") # Blocks - return response.json() -``` - -## Type Hints - -Use type hints throughout: - -```python -from typing import Optional, List, Dict, Any - -async def get_user(user_id: str) -> Dict[str, Any]: - data = await fetch_user(user_id) - return {"id": data["id"], "name": data["name"]} -``` - -## Tool Docstrings - -Every tool must have comprehensive docstrings with explicit type information: - -```python -async def search_users(params: UserSearchInput) -> str: - ''' - Search for users in the Example system by name, email, or team. - - This tool searches across all user profiles in the Example platform, - supporting partial matches and various search filters. It does NOT - create or modify users, only searches existing ones. - - Args: - params (UserSearchInput): Validated input parameters containing: - - query (str): Search string to match against names/emails (e.g., "john", "@example.com", "team:marketing") - - limit (Optional[int]): Maximum results to return, between 1-100 (default: 20) - - offset (Optional[int]): Number of results to skip for pagination (default: 0) - - Returns: - str: JSON-formatted string containing search results with the following schema: - - Success response: - { - "total": int, # Total number of matches found - "count": int, # Number of results in this response - "offset": int, # Current pagination offset - "users": [ - { - "id": str, # User ID (e.g., "U123456789") - "name": str, # Full name (e.g., "John Doe") - "email": str, # Email address (e.g., "john@example.com") - "team": str # Team name (e.g., "Marketing") - optional - } - ] - } - - Error response: - "Error: " or "No users found matching ''" - - Examples: - - Use when: "Find all marketing team members" -> params with query="team:marketing" - - Use when: "Search for John's account" -> params with query="john" - - Don't use when: You need to create a user (use example_create_user instead) - - Don't use when: You have a user ID and need full details (use example_get_user instead) - - Error Handling: - - Input validation errors are handled by Pydantic model - - Returns "Error: Rate limit exceeded" if too many requests (429 status) - - Returns "Error: Invalid API authentication" if API key is invalid (401 status) - - Returns formatted list of results or "No users found matching 'query'" - ''' -``` - -## Complete Example - -See below for a complete Python MCP server example: - -```python -#!/usr/bin/env python3 -''' -MCP Server for Example Service. - -This server provides tools to interact with Example API, including user search, -project management, and data export capabilities. -''' - -from typing import Optional, List, Dict, Any -from enum import Enum -import httpx -from pydantic import BaseModel, Field, field_validator, ConfigDict -from mcp.server.fastmcp import FastMCP - -# Initialize the MCP server -mcp = FastMCP("example_mcp") - -# Constants -API_BASE_URL = "https://api.example.com/v1" - -# Enums -class ResponseFormat(str, Enum): - '''Output format for tool responses.''' - MARKDOWN = "markdown" - JSON = "json" - -# Pydantic Models for Input Validation -class UserSearchInput(BaseModel): - '''Input model for user search operations.''' - model_config = ConfigDict( - str_strip_whitespace=True, - validate_assignment=True - ) - - query: str = Field(..., description="Search string to match against names/emails", min_length=2, max_length=200) - limit: Optional[int] = Field(default=20, description="Maximum results to return", ge=1, le=100) - offset: Optional[int] = Field(default=0, description="Number of results to skip for pagination", ge=0) - response_format: ResponseFormat = Field(default=ResponseFormat.MARKDOWN, description="Output format") - - @field_validator('query') - @classmethod - def validate_query(cls, v: str) -> str: - if not v.strip(): - raise ValueError("Query cannot be empty or whitespace only") - return v.strip() - -# Shared utility functions -async def _make_api_request(endpoint: str, method: str = "GET", **kwargs) -> dict: - '''Reusable function for all API calls.''' - async with httpx.AsyncClient() as client: - response = await client.request( - method, - f"{API_BASE_URL}/{endpoint}", - timeout=30.0, - **kwargs - ) - response.raise_for_status() - return response.json() - -def _handle_api_error(e: Exception) -> str: - '''Consistent error formatting across all tools.''' - if isinstance(e, httpx.HTTPStatusError): - if e.response.status_code == 404: - return "Error: Resource not found. Please check the ID is correct." - elif e.response.status_code == 403: - return "Error: Permission denied. You don't have access to this resource." - elif e.response.status_code == 429: - return "Error: Rate limit exceeded. Please wait before making more requests." - return f"Error: API request failed with status {e.response.status_code}" - elif isinstance(e, httpx.TimeoutException): - return "Error: Request timed out. Please try again." - return f"Error: Unexpected error occurred: {type(e).__name__}" - -# Tool definitions -@mcp.tool( - name="example_search_users", - annotations={ - "title": "Search Example Users", - "readOnlyHint": True, - "destructiveHint": False, - "idempotentHint": True, - "openWorldHint": True - } -) -async def example_search_users(params: UserSearchInput) -> str: - '''Search for users in the Example system by name, email, or team. - - [Full docstring as shown above] - ''' - try: - # Make API request using validated parameters - data = await _make_api_request( - "users/search", - params={ - "q": params.query, - "limit": params.limit, - "offset": params.offset - } - ) - - users = data.get("users", []) - total = data.get("total", 0) - - if not users: - return f"No users found matching '{params.query}'" - - # Format response based on requested format - if params.response_format == ResponseFormat.MARKDOWN: - lines = [f"# User Search Results: '{params.query}'", ""] - lines.append(f"Found {total} users (showing {len(users)})") - lines.append("") - - for user in users: - lines.append(f"## {user['name']} ({user['id']})") - lines.append(f"- **Email**: {user['email']}") - if user.get('team'): - lines.append(f"- **Team**: {user['team']}") - lines.append("") - - return "\n".join(lines) - - else: - # Machine-readable JSON format - import json - response = { - "total": total, - "count": len(users), - "offset": params.offset, - "users": users - } - return json.dumps(response, indent=2) - - except Exception as e: - return _handle_api_error(e) - -if __name__ == "__main__": - mcp.run() -``` - ---- - -## Advanced FastMCP Features - -### Context Parameter Injection - -FastMCP can automatically inject a `Context` parameter into tools for advanced capabilities like logging, progress reporting, resource reading, and user interaction: - -```python -from mcp.server.fastmcp import FastMCP, Context - -mcp = FastMCP("example_mcp") - -@mcp.tool() -async def advanced_search(query: str, ctx: Context) -> str: - '''Advanced tool with context access for logging and progress.''' - - # Report progress for long operations - await ctx.report_progress(0.25, "Starting search...") - - # Log information for debugging - await ctx.log_info("Processing query", {"query": query, "timestamp": datetime.now()}) - - # Perform search - results = await search_api(query) - await ctx.report_progress(0.75, "Formatting results...") - - # Access server configuration - server_name = ctx.fastmcp.name - - return format_results(results) - -@mcp.tool() -async def interactive_tool(resource_id: str, ctx: Context) -> str: - '''Tool that can request additional input from users.''' - - # Request sensitive information when needed - api_key = await ctx.elicit( - prompt="Please provide your API key:", - input_type="password" - ) - - # Use the provided key - return await api_call(resource_id, api_key) -``` - -**Context capabilities:** -- `ctx.report_progress(progress, message)` - Report progress for long operations -- `ctx.log_info(message, data)` / `ctx.log_error()` / `ctx.log_debug()` - Logging -- `ctx.elicit(prompt, input_type)` - Request input from users -- `ctx.fastmcp.name` - Access server configuration -- `ctx.read_resource(uri)` - Read MCP resources - -### Resource Registration - -Expose data as resources for efficient, template-based access: - -```python -@mcp.resource("file://documents/{name}") -async def get_document(name: str) -> str: - '''Expose documents as MCP resources. - - Resources are useful for static or semi-static data that doesn't - require complex parameters. They use URI templates for flexible access. - ''' - document_path = f"./docs/{name}" - with open(document_path, "r") as f: - return f.read() - -@mcp.resource("config://settings/{key}") -async def get_setting(key: str, ctx: Context) -> str: - '''Expose configuration as resources with context.''' - settings = await load_settings() - return json.dumps(settings.get(key, {})) -``` - -**When to use Resources vs Tools:** -- **Resources**: For data access with simple parameters (URI templates) -- **Tools**: For complex operations with validation and business logic - -### Structured Output Types - -FastMCP supports multiple return types beyond strings: - -```python -from typing import TypedDict -from dataclasses import dataclass -from pydantic import BaseModel - -# TypedDict for structured returns -class UserData(TypedDict): - id: str - name: str - email: str - -@mcp.tool() -async def get_user_typed(user_id: str) -> UserData: - '''Returns structured data - FastMCP handles serialization.''' - return {"id": user_id, "name": "John Doe", "email": "john@example.com"} - -# Pydantic models for complex validation -class DetailedUser(BaseModel): - id: str - name: str - email: str - created_at: datetime - metadata: Dict[str, Any] - -@mcp.tool() -async def get_user_detailed(user_id: str) -> DetailedUser: - '''Returns Pydantic model - automatically generates schema.''' - user = await fetch_user(user_id) - return DetailedUser(**user) -``` - -### Lifespan Management - -Initialize resources that persist across requests: - -```python -from contextlib import asynccontextmanager - -@asynccontextmanager -async def app_lifespan(): - '''Manage resources that live for the server's lifetime.''' - # Initialize connections, load config, etc. - db = await connect_to_database() - config = load_configuration() - - # Make available to all tools - yield {"db": db, "config": config} - - # Cleanup on shutdown - await db.close() - -mcp = FastMCP("example_mcp", lifespan=app_lifespan) - -@mcp.tool() -async def query_data(query: str, ctx: Context) -> str: - '''Access lifespan resources through context.''' - db = ctx.request_context.lifespan_state["db"] - results = await db.query(query) - return format_results(results) -``` - -### Transport Options - -FastMCP supports two main transport mechanisms: - -```python -# stdio transport (for local tools) - default -if __name__ == "__main__": - mcp.run() - -# Streamable HTTP transport (for remote servers) -if __name__ == "__main__": - mcp.run(transport="streamable_http", port=8000) -``` - -**Transport selection:** -- **stdio**: Command-line tools, local integrations, subprocess execution -- **Streamable HTTP**: Web services, remote access, multiple clients - ---- - -## Code Best Practices - -### Code Composability and Reusability - -Your implementation MUST prioritize composability and code reuse: - -1. **Extract Common Functionality**: - - Create reusable helper functions for operations used across multiple tools - - Build shared API clients for HTTP requests instead of duplicating code - - Centralize error handling logic in utility functions - - Extract business logic into dedicated functions that can be composed - - Extract shared markdown or JSON field selection & formatting functionality - -2. **Avoid Duplication**: - - NEVER copy-paste similar code between tools - - If you find yourself writing similar logic twice, extract it into a function - - Common operations like pagination, filtering, field selection, and formatting should be shared - - Authentication/authorization logic should be centralized - -### Python-Specific Best Practices - -1. **Use Type Hints**: Always include type annotations for function parameters and return values -2. **Pydantic Models**: Define clear Pydantic models for all input validation -3. **Avoid Manual Validation**: Let Pydantic handle input validation with constraints -4. **Proper Imports**: Group imports (standard library, third-party, local) -5. **Error Handling**: Use specific exception types (httpx.HTTPStatusError, not generic Exception) -6. **Async Context Managers**: Use `async with` for resources that need cleanup -7. **Constants**: Define module-level constants in UPPER_CASE - -## Quality Checklist - -Before finalizing your Python MCP server implementation, ensure: - -### Strategic Design -- [ ] Tools enable complete workflows, not just API endpoint wrappers -- [ ] Tool names reflect natural task subdivisions -- [ ] Response formats optimize for agent context efficiency -- [ ] Human-readable identifiers used where appropriate -- [ ] Error messages guide agents toward correct usage - -### Implementation Quality -- [ ] FOCUSED IMPLEMENTATION: Most important and valuable tools implemented -- [ ] All tools have descriptive names and documentation -- [ ] Return types are consistent across similar operations -- [ ] Error handling is implemented for all external calls -- [ ] Server name follows format: `{service}_mcp` -- [ ] All network operations use async/await -- [ ] Common functionality is extracted into reusable functions -- [ ] Error messages are clear, actionable, and educational -- [ ] Outputs are properly validated and formatted - -### Tool Configuration -- [ ] All tools implement 'name' and 'annotations' in the decorator -- [ ] Annotations correctly set (readOnlyHint, destructiveHint, idempotentHint, openWorldHint) -- [ ] All tools use Pydantic BaseModel for input validation with Field() definitions -- [ ] All Pydantic Fields have explicit types and descriptions with constraints -- [ ] All tools have comprehensive docstrings with explicit input/output types -- [ ] Docstrings include complete schema structure for dict/JSON returns -- [ ] Pydantic models handle input validation (no manual validation needed) - -### Advanced Features (where applicable) -- [ ] Context injection used for logging, progress, or elicitation -- [ ] Resources registered for appropriate data endpoints -- [ ] Lifespan management implemented for persistent connections -- [ ] Structured output types used (TypedDict, Pydantic models) -- [ ] Appropriate transport configured (stdio or streamable HTTP) - -### Code Quality -- [ ] File includes proper imports including Pydantic imports -- [ ] Pagination is properly implemented where applicable -- [ ] Filtering options are provided for potentially large result sets -- [ ] All async functions are properly defined with `async def` -- [ ] HTTP client usage follows async patterns with proper context managers -- [ ] Type hints are used throughout the code -- [ ] Constants are defined at module level in UPPER_CASE - -### Testing -- [ ] Server runs successfully: `python your_server.py --help` -- [ ] All imports resolve correctly -- [ ] Sample tool calls work as expected -- [ ] Error scenarios handled gracefully \ No newline at end of file diff --git a/plugins/ndf-shared/skills/mcp-builder/scripts/connections.py b/plugins/ndf-shared/skills/mcp-builder/scripts/connections.py deleted file mode 100644 index ffcd0da3..00000000 --- a/plugins/ndf-shared/skills/mcp-builder/scripts/connections.py +++ /dev/null @@ -1,151 +0,0 @@ -"""Lightweight connection handling for MCP servers.""" - -from abc import ABC, abstractmethod -from contextlib import AsyncExitStack -from typing import Any - -from mcp import ClientSession, StdioServerParameters -from mcp.client.sse import sse_client -from mcp.client.stdio import stdio_client -from mcp.client.streamable_http import streamablehttp_client - - -class MCPConnection(ABC): - """Base class for MCP server connections.""" - - def __init__(self): - self.session = None - self._stack = None - - @abstractmethod - def _create_context(self): - """Create the connection context based on connection type.""" - - async def __aenter__(self): - """Initialize MCP server connection.""" - self._stack = AsyncExitStack() - await self._stack.__aenter__() - - try: - ctx = self._create_context() - result = await self._stack.enter_async_context(ctx) - - if len(result) == 2: - read, write = result - elif len(result) == 3: - read, write, _ = result - else: - raise ValueError(f"Unexpected context result: {result}") - - session_ctx = ClientSession(read, write) - self.session = await self._stack.enter_async_context(session_ctx) - await self.session.initialize() - return self - except BaseException: - await self._stack.__aexit__(None, None, None) - raise - - async def __aexit__(self, exc_type, exc_val, exc_tb): - """Clean up MCP server connection resources.""" - if self._stack: - await self._stack.__aexit__(exc_type, exc_val, exc_tb) - self.session = None - self._stack = None - - async def list_tools(self) -> list[dict[str, Any]]: - """Retrieve available tools from the MCP server.""" - response = await self.session.list_tools() - return [ - { - "name": tool.name, - "description": tool.description, - "input_schema": tool.inputSchema, - } - for tool in response.tools - ] - - async def call_tool(self, tool_name: str, arguments: dict[str, Any]) -> Any: - """Call a tool on the MCP server with provided arguments.""" - result = await self.session.call_tool(tool_name, arguments=arguments) - return result.content - - -class MCPConnectionStdio(MCPConnection): - """MCP connection using standard input/output.""" - - def __init__(self, command: str, args: list[str] = None, env: dict[str, str] = None): - super().__init__() - self.command = command - self.args = args or [] - self.env = env - - def _create_context(self): - return stdio_client( - StdioServerParameters(command=self.command, args=self.args, env=self.env) - ) - - -class MCPConnectionSSE(MCPConnection): - """MCP connection using Server-Sent Events.""" - - def __init__(self, url: str, headers: dict[str, str] = None): - super().__init__() - self.url = url - self.headers = headers or {} - - def _create_context(self): - return sse_client(url=self.url, headers=self.headers) - - -class MCPConnectionHTTP(MCPConnection): - """MCP connection using Streamable HTTP.""" - - def __init__(self, url: str, headers: dict[str, str] = None): - super().__init__() - self.url = url - self.headers = headers or {} - - def _create_context(self): - return streamablehttp_client(url=self.url, headers=self.headers) - - -def create_connection( - transport: str, - command: str = None, - args: list[str] = None, - env: dict[str, str] = None, - url: str = None, - headers: dict[str, str] = None, -) -> MCPConnection: - """Factory function to create the appropriate MCP connection. - - Args: - transport: Connection type ("stdio", "sse", or "http") - command: Command to run (stdio only) - args: Command arguments (stdio only) - env: Environment variables (stdio only) - url: Server URL (sse and http only) - headers: HTTP headers (sse and http only) - - Returns: - MCPConnection instance - """ - transport = transport.lower() - - if transport == "stdio": - if not command: - raise ValueError("Command is required for stdio transport") - return MCPConnectionStdio(command=command, args=args, env=env) - - elif transport == "sse": - if not url: - raise ValueError("URL is required for sse transport") - return MCPConnectionSSE(url=url, headers=headers) - - elif transport in ["http", "streamable_http", "streamable-http"]: - if not url: - raise ValueError("URL is required for http transport") - return MCPConnectionHTTP(url=url, headers=headers) - - else: - raise ValueError(f"Unsupported transport type: {transport}. Use 'stdio', 'sse', or 'http'") diff --git a/plugins/ndf-shared/skills/mcp-builder/scripts/evaluation.py b/plugins/ndf-shared/skills/mcp-builder/scripts/evaluation.py deleted file mode 100644 index 41778569..00000000 --- a/plugins/ndf-shared/skills/mcp-builder/scripts/evaluation.py +++ /dev/null @@ -1,373 +0,0 @@ -"""MCP Server Evaluation Harness - -This script evaluates MCP servers by running test questions against them using Claude. -""" - -import argparse -import asyncio -import json -import re -import sys -import time -import traceback -import xml.etree.ElementTree as ET -from pathlib import Path -from typing import Any - -from anthropic import Anthropic - -from connections import create_connection - -EVALUATION_PROMPT = """You are an AI assistant with access to tools. - -When given a task, you MUST: -1. Use the available tools to complete the task -2. Provide summary of each step in your approach, wrapped in tags -3. Provide feedback on the tools provided, wrapped in tags -4. Provide your final response, wrapped in tags - -Summary Requirements: -- In your tags, you must explain: - - The steps you took to complete the task - - Which tools you used, in what order, and why - - The inputs you provided to each tool - - The outputs you received from each tool - - A summary for how you arrived at the response - -Feedback Requirements: -- In your tags, provide constructive feedback on the tools: - - Comment on tool names: Are they clear and descriptive? - - Comment on input parameters: Are they well-documented? Are required vs optional parameters clear? - - Comment on descriptions: Do they accurately describe what the tool does? - - Comment on any errors encountered during tool usage: Did the tool fail to execute? Did the tool return too many tokens? - - Identify specific areas for improvement and explain WHY they would help - - Be specific and actionable in your suggestions - -Response Requirements: -- Your response should be concise and directly address what was asked -- Always wrap your final response in tags -- If you cannot solve the task return NOT_FOUND -- For numeric responses, provide just the number -- For IDs, provide just the ID -- For names or text, provide the exact text requested -- Your response should go last""" - - -def parse_evaluation_file(file_path: Path) -> list[dict[str, Any]]: - """Parse XML evaluation file with qa_pair elements.""" - try: - tree = ET.parse(file_path) - root = tree.getroot() - evaluations = [] - - for qa_pair in root.findall(".//qa_pair"): - question_elem = qa_pair.find("question") - answer_elem = qa_pair.find("answer") - - if question_elem is not None and answer_elem is not None: - evaluations.append({ - "question": (question_elem.text or "").strip(), - "answer": (answer_elem.text or "").strip(), - }) - - return evaluations - except Exception as e: - print(f"Error parsing evaluation file {file_path}: {e}") - return [] - - -def extract_xml_content(text: str, tag: str) -> str | None: - """Extract content from XML tags.""" - pattern = rf"<{tag}>(.*?)" - matches = re.findall(pattern, text, re.DOTALL) - return matches[-1].strip() if matches else None - - -async def agent_loop( - client: Anthropic, - model: str, - question: str, - tools: list[dict[str, Any]], - connection: Any, -) -> tuple[str, dict[str, Any]]: - """Run the agent loop with MCP tools.""" - messages = [{"role": "user", "content": question}] - - response = await asyncio.to_thread( - client.messages.create, - model=model, - max_tokens=4096, - system=EVALUATION_PROMPT, - messages=messages, - tools=tools, - ) - - messages.append({"role": "assistant", "content": response.content}) - - tool_metrics = {} - - while response.stop_reason == "tool_use": - tool_use = next(block for block in response.content if block.type == "tool_use") - tool_name = tool_use.name - tool_input = tool_use.input - - tool_start_ts = time.time() - try: - tool_result = await connection.call_tool(tool_name, tool_input) - tool_response = json.dumps(tool_result) if isinstance(tool_result, (dict, list)) else str(tool_result) - except Exception as e: - tool_response = f"Error executing tool {tool_name}: {str(e)}\n" - tool_response += traceback.format_exc() - tool_duration = time.time() - tool_start_ts - - if tool_name not in tool_metrics: - tool_metrics[tool_name] = {"count": 0, "durations": []} - tool_metrics[tool_name]["count"] += 1 - tool_metrics[tool_name]["durations"].append(tool_duration) - - messages.append({ - "role": "user", - "content": [{ - "type": "tool_result", - "tool_use_id": tool_use.id, - "content": tool_response, - }] - }) - - response = await asyncio.to_thread( - client.messages.create, - model=model, - max_tokens=4096, - system=EVALUATION_PROMPT, - messages=messages, - tools=tools, - ) - messages.append({"role": "assistant", "content": response.content}) - - response_text = next( - (block.text for block in response.content if hasattr(block, "text")), - None, - ) - return response_text, tool_metrics - - -async def evaluate_single_task( - client: Anthropic, - model: str, - qa_pair: dict[str, Any], - tools: list[dict[str, Any]], - connection: Any, - task_index: int, -) -> dict[str, Any]: - """Evaluate a single QA pair with the given tools.""" - start_time = time.time() - - print(f"Task {task_index + 1}: Running task with question: {qa_pair['question']}") - response, tool_metrics = await agent_loop(client, model, qa_pair["question"], tools, connection) - - response_value = extract_xml_content(response, "response") - summary = extract_xml_content(response, "summary") - feedback = extract_xml_content(response, "feedback") - - duration_seconds = time.time() - start_time - - return { - "question": qa_pair["question"], - "expected": qa_pair["answer"], - "actual": response_value, - "score": int(response_value == qa_pair["answer"]) if response_value else 0, - "total_duration": duration_seconds, - "tool_calls": tool_metrics, - "num_tool_calls": sum(len(metrics["durations"]) for metrics in tool_metrics.values()), - "summary": summary, - "feedback": feedback, - } - - -REPORT_HEADER = """ -# Evaluation Report - -## Summary - -- **Accuracy**: {correct}/{total} ({accuracy:.1f}%) -- **Average Task Duration**: {average_duration_s:.2f}s -- **Average Tool Calls per Task**: {average_tool_calls:.2f} -- **Total Tool Calls**: {total_tool_calls} - ---- -""" - -TASK_TEMPLATE = """ -### Task {task_num} - -**Question**: {question} -**Ground Truth Answer**: `{expected_answer}` -**Actual Answer**: `{actual_answer}` -**Correct**: {correct_indicator} -**Duration**: {total_duration:.2f}s -**Tool Calls**: {tool_calls} - -**Summary** -{summary} - -**Feedback** -{feedback} - ---- -""" - - -async def run_evaluation( - eval_path: Path, - connection: Any, - model: str = "claude-3-7-sonnet-20250219", -) -> str: - """Run evaluation with MCP server tools.""" - print("🚀 Starting Evaluation") - - client = Anthropic() - - tools = await connection.list_tools() - print(f"📋 Loaded {len(tools)} tools from MCP server") - - qa_pairs = parse_evaluation_file(eval_path) - print(f"📋 Loaded {len(qa_pairs)} evaluation tasks") - - results = [] - for i, qa_pair in enumerate(qa_pairs): - print(f"Processing task {i + 1}/{len(qa_pairs)}") - result = await evaluate_single_task(client, model, qa_pair, tools, connection, i) - results.append(result) - - correct = sum(r["score"] for r in results) - accuracy = (correct / len(results)) * 100 if results else 0 - average_duration_s = sum(r["total_duration"] for r in results) / len(results) if results else 0 - average_tool_calls = sum(r["num_tool_calls"] for r in results) / len(results) if results else 0 - total_tool_calls = sum(r["num_tool_calls"] for r in results) - - report = REPORT_HEADER.format( - correct=correct, - total=len(results), - accuracy=accuracy, - average_duration_s=average_duration_s, - average_tool_calls=average_tool_calls, - total_tool_calls=total_tool_calls, - ) - - report += "".join([ - TASK_TEMPLATE.format( - task_num=i + 1, - question=qa_pair["question"], - expected_answer=qa_pair["answer"], - actual_answer=result["actual"] or "N/A", - correct_indicator="✅" if result["score"] else "❌", - total_duration=result["total_duration"], - tool_calls=json.dumps(result["tool_calls"], indent=2), - summary=result["summary"] or "N/A", - feedback=result["feedback"] or "N/A", - ) - for i, (qa_pair, result) in enumerate(zip(qa_pairs, results)) - ]) - - return report - - -def parse_headers(header_list: list[str]) -> dict[str, str]: - """Parse header strings in format 'Key: Value' into a dictionary.""" - headers = {} - if not header_list: - return headers - - for header in header_list: - if ":" in header: - key, value = header.split(":", 1) - headers[key.strip()] = value.strip() - else: - print(f"Warning: Ignoring malformed header: {header}") - return headers - - -def parse_env_vars(env_list: list[str]) -> dict[str, str]: - """Parse environment variable strings in format 'KEY=VALUE' into a dictionary.""" - env = {} - if not env_list: - return env - - for env_var in env_list: - if "=" in env_var: - key, value = env_var.split("=", 1) - env[key.strip()] = value.strip() - else: - print(f"Warning: Ignoring malformed environment variable: {env_var}") - return env - - -async def main(): - parser = argparse.ArgumentParser( - description="Evaluate MCP servers using test questions", - formatter_class=argparse.RawDescriptionHelpFormatter, - epilog=""" -Examples: - # Evaluate a local stdio MCP server - python evaluation.py -t stdio -c python -a my_server.py eval.xml - - # Evaluate an SSE MCP server - python evaluation.py -t sse -u https://example.com/mcp -H "Authorization: Bearer token" eval.xml - - # Evaluate an HTTP MCP server with custom model - python evaluation.py -t http -u https://example.com/mcp -m claude-3-5-sonnet-20241022 eval.xml - """, - ) - - parser.add_argument("eval_file", type=Path, help="Path to evaluation XML file") - parser.add_argument("-t", "--transport", choices=["stdio", "sse", "http"], default="stdio", help="Transport type (default: stdio)") - parser.add_argument("-m", "--model", default="claude-3-7-sonnet-20250219", help="Claude model to use (default: claude-3-7-sonnet-20250219)") - - stdio_group = parser.add_argument_group("stdio options") - stdio_group.add_argument("-c", "--command", help="Command to run MCP server (stdio only)") - stdio_group.add_argument("-a", "--args", nargs="+", help="Arguments for the command (stdio only)") - stdio_group.add_argument("-e", "--env", nargs="+", help="Environment variables in KEY=VALUE format (stdio only)") - - remote_group = parser.add_argument_group("sse/http options") - remote_group.add_argument("-u", "--url", help="MCP server URL (sse/http only)") - remote_group.add_argument("-H", "--header", nargs="+", dest="headers", help="HTTP headers in 'Key: Value' format (sse/http only)") - - parser.add_argument("-o", "--output", type=Path, help="Output file for evaluation report (default: stdout)") - - args = parser.parse_args() - - if not args.eval_file.exists(): - print(f"Error: Evaluation file not found: {args.eval_file}") - sys.exit(1) - - headers = parse_headers(args.headers) if args.headers else None - env_vars = parse_env_vars(args.env) if args.env else None - - try: - connection = create_connection( - transport=args.transport, - command=args.command, - args=args.args, - env=env_vars, - url=args.url, - headers=headers, - ) - except ValueError as e: - print(f"Error: {e}") - sys.exit(1) - - print(f"🔗 Connecting to MCP server via {args.transport}...") - - async with connection: - print("✅ Connected successfully") - report = await run_evaluation(args.eval_file, connection, args.model) - - if args.output: - args.output.write_text(report) - print(f"\n✅ Report saved to {args.output}") - else: - print("\n" + report) - - -if __name__ == "__main__": - asyncio.run(main()) diff --git a/plugins/ndf-shared/skills/mcp-builder/scripts/example_evaluation.xml b/plugins/ndf-shared/skills/mcp-builder/scripts/example_evaluation.xml deleted file mode 100644 index 41e4459b..00000000 --- a/plugins/ndf-shared/skills/mcp-builder/scripts/example_evaluation.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - Calculate the compound interest on $10,000 invested at 5% annual interest rate, compounded monthly for 3 years. What is the final amount in dollars (rounded to 2 decimal places)? - 11614.72 - - - A projectile is launched at a 45-degree angle with an initial velocity of 50 m/s. Calculate the total distance (in meters) it has traveled from the launch point after 2 seconds, assuming g=9.8 m/s². Round to 2 decimal places. - 87.25 - - - A sphere has a volume of 500 cubic meters. Calculate its surface area in square meters. Round to 2 decimal places. - 304.65 - - - Calculate the population standard deviation of this dataset: [12, 15, 18, 22, 25, 30, 35]. Round to 2 decimal places. - 7.61 - - - Calculate the pH of a solution with a hydrogen ion concentration of 3.5 × 10^-5 M. Round to 2 decimal places. - 4.46 - - diff --git a/plugins/ndf-shared/skills/mcp-builder/scripts/requirements.txt b/plugins/ndf-shared/skills/mcp-builder/scripts/requirements.txt deleted file mode 100644 index e73e5d1e..00000000 --- a/plugins/ndf-shared/skills/mcp-builder/scripts/requirements.txt +++ /dev/null @@ -1,2 +0,0 @@ -anthropic>=0.39.0 -mcp>=1.1.0 diff --git a/plugins/ndf-shared/skills/official-skills-autoloader/SKILL.md b/plugins/ndf-shared/skills/official-skills-autoloader/SKILL.md index 40a852ec..46e3dace 100644 --- a/plugins/ndf-shared/skills/official-skills-autoloader/SKILL.md +++ b/plugins/ndf-shared/skills/official-skills-autoloader/SKILL.md @@ -1,7 +1,6 @@ --- name: official-skills-autoloader -description: "Install and use official document Skills on demand." -when_to_use: "Use when user requests Word/Excel/PowerPoint/PDF creation/editing, frontend design, webapp testing, or other tasks handled by Anthropic's official skills collection. Triggers: 'Word作成', 'Excel出力', 'スライド生成', 'PDF作成', '.docx', '.pptx', '.xlsx', '.pdf', 'create docx', 'generate excel', 'make slides', 'create pdf'." +description: "Install an Anthropic official Skill on demand and run it. Use when the request needs Word/Excel/PowerPoint/PDF creation or editing, frontend design, webapp testing, or MCP server scaffolding(Word作成 / Excel出力 / スライド生成 / PDF作成 / .docx / .pptx / .xlsx / .pdf / MCPサーバーを作りたい). Claude Code 専用。" allowed-tools: - Bash - Read @@ -24,6 +23,13 @@ allowed-tools: | HTML/Reactアプリ生成 / Artifacts | `web-artifacts-builder` | | 新規Skill作成 | `skill-creator` | | Claude API / SDK開発 | `claude-api` | +| MCPサーバー作成 | `mcp-builder` | + +## 対応ランタイム + +**Claude Code 専用**。インストール先の `~/.claude/skills/` を読むのは Claude Code だけで、Codex は `.agents/skills/`、Kiro CLI は `.kiro/skills/` を読む。両ランタイムでは公式 Skill の自動読込は行われないため、配布するとしても Claude Code の manifest に限る。 + +なお現在この Skill はどの manifest にも載っておらず、配布物へ含まれていない。`description` を直しても配布されるまで発動はしない。 ## 動作手順 diff --git a/plugins/ndf-shared/skills/python-execution/01-uv-setup.md b/plugins/ndf-shared/skills/python-execution/01-uv-setup.md deleted file mode 100644 index aafd4f1c..00000000 --- a/plugins/ndf-shared/skills/python-execution/01-uv-setup.md +++ /dev/null @@ -1,85 +0,0 @@ -# uv詳細セットアップガイド - -> **Note**: 基本的な`uv sync`と`uv run python`はSKILL.mdを参照。このファイルは初回セットアップや詳細設定が必要な場合のみ参照。 - -## uvインストール - -```bash -# Linux/macOS -curl -LsSf https://astral.sh/uv/install.sh | sh - -# pip経由(代替) -pip install uv - -# 確認 -uv --version -``` - -## 依存関係管理 - -```bash -# uv.lockがある場合(推奨) -uv sync - -# uv.lockがない場合 -uv lock && uv sync - -# 開発用依存関係も含める -uv sync --dev - -# 特定のextraを含める -uv sync --extra test -``` - -## Pythonバージョン管理 - -```bash -# 特定バージョンをインストール -uv python install 3.12 -uv python install 3.11 - -# プロジェクトで使用するバージョンを固定 -uv python pin 3.12 - -# インストール済みバージョン一覧 -uv python list -``` - -## 実行オプション - -```bash -# スクリプト実行 -uv run python script.py - -# モジュール実行 -uv run python -m pytest -uv run python -m mypy . - -# 引数付き -uv run python script.py --arg value - -# インタラクティブシェル -uv run python -``` - -## プロジェクト初期化(新規作成時) - -```bash -# 新規プロジェクト作成 -uv init my-project -cd my-project - -# 依存関係追加 -uv add requests -uv add --dev pytest - -# ロックファイル生成 -uv lock -``` - -## uv環境の利点 - -- **高速**: Rustで実装、pip比10-100倍速 -- **再現性**: uv.lockで完全な依存関係固定 -- **Pythonバージョン管理**: pyenvなしでバージョン切り替え -- **グローバル環境を汚染しない**: プロジェクト単位で隔離 diff --git a/plugins/ndf-shared/skills/python-execution/02-troubleshooting.md b/plugins/ndf-shared/skills/python-execution/02-troubleshooting.md deleted file mode 100644 index 3475b7ec..00000000 --- a/plugins/ndf-shared/skills/python-execution/02-troubleshooting.md +++ /dev/null @@ -1,112 +0,0 @@ -# Python実行 トラブルシューティング - -## よくある問題と解決策 - -### Q: `uv: command not found` - -**原因**: uvがインストールされていない - -**解決策**: -```bash -curl -LsSf https://astral.sh/uv/install.sh | sh -# シェルを再起動するか、パスを通す -source ~/.bashrc # または ~/.zshrc -``` - -### Q: `ModuleNotFoundError` - -**原因**: 依存関係がインストールされていない - -**解決策**: -```bash -# uv環境の場合 -uv sync - -# venv環境の場合 -.venv/bin/pip install -r requirements.txt - -# pyproject.tomlがある場合 -.venv/bin/pip install -e . -``` - -### Q: `python: command not found` - -**原因**: Pythonがインストールされていない、またはパスが通っていない - -**解決策**: -```bash -# python3を試す -python3 --version - -# uvでPythonをインストール -uv python install 3.12 -``` - -### Q: 異なるPythonバージョンが必要 - -**解決策(uv環境)**: -```bash -# 特定バージョンをインストール -uv python install 3.11 - -# プロジェクトで使用するバージョンを固定 -uv python pin 3.11 - -# そのバージョンで実行 -uv run python script.py -``` - -### Q: `pyproject.toml`はあるが`uv.lock`がない - -**解決策**: -```bash -# ロックファイルを生成 -uv lock - -# 依存関係をインストール -uv sync -``` - -### Q: 仮想環境が壊れている - -**解決策**: -```bash -# 仮想環境を削除して再作成 -rm -rf .venv - -# uv環境の場合 -uv sync - -# 手動で作成する場合 -python3 -m venv .venv -.venv/bin/pip install -r requirements.txt -``` - -### Q: パーミッションエラー - -**解決策**: -```bash -# 仮想環境を使用(推奨) -uv sync -uv run python script.py - -# どうしてもグローバルにインストールする場合(非推奨) -pip install --user package_name -``` - -### Q: SSL証明書エラー - -**解決策**: -```bash -# macOSの場合 -/Applications/Python\ 3.x/Install\ Certificates.command - -# または環境変数で一時的に無効化(非推奨) -export PYTHONHTTPSVERIFY=0 -``` - -## 関連リソース - -- [uv公式ドキュメント](https://docs.astral.sh/uv/) -- [Python venv](https://docs.python.org/3/library/venv.html) -- [pyproject.toml仕様](https://packaging.python.org/en/latest/specifications/pyproject-toml/) diff --git a/plugins/ndf-shared/skills/python-execution/SKILL.md b/plugins/ndf-shared/skills/python-execution/SKILL.md deleted file mode 100644 index a07705aa..00000000 --- a/plugins/ndf-shared/skills/python-execution/SKILL.md +++ /dev/null @@ -1,86 +0,0 @@ ---- -name: python-execution -description: "Detect and run the right Python environment." -when_to_use: "Python スクリプトを実行 / セットアップするとき。Triggers: 'python', 'uv', 'スクリプト', 'python環境'" -allowed-tools: - - Read - - Bash - - Glob ---- - -# Python Execution Skill - -## 概要 - -Pythonコードを実行する前に、プロジェクトの実行環境を調査し、適切な方法で実行するためのガイドラインです。 - -## Step 1: 環境検出 - -```bash -ls -la pyproject.toml uv.lock .venv/ venv/ requirements.txt 2>/dev/null -``` - -## Step 2: 実行コマンド選択 - -| 検出ファイル | 実行方法 | 優先度 | -|-------------|---------|-------| -| `pyproject.toml` | `uv run python` | 最高 | -| `.venv/` | `.venv/bin/python` | 中 | -| `venv/` | `venv/bin/python` | 中 | -| 何もなし | `python3` | 最低 | - -## Step 3: 実行 - -### uv環境(pyproject.tomlあり) - -```bash -# 依存関係インストール(初回のみ) -uv sync - -# 実行 -uv run python script.py -uv run python -m module_name -``` - -**uvがない場合のインストール**: -```bash -curl -LsSf https://astral.sh/uv/install.sh | sh -source ~/.bashrc # パスを反映 -``` - -### venv環境(.venv/あり) - -```bash -# 依存関係インストール(初回のみ) -.venv/bin/pip install -r requirements.txt - -# 実行 -.venv/bin/python script.py -``` - -### システムPython - -```bash -python3 script.py -``` - -## ベストプラクティス - -| DO | DON'T | -|----|-------| -| 実行前に環境を調査 | 環境を確認せずに実行 | -| README.md/CLAUDE.mdの指示を優先 | グローバル環境に依存関係をインストール | -| pyproject.tomlがあればuv使用 | source activateに依存 | -| 仮想環境のPythonをパス指定で実行 | python2を使用 | - -## 詳細ガイド(必要時のみ参照) - -| ファイル | 内容 | 参照タイミング | -|---------|------|--------------| -| `01-uv-setup.md` | uv詳細セットアップ、Pythonバージョン管理 | 初回セットアップ時 | -| `02-troubleshooting.md` | エラー解決策 | 問題発生時 | - -## 関連Skill - -- **corder-code-templates**: Pythonコードテンプレート -- **corder-test-generation**: Pythonテスト生成 diff --git a/plugins/ndf-shared/skills/qa-security-scan/SKILL.md b/plugins/ndf-shared/skills/qa-security-scan/SKILL.md index f8e86e93..0adfc80f 100644 --- a/plugins/ndf-shared/skills/qa-security-scan/SKILL.md +++ b/plugins/ndf-shared/skills/qa-security-scan/SKILL.md @@ -1,7 +1,6 @@ --- name: qa-security-scan -description: "Run OWASP-focused security checks." -when_to_use: "Use when conducting security testing or vulnerability assessment. Triggers: 'security scan', 'vulnerability check', 'OWASP', 'security test', 'セキュリティスキャン', '脆弱性チェック', 'セキュリティテスト'" +description: "Run an OWASP Top 10 security review of code, authentication, authorization, and data protection. Use when asked for a security scan, vulnerability assessment, or a security review of a change(セキュリティスキャン / 脆弱性チェック / セキュリティレビュー / OWASP / 認証認可の確認 / SQLインジェクションの確認)." --- # QA Security Scan Skill diff --git a/plugins/ndf-shared/skills/skill-stats/SKILL.md b/plugins/ndf-shared/skills/skill-stats/SKILL.md index d500b0a6..93a95cb2 100644 --- a/plugins/ndf-shared/skills/skill-stats/SKILL.md +++ b/plugins/ndf-shared/skills/skill-stats/SKILL.md @@ -100,4 +100,3 @@ Triggers キーワードは `Triggers:` と `明示トリガ:` のどちらの ## 関連スキル - `/ndf:markdown-writing` — 結果を読みやすく整形するためのガイドライン -- `/ndf:python-execution` — Python実行環境の判定