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.
Files changed (79) hide show
  1. package/.agents/LICENSE +21 -21
  2. package/.agents/README.md +90 -90
  3. package/.agents/docs/CHI_TIET_SKILLS.md +125 -125
  4. package/.agents/docs/MIGRATION-CLEANUP-V8.1.3.md +36 -36
  5. package/.agents/docs/MIGRATION-STATUS.md +35 -35
  6. package/.agents/docs/MIGRATION-V8.md +10 -10
  7. package/.agents/docs/V8-CERTIFICATION.md +27 -27
  8. package/.agents/docs/decisions/ADR-001-v8-migration.md +58 -58
  9. package/.agents/docs/decisions/ADR-002-workflow-separation.md +50 -50
  10. package/.agents/docs/decisions/ADR-003-registry-generated.md +54 -54
  11. package/.agents/docs/decisions/ADR-008-skill-boundary-review.md +27 -27
  12. package/.agents/registry/graph.json +4 -8
  13. package/.agents/registry/index.yaml +3 -4
  14. package/.agents/registry/skills-index.yml +525 -525
  15. package/.agents/rules/coding.md +10 -0
  16. package/.agents/rules/command-safety.md +37 -14
  17. package/.agents/rules/priorities.yml +13 -2
  18. package/.agents/rules/security.md +47 -7
  19. package/.agents/rules/skill-quality.md +32 -8
  20. package/.agents/skills/_template/SKILL.md +133 -132
  21. package/.agents/skills/_template/capability.yaml +20 -20
  22. package/.agents/skills/_template/evals/scorecard.yaml +19 -19
  23. package/.agents/skills/qk-access-policy/SKILL.md +4 -1
  24. package/.agents/skills/qk-agent-observability/SKILL.md +111 -0
  25. package/.agents/skills/qk-agent-observability/references/scorecard.yaml +80 -0
  26. package/.agents/skills/qk-ai-builder/SKILL.md +74 -5
  27. package/.agents/skills/qk-api-lifecycle/SKILL.md +4 -2
  28. package/.agents/skills/qk-bug-resolution/SKILL.md +3 -21
  29. package/.agents/skills/qk-code-review/SKILL.md +188 -189
  30. package/.agents/skills/qk-context-loader/SKILL.md +3 -47
  31. package/.agents/skills/qk-data-lifecycle/SKILL.md +7 -2
  32. package/.agents/skills/qk-db-optimizer/SKILL.md +3 -2
  33. package/.agents/skills/qk-design-system-engineering/SKILL.md +235 -112
  34. package/.agents/skills/qk-devops-platform/SKILL.md +241 -117
  35. package/.agents/skills/qk-docs/SKILL.md +3 -1
  36. package/.agents/skills/qk-engineering-standard/SKILL.md +4 -75
  37. package/.agents/skills/qk-engineering-standard/references/anti-patterns.md +121 -0
  38. package/.agents/skills/qk-engineering-standard/rules/frontend.md +1 -1
  39. package/.agents/skills/qk-fe-api-integration/SKILL.md +13 -32
  40. package/.agents/skills/qk-feature-delivery/SKILL.md +54 -202
  41. package/.agents/skills/qk-frontend-architecture/SKILL.md +258 -134
  42. package/.agents/skills/qk-help/SKILL.md +21 -159
  43. package/.agents/skills/qk-orchestrator/SKILL.md +2 -78
  44. package/.agents/skills/qk-orchestrator/references/routing-table.md +15 -3
  45. package/.agents/skills/qk-product-specification/SKILL.md +253 -130
  46. package/.agents/skills/qk-production-release/SKILL.md +32 -67
  47. package/.agents/skills/qk-project-bootstrap/SKILL.md +59 -8
  48. package/.agents/skills/qk-project-health/SKILL.md +4 -2
  49. package/.agents/skills/qk-project-memory/SKILL.md +3 -1
  50. package/.agents/skills/qk-security-audit/SKILL.md +259 -135
  51. package/.agents/skills/qk-system-evolution/SKILL.md +18 -68
  52. package/.agents/skills/qk-test-engineering/SKILL.md +262 -139
  53. package/.agents/skills/qk-ui-audit/SKILL.md +16 -89
  54. package/.agents/skills/qk-ui-audit/references/anti-slop-checklist.md +2 -2
  55. package/.agents/skills/qk-ui-builder/SKILL.md +482 -509
  56. package/.agents/skills/qk-ui-builder/references/component-cookbook.md +455 -1191
  57. package/.agents/skills/qk-ui-system-builder/SKILL.md +1 -5
  58. package/.agents/skills/qk-validation-gate/SKILL.md +0 -74
  59. package/.agents/skills/qk-web-quality-gate/SKILL.md +232 -114
  60. package/.agents/workflows/_schema.yml +146 -109
  61. package/.agents/workflows/bug-resolution.yml +121 -101
  62. package/.agents/workflows/code-review.yml +93 -77
  63. package/.agents/workflows/documentation.yml +90 -75
  64. package/.agents/workflows/feature-delivery.yml +120 -103
  65. package/.agents/workflows/refactor.yml +99 -81
  66. package/.agents/workflows/research.yml +75 -60
  67. package/.agents/workflows/security-audit.yml +115 -72
  68. package/.agents/workflows/skill-evolution.yml +97 -65
  69. package/.agents/workflows/spec-driven-development.yml +87 -57
  70. package/CHANGELOG.md +10 -0
  71. package/README.md +90 -90
  72. package/bin/install.js +330 -180
  73. package/package.json +2 -2
  74. package/.agents/CHANGELOG.md +0 -131
  75. package/.agents/learnings/draft/README.md +0 -37
  76. package/.agents/reports/RELEASE-CHECKLIST.md +0 -29
  77. package/.agents/reports/architecture-audit.md +0 -13
  78. package/.agents/reports/graph-health.md +0 -20
  79. package/.agents/reports/skill-audit.md +0 -215
@@ -47,6 +47,18 @@ knowledge_scope:
47
47
  - deployment-gate
48
48
  references:
49
49
  - architecture
50
+ - security
51
+ - anti-patterns
52
+
53
+ decision_boundary:
54
+ owns:
55
+ - release-gate-checklist
56
+ - deployment-readiness-verdict
57
+ does_not_own:
58
+ - ci-cd-pipeline-design
59
+ - infrastructure-provisioning
60
+ conflicts_with:
61
+ - qk-devops-platform
50
62
 
51
63
  # ── V8: Verification ───────────────────────────────────────
52
64
  verification:
@@ -73,19 +85,14 @@ token_budget:
73
85
  max_files_read: 3
74
86
  max_lines_per_read: 100
75
87
  max_shell_commands: 2
76
- stop_early: false
88
+ stop_early: true
77
89
 
78
90
  exit_codes: [SUCCESS, BLOCKED, FAILED, PARTIAL]
79
91
  ---
80
92
 
81
93
  # qk-production-release — Release Gate
82
94
 
83
- > **Language rule:** Code, identifiers, file names ? English. Explanations, summaries ? Vietnamese.
84
-
85
- skill_version: 7.5.0
86
- runtime_version: 1
87
- schema_version: 2
88
- ---
95
+ > **Language rule:** Code, identifiers, file names English. Explanations, summaries Vietnamese.
89
96
 
90
97
  ## Preconditions
91
98
  - [ ] `qk-validation-gate` has been run and returned SUCCESS or PARTIAL
@@ -98,11 +105,6 @@ On missing precondition:
98
105
  Message: "qk-validation-gate must pass before release. Run it first."
99
106
  ```
100
107
 
101
- skill_version: 7.5.0
102
- runtime_version: 1
103
- schema_version: 2
104
- ---
105
-
106
108
  ## Scope
107
109
  - ✅ Run 8-gate release checklist
108
110
  - ✅ Verify no dev artifacts in production build
@@ -113,11 +115,6 @@ schema_version: 2
113
115
  - ❌ Deploy to infrastructure — that's DevOps/CI system
114
116
  - ❌ Skip any gate unless user explicitly overrides
115
117
 
116
- skill_version: 7.5.0
117
- runtime_version: 1
118
- schema_version: 2
119
- ---
120
-
121
118
  ## Priority Order
122
119
 
123
120
  | Priority | Gate | Block Release? |
@@ -128,14 +125,9 @@ schema_version: 2
128
125
  | P4 | .env.production exists (not .env.development) | YES — hard block |
129
126
  | P5 | Build succeeds in production mode | YES — hard block |
130
127
  | P6 | Bundle size within limit (< 500KB gzipped) | WARN only |
131
- | P7 | No dev dependencies in production build | YES — hard block |
128
+ | P7 | No dev dependencies in production build. Check vulnerabilities (`npm audit`) | YES — hard block (Nếu có CRITICAL, báo gọi `qk-security-audit`) |
132
129
  | P8 | CHANGELOG.md updated with release notes | WARN only |
133
130
 
134
- skill_version: 7.5.0
135
- runtime_version: 1
136
- schema_version: 2
137
- ---
138
-
139
131
  ## Release Checklist (Mandatory)
140
132
 
141
133
  ```
@@ -149,11 +141,6 @@ schema_version: 2
149
141
  [ ] P8: CHANGELOG.md has entry for this release
150
142
  ```
151
143
 
152
- skill_version: 7.5.0
153
- runtime_version: 1
154
- schema_version: 2
155
- ---
156
-
157
144
  ## Workflow
158
145
 
159
146
  ### Phase 1 — Pre-flight Checks (P1–P4)
@@ -173,11 +160,6 @@ IF all P1–P4 pass
173
160
  → go to Phase 2
174
161
  ```
175
162
 
176
- skill_version: 7.5.0
177
- runtime_version: 1
178
- schema_version: 2
179
- ---
180
-
181
163
  ### Phase 2 — Build & Size Gate (P5–P7)
182
164
 
183
165
  **Steps:**
@@ -197,11 +179,6 @@ IF production audit has critical/high
197
179
  → EXIT: FAILED
198
180
  ```
199
181
 
200
- skill_version: 7.5.0
201
- runtime_version: 1
202
- schema_version: 2
203
- ---
204
-
205
182
  ### Phase 3 — Release Report
206
183
 
207
184
  Generate signed release report with all gate results.
@@ -218,11 +195,6 @@ IF any hard-block gate failed
218
195
  → EXIT: FAILED — do NOT deploy
219
196
  ```
220
197
 
221
- skill_version: 7.5.0
222
- runtime_version: 1
223
- schema_version: 2
224
- ---
225
-
226
198
  ## Evidence Format
227
199
 
228
200
  ```
@@ -234,11 +206,6 @@ Actual: [what was found]
234
206
  Fix: [what must be done before release]
235
207
  ```
236
208
 
237
- skill_version: 7.5.0
238
- runtime_version: 1
239
- schema_version: 2
240
- ---
241
-
242
209
  ## Escalation Rules
243
210
 
244
211
  ```
@@ -250,11 +217,6 @@ Questions:
250
217
  2. Có bug nào HIGH/CRITICAL chưa fix không?
251
218
  ```
252
219
 
253
- skill_version: 7.5.0
254
- runtime_version: 1
255
- schema_version: 2
256
- ---
257
-
258
220
  ## Handoff Contract
259
221
 
260
222
  ### Consumes
@@ -274,11 +236,6 @@ schema_version: 2
274
236
  }
275
237
  ```
276
238
 
277
- skill_version: 7.5.0
278
- runtime_version: 1
279
- schema_version: 2
280
- ---
281
-
282
239
  ## Output Format
283
240
 
284
241
  ```
@@ -301,28 +258,37 @@ Verdict: [✅ SAFE TO DEPLOY | ❌ DO NOT DEPLOY — fix: list]
301
258
  Exit Code: [SUCCESS | PARTIAL | BLOCKED | FAILED]
302
259
  ```
303
260
 
304
- skill_version: 7.5.0
305
- runtime_version: 1
306
- schema_version: 2
307
- ---
308
-
309
-
310
261
  ---
311
262
 
312
263
  ## Confidence Model
313
264
 
265
+ | Level | Condition | Action |
266
+ |-------|-----------|--------|
267
+ | HIGH | validation-gate result confirmed + all 8 gates checked directly | Deploy approved |
268
+ | MEDIUM | some gates inferred from partial CI output | Deploy with caution |
269
+ | LOW | validation-gate not run / gate results stale | EXIT: BLOCKED |
314
270
 
315
271
  ---
316
272
 
317
273
  ## Severity
318
274
 
275
+ | Level | Definition |
276
+ |-------|-----------|
277
+ | CRITICAL | deploying with unresolved P1–P5 hard-block gate failure |
278
+ | HIGH | P6/P7 warning ignored without user override |
279
+ | MEDIUM | CHANGELOG missing |
280
+ | LOW | minor formatting in release report |
319
281
 
320
282
  ---
321
283
 
322
284
  ## Retry Policy
323
285
 
324
-
325
- ---
286
+ ```
287
+ Build fails during Phase 2
288
+ └─ check syntax vs. environment error
289
+ ├─ fix and retry once
290
+ └─ do not retry more than 1 time (risk of masking a real failure)
291
+ ```
326
292
  ## Exit Codes
327
293
 
328
294
  | Code | Meaning | When |
@@ -334,4 +300,3 @@ schema_version: 2
334
300
 
335
301
  ---
336
302
 
337
-
@@ -49,6 +49,8 @@ knowledge_scope:
49
49
  - initial-setup
50
50
  references:
51
51
  - architecture
52
+ - security
53
+ - anti-patterns
52
54
 
53
55
  # ── V8: Verification ───────────────────────────────────────
54
56
  verification:
@@ -67,9 +69,7 @@ execution_mode: deterministic
67
69
  cost: high
68
70
  latency: slow
69
71
  risk: low
70
- side_effects:
71
- - create_files
72
- - create_structure
72
+ side_effects: edit_files
73
73
  produces: [code, schema, plan]
74
74
  consumes: [user-description]
75
75
 
@@ -77,14 +77,14 @@ token_budget:
77
77
  max_files_read: 1
78
78
  max_lines_per_read: 50
79
79
  max_shell_commands: 2
80
- stop_early: false
80
+ stop_early: true
81
81
 
82
82
  exit_codes: [SUCCESS, BLOCKED, FAILED, PARTIAL]
83
83
  ---
84
84
 
85
85
  # qk-project-bootstrap — Project Foundation Builder
86
86
 
87
- > **Language rule:** Code, identifiers, file names ? English. Explanations, summaries ? Vietnamese.
87
+ > **Language rule:** Code, identifiers, file names English. Explanations, summaries Vietnamese.
88
88
 
89
89
  ---
90
90
 
@@ -173,6 +173,8 @@ evals/ # Traceability logs
173
173
  [ ] README.md — project description + setup instructions
174
174
  [ ] DESIGN.md — (UI projects) brand contract with color/font/spacing tokens
175
175
  [ ] evals/scorecard.yaml — (AI/RAG/Workflow projects) eval standard
176
+ [ ] .agents/rules/anti-patterns.md — Bắt buộc phải có (chuẩn V8.3 R-C-09)
177
+ [ ] .agents/rules/security.md — Bắt buộc phải có (chuẩn V8.3 R-SEC-04)
176
178
  ```
177
179
  -----
178
180
 
@@ -204,21 +206,72 @@ evals/ # Traceability logs
204
206
 
205
207
  ---
206
208
 
207
-
208
209
  ---
209
210
 
210
211
  ## Workflow
211
212
 
213
+ ### Phase 1 — Blueprint Selection
214
+ **Steps:**
215
+ 1. Assess Preconditions to determine framework/purpose.
216
+ 2. Select appropriate blueprint (coding, rag, workflow, enterprise).
217
+
218
+ **Decision:**
219
+ ```
220
+ IF framework/purpose is clear
221
+ → Confidence: HIGH → go to Phase 2
222
+ ELSE
223
+ → EXIT: BLOCKED — ask user
224
+ ```
225
+
226
+ ### Phase 2 — Scaffold Generation
227
+ **Steps:**
228
+ 1. Generate `project.yaml` manifest.
229
+ 2. Create directory tree structure based on blueprint.
230
+ 3. Configure tooling and generate `DESIGN.md` if UI project.
231
+
232
+ **Decision:**
233
+ ```
234
+ IF directories and files are generated
235
+ → Confidence: HIGH → go to Phase 3
236
+ ELSE
237
+ → EXIT: FAILED
238
+ ```
239
+
240
+ ### Phase 3 — Verification
241
+ **Steps:**
242
+ 1. Check Required Files Checklist against what was actually created.
243
+ 2. Ensure no mandatory files are missing.
244
+
245
+ **Decision:**
246
+ ```
247
+ IF all required files exist
248
+ → EXIT: SUCCESS
249
+ ELSE
250
+ → EXIT: PARTIAL
251
+ ```
212
252
 
213
253
  ---
214
254
 
215
255
  ## Evidence Format
216
256
 
257
+ ```
258
+ [SEVERITY] path/to/expected-file
259
+ Issue: [MISSING_MANIFEST | MISSING_DESIGN_MD | WRONG_STRUCTURE]
260
+ Confidence: HIGH
261
+ Fix: [specific file to create]
262
+ ```
217
263
 
218
264
  ---
219
265
 
220
266
  ## Priority Order
221
267
 
268
+ | Priority | Task | Skip Threshold |
269
+ |----------|------|----------------|
270
+ | P1 | project.yaml manifest created | Never |
271
+ | P2 | Core scaffolding per blueprint type | Never |
272
+ | P3 | Tooling config | Budget < 40% |
273
+ | P4 | DESIGN.md for UI projects | Never for UI |
274
+ | P5 | README | Budget < 60% |
222
275
 
223
276
  ---
224
277
  ## Exit Codes
@@ -295,5 +348,3 @@ Recommended Assumptions (if proceeding):
295
348
 
296
349
  ---
297
350
 
298
-
299
-
@@ -48,6 +48,8 @@ knowledge_scope:
48
48
  - codebase-health
49
49
  references:
50
50
  - architecture
51
+ - security
52
+ - anti-patterns
51
53
 
52
54
  # ── V8: Verification ───────────────────────────────────────
53
55
  verification:
@@ -105,8 +107,8 @@ exit_codes: [SUCCESS, BLOCKED, FAILED, PARTIAL]
105
107
 
106
108
  | Dimension | Max Points | Key Checks |
107
109
  |-----------|-----------|------------|
108
- | Security | 20 | 0 critical CVEs, no hardcoded secrets, auth guards present |
109
- | Code Quality | 20 | Functions ≤ 30L, complexity ≤ 10, no God Files |
110
+ | Security | 20 | 0 critical CVEs, no hardcoded secrets, auth guards present, **tuân thủ Zero-Trust (R-SEC-04)** |
111
+ | Code Quality | 20 | Functions ≤ 30L, complexity ≤ 10, no God Files, **sạch bóng Anti-patterns (R-C-09)** |
110
112
  | Architecture | 20 | Clean layers (UI/Logic/Data separated), no circular imports |
111
113
  | Dependencies | 20 | No deprecated packages, no unused deps, versions pinned |
112
114
  | Documentation | 20 | README complete, public APIs documented, DESIGN.md exists |
@@ -48,6 +48,8 @@ knowledge_scope:
48
48
  - verified-context
49
49
  references:
50
50
  - architecture
51
+ - security
52
+ - anti-patterns
51
53
 
52
54
  # ── V8: Verification ───────────────────────────────────────
53
55
  verification:
@@ -98,7 +100,7 @@ exit_codes: [SUCCESS, BLOCKED, FAILED, PARTIAL]
98
100
  ## Non-Goals
99
101
  - ❌ Store assumptions or unverified hypotheses
100
102
  - ❌ Overwrite architectural rules without explicit user consent
101
- - ❌ Store sensitive data (env vars, secrets)
103
+ - ❌ Store sensitive data (env vars, secrets). **Tuyệt đối cấm lưu trữ PII, API Keys, raw JWTs, hoặc các bad practices vi phạm R-C-09 vào bộ nhớ dài hạn.**
102
104
 
103
105
  ---
104
106