ai-developer-skill-os 8.2.1 → 8.3.1
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/capability-graph.yml +67 -25
- package/.agents/registry/graph.json +135 -256
- package/.agents/registry/index.yaml +68 -95
- package/.agents/registry/skills-index.yml +548 -525
- package/.agents/rules/anti-patterns.md +45 -0
- 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 +22 -8
- package/.agents/skills/_template/evals/scorecard.yaml +19 -19
- package/.agents/skills/qk-access-policy/SKILL.md +5 -2
- package/.agents/skills/qk-access-policy/capability.yaml +23 -0
- package/.agents/skills/qk-access-policy/evals/scorecard.yaml +36 -0
- package/.agents/skills/qk-agent-observability/SKILL.md +112 -1
- package/.agents/skills/qk-agent-observability/capability.yaml +29 -0
- package/.agents/skills/qk-agent-observability/evals/scorecard.yaml +29 -0
- package/.agents/skills/qk-agent-observability/references/scorecard.yaml +80 -0
- package/.agents/skills/qk-ai-builder/SKILL.md +75 -6
- package/.agents/skills/qk-ai-builder/capability.yaml +23 -0
- package/.agents/skills/qk-ai-builder/evals/scorecard.yaml +30 -0
- package/.agents/skills/qk-api-lifecycle/SKILL.md +5 -3
- package/.agents/skills/qk-api-lifecycle/capability.yaml +23 -0
- package/.agents/skills/qk-api-lifecycle/evals/scorecard.yaml +29 -0
- package/.agents/skills/qk-bug-resolution/SKILL.md +4 -22
- package/.agents/skills/qk-bug-resolution/capability.yaml +25 -0
- package/.agents/skills/qk-bug-resolution/evals/scorecard.yaml +30 -0
- package/.agents/skills/qk-code-review/SKILL.md +188 -186
- package/.agents/skills/qk-code-review/capability.yaml +23 -0
- package/.agents/skills/qk-code-review/evals/scorecard.yaml +29 -0
- package/.agents/skills/qk-context-loader/SKILL.md +4 -12
- package/.agents/skills/qk-context-loader/capability.yaml +23 -0
- package/.agents/skills/qk-context-loader/evals/scorecard.yaml +28 -0
- package/.agents/skills/qk-data-lifecycle/SKILL.md +7 -2
- package/.agents/skills/qk-data-lifecycle/capability.yaml +23 -0
- package/.agents/skills/qk-data-lifecycle/evals/scorecard.yaml +29 -0
- package/.agents/skills/qk-db-optimizer/SKILL.md +4 -3
- package/.agents/skills/qk-db-optimizer/capability.yaml +22 -0
- package/.agents/skills/qk-db-optimizer/evals/scorecard.yaml +28 -0
- package/.agents/skills/qk-design-system-engineering/SKILL.md +235 -112
- package/.agents/skills/qk-design-system-engineering/capability.yaml +25 -0
- package/.agents/skills/qk-design-system-engineering/evals/scorecard.yaml +27 -0
- package/.agents/skills/qk-devops-platform/SKILL.md +241 -117
- package/.agents/skills/qk-devops-platform/capability.yaml +29 -0
- package/.agents/skills/qk-devops-platform/evals/scorecard.yaml +28 -0
- package/.agents/skills/qk-docs/SKILL.md +4 -2
- package/.agents/skills/qk-docs/capability.yaml +23 -0
- package/.agents/skills/qk-docs/evals/scorecard.yaml +27 -0
- package/.agents/skills/qk-engineering-standard/SKILL.md +5 -76
- package/.agents/skills/qk-engineering-standard/capability.yaml +23 -0
- package/.agents/skills/qk-engineering-standard/evals/scorecard.yaml +28 -0
- 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 +14 -33
- package/.agents/skills/qk-fe-api-integration/capability.yaml +21 -0
- package/.agents/skills/qk-fe-api-integration/evals/scorecard.yaml +29 -0
- package/.agents/skills/qk-feature-delivery/SKILL.md +54 -222
- package/.agents/skills/qk-feature-delivery/capability.yaml +24 -0
- package/.agents/skills/qk-feature-delivery/evals/scorecard.yaml +28 -0
- package/.agents/skills/qk-frontend-architecture/SKILL.md +258 -134
- package/.agents/skills/qk-frontend-architecture/capability.yaml +28 -0
- package/.agents/skills/qk-frontend-architecture/evals/scorecard.yaml +28 -0
- package/.agents/skills/qk-help/SKILL.md +23 -161
- package/.agents/skills/qk-help/capability.yaml +20 -0
- package/.agents/skills/qk-help/evals/scorecard.yaml +13 -0
- package/.agents/skills/qk-orchestrator/SKILL.md +3 -35
- package/.agents/skills/qk-orchestrator/capability.yaml +22 -0
- package/.agents/skills/qk-orchestrator/evals/scorecard.yaml +27 -0
- 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-product-specification/capability.yaml +27 -0
- package/.agents/skills/qk-product-specification/evals/scorecard.yaml +27 -0
- package/.agents/skills/qk-production-release/SKILL.md +33 -68
- package/.agents/skills/qk-production-release/capability.yaml +27 -0
- package/.agents/skills/qk-production-release/evals/scorecard.yaml +28 -0
- package/.agents/skills/qk-project-bootstrap/SKILL.md +59 -8
- package/.agents/skills/qk-project-bootstrap/capability.yaml +23 -0
- package/.agents/skills/qk-project-bootstrap/evals/scorecard.yaml +28 -0
- package/.agents/skills/qk-project-health/SKILL.md +5 -3
- package/.agents/skills/qk-project-health/capability.yaml +23 -0
- package/.agents/skills/qk-project-health/evals/scorecard.yaml +27 -0
- package/.agents/skills/qk-project-memory/SKILL.md +4 -2
- package/.agents/skills/qk-project-memory/capability.yaml +23 -0
- package/.agents/skills/qk-project-memory/evals/scorecard.yaml +27 -0
- package/.agents/skills/qk-refactor/SKILL.md +117 -0
- package/.agents/skills/qk-refactor/capability.yaml +26 -0
- package/.agents/skills/qk-refactor/evals/scorecard.yaml +27 -0
- package/.agents/skills/qk-security-audit/SKILL.md +259 -135
- package/.agents/skills/qk-security-audit/capability.yaml +30 -0
- package/.agents/skills/qk-security-audit/evals/scorecard.yaml +27 -0
- package/.agents/skills/qk-system-evolution/SKILL.md +18 -68
- package/.agents/skills/qk-system-evolution/capability.yaml +24 -0
- package/.agents/skills/qk-system-evolution/evals/scorecard.yaml +26 -0
- package/.agents/skills/qk-test-engineering/SKILL.md +262 -139
- package/.agents/skills/qk-test-engineering/capability.yaml +28 -0
- package/.agents/skills/qk-test-engineering/evals/scorecard.yaml +26 -0
- package/.agents/skills/qk-ui-audit/SKILL.md +17 -90
- package/.agents/skills/qk-ui-audit/capability.yaml +23 -0
- package/.agents/skills/qk-ui-audit/evals/scorecard.yaml +26 -0
- 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/capability.yaml +29 -0
- package/.agents/skills/qk-ui-builder/references/component-cookbook.md +455 -1191
- package/.agents/skills/qk-ui-system-builder/SKILL.md +2 -6
- package/.agents/skills/qk-ui-system-builder/capability.yaml +25 -0
- package/.agents/skills/qk-ui-system-builder/evals/scorecard.yaml +26 -0
- package/.agents/skills/qk-validation-gate/SKILL.md +1 -75
- package/.agents/skills/qk-validation-gate/capability.yaml +23 -0
- package/.agents/skills/qk-validation-gate/evals/scorecard.yaml +26 -0
- package/.agents/skills/qk-web-quality-gate/SKILL.md +232 -114
- package/.agents/skills/qk-web-quality-gate/capability.yaml +24 -0
- package/.agents/skills/qk-web-quality-gate/evals/scorecard.yaml +26 -0
- 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/production-release.yml +173 -0
- 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 +27 -0
- package/README.md +90 -90
- package/bin/install.js +329 -179
- package/package.json +4 -2
- package/tooling/build-registry.js +186 -186
- package/tooling/fix-refactor.js +8 -0
- package/tooling/sync-versions.js +49 -0
- package/tooling/validate-graph.js +87 -87
- 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
- package/tooling/generate-registry.js +0 -157
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
# ── Identity ───────────────────────────────────────────────
|
|
3
3
|
name: qk-feature-delivery
|
|
4
|
-
version: 8.
|
|
4
|
+
version: 8.3.1
|
|
5
5
|
status: stable
|
|
6
6
|
description: "Phát triển tính năng mới end-to-end: Requirements → Context → Design → Implement → Self-audit."
|
|
7
7
|
platforms: [antigravity, claude-code, cursor, windsurf, kilo-code]
|
|
@@ -55,7 +55,8 @@ knowledge_scope:
|
|
|
55
55
|
- requirement-analysis
|
|
56
56
|
references:
|
|
57
57
|
- testing
|
|
58
|
-
- security
|
|
58
|
+
- security
|
|
59
|
+
- anti-patterns
|
|
59
60
|
- design-system
|
|
60
61
|
|
|
61
62
|
# ── V8: Verification ───────────────────────────────────────
|
|
@@ -104,281 +105,112 @@ On missing precondition:
|
|
|
104
105
|
---
|
|
105
106
|
|
|
106
107
|
## Scope
|
|
107
|
-
- ✅
|
|
108
|
-
- ✅
|
|
109
|
-
- ✅
|
|
110
|
-
- ✅
|
|
108
|
+
- ✅ Read requirements and design docs (Context Loading)
|
|
109
|
+
- ✅ Implement feature adhering to R-C-09 (Anti-slop) and R-SEC-04 (Zero-Trust)
|
|
110
|
+
- ✅ Write unit/integration tests as required
|
|
111
|
+
- ✅ Run self-audit using qk-validation-gate before finishing
|
|
111
112
|
|
|
112
113
|
## Non-Goals
|
|
113
|
-
- ❌
|
|
114
|
-
- ❌
|
|
115
|
-
- ❌
|
|
116
|
-
- ❌ Ignore backward compatibility on existing APIs
|
|
117
|
-
- ❌ Proceed with ambiguous requirements without user confirmation
|
|
118
|
-
- ❌ Break existing API contracts — version or deprecate instead
|
|
114
|
+
- ❌ Skip validation gate
|
|
115
|
+
- ❌ Bypass R-SEC-04 (Zero-Trust) input validation
|
|
116
|
+
- ❌ Write 'spaghetti' code or giant God Files
|
|
119
117
|
|
|
120
118
|
---
|
|
121
119
|
|
|
122
120
|
## Priority Order
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
|
127
|
-
|
|
|
128
|
-
|
|
|
129
|
-
|
|
|
130
|
-
| P5 | Backend contract validation (API schema, DB migrations) | Budget < 60% |
|
|
131
|
-
| P6 | Documentation + comments | Budget < 70% |
|
|
121
|
+
| P | Task | Skip Threshold |
|
|
122
|
+
|---|------|----------------|
|
|
123
|
+
| P1 | Load and read requirements & design | Never |
|
|
124
|
+
| P2 | Context Graph verification (dependencies) | Never |
|
|
125
|
+
| P3 | Implementation (Code) | Never |
|
|
126
|
+
| P4 | Testing & Validation Gate | Never |
|
|
127
|
+
| P5 | Documentation | Budget < 30% |
|
|
132
128
|
|
|
133
129
|
---
|
|
134
130
|
|
|
135
|
-
## ⚡ FAST PATH (Đọc trước — quyết định ngay)
|
|
136
|
-
|
|
137
|
-
```
|
|
138
|
-
FAST PATH: Áp dụng nếu task đơn giản (sửa ≤ 1 file, không API mới, không migration DB)
|
|
139
|
-
→ BỎ QUA qk-context-loader
|
|
140
|
-
→ BỎ QUA Phase 1 clarification nếu requirement đã rõ
|
|
141
|
-
→ ĐI THẲNG vào Phase 3 — Implementation
|
|
142
|
-
→ Tiết kiệm 2-3 turn hỏi đáp không cần thiết
|
|
143
|
-
|
|
144
|
-
VÍ DỤ FAST PATH:
|
|
145
|
-
✅ "Sửa label trên button này thành X"
|
|
146
|
-
✅ "Thêm validation email vào form"
|
|
147
|
-
✅ "Fix bug: hàm này trả về null"
|
|
148
|
-
|
|
149
|
-
KHÔNG DÙNG FAST PATH:
|
|
150
|
-
❌ Tính năng mới span nhiều file (≥ 3 files)
|
|
151
|
-
❌ Thay đổi API contract
|
|
152
|
-
❌ Migration database
|
|
153
|
-
```
|
|
154
|
-
|
|
155
131
|
## Workflow
|
|
156
132
|
|
|
157
|
-
### Phase 1 —
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
2. Check ambiguity: Can I implement this without assumptions?
|
|
133
|
+
### Phase 1 — Context Loading
|
|
134
|
+
1. Read feature spec / requirements.
|
|
135
|
+
2. Read `DESIGN.md` if UI is involved.
|
|
136
|
+
3. Verify dependency graph via `qk-context-loader`.
|
|
162
137
|
|
|
163
138
|
**Decision:**
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
→ Confidence: HIGH → go to Phase 2
|
|
139
|
+
IF context is clear → go to Phase 2
|
|
140
|
+
ELSE → EXIT: BLOCKED — ask user
|
|
167
141
|
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
142
|
+
### Phase 2 — Implementation (Code)
|
|
143
|
+
1. Write code in isolated steps.
|
|
144
|
+
2. **BẮT BUỘC tuân thủ R-C-09 (Zero Slop) và R-SEC-04 (Zero Trust).**
|
|
145
|
+
3. Keep functions < 30 lines, avoid God Files.
|
|
172
146
|
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
**Exit When:**
|
|
178
|
-
- Requirements understood → go to Phase 2
|
|
179
|
-
|
|
180
|
-
---
|
|
147
|
+
### Phase 3 — Testing
|
|
148
|
+
1. Write unit tests / integration tests.
|
|
149
|
+
2. Run test commands to verify.
|
|
181
150
|
|
|
182
|
-
### Phase
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
1. If logic work: read context graph from `qk-context-loader` output
|
|
186
|
-
2. Identify: entry point, affected modules, existing patterns to reuse
|
|
187
|
-
3. If UI work: read `DESIGN.md` → extract tokens for this component
|
|
188
|
-
4. Document rollback plan — which files to revert if feature fails
|
|
151
|
+
### Phase 4 — Validation Gate (Self-Audit)
|
|
152
|
+
1. Hand off to `qk-validation-gate` or run linters.
|
|
153
|
+
2. Fix any reported violations immediately.
|
|
189
154
|
|
|
190
155
|
**Decision:**
|
|
191
|
-
|
|
192
|
-
IF
|
|
193
|
-
→ Use it, proceed to Phase 3
|
|
194
|
-
|
|
195
|
-
ELSE IF no context graph but simple task
|
|
196
|
-
→ Simple task = modifies ≤ 1 file, no new dependencies, no new API contracts
|
|
197
|
-
→ grep_search for entry point → minimal manual map
|
|
198
|
-
→ Confidence: MEDIUM → proceed to Phase 3
|
|
199
|
-
|
|
200
|
-
ELSE IF complex task without context graph
|
|
201
|
-
→ EXIT: BLOCKED — run qk-context-loader first
|
|
202
|
-
```
|
|
203
|
-
|
|
204
|
-
---
|
|
205
|
-
|
|
206
|
-
### Phase 3 — Implementation
|
|
207
|
-
|
|
208
|
-
**Steps (in order):**
|
|
209
|
-
1. Create/modify files using `replace_file_content` / `multi_replace_file_content`
|
|
210
|
-
2. Follow existing code patterns (from context graph)
|
|
211
|
-
3. For UI: use DESIGN.md tokens only — no hardcoded colors/sizes
|
|
212
|
-
4. Implement backend error handling: try/catch, transaction rollback, input validation
|
|
213
|
-
5. Handle all 3 UI states: Loading + Success + Error
|
|
214
|
-
|
|
215
|
-
**Exit When:**
|
|
216
|
-
- Happy path implemented → go to Phase 4
|
|
217
|
-
- Blocked by missing dependency → EXIT: BLOCKED, ask user
|
|
218
|
-
|
|
219
|
-
---
|
|
220
|
-
|
|
221
|
-
### Phase 4 — Self-Audit
|
|
222
|
-
|
|
223
|
-
**Steps:**
|
|
224
|
-
1. Re-read the code written (targeted view, ≤ 150 lines)
|
|
225
|
-
2. Check against: backward compat, DESIGN.md compliance, error states
|
|
226
|
-
3. Verify test coverage meets project threshold (default: ≥ 80%)
|
|
227
|
-
|
|
228
|
-
**Decision:**
|
|
229
|
-
```
|
|
230
|
-
IF all checks pass
|
|
231
|
-
→ EXIT: SUCCESS
|
|
232
|
-
|
|
233
|
-
ELSE IF minor issues found (missing error state, style token)
|
|
234
|
-
→ Fix immediately, EXIT: SUCCESS
|
|
235
|
-
|
|
236
|
-
ELSE IF significant issue (breaks existing API, wrong architecture)
|
|
237
|
-
→ Fix, note change in output, EXIT: FAILED — do not ship breaking changes as PARTIAL
|
|
238
|
-
|
|
239
|
-
ELSE IF missing backend error handling
|
|
240
|
-
→ Fix immediately, EXIT: SUCCESS
|
|
241
|
-
```
|
|
156
|
+
IF validation passes → EXIT: SUCCESS
|
|
157
|
+
IF validation fails → Fix and retry
|
|
242
158
|
|
|
243
159
|
---
|
|
244
160
|
|
|
245
161
|
## Confidence Model
|
|
246
|
-
|
|
247
162
|
| Level | Condition | Action |
|
|
248
163
|
|-------|-----------|--------|
|
|
249
|
-
| HIGH |
|
|
250
|
-
| MEDIUM |
|
|
251
|
-
| LOW |
|
|
164
|
+
| HIGH | Requirements clear, tests pass, validation clean | Report SUCCESS |
|
|
165
|
+
| MEDIUM | Specs ambiguous, some assumptions made | Ask user to review |
|
|
166
|
+
| LOW | Lacking specs or API contracts | EXIT: BLOCKED |
|
|
252
167
|
|
|
253
168
|
---
|
|
254
169
|
|
|
255
|
-
## Severity
|
|
256
|
-
|
|
170
|
+
## Severity
|
|
257
171
|
| Level | Definition |
|
|
258
172
|
|-------|-----------|
|
|
259
|
-
| CRITICAL |
|
|
260
|
-
| HIGH | Missing
|
|
261
|
-
| MEDIUM |
|
|
262
|
-
| LOW |
|
|
173
|
+
| CRITICAL | Broken functionality, security risk |
|
|
174
|
+
| HIGH | Missing tests, validation gate failed |
|
|
175
|
+
| MEDIUM | Minor UX issues |
|
|
176
|
+
| LOW | Code style issues |
|
|
263
177
|
|
|
264
178
|
---
|
|
265
179
|
|
|
266
|
-
## Evidence Format
|
|
267
|
-
|
|
180
|
+
## Evidence Format
|
|
268
181
|
```
|
|
269
|
-
[SEVERITY] path/to/file.ts
|
|
270
|
-
|
|
182
|
+
[SEVERITY] path/to/file.ts
|
|
183
|
+
Action: [What was implemented/fixed]
|
|
271
184
|
Confidence: HIGH
|
|
272
|
-
|
|
273
|
-
```
|
|
274
|
-
|
|
275
|
-
---
|
|
276
|
-
|
|
277
|
-
## Escalation Rules
|
|
278
|
-
|
|
279
|
-
```
|
|
280
|
-
BLOCKED: [specific reason]
|
|
281
|
-
Missing:
|
|
282
|
-
- [What's needed — context graph / DESIGN.md / clear requirements]
|
|
283
|
-
Questions:
|
|
284
|
-
1. [Specific clarifying question]
|
|
285
|
-
2. [Second question if needed]
|
|
286
|
-
Recommended Assumptions (if proceeding):
|
|
287
|
-
- [Safe assumption 1]
|
|
288
|
-
- [Safe assumption 2 — note these will be in output]
|
|
185
|
+
Validation: [PASS | FAIL]
|
|
289
186
|
```
|
|
290
187
|
|
|
291
188
|
---
|
|
292
189
|
|
|
293
190
|
## Handoff Contract
|
|
294
|
-
|
|
295
191
|
### Consumes
|
|
296
192
|
```json
|
|
297
193
|
{
|
|
298
|
-
"from": "qk-
|
|
299
|
-
"required_fields": ["
|
|
300
|
-
"optional_fields": ["design_md_path", "acceptance_criteria"]
|
|
194
|
+
"from": "user or qk-product-specification",
|
|
195
|
+
"required_fields": ["feature_spec", "acceptance_criteria"]
|
|
301
196
|
}
|
|
302
197
|
```
|
|
303
|
-
|
|
304
198
|
### Produces
|
|
305
199
|
```json
|
|
306
200
|
{
|
|
307
201
|
"to": "qk-validation-gate",
|
|
308
|
-
"output_fields": ["
|
|
202
|
+
"output_fields": ["implemented_files", "test_status", "exit_code"]
|
|
309
203
|
}
|
|
310
204
|
```
|
|
311
205
|
|
|
312
206
|
---
|
|
313
207
|
|
|
314
|
-
## Output Format
|
|
315
|
-
|
|
316
|
-
```
|
|
317
|
-
🚀 Feature Delivery
|
|
318
|
-
─────────────────────────────────────────────────
|
|
319
|
-
Feature: [feature name]
|
|
320
|
-
Confidence: [HIGH | MEDIUM]
|
|
321
|
-
|
|
322
|
-
Implementation:
|
|
323
|
-
✅ [file:line — what was added/changed]
|
|
324
|
-
✅ [file:line — what was added/changed]
|
|
325
|
-
|
|
326
|
-
Assumptions made:
|
|
327
|
-
- [assumption 1 — safe/risky]
|
|
328
|
-
|
|
329
|
-
Self-Audit:
|
|
330
|
-
✅ Backward compatible
|
|
331
|
-
✅ Error/Loading states handled
|
|
332
|
-
✅ DESIGN.md tokens used
|
|
333
|
-
✅ Backend error handling implemented
|
|
334
|
-
⚠️ [Any noted issue]
|
|
335
|
-
|
|
336
|
-
Exit Code: [SUCCESS | PARTIAL | BLOCKED | FAILED]
|
|
337
|
-
```
|
|
338
|
-
|
|
339
|
-
---
|
|
340
|
-
|
|
341
208
|
## Exit Codes
|
|
342
|
-
|
|
343
209
|
| Code | Meaning | When |
|
|
344
210
|
|------|---------|------|
|
|
345
|
-
| SUCCESS | Feature
|
|
346
|
-
| PARTIAL | Feature
|
|
347
|
-
| BLOCKED |
|
|
348
|
-
| FAILED |
|
|
349
|
-
|
|
350
|
-
---
|
|
351
|
-
|
|
352
|
-
Deliver a complete, verifiable feature end-to-end (FE + BE + API) while adhering to project architecture and DESIGN.md.
|
|
353
|
-
This skill is the primary execution skill for building new features. It requires clear requirements, context graph for architecture understanding, and DESIGN.md for UI work.
|
|
354
|
-
- Feature description with acceptance criteria
|
|
355
|
-
- Context graph (from qk-context-loader)
|
|
356
|
-
- DESIGN.md path (if UI involved)
|
|
357
|
-
- Existing codebase patterns
|
|
358
|
-
- User approval for new dependencies
|
|
359
|
-
1. **Clarify:** Parse requirements, identify ambiguities, ask user if needed
|
|
360
|
-
2. **Load:** Read context graph and DESIGN.md tokens
|
|
361
|
-
3. **Implement:** Build feature following existing patterns
|
|
362
|
-
4. **Audit:** Self-audit for backward compat, error states, DESIGN.md compliance
|
|
363
|
-
- MUST have context graph OR explicit confirmation for simple tasks
|
|
364
|
-
- MUST have DESIGN.md tokens if UI is involved
|
|
365
|
-
- MUST handle all 3 UI states: Loading, Success, Error
|
|
366
|
-
- MUST NOT exceed token_budget (max 5 files, 150 lines each, 2 shell commands)
|
|
367
|
-
- MUST NOT break existing API contracts without versioning
|
|
368
|
-
- Zero-Trust: No assumptions without user confirmation
|
|
369
|
-
- Backward Compat: Never break existing public APIs
|
|
370
|
-
- Design First: UI must use DESIGN.md tokens only
|
|
371
|
-
- Error Handling: Backend must have try/catch, validation, rollback
|
|
372
|
-
## Retry Policy
|
|
373
|
-
```
|
|
374
|
-
Fix applied
|
|
375
|
-
└─ Static verification (re-read fixed section)
|
|
376
|
-
├─ PASS → EXIT: SUCCESS
|
|
377
|
-
└─ Issue detected → attempt 1 correction
|
|
378
|
-
└─ Re-verify
|
|
379
|
-
├─ PASS → EXIT: SUCCESS
|
|
380
|
-
└─ FAIL → EXIT: PARTIAL + report both attempts
|
|
381
|
-
└─ Do NOT attempt 3rd fix — ESCALATE to user
|
|
382
|
-
```
|
|
211
|
+
| SUCCESS | Feature completed, tests pass, validation clean | Normal |
|
|
212
|
+
| PARTIAL | Feature mostly done, some minor issues | Budget hit |
|
|
213
|
+
| BLOCKED | Missing requirements or design | Cannot start |
|
|
214
|
+
| FAILED | Implementation fundamentally broken | Tests/Validation failed |
|
|
383
215
|
|
|
384
216
|
---
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# Auto-generated from SKILL.md frontmatter
|
|
2
|
+
schema_version: 1
|
|
3
|
+
id: "qk-feature-delivery"
|
|
4
|
+
version: "8.3.1"
|
|
5
|
+
description: "Phát triển tính năng mới end-to-end: Requirements → Context → Design → Implement → Self-audit."
|
|
6
|
+
tools:
|
|
7
|
+
- "filesystem"
|
|
8
|
+
- "terminal"
|
|
9
|
+
knowledge:
|
|
10
|
+
owns:
|
|
11
|
+
- "feature-implementation"
|
|
12
|
+
- "requirement-analysis"
|
|
13
|
+
references:
|
|
14
|
+
- "testing"
|
|
15
|
+
- "security"
|
|
16
|
+
- "anti-patterns"
|
|
17
|
+
- "design-system"
|
|
18
|
+
eval:
|
|
19
|
+
scorecard: "evals/scorecard.yaml"
|
|
20
|
+
decision_boundary:
|
|
21
|
+
owns:
|
|
22
|
+
- "qk-feature-delivery"
|
|
23
|
+
does_not_own: []
|
|
24
|
+
conflicts_with: []
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
name: qk-feature-delivery-eval
|
|
2
|
+
description: Đánh giá quy trình phát triển tính năng mới (End-to-End)
|
|
3
|
+
version: 8.3.1
|
|
4
|
+
threshold: 85 # Tính năng mới phải đáp ứng các tiêu chuẩn khắt khe trước khi hoàn thành
|
|
5
|
+
|
|
6
|
+
metrics:
|
|
7
|
+
- id: requirement_and_context
|
|
8
|
+
name: Phân tích Yêu cầu và Ngữ cảnh
|
|
9
|
+
description: Agent có đọc kỹ requirements và context graph trước khi code không?
|
|
10
|
+
weight: 30
|
|
11
|
+
criteria:
|
|
12
|
+
- Đọc spec và DESIGN.md (nếu có UI) trước khi bắt đầu (15đ)
|
|
13
|
+
- Kiểm tra dependency graph qua qk-context-loader (15đ)
|
|
14
|
+
|
|
15
|
+
- id: implementation_standards
|
|
16
|
+
name: Tuân thủ Tiêu chuẩn Lập trình (R-C-09 & R-SEC-04)
|
|
17
|
+
description: Code sinh ra có sạch sẽ và an toàn không?
|
|
18
|
+
weight: 40
|
|
19
|
+
criteria:
|
|
20
|
+
- Tuân thủ Zero Slop (hàm < 30 dòng, không có God Files) (20đ)
|
|
21
|
+
- Tuân thủ Zero Trust (validate đầu vào chặt chẽ) (20đ)
|
|
22
|
+
|
|
23
|
+
- id: self_audit_and_testing
|
|
24
|
+
name: Kiểm thử và Tự kiểm toán (Self-Audit)
|
|
25
|
+
description: Agent có tự kiểm tra lại code thông qua Validation Gate không?
|
|
26
|
+
weight: 30
|
|
27
|
+
criteria:
|
|
28
|
+
- Bắt buộc gọi qk-validation-gate hoặc chạy linter/tests trước khi kết thúc (30đ)
|