ai-developer-skill-os 7.0.2 → 7.5.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/AGENTS.md +44 -88
- package/.agents/CHANGELOG.md +69 -0
- package/.agents/LICENSE +21 -0
- package/.agents/README.md +59 -0
- package/.agents/_template/BEHAVIOR_SPEC.md +96 -0
- package/.agents/_template/examples/example-en.md +49 -0
- package/.agents/_template/examples/example-vi.md +49 -0
- package/.agents/docs/CHI_TIET_SKILLS.md +125 -0
- package/.agents/docs/GOVERNANCE.md +40 -0
- package/.agents/docs/HUONG_DAN_SU_DUNG.md +120 -0
- package/.agents/docs/SPEC.md +87 -0
- package/.agents/docs/adr/0001-intent-based-architecture.md +19 -0
- package/.agents/docs/adr/0002-kernel-freeze.md +21 -0
- package/.agents/docs/adr/0003-risk-based-verification.md +20 -0
- package/.agents/docs/adr/0004-progressive-evidence.md +19 -0
- package/.agents/docs/skill-classification.md +25 -0
- package/.agents/skills/qk-access-policy/SKILL.md +179 -0
- package/.agents/skills/qk-ai-builder/SKILL.md +215 -0
- package/.agents/skills/qk-api-lifecycle/SKILL.md +176 -0
- package/.agents/skills/qk-bug-resolution/SKILL.md +307 -0
- package/.agents/skills/qk-context-loader/SKILL.md +218 -0
- package/.agents/skills/qk-data-lifecycle/SKILL.md +192 -0
- package/.agents/skills/qk-db-optimizer/SKILL.md +196 -0
- package/.agents/skills/qk-design-to-code/SKILL.md +285 -0
- package/.agents/skills/qk-docs/SKILL.md +198 -0
- package/.agents/skills/qk-engineering-standard/SKILL.md +351 -0
- package/.agents/skills/qk-engineering-standard/rules/backend.md +122 -0
- package/.agents/skills/qk-engineering-standard/rules/database.md +3 -0
- package/.agents/skills/qk-engineering-standard/rules/frontend.md +152 -0
- package/.agents/skills/qk-engineering-standard/rules/security.md +3 -0
- package/.agents/skills/qk-engineering-standard/rules/testing.md +3 -0
- package/.agents/skills/qk-fe-api-integration/SKILL.md +326 -0
- package/.agents/skills/qk-feature-delivery/SKILL.md +305 -0
- package/.agents/skills/qk-help/SKILL.md +193 -0
- package/.agents/skills/qk-orchestrator/SKILL.md +277 -0
- package/.agents/skills/qk-orchestrator/references/routing-table.md +77 -0
- package/.agents/skills/qk-production-release/SKILL.md +284 -0
- package/.agents/skills/qk-project-bootstrap/SKILL.md +234 -0
- package/.agents/skills/qk-project-health/SKILL.md +199 -0
- package/.agents/skills/qk-project-memory/SKILL.md +172 -0
- package/.agents/skills/qk-system-evolution/SKILL.md +281 -0
- package/.agents/skills/qk-ui-audit/SKILL.md +314 -0
- package/.agents/skills/qk-ui-audit/references/anti-slop-checklist.md +136 -0
- package/.agents/skills/qk-ui-system-builder/SKILL.md +221 -0
- package/.agents/skills/qk-validation-gate/SKILL.md +359 -0
- package/.agents/skills.json +819 -0
- package/.github/workflows/ci.yml +1 -1
- package/.qk-ai-skill-os/CHANGELOG.md +69 -0
- package/.qk-ai-skill-os/LICENSE +21 -0
- package/.qk-ai-skill-os/README.md +59 -0
- package/.qk-ai-skill-os/_template/BEHAVIOR_SPEC.md +96 -0
- package/.qk-ai-skill-os/_template/examples/example-en.md +49 -0
- package/.qk-ai-skill-os/_template/examples/example-vi.md +49 -0
- package/.qk-ai-skill-os/docs/CHI_TIET_SKILLS.md +125 -0
- package/.qk-ai-skill-os/docs/GOVERNANCE.md +40 -0
- package/.qk-ai-skill-os/docs/HUONG_DAN_SU_DUNG.md +120 -0
- package/.qk-ai-skill-os/docs/SPEC.md +87 -0
- package/.qk-ai-skill-os/docs/adr/0001-intent-based-architecture.md +19 -0
- package/.qk-ai-skill-os/docs/adr/0002-kernel-freeze.md +21 -0
- package/.qk-ai-skill-os/docs/adr/0003-risk-based-verification.md +20 -0
- package/.qk-ai-skill-os/docs/adr/0004-progressive-evidence.md +19 -0
- package/.qk-ai-skill-os/docs/skill-classification.md +25 -0
- package/.qk-ai-skill-os/skills/_archive_old_skills/qk-accessibility-audit/SKILL.md +121 -0
- package/.qk-ai-skill-os/skills/_archive_old_skills/qk-agent-orchestrator/SKILL.md +179 -0
- package/.qk-ai-skill-os/skills/_archive_old_skills/qk-api-integration/SKILL.md +389 -0
- package/.qk-ai-skill-os/skills/_archive_old_skills/qk-auth-security/SKILL.md +96 -0
- package/.qk-ai-skill-os/skills/_archive_old_skills/qk-backend-architecture/SKILL.md +125 -0
- package/.qk-ai-skill-os/skills/_archive_old_skills/qk-bug-fix/SKILL.md +213 -0
- package/.qk-ai-skill-os/skills/_archive_old_skills/qk-component-generator/SKILL.md +136 -0
- package/.qk-ai-skill-os/skills/_archive_old_skills/qk-context-manager/SKILL.md +175 -0
- package/.qk-ai-skill-os/skills/_archive_old_skills/qk-database-engineer/SKILL.md +104 -0
- package/.qk-ai-skill-os/skills/_archive_old_skills/qk-deployment/SKILL.md +96 -0
- package/.qk-ai-skill-os/skills/_archive_old_skills/qk-design-system/SKILL.md +137 -0
- package/.qk-ai-skill-os/skills/_archive_old_skills/qk-form-builder/SKILL.md +140 -0
- package/.qk-ai-skill-os/skills/_archive_old_skills/qk-frontend-architecture/SKILL.md +155 -0
- package/.qk-ai-skill-os/skills/_archive_old_skills/qk-frontend-debug/SKILL.md +133 -0
- package/.qk-ai-skill-os/skills/_archive_old_skills/qk-frontend-performance/SKILL.md +129 -0
- package/.qk-ai-skill-os/skills/_archive_old_skills/qk-frontend-testing/SKILL.md +146 -0
- package/.qk-ai-skill-os/skills/_archive_old_skills/qk-git-engineer/SKILL.md +304 -0
- package/.qk-ai-skill-os/skills/_archive_old_skills/qk-help/SKILL.md +68 -0
- package/.qk-ai-skill-os/skills/_archive_old_skills/qk-migration/SKILL.md +284 -0
- package/.qk-ai-skill-os/skills/_archive_old_skills/qk-project-audit/SKILL.md +280 -0
- package/.qk-ai-skill-os/skills/_archive_old_skills/qk-refactor/SKILL.md +222 -0
- package/.qk-ai-skill-os/skills/_archive_old_skills/qk-state-management/SKILL.md +140 -0
- package/.qk-ai-skill-os/skills/_archive_old_skills/qk-table-crud-generator/SKILL.md +127 -0
- package/.qk-ai-skill-os/skills/_archive_old_skills/qk-ui-builder/SKILL.md +152 -0
- package/.qk-ai-skill-os/skills/_template/SKILL.md +238 -0
- package/.qk-ai-skill-os/skills/qk-access-policy/SKILL.md +179 -0
- package/.qk-ai-skill-os/skills/qk-ai-builder/SKILL.md +221 -0
- package/.qk-ai-skill-os/skills/qk-api-lifecycle/SKILL.md +176 -0
- package/.qk-ai-skill-os/skills/qk-bug-resolution/SKILL.md +307 -0
- package/.qk-ai-skill-os/skills/qk-context-loader/SKILL.md +218 -0
- package/.qk-ai-skill-os/skills/qk-data-lifecycle/SKILL.md +192 -0
- package/.qk-ai-skill-os/skills/qk-db-optimizer/SKILL.md +196 -0
- package/.qk-ai-skill-os/skills/qk-design-to-code/SKILL.md +291 -0
- package/.qk-ai-skill-os/skills/qk-docs/SKILL.md +198 -0
- package/.qk-ai-skill-os/skills/qk-engineering-standard/SKILL.md +351 -0
- package/.qk-ai-skill-os/skills/qk-engineering-standard/rules/backend.md +122 -0
- package/.qk-ai-skill-os/skills/qk-engineering-standard/rules/database.md +3 -0
- package/.qk-ai-skill-os/skills/qk-engineering-standard/rules/frontend.md +152 -0
- package/.qk-ai-skill-os/skills/qk-engineering-standard/rules/security.md +3 -0
- package/.qk-ai-skill-os/skills/qk-engineering-standard/rules/testing.md +3 -0
- package/.qk-ai-skill-os/skills/qk-fe-api-integration/SKILL.md +326 -0
- package/.qk-ai-skill-os/skills/qk-feature-delivery/SKILL.md +305 -0
- package/.qk-ai-skill-os/skills/qk-help/SKILL.md +193 -0
- package/.qk-ai-skill-os/skills/qk-orchestrator/SKILL.md +277 -0
- package/.qk-ai-skill-os/skills/qk-orchestrator/references/routing-table.md +77 -0
- package/.qk-ai-skill-os/skills/qk-production-release/SKILL.md +290 -0
- package/.qk-ai-skill-os/skills/qk-project-bootstrap/SKILL.md +240 -0
- package/.qk-ai-skill-os/skills/qk-project-health/SKILL.md +199 -0
- package/.qk-ai-skill-os/skills/qk-project-memory/SKILL.md +172 -0
- package/.qk-ai-skill-os/skills/qk-system-evolution/SKILL.md +285 -0
- package/.qk-ai-skill-os/skills/qk-ui-audit/SKILL.md +314 -0
- package/.qk-ai-skill-os/skills/qk-ui-audit/references/anti-slop-checklist.md +136 -0
- package/.qk-ai-skill-os/skills/qk-ui-system-builder/SKILL.md +225 -0
- package/.qk-ai-skill-os/skills/qk-validation-gate/SKILL.md +361 -0
- package/.qk-ai-skill-os/skills.json +819 -0
- package/CLAUDE.md +110 -0
- package/README.md +25 -3
- package/add_lang.js +21 -0
- package/add_lang.py +25 -0
- package/add_sections.py +53 -0
- package/bin/install.js +225 -170
- package/bin/lint.js +122 -0
- package/docs/CHI_TIET_SKILLS.md +26 -26
- package/docs/HUONG_DAN_SU_DUNG.md +3 -3
- package/docs/SPEC.md +70 -20
- package/framework/skill-schema.md +310 -0
- package/package.json +15 -4
- package/patch.js +15 -0
- package/patch.py +89 -0
- package/patch2.py +83 -0
- package/skills/_archive_old_skills/qk-accessibility-audit/SKILL.md +1 -0
- package/skills/_archive_old_skills/qk-agent-orchestrator/SKILL.md +1 -0
- package/skills/_archive_old_skills/qk-api-integration/SKILL.md +1 -0
- package/skills/_archive_old_skills/qk-auth-security/SKILL.md +1 -0
- package/skills/_archive_old_skills/qk-backend-architecture/SKILL.md +1 -0
- package/skills/_archive_old_skills/qk-bug-fix/SKILL.md +1 -0
- package/skills/_archive_old_skills/qk-component-generator/SKILL.md +1 -0
- package/skills/_archive_old_skills/qk-context-manager/SKILL.md +1 -0
- package/skills/_archive_old_skills/qk-database-engineer/SKILL.md +1 -0
- package/skills/_archive_old_skills/qk-deployment/SKILL.md +1 -0
- package/skills/_archive_old_skills/qk-design-system/SKILL.md +1 -0
- package/skills/_archive_old_skills/qk-form-builder/SKILL.md +1 -0
- package/skills/_archive_old_skills/qk-frontend-architecture/SKILL.md +1 -0
- package/skills/_archive_old_skills/qk-frontend-debug/SKILL.md +1 -0
- package/skills/_archive_old_skills/qk-frontend-performance/SKILL.md +1 -0
- package/skills/_archive_old_skills/qk-frontend-testing/SKILL.md +1 -0
- package/skills/_archive_old_skills/qk-git-engineer/SKILL.md +1 -0
- package/skills/_archive_old_skills/qk-help/SKILL.md +1 -0
- package/skills/_archive_old_skills/qk-migration/SKILL.md +1 -0
- package/skills/_archive_old_skills/qk-project-audit/SKILL.md +1 -0
- package/skills/_archive_old_skills/qk-refactor/SKILL.md +1 -0
- package/skills/_archive_old_skills/qk-state-management/SKILL.md +1 -0
- package/skills/_archive_old_skills/qk-table-crud-generator/SKILL.md +1 -0
- package/skills/_archive_old_skills/qk-ui-builder/SKILL.md +1 -0
- package/skills/_template/SKILL.md +238 -0
- package/skills/qk-access-policy/SKILL.md +179 -39
- package/skills/qk-ai-builder/SKILL.md +215 -40
- package/skills/qk-api-lifecycle/SKILL.md +176 -46
- package/skills/qk-bug-resolution/SKILL.md +307 -46
- package/skills/qk-context-loader/SKILL.md +218 -43
- package/skills/qk-data-lifecycle/SKILL.md +192 -44
- package/skills/qk-db-optimizer/SKILL.md +196 -41
- package/skills/qk-design-to-code/SKILL.md +285 -46
- package/skills/qk-docs/SKILL.md +198 -40
- package/skills/qk-engineering-standard/SKILL.md +351 -42
- package/skills/qk-fe-api-integration/SKILL.md +326 -55
- package/skills/qk-feature-delivery/SKILL.md +305 -48
- package/skills/qk-help/SKILL.md +178 -23
- package/skills/qk-orchestrator/SKILL.md +277 -42
- package/skills/qk-orchestrator/references/routing-table.md +77 -0
- package/skills/qk-production-release/SKILL.md +284 -41
- package/skills/qk-project-bootstrap/SKILL.md +234 -38
- package/skills/qk-project-health/SKILL.md +199 -40
- package/skills/qk-project-memory/SKILL.md +172 -40
- package/skills/qk-system-evolution/SKILL.md +281 -40
- package/skills/qk-ui-audit/SKILL.md +314 -42
- package/skills/qk-ui-audit/references/anti-slop-checklist.md +136 -0
- package/skills/qk-ui-system-builder/SKILL.md +221 -43
- package/skills/qk-validation-gate/SKILL.md +359 -40
- package/skills.json +813 -824
- package/specs/fixtures/user-payload.json +12 -0
- package/specs/regressions/api-integration-null-fields.yaml +19 -0
- package/temp_fix.js +61 -0
- package/tests/registry.test.js +1 -1
- package/update_template.js +28 -0
- package/skills/qk-policy-engine/SKILL.md +0 -39
|
@@ -0,0 +1,305 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: qk-feature-delivery
|
|
3
|
+
category: fullstack
|
|
4
|
+
version: 7.5.0
|
|
5
|
+
description: "Phát triển tính năng mới end-to-end: Requirements → Context → Design → Implement → Self-audit."
|
|
6
|
+
platforms: [antigravity, claude-code, cursor, windsurf, kilo-code]
|
|
7
|
+
execution_mode: deterministic
|
|
8
|
+
|
|
9
|
+
cost: high
|
|
10
|
+
latency: slow
|
|
11
|
+
risk: medium
|
|
12
|
+
side_effects: edit_files
|
|
13
|
+
produces: [code, report]
|
|
14
|
+
consumes: [context-graph, design-md, user-description]
|
|
15
|
+
|
|
16
|
+
token_budget:
|
|
17
|
+
max_files_read: 5
|
|
18
|
+
max_lines_per_read: 150
|
|
19
|
+
max_shell_commands: 2
|
|
20
|
+
stop_early: false
|
|
21
|
+
|
|
22
|
+
exit_codes: [SUCCESS, BLOCKED, FAILED, PARTIAL]
|
|
23
|
+
skill_version: 7.5.0
|
|
24
|
+
runtime_version: 1
|
|
25
|
+
schema_version: 2
|
|
26
|
+
---
|
|
27
|
+
|
|
28
|
+
# qk-feature-delivery — End-to-End Feature Builder
|
|
29
|
+
|
|
30
|
+
> **Language rule:** Code, identifiers, file names → English. Explanations, summaries → Vietnamese.
|
|
31
|
+
|
|
32
|
+
---
|
|
33
|
+
|
|
34
|
+
## Preconditions
|
|
35
|
+
- [ ] Feature requirement is specific enough to implement (not just "add something")
|
|
36
|
+
- [ ] `DESIGN.md` exists with required tokens if UI work is involved (colors, spacing, typography)
|
|
37
|
+
- [ ] Context graph available OR `qk-context-loader` run first (for logic work)
|
|
38
|
+
|
|
39
|
+
```
|
|
40
|
+
On missing precondition:
|
|
41
|
+
EXIT: BLOCKED
|
|
42
|
+
Message: "[Precondition] missing. See Escalation Rules."
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
---
|
|
46
|
+
|
|
47
|
+
## Scope
|
|
48
|
+
- ✅ Deliver a complete, verifiable feature end-to-end (FE + BE + API)
|
|
49
|
+
- ✅ Adhere to project architecture from context graph
|
|
50
|
+
- ✅ Adhere to DESIGN.md for any UI components
|
|
51
|
+
- ✅ Self-audit before marking done
|
|
52
|
+
|
|
53
|
+
## Non-Goals
|
|
54
|
+
- ❌ Mix refactoring into feature work
|
|
55
|
+
- ❌ Add dependencies without asking user first
|
|
56
|
+
- ❌ Emit generic AI-slop UI or unverified logic
|
|
57
|
+
- ❌ Ignore backward compatibility on existing APIs
|
|
58
|
+
- ❌ Proceed with ambiguous requirements without user confirmation
|
|
59
|
+
- ❌ Break existing API contracts — version or deprecate instead
|
|
60
|
+
|
|
61
|
+
---
|
|
62
|
+
|
|
63
|
+
## Priority Order
|
|
64
|
+
|
|
65
|
+
| Priority | Task | Skip Threshold |
|
|
66
|
+
|----------|------|----------------|
|
|
67
|
+
| P1 | Core feature logic (happy path) | Never |
|
|
68
|
+
| P2 | Error/loading/empty UI states | Budget < 30% |
|
|
69
|
+
| P3 | Edge cases and validation | Budget < 50% |
|
|
70
|
+
| P4 | Regression prevention (existing tests) | Budget < 60% |
|
|
71
|
+
| P5 | Backend contract validation (API schema, DB migrations) | Budget < 60% |
|
|
72
|
+
| P6 | Documentation + comments | Budget < 70% |
|
|
73
|
+
|
|
74
|
+
---
|
|
75
|
+
|
|
76
|
+
## Workflow
|
|
77
|
+
|
|
78
|
+
### Phase 1 — Requirements Clarification
|
|
79
|
+
|
|
80
|
+
**Steps:**
|
|
81
|
+
1. Parse user request → extract: what, where, acceptance criteria
|
|
82
|
+
2. Check ambiguity: Can I implement this without assumptions?
|
|
83
|
+
|
|
84
|
+
**Decision:**
|
|
85
|
+
```
|
|
86
|
+
IF requirements are specific (what + where + expected behavior)
|
|
87
|
+
→ Confidence: HIGH → go to Phase 2
|
|
88
|
+
|
|
89
|
+
ELSE IF 1–2 ambiguous points
|
|
90
|
+
→ ASK USER clarifying questions
|
|
91
|
+
→ Confidence: MEDIUM → WAIT for user response
|
|
92
|
+
→ Do NOT proceed to Phase 2 until clarified
|
|
93
|
+
|
|
94
|
+
ELSE IF core requirement unclear
|
|
95
|
+
→ EXIT: BLOCKED — ask clarifying questions
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
**Exit When:**
|
|
99
|
+
- Requirements understood → go to Phase 2
|
|
100
|
+
|
|
101
|
+
---
|
|
102
|
+
|
|
103
|
+
### Phase 2 — Context Loading
|
|
104
|
+
|
|
105
|
+
**Steps:**
|
|
106
|
+
1. If logic work: read context graph from `qk-context-loader` output
|
|
107
|
+
2. Identify: entry point, affected modules, existing patterns to reuse
|
|
108
|
+
3. If UI work: read `DESIGN.md` → extract tokens for this component
|
|
109
|
+
4. Document rollback plan — which files to revert if feature fails
|
|
110
|
+
|
|
111
|
+
**Decision:**
|
|
112
|
+
```
|
|
113
|
+
IF context graph available
|
|
114
|
+
→ Use it, proceed to Phase 3
|
|
115
|
+
|
|
116
|
+
ELSE IF no context graph but simple task
|
|
117
|
+
→ Simple task = modifies ≤ 1 file, no new dependencies, no new API contracts
|
|
118
|
+
→ grep_search for entry point → minimal manual map
|
|
119
|
+
→ Confidence: MEDIUM → proceed to Phase 3
|
|
120
|
+
|
|
121
|
+
ELSE IF complex task without context graph
|
|
122
|
+
→ EXIT: BLOCKED — run qk-context-loader first
|
|
123
|
+
```
|
|
124
|
+
|
|
125
|
+
---
|
|
126
|
+
|
|
127
|
+
### Phase 3 — Implementation
|
|
128
|
+
|
|
129
|
+
**Steps (in order):**
|
|
130
|
+
1. Create/modify files using `replace_file_content` / `multi_replace_file_content`
|
|
131
|
+
2. Follow existing code patterns (from context graph)
|
|
132
|
+
3. For UI: use DESIGN.md tokens only — no hardcoded colors/sizes
|
|
133
|
+
4. Implement backend error handling: try/catch, transaction rollback, input validation
|
|
134
|
+
5. Handle all 3 UI states: Loading + Success + Error
|
|
135
|
+
|
|
136
|
+
**Exit When:**
|
|
137
|
+
- Happy path implemented → go to Phase 4
|
|
138
|
+
- Blocked by missing dependency → EXIT: BLOCKED, ask user
|
|
139
|
+
|
|
140
|
+
---
|
|
141
|
+
|
|
142
|
+
### Phase 4 — Self-Audit
|
|
143
|
+
|
|
144
|
+
**Steps:**
|
|
145
|
+
1. Re-read the code written (targeted view, ≤ 150 lines)
|
|
146
|
+
2. Check against: backward compat, DESIGN.md compliance, error states
|
|
147
|
+
3. Verify test coverage meets project threshold (default: ≥ 80%)
|
|
148
|
+
|
|
149
|
+
**Decision:**
|
|
150
|
+
```
|
|
151
|
+
IF all checks pass
|
|
152
|
+
→ EXIT: SUCCESS
|
|
153
|
+
|
|
154
|
+
ELSE IF minor issues found (missing error state, style token)
|
|
155
|
+
→ Fix immediately, EXIT: SUCCESS
|
|
156
|
+
|
|
157
|
+
ELSE IF significant issue (breaks existing API, wrong architecture)
|
|
158
|
+
→ Fix, note change in output, EXIT: FAILED — do not ship breaking changes as PARTIAL
|
|
159
|
+
|
|
160
|
+
ELSE IF missing backend error handling
|
|
161
|
+
→ Fix immediately, EXIT: SUCCESS
|
|
162
|
+
```
|
|
163
|
+
|
|
164
|
+
---
|
|
165
|
+
|
|
166
|
+
## Confidence Model
|
|
167
|
+
|
|
168
|
+
| Level | Condition | Action |
|
|
169
|
+
|-------|-----------|--------|
|
|
170
|
+
| HIGH | Context graph available, DESIGN.md read, requirements clear | Implement directly |
|
|
171
|
+
| MEDIUM | Some assumptions made (≤ 2) | Note assumptions in output |
|
|
172
|
+
| LOW | Unclear requirements or missing context OR assumptions > 2 | EXIT: BLOCKED |
|
|
173
|
+
|
|
174
|
+
---
|
|
175
|
+
|
|
176
|
+
## Severity (for self-audit findings)
|
|
177
|
+
|
|
178
|
+
| Level | Definition |
|
|
179
|
+
|-------|-----------|
|
|
180
|
+
| CRITICAL | Feature breaks existing functionality |
|
|
181
|
+
| HIGH | Missing required states (error/loading) or missing backend error handling |
|
|
182
|
+
| MEDIUM | Not following DESIGN.md or project patterns |
|
|
183
|
+
| LOW | Missing comments or minor style issue |
|
|
184
|
+
|
|
185
|
+
---
|
|
186
|
+
|
|
187
|
+
## Evidence Format (Self-Audit)
|
|
188
|
+
|
|
189
|
+
```
|
|
190
|
+
[SEVERITY] path/to/file.ts:LINE
|
|
191
|
+
Issue: [what was found]
|
|
192
|
+
Confidence: HIGH
|
|
193
|
+
Fix: [applied immediately OR noted for follow-up]
|
|
194
|
+
```
|
|
195
|
+
|
|
196
|
+
---
|
|
197
|
+
|
|
198
|
+
## Escalation Rules
|
|
199
|
+
|
|
200
|
+
```
|
|
201
|
+
BLOCKED: [specific reason]
|
|
202
|
+
Missing:
|
|
203
|
+
- [What's needed — context graph / DESIGN.md / clear requirements]
|
|
204
|
+
Questions:
|
|
205
|
+
1. [Specific clarifying question]
|
|
206
|
+
2. [Second question if needed]
|
|
207
|
+
Recommended Assumptions (if proceeding):
|
|
208
|
+
- [Safe assumption 1]
|
|
209
|
+
- [Safe assumption 2 — note these will be in output]
|
|
210
|
+
```
|
|
211
|
+
|
|
212
|
+
---
|
|
213
|
+
|
|
214
|
+
## Handoff Contract
|
|
215
|
+
|
|
216
|
+
### Consumes
|
|
217
|
+
```json
|
|
218
|
+
{
|
|
219
|
+
"from": "qk-context-loader + user",
|
|
220
|
+
"required_fields": ["feature_description", "context_graph"],
|
|
221
|
+
"optional_fields": ["design_md_path", "acceptance_criteria"]
|
|
222
|
+
}
|
|
223
|
+
```
|
|
224
|
+
|
|
225
|
+
### Produces
|
|
226
|
+
```json
|
|
227
|
+
{
|
|
228
|
+
"to": "qk-validation-gate",
|
|
229
|
+
"output_fields": ["changed_files", "assumptions_made", "self_audit_result", "exit_code"]
|
|
230
|
+
}
|
|
231
|
+
```
|
|
232
|
+
|
|
233
|
+
---
|
|
234
|
+
|
|
235
|
+
## Output Format
|
|
236
|
+
|
|
237
|
+
```
|
|
238
|
+
🚀 Feature Delivery
|
|
239
|
+
─────────────────────────────────────────────────
|
|
240
|
+
Feature: [feature name]
|
|
241
|
+
Confidence: [HIGH | MEDIUM]
|
|
242
|
+
|
|
243
|
+
Implementation:
|
|
244
|
+
✅ [file:line — what was added/changed]
|
|
245
|
+
✅ [file:line — what was added/changed]
|
|
246
|
+
|
|
247
|
+
Assumptions made:
|
|
248
|
+
- [assumption 1 — safe/risky]
|
|
249
|
+
|
|
250
|
+
Self-Audit:
|
|
251
|
+
✅ Backward compatible
|
|
252
|
+
✅ Error/Loading states handled
|
|
253
|
+
✅ DESIGN.md tokens used
|
|
254
|
+
✅ Backend error handling implemented
|
|
255
|
+
⚠️ [Any noted issue]
|
|
256
|
+
|
|
257
|
+
Exit Code: [SUCCESS | PARTIAL | BLOCKED | FAILED]
|
|
258
|
+
```
|
|
259
|
+
|
|
260
|
+
---
|
|
261
|
+
|
|
262
|
+
## Exit Codes
|
|
263
|
+
|
|
264
|
+
| Code | Meaning | When |
|
|
265
|
+
|------|---------|------|
|
|
266
|
+
| SUCCESS | Feature complete, self-audit passed | All states handled, patterns followed |
|
|
267
|
+
| PARTIAL | Feature works but with minor gaps | Medium confidence, some skipped |
|
|
268
|
+
| BLOCKED | Cannot proceed — missing context/design/requirements | Stop and ask user |
|
|
269
|
+
| FAILED | Cannot implement — breaks existing system | Architectural conflict or API break |
|
|
270
|
+
|
|
271
|
+
---
|
|
272
|
+
|
|
273
|
+
Deliver a complete, verifiable feature end-to-end (FE + BE + API) while adhering to project architecture and DESIGN.md.
|
|
274
|
+
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.
|
|
275
|
+
- Feature description with acceptance criteria
|
|
276
|
+
- Context graph (from qk-context-loader)
|
|
277
|
+
- DESIGN.md path (if UI involved)
|
|
278
|
+
- Existing codebase patterns
|
|
279
|
+
- User approval for new dependencies
|
|
280
|
+
1. **Clarify:** Parse requirements, identify ambiguities, ask user if needed
|
|
281
|
+
2. **Load:** Read context graph and DESIGN.md tokens
|
|
282
|
+
3. **Implement:** Build feature following existing patterns
|
|
283
|
+
4. **Audit:** Self-audit for backward compat, error states, DESIGN.md compliance
|
|
284
|
+
- MUST have context graph OR explicit confirmation for simple tasks
|
|
285
|
+
- MUST have DESIGN.md tokens if UI is involved
|
|
286
|
+
- MUST handle all 3 UI states: Loading, Success, Error
|
|
287
|
+
- MUST NOT exceed token_budget (max 5 files, 150 lines each, 2 shell commands)
|
|
288
|
+
- MUST NOT break existing API contracts without versioning
|
|
289
|
+
- Zero-Trust: No assumptions without user confirmation
|
|
290
|
+
- Backward Compat: Never break existing public APIs
|
|
291
|
+
- Design First: UI must use DESIGN.md tokens only
|
|
292
|
+
- Error Handling: Backend must have try/catch, validation, rollback
|
|
293
|
+
## Retry Policy
|
|
294
|
+
```
|
|
295
|
+
Fix applied
|
|
296
|
+
└─ Static verification (re-read fixed section)
|
|
297
|
+
├─ PASS → EXIT: SUCCESS
|
|
298
|
+
└─ Issue detected → attempt 1 correction
|
|
299
|
+
└─ Re-verify
|
|
300
|
+
├─ PASS → EXIT: SUCCESS
|
|
301
|
+
└─ FAIL → EXIT: PARTIAL + report both attempts
|
|
302
|
+
└─ Do NOT attempt 3rd fix — ESCALATE to user
|
|
303
|
+
```
|
|
304
|
+
|
|
305
|
+
---
|
|
@@ -0,0 +1,193 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: qk-help
|
|
3
|
+
category: utilities
|
|
4
|
+
version: 7.5.0
|
|
5
|
+
description: "Hiển thị danh sách skills V7.5 và hướng dẫn dùng lệnh ./qk-[skill-name]."
|
|
6
|
+
platforms: [antigravity, claude-code, cursor, windsurf, kilo-code]
|
|
7
|
+
execution_mode: deterministic
|
|
8
|
+
|
|
9
|
+
cost: low
|
|
10
|
+
latency: fast
|
|
11
|
+
risk: low
|
|
12
|
+
side_effects: none
|
|
13
|
+
produces: [report]
|
|
14
|
+
consumes: [none]
|
|
15
|
+
|
|
16
|
+
token_budget:
|
|
17
|
+
max_files_read: 0
|
|
18
|
+
max_lines_per_read: 0
|
|
19
|
+
max_shell_commands: 0
|
|
20
|
+
stop_early: true
|
|
21
|
+
|
|
22
|
+
exit_codes: [SUCCESS]
|
|
23
|
+
skill_version: 7.5.0
|
|
24
|
+
runtime_version: 1
|
|
25
|
+
schema_version: 2
|
|
26
|
+
---
|
|
27
|
+
|
|
28
|
+
# qk-help — Skill Directory V7.5
|
|
29
|
+
|
|
30
|
+
> **Language rule:** Code, identifiers, file names → English. Explanations, summaries → Vietnamese.
|
|
31
|
+
|
|
32
|
+
When triggered, display this reference and exit with SUCCESS.
|
|
33
|
+
|
|
34
|
+
---
|
|
35
|
+
|
|
36
|
+
## Scope
|
|
37
|
+
- ✅ Display available skills and their purposes
|
|
38
|
+
- ✅ Show common pipelines and best practices
|
|
39
|
+
- ✅ Provide quick reference for skill commands
|
|
40
|
+
|
|
41
|
+
## Non-Goals
|
|
42
|
+
- ❌ Execute any skill — only display information
|
|
43
|
+
- ❌ Modify project files or configuration
|
|
44
|
+
- ❌ Answer questions outside the skill system
|
|
45
|
+
|
|
46
|
+
---
|
|
47
|
+
|
|
48
|
+
## Preconditions
|
|
49
|
+
- [ ] User requests help or list of skills
|
|
50
|
+
|
|
51
|
+
```
|
|
52
|
+
On missing precondition:
|
|
53
|
+
EXIT: BLOCKED
|
|
54
|
+
Message: "Vui lòng hỏi trợ giúp hoặc liệt kê skills."
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
---
|
|
58
|
+
|
|
59
|
+
## Scope
|
|
60
|
+
- ✅ Display available skills and their purposes
|
|
61
|
+
- ✅ Show common pipelines and best practices
|
|
62
|
+
- ✅ Provide quick reference for skill commands
|
|
63
|
+
|
|
64
|
+
## Non-Goals
|
|
65
|
+
- ❌ Execute any skill — only display information
|
|
66
|
+
- ❌ Modify project files or configuration
|
|
67
|
+
- ❌ Answer questions outside the skill system
|
|
68
|
+
|
|
69
|
+
---
|
|
70
|
+
|
|
71
|
+
## Priority Order
|
|
72
|
+
|
|
73
|
+
| Priority | Task | Skip Threshold |
|
|
74
|
+
|----------|------|----------------|
|
|
75
|
+
| P1 | List all available skills | Never |
|
|
76
|
+
| P2 | Show common pipelines | Never |
|
|
77
|
+
| P3 | Provide usage examples | Never |
|
|
78
|
+
|
|
79
|
+
---
|
|
80
|
+
|
|
81
|
+
## Workflow
|
|
82
|
+
|
|
83
|
+
### Phase 1 — Display Skills
|
|
84
|
+
|
|
85
|
+
**Steps:**
|
|
86
|
+
1. Read `skills.json` to get active skill list
|
|
87
|
+
2. Format as table: Command | Purpose | Cost
|
|
88
|
+
3. Display common pipelines
|
|
89
|
+
|
|
90
|
+
**Exit When:**
|
|
91
|
+
- Help displayed → EXIT: SUCCESS
|
|
92
|
+
|
|
93
|
+
---
|
|
94
|
+
|
|
95
|
+
## Confidence Model
|
|
96
|
+
|
|
97
|
+
| Level | Condition | Action |
|
|
98
|
+
|-------|-----------|--------|
|
|
99
|
+
| HIGH | skills.json readable | Display directly |
|
|
100
|
+
| MEDIUM | skills.json partially readable | Display what's available |
|
|
101
|
+
| LOW | Cannot access skills.json | EXIT: BLOCKED |
|
|
102
|
+
|
|
103
|
+
---
|
|
104
|
+
|
|
105
|
+
## Severity
|
|
106
|
+
|
|
107
|
+
| Level | Definition | Example |
|
|
108
|
+
|-------|-----------|---------|
|
|
109
|
+
| CRITICAL | N/A — this skill is read-only | — |
|
|
110
|
+
| HIGH | N/A — this skill is read-only | — |
|
|
111
|
+
| MEDIUM | N/A — this skill is read-only | — |
|
|
112
|
+
| LOW | N/A — this skill is read-only | — |
|
|
113
|
+
|
|
114
|
+
---
|
|
115
|
+
|
|
116
|
+
## Evidence Format
|
|
117
|
+
|
|
118
|
+
```
|
|
119
|
+
[INFO] qk-help
|
|
120
|
+
Message: [help content displayed]
|
|
121
|
+
Confidence: HIGH
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
---
|
|
125
|
+
|
|
126
|
+
## Retry Policy
|
|
127
|
+
|
|
128
|
+
```
|
|
129
|
+
Display fails
|
|
130
|
+
└─ Check if skills.json is accessible
|
|
131
|
+
├─ Accessible → retry display
|
|
132
|
+
└─ Not accessible → EXIT: BLOCKED
|
|
133
|
+
```
|
|
134
|
+
|
|
135
|
+
---
|
|
136
|
+
|
|
137
|
+
## Escalation Rules
|
|
138
|
+
|
|
139
|
+
```
|
|
140
|
+
BLOCKED: Cannot access skills.json
|
|
141
|
+
Missing:
|
|
142
|
+
- skills.json file
|
|
143
|
+
Questions:
|
|
144
|
+
1. Bạn cần hỗ trợ gì? (liệt kê skills / hướng dẫn dùng)
|
|
145
|
+
```
|
|
146
|
+
|
|
147
|
+
---
|
|
148
|
+
|
|
149
|
+
## Handoff Contract
|
|
150
|
+
|
|
151
|
+
### Consumes
|
|
152
|
+
```json
|
|
153
|
+
{
|
|
154
|
+
"from": "user",
|
|
155
|
+
"required_fields": ["help_request"],
|
|
156
|
+
"optional_fields": ["specific_skill"]
|
|
157
|
+
}
|
|
158
|
+
```
|
|
159
|
+
|
|
160
|
+
### Produces
|
|
161
|
+
```json
|
|
162
|
+
{
|
|
163
|
+
"to": "user",
|
|
164
|
+
"output_fields": ["skill_list", "pipelines", "usage_examples"],
|
|
165
|
+
"exit_code": "SUCCESS"
|
|
166
|
+
}
|
|
167
|
+
```
|
|
168
|
+
|
|
169
|
+
---
|
|
170
|
+
|
|
171
|
+
## Output Format
|
|
172
|
+
|
|
173
|
+
```
|
|
174
|
+
📚 Help — Available Skills
|
|
175
|
+
─────────────────────────────────────────────────
|
|
176
|
+
[table of skills]
|
|
177
|
+
|
|
178
|
+
Common Pipelines:
|
|
179
|
+
[common workflows]
|
|
180
|
+
|
|
181
|
+
Exit Code: SUCCESS
|
|
182
|
+
```
|
|
183
|
+
|
|
184
|
+
---
|
|
185
|
+
|
|
186
|
+
## Exit Codes
|
|
187
|
+
|
|
188
|
+
| Code | Meaning | When |
|
|
189
|
+
|------|---------|------|
|
|
190
|
+
| SUCCESS | Help displayed successfully | Normal completion |
|
|
191
|
+
| BLOCKED | Cannot access skills.json | Setup required |
|
|
192
|
+
|
|
193
|
+
---
|