Logo Quality Attribute

Quality Attribute

Cộng đồng
jdm4pku
quality-attribute

Specify non-functional requirements using Planguage notation with measurable scales, meters, goals, and trade-off analysis. Use when quality attributes like performance, security, or usability need quantified, testable specifications.

Tổng quan

Nhà phát hànhjdm4pku
Kho mãRE-Skills
Tên kỹ năngquality-attribute
Sao
27
Bản fork
1
Tệp đi kèm
2
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 là Markdown thuần túy, không phải 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ộ.

  • 2 tệp đi kèm

    Các tập lệnh, mẫu và tài liệu tham khảo mà mô hình có thể đọc khi làm việc. Các tệp chỉ cho phép đọc và không bao giờ được thực thi.

  • Mã nguồn mở

    Được jdm4pku công bố trên GitHub. Hãy đọc nội dung nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Quality Attribute 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 thư mục kỹ năng bên dưới và xác nhận.
    https://github.com/jdm4pku/RE-Skills/tree/main/skills/quality-attribute
  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/jdm4pku/RE-Skills.git /tmp/RE-Skills
mkdir -p .claude/skills
cp -r /tmp/RE-Skills/skills/quality-attribute .claude/skills/quality-attribute
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 Quality Attribute 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ự tải Quality Attribute 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 Quality Attribute không bị giới hạn ở mô hình mà kỹ năng này được viết cho. 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 kỹ năng chưa dùng không tốn chi phí.

  • Đổ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.

Purpose

Guide requirements engineers through identifying, prioritizing, and specifying quality attributes (non-functional requirements) with measurable targets. Uses Planguage notation for precise specification and a trade-off matrix for resolving conflicts between competing attributes.

This is not a checklist of generic NFRs to copy into your SRS. It is a process for discovering which quality attributes matter for your system and specifying them precisely enough to test.

Key Concepts

Quality Attribute Taxonomy

External Quality Attributes (visible to users):

AttributeDefinition
AvailabilityPercentage of time the system is operational and accessible
InstallabilityEase of installing the system in target environments
IntegrityPrevention of unauthorized data access or corruption
InteroperabilityAbility to exchange data with other systems
PerformanceResponse time, throughput, and resource utilization under load
ReliabilityAbility to perform without failure for a specified period
RobustnessAbility to handle invalid inputs, errors, and unexpected conditions gracefully
SafetyAbility to avoid states that cause harm to people or the environment
SecurityResistance to unauthorized access, data breaches, and malicious attacks
UsabilityEase of learning, efficiency of use, memorability, error frequency, satisfaction

Internal Quality Attributes (visible to developers/maintainers):

AttributeDefinition
EfficiencyMinimal use of system resources (CPU, memory, storage, bandwidth)
ModifiabilityEase of changing the system to meet new requirements
PortabilityEase of transferring to a new environment
ReusabilityComponents usable in other systems
ScalabilityAbility to handle growth in users, data, or transactions
VerifiabilityEase of testing and validating the system

Planguage Notation

Tom Gilb's Planguage provides precise specification:

TagMeaningExample
TagName of the quality attributeResponse Time
AmbitionQualitative goal statementFast enough that users do not perceive delay
ScaleUnit of measurementSeconds from user action to system response
MeterHow to measureAutomated test harness under simulated load
GoalRealistic target95th percentile response time <= 2 seconds
StretchIdeal target (exceeds goal)95th percentile response time <= 1 second
WishAspirational (not committed)95th percentile response time <= 0.5 seconds
FailUnacceptable threshold95th percentile response time > 5 seconds
PastCurrent baseline95th percentile response time = 4.2 seconds

Quality Attribute Trade-Off Matrix

When attributes conflict, make the trade-off explicit:

PerformanceSecurityUsabilityAvailability
Performance--Perf > Sec?Perf > Usab?Perf > Avail?
Security--Sec > Usab?Sec > Avail?
Usability--Usab > Avail?
Availability--

For each pair, stakeholders decide which attribute wins when they conflict. Document the decision and rationale.

The Five-Step Quality Attribute Process

  1. Start with the broad taxonomy -- Present the full list; do not define attributes in a vacuum
  2. Reduce the list -- Identify which attributes actually matter for this system
  3. Prioritize -- Rank the remaining attributes by importance
  4. Elicit expectations -- For each priority attribute, discover stakeholder expectations
  5. Specify SMART requirements -- Write measurable requirements using Planguage

Anti-Patterns

  • The "Ilities" Dump -- Copy-pasting 20 generic quality attributes into the SRS without analysis
  • Wishful Thinking -- "99.999% availability" for a system that does not need (or cannot afford) it
  • Unmeasurable NFRs -- "The system shall be user-friendly" (what does that mean? how do you test it?)

Application

Use template.md for the fill-in structure.

Step 1: Present the Taxonomy

Show stakeholders the full list of external and internal quality attributes. Ask:

  • "Which of these are important for this system?"
  • "Which of these could be a risk if we get them wrong?"
  • "Which of these are competitors doing better than us?"

Step 2: Reduce the List

From the full taxonomy, select 4-8 attributes that genuinely matter. Not every system needs all attributes:

  • A medical device needs Safety and Reliability
  • An e-commerce site needs Performance and Availability
  • An internal tool needs Usability and Modifiability

Step 3: Prioritize

Rank the selected attributes. Use pairwise comparison: "If Performance and Security conflict, which wins?"

Document in a trade-off matrix.

Step 4: Elicit Expectations

For each prioritized attribute, interview stakeholders:

  • "What does 'fast enough' mean to you? Give me a number."
  • "How much downtime is acceptable per month?"
  • "What happens to the business if the system is down for 1 hour? 1 day?"
  • "What is the current baseline for this attribute?"

Step 5: Specify with Planguage

For each attribute, write a Planguage specification:

markdown
### QA-001: Search Response Time

- **Tag:** Response Time (Search Operations)
- **Ambition:** Search results appear fast enough that lab technicians
  do not lose their train of thought
- **Scale:** Seconds from submitting search query to full results display
- **Meter:** Automated load test with 50 concurrent users, 50,000 chemical
  records, measured at 95th percentile
- **Past:** 4.2 seconds (current spreadsheet-based lookup)
- **Fail:** > 5 seconds (technicians will revert to manual lookup)
- **Goal:** <= 2 seconds
- **Stretch:** <= 1 second
- **Wish:** <= 0.5 seconds (instant feel)
- **Source:** Lab Technician user class (Maria Santos), Usability workshop
- **Priority:** High
- **Traces to:** BO-1 (Reduce reporting time)

Step 6: Validate

  • Each quality attribute has a measurable scale and meter
  • Goal and Fail thresholds are defined (the boundaries that matter most)
  • Trade-off decisions are documented and signed off by stakeholders
  • Specifications are realistic given budget and technology constraints
  • Each specification traces to a business objective

Examples

See examples/sample.md for complete quality attribute specifications.

Mini example:

markdown
### Quality Attribute Trade-Off Matrix (ChemTrack)

|              | Performance | Security | Usability | Availability |
|--------------|-------------|----------|-----------|-------------|
| Performance  | --          | Sec wins | Perf wins | Avail wins  |
| Security     | Sec wins    | --       | Sec wins  | Sec wins    |
| Usability    | Perf wins   | Sec wins | --        | Avail wins  |
| Availability | Avail wins  | Sec wins | Avail wins| --          |

**Priority order:** Security > Availability > Performance > Usability
**Rationale:** Chemical safety data must be secure (regulatory). System
must be available during lab hours (safety). Speed matters for daily use.
Usability is important but secondary to the above three.

Common Pitfalls

Pitfall 1: "The System Shall Be Fast"

Symptom: Vague quality attribute with no scale, meter, or target.

Consequence: Nobody knows when the requirement is met. Performance testing has no pass/fail criteria.

Fix: Use Planguage: define the scale (seconds), meter (how to measure), and goal (target number).


Pitfall 2: Unrealistic Targets

Symptom: "99.999% availability" (five nines = 5.26 minutes downtime per year).

Consequence: Five-nines availability costs orders of magnitude more than three-nines. Budget does not support it.

Fix: Always pair targets with cost analysis. Ask: "What is the business cost of each hour of downtime?" and work backward to justify the investment.


Pitfall 3: No Trade-Off Discussion

Symptom: All quality attributes are marked "High priority."

Consequence: When they inevitably conflict (security adds login friction, reducing usability), there is no decision framework.

Fix: Force pairwise trade-off decisions using the matrix. Every pair must have a winner documented.


Pitfall 4: Quality Attributes as Afterthoughts

Symptom: Quality attributes added at the end of the SRS as an afterthought, after all functional requirements are written.

Consequence: Architecture decisions driven by functional requirements alone may be incompatible with quality attribute targets. Expensive rework.

Fix: Identify quality attributes during vision and scope. They influence architecture and should be known before detailed design.

References

Related Skills

  • skills/srs-document/SKILL.md -- Quality attributes are Section 6 of the SRS
  • skills/vision-and-scope/SKILL.md -- Quality risks identified during vision and scope
  • skills/acceptance-criteria/SKILL.md -- Quality attributes need testable acceptance criteria
  • skills/requirements-validation-process/SKILL.md -- Validating quality attribute feasibility

External Frameworks

  • Tom Gilb, Competitive Engineering (2005) -- Planguage notation
  • Len Bass, Paul Clements, Rick Kazman, Software Architecture in Practice (2012) -- Quality attribute scenarios
  • Karl Wiegers & Joy Beatty, Software Requirements, Third Edition (2013) -- Chapter 14: Beyond Functionality
  • ISO/IEC 25010:2011 -- Systems and software Quality Requirements and Evaluation (SQuaRE)

Skill type: Component Dependencies: References skills/vision-and-scope/SKILL.md Used by: skills/srs-document/SKILL.md, skills/requirements-validation-process/SKILL.md

Tệp đi kèm

Mô hình đọc các tệp này khi cần trong lúc kỹ năng được tải. Các tệp được cung cấp ở dạng có thể đọc và không bao giờ được thực thi.

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

Kỹ năng AI Quality Attribute làm được gì?

Specify non-functional requirements using Planguage notation with measurable scales, meters, goals, and trade-off analysis. Use when quality attributes like performance, security, or usability need quantified, testable specifications.

Vì sao nên dùng Quality Attribute 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. Quality Attribute 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 Quality Attribute trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/jdm4pku/RE-Skills/tree/main/skills/quality-attribute. TypingMind đọc tệp SKILL.md, đóng gói các tệp đi kèm và cài đặt thành một kỹ năng mà 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 Quality Attribute?

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.

Bạn có thể dùng Quality Attribute 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 Quality Attribute 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 Quality Attribute có miễn phí không?

Kỹ năng này được jdm4pku phát hành trên GitHub. Hãy xem điều khoản giấy phép trong kho mã. 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 cho mô hình các công cụ mới để gọi — mã đượ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à tiêu chí của đầu ra tốt. 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 👇