ai-developer-skill-os 8.2.0 → 8.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.agents/LICENSE +21 -21
- package/.agents/README.md +90 -90
- package/.agents/docs/CHI_TIET_SKILLS.md +125 -125
- package/.agents/docs/MIGRATION-CLEANUP-V8.1.3.md +36 -36
- package/.agents/docs/MIGRATION-STATUS.md +35 -35
- package/.agents/docs/MIGRATION-V8.md +10 -10
- package/.agents/docs/V8-CERTIFICATION.md +27 -27
- package/.agents/docs/decisions/ADR-001-v8-migration.md +58 -58
- package/.agents/docs/decisions/ADR-002-workflow-separation.md +50 -50
- package/.agents/docs/decisions/ADR-003-registry-generated.md +54 -54
- package/.agents/docs/decisions/ADR-008-skill-boundary-review.md +27 -27
- package/.agents/registry/graph.json +4 -8
- package/.agents/registry/index.yaml +3 -4
- package/.agents/registry/skills-index.yml +525 -525
- package/.agents/rules/coding.md +10 -0
- package/.agents/rules/command-safety.md +37 -14
- package/.agents/rules/priorities.yml +13 -2
- package/.agents/rules/security.md +47 -7
- package/.agents/rules/skill-quality.md +32 -8
- package/.agents/skills/_template/SKILL.md +133 -132
- package/.agents/skills/_template/capability.yaml +20 -20
- package/.agents/skills/_template/evals/scorecard.yaml +19 -19
- package/.agents/skills/qk-access-policy/SKILL.md +4 -1
- package/.agents/skills/qk-agent-observability/SKILL.md +111 -0
- package/.agents/skills/qk-agent-observability/references/scorecard.yaml +80 -0
- package/.agents/skills/qk-ai-builder/SKILL.md +74 -5
- package/.agents/skills/qk-api-lifecycle/SKILL.md +4 -2
- package/.agents/skills/qk-bug-resolution/SKILL.md +3 -21
- package/.agents/skills/qk-code-review/SKILL.md +188 -189
- package/.agents/skills/qk-context-loader/SKILL.md +3 -47
- package/.agents/skills/qk-data-lifecycle/SKILL.md +7 -2
- package/.agents/skills/qk-db-optimizer/SKILL.md +3 -2
- package/.agents/skills/qk-design-system-engineering/SKILL.md +235 -112
- package/.agents/skills/qk-devops-platform/SKILL.md +241 -117
- package/.agents/skills/qk-docs/SKILL.md +3 -1
- package/.agents/skills/qk-engineering-standard/SKILL.md +4 -75
- package/.agents/skills/qk-engineering-standard/references/anti-patterns.md +121 -0
- package/.agents/skills/qk-engineering-standard/rules/frontend.md +1 -1
- package/.agents/skills/qk-fe-api-integration/SKILL.md +13 -32
- package/.agents/skills/qk-feature-delivery/SKILL.md +54 -202
- package/.agents/skills/qk-frontend-architecture/SKILL.md +258 -134
- package/.agents/skills/qk-help/SKILL.md +21 -159
- package/.agents/skills/qk-orchestrator/SKILL.md +2 -78
- package/.agents/skills/qk-orchestrator/references/routing-table.md +15 -3
- package/.agents/skills/qk-product-specification/SKILL.md +253 -130
- package/.agents/skills/qk-production-release/SKILL.md +32 -67
- package/.agents/skills/qk-project-bootstrap/SKILL.md +59 -8
- package/.agents/skills/qk-project-health/SKILL.md +4 -2
- package/.agents/skills/qk-project-memory/SKILL.md +3 -1
- package/.agents/skills/qk-security-audit/SKILL.md +259 -135
- package/.agents/skills/qk-system-evolution/SKILL.md +18 -68
- package/.agents/skills/qk-test-engineering/SKILL.md +262 -139
- package/.agents/skills/qk-ui-audit/SKILL.md +16 -89
- package/.agents/skills/qk-ui-audit/references/anti-slop-checklist.md +2 -2
- package/.agents/skills/qk-ui-builder/SKILL.md +482 -509
- package/.agents/skills/qk-ui-builder/references/component-cookbook.md +455 -1191
- package/.agents/skills/qk-ui-system-builder/SKILL.md +1 -5
- package/.agents/skills/qk-validation-gate/SKILL.md +0 -74
- package/.agents/skills/qk-web-quality-gate/SKILL.md +232 -114
- package/.agents/workflows/_schema.yml +146 -109
- package/.agents/workflows/bug-resolution.yml +121 -101
- package/.agents/workflows/code-review.yml +93 -77
- package/.agents/workflows/documentation.yml +90 -75
- package/.agents/workflows/feature-delivery.yml +120 -103
- package/.agents/workflows/refactor.yml +99 -81
- package/.agents/workflows/research.yml +75 -60
- package/.agents/workflows/security-audit.yml +115 -72
- package/.agents/workflows/skill-evolution.yml +97 -65
- package/.agents/workflows/spec-driven-development.yml +87 -57
- package/CHANGELOG.md +10 -0
- package/README.md +90 -90
- package/bin/install.js +330 -180
- package/package.json +2 -2
- package/.agents/CHANGELOG.md +0 -131
- package/.agents/learnings/draft/README.md +0 -37
- package/.agents/reports/RELEASE-CHECKLIST.md +0 -29
- package/.agents/reports/architecture-audit.md +0 -13
- package/.agents/reports/graph-health.md +0 -20
- package/.agents/reports/skill-audit.md +0 -215
|
@@ -1,139 +1,262 @@
|
|
|
1
|
-
---
|
|
2
|
-
# ── Identity ───────────────────────────────────────────────
|
|
3
|
-
name: qk-test-engineering
|
|
4
|
-
version: 8.1.0
|
|
5
|
-
status: experimental
|
|
6
|
-
description: "Công cụ quyết định chiến lược kiểm thử (Unit, Integration, E2E, Coverage, Regression, Mock)."
|
|
7
|
-
platforms: [antigravity, claude-code, cursor, windsurf, kilo-code]
|
|
8
|
-
|
|
9
|
-
# ── V8: Classification ─────────────────────────────────────
|
|
10
|
-
type: capability
|
|
11
|
-
|
|
12
|
-
intent:
|
|
13
|
-
- testing-strategy
|
|
14
|
-
- unit-test
|
|
15
|
-
- integration-test
|
|
16
|
-
- e2e-test
|
|
17
|
-
- mock-strategy
|
|
18
|
-
- test-coverage
|
|
19
|
-
|
|
20
|
-
complexity:
|
|
21
|
-
level: high
|
|
22
|
-
criteria:
|
|
23
|
-
files_affected: "1-5"
|
|
24
|
-
has_behavior_change: true
|
|
25
|
-
has_external_dependency: true
|
|
26
|
-
has_breaking_change: false
|
|
27
|
-
|
|
28
|
-
triggers:
|
|
29
|
-
- "chiến lược test"
|
|
30
|
-
- "viết test"
|
|
31
|
-
- "mock data"
|
|
32
|
-
- "test coverage"
|
|
33
|
-
|
|
34
|
-
# ── V8: References ─────────────────────────────────────────
|
|
35
|
-
workflow: feature-delivery
|
|
36
|
-
|
|
37
|
-
rules:
|
|
38
|
-
- global
|
|
39
|
-
- coding
|
|
40
|
-
|
|
41
|
-
tools:
|
|
42
|
-
- filesystem
|
|
43
|
-
- terminal
|
|
44
|
-
|
|
45
|
-
related_skills:
|
|
46
|
-
- qk-engineering-standard
|
|
47
|
-
|
|
48
|
-
knowledge_scope:
|
|
49
|
-
domain:
|
|
50
|
-
- testing-strategy
|
|
51
|
-
- quality-assurance
|
|
52
|
-
- unit-testing
|
|
53
|
-
- integration-testing
|
|
54
|
-
- e2e-testing
|
|
55
|
-
- visual-regression
|
|
56
|
-
concepts:
|
|
57
|
-
- test-pyramid
|
|
58
|
-
- mock-strategy
|
|
59
|
-
references:
|
|
60
|
-
- architecture
|
|
61
|
-
-
|
|
62
|
-
-
|
|
63
|
-
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
-
|
|
69
|
-
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
-
|
|
93
|
-
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
-
|
|
98
|
-
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
-
|
|
137
|
-
-
|
|
138
|
-
-
|
|
139
|
-
-
|
|
1
|
+
---
|
|
2
|
+
# ── Identity ───────────────────────────────────────────────
|
|
3
|
+
name: qk-test-engineering
|
|
4
|
+
version: 8.1.0
|
|
5
|
+
status: experimental
|
|
6
|
+
description: "Công cụ quyết định chiến lược kiểm thử (Unit, Integration, E2E, Coverage, Regression, Mock)."
|
|
7
|
+
platforms: [antigravity, claude-code, cursor, windsurf, kilo-code]
|
|
8
|
+
|
|
9
|
+
# ── V8: Classification ─────────────────────────────────────
|
|
10
|
+
type: capability
|
|
11
|
+
|
|
12
|
+
intent:
|
|
13
|
+
- testing-strategy
|
|
14
|
+
- unit-test-strategy
|
|
15
|
+
- integration-test-strategy
|
|
16
|
+
- e2e-test-strategy
|
|
17
|
+
- mock-strategy
|
|
18
|
+
- test-coverage-planning
|
|
19
|
+
|
|
20
|
+
complexity:
|
|
21
|
+
level: high
|
|
22
|
+
criteria:
|
|
23
|
+
files_affected: "1-5"
|
|
24
|
+
has_behavior_change: true
|
|
25
|
+
has_external_dependency: true
|
|
26
|
+
has_breaking_change: false
|
|
27
|
+
|
|
28
|
+
triggers:
|
|
29
|
+
- "chiến lược test"
|
|
30
|
+
- "viết test"
|
|
31
|
+
- "mock data"
|
|
32
|
+
- "test coverage"
|
|
33
|
+
|
|
34
|
+
# ── V8: References ─────────────────────────────────────────
|
|
35
|
+
workflow: feature-delivery
|
|
36
|
+
|
|
37
|
+
rules:
|
|
38
|
+
- global
|
|
39
|
+
- coding
|
|
40
|
+
|
|
41
|
+
tools:
|
|
42
|
+
- filesystem
|
|
43
|
+
- terminal
|
|
44
|
+
|
|
45
|
+
related_skills:
|
|
46
|
+
- qk-engineering-standard
|
|
47
|
+
|
|
48
|
+
knowledge_scope:
|
|
49
|
+
domain:
|
|
50
|
+
- testing-strategy
|
|
51
|
+
- quality-assurance
|
|
52
|
+
- unit-testing
|
|
53
|
+
- integration-testing
|
|
54
|
+
- e2e-testing
|
|
55
|
+
- visual-regression
|
|
56
|
+
concepts:
|
|
57
|
+
- test-pyramid
|
|
58
|
+
- mock-strategy
|
|
59
|
+
references:
|
|
60
|
+
- architecture
|
|
61
|
+
- anti-patterns
|
|
62
|
+
- playwright
|
|
63
|
+
- vitest
|
|
64
|
+
- storybook-testing
|
|
65
|
+
|
|
66
|
+
decision_boundary:
|
|
67
|
+
owns:
|
|
68
|
+
- test pyramid
|
|
69
|
+
- coverage strategy
|
|
70
|
+
- regression planning
|
|
71
|
+
does_not_own:
|
|
72
|
+
- business logic implementation
|
|
73
|
+
- writing tests
|
|
74
|
+
conflicts_with: []
|
|
75
|
+
|
|
76
|
+
# ── V8: Verification ───────────────────────────────────────
|
|
77
|
+
verification:
|
|
78
|
+
required: true
|
|
79
|
+
strategy: feature
|
|
80
|
+
|
|
81
|
+
lifecycle:
|
|
82
|
+
promotion_gate:
|
|
83
|
+
requirements:
|
|
84
|
+
tests:
|
|
85
|
+
minimum_pass_rate: 0.95
|
|
86
|
+
usage:
|
|
87
|
+
minimum_runs: 20
|
|
88
|
+
conflicts:
|
|
89
|
+
zero_boundary_violation: true
|
|
90
|
+
evidence:
|
|
91
|
+
required:
|
|
92
|
+
- evaluation_report
|
|
93
|
+
- usage_history
|
|
94
|
+
- boundary_audit
|
|
95
|
+
demotion_gate:
|
|
96
|
+
triggers:
|
|
97
|
+
- repeated_failure
|
|
98
|
+
- boundary_violation
|
|
99
|
+
- outdated_reference
|
|
100
|
+
action:
|
|
101
|
+
change_status: "stable -> experimental"
|
|
102
|
+
|
|
103
|
+
selection:
|
|
104
|
+
priority: medium
|
|
105
|
+
confidence_threshold: 0.80
|
|
106
|
+
|
|
107
|
+
examples: []
|
|
108
|
+
learnings: []
|
|
109
|
+
|
|
110
|
+
# ── V7 Runtime ─────────────────────────────────────────────
|
|
111
|
+
execution_mode: deterministic
|
|
112
|
+
cost: medium
|
|
113
|
+
latency: medium
|
|
114
|
+
risk: low
|
|
115
|
+
side_effects: read_only
|
|
116
|
+
produces: [report, test_plan]
|
|
117
|
+
consumes: [user-description]
|
|
118
|
+
|
|
119
|
+
token_budget:
|
|
120
|
+
max_files_read: 5
|
|
121
|
+
max_lines_per_read: 150
|
|
122
|
+
max_shell_commands: 0
|
|
123
|
+
stop_early: true
|
|
124
|
+
|
|
125
|
+
exit_codes: [SUCCESS, BLOCKED, FAILED, PARTIAL]
|
|
126
|
+
---
|
|
127
|
+
|
|
128
|
+
# qk-test-engineering — Test Engineering Strategist
|
|
129
|
+
|
|
130
|
+
> **Language rule:** Code, identifiers, file names → English. Explanations, summaries → Vietnamese.
|
|
131
|
+
|
|
132
|
+
## Preconditions
|
|
133
|
+
- [ ] Có code hoặc requirement rõ ràng cần kiểm thử.
|
|
134
|
+
|
|
135
|
+
## Scope
|
|
136
|
+
- Đưa ra quyết định chọn loại test (Unit, Integration, E2E) theo Test Pyramid.
|
|
137
|
+
- Thiết kế chiến lược Mock (Mocking vs Stubbing vs Faking).
|
|
138
|
+
- Đánh giá Test Coverage hiện tại và đưa ra target.
|
|
139
|
+
- Quyết định Regression analysis (những phần nào cần test lại khi file A thay đổi).
|
|
140
|
+
- **Bắt buộc thiết kế test case cho ranh giới dữ liệu (Negative Testing / Boundary Testing) để đảm bảo tuân thủ R-SEC-04.**
|
|
141
|
+
- Không tự động sinh test trừ khi user yêu cầu implement, skill này chủ yếu tư vấn architecture và strategy cho QA/Testing.
|
|
142
|
+
|
|
143
|
+
## Non-Goals
|
|
144
|
+
- ❌ Provide implementation outside of Testing Strategy scope
|
|
145
|
+
- ❌ Override explicit user directives without explanation
|
|
146
|
+
- ❌ Guess ambiguous requirements without asking
|
|
147
|
+
|
|
148
|
+
## Priority Order
|
|
149
|
+
|
|
150
|
+
| Priority | Task | Skip Threshold |
|
|
151
|
+
|----------|------|----------------|
|
|
152
|
+
| P1 | Core Testing Strategy analysis and decision making | Never |
|
|
153
|
+
| P2 | Validation of existing patterns | Budget < 30% |
|
|
154
|
+
| P3 | Detailed documentation generation | Budget < 50% |
|
|
155
|
+
| P4 | Edge case exploration | Budget < 70% |
|
|
156
|
+
|
|
157
|
+
## Workflow
|
|
158
|
+
|
|
159
|
+
### Phase 1 — Context Loading
|
|
160
|
+
**Steps:**
|
|
161
|
+
1. Read existing configuration and requirements related to Testing Strategy.
|
|
162
|
+
2. Check for missing preconditions.
|
|
163
|
+
|
|
164
|
+
**Decision:**
|
|
165
|
+
```
|
|
166
|
+
IF context is clear
|
|
167
|
+
→ Confidence: HIGH → go to Phase 2
|
|
168
|
+
ELSE
|
|
169
|
+
→ EXIT: BLOCKED — ask user
|
|
170
|
+
```
|
|
171
|
+
|
|
172
|
+
### Phase 2 — Analysis & Strategy
|
|
173
|
+
**Steps:**
|
|
174
|
+
1. Analyze the current state against Testing Strategy best practices.
|
|
175
|
+
2. Formulate strategy or audit report based on findings.
|
|
176
|
+
|
|
177
|
+
**Decision:**
|
|
178
|
+
```
|
|
179
|
+
IF strategy/audit is complete
|
|
180
|
+
→ Confidence: HIGH → go to Phase 3
|
|
181
|
+
ELSE IF minor gaps exist
|
|
182
|
+
→ Confidence: MEDIUM → proceed with assumptions noted
|
|
183
|
+
```
|
|
184
|
+
|
|
185
|
+
### Phase 3 — Finalization
|
|
186
|
+
**Steps:**
|
|
187
|
+
1. Generate final report or configuration.
|
|
188
|
+
2. Prepare handoff data for subsequent skills.
|
|
189
|
+
|
|
190
|
+
## Confidence Model
|
|
191
|
+
|
|
192
|
+
| Level | Condition | Action |
|
|
193
|
+
|-------|-----------|--------|
|
|
194
|
+
| HIGH | All preconditions met, context fully understood | Proceed directly |
|
|
195
|
+
| MEDIUM | Some context missing but safe defaults exist | Proceed and note assumptions |
|
|
196
|
+
| LOW | Core requirements missing | EXIT: BLOCKED |
|
|
197
|
+
|
|
198
|
+
## Severity (for findings)
|
|
199
|
+
|
|
200
|
+
| Level | Definition |
|
|
201
|
+
|-------|-----------|
|
|
202
|
+
| CRITICAL | Severe violation of Testing Strategy principles |
|
|
203
|
+
| HIGH | Significant risk or technical debt |
|
|
204
|
+
| MEDIUM | Suboptimal pattern but functional |
|
|
205
|
+
| LOW | Minor style or documentation issue |
|
|
206
|
+
|
|
207
|
+
## Evidence Format
|
|
208
|
+
|
|
209
|
+
```
|
|
210
|
+
[SEVERITY] Context/File
|
|
211
|
+
Issue: [what was found]
|
|
212
|
+
Confidence: HIGH
|
|
213
|
+
Recommendation: [actionable advice]
|
|
214
|
+
```
|
|
215
|
+
|
|
216
|
+
## Retry Policy
|
|
217
|
+
```
|
|
218
|
+
Task fails due to missing context
|
|
219
|
+
└─ Ask user for clarification
|
|
220
|
+
├─ Provided → Retry Phase 1
|
|
221
|
+
└─ Not provided → EXIT: BLOCKED
|
|
222
|
+
```
|
|
223
|
+
|
|
224
|
+
## Escalation Rules
|
|
225
|
+
|
|
226
|
+
```
|
|
227
|
+
BLOCKED: Missing critical context for Testing Strategy
|
|
228
|
+
Missing:
|
|
229
|
+
- [Specific requirement]
|
|
230
|
+
Questions:
|
|
231
|
+
1. Bạn có thể cung cấp thêm thông tin về yêu cầu này không?
|
|
232
|
+
2. Mục tiêu chính của bạn là gì?
|
|
233
|
+
Recommended Assumptions: none
|
|
234
|
+
```
|
|
235
|
+
|
|
236
|
+
## Handoff Contract
|
|
237
|
+
|
|
238
|
+
### Consumes
|
|
239
|
+
```json
|
|
240
|
+
{
|
|
241
|
+
"from": "user or qk-orchestrator",
|
|
242
|
+
"required_fields": ["context"],
|
|
243
|
+
"optional_fields": ["existing_config"]
|
|
244
|
+
}
|
|
245
|
+
```
|
|
246
|
+
|
|
247
|
+
### Produces
|
|
248
|
+
```json
|
|
249
|
+
{
|
|
250
|
+
"to": "user or downstream skill",
|
|
251
|
+
"output_fields": ["strategy_report", "exit_code"]
|
|
252
|
+
}
|
|
253
|
+
```
|
|
254
|
+
|
|
255
|
+
## Exit Codes
|
|
256
|
+
|
|
257
|
+
| Code | Meaning | When |
|
|
258
|
+
|------|---------|------|
|
|
259
|
+
| SUCCESS | Testing Strategy task completed successfully | Strategy/audit generated |
|
|
260
|
+
| PARTIAL | Task completed with assumptions | Medium confidence |
|
|
261
|
+
| BLOCKED | Missing context | Cannot proceed |
|
|
262
|
+
| FAILED | Critical conflict or error | Unresolvable constraint |
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
name: qk-ui-audit
|
|
4
4
|
version: 8.0.0
|
|
5
5
|
status: stable
|
|
6
|
-
description: "Kiểm toán giao diện (UI) với 57-
|
|
6
|
+
description: "Kiểm toán giao diện (UI) với 57-check Anti-Slop checklist — fail nếu score < 76/85 base."
|
|
7
7
|
platforms: [antigravity, claude-code, cursor, windsurf, kilo-code]
|
|
8
8
|
|
|
9
9
|
# ── V8: Classification ─────────────────────────────────────
|
|
@@ -48,6 +48,8 @@ knowledge_scope:
|
|
|
48
48
|
- anti-slop
|
|
49
49
|
references:
|
|
50
50
|
- design-system
|
|
51
|
+
- security
|
|
52
|
+
- anti-patterns
|
|
51
53
|
|
|
52
54
|
# ── V8: Verification ───────────────────────────────────────
|
|
53
55
|
verification:
|
|
@@ -81,12 +83,7 @@ exit_codes: [SUCCESS, BLOCKED, FAILED, PARTIAL]
|
|
|
81
83
|
|
|
82
84
|
# qk-ui-audit — Anti-Slop UI Inspector
|
|
83
85
|
|
|
84
|
-
> **Language rule:** Code, identifiers, file names
|
|
85
|
-
|
|
86
|
-
skill_version: 7.5.0
|
|
87
|
-
runtime_version: 1
|
|
88
|
-
schema_version: 2
|
|
89
|
-
---
|
|
86
|
+
> **Language rule:** Code, identifiers, file names → English. Explanations, summaries → Vietnamese.
|
|
90
87
|
|
|
91
88
|
## Preconditions
|
|
92
89
|
- [ ] `DESIGN.md` exists in project root
|
|
@@ -98,11 +95,6 @@ On missing precondition:
|
|
|
98
95
|
Message: "DESIGN.md not found. Run qk-project-bootstrap to create one, or provide design tokens manually."
|
|
99
96
|
```
|
|
100
97
|
|
|
101
|
-
skill_version: 7.5.0
|
|
102
|
-
runtime_version: 1
|
|
103
|
-
schema_version: 2
|
|
104
|
-
---
|
|
105
|
-
|
|
106
98
|
## Scope
|
|
107
99
|
- ✅ Score UI components against DESIGN.md tokens
|
|
108
100
|
- ✅ Detect generic AI-slop aesthetics
|
|
@@ -114,11 +106,6 @@ schema_version: 2
|
|
|
114
106
|
- ❌ Pixel-level screenshot comparison
|
|
115
107
|
- ❌ Read entire CSS files — use targeted reads
|
|
116
108
|
|
|
117
|
-
skill_version: 7.5.0
|
|
118
|
-
runtime_version: 1
|
|
119
|
-
schema_version: 2
|
|
120
|
-
---
|
|
121
|
-
|
|
122
109
|
## Priority Order
|
|
123
110
|
|
|
124
111
|
| Priority | Category | Points | Skip Threshold |
|
|
@@ -127,16 +114,12 @@ schema_version: 2
|
|
|
127
114
|
| P2 | Layout & Spacing (tokens, grid, whitespace) | 15pts | Budget < 30% |
|
|
128
115
|
| P3 | Typography & Colors (DESIGN.md compliance) | 15pts | Budget < 50% |
|
|
129
116
|
| P4 | Interactions & Animations (hover, focus, transitions) | 15pts | Budget < 60% |
|
|
130
|
-
| P5 | Anti-Slop Detection (
|
|
117
|
+
| P5 | Anti-Slop Detection (Tra chéo với R-C-09: thẻ card xám xịt, viền nhạt nhòa, text nhỏ...) | 15pts | Budget < 70% |
|
|
131
118
|
| P6 | Performance & Best Practices | 10pts | Budget < 80% |
|
|
132
119
|
| BONUS | Mobile & Cross-browser | 5pts extra | Always optional |
|
|
120
|
+
| EXTENDED | Edge cases | 9pts extra | Always optional |
|
|
133
121
|
|
|
134
|
-
**Total: 85 base +
|
|
135
|
-
|
|
136
|
-
skill_version: 7.5.0
|
|
137
|
-
runtime_version: 1
|
|
138
|
-
schema_version: 2
|
|
139
|
-
---
|
|
122
|
+
**Total: 85 base + 14 bonus/extended = 99 max. Pass threshold: ≥ 76/85 base (90%)**
|
|
140
123
|
|
|
141
124
|
## Workflow
|
|
142
125
|
|
|
@@ -150,11 +133,6 @@ schema_version: 2
|
|
|
150
133
|
- Tokens extracted → go to Phase 2
|
|
151
134
|
- DESIGN.md empty or incomplete → EXIT: BLOCKED
|
|
152
135
|
|
|
153
|
-
skill_version: 7.5.0
|
|
154
|
-
runtime_version: 1
|
|
155
|
-
schema_version: 2
|
|
156
|
-
---
|
|
157
|
-
|
|
158
136
|
### Phase 2 — Scan Target UI
|
|
159
137
|
|
|
160
138
|
**Steps:**
|
|
@@ -164,7 +142,7 @@ schema_version: 2
|
|
|
164
142
|
|
|
165
143
|
**Decision:**
|
|
166
144
|
```
|
|
167
|
-
IF score accumulates ≥
|
|
145
|
+
IF score accumulates ≥ 76 after P1+P2+P3
|
|
168
146
|
→ Can skip P4–P6 if token budget < 40%
|
|
169
147
|
→ EXIT: PARTIAL (pass, but incomplete audit noted)
|
|
170
148
|
|
|
@@ -177,11 +155,6 @@ IF CRITICAL violation found (e.g., hardcoded password in UI, broken ARIA)
|
|
|
177
155
|
- All categories checked → go to Phase 3
|
|
178
156
|
- Token budget < 20% → go to Phase 3 with PARTIAL flag
|
|
179
157
|
|
|
180
|
-
skill_version: 7.5.0
|
|
181
|
-
runtime_version: 1
|
|
182
|
-
schema_version: 2
|
|
183
|
-
---
|
|
184
|
-
|
|
185
158
|
### Phase 3 — Score & Report
|
|
186
159
|
|
|
187
160
|
**Steps:**
|
|
@@ -191,21 +164,16 @@ schema_version: 2
|
|
|
191
164
|
|
|
192
165
|
**Decision:**
|
|
193
166
|
```
|
|
194
|
-
IF total score ≥
|
|
167
|
+
IF total score ≥ 76
|
|
195
168
|
→ EXIT: SUCCESS
|
|
196
169
|
|
|
197
|
-
IF total score
|
|
170
|
+
IF total score 60–75
|
|
198
171
|
→ EXIT: PARTIAL — list required fixes
|
|
199
172
|
|
|
200
|
-
IF total score <
|
|
173
|
+
IF total score < 60
|
|
201
174
|
→ EXIT: FAILED — demand redesign, not patch
|
|
202
175
|
```
|
|
203
176
|
|
|
204
|
-
skill_version: 7.5.0
|
|
205
|
-
runtime_version: 1
|
|
206
|
-
schema_version: 2
|
|
207
|
-
---
|
|
208
|
-
|
|
209
177
|
## Confidence Model
|
|
210
178
|
|
|
211
179
|
| Level | Condition | Action |
|
|
@@ -214,11 +182,6 @@ schema_version: 2
|
|
|
214
182
|
| MEDIUM | Inferred from surrounding code patterns | Note assumption |
|
|
215
183
|
| LOW | Cannot verify without rendering (e.g., animation timing) | Mark as "unverifiable — manual check required" |
|
|
216
184
|
|
|
217
|
-
skill_version: 7.5.0
|
|
218
|
-
runtime_version: 1
|
|
219
|
-
schema_version: 2
|
|
220
|
-
---
|
|
221
|
-
|
|
222
185
|
## Severity
|
|
223
186
|
|
|
224
187
|
| Level | Definition | Example |
|
|
@@ -228,11 +191,6 @@ schema_version: 2
|
|
|
228
191
|
| MEDIUM | UX degraded, workaround exists | Missing hover state, no loading indicator |
|
|
229
192
|
| LOW | Minor inconsistency | Spacing off by 1 unit |
|
|
230
193
|
|
|
231
|
-
skill_version: 7.5.0
|
|
232
|
-
runtime_version: 1
|
|
233
|
-
schema_version: 2
|
|
234
|
-
---
|
|
235
|
-
|
|
236
194
|
## Evidence Format
|
|
237
195
|
|
|
238
196
|
```
|
|
@@ -254,22 +212,12 @@ Fix: Replace with `var(--font-size-base)`
|
|
|
254
212
|
Points: -3 pts
|
|
255
213
|
```
|
|
256
214
|
|
|
257
|
-
skill_version: 7.5.0
|
|
258
|
-
runtime_version: 1
|
|
259
|
-
schema_version: 2
|
|
260
|
-
---
|
|
261
|
-
|
|
262
215
|
## Retry Policy
|
|
263
216
|
```
|
|
264
217
|
Audit is read-only — no retry needed.
|
|
265
218
|
If file is inaccessible → note as PARTIAL and continue with other files.
|
|
266
219
|
```
|
|
267
220
|
|
|
268
|
-
skill_version: 7.5.0
|
|
269
|
-
runtime_version: 1
|
|
270
|
-
schema_version: 2
|
|
271
|
-
---
|
|
272
|
-
|
|
273
221
|
## Escalation Rules
|
|
274
222
|
|
|
275
223
|
```
|
|
@@ -283,11 +231,6 @@ Recommended Assumptions (if proceeding):
|
|
|
283
231
|
- Use industry-standard: 8px spacing unit, Inter font, neutral gray palette
|
|
284
232
|
```
|
|
285
233
|
|
|
286
|
-
skill_version: 7.5.0
|
|
287
|
-
runtime_version: 1
|
|
288
|
-
schema_version: 2
|
|
289
|
-
---
|
|
290
|
-
|
|
291
234
|
## Handoff Contract
|
|
292
235
|
|
|
293
236
|
### Consumes
|
|
@@ -307,11 +250,6 @@ schema_version: 2
|
|
|
307
250
|
}
|
|
308
251
|
```
|
|
309
252
|
|
|
310
|
-
skill_version: 7.5.0
|
|
311
|
-
runtime_version: 1
|
|
312
|
-
schema_version: 2
|
|
313
|
-
---
|
|
314
|
-
|
|
315
253
|
## Output Format
|
|
316
254
|
|
|
317
255
|
```
|
|
@@ -328,7 +266,7 @@ Scores:
|
|
|
328
266
|
P5 Anti-Slop: [X/15]
|
|
329
267
|
P6 Performance: [X/10]
|
|
330
268
|
─────────────────
|
|
331
|
-
Total: [X/85] → [PASS ≥
|
|
269
|
+
Total: [X/85 base] → [PASS ≥ 76/85 | FAIL < 76/85]
|
|
332
270
|
|
|
333
271
|
Violations (top priority first):
|
|
334
272
|
[SEVERITY] file:LINE — reason — Fix: suggestion (-Xpts)
|
|
@@ -342,28 +280,17 @@ Verdict: [PASS | FAIL — requires redesign]
|
|
|
342
280
|
Exit Code: [SUCCESS | PARTIAL | FAILED]
|
|
343
281
|
```
|
|
344
282
|
|
|
345
|
-
skill_version: 7.5.0
|
|
346
|
-
runtime_version: 1
|
|
347
|
-
schema_version: 2
|
|
348
|
-
---
|
|
349
|
-
|
|
350
283
|
## Exit Codes
|
|
351
284
|
|
|
352
285
|
| Code | Meaning | When |
|
|
353
286
|
|------|---------|------|
|
|
354
|
-
| SUCCESS | Score ≥
|
|
355
|
-
| PARTIAL | Score
|
|
287
|
+
| SUCCESS | Score ≥ 76 — UI passes Anti-Slop | All checks done, no critical violations |
|
|
288
|
+
| PARTIAL | Score 60–75 or incomplete audit | Some categories skipped due to token budget |
|
|
356
289
|
| BLOCKED | DESIGN.md missing or target not specified | Cannot audit without design contract |
|
|
357
|
-
| FAILED | Score <
|
|
358
|
-
|
|
359
|
-
skill_version: 7.5.0
|
|
360
|
-
runtime_version: 1
|
|
361
|
-
schema_version: 2
|
|
362
|
-
---
|
|
290
|
+
| FAILED | Score < 60 or CRITICAL violation found | Generic slop detected, redesign required |
|
|
363
291
|
|
|
364
292
|
## References
|
|
365
|
-
- Full 57-
|
|
293
|
+
- Full 57-check checklist: `references/anti-slop-checklist.md`
|
|
366
294
|
|
|
367
295
|
---
|
|
368
296
|
|
|
369
|
-
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Anti-Slop Checklist — 57
|
|
1
|
+
# Anti-Slop Checklist — 57 Checks (99 pts max)
|
|
2
2
|
> Referenced by: `qk-ui-audit/SKILL.md`
|
|
3
3
|
> Purpose: Full inspection checklist for detecting generic AI-generated UI
|
|
4
4
|
|
|
@@ -132,5 +132,5 @@
|
|
|
132
132
|
| Extended (49–57) | +9 |
|
|
133
133
|
| **Maximum Possible** | **99** |
|
|
134
134
|
|
|
135
|
-
**Pass threshold: ≥ 76
|
|
135
|
+
**Pass threshold: ≥ 76/85 base (90%)**
|
|
136
136
|
**Fail: < 76 / 85 — requires redesign, not patch**
|