Communitygithub.com

cdcoonce/Portfolio_Website

通过用户访谈、代码库探索和模块设计来创建PRD,并作为GitHub Issue提交。适用于用户需要编写PRD、产品需求文档或规划新功能时。

Portfolio_Website 是什么?

该技能旨在帮助用户以结构化的方式创建产品需求文档(PRD)。它首先引导用户详细描述待解决问题和潜在解决方案思路,然后自动探索当前代码库以验证用户假设并了解现状。技能的核心是深入的用户访谈环节,模拟产品经理与开发者的协作,逐一解决设计决策中的依赖关系。在此过程中,它会识别出需要构建或修改的主要模块,并主动寻找能够独立测试的深度模块(即封装大量功能、接口简单且稳定的模块)。最后,技能会依据一个包含问题陈述、解决方案、用户故事、实现决策、测试决策、范围外事项和附加说明的完整模板,自动生成PRD并作为GitHub Issue提交。该技能特别适用于需要在熟悉代码库背景下进行特性规划的场景,支持在Claude Code等可访问文件系统并执行代码操作的AI编程工具中使用。

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

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

当用户想要创建 PRD 时,将调用此技能。如果你认为某些步骤不必要,可以跳过。

  1. 向用户询问他们想要解决问题的详细描述以及任何潜在的解决方案思路。

  2. 探索仓库以验证用户的断言,并理解代码库的当前状态。

  3. 持续访谈用户关于该计划的各个方面,直到你们达成共识。逐一遍历设计树的每个分支,逐个解决决策之间的依赖关系。

  4. 勾勒出你为完成实现所需构建或修改的主要模块。主动寻找机会提取可以独立测试的深度模块。

    深度模块(与浅层模块相对)是指这样一个模块:它在一个简单、可测试且很少变化的接口中封装了大量功能。

    与用户确认这些模块是否符合他们的期望。询问用户希望为哪些模块编写测试。

  5. 一旦你完全理解了问题和解决方案,使用下面的模板编写 PRD。PRD 应作为 GitHub Issue 提交。

问题陈述

从用户的角度来看,用户面临的问题。

解决方案

从用户的角度来看,问题的解决方案。

用户故事

一个长长的、编号的用户故事列表。每个用户故事应采用以下格式:

  1. 作为一个<角色>,我想要<功能>,以便<收益>

<用户故事示例>

  1. 作为一个手机银行客户,我想查看我的账户余额,以便能做出更明智的消费决策 </用户故事示例>

这个用户故事列表应该非常详尽,涵盖该功能的所有方面。

实现决策

已做出的实现决策列表。可以包括:

  • 将构建/修改的模块
  • 将被修改的模块接口
  • 来自开发者的技术说明
  • 架构决策
  • 模式更改
  • API 契约
  • 特定交互

不要包含具体的文件路径或代码片段。它们可能很快就会过时。

测试决策

已做出的测试决策列表。包括:

  • 什么是一个好的测试的描述(仅测试外部行为,而非实现细节)
  • 哪些模块将进行测试
  • 测试的先前示例(即代码库中类似类型的测试)

范围外事项

本 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

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}.

相关技能