Logo Pdd Implement Feature

Pdd Implement Feature

Cộng đồng
wonderslife
pdd-implement-feature

Implement feature point code based on development specifications. Call this Skill when users want to start coding implementation. 支持中文触发:实现功能点、编码实现、开始编码、功能开发、代码实现、PDD实现。

Tổng quan

Nhà phát hànhwonderslife
Kho mãpdd-skills
Tên kỹ năngpdd-implement-feature
Sao
41
Bản fork
11
Tệp đi kèm
Chỉ có hướng dẫn
Giấy phépMIT
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI dùng hướng dẫn viết bằng Markdown thay vì mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • Hướng dẫn có đủ mọi thứ cần thiết

    Mọi thứ mô hình cần đều nằm trong hướng dẫn — không có tệp bổ sung cần đồng bộ.

  • Mã nguồn mở

    Được wonderslife công bố trên GitHub. Hãy đọc các tệp nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Pdd Implement Feature trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL của thư mục kỹ năng được hiển thị bên dưới rồi xác nhận.
    https://github.com/wonderslife/pdd-skills/tree/main/pdd-implement-feature
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/wonderslife/pdd-skills.git /tmp/pdd-skills
mkdir -p .claude/skills
cp -r /tmp/pdd-skills/pdd-implement-feature .claude/skills/pdd-implement-feature
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Pdd Implement Feature trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự nạp Pdd Implement Feature ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên bạn có thể dùng Pdd Implement Feature với cả những mô hình khác ngoài mô hình ban đầu. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên khi kỹ năng chưa được dùng, bạn không tốn token cho phần hướng dẫn.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

Feature Point Implementation - Implement feature point code based on development specifications

Input:

  • Development Specification (spec.md)
  • Acceptance Criteria (checklist.md)
  • Test Cases (test-cases.md, optional)

Output:

  • Code files
  • Acceptance report

Version History

VersionDateChanges
3.22026-03-22Added error handling and fallback specifications, PDD implementation specification references
3.12026-03-22Removed automatic calling of pdd-pr-* skills, changed to only prompt user for manual calling
3.02026-03-21Added PR management layer integration (pdd-pr-*)
2.02026-03-21Added software-engineer and expert-xxx calling integration
1.0EarlyInitial version

1. Skill Integration

1.1 Software Engineer Invocation

During code implementation, call the software-engineer skill:

Invocation TimingService Content
Code ImplementationExecute code implementation based on specifications
Unit TestingWrite unit tests and integration tests
Code RefactoringCode optimization following coding standards
Defect FixingError handling and issue resolution

1.2 Expert Skill Invocation

When encountering technical issues during implementation, call expert-xxx as needed:

Expert SkillTrigger ConditionExpected Output
expert-ruoyiRuoYi framework issuesSolution + Best practices
expert-activitiWorkflow issuesBPMN design recommendations
expert-mysqlDatabase issuesSQL optimization solution
expert-code-qualityCode quality issuesRefactoring solution

1.3 Invocation Conditions

Must call software-engineer:

  • Entering code implementation phase
  • Need to write test code

Call expert-xxx as needed:

  • Encountering RuoYi framework issues
  • Encountering database design issues
  • Encountering code quality issues

2. Process Steps

Step 1: Read Development Specification

Read from dev-specs/FP-{sequence}/spec.md:

  • Interface definitions
  • Data models
  • Business logic
  • Test cases

Step 2: Read Acceptance Criteria

Read acceptance items from dev-specs/FP-{sequence}/checklist.md.

Step 3: Determine Implementation Order

Determine implementation order based on feature point dependencies:

  • Data models → Database scripts
  • Backend interfaces → Controller/Service/Mapper
  • Frontend pages → Vue components

Step 4: Generate Database Scripts

Generate SQL scripts based on data models:

sql
CREATE TABLE `{table_name}` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT 'Primary Key',
  -- Business fields
  `create_time` datetime DEFAULT NULL COMMENT 'Creation Time',
  `update_time` datetime DEFAULT NULL COMMENT 'Update Time',
  `create_by` varchar(64) DEFAULT NULL COMMENT 'Creator',
  `update_by` varchar(64) DEFAULT NULL COMMENT 'Updater',
  `status` char(1) DEFAULT '0' COMMENT 'Status',
  `del_flag` char(1) DEFAULT '0' COMMENT 'Delete Flag',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='{Table Comment}';

Step 5: Generate Backend Code

Call software-engineer to generate code that complies with standards:

a. Domain Entity Class

java
@Data
@TableName("{table_name}")
public class {EntityName} {
    @TableId(type = IdType.AUTO)
    private Long id;
    // Business fields
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;
    // ...
}

b. Mapper Interface

java
@Mapper
public interface {EntityName}Mapper extends BaseMapper<{EntityName}> {
    // Custom query methods
}

c. Service Interface and Implementation

java
public interface I{EntityName}Service extends IService<{EntityName}> {
    // Business methods
}

@Service
public class {EntityName}ServiceImpl extends ServiceImpl<{EntityName}Mapper, {EntityName}> implements I{EntityName}Service {
    // Business implementation
}

d. Controller

java
@RestController
@RequestMapping("/{module}")
public class {EntityName}Controller {
    @Autowired
    private I{EntityName}Service service;

    // Interface methods
}

Step 6: Generate Frontend Code

Call software-engineer to generate frontend code:

a. API Interface

javascript
import request from '@/utils/request'

export function list{EntityName}(query) {
  return request({
    url: '/{module}/list',
    method: 'get',
    params: query
  })
}

b. Vue Component

vue
<template>
  <!-- Page template -->
</template>

<script>
export default {
  name: '{EntityName}',
  data() {
    return {
      // Data
    }
  },
  methods: {
    // Methods
  }
}
</script>

Step 7: Implement Business Logic

Implement based on business logic in specifications:

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

Expert Consultation (as needed):

  • RuoYi issues → expert-ruoyi
  • Database issues → expert-mysql

Step 8: Run Test Validation

If test cases exist, run test validation:

  • Unit tests
  • Interface tests
  • Integration tests

Step 9: Update Acceptance Status

Update acceptance status in checklist.md:

  • Business acceptance items
  • Technical acceptance items
  • Integration acceptance items

Step 10: Generate Acceptance Report

Output acceptance results:

markdown
## Acceptance Report

**Feature Point**: FP-XXX-NNN
**Feature Name**: xxx
**Acceptance Date**: {Date}

### Business Acceptance
| No. | Acceptance Scenario | Expected Result | Actual Result | Status |
|------|---------|---------|---------|------|
| 1 | xxx | xxx | xxx | ✓/✗ |

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

### Issue Log
- [Issue1]: Description
- [Issue2]: Description

### Conclusion
- [ ] Pass
- [ ] Fail, needs modification

3. Expert Consultation Process

pdd-implement-feature starts
    │
    ├─► Identify RuoYi framework issues
    │       │
    │       ▼
    │   expert-ruoyi consultation
    │       │
    │       ▼
    │   Return solution
    │
    ├─► Identify database issues
    │       │
    │       ▼
    │   expert-mysql consultation
    │       │
    │       ▼
    │   Return optimization solution
    │
    ├─► Identify code quality issues
    │       │
    │       ▼
    │   expert-code-quality consultation
    │       │
    │       ▼
    │   Return refactoring recommendations
    │
    └─► Continue implementation

3.1 expert-ruoyi Invocation Example

Trigger Condition: Encountering permission validation issues
Call: expert-ruoyi
Input:
  - Issue: @PreAuthorize annotation not working
  - Code snippet: [Related code]
  - Error message: Permission validation failed

Return:
  - Solution
  - Best practices
  - sys_menu configuration recommendations

3.2 expert-mysql Invocation Example

Trigger Condition: Encountering query performance issues
Call: expert-mysql
Input:
  - SQL: SELECT * FROM large_table WHERE ...
  - Table size: 10 million records
  - Execution plan: [EXPLAIN result]

Return:
  - Optimization solution
  - Index recommendations
  - SQL rewrite

4. Code Standards

4.1 Backend Standards

  • Class names use PascalCase
  • Method names use camelCase
  • Constants use UPPER_SNAKE_CASE
  • Comments use Javadoc format

4.2 Frontend Standards

  • Component names use PascalCase
  • Method names use camelCase
  • CSS class names use kebab-case
  • Use ES6+ syntax

4.3 software-engineer Standards

Follow the core rules of software-engineer skill:

  • Read existing code style before writing new code
  • Error handling first
  • Keep it minimal
  • PR-ready code

5. Guardrails

  • Code must comply with project standards
  • Must implement all interfaces defined in specifications
  • Must handle all exceptions defined in specifications
  • Must pass all acceptance items before marking as complete
  • Must synchronize specification documents after code changes
  • Must consult expert skills when encountering technical issues
  • Code implementation must follow software-engineer standards

6. Collaboration with Other Skills

Collaborative SkillCollaboration MethodInput DataExpected Output
software-engineerDelegationSpecification documentsStandards-compliant code
expert-ruoyiConsultationTechnical issuesSolutions
expert-mysqlConsultationSQL issuesOptimization solutions
expert-code-qualityConsultationCode issuesRefactoring recommendations
pdd-code-reviewerSequentialCode + SpecificationsReview report
pdd-pr-createSequentialChange IDPR + Review report
pdd-pr-mergeSequentialChange IDMerge + Archive

7. PR Management Layer Prompts

7.1 Prompt After Feature Point Completion

After feature point implementation and validation passes, prompt user that PR management skills can be used:

## Feature Point Implementation Complete

**Feature Point**: FP-XXX-NNN
**Status**: Acceptance passed

### Available PR Management Operations

If you need to create a PR, you can manually call the following skills:
- `/pdd-pr-create {change-id}` - Create PR and execute automated review
- `/pdd-pr-review {change-id}` - View PR review results
- `/pdd-pr-merge {change-id}` - Merge PR and archive

### Manual Operation Steps

1. Create OpenSpec Change (optional):

/openspec-new-change {change-name}


2. Create PR:

/pdd-pr-create {change-id}


3. Confirm merge:

/pdd-pr-merge {change-id}

7.2 Do Not Automatically Call PR Skills

Important Principles:

  • PDD framework will not automatically call pdd-pr-* skills
  • Users need to manually decide whether to use PR management features
  • PR management skills are optional, not required

7.3 PR Management Skill Description

SkillFunctionInvocation Method
pdd-pr-createCreate PR and execute automated reviewUser manual call
pdd-pr-reviewView PR review resultsUser manual call
pdd-pr-mergeMerge PR and archiveUser manual call
pdd-pr-batchBatch process multiple PRsUser manual call

8. Guardrails (Updated)

  • Code must comply with project standards
  • Must implement all interfaces defined in specifications
  • Must handle all exceptions defined in specifications
  • Must pass all acceptance items before marking as complete
  • Must synchronize specification documents after code changes
  • Must consult expert skills when encountering technical issues
  • Code implementation must follow software-engineer standards
  • Prompt user about available PR management skills after feature point completion, but do not automatically call

9. Error Handling and Fallback Specifications

9.1 Error Classification

LevelDefinitionBlocking
CriticalMust fix, blocks process✅ Blocking
WarningRecommended to fix, non-blocking❌ Non-blocking
SuggestionOptional optimization❌ Non-blocking

9.2 Retry Strategy

yaml
Limit: Maximum 3 times per feature point
Count: Each re-review/validation after fix counts as 1 time
Exceed limit: Pause process, wait for manual decision

9.3 Fallback Rules

Failure ScenarioFallback PositionRe-execution
pdd-code-reviewer review failedpdd-implement-featureRe-review after fix
pdd-verify-feature validation failedpdd-implement-featureRe-validate after fix

9.4 Failure Recording

  • Location: dev-specs/FP-{module}-{sequence}/review-report.md
  • Record Content:
    • Failure time
    • Failure stage
    • Failure reason
    • Number of attempts
    • Related error logs

9.5 Manual Intervention Process

Retry count exceeds 3 times
    │
    ▼
Pause process
    │
    ▼
Generate pause report
    ├── Current status
    ├── Failure history
    ├── Attempted fixes
    └── Issues requiring manual decision
    │
    ▼
Wait for manual decision
    ├── Continue fixing
    ├── Skip current feature point
    ├── Terminate process
    └── Other solutions

10. PDD Implementation Specification Reference

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

Core Specification Summary

SpecificationCore Content
Skill Boundariespdd-code-reviewer (compliance) → expert-code-quality (quality depth)
Context PassingFile system passing, directory structure standards, supports checkpoint resumption
Manual ReviewBatch review + detailed review of critical feature points
Error HandlingCritical blocking, pause after 3 retries waiting for manual intervention
PR ManagementManual trigger, Change-granularity PR, manual archiving
Documentation System9 core document types, naming conventions, in-document change history

Câu hỏi thường gặp

Kỹ năng AI Pdd Implement Feature làm được gì?

Implement feature point code based on development specifications. Call this Skill when users want to start coding implementation. 支持中文触发:实现功能点、编码实现、开始编码、功能开发、代码实现、PDD实现。

Vì sao nên dùng Pdd Implement Feature trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Pdd Implement Feature là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Pdd Implement Feature trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/wonderslife/pdd-skills/tree/main/pdd-implement-feature. TypingMind đọc tệp SKILL.md rồi cài đặt kỹ năng để bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Pdd Implement Feature?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Có thể dùng Pdd Implement Feature với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Pdd Implement Feature với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Pdd Implement Feature có miễn phí không?

Có. Kỹ năng này được wonderslife phát hành trên GitHub theo giấy phép MIT. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp các công cụ mới mà mô hình có thể gọi. Khi mô hình gọi một công cụ, mã của công cụ đó chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và những tiêu chí mà kết quả cần đáp ứng. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇