Token导航 LogoToken导航TokenDH.com
开发敏感数据github未标认证来源可访问许可证需确认审计通过

create-prd创建 PRD

Agent Skill

create-prd 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

737

周安装

31

GitHub Stars

8

下载量

258
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:create-prd(创建 PRD)
来源仓库:https://github.com/ar4mirez/samuel
仓库路径:skills/create-prd
安装命令:
npx skills add https://github.com/ar4mirez/samuel --skill create-prd
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/ar4mirez/samuel --skill create-prd

简介

结构化产品需求文档(PRD)撰写辅助工具。

  • 适用于影响超10个文件或新建子系统的复杂功能开发。
  • 引导拆解问题域、定义验收标准与技术边界。
  • 输出 Markdown 格式文档供初级开发者直接执行。
  • 需明确业务目标与用户旅程避免范围蔓延。create-prd 属于开发类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Product Requirements Document (PRD) Creation

Structured approach to defining complex features before implementation.

Use When: COMPLEX mode triggered (affects >10 files, new subsystem, unclear scope) 4D Phase: Deconstruct → Diagnose (planning stage)


Goal

Guide AI in creating a detailed Product Requirements Document (PRD) in Markdown format based on user's feature request. The PRD should be clear, actionable, and suitable for junior developers to understand and implement.

When to Use This Workflow

Use PRD workflow when:

  • Feature affects >10 files
  • Building new subsystem or major component
  • Requirements are unclear or ambiguous
  • Multiple stakeholders need alignment
  • Feature will take >1 week to implement
  • Breaking changes to existing architecture

Skip PRD for:

  • Atomic tasks (single file changes)
  • Bug fixes with clear scope
  • Small features affecting <5 files
  • Refactoring with defined boundaries

Process

Step 1: Receive Initial Request

User provides brief description or request for new feature.

Example:

"Build user authentication with email/password and OAuth"

Step 2: Check Project Context

Before asking questions, AI should:

  1. Read CLAUDE.md (if exists) for:

- Tech stack and framework choices - Existing architecture patterns - Authentication/authorization approach

  1. Scan codebase for:

- Existing auth-related code - Database schemas (user tables) - API patterns and conventions

  1. Review relevant guardrails from CLAUDE.md:

- Security requirements (input validation, parameterized queries) - Testing coverage targets - File length limits - Performance requirements

Step 3: Ask Clarifying Questions

IMPORTANT: Ask clarifying questions to gather detail. Focus on "what" and "why", not "how" (developer figures that out).

Provide numbered/lettered options for easy user responses.

Template Questions (adapt based on feature):

1. Problem/Goal

  • "What problem does this feature solve for users?"
  • "What is the main goal we want to achieve?"

2. Target Users

  • "Who is the primary user of this feature?"
  • Which user types: a) End users, b) Admins, c) Both, d) Other

3. Core Functionality

  • "What are the key actions users should be able to perform?"
  • Must-haves vs. nice-to-haves?

4. User Stories

  • "Can you provide 2-3 user stories?"
  • Format: "As a [user type], I want to [action] so that [benefit]"

5. Acceptance Criteria

  • "How will we know this feature is successfully implemented?"
  • "What are the key success criteria?"

6. Scope/Boundaries

  • "What should this feature NOT do (non-goals)?"
  • "Any features we should defer to future versions?"

7. Data Requirements

  • "What data does this feature need to display or manipulate?"
  • "Any data privacy/security considerations?"

8. UI/UX Expectations

  • "Are there design mockups or UI guidelines to follow?"
  • "Describe the desired look and feel"
  • Options: a) Use existing design system, b) Create new design, c) Minimal/functional only

9. Integration Points

  • "Does this integrate with existing features/systems?"
  • "Any third-party services involved?"

10. Edge Cases & Errors

  • "Any potential edge cases or error conditions to consider?"
  • "How should errors be handled and communicated?"

11. Performance & Scale

  • "Expected number of users/requests?"
  • "Any specific performance requirements?"

12. Security Requirements

  • "Any sensitive data involved?"
  • "Authentication/authorization needed?"
  • "Compliance requirements (GDPR, HIPAA, etc.)?"

Step 4: Generate PRD

Based on initial request and clarifying question answers, generate PRD using structure below.

Target audience: Junior developer (clear, explicit, no jargon)

Step 5: Validate Against Guardrails

Before presenting PRD, check:

  • Requirements align with security guardrails (input validation, parameterized queries)
  • Testing approach defined (coverage targets clear)
  • Performance requirements specified
  • File organization won't violate length limits (suggest component breakdown if needed)
  • API design follows RESTful/GraphQL conventions

Step 6: Save PRD

Save as: .claude/tasks/[NNNN]-prd-[feature-name].md

Numbering: Zero-padded 4-digit sequence (0001, 0002, etc.)

Examples:

  • .claude/tasks/0001-prd-user-authentication.md
  • .claude/tasks/0002-prd-dashboard-analytics.md

Step 7: Next Steps

After saving PRD:

  1. Inform user: "PRD created at .claude/tasks/NNNN-prd-feature-name.md"
  2. Ask: "Ready to generate task list? Use @.claude/skills/generate-tasks/SKILL.md with this PRD."
  3. DO NOT START IMPLEMENTING (wait for task breakdown)

PRD Structure

The generated PRD must include these sections:

1. Introduction/Overview

  • Briefly describe the feature
  • State the problem it solves
  • State the primary goal

Example:

## Introduction

This feature adds user authentication to the platform, allowing users to create accounts, log in securely, and access personalized content. Currently, the application has no user identity management, limiting personalization and security.

**Goal**: Enable secure user authentication with email/password and social OAuth providers.

2. Goals

List specific, measurable objectives for this feature.

Format: Numbered list, actionable, measurable

Example:

## Goals

1. Allow users to create accounts with email and password
2. Enable login via Google and GitHub OAuth
3. Implement secure session management with JWT
4. Achieve <200ms authentication response time
5. Support password reset flow
6. Maintain >95% test coverage for auth logic

3. User Stories

Detail user narratives describing feature usage and benefits.

Format: "As a [user type], I want to [action] so that [benefit]"

Example:

## User Stories

**US-001**: As a new user, I want to create an account with my email and password so that I can access personalized features.

**US-002**: As a returning user, I want to log in quickly with my Google account so that I don't have to remember another password.

**US-003**: As a user who forgot their password, I want to reset it via email so that I can regain access to my account.

**US-004**: As an admin, I want to view user authentication logs so that I can monitor security events.

4. Functional Requirements

List specific functionalities the feature must have.

Format: Numbered, clear, concise (e.g., "The system must allow X")

Example:

## Functional Requirements

### Authentication
FR-001: The system must allow users to register with email and password
FR-002: The system must validate email format and password strength (min 8 chars, 1 number, 1 special char)
FR-003: The system must support OAuth login via Google and GitHub
FR-004: The system must generate and validate JWT tokens for session management
FR-005: The system must implement token refresh mechanism (1h expiration, 7d refresh)

### Password Management
FR-006: The system must hash passwords using bcrypt (cost factor: 12)
FR-007: The system must provide password reset via email link (1h expiration)
FR-008: The system must prevent password reuse (last 3 passwords)

### Security
FR-009: The system must implement rate limiting (5 failed attempts = 15min lockout)
FR-010: The system must validate all inputs against XSS and SQL injection
FR-011: The system must log all authentication events (success, failure, logout)

5. Non-Goals (Out of Scope)

Clearly state what this feature will NOT include to manage scope.

Example:

## Non-Goals

- ❌ Two-factor authentication (2FA) - Deferred to v2
- ❌ Single Sign-On (SSO) integration - Future enhancement
- ❌ Biometric authentication - Not in scope
- ❌ Account deletion workflow - Separate feature
- ❌ Social media posting permissions - OAuth login only

6. Technical Considerations

Mention technical constraints, dependencies, or implementation suggestions.

Check CLAUDE.md for existing tech stack before suggesting

Example:

## Technical Considerations

### Tech Stack Integration
- Backend: Use existing Express.js framework
- Database: Add `users` and `sessions` tables to PostgreSQL
- ORM: Use Prisma (already in project)
- Validation: Use Zod for input validation (project standard)

### Architecture
- Follow repository pattern (existing project convention)
- Create `/api/auth` route group
- Implement middleware for JWT validation
- Use existing error handling patterns

### Dependencies
- New: `bcrypt`, `jsonwebtoken`, `passport`, `passport-google-oauth20`, `passport-github2`
- Check: All dependencies for known vulnerabilities before adding

### File Organization (respecting guardrails)
- `src/auth/` - Main auth module (<300 lines per file)
  - `auth.controller.ts` - Route handlers
  - `auth.service.ts` - Business logic
  - `auth.middleware.ts` - JWT validation
  - `auth.types.ts` - TypeScript types
- `src/db/schemas/` - Database schemas
  - `user.schema.ts`
  - `session.schema.ts`
- Tests alongside each file

7. Design Considerations

Link to mockups, describe UI/UX requirements, or mention components/styles.

Example:

## Design Considerations

### UI Components
- Use existing `<Form>`, `<Input>`, `<Button>` components from design system
- Create new `<AuthLayout>` component for login/register pages
- Follow existing color scheme and spacing guidelines

### User Flow
1. Landing → Click "Sign Up"
2. Registration form (email, password, confirm password)
3. Email verification sent
4. Verify email → Redirect to dashboard
5. OR: Click "Continue with Google" → OAuth flow → Dashboard

### Error Handling
- Show validation errors inline below each field
- Display auth errors in toast notifications (existing pattern)
- Provide clear, actionable error messages

### Accessibility
- All forms keyboard navigable
- Proper ARIA labels
- Focus management on error states

8. Guardrails Affected

Identify which CLAUDE.md guardrails are critical for this feature.

Example:

## Guardrails Affected

### Security (CRITICAL)
- ✓ All user inputs validated before processing
- ✓ All API boundaries have input validation (Zod schemas)
- ✓ All database queries parameterized (use Prisma)
- ✓ All environment variables have secure defaults (JWT_SECRET, OAuth keys)
- ✓ All file operations validate paths (password reset token validation)
- ✓ Dependencies checked for vulnerabilities

### Testing (CRITICAL)
- ✓ Coverage targets: >95% for auth logic (business-critical)
- ✓ All public APIs have unit tests
- ✓ All bug fixes include regression tests
- ✓ Edge cases tested (null, empty, invalid tokens, expired sessions)

### Code Quality
- ✓ No file exceeds 300 lines (split auth.service.ts if needed)
- ✓ Cyclomatic complexity ≤ 10 per function
- ✓ All exported functions have type signatures and JSDoc

### Performance
- ✓ API responses < 200ms for login/register
- ✓ No N+1 queries (eager load user data with sessions)

9. Success Metrics

How will success be measured?

Example:

## Success Metrics

### Technical Metrics
- Authentication response time < 200ms (p95)
- Test coverage >95% for auth module
- Zero critical security vulnerabilities
- <1% authentication failure rate (excluding incorrect credentials)

### Business Metrics
- 80% of users complete registration flow
- 50% of users choose OAuth over email/password
- <5% password reset requests (indicates good UX)

### Security Metrics
- Zero successful brute force attacks
- 100% of authentication events logged
- Password reset links expire correctly (100% success rate)

10. Implementation Estimate

Rough complexity estimate (tokens, not time)

Example:

## Implementation Estimate

### Complexity Analysis
- **Backend Auth Logic**: ~15,000 tokens (COMPLEX)
- **OAuth Integration**: ~10,000 tokens (FEATURE)
- **UI Components**: ~8,000 tokens (FEATURE)
- **Tests**: ~12,000 tokens (FEATURE)
- **Documentation**: ~3,000 tokens (ATOMIC)

**Total**: ~48,000 tokens (COMPLEX mode justified)

### Recommended Approach
1. Use COMPLEX mode with full task breakdown
2. Implement in phases (email auth → OAuth → password reset)
3. Each phase with its own task list
4. Frequent checkpoints after each subtask

11. Open Questions

List remaining questions or areas needing clarification.

Example:

## Open Questions

1. **Email Service**: Which provider? (SendGrid, AWS SES, Mailgun)
2. **Session Storage**: Redis for sessions or JWT-only?
3. **User Roles**: Do we need RBAC (roles/permissions) in this version?
4. **Profile Data**: What user profile fields beyond email/name?
5. **Existing Users**: Migration strategy for existing data (if any)?

**Action**: Clarify these before generating task list.

Output Format

File: .claude/tasks/NNNN-prd-feature-name.md Format: Markdown Audience: Junior developer + AI assistant


Final Instructions

For AI Assistant:

  1. DO ask clarifying questions (don't assume requirements)
  2. DO provide numbered options (easy user response)
  3. DO reference CLAUDE.md (maintain consistency)
  4. DO validate against CLAUDE.md guardrails
  5. DO specify which guardrails are critical
  6. DO estimate complexity in tokens
  7. DO NOT start implementing (wait for task generation)
  8. DO NOT suggest violating guardrails (propose alternatives instead)

After PRD Created:

  1. Save to .claude/tasks/NNNN-prd-feature-name.md
  2. Inform user of file location
  3. Suggest next step: "Ready to generate tasks? Use @.claude/skills/generate-tasks/SKILL.md with this PRD."
  4. Wait for user confirmation before proceeding

Remember: A good PRD prevents scope creep, aligns stakeholders, and makes implementation straightforward. Invest time here to save time later.

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

32.91%
按下载量换算85

Claude

28.5%
按下载量换算74

Cursor

19.55%
按下载量换算50

Gemini CLI

10.52%
按下载量换算27

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills