Communitygithub.com

cdcoonce/Portfolio_Website

バグや問題をトリアージし、コードベースを調査して根本原因を特定し、TDDベースの修正計画を含むGitHub Issueを作成します。ユーザーがバグを報告したときや、「トリアージ」と言及したときに使用します。

Portfolio_Website とは?

このスキルは、報告された問題を自動的に調査・診断し、根本原因を特定した上で、GitHub Issueを作成するワークフローです。ユーザーからの質問を最小限に抑え、発見した問題に対してTDD(テスト駆動開発)の修正計画を提供します。コードベースを深く探索し、バグの発生箇所、関連するコードパス、類似パターン、既存テストなどを分析します。その後、修正に必要な最小限の変更を特定し、RED-GREENサイクルの形でテストとコードの変更手順を整理します。最後に、GitHub CLIを使ってIssueを作成し、そのURLと根本原因の要約を出力します。このスキルは主にGitHub上のプロジェクトで動作し、ユーザーがバグ報告や問題の調査を依頼した際に有効です。

対応~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/cdcoonce/Portfolio_Website/tree/HEAD/.claude/skills/triage-issue

お気に入りのAIに質問する

このエージェントスキルを事前に読み込んだ状態で新しいチャットを開きます。

ドキュメント

Triage Issue(問題のトリアージ)

報告された問題を調査し、根本原因を特定し、TDD修正計画を含むGitHub Issueを作成します。これはほぼハンズオフのワークフローです — ユーザーへの質問は最小限に抑えてください。

プロセス

1. 問題を把握する

ユーザーから問題の簡単な説明を受け取ります。ユーザーが説明を提供していない場合は、1つだけ質問してください: 「どんな問題が起きていますか?」

フォローアップの質問はしないでください。すぐに調査を開始します。

2. 探索と診断

Agentツールを subagent_type=Explore で使用し、コードベースを徹底的に調査します。目標は以下を見つけることです:

  • どこで バグが現れるか(エントリポイント、UI、APIレスポンス)
  • どの コードパスが関係しているか(フローを追跡)
  • なぜ 失敗するか(症状ではなく根本原因)
  • どのような 関連コードが存在するか(類似パターン、テスト、隣接モジュール)

以下を確認します:

  • 関連するソースファイルとその依存関係
  • 既存のテスト(何がテストされていて、何が不足しているか)
  • 影響を受けるファイルへの最近の変更(該当ファイルの git log)
  • コードパス内のエラーハンドリング
  • コードベース内の他の場所で正しく動作している類似パターン

3. 修正アプローチを特定する

調査結果に基づいて、以下を判断します:

  • 根本原因を修正するために必要な最小限の変更
  • 影響を受けるモジュール/インターフェース
  • テストで検証すべき動作
  • これが回帰、機能不足、設計上の欠陥のいずれであるか

4. TDD修正計画を設計する

具体的で順序付けられたRED-GREENサイクルのリストを作成します。各サイクルは1つの垂直スライスです:

  • RED: 壊れた/欠落した動作を捕捉する特定のテストを記述する
  • GREEN: そのテストをパスさせるための最小限のコード変更を記述する

ルール:

  • テストは実装の詳細ではなく、公開インターフェースを通じて動作を検証する
  • 一度に1つのテスト、垂直スライス(すべてのテストを先に書いてからすべてのコードを書くのではない)
  • 各テストは内部リファクタリング後も有効であるべき
  • 必要に応じて最終的なリファクタリングステップを含める
  • 耐久性: コードベースの大幅な変更後も有効な修正のみを提案する。内部構造ではなく、動作と契約を記述する。テストは内部状態ではなく、観測可能な結果(APIレスポンス、UI状態、ユーザーに見える効果)に対してアサーションを行う。良い提案は仕様のように読み、悪い提案はdiffのように読める。

5. GitHub Issueを作成する

以下のテンプレートを使用して、GitHub CLIで gh issue create を実行します。作成前にユーザーにレビューを求めず、作成後にURLを共有します。

問題

バグや問題の明確な説明。以下の内容を含む:

  • 何が起きているか(実際の動作)
  • 何が起きるべきか(期待される動作)
  • 再現方法(該当する場合)

根本原因分析

調査中に見つけた内容を記述:

  • 関係するコードパス
  • 現在のコードが失敗する理由
  • 寄与する要因

現在のコードレイアウトに依存する具体的なファイルパス、行番号、実装の詳細は含めない。代わりにモジュール、動作、契約を記述する。Issueは大規模なリファクタリング後も有用であるべき。

TDD修正計画

番号付きのRED-GREENサイクルのリスト:

  1. RED: [期待される動作を記述するテストを書く] GREEN: [テストをパスさせるための最小限の変更]

  2. RED: [次の動作を記述するテストを書く] GREEN: [テストをパスさせるための最小限の変更]

...

REFACTOR: [すべてのテストがパスした後の後片付け]

受け入れ基準

  • 基準1
  • 基準2
  • すべての新しいテストがパスする
  • 既存のテストがパスする

Issueを作成したら、IssueのURLと根本原因の1行サマリーを出力します。

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

cdcoonce/Portfolio_Website

Git commit workflow with enforced conventional commit style. Use when Claude needs to stage and commit changes, craft commit messages, or the user asks to commit, make a commit, or save their work. Ensures consistent commit message format, proper scoping, and atomic commits across the project.

cdcoonce/Portfolio_Website

AI-powered code quality analysis for Python, Markdown, and Mermaid diagrams. Use this skill when: (1) reviewing code for quality issues, (2) checking Python files for PEP8 violations, unused code, missing type hints, docstring problems, complexity issues, or potential runtime errors, (3) validating Markdown documentation for broken links, heading structure, or formatting issues, (4) validating Mermaid diagram syntax, (5) the user asks for a "code review" or "quality check", (6) analyzing code snippets pasted in conversation, or (7) suggesting and applying fixes for code quality issues.

cdcoonce/Portfolio_Website

Deploy the portfolio chat agent Lambda function to AWS. Use when the user asks to deploy, redeploy, push to Lambda, update the chat agent, or after updating context files or lambda_function.py. Rebuilds the knowledge base, packages dependencies, and deploys to AWS Lambda.

cdcoonce/Portfolio_Website

Generate multiple radically different interface designs for a module using parallel sub-agents. Use when user wants to design an API, explore interface options, compare module shapes, or mentions "design it twice".

cdcoonce/Portfolio_Website

Orchestrate the full GitHub-issues-driven development lifecycle. 7-phase pipeline from brainstorm through PR with state tracking and cross-conversation resume. Use when user says "dev cycle", "development workflow", "full development pipeline", or invokes /dev-cycle.

cdcoonce/Portfolio_Website

Production Python coding standards with automatic version detection (3.10-3.13). Use when writing, reviewing, or refactoring Python to ensure adherence to modern type syntax, LBYL exception handling, pathlib operations, ABC-based interfaces, and production-tested patterns. Not Dagster-specific - applies to any Python project.

cdcoonce/Portfolio_Website

Set up Claude Code hooks to block dangerous git commands (push, reset --hard, clean, branch -D, etc.) before they execute. Use when user wants to prevent destructive git operations, add git safety hooks, or block git push/reset in Claude Code.

cdcoonce/Portfolio_Website

GitHub CLI (gh) integration for managing issues, pull requests, branches,

cdcoonce/Portfolio_Website

Interview the user relentlessly about a plan or design until reaching shared understanding, resolving each branch of the decision tree. Use when user wants to stress-test a plan, get grilled on their design, or mentions "grill me".

cdcoonce/Portfolio_Website

Explore a codebase to find opportunities for architectural improvement, focusing on making the codebase more testable by deepening shallow modules. Use when user wants to improve architecture, find refactoring opportunities, consolidate tightly-coupled modules, or make a codebase more AI-navigable.

cdcoonce/Portfolio_Website

CEO/founder-mode plan review. Rethink the problem, find the 10-star product, challenge premises, expand scope when it creates a better product. Three modes: SCOPE EXPANSION (dream big), HOLD SCOPE (maximum rigor), SCOPE REDUCTION (strip to essentials). Use when the user asks for a plan review, CEO review, mega review, or wants a plan challenged/stress-tested before implementation.

cdcoonce/Portfolio_Website

Break a PRD into independently-grabbable GitHub issues using tracer-bullet vertical slices. Use when user wants to convert a PRD to issues, create implementation tickets, or break down a PRD into work items.

cdcoonce/Portfolio_Website

Turn a PRD into a multi-phase implementation plan using tracer-bullet vertical slices, saved as a local Markdown file in docs/plans/. Use when user wants to break down a PRD, create an implementation plan, plan phases from a PRD, or mentions "tracer bullets".

cdcoonce/Portfolio_Website

Generate or update the `.claude/docs/project.md` file that gives Claude project-specific context. Use this skill when the user asks to create, update, regenerate, or refresh project context, or says things like "update project.md", "generate project context", "this repo needs a project.md", or "Claude doesn't know about this project". Also trigger when onboarding Claude to a new repository for the first time.

cdcoonce/Portfolio_Website

Generate comprehensive, high-quality README.md files for code repositories. Use this skill whenever the user asks to create, write, generate, update, or improve a README for any project or repository. Also trigger when the user says things like "document this project", "write docs for this repo", "this repo needs a README", "help me onboard developers to this codebase", or asks for project documentation in markdown. Even if the user just says "README" or "readme" in the context of a codebase, use this skill.

cdcoonce/Portfolio_Website

Create a detailed refactor plan with tiny commits via user interview, then file it as a GitHub issue. Use when user wants to plan a refactor, create a refactoring RFC, or break a refactor into safe incremental steps.

cdcoonce/Portfolio_Website

Set up pre-commit hooks for the current repo. Use when user wants to add pre-commit hooks, configure commit-time linting, formatting, type checking, or testing. Triggers on "pre-commit", "git hooks", "linting hooks", or /setup-pre-commit.

cdcoonce/Portfolio_Website

Test-driven development with red-green-refactor loop. Use when user wants to build features or fix bugs using TDD, mentions "red-green-refactor", wants integration tests, or asks for test-first development.

cdcoonce/Portfolio_Website

Rewrites the prose sections of wiki pages in-place. Reads source files to understand current context, then updates only the content inside <!-- claude:prose --> ... <!-- claude:prose:end --> markers. Never touches <!-- generated:start --> ... <!-- generated:end --> blocks. Supports targeting a single page with /update-wiki {PageName}.

cdcoonce/Portfolio_Website

Create a PRD through user interview, codebase exploration, and module design, then submit as a GitHub issue. Use when user wants to write a PRD, create a product requirements document, or plan a new feature.

関連スキル