Logo Derive Acceptance Criteria From Business Logic

Derive Acceptance Criteria From Business Logic

Cộng đồng
meirm
derive-acceptance-criteria-from-business-logic

Converts trusted business logic into product-owner-grade acceptance criteria and developer-ready tasks using Given/When/Then scenarios. Use when creating user stories, preparing for sprints, or turning BL into executable requirements.

Add to TypingMind

Tổng quan

Nhà phát hànhmeirm
Kho mãreverse-engineering-skill
Tên kỹ năngderive-acceptance-criteria-from-business-logic
Sao
46
Bản fork
7
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 meirm 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 Derive Acceptance Criteria From Business Logic 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/meirm/reverse-engineering-skill/tree/main/skills/derive-acceptance-criteria-from-business-logic
  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/meirm/reverse-engineering-skill.git /tmp/reverse-engineering-skill
mkdir -p .claude/skills
cp -r /tmp/reverse-engineering-skill/skills/derive-acceptance-criteria-from-business-logic .claude/skills/derive-acceptance-criteria-from-business-logic
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 Derive Acceptance Criteria From Business Logic 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 Derive Acceptance Criteria From Business Logic 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 Derive Acceptance Criteria From Business Logic 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.

Deriving Acceptance Criteria from Business Logic

Project-agnostic. Use BDD/project_config.yaml → terminology for domain terms in scenarios when present (see tailor-bdd-skills-for-project).

Purpose

Transform trusted business logic into clear, testable acceptance criteria that can guide development and verify implementation. This is how BL starts leading software development.

Prerequisites

  • Refined business logic document (use refine-business-logic-for-implementation first)
  • Understanding of the target audience (product owners, developers, QA)
  • Access to project templates or standards for acceptance criteria

Instructions

Step 1: Parse the Business Logic Document

Read the refined BL and identify:

bash
cat path/to/refined_bl_document.md

Extract:

  • User-facing capabilities and features
  • Business policies and constraints
  • Workflows and user journeys
  • Error conditions and edge cases
  • Billing and financial rules

Step 2: Identify User Stories

For each capability, frame it as a user story:

markdown
Format:
  As a <actor>,
  I want to <capability>,
  So that <business_value>.

Examples:

markdown
As a [user role],
I want to [perform core action],
So that [business value].

As an administrator,
I want to monitor [account/balance] state,
So that I can ensure service continuity.

Step 3: Generate Given/When/Then Scenarios

For each user story, create specific scenarios using the Gherkin format:

gherkin
Scenario: <Descriptive title>
  Given <initial context>
  When <action occurs>
  Then <expected outcome>
  And <additional outcomes>

Scenario Categories:

  1. Happy path - Successful operation
  2. Sad path - Error conditions
  3. Edge cases - Boundary conditions
  4. Business rules - Specific policy enforcement

Step 4: Create Acceptance Criteria

For each user story, list concrete acceptance criteria:

markdown
Acceptance Criteria:
  1. [Specific, testable requirement]
  2. [Specific, testable requirement]
  ...

Good acceptance criteria are:

  • Specific and unambiguous
  • Testable (can be verified)
  • Independent (not dependent on other stories)
  • Negotiable (can be discussed and clarified)

Step 5: Add Implementation Checklist

Add technical checklist items for developers:

markdown
Implementation Checklist:
  - [ ] Database migration if needed
  - [ ] API endpoint changes
  - [ ] Background task modifications
  - [ ] Validation logic
  - [ ] Error handling
  - [ ] Logging requirements
  - [ ] Test coverage

Step 6: Define Non-Functional Requirements

Add relevant non-functional requirements:

markdown
Non-Functional Requirements:
  - Performance: <specific metrics>
  - Security: <specific requirements>
  - Reliability: <specific guarantees>
  - Scalability: <specific constraints>

Step 7: Define "Done" Criteria

Specify what "done" means for this story:

markdown
Done Means:
  - Code reviewed and approved
  - Unit tests written and passing
  - Integration tests passing
  - API documentation updated
  - Business logic document updated
  - No critical bugs outstanding

Step 8: Output the Acceptance Criteria Document

Structure the document:

markdown
# Acceptance Criteria: [Feature Name]

## User Stories
[List of user stories]

## Scenarios
[Given/When/Then scenarios for each story]

## Acceptance Criteria
[Testable requirements for each story]

## Implementation Checklist
[Developer checklist]

## Non-Functional Requirements
[Performance, security, etc.]

## Done Criteria
[Definition of done]

Best Practices

Given/When/Then Guidelines:

  • Given: Set up the initial state (avoid test setup details)
  • When: Describe the action or event
  • Then: Describe the observable outcome
  • Use business language, not technical implementation
  • Be specific with values (use actual numbers, not "valid value")

Acceptance Criteria Guidelines:

  • Start each criterion with a verb
  • Make it measurable (can be verified as pass/fail)
  • Focus on what, not how
  • Include business rules explicitly
  • Cover error cases

Implementation Checklist Guidelines:

  • Include all technical tasks
  • Consider database changes, API changes, background tasks
  • Don't forget tests and documentation
  • Include monitoring and logging if relevant

Common Anti-Patterns to Avoid

❌ Vague scenarios:

gherkin
Scenario: Query is processed
  Given a valid request
  When the request is processed
  Then it should work

✅ Specific scenarios:

gherkin
Scenario: Request submitted with sufficient balance
  Given an account with 100 [balance units]
  And the operation cost is 10 [units]
  When the user submits the [operation]
  Then the request is created with status "SUBMITTED"
  And the account balance is 90 [units]

❌ Implementation details in scenarios:

gherkin
Scenario: Database transaction works
  Given the database is available
  When the transaction starts
  Then the lock is acquired

✅ Business-focused scenarios:

gherkin
Scenario: Concurrent operations handled correctly
  Given an account with exactly 10 [balance units]
  When two users submit 10-unit operations simultaneously
  Then only one operation succeeds
  And the other is rejected with insufficient balance error

Examples

Example 1: Request/operation submission acceptance criteria

User request:

Create acceptance criteria for [request/operation] submission

You would:

User Story: As a [role], I want to [action], So that [value].

Scenarios: Write Given/When/Then for:

  • Successful submission with sufficient balance (include balance deduction and ledger/audit if applicable)
  • Rejection due to insufficient balance (correct status code, no deduction)
  • Rejection due to invalid input (validation error, no charge)
  • Concurrent submissions with exact balance (one succeeds, one rejected; balance never negative)

Acceptance Criteria: List testable conditions for: when the operation is accepted, when and how balance is deducted, when it is rejected and with which codes, and what the response includes.

Implementation Checklist: Validation, balance check, deduction (with concurrency safety if needed), ledger/audit, error codes, tests for concurrency. Use project terminology from config.

Example 2: Async job / status polling acceptance criteria

User request:

Create acceptance criteria for [async job] status polling

You would:

User Story: As a [role], I want to check [job/file] status so that I know when the result is ready.

Scenarios: Given/When/Then for: initial poll returns PROCESSING (with submission_time, estimated_completion); poll returns COMPLETED (with download/result URL and metadata); timeout leads to STALLED and user can request continue polling.

Acceptance Criteria: What the status API returns (status enum, timestamps, for COMPLETED: result URL/metadata, for STALLED: continue option); polling interval and max duration; STALLED and CONTINUE rules (reset counter, max CONTINUEs).

Non-Functional Requirements: Performance (e.g. API response time), reliability (retries), monitoring if applicable.

Acceptance Criteria Template

markdown
# Acceptance Criteria: [Feature Name]

## User Story
As a <actor>,
I want to <capability>,
So that <business_value>.

## Scenarios

### Happy Path
Scenario: [Descriptive title]
  Given [context]
  When [action]
  Then [outcome]

### Sad Path
Scenario: [Descriptive title]
  Given [context]
  When [action]
  Then [outcome]

### Edge Cases
Scenario: [Descriptive title]
  Given [context]
  When [action]
  Then [outcome]

## Acceptance Criteria

1. [Requirement 1]
   - [Sub-requirement or detail]
   - [Sub-requirement or detail]

2. [Requirement 2]
   - [Sub-requirement or detail]

## Implementation Checklist
- [ ] [Task 1]
- [ ] [Task 2]
- [ ] [Task 3]

## Non-Functional Requirements
- **Performance**: [Specific requirement]
- **Security**: [Specific requirement]
- **Reliability**: [Specific requirement]

## Done Means
- [ ] [Criteria 1]
- [ ] [Criteria 2]
- [ ] [Criteria 3]

Output Artifacts

The skill generates:

  1. User stories with clear value propositions
  2. Given/When/Then scenarios for BDD testing
  3. Acceptance criteria checklist for verification
  4. Implementation checklist for developers
  5. Non-functional requirements where applicable
  6. Done criteria for sprint completion

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

Kỹ năng AI Derive Acceptance Criteria From Business Logic làm được gì?

Converts trusted business logic into product-owner-grade acceptance criteria and developer-ready tasks using Given/When/Then scenarios. Use when creating user stories, preparing for sprints, or turning BL into executable requirements.

Vì sao nên dùng Derive Acceptance Criteria From Business Logic 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. Derive Acceptance Criteria From Business Logic 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 Derive Acceptance Criteria From Business Logic trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/meirm/reverse-engineering-skill/tree/main/skills/derive-acceptance-criteria-from-business-logic. 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 Derive Acceptance Criteria From Business Logic?

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 Derive Acceptance Criteria From Business Logic 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 Derive Acceptance Criteria From Business Logic 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 Derive Acceptance Criteria From Business Logic có miễn phí không?

Có. Kỹ năng này được meirm 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 👇