Communitygithub.com

cdcoonce/Portfolio_Website

プロダクション品質のPythonコーディング規約を定義し、自動バージョン検出(3.10-3.13)に対応します。Pythonコードの記述、レビュー、リファクタリング時に使用し、最新の型構文、LBYL例外処理、pathlib操作、ABCベースのインターフェース、プロダクションで実証されたパターンへの準拠を保証します。Dagster固有ではなく、あらゆるPythonプロジェクトに適用できます。

Portfolio_Website とは?

このスキルは、クリーンで保守性が高く、モダンなPythonコード(バージョン3.10~3.13)を記述するためのプロダクション品質のコーディング規約を提供します。プロジェクトの最小Pythonバージョンを自動検出し、バージョン固有のガイダンスを読み込みます。LBYL例外処理、pathlibによるパス操作、ABC/Protocolベースのインターフェースデザイン、Click/argparseを使用したCLIパターンなど、広範なトピックをカバーしています。このスキルは、コードレビュー、型ヒント、例外処理、モジュール設計などに関する質問に自動的に応答し、参照ドキュメントをオンデマンドで読み込むことで、関連情報のみを提供します。Dagster固有のパターンではなく、あらゆるPythonプロジェクトに適用可能な汎用的なPython標準を扱います。主要な参照ファイルには `dignified-python-core.md`、`cli-patterns.md`、`subprocess.md`、およびバージョン固有のファイル(`versions/python-3.10.md` など)と高度なトピック(`references/advanced/exception-handling.md` など)が含まれています。

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

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

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

ドキュメント

Dignified Python コーディング規約スキル

クリーンで保守性が高く、モダンなPythonコード(バージョン3.10~3.13)を記述するためのプロダクション品質のPythonコーディング規約。

このスキルを使用するタイミング

以下のようなユーザーの質問に対して自動的に呼び出されます:

  • 「これをPython的にして」/「これは良いPythonコード?」
  • 「型ヒント」/「型アノテーション」/「typing」
  • 「LBYL vs EAFP」/「例外処理」
  • 「pathlib vs os.path」/「パス操作」
  • 「CLIパターン」/「clickの使い方」
  • 「コードレビュー」/「このコードを改善して」
  • Pythonのコード品質や標準に関するあらゆる質問

注意: このスキルは汎用的なPython標準であり、Dagster固有ではありません。Dagsterのパターンについては /dagster-expert を使用してください。

このスキルを使用するタイミングと他のスキルとの比較

ユーザーのニーズこのスキルを使用する代替スキル
「これをPython的にして」✅ はい - Python標準
「これは良いPythonコード?」✅ はい - コード品質
「型ヒント」✅ はい - 型付けガイダンス
「LBYL vs EAFP」✅ はい - 例外パターン
「pathlib vs os.path」✅ はい - パス操作
「Dagster固有のパターン」❌ いいえ/dagster-expert
「CLI引数解析」✅ はい - CLIパターン

コア知識(常に読み込まれる)

dignified-python-core.md

バージョン検出

プロジェクトの最小Pythonバージョンを特定するには、以下の順序で確認します:

  1. pyproject.toml - requires-python フィールドを探す(例: requires-python = ">=3.12")
  2. setup.py または setup.cfg - python_requires を探す
  3. .python-version ファイル - 3.12 や 3.12.0 のようなバージョンを含む
  4. バージョン指定子が見つからない場合は、デフォルトでPython 3.12とする

特定したら、適切なバージョン固有ファイルを読み込みます:

  • Python 3.10: versions/python-3.10.md を読み込む
  • Python 3.11: versions/python-3.11.md を読み込む
  • Python 3.12: versions/python-3.12.md を読み込む
  • Python 3.13: versions/python-3.13.md を読み込む

条件付き読み込み(タスクパターンに基づいて読み込む)

上記のコアファイルでPythonコードパターンの80%以上をカバーします。以下の追加ファイルは、特定のパターンを検出した場合にのみ読み込んでください:

パターン検出の例:

  • タスクに「click」または「CLI」が含まれる場合 -> cli-patterns.md を読み込む
  • タスクに「subprocess」が含まれる場合 -> subprocess.md を読み込む

リファレンスドキュメント構成

リファレンスドキュメントは、トップレベルのファイルとサブディレクトリに整理されています:

コアリファレンス(SKILL.md と同階層)

  • dignified-python-core.md - 必須標準(常に読み込まれる)
  • cli-patterns.md - コマンドラインインターフェースパターン(click, argparse)
  • subprocess.md - サブプロセス操作

バージョン固有リファレンス(versions/)

  • versions/python-3.10.md - Python 3.10+ で利用可能な機能
  • versions/python-3.11.md - Python 3.11+ で利用可能な機能
  • versions/python-3.12.md - Python 3.12+ で利用可能な機能
  • versions/python-3.13.md - Python 3.13+ で利用可能な機能

高度なトピック(references/advanced/)

  • exception-handling.md - LBYLパターン、エラーバウンダリ
  • interfaces.md - ABCおよびProtocolパターン
  • typing-advanced.md - 高度な型付けパターン
  • api-design.md - API設計原則

各リファレンスドキュメントを読むタイミング

references/advanced/exception-handling.md

読むタイミング:

  • try/exceptブロックを書くとき
  • 例外を発生させる可能性のあるサードパーティAPIをラップするとき
  • from e または from None を記述するとき、または見かけたとき
  • LBYLの代替手段があるかどうか不明なとき

references/advanced/interfaces.md

読むタイミング:

  • ABCまたはProtocolクラスを作成するとき
  • @abstractmethodデコレータを書くとき
  • ゲートウェイ層インターフェースを設計するとき
  • ABCとProtocolのどちらを選ぶか判断するとき

references/advanced/typing-advanced.md

読むタイミング:

  • typing.cast() を使用するとき
  • Literal型エイリアスを作成するとき
  • 条件ブロック内で型を絞り込むとき

references/module-design.md

読むタイミング:

  • 新しいPythonモジュールを作成するとき
  • モジュールレベルのコード(単純な定数を超えるもの)を追加するとき
  • モジュールレベルで @cache デコレータを使用するとき
  • モジュールレベルで Path() または計算処理が見られるとき
  • インラインインポートを検討するとき

references/api-design.md

読むタイミング:

  • 関数にデフォルトパラメータ値を追加するとき
  • 5つ以上のパラメータを持つ関数を定義するとき
  • ThreadPoolExecutor.submit() を使用するとき
  • 関数シグネチャをレビューするとき

references/checklists.md

読むタイミング:

  • Pythonコードをコミットする前の最終レビュー時
  • すべてのルールに従っているかどうか不明なとき
  • 要件をすぐに確認する必要があるとき

このスキルの使用方法

  1. コア知識は自動的に読み込まれます(LBYL、pathlib、基本的なインポート、アンチパターン)
  2. バージョン検出は1回実行されます - 最小Pythonバージョンを特定し、適切なバージョンファイルを読み込みます
  3. リファレンスドキュメントは、上記のトリガーに基づいてオンデマンドで読み込まれます
  4. 追加パターンは追加の読み込みが必要な場合があります(CLIパターン、サブプロセス)
  5. 各ファイルは自己完結型であり、そのドメインに関する完全なガイダンスを提供します

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

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

Triage a bug or issue by exploring the codebase to find root cause, then create a GitHub issue with a TDD-based fix plan. Use when user reports a bug, wants to file an issue, mentions "triage", or wants to investigate and plan a fix for a problem.

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.

関連スキル