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
|
@@ -1,112 +1,235 @@
|
|
|
1
|
-
---
|
|
2
|
-
# ── Identity ───────────────────────────────────────────────
|
|
3
|
-
name: qk-design-system-engineering
|
|
4
|
-
version: 8.1.0
|
|
5
|
-
status: experimental
|
|
6
|
-
description: "Quản trị hệ thống thiết kế (Định nghĩa quy tắc hệ thống, tokens, các biến thể component)."
|
|
7
|
-
platforms: [antigravity, claude-code, cursor, windsurf, kilo-code]
|
|
8
|
-
|
|
9
|
-
# ── V8: Classification ─────────────────────────────────────
|
|
10
|
-
type: capability
|
|
11
|
-
|
|
12
|
-
intent:
|
|
13
|
-
- design-system
|
|
14
|
-
- tokens
|
|
15
|
-
- component-library
|
|
16
|
-
- accessibility
|
|
17
|
-
|
|
18
|
-
complexity:
|
|
19
|
-
level: medium
|
|
20
|
-
criteria:
|
|
21
|
-
files_affected: "1-5"
|
|
22
|
-
has_behavior_change: true
|
|
23
|
-
has_external_dependency: false
|
|
24
|
-
has_breaking_change: false
|
|
25
|
-
|
|
26
|
-
triggers:
|
|
27
|
-
- "định nghĩa design system"
|
|
28
|
-
- "cấu trúc token"
|
|
29
|
-
- "quy chuẩn ui"
|
|
30
|
-
- "variants"
|
|
31
|
-
|
|
32
|
-
# ── V8: References ─────────────────────────────────────────
|
|
33
|
-
workflow: feature-delivery
|
|
34
|
-
|
|
35
|
-
rules:
|
|
36
|
-
- global
|
|
37
|
-
- coding
|
|
38
|
-
|
|
39
|
-
tools:
|
|
40
|
-
- filesystem
|
|
41
|
-
|
|
42
|
-
related_skills:
|
|
43
|
-
- qk-frontend-architecture
|
|
44
|
-
|
|
45
|
-
knowledge_scope:
|
|
46
|
-
domain:
|
|
47
|
-
- design-system
|
|
48
|
-
- tokens
|
|
49
|
-
concepts:
|
|
50
|
-
- visual-consistency
|
|
51
|
-
- components-rules
|
|
52
|
-
references:
|
|
53
|
-
- architecture
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
-
|
|
59
|
-
-
|
|
60
|
-
|
|
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
|
-
-
|
|
1
|
+
---
|
|
2
|
+
# ── Identity ───────────────────────────────────────────────
|
|
3
|
+
name: qk-design-system-engineering
|
|
4
|
+
version: 8.1.0
|
|
5
|
+
status: experimental
|
|
6
|
+
description: "Quản trị hệ thống thiết kế (Định nghĩa quy tắc hệ thống, tokens, các biến thể component)."
|
|
7
|
+
platforms: [antigravity, claude-code, cursor, windsurf, kilo-code]
|
|
8
|
+
|
|
9
|
+
# ── V8: Classification ─────────────────────────────────────
|
|
10
|
+
type: capability
|
|
11
|
+
|
|
12
|
+
intent:
|
|
13
|
+
- design-system
|
|
14
|
+
- tokens
|
|
15
|
+
- component-library
|
|
16
|
+
- accessibility
|
|
17
|
+
|
|
18
|
+
complexity:
|
|
19
|
+
level: medium
|
|
20
|
+
criteria:
|
|
21
|
+
files_affected: "1-5"
|
|
22
|
+
has_behavior_change: true
|
|
23
|
+
has_external_dependency: false
|
|
24
|
+
has_breaking_change: false
|
|
25
|
+
|
|
26
|
+
triggers:
|
|
27
|
+
- "định nghĩa design system"
|
|
28
|
+
- "cấu trúc token"
|
|
29
|
+
- "quy chuẩn ui"
|
|
30
|
+
- "variants"
|
|
31
|
+
|
|
32
|
+
# ── V8: References ─────────────────────────────────────────
|
|
33
|
+
workflow: feature-delivery
|
|
34
|
+
|
|
35
|
+
rules:
|
|
36
|
+
- global
|
|
37
|
+
- coding
|
|
38
|
+
|
|
39
|
+
tools:
|
|
40
|
+
- filesystem
|
|
41
|
+
|
|
42
|
+
related_skills:
|
|
43
|
+
- qk-frontend-architecture
|
|
44
|
+
|
|
45
|
+
knowledge_scope:
|
|
46
|
+
domain:
|
|
47
|
+
- design-system
|
|
48
|
+
- tokens
|
|
49
|
+
concepts:
|
|
50
|
+
- visual-consistency
|
|
51
|
+
- components-rules
|
|
52
|
+
references:
|
|
53
|
+
- architecture
|
|
54
|
+
- anti-patterns
|
|
55
|
+
|
|
56
|
+
decision_boundary:
|
|
57
|
+
owns:
|
|
58
|
+
- tokens
|
|
59
|
+
- components rules
|
|
60
|
+
- design governance
|
|
61
|
+
does_not_own:
|
|
62
|
+
- page implementation
|
|
63
|
+
- business logic
|
|
64
|
+
conflicts_with:
|
|
65
|
+
- qk-ui-system-builder
|
|
66
|
+
|
|
67
|
+
knowledge_dependencies:
|
|
68
|
+
- design-intelligence
|
|
69
|
+
- accessibility-guidelines
|
|
70
|
+
- component-patterns
|
|
71
|
+
|
|
72
|
+
# ── V8: Verification ───────────────────────────────────────
|
|
73
|
+
verification:
|
|
74
|
+
required: true
|
|
75
|
+
strategy: feature
|
|
76
|
+
|
|
77
|
+
selection:
|
|
78
|
+
priority: medium
|
|
79
|
+
confidence_threshold: 0.80
|
|
80
|
+
|
|
81
|
+
examples: []
|
|
82
|
+
learnings: []
|
|
83
|
+
|
|
84
|
+
# ── V7 Runtime ─────────────────────────────────────────────
|
|
85
|
+
execution_mode: deterministic
|
|
86
|
+
cost: medium
|
|
87
|
+
latency: medium
|
|
88
|
+
risk: low
|
|
89
|
+
side_effects: read_only
|
|
90
|
+
produces: [report, tokens_definition]
|
|
91
|
+
consumes: [user-description]
|
|
92
|
+
|
|
93
|
+
token_budget:
|
|
94
|
+
max_files_read: 5
|
|
95
|
+
max_lines_per_read: 150
|
|
96
|
+
max_shell_commands: 0
|
|
97
|
+
stop_early: true
|
|
98
|
+
|
|
99
|
+
exit_codes: [SUCCESS, BLOCKED, FAILED, PARTIAL]
|
|
100
|
+
---
|
|
101
|
+
|
|
102
|
+
# qk-design-system-engineering — Design System Governance
|
|
103
|
+
|
|
104
|
+
> **Language rule:** Code, identifiers, file names → English. Explanations, summaries → Vietnamese.
|
|
105
|
+
|
|
106
|
+
## Preconditions
|
|
107
|
+
- [ ] Brand guidelines hoặc UX heuristics cơ bản đã có.
|
|
108
|
+
|
|
109
|
+
## Scope
|
|
110
|
+
- Định nghĩa các quy tắc hệ thống cho tokens, khoảng cách (spacing), màu sắc, phông chữ (typography).
|
|
111
|
+
- Xác định quy chuẩn xây dựng component (composition, variants).
|
|
112
|
+
- Thiết lập quy tắc A11y (Accessibility) ở cấp độ token.
|
|
113
|
+
- **Ngăn chặn triệt để UI Slop từ cấp độ Token (Không cung cấp màu tương phản quá thấp, kích thước quá bé).**
|
|
114
|
+
- KHÔNG thay thế việc viết UI code (`qk-ui-system-builder`). Skill này là "governance", không phải "implementation".
|
|
115
|
+
|
|
116
|
+
## Non-Goals
|
|
117
|
+
- ❌ Provide implementation outside of Design System Governance scope
|
|
118
|
+
- ❌ Override explicit user directives without explanation
|
|
119
|
+
- ❌ Guess ambiguous requirements without asking
|
|
120
|
+
|
|
121
|
+
## Priority Order
|
|
122
|
+
|
|
123
|
+
| Priority | Task | Skip Threshold |
|
|
124
|
+
|----------|------|----------------|
|
|
125
|
+
| P1 | Core Design System Governance analysis and decision making | Never |
|
|
126
|
+
| P2 | Validation of existing patterns | Budget < 30% |
|
|
127
|
+
| P3 | Detailed documentation generation | Budget < 50% |
|
|
128
|
+
| P4 | Edge case exploration | Budget < 70% |
|
|
129
|
+
|
|
130
|
+
## Workflow
|
|
131
|
+
|
|
132
|
+
### Phase 1 — Context Loading
|
|
133
|
+
**Steps:**
|
|
134
|
+
1. Read existing configuration and requirements related to Design System Governance.
|
|
135
|
+
2. Check for missing preconditions.
|
|
136
|
+
|
|
137
|
+
**Decision:**
|
|
138
|
+
```
|
|
139
|
+
IF context is clear
|
|
140
|
+
→ Confidence: HIGH → go to Phase 2
|
|
141
|
+
ELSE
|
|
142
|
+
→ EXIT: BLOCKED — ask user
|
|
143
|
+
```
|
|
144
|
+
|
|
145
|
+
### Phase 2 — Analysis & Strategy
|
|
146
|
+
**Steps:**
|
|
147
|
+
1. Analyze the current state against Design System Governance best practices.
|
|
148
|
+
2. Formulate strategy or audit report based on findings.
|
|
149
|
+
|
|
150
|
+
**Decision:**
|
|
151
|
+
```
|
|
152
|
+
IF strategy/audit is complete
|
|
153
|
+
→ Confidence: HIGH → go to Phase 3
|
|
154
|
+
ELSE IF minor gaps exist
|
|
155
|
+
→ Confidence: MEDIUM → proceed with assumptions noted
|
|
156
|
+
```
|
|
157
|
+
|
|
158
|
+
### Phase 3 — Finalization
|
|
159
|
+
**Steps:**
|
|
160
|
+
1. Generate final report or configuration.
|
|
161
|
+
2. Prepare handoff data for subsequent skills.
|
|
162
|
+
|
|
163
|
+
## Confidence Model
|
|
164
|
+
|
|
165
|
+
| Level | Condition | Action |
|
|
166
|
+
|-------|-----------|--------|
|
|
167
|
+
| HIGH | All preconditions met, context fully understood | Proceed directly |
|
|
168
|
+
| MEDIUM | Some context missing but safe defaults exist | Proceed and note assumptions |
|
|
169
|
+
| LOW | Core requirements missing | EXIT: BLOCKED |
|
|
170
|
+
|
|
171
|
+
## Severity (for findings)
|
|
172
|
+
|
|
173
|
+
| Level | Definition |
|
|
174
|
+
|-------|-----------|
|
|
175
|
+
| CRITICAL | Severe violation of Design System Governance principles |
|
|
176
|
+
| HIGH | Significant risk or technical debt |
|
|
177
|
+
| MEDIUM | Suboptimal pattern but functional |
|
|
178
|
+
| LOW | Minor style or documentation issue |
|
|
179
|
+
|
|
180
|
+
## Evidence Format
|
|
181
|
+
|
|
182
|
+
```
|
|
183
|
+
[SEVERITY] Context/File
|
|
184
|
+
Issue: [what was found]
|
|
185
|
+
Confidence: HIGH
|
|
186
|
+
Recommendation: [actionable advice]
|
|
187
|
+
```
|
|
188
|
+
|
|
189
|
+
## Retry Policy
|
|
190
|
+
```
|
|
191
|
+
Task fails due to missing context
|
|
192
|
+
└─ Ask user for clarification
|
|
193
|
+
├─ Provided → Retry Phase 1
|
|
194
|
+
└─ Not provided → EXIT: BLOCKED
|
|
195
|
+
```
|
|
196
|
+
|
|
197
|
+
## Escalation Rules
|
|
198
|
+
|
|
199
|
+
```
|
|
200
|
+
BLOCKED: Missing critical context for Design System Governance
|
|
201
|
+
Missing:
|
|
202
|
+
- [Specific requirement]
|
|
203
|
+
Questions:
|
|
204
|
+
1. Bạn có thể cung cấp thêm thông tin về yêu cầu này không?
|
|
205
|
+
2. Mục tiêu chính của bạn là gì?
|
|
206
|
+
Recommended Assumptions: none
|
|
207
|
+
```
|
|
208
|
+
|
|
209
|
+
## Handoff Contract
|
|
210
|
+
|
|
211
|
+
### Consumes
|
|
212
|
+
```json
|
|
213
|
+
{
|
|
214
|
+
"from": "user or qk-orchestrator",
|
|
215
|
+
"required_fields": ["context"],
|
|
216
|
+
"optional_fields": ["existing_config"]
|
|
217
|
+
}
|
|
218
|
+
```
|
|
219
|
+
|
|
220
|
+
### Produces
|
|
221
|
+
```json
|
|
222
|
+
{
|
|
223
|
+
"to": "user or downstream skill",
|
|
224
|
+
"output_fields": ["strategy_report", "exit_code"]
|
|
225
|
+
}
|
|
226
|
+
```
|
|
227
|
+
|
|
228
|
+
## Exit Codes
|
|
229
|
+
|
|
230
|
+
| Code | Meaning | When |
|
|
231
|
+
|------|---------|------|
|
|
232
|
+
| SUCCESS | Design System Governance task completed successfully | Strategy/audit generated |
|
|
233
|
+
| PARTIAL | Task completed with assumptions | Medium confidence |
|
|
234
|
+
| BLOCKED | Missing context | Cannot proceed |
|
|
235
|
+
| FAILED | Critical conflict or error | Unresolvable constraint |
|