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,134 +1,258 @@
|
|
|
1
|
-
---
|
|
2
|
-
# ── Identity ───────────────────────────────────────────────
|
|
3
|
-
name: qk-frontend-architecture
|
|
4
|
-
version: 8.1.0
|
|
5
|
-
status: experimental
|
|
6
|
-
description: "Công cụ quyết định kiến trúc Frontend (Chiến lược component, quản lý state, định tuyến)."
|
|
7
|
-
platforms: [antigravity, claude-code, cursor, windsurf, kilo-code]
|
|
8
|
-
|
|
9
|
-
# ── V8: Classification ─────────────────────────────────────
|
|
10
|
-
type: capability
|
|
11
|
-
|
|
12
|
-
intent:
|
|
13
|
-
- frontend-architecture
|
|
14
|
-
- component-strategy
|
|
15
|
-
- state-management
|
|
16
|
-
|
|
17
|
-
complexity:
|
|
18
|
-
level: high
|
|
19
|
-
criteria:
|
|
20
|
-
files_affected: "5-10"
|
|
21
|
-
has_behavior_change: true
|
|
22
|
-
has_external_dependency: true
|
|
23
|
-
has_breaking_change: false
|
|
24
|
-
|
|
25
|
-
triggers:
|
|
26
|
-
- "cấu trúc frontend"
|
|
27
|
-
- "thiết kế component"
|
|
28
|
-
- "quản lý state"
|
|
29
|
-
- "kiến trúc react"
|
|
30
|
-
|
|
31
|
-
# ── V8: References ─────────────────────────────────────────
|
|
32
|
-
workflow: feature-delivery
|
|
33
|
-
|
|
34
|
-
rules:
|
|
35
|
-
- global
|
|
36
|
-
- coding
|
|
37
|
-
|
|
38
|
-
tools:
|
|
39
|
-
- filesystem
|
|
40
|
-
|
|
41
|
-
related_skills:
|
|
42
|
-
- qk-design-system-engineering
|
|
43
|
-
- qk-web-quality-gate
|
|
44
|
-
|
|
45
|
-
knowledge_scope:
|
|
46
|
-
domain:
|
|
47
|
-
- react
|
|
48
|
-
- frontend-architecture
|
|
49
|
-
- state-management
|
|
50
|
-
concepts:
|
|
51
|
-
- component-hierarchy
|
|
52
|
-
- routing-strategy
|
|
53
|
-
references:
|
|
54
|
-
- architecture
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
-
|
|
65
|
-
|
|
66
|
-
- qk-ui-builder
|
|
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
|
-
-
|
|
1
|
+
---
|
|
2
|
+
# ── Identity ───────────────────────────────────────────────
|
|
3
|
+
name: qk-frontend-architecture
|
|
4
|
+
version: 8.1.0
|
|
5
|
+
status: experimental
|
|
6
|
+
description: "Công cụ quyết định kiến trúc Frontend (Chiến lược component, quản lý state, định tuyến)."
|
|
7
|
+
platforms: [antigravity, claude-code, cursor, windsurf, kilo-code]
|
|
8
|
+
|
|
9
|
+
# ── V8: Classification ─────────────────────────────────────
|
|
10
|
+
type: capability
|
|
11
|
+
|
|
12
|
+
intent:
|
|
13
|
+
- frontend-architecture
|
|
14
|
+
- component-strategy
|
|
15
|
+
- state-management
|
|
16
|
+
|
|
17
|
+
complexity:
|
|
18
|
+
level: high
|
|
19
|
+
criteria:
|
|
20
|
+
files_affected: "5-10"
|
|
21
|
+
has_behavior_change: true
|
|
22
|
+
has_external_dependency: true
|
|
23
|
+
has_breaking_change: false
|
|
24
|
+
|
|
25
|
+
triggers:
|
|
26
|
+
- "cấu trúc frontend"
|
|
27
|
+
- "thiết kế component"
|
|
28
|
+
- "quản lý state"
|
|
29
|
+
- "kiến trúc react"
|
|
30
|
+
|
|
31
|
+
# ── V8: References ─────────────────────────────────────────
|
|
32
|
+
workflow: feature-delivery
|
|
33
|
+
|
|
34
|
+
rules:
|
|
35
|
+
- global
|
|
36
|
+
- coding
|
|
37
|
+
|
|
38
|
+
tools:
|
|
39
|
+
- filesystem
|
|
40
|
+
|
|
41
|
+
related_skills:
|
|
42
|
+
- qk-design-system-engineering
|
|
43
|
+
- qk-web-quality-gate
|
|
44
|
+
|
|
45
|
+
knowledge_scope:
|
|
46
|
+
domain:
|
|
47
|
+
- react
|
|
48
|
+
- frontend-architecture
|
|
49
|
+
- state-management
|
|
50
|
+
concepts:
|
|
51
|
+
- component-hierarchy
|
|
52
|
+
- routing-strategy
|
|
53
|
+
references:
|
|
54
|
+
- architecture
|
|
55
|
+
- coding
|
|
56
|
+
- anti-patterns
|
|
57
|
+
|
|
58
|
+
decision_boundary:
|
|
59
|
+
owns:
|
|
60
|
+
- architecture decisions
|
|
61
|
+
- state strategy
|
|
62
|
+
does_not_own:
|
|
63
|
+
- component implementation
|
|
64
|
+
- pixel styling
|
|
65
|
+
conflicts_with:
|
|
66
|
+
- qk-ui-builder
|
|
67
|
+
delegates_to:
|
|
68
|
+
- qk-ui-builder
|
|
69
|
+
- qk-ui-system-builder
|
|
70
|
+
|
|
71
|
+
# ── V8: Verification ───────────────────────────────────────
|
|
72
|
+
verification:
|
|
73
|
+
required: true
|
|
74
|
+
strategy: feature
|
|
75
|
+
|
|
76
|
+
lifecycle:
|
|
77
|
+
promotion_gate:
|
|
78
|
+
requirements:
|
|
79
|
+
tests:
|
|
80
|
+
minimum_pass_rate: 0.95
|
|
81
|
+
usage:
|
|
82
|
+
minimum_runs: 20
|
|
83
|
+
conflicts:
|
|
84
|
+
zero_boundary_violation: true
|
|
85
|
+
evidence:
|
|
86
|
+
required:
|
|
87
|
+
- evaluation_report
|
|
88
|
+
- usage_history
|
|
89
|
+
- boundary_audit
|
|
90
|
+
demotion_gate:
|
|
91
|
+
triggers:
|
|
92
|
+
- repeated_failure
|
|
93
|
+
- boundary_violation
|
|
94
|
+
- outdated_reference
|
|
95
|
+
action:
|
|
96
|
+
change_status: "stable -> experimental"
|
|
97
|
+
|
|
98
|
+
selection:
|
|
99
|
+
priority: medium
|
|
100
|
+
confidence_threshold: 0.80
|
|
101
|
+
|
|
102
|
+
examples: []
|
|
103
|
+
learnings: []
|
|
104
|
+
|
|
105
|
+
# ── V7 Runtime ─────────────────────────────────────────────
|
|
106
|
+
execution_mode: deterministic
|
|
107
|
+
cost: medium
|
|
108
|
+
latency: medium
|
|
109
|
+
risk: low
|
|
110
|
+
side_effects: read_only
|
|
111
|
+
produces: [report, architecture_plan]
|
|
112
|
+
consumes: [user-description]
|
|
113
|
+
|
|
114
|
+
token_budget:
|
|
115
|
+
max_files_read: 5
|
|
116
|
+
max_lines_per_read: 150
|
|
117
|
+
max_shell_commands: 0
|
|
118
|
+
stop_early: true
|
|
119
|
+
|
|
120
|
+
exit_codes: [SUCCESS, BLOCKED, FAILED, PARTIAL]
|
|
121
|
+
---
|
|
122
|
+
|
|
123
|
+
# qk-frontend-architecture — Frontend Architect
|
|
124
|
+
|
|
125
|
+
> **Language rule:** Code, identifiers, file names → English. Explanations, summaries → Vietnamese.
|
|
126
|
+
|
|
127
|
+
## Preconditions
|
|
128
|
+
- [ ] Xác định framework (React/Next.js/Vue, v.v.).
|
|
129
|
+
- [ ] Phạm vi hệ thống frontend cần phân tích rõ ràng.
|
|
130
|
+
|
|
131
|
+
## Scope
|
|
132
|
+
- Đánh giá kiến trúc hiện tại của dự án Frontend.
|
|
133
|
+
- Đưa ra quyết định chia nhỏ (breakdown) components.
|
|
134
|
+
- Lựa chọn mô hình quản lý state (Global vs Local, Client vs Server). **BẮT BUỘC: Ưu tiên TanStack Query cho Server State; Zustand/Context cho Client State. Tránh Redux trừ khi legacy project bắt buộc.**
|
|
135
|
+
- Thiết kế hệ thống routing. **BẮT BUỘC: Sử dụng Next.js App Router (nếu framework là Next.js) hoặc TanStack Router (cho SPA).**
|
|
136
|
+
- KHÔNG thay thế việc viết UI code (`qk-ui-builder`). Chỉ giới hạn ở quyết định kiến trúc.
|
|
137
|
+
- BẮT BUỘC tuân thủ `anti-patterns.md` (đặc biệt R-C-09) khi thiết kế luồng dữ liệu.
|
|
138
|
+
|
|
139
|
+
## Non-Goals
|
|
140
|
+
- ❌ Provide implementation outside of Frontend Macro Architecture scope
|
|
141
|
+
- ❌ Override explicit user directives without explanation
|
|
142
|
+
- ❌ Guess ambiguous requirements without asking
|
|
143
|
+
|
|
144
|
+
## Priority Order
|
|
145
|
+
|
|
146
|
+
| Priority | Task | Skip Threshold |
|
|
147
|
+
|----------|------|----------------|
|
|
148
|
+
| P1 | Core Frontend Macro Architecture analysis and decision making | Never |
|
|
149
|
+
| P2 | Validation of existing patterns | Budget < 30% |
|
|
150
|
+
| P3 | Detailed documentation generation | Budget < 50% |
|
|
151
|
+
| P4 | Edge case exploration | Budget < 70% |
|
|
152
|
+
|
|
153
|
+
## Workflow
|
|
154
|
+
|
|
155
|
+
### Phase 1 — Context Loading
|
|
156
|
+
**Steps:**
|
|
157
|
+
1. Read existing configuration and requirements related to Frontend Macro Architecture.
|
|
158
|
+
2. Check for missing preconditions.
|
|
159
|
+
|
|
160
|
+
**Decision:**
|
|
161
|
+
```
|
|
162
|
+
IF context is clear
|
|
163
|
+
→ Confidence: HIGH → go to Phase 2
|
|
164
|
+
ELSE
|
|
165
|
+
→ EXIT: BLOCKED — ask user
|
|
166
|
+
```
|
|
167
|
+
|
|
168
|
+
### Phase 2 — Analysis & Strategy
|
|
169
|
+
**Steps:**
|
|
170
|
+
1. Analyze the current state against Frontend Macro Architecture best practices.
|
|
171
|
+
2. Formulate strategy or audit report based on findings.
|
|
172
|
+
|
|
173
|
+
**Decision:**
|
|
174
|
+
```
|
|
175
|
+
IF strategy/audit is complete
|
|
176
|
+
→ Confidence: HIGH → go to Phase 3
|
|
177
|
+
ELSE IF minor gaps exist
|
|
178
|
+
→ Confidence: MEDIUM → proceed with assumptions noted
|
|
179
|
+
```
|
|
180
|
+
|
|
181
|
+
### Phase 3 — Finalization
|
|
182
|
+
**Steps:**
|
|
183
|
+
1. Generate final report or configuration.
|
|
184
|
+
2. Prepare handoff data for subsequent skills.
|
|
185
|
+
|
|
186
|
+
## Confidence Model
|
|
187
|
+
|
|
188
|
+
| Level | Condition | Action |
|
|
189
|
+
|-------|-----------|--------|
|
|
190
|
+
| HIGH | All preconditions met, context fully understood | Proceed directly |
|
|
191
|
+
| MEDIUM | Some context missing but safe defaults exist | Proceed and note assumptions |
|
|
192
|
+
| LOW | Core requirements missing | EXIT: BLOCKED |
|
|
193
|
+
|
|
194
|
+
## Severity (for findings)
|
|
195
|
+
|
|
196
|
+
| Level | Definition |
|
|
197
|
+
|-------|-----------|
|
|
198
|
+
| CRITICAL | Severe violation of Frontend Macro Architecture principles |
|
|
199
|
+
| HIGH | Significant risk or technical debt |
|
|
200
|
+
| MEDIUM | Suboptimal pattern but functional |
|
|
201
|
+
| LOW | Minor style or documentation issue |
|
|
202
|
+
|
|
203
|
+
## Evidence Format
|
|
204
|
+
|
|
205
|
+
```
|
|
206
|
+
[SEVERITY] Context/File
|
|
207
|
+
Issue: [what was found]
|
|
208
|
+
Confidence: HIGH
|
|
209
|
+
Recommendation: [actionable advice]
|
|
210
|
+
```
|
|
211
|
+
|
|
212
|
+
## Retry Policy
|
|
213
|
+
```
|
|
214
|
+
Task fails due to missing context
|
|
215
|
+
└─ Ask user for clarification
|
|
216
|
+
├─ Provided → Retry Phase 1
|
|
217
|
+
└─ Not provided → EXIT: BLOCKED
|
|
218
|
+
```
|
|
219
|
+
|
|
220
|
+
## Escalation Rules
|
|
221
|
+
|
|
222
|
+
```
|
|
223
|
+
BLOCKED: Missing critical context for Frontend Macro Architecture
|
|
224
|
+
Missing:
|
|
225
|
+
- [Specific requirement]
|
|
226
|
+
Questions:
|
|
227
|
+
1. Bạn có thể cung cấp thêm thông tin về yêu cầu này không?
|
|
228
|
+
2. Mục tiêu chính của bạn là gì?
|
|
229
|
+
Recommended Assumptions: none
|
|
230
|
+
```
|
|
231
|
+
|
|
232
|
+
## Handoff Contract
|
|
233
|
+
|
|
234
|
+
### Consumes
|
|
235
|
+
```json
|
|
236
|
+
{
|
|
237
|
+
"from": "user or qk-orchestrator",
|
|
238
|
+
"required_fields": ["context"],
|
|
239
|
+
"optional_fields": ["existing_config"]
|
|
240
|
+
}
|
|
241
|
+
```
|
|
242
|
+
|
|
243
|
+
### Produces
|
|
244
|
+
```json
|
|
245
|
+
{
|
|
246
|
+
"to": "user or downstream skill",
|
|
247
|
+
"output_fields": ["strategy_report", "exit_code"]
|
|
248
|
+
}
|
|
249
|
+
```
|
|
250
|
+
|
|
251
|
+
## Exit Codes
|
|
252
|
+
|
|
253
|
+
| Code | Meaning | When |
|
|
254
|
+
|------|---------|------|
|
|
255
|
+
| SUCCESS | Frontend Macro Architecture task completed successfully | Strategy/audit generated |
|
|
256
|
+
| PARTIAL | Task completed with assumptions | Medium confidence |
|
|
257
|
+
| BLOCKED | Missing context | Cannot proceed |
|
|
258
|
+
| FAILED | Critical conflict or error | Unresolvable constraint |
|
|
@@ -77,169 +77,31 @@ token_budget:
|
|
|
77
77
|
exit_codes: [SUCCESS]
|
|
78
78
|
---
|
|
79
79
|
|
|
80
|
-
#
|
|
80
|
+
# 🆘 V8.3 Skill System Help
|
|
81
81
|
|
|
82
|
-
>
|
|
82
|
+
> Lệnh: `./qk-help`
|
|
83
83
|
|
|
84
|
-
|
|
84
|
+
Hệ thống AI Developer Skin V8.3 (Zero-Trust & Anti-Slop Architecture) sử dụng kiến trúc **Governed Capabilities** thay vì Prompt Engineering truyền thống. Mỗi kỹ năng (skill) là một module độc lập, có Decision Boundary (giới hạn quyền hạn) và Token Budget (ngân sách thực thi) riêng.
|
|
85
85
|
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
## Scope
|
|
89
|
-
- ✅ Display available skills and their purposes
|
|
90
|
-
- ✅ Show common pipelines and best practices
|
|
91
|
-
- ✅ Provide quick reference for skill commands
|
|
92
|
-
|
|
93
|
-
## Non-Goals
|
|
94
|
-
- ❌ Execute any skill — only display information
|
|
95
|
-
- ❌ Modify project files or configuration
|
|
96
|
-
- ❌ Answer questions outside the skill system
|
|
97
|
-
|
|
98
|
-
---
|
|
99
|
-
|
|
100
|
-
## Preconditions
|
|
101
|
-
- [ ] User requests help or list of skills
|
|
102
|
-
|
|
103
|
-
```
|
|
104
|
-
On missing precondition:
|
|
105
|
-
EXIT: BLOCKED
|
|
106
|
-
Message: "Vui lòng hỏi trợ giúp hoặc liệt kê skills."
|
|
107
|
-
```
|
|
108
|
-
|
|
109
|
-
---
|
|
110
|
-
|
|
111
|
-
## Scope
|
|
112
|
-
- ✅ Display available skills and their purposes
|
|
113
|
-
- ✅ Show common pipelines and best practices
|
|
114
|
-
- ✅ Provide quick reference for skill commands
|
|
115
|
-
|
|
116
|
-
## Non-Goals
|
|
117
|
-
- ❌ Execute any skill — only display information
|
|
118
|
-
- ❌ Modify project files or configuration
|
|
119
|
-
- ❌ Answer questions outside the skill system
|
|
120
|
-
|
|
121
|
-
---
|
|
122
|
-
|
|
123
|
-
## Priority Order
|
|
124
|
-
|
|
125
|
-
| Priority | Task | Skip Threshold |
|
|
126
|
-
|----------|------|----------------|
|
|
127
|
-
| P1 | List all available skills | Never |
|
|
128
|
-
| P2 | Show common pipelines | Never |
|
|
129
|
-
| P3 | Provide usage examples | Never |
|
|
130
|
-
|
|
131
|
-
---
|
|
132
|
-
|
|
133
|
-
## Workflow
|
|
134
|
-
|
|
135
|
-
### Phase 1 — Display Skills
|
|
136
|
-
|
|
137
|
-
**Steps:**
|
|
138
|
-
1. Read `.agents/registry/skills-index.yml` to get active skill list
|
|
139
|
-
2. Format as table: Command | Purpose | Cost
|
|
140
|
-
3. Display common pipelines
|
|
141
|
-
|
|
142
|
-
**Exit When:**
|
|
143
|
-
- Help displayed → EXIT: SUCCESS
|
|
144
|
-
|
|
145
|
-
---
|
|
146
|
-
|
|
147
|
-
## Confidence Model
|
|
148
|
-
|
|
149
|
-
| Level | Condition | Action |
|
|
150
|
-
|-------|-----------|--------|
|
|
151
|
-
| HIGH | .agents/registry/skills-index.yml readable | Display directly |
|
|
152
|
-
| MEDIUM | .agents/registry/skills-index.yml partially readable | Display what's available |
|
|
153
|
-
| LOW | Cannot access .agents/registry/skills-index.yml | EXIT: BLOCKED |
|
|
154
|
-
|
|
155
|
-
---
|
|
156
|
-
|
|
157
|
-
## Severity
|
|
158
|
-
|
|
159
|
-
| Level | Definition | Example |
|
|
160
|
-
|-------|-----------|---------|
|
|
161
|
-
| CRITICAL | N/A — this skill is read-only | — |
|
|
162
|
-
| HIGH | N/A — this skill is read-only | — |
|
|
163
|
-
| MEDIUM | N/A — this skill is read-only | — |
|
|
164
|
-
| LOW | N/A — this skill is read-only | — |
|
|
165
|
-
|
|
166
|
-
---
|
|
167
|
-
|
|
168
|
-
## Evidence Format
|
|
169
|
-
|
|
170
|
-
```
|
|
171
|
-
[INFO] qk-help
|
|
172
|
-
Message: [help content displayed]
|
|
173
|
-
Confidence: HIGH
|
|
174
|
-
```
|
|
175
|
-
|
|
176
|
-
---
|
|
177
|
-
|
|
178
|
-
## Retry Policy
|
|
179
|
-
|
|
180
|
-
```
|
|
181
|
-
Display fails
|
|
182
|
-
└─ Check if .agents/registry/skills-index.yml is accessible
|
|
183
|
-
├─ Accessible → retry display
|
|
184
|
-
└─ Not accessible → EXIT: BLOCKED
|
|
185
|
-
```
|
|
186
|
-
|
|
187
|
-
---
|
|
86
|
+
## 🛠 Cách Kích Hoạt Kỹ Năng
|
|
87
|
+
Gõ `./qk-[tên-skill] [yêu cầu của bạn]`
|
|
188
88
|
|
|
189
|
-
|
|
89
|
+
**Ví dụ:**
|
|
90
|
+
- `./qk-ui-builder tạo trang login với Tailwind`
|
|
91
|
+
- `./qk-feature-delivery thêm tính năng quên mật khẩu`
|
|
92
|
+
- `./qk-bug-resolution fix lỗi hydration mismatch ở trang chủ`
|
|
93
|
+
- `./qk-project-health đánh giá codebase`
|
|
190
94
|
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
95
|
+
## 🚦 V8.3 Quality Gates
|
|
96
|
+
Hệ thống áp dụng các checkpoint nghiêm ngặt. Nếu không qua được, AI sẽ tự động Block:
|
|
97
|
+
1. **Validation Gate:** `qk-validation-gate` chạy lint/test/type-check.
|
|
98
|
+
2. **Release Gate:** `qk-production-release` kiểm tra 8 cổng trước khi deploy.
|
|
99
|
+
3. **Web Quality Gate:** `qk-web-quality-gate` check A11y, SEO, Performance.
|
|
100
|
+
4. **UI Audit Gate:** `qk-ui-audit` check Anti-Slop (R-C-09).
|
|
101
|
+
5. **Security Gate:** Tất cả các luồng phải tuân thủ Zero-Trust (R-SEC-04).
|
|
198
102
|
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
### Consumes
|
|
204
|
-
```json
|
|
205
|
-
{
|
|
206
|
-
"from": "user",
|
|
207
|
-
"required_fields": ["help_request"],
|
|
208
|
-
"optional_fields": ["specific_skill"]
|
|
209
|
-
}
|
|
210
|
-
```
|
|
211
|
-
|
|
212
|
-
### Produces
|
|
213
|
-
```json
|
|
214
|
-
{
|
|
215
|
-
"to": "user",
|
|
216
|
-
"output_fields": ["skill_list", "pipelines", "usage_examples"],
|
|
217
|
-
"exit_code": "SUCCESS"
|
|
218
|
-
}
|
|
219
|
-
```
|
|
220
|
-
|
|
221
|
-
---
|
|
222
|
-
|
|
223
|
-
## Output Format
|
|
224
|
-
|
|
225
|
-
```
|
|
226
|
-
📚 Help — Available Skills
|
|
227
|
-
─────────────────────────────────────────────────
|
|
228
|
-
[table of skills]
|
|
229
|
-
|
|
230
|
-
Common Pipelines:
|
|
231
|
-
[common workflows]
|
|
103
|
+
## 📋 Xem Danh Sách Kỹ Năng
|
|
104
|
+
Các kỹ năng được chia theo nhóm (Capabilities).
|
|
105
|
+
Đọc file `.agents/skills/skills.json` hoặc thư mục `.agents/skills/` để xem toàn bộ danh sách.
|
|
232
106
|
|
|
233
|
-
|
|
234
|
-
```
|
|
235
|
-
|
|
236
|
-
---
|
|
237
|
-
|
|
238
|
-
## Exit Codes
|
|
239
|
-
|
|
240
|
-
| Code | Meaning | When |
|
|
241
|
-
|------|---------|------|
|
|
242
|
-
| SUCCESS | Help displayed successfully | Normal completion |
|
|
243
|
-
| BLOCKED | Cannot access .agents/registry/skills-index.yml | Setup required |
|
|
244
|
-
|
|
245
|
-
---
|
|
107
|
+
*Mẹo: Nếu không biết dùng skill nào, hãy nhờ `qk-orchestrator` phân tích yêu cầu của bạn.*
|