ai-developer-skill-os 8.2.1 → 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 -186
- package/.agents/skills/qk-context-loader/SKILL.md +3 -11
- package/.agents/skills/qk-data-lifecycle/SKILL.md +6 -1
- 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 +53 -221
- 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 -34
- 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 +31 -66
- package/.agents/skills/qk-project-bootstrap/SKILL.md +58 -7
- 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 +17 -67
- 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/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
|
@@ -93,7 +93,7 @@ exit_codes: [SUCCESS, BLOCKED, FAILED, PARTIAL]
|
|
|
93
93
|
|
|
94
94
|
# qk-ui-system-builder — Design System Constructor
|
|
95
95
|
|
|
96
|
-
> **Language rule:** Code, identifiers, file names
|
|
96
|
+
> **Language rule:** Code, identifiers, file names → English. Explanations, summaries → Vietnamese.
|
|
97
97
|
|
|
98
98
|
---
|
|
99
99
|
|
|
@@ -193,17 +193,14 @@ IF some tokens inferred (MEDIUM confidence) → EXIT: PARTIAL, list them
|
|
|
193
193
|
|
|
194
194
|
---
|
|
195
195
|
|
|
196
|
-
|
|
197
196
|
---
|
|
198
197
|
|
|
199
198
|
## Priority Order
|
|
200
199
|
|
|
201
|
-
|
|
202
200
|
---
|
|
203
201
|
|
|
204
202
|
## Output Format
|
|
205
203
|
|
|
206
|
-
|
|
207
204
|
---
|
|
208
205
|
## Exit Codes
|
|
209
206
|
| Code | Meaning | When |
|
|
@@ -287,4 +284,3 @@ Recommended Assumptions:
|
|
|
287
284
|
|
|
288
285
|
---
|
|
289
286
|
|
|
290
|
-
|
|
@@ -85,7 +85,6 @@ exit_codes: [SUCCESS, BLOCKED, FAILED, PARTIAL]
|
|
|
85
85
|
|
|
86
86
|
> **Language rule:** Code, identifiers, file names → English. Explanations, summaries → Vietnamese.
|
|
87
87
|
|
|
88
|
-
|
|
89
88
|
## Preconditions
|
|
90
89
|
- [ ] Project has `package.json` with lint/test scripts (or equivalent for other runtimes)
|
|
91
90
|
- [ ] Target scope is specified (specific files, or whole project)
|
|
@@ -96,11 +95,6 @@ On missing precondition:
|
|
|
96
95
|
Message: "Không tìm thấy script lint/test. Vui lòng chỉ định lệnh kiểm tra."
|
|
97
96
|
```
|
|
98
97
|
|
|
99
|
-
skill_version: 7.5.0
|
|
100
|
-
runtime_version: 1
|
|
101
|
-
schema_version: 2
|
|
102
|
-
---
|
|
103
|
-
|
|
104
98
|
## Scope & V8.2 Eval Pipeline
|
|
105
99
|
- ✅ Run lint, type-check, tests, and security audit in sequence
|
|
106
100
|
- ✅ **Execute V8.2 Eval Pipeline:** Read `scorecard.yaml` (or inherited schemas) and compute quantitative scores for AI/Agent outputs.
|
|
@@ -113,11 +107,6 @@ schema_version: 2
|
|
|
113
107
|
- ❌ Skip any gate check or eval scorecard unless user explicitly allows
|
|
114
108
|
- ❌ Override failing thresholds with "ignore" flags or fabricated LLM scores without trace evidence
|
|
115
109
|
|
|
116
|
-
skill_version: 7.5.0
|
|
117
|
-
runtime_version: 1
|
|
118
|
-
schema_version: 2
|
|
119
|
-
---
|
|
120
|
-
|
|
121
110
|
## Pass/Fail Thresholds (Non-Negotiable)
|
|
122
111
|
|
|
123
112
|
```yaml
|
|
@@ -149,11 +138,6 @@ eval_scorecard:
|
|
|
149
138
|
zero_tolerance_hallucination: true
|
|
150
139
|
```
|
|
151
140
|
|
|
152
|
-
skill_version: 7.5.0
|
|
153
|
-
runtime_version: 1
|
|
154
|
-
schema_version: 2
|
|
155
|
-
---
|
|
156
|
-
|
|
157
141
|
## Priority Order
|
|
158
142
|
|
|
159
143
|
| Priority | Gate | Fail = Block? | Skip Allowed? |
|
|
@@ -167,11 +151,6 @@ schema_version: 2
|
|
|
167
151
|
| P7 | Build | YES | Never |
|
|
168
152
|
| P8 | Bundle size | WARN only | Budget < 80% |
|
|
169
153
|
|
|
170
|
-
skill_version: 7.5.0
|
|
171
|
-
runtime_version: 1
|
|
172
|
-
schema_version: 2
|
|
173
|
-
---
|
|
174
|
-
|
|
175
154
|
## Workflow
|
|
176
155
|
|
|
177
156
|
### Phase 1 — Security Gate (P1)
|
|
@@ -190,11 +169,6 @@ ELSE IF critical or high found
|
|
|
190
169
|
→ Report: exact package name, CVE, severity
|
|
191
170
|
```
|
|
192
171
|
|
|
193
|
-
skill_version: 7.5.0
|
|
194
|
-
runtime_version: 1
|
|
195
|
-
schema_version: 2
|
|
196
|
-
---
|
|
197
|
-
|
|
198
172
|
### Phase 2 — Type & Lint Gate (P2+P3)
|
|
199
173
|
|
|
200
174
|
**Steps:**
|
|
@@ -214,11 +188,6 @@ ELSE IF lint errors > 0 (warnings OK)
|
|
|
214
188
|
→ EXIT: FAILED — list errors
|
|
215
189
|
```
|
|
216
190
|
|
|
217
|
-
skill_version: 7.5.0
|
|
218
|
-
runtime_version: 1
|
|
219
|
-
schema_version: 2
|
|
220
|
-
---
|
|
221
|
-
|
|
222
191
|
### Phase 3 — Test Gate (P4+P5+P6)
|
|
223
192
|
|
|
224
193
|
**Steps:**
|
|
@@ -245,11 +214,6 @@ Test fail
|
|
|
245
214
|
└─ FAIL on retry → EXIT: FAILED — not flaky, real failure
|
|
246
215
|
```
|
|
247
216
|
|
|
248
|
-
skill_version: 7.5.0
|
|
249
|
-
runtime_version: 1
|
|
250
|
-
schema_version: 2
|
|
251
|
-
---
|
|
252
|
-
|
|
253
217
|
### Phase 4 — Build Gate (P7)
|
|
254
218
|
|
|
255
219
|
**Steps:**
|
|
@@ -268,11 +232,6 @@ ELSE IF warnings > 5
|
|
|
268
232
|
→ EXIT: PARTIAL — list warnings, continue to release if user confirms
|
|
269
233
|
```
|
|
270
234
|
|
|
271
|
-
skill_version: 7.5.0
|
|
272
|
-
runtime_version: 1
|
|
273
|
-
schema_version: 2
|
|
274
|
-
---
|
|
275
|
-
|
|
276
235
|
## Confidence Model
|
|
277
236
|
|
|
278
237
|
| Level | Condition | Action |
|
|
@@ -281,11 +240,6 @@ schema_version: 2
|
|
|
281
240
|
| MEDIUM | Inferred from partial output (truncated logs) | Note potential missing info |
|
|
282
241
|
| LOW | Script not found or output format unknown | EXIT: BLOCKED — clarify commands |
|
|
283
242
|
|
|
284
|
-
skill_version: 7.5.0
|
|
285
|
-
runtime_version: 1
|
|
286
|
-
schema_version: 2
|
|
287
|
-
---
|
|
288
|
-
|
|
289
243
|
## Severity
|
|
290
244
|
|
|
291
245
|
| Level | Definition | Example |
|
|
@@ -295,11 +249,6 @@ schema_version: 2
|
|
|
295
249
|
| MEDIUM | Coverage below threshold | 67% coverage (threshold 80%) |
|
|
296
250
|
| LOW | Build warning | Unused export |
|
|
297
251
|
|
|
298
|
-
skill_version: 7.5.0
|
|
299
|
-
runtime_version: 1
|
|
300
|
-
schema_version: 2
|
|
301
|
-
---
|
|
302
|
-
|
|
303
252
|
## Evidence Format
|
|
304
253
|
|
|
305
254
|
```
|
|
@@ -321,11 +270,6 @@ Actual: 47/50 tests passed
|
|
|
321
270
|
Fix: See failing tests: auth.test.ts:L45, user.test.ts:L23, order.test.ts:L89
|
|
322
271
|
```
|
|
323
272
|
|
|
324
|
-
skill_version: 7.5.0
|
|
325
|
-
runtime_version: 1
|
|
326
|
-
schema_version: 2
|
|
327
|
-
---
|
|
328
|
-
|
|
329
273
|
## Escalation Rules
|
|
330
274
|
|
|
331
275
|
```
|
|
@@ -341,11 +285,6 @@ Recommended Assumptions:
|
|
|
341
285
|
- Standard: npm run lint + npm test + npm run build
|
|
342
286
|
```
|
|
343
287
|
|
|
344
|
-
skill_version: 7.5.0
|
|
345
|
-
runtime_version: 1
|
|
346
|
-
schema_version: 2
|
|
347
|
-
---
|
|
348
|
-
|
|
349
288
|
## Handoff Contract
|
|
350
289
|
|
|
351
290
|
### Consumes
|
|
@@ -365,11 +304,6 @@ schema_version: 2
|
|
|
365
304
|
}
|
|
366
305
|
```
|
|
367
306
|
|
|
368
|
-
skill_version: 7.5.0
|
|
369
|
-
runtime_version: 1
|
|
370
|
-
schema_version: 2
|
|
371
|
-
---
|
|
372
|
-
|
|
373
307
|
## Output Format
|
|
374
308
|
|
|
375
309
|
```
|
|
@@ -392,17 +326,10 @@ Failures (action required):
|
|
|
392
326
|
Exit Code: [SUCCESS | PARTIAL | BLOCKED | FAILED]
|
|
393
327
|
```
|
|
394
328
|
|
|
395
|
-
skill_version: 7.5.0
|
|
396
|
-
runtime_version: 1
|
|
397
|
-
schema_version: 2
|
|
398
|
-
---
|
|
399
|
-
|
|
400
|
-
|
|
401
329
|
---
|
|
402
330
|
|
|
403
331
|
## Retry Policy
|
|
404
332
|
|
|
405
|
-
|
|
406
333
|
---
|
|
407
334
|
## Exit Codes
|
|
408
335
|
|
|
@@ -415,4 +342,3 @@ schema_version: 2
|
|
|
415
342
|
|
|
416
343
|
---
|
|
417
344
|
|
|
418
|
-
|
|
@@ -1,114 +1,232 @@
|
|
|
1
|
-
---
|
|
2
|
-
# ── Identity ───────────────────────────────────────────────
|
|
3
|
-
name: qk-web-quality-gate
|
|
4
|
-
version: 8.1.0
|
|
5
|
-
status: experimental
|
|
6
|
-
description: "Kiểm toán tổng thể chất lượng Web: Accessibility (A11y), SEO, Web Performance, Security, UX Heuristics."
|
|
7
|
-
platforms: [antigravity, claude-code, cursor, windsurf, kilo-code]
|
|
8
|
-
|
|
9
|
-
# ── V8: Classification ─────────────────────────────────────
|
|
10
|
-
type: capability
|
|
11
|
-
|
|
12
|
-
intent:
|
|
13
|
-
- web-performance
|
|
14
|
-
- accessibility
|
|
15
|
-
- seo
|
|
16
|
-
- lighthouse
|
|
17
|
-
- ux-audit
|
|
18
|
-
|
|
19
|
-
complexity:
|
|
20
|
-
level: high
|
|
21
|
-
criteria:
|
|
22
|
-
files_affected: "1-5"
|
|
23
|
-
has_behavior_change: false
|
|
24
|
-
has_external_dependency: true
|
|
25
|
-
has_breaking_change: false
|
|
26
|
-
|
|
27
|
-
triggers:
|
|
28
|
-
- "kiểm tra web"
|
|
29
|
-
- "tối ưu web"
|
|
30
|
-
- "lighthouse"
|
|
31
|
-
- "audit ui"
|
|
32
|
-
- "core web vitals"
|
|
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-frontend-architecture
|
|
47
|
-
|
|
48
|
-
knowledge_scope:
|
|
49
|
-
domain:
|
|
50
|
-
- web-performance
|
|
51
|
-
- web-accessibility
|
|
52
|
-
concepts:
|
|
53
|
-
- lighthouse
|
|
54
|
-
- seo
|
|
55
|
-
- ux-heuristics
|
|
56
|
-
references:
|
|
57
|
-
- architecture
|
|
58
|
-
|
|
59
|
-
decision_boundary:
|
|
60
|
-
owns:
|
|
61
|
-
- lighthouse audit
|
|
62
|
-
- accessibility review
|
|
63
|
-
- performance audit
|
|
64
|
-
- seo audit
|
|
65
|
-
does_not_own:
|
|
66
|
-
- ui component implementation
|
|
67
|
-
conflicts_with: []
|
|
68
|
-
|
|
69
|
-
# ── V8: Verification ───────────────────────────────────────
|
|
70
|
-
verification:
|
|
71
|
-
required: true
|
|
72
|
-
strategy:
|
|
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
|
-
-
|
|
1
|
+
---
|
|
2
|
+
# ── Identity ───────────────────────────────────────────────
|
|
3
|
+
name: qk-web-quality-gate
|
|
4
|
+
version: 8.1.0
|
|
5
|
+
status: experimental
|
|
6
|
+
description: "Kiểm toán tổng thể chất lượng Web: Accessibility (A11y), SEO, Web Performance, Security, UX Heuristics."
|
|
7
|
+
platforms: [antigravity, claude-code, cursor, windsurf, kilo-code]
|
|
8
|
+
|
|
9
|
+
# ── V8: Classification ─────────────────────────────────────
|
|
10
|
+
type: capability
|
|
11
|
+
|
|
12
|
+
intent:
|
|
13
|
+
- web-performance
|
|
14
|
+
- accessibility
|
|
15
|
+
- seo
|
|
16
|
+
- lighthouse
|
|
17
|
+
- ux-audit
|
|
18
|
+
|
|
19
|
+
complexity:
|
|
20
|
+
level: high
|
|
21
|
+
criteria:
|
|
22
|
+
files_affected: "1-5"
|
|
23
|
+
has_behavior_change: false
|
|
24
|
+
has_external_dependency: true
|
|
25
|
+
has_breaking_change: false
|
|
26
|
+
|
|
27
|
+
triggers:
|
|
28
|
+
- "kiểm tra web"
|
|
29
|
+
- "tối ưu web"
|
|
30
|
+
- "lighthouse"
|
|
31
|
+
- "audit ui"
|
|
32
|
+
- "core web vitals"
|
|
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-frontend-architecture
|
|
47
|
+
|
|
48
|
+
knowledge_scope:
|
|
49
|
+
domain:
|
|
50
|
+
- web-performance
|
|
51
|
+
- web-accessibility
|
|
52
|
+
concepts:
|
|
53
|
+
- lighthouse
|
|
54
|
+
- seo
|
|
55
|
+
- ux-heuristics
|
|
56
|
+
references:
|
|
57
|
+
- architecture
|
|
58
|
+
|
|
59
|
+
decision_boundary:
|
|
60
|
+
owns:
|
|
61
|
+
- lighthouse audit
|
|
62
|
+
- accessibility review
|
|
63
|
+
- performance audit
|
|
64
|
+
- seo audit
|
|
65
|
+
does_not_own:
|
|
66
|
+
- ui component implementation
|
|
67
|
+
conflicts_with: []
|
|
68
|
+
|
|
69
|
+
# ── V8: Verification ───────────────────────────────────────
|
|
70
|
+
verification:
|
|
71
|
+
required: true
|
|
72
|
+
strategy: web-quality-review
|
|
73
|
+
|
|
74
|
+
selection:
|
|
75
|
+
priority: medium
|
|
76
|
+
confidence_threshold: 0.80
|
|
77
|
+
|
|
78
|
+
examples: []
|
|
79
|
+
learnings: []
|
|
80
|
+
|
|
81
|
+
# ── V7 Runtime ─────────────────────────────────────────────
|
|
82
|
+
execution_mode: deterministic
|
|
83
|
+
cost: medium
|
|
84
|
+
latency: slow
|
|
85
|
+
risk: low
|
|
86
|
+
side_effects: read_only
|
|
87
|
+
produces: [report]
|
|
88
|
+
consumes: [user-description]
|
|
89
|
+
|
|
90
|
+
token_budget:
|
|
91
|
+
max_files_read: 5
|
|
92
|
+
max_lines_per_read: 150
|
|
93
|
+
max_shell_commands: 2
|
|
94
|
+
stop_early: true
|
|
95
|
+
|
|
96
|
+
exit_codes: [SUCCESS, BLOCKED, FAILED, PARTIAL]
|
|
97
|
+
---
|
|
98
|
+
|
|
99
|
+
# qk-web-quality-gate — Web Quality Auditor
|
|
100
|
+
|
|
101
|
+
> **Language rule:** Code, identifiers, file names → English. Explanations, summaries → Vietnamese.
|
|
102
|
+
|
|
103
|
+
## Preconditions
|
|
104
|
+
- [ ] Ứng dụng web đã có thể chạy hoặc code đã được viết một phần.
|
|
105
|
+
|
|
106
|
+
## Scope
|
|
107
|
+
- Thực hiện kiểm toán A11y (Accessibility standards như WCAG).
|
|
108
|
+
- Đánh giá Performance (Core Web Vitals, Bundle size, Lazy loading, Cache, Optimize images).
|
|
109
|
+
- Kiểm tra SEO best practices (Meta tags, heading structure, semantic HTML).
|
|
110
|
+
- Đánh giá UX Heuristics cơ bản.
|
|
111
|
+
- Đưa ra khuyến nghị (Recommendation), không phải tự tay fix code nếu chưa được yêu cầu.
|
|
112
|
+
|
|
113
|
+
## Non-Goals
|
|
114
|
+
- ❌ Provide implementation outside of Web Performance & Accessibility scope
|
|
115
|
+
- ❌ Override explicit user directives without explanation
|
|
116
|
+
- ❌ Guess ambiguous requirements without asking
|
|
117
|
+
|
|
118
|
+
## Priority Order
|
|
119
|
+
|
|
120
|
+
| Priority | Task | Skip Threshold |
|
|
121
|
+
|----------|------|----------------|
|
|
122
|
+
| P1 | Core Web Performance & Accessibility analysis and decision making | Never |
|
|
123
|
+
| P2 | Validation of existing patterns | Budget < 30% |
|
|
124
|
+
| P3 | Detailed documentation generation | Budget < 50% |
|
|
125
|
+
| P4 | Edge case exploration | Budget < 70% |
|
|
126
|
+
|
|
127
|
+
## Workflow
|
|
128
|
+
|
|
129
|
+
### Phase 1 — Context Loading
|
|
130
|
+
**Steps:**
|
|
131
|
+
1. Read existing configuration and requirements related to Web Performance & Accessibility.
|
|
132
|
+
2. Check for missing preconditions.
|
|
133
|
+
|
|
134
|
+
**Decision:**
|
|
135
|
+
```
|
|
136
|
+
IF context is clear
|
|
137
|
+
→ Confidence: HIGH → go to Phase 2
|
|
138
|
+
ELSE
|
|
139
|
+
→ EXIT: BLOCKED — ask user
|
|
140
|
+
```
|
|
141
|
+
|
|
142
|
+
### Phase 2 — Analysis & Strategy
|
|
143
|
+
**Steps:**
|
|
144
|
+
1. Analyze the current state against Web Performance & Accessibility best practices.
|
|
145
|
+
2. Formulate strategy or audit report based on findings.
|
|
146
|
+
|
|
147
|
+
**Decision:**
|
|
148
|
+
```
|
|
149
|
+
IF strategy/audit is complete
|
|
150
|
+
→ Confidence: HIGH → go to Phase 3
|
|
151
|
+
ELSE IF minor gaps exist
|
|
152
|
+
→ Confidence: MEDIUM → proceed with assumptions noted
|
|
153
|
+
```
|
|
154
|
+
|
|
155
|
+
### Phase 3 — Finalization
|
|
156
|
+
**Steps:**
|
|
157
|
+
1. Generate final report or configuration.
|
|
158
|
+
2. Prepare handoff data for subsequent skills.
|
|
159
|
+
|
|
160
|
+
## Confidence Model
|
|
161
|
+
|
|
162
|
+
| Level | Condition | Action |
|
|
163
|
+
|-------|-----------|--------|
|
|
164
|
+
| HIGH | All preconditions met, context fully understood | Proceed directly |
|
|
165
|
+
| MEDIUM | Some context missing but safe defaults exist | Proceed and note assumptions |
|
|
166
|
+
| LOW | Core requirements missing | EXIT: BLOCKED |
|
|
167
|
+
|
|
168
|
+
## Severity (for findings)
|
|
169
|
+
|
|
170
|
+
| Level | Definition |
|
|
171
|
+
|-------|-----------|
|
|
172
|
+
| CRITICAL | Severe violation of Web Performance & Accessibility principles |
|
|
173
|
+
| HIGH | Significant risk or technical debt |
|
|
174
|
+
| MEDIUM | Suboptimal pattern but functional |
|
|
175
|
+
| LOW | Minor style or documentation issue |
|
|
176
|
+
|
|
177
|
+
## Evidence Format
|
|
178
|
+
|
|
179
|
+
```
|
|
180
|
+
[SEVERITY] Context/File
|
|
181
|
+
Issue: [what was found]
|
|
182
|
+
Confidence: HIGH
|
|
183
|
+
Recommendation: [actionable advice]
|
|
184
|
+
```
|
|
185
|
+
|
|
186
|
+
## Retry Policy
|
|
187
|
+
```
|
|
188
|
+
Task fails due to missing context
|
|
189
|
+
└─ Ask user for clarification
|
|
190
|
+
├─ Provided → Retry Phase 1
|
|
191
|
+
└─ Not provided → EXIT: BLOCKED
|
|
192
|
+
```
|
|
193
|
+
|
|
194
|
+
## Escalation Rules
|
|
195
|
+
|
|
196
|
+
```
|
|
197
|
+
BLOCKED: Missing critical context for Web Performance & Accessibility
|
|
198
|
+
Missing:
|
|
199
|
+
- [Specific requirement]
|
|
200
|
+
Questions:
|
|
201
|
+
1. Bạn có thể cung cấp thêm thông tin về yêu cầu này không?
|
|
202
|
+
2. Mục tiêu chính của bạn là gì?
|
|
203
|
+
Recommended Assumptions: none
|
|
204
|
+
```
|
|
205
|
+
|
|
206
|
+
## Handoff Contract
|
|
207
|
+
|
|
208
|
+
### Consumes
|
|
209
|
+
```json
|
|
210
|
+
{
|
|
211
|
+
"from": "user or qk-orchestrator",
|
|
212
|
+
"required_fields": ["context"],
|
|
213
|
+
"optional_fields": ["existing_config"]
|
|
214
|
+
}
|
|
215
|
+
```
|
|
216
|
+
|
|
217
|
+
### Produces
|
|
218
|
+
```json
|
|
219
|
+
{
|
|
220
|
+
"to": "user or downstream skill",
|
|
221
|
+
"output_fields": ["strategy_report", "exit_code"]
|
|
222
|
+
}
|
|
223
|
+
```
|
|
224
|
+
|
|
225
|
+
## Exit Codes
|
|
226
|
+
|
|
227
|
+
| Code | Meaning | When |
|
|
228
|
+
|------|---------|------|
|
|
229
|
+
| SUCCESS | Web Performance & Accessibility task completed successfully | Strategy/audit generated |
|
|
230
|
+
| PARTIAL | Task completed with assumptions | Medium confidence |
|
|
231
|
+
| BLOCKED | Missing context | Cannot proceed |
|
|
232
|
+
| FAILED | Critical conflict or error | Unresolvable constraint |
|