agentleFS
wonderslifewonderslife/pdd-skills/pdd-generate-spec/SKILL.md

pdd-generate-spec

Skill41 starsChanged 8 months agoMITView on GitHub

Generate development specifications and acceptance criteria based on feature point matrix. Invoke this Skill when users want to generate technical specifications for feature points. 支持中文触发:生成开发规格、生成规格、规格设计、验收标准、PDD规格生成。

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

6 rules. About 0 are common, 2 are distinctive, and 4 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 4

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Read the feature point list and details from dev-specs/feature-matrix.md.

    line 61
  2. Very specific:

    If new technology selection is involved, invoke system-architect for recommendations.

    line 71
  3. Very specific:

    If module boundaries are unclear, invoke software-architect for recommendations.

    line 80
  4. Very specific:

    If business logic is complex, invoke software-architect for design recommendations.

    line 134
  5. Distinctive:

    Test cases must cover all business rules

    line 270
  6. Distinctive:

    Every document modification must update the change history

    line 308

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Specification Generation - Generate development specifications and acceptance criteria based on feature points

Input: Feature Point Matrix (feature-matrix.md)

Output:

  • spec.md (Development Specification)
  • checklist.md (Acceptance Criteria)

Version History

VersionDateChanges
2.12026-03-22Added document system specifications, PDD implementation specification references
2.02026-03-21Added architect consultation process
1.0EarlyInitial version

1. Skill Integration

1.1 Architect Consultation

During the specification generation process, architect skills can be invoked as needed:

Architect SkillInvocation TimingService Content
system-architectTechnology selection, system architectureTechnology stack recommendations, architecture decisions, system structure
software-architectModule division, interface designModule boundaries, interface specifications, design patterns

1.2 Invocation Conditions

Must invoke system-architect:

  • New technology stack introduction
  • System architecture changes
  • Major technical decisions

Must invoke software-architect:

  • Unclear module boundaries
  • Complex interface design
  • Design pattern recommendations needed

2. Process Steps

Step 1: Read Feature Point Matrix

Read the feature point list and details from dev-specs/feature-matrix.md.

Step 2: Determine Technology Stack

Determine the technology stack based on project configuration:

  • Backend: Spring Boot + MyBatis (RuoYi Framework)
  • Frontend: Vue.js + Element UI
  • Database: MySQL

Architecture Consultation (As Needed): If new technology selection is involved, invoke system-architect for recommendations.

Step 3: Module Design

Analyze the modules to which feature points belong:

  • Determine module boundaries
  • Determine module dependencies

Architecture Consultation (As Needed): If module boundaries are unclear, invoke software-architect for recommendations.

Step 4: Generate Specifications for Each Feature Point

Process feature points in priority order:

a. Analyze Feature Point Requirements

  • Business description
  • Pre-conditions/Post-conditions
  • Business rules
  • Test scenarios

b. Design Interfaces

  • Determine interface paths (RESTful style)
  • Determine request methods (GET/POST/PUT/DELETE)
  • Design request parameters
  • Design response structure
  • Define error codes

Interface Naming Conventions:

Operation TypeInterface PathRequest Method
List Query/api/{module}/listGET
Detail Query/api/{module}/{id}GET
Create/api/{module}POST
Update/api/{module}PUT
Delete/api/{module}/{id}DELETE
Approval Operation/api/{module}/approvePOST
Reject Operation/api/{module}/rejectPOST
Terminate Operation/api/{module}/terminatePOST

c. Design Data Model

Data model naming conventions:

TypeNaming ConventionExample
Entity Class{BusinessName}TransferApplication
Primary Keyidid
Creation TimecreateTimecreateTime
Update TimeupdateTimeupdateTime
CreatorcreateBycreateBy
UpdaterupdateByupdateBy
Statusstatusstatus
Delete FlagdelFlagdelFlag

d. Design Business Logic

  • Processing flow
  • Validation rules
  • State transitions
  • Exception handling

Architecture Consultation (As Needed): If business logic is complex, invoke software-architect for design recommendations.

e. Design Test Cases

  • Positive scenarios
  • Exception scenarios
  • Boundary conditions

Step 5: Generate Development Specification Document

Output to dev-specs/FP-{sequence}/spec.md:

# {Feature Point Name} Development Specification

## Document Information
| Item | Content |
|------|------|
| Specification ID | SPEC-{ModuleNumber}-{FeaturePointSequence} |
| Related Feature Point | FP-XXX-NNN |

## Interface Definition
### Interface 1: {Interface Name}
- Interface Path: `/api/xxx`
- Request Method: POST
- Request Parameters: [...]
- Response Structure: {...}
- Error Codes: [...]

## Data Model
### Entity: {Entity Name}
| Field Name | Type | Required | Description |

## Business Logic
### Processing Flow
### Validation Rules
### State Transitions

## Test Cases
### Positive Scenarios
### Exception Scenarios
### Boundary Conditions

Step 6: Generate Acceptance Criteria Document

Output to dev-specs/FP-{sequence}/checklist.md:

# {Feature Point Name} Acceptance Criteria

## Document Information
| Item | Content |
|------|------|
| Acceptance Criteria ID | AC-{ModuleNumber}-{FeaturePointSequence} |

## Business Acceptance
| No. | Acceptance Scenario | Expected Result | Verification Method | Status |

## Technical Acceptance
| No. | Acceptance Item | Standard | Status |

## Integration Acceptance
| No. | Acceptance Item | Verification Method | Status |

Step 7: Generate Code Framework (Optional)

For P0 feature points, generate code framework:

  • Backend Controller/Service/Mapper/Domain
  • Frontend Vue components

3. Architecture Consultation Process

pdd-generate-spec starts
    │
    ├─► Identify technology selection needs
    │       │
    │       ▼
    │   system-architect consultation
    │       │
    │       ▼
    │   Return technology stack recommendations
    │
    ├─► Identify module design needs
    │       │
    │       ▼
    │   software-architect consultation
    │       │
    │       ▼
    │   Return module boundary recommendations
    │
    └─► Continue generating specifications

3.1 system-architect Invocation Example

Trigger Condition: Need to introduce new technology stack
Invoke: system-architect
Input:
  - Feature Requirements: Message push functionality
  - Constraints: Need to support multi-channel push
  - Existing Technology Stack: Spring Boot

Return:
  - Technology selection recommendations
  - Architecture Decision Record (ADR)
  - Project structure recommendations

3.2 software-architect Invocation Example

Trigger Condition: Unclear module boundaries
Invoke: software-architect
Input:
  - Feature Requirements: Transfer application and approval module
  - Existing Modules: Asset management base module
  - Complexity: High

Return:
  - Module division plan
  - Interface boundary definition
  - Design pattern recommendations

4. Guardrails

  • Interface design must follow RESTful specifications
  • Data models must include audit fields
  • Business rules must be consistent with PRD
  • Test cases must cover all business rules
  • Architecture decisions must consult architect skills
  • Module design must follow high cohesion and low coupling principles

5. Collaboration with Other Skills

Collaborative SkillCollaboration MethodInput DataExpected Output
system-architectConsultationTechnical requirements, constraintsTechnology selection, architecture decisions
software-architectConsultationModule requirements, interface designModule division, interface specifications
pdd-implement-featureSequentialspec.md, checklist.mdCode implementation
pdd-code-reviewerSequentialCode + specificationsReview report

6. Document System Specifications

This Skill follows the PDD framework document system specifications.

6.1 Output Documents

Document TypeFile NameCore Content
Development Specificationspec.mdInterface design, data model, business logic, technical implementation
Acceptance Criteriachecklist.mdAcceptance items, acceptance conditions, acceptance methods

6.2 Naming Conventions

dev-specs/FP-{ModuleNumber}-{Sequence}/
├── spec.md
└── checklist.md

6.3 Version Management

  • Every document modification must update the change history
  • Record modification date, modifier, and change content

7. PDD Implementation Specification Reference

This Skill follows the PDD framework implementation specifications, see pdd-framework-design.md Chapter 9.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.