Communitygithub.com

cdcoonce/Portfolio_Website

將產品需求文件(PRD)轉換為多階段實作計劃,採用垂直切片(追蹤彈藥)方式,儲存為 docs/plans/ 中的本地 Markdown 檔案。當用戶想要分解 PRD、建立實作計劃、規劃階段,或提到「追蹤彈藥」時使用。

Portfolio_Website 是什麼?

這個技能專為 AI 代理(如 Claude Code)設計,用來將產品需求文件(PRD)系統性地分解為分階段的實作計劃。它採用「追蹤彈藥(tracer bullet)」方法,這是一種透過建立細長、獨立的端到端垂直切片來處理複雜專案的軟體開發策略。每個切片都會穿越所有整合層(資料庫、API、UI、測試),確保在實作早期就能獲得可展示且可驗證的成果。 這個技能會引導 AI 與用戶進行互動討論,以確認需求、探索現有程式碼庫以了解架構模式、識別持久的架構決策(如路由結構和資料庫 Schema),然後起草一系列垂直切片。接著向用戶展示這些切片,並根據使用者體驗進行調整,最後產出一個結構化的 Markdown 檔案,存放在 `docs/plans/` 目錄下。 這個方法避免了創建「水平切片」(例如先完成所有資料庫,然後所有 API,最後 UI),這種做法通常會讓各層之間產生耦合,並在開發過程中造成阻礙。這個技能支援 Cursor、Claude Code 和 Codex 等主要 AI 代理平台,透過清晰、可執行的階段定義來提升開發工作流程,使需求文件能更順利地轉化為實作。

相容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/cdcoonce/Portfolio_Website/tree/HEAD/.claude/skills/prd-to-plan

在你喜歡的 AI 中提問

開啟一個已預先載入此 Agent Skill 的新對話。

說明文件

PRD 轉換為計劃(PRD to Plan)

將 PRD 分解為使用垂直切片(追蹤彈藥)的分階段實作計劃。輸出為 docs/plans/ 中的 Markdown 檔案。

流程(Process)

1. 確認 PRD 已在對話上下文中

PRD 應已在對話中。如果沒有,請要求使用者貼上或指向該檔案。

2. 探索程式碼庫

如果您尚未探索程式碼庫,請先進行探索,以了解目前的架構、現有模式及整合層。

3. 識別持久的架構決策

在進行切片之前,識別在實作過程中不太可能改變的高層級決策:

  • 路由結構 / URL 模式
  • 資料庫 Schema 形狀
  • 關鍵資料模型
  • 認證 / 授權方法
  • 第三方服務邊界

這些將放入計劃的標頭中,以便每個階段都能參考它們。

4. 草擬垂直切片

將 PRD 分解為追蹤彈藥階段。每個階段都是一個細長的垂直切片,會穿透所有整合層端到端,而不是僅涵蓋某一層的水平切片。

5. 向使用者提問

將建議的分解以編號列表呈現。對於每個階段,顯示:

  • 標題:簡短的描述性名稱
  • 涵蓋的使用者故事:此階段解決了 PRD 中的哪些使用者故事

向使用者提問:

  • 粒度是否合適?(太粗還是太細?)
  • 是否應該合併或進一步拆分某些階段?

反覆調整,直到使用者核准該分解。

6. 撰寫計劃檔案

如果 docs/plans/ 不存在,則建立該目錄。將計劃以 Markdown 檔案撰寫,檔案名稱以功能命名(例如 docs/plans/user-onboarding.md)。使用下方的範本。

來源 PRD:<簡短識別碼或連結>

架構決策

適用於所有階段的持久決策:

  • 路由:...
  • Schema:...
  • 關鍵模型:...
  • (根據需要新增/移除區塊)

階段 1:<標題>

使用者故事:<來自 PRD 的清單>

要建構的內容

對這個垂直切片的簡潔描述。描述端到端的行為,而非逐層的實作細節。

驗收標準

  • 標準 1
  • 標準 2
  • 標準 3

階段 2:<標題>

使用者故事:<來自 PRD 的清單>

要建構的內容

...

驗收標準

  • ...

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

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.

相關技能