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,117 +1,241 @@
|
|
|
1
|
-
---
|
|
2
|
-
# ── Identity ───────────────────────────────────────────────
|
|
3
|
-
name: qk-devops-platform
|
|
4
|
-
version: 8.
|
|
5
|
-
status: experimental
|
|
6
|
-
description: "Kỹ sư nền tảng: Chiến lược CI/CD, kiến trúc triển khai, quản lý môi trường và chiến lược rollback."
|
|
7
|
-
platforms: [antigravity, claude-code, cursor, windsurf, kilo-code]
|
|
8
|
-
|
|
9
|
-
# ── V8: Classification ─────────────────────────────────────
|
|
10
|
-
type: capability
|
|
11
|
-
|
|
12
|
-
intent:
|
|
13
|
-
- devops-strategy
|
|
14
|
-
- cicd-pipeline
|
|
15
|
-
- deployment-architecture
|
|
16
|
-
- environment-management
|
|
17
|
-
|
|
18
|
-
complexity:
|
|
19
|
-
level: high
|
|
20
|
-
criteria:
|
|
21
|
-
files_affected: "1-5"
|
|
22
|
-
has_behavior_change: true
|
|
23
|
-
has_external_dependency: true
|
|
24
|
-
has_breaking_change: false
|
|
25
|
-
|
|
26
|
-
triggers:
|
|
27
|
-
- "cấu hình ci/cd"
|
|
28
|
-
- "deployment strategy"
|
|
29
|
-
- "quản lý môi trường"
|
|
30
|
-
- "devops platform"
|
|
31
|
-
- "dockerize"
|
|
32
|
-
|
|
33
|
-
# ── V8: References ─────────────────────────────────────────
|
|
34
|
-
workflow: feature-delivery
|
|
35
|
-
|
|
36
|
-
rules:
|
|
37
|
-
- global
|
|
38
|
-
- coding
|
|
39
|
-
- security
|
|
40
|
-
|
|
41
|
-
tools:
|
|
42
|
-
- filesystem
|
|
43
|
-
- terminal
|
|
44
|
-
|
|
45
|
-
related_skills:
|
|
46
|
-
- qk-production-release
|
|
47
|
-
- qk-security-audit
|
|
48
|
-
|
|
49
|
-
knowledge_scope:
|
|
50
|
-
domain:
|
|
51
|
-
- devops
|
|
52
|
-
- platform-engineering
|
|
53
|
-
- cloud-infrastructure
|
|
54
|
-
concepts:
|
|
55
|
-
- continuous-integration
|
|
56
|
-
- continuous-deployment
|
|
57
|
-
- containerization
|
|
58
|
-
- rollback-strategy
|
|
59
|
-
references:
|
|
60
|
-
- architecture
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
-
|
|
67
|
-
-
|
|
68
|
-
|
|
69
|
-
-
|
|
70
|
-
|
|
71
|
-
-
|
|
72
|
-
|
|
73
|
-
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
-
|
|
116
|
-
-
|
|
117
|
-
-
|
|
1
|
+
---
|
|
2
|
+
# ── Identity ───────────────────────────────────────────────
|
|
3
|
+
name: qk-devops-platform
|
|
4
|
+
version: 8.3.1
|
|
5
|
+
status: experimental
|
|
6
|
+
description: "Kỹ sư nền tảng: Chiến lược CI/CD, kiến trúc triển khai, quản lý môi trường và chiến lược rollback."
|
|
7
|
+
platforms: [antigravity, claude-code, cursor, windsurf, kilo-code]
|
|
8
|
+
|
|
9
|
+
# ── V8: Classification ─────────────────────────────────────
|
|
10
|
+
type: capability
|
|
11
|
+
|
|
12
|
+
intent:
|
|
13
|
+
- devops-strategy
|
|
14
|
+
- cicd-pipeline
|
|
15
|
+
- deployment-architecture
|
|
16
|
+
- environment-management
|
|
17
|
+
|
|
18
|
+
complexity:
|
|
19
|
+
level: high
|
|
20
|
+
criteria:
|
|
21
|
+
files_affected: "1-5"
|
|
22
|
+
has_behavior_change: true
|
|
23
|
+
has_external_dependency: true
|
|
24
|
+
has_breaking_change: false
|
|
25
|
+
|
|
26
|
+
triggers:
|
|
27
|
+
- "cấu hình ci/cd"
|
|
28
|
+
- "deployment strategy"
|
|
29
|
+
- "quản lý môi trường"
|
|
30
|
+
- "devops platform"
|
|
31
|
+
- "dockerize"
|
|
32
|
+
|
|
33
|
+
# ── V8: References ─────────────────────────────────────────
|
|
34
|
+
workflow: feature-delivery
|
|
35
|
+
|
|
36
|
+
rules:
|
|
37
|
+
- global
|
|
38
|
+
- coding
|
|
39
|
+
- security
|
|
40
|
+
|
|
41
|
+
tools:
|
|
42
|
+
- filesystem
|
|
43
|
+
- terminal
|
|
44
|
+
|
|
45
|
+
related_skills:
|
|
46
|
+
- qk-production-release
|
|
47
|
+
- qk-security-audit
|
|
48
|
+
|
|
49
|
+
knowledge_scope:
|
|
50
|
+
domain:
|
|
51
|
+
- devops
|
|
52
|
+
- platform-engineering
|
|
53
|
+
- cloud-infrastructure
|
|
54
|
+
concepts:
|
|
55
|
+
- continuous-integration
|
|
56
|
+
- continuous-deployment
|
|
57
|
+
- containerization
|
|
58
|
+
- rollback-strategy
|
|
59
|
+
references:
|
|
60
|
+
- architecture
|
|
61
|
+
- security
|
|
62
|
+
- anti-patterns
|
|
63
|
+
|
|
64
|
+
decision_boundary:
|
|
65
|
+
owns:
|
|
66
|
+
- CI/CD strategy
|
|
67
|
+
- deployment architecture
|
|
68
|
+
- environment management
|
|
69
|
+
- rollback strategy
|
|
70
|
+
does_not_own:
|
|
71
|
+
- application code
|
|
72
|
+
- cloud billing
|
|
73
|
+
- releasing features
|
|
74
|
+
conflicts_with:
|
|
75
|
+
- qk-production-release
|
|
76
|
+
|
|
77
|
+
# ── V8: Verification ───────────────────────────────────────
|
|
78
|
+
verification:
|
|
79
|
+
required: true
|
|
80
|
+
strategy: feature
|
|
81
|
+
|
|
82
|
+
selection:
|
|
83
|
+
priority: medium
|
|
84
|
+
confidence_threshold: 0.80
|
|
85
|
+
|
|
86
|
+
examples: []
|
|
87
|
+
learnings: []
|
|
88
|
+
|
|
89
|
+
# ── V7 Runtime ─────────────────────────────────────────────
|
|
90
|
+
execution_mode: deterministic
|
|
91
|
+
cost: medium
|
|
92
|
+
latency: medium
|
|
93
|
+
risk: high
|
|
94
|
+
side_effects: edit_files
|
|
95
|
+
produces: [report, plan, code]
|
|
96
|
+
consumes: [user-description]
|
|
97
|
+
|
|
98
|
+
token_budget:
|
|
99
|
+
max_files_read: 5
|
|
100
|
+
max_lines_per_read: 150
|
|
101
|
+
max_shell_commands: 2
|
|
102
|
+
stop_early: true
|
|
103
|
+
|
|
104
|
+
exit_codes: [SUCCESS, BLOCKED, FAILED, PARTIAL]
|
|
105
|
+
---
|
|
106
|
+
|
|
107
|
+
# qk-devops-platform — Platform Engineer
|
|
108
|
+
|
|
109
|
+
> **Language rule:** Code, identifiers, file names → English. Explanations, summaries → Vietnamese.
|
|
110
|
+
|
|
111
|
+
## Preconditions
|
|
112
|
+
- [ ] Requirements cho môi trường triển khai đã có sẵn.
|
|
113
|
+
|
|
114
|
+
## Scope
|
|
115
|
+
- Thiết kế và thiết lập luồng CI/CD (GitHub Actions, GitLab CI, v.v.).
|
|
116
|
+
- Xây dựng kiến trúc deployment, quản lý các container (Docker, Kubernetes).
|
|
117
|
+
- Đưa ra chiến lược Rollback an toàn khi có sự cố.
|
|
118
|
+
- Quản lý và phân tách các môi trường (Dev, Staging, Prod).
|
|
119
|
+
- **Bắt buộc tuân thủ R-SEC-04: Mọi secrets/credentials trong CI/CD phải được inject qua biến môi trường an toàn (Github Secrets/Vault), KHÔNG BAO GIỜ hardcode.**
|
|
120
|
+
- KHÔNG thay thế `qk-production-release` (đóng gói và release app), skill này quản lý *hạ tầng và quy trình* bên dưới việc release đó.
|
|
121
|
+
|
|
122
|
+
## Non-Goals
|
|
123
|
+
- ❌ Provide implementation outside of DevOps & CI/CD scope
|
|
124
|
+
- ❌ Override explicit user directives without explanation
|
|
125
|
+
- ❌ Guess ambiguous requirements without asking
|
|
126
|
+
|
|
127
|
+
## Priority Order
|
|
128
|
+
|
|
129
|
+
| Priority | Task | Skip Threshold |
|
|
130
|
+
|----------|------|----------------|
|
|
131
|
+
| P1 | Core DevOps & CI/CD analysis and decision making | Never |
|
|
132
|
+
| P2 | Validation of existing patterns | Budget < 30% |
|
|
133
|
+
| P3 | Detailed documentation generation | Budget < 50% |
|
|
134
|
+
| P4 | Edge case exploration | Budget < 70% |
|
|
135
|
+
|
|
136
|
+
## Workflow
|
|
137
|
+
|
|
138
|
+
### Phase 1 — Context Loading
|
|
139
|
+
**Steps:**
|
|
140
|
+
1. Read existing configuration and requirements related to DevOps & CI/CD.
|
|
141
|
+
2. Check for missing preconditions.
|
|
142
|
+
|
|
143
|
+
**Decision:**
|
|
144
|
+
```
|
|
145
|
+
IF context is clear
|
|
146
|
+
→ Confidence: HIGH → go to Phase 2
|
|
147
|
+
ELSE
|
|
148
|
+
→ EXIT: BLOCKED — ask user
|
|
149
|
+
```
|
|
150
|
+
|
|
151
|
+
### Phase 2 — Analysis & Strategy
|
|
152
|
+
**Steps:**
|
|
153
|
+
1. Analyze the current state against DevOps & CI/CD best practices.
|
|
154
|
+
2. Formulate strategy or audit report based on findings.
|
|
155
|
+
|
|
156
|
+
**Decision:**
|
|
157
|
+
```
|
|
158
|
+
IF strategy/audit is complete
|
|
159
|
+
→ Confidence: HIGH → go to Phase 3
|
|
160
|
+
ELSE IF minor gaps exist
|
|
161
|
+
→ Confidence: MEDIUM → proceed with assumptions noted
|
|
162
|
+
```
|
|
163
|
+
|
|
164
|
+
### Phase 3 — Finalization
|
|
165
|
+
**Steps:**
|
|
166
|
+
1. Generate final report or configuration.
|
|
167
|
+
2. Prepare handoff data for subsequent skills.
|
|
168
|
+
|
|
169
|
+
## Confidence Model
|
|
170
|
+
|
|
171
|
+
| Level | Condition | Action |
|
|
172
|
+
|-------|-----------|--------|
|
|
173
|
+
| HIGH | All preconditions met, context fully understood | Proceed directly |
|
|
174
|
+
| MEDIUM | Some context missing but safe defaults exist | Proceed and note assumptions |
|
|
175
|
+
| LOW | Core requirements missing | EXIT: BLOCKED |
|
|
176
|
+
|
|
177
|
+
## Severity (for findings)
|
|
178
|
+
|
|
179
|
+
| Level | Definition |
|
|
180
|
+
|-------|-----------|
|
|
181
|
+
| CRITICAL | Severe violation of DevOps & CI/CD principles |
|
|
182
|
+
| HIGH | Significant risk or technical debt |
|
|
183
|
+
| MEDIUM | Suboptimal pattern but functional |
|
|
184
|
+
| LOW | Minor style or documentation issue |
|
|
185
|
+
|
|
186
|
+
## Evidence Format
|
|
187
|
+
|
|
188
|
+
```
|
|
189
|
+
[SEVERITY] Context/File
|
|
190
|
+
Issue: [what was found]
|
|
191
|
+
Confidence: HIGH
|
|
192
|
+
Recommendation: [actionable advice]
|
|
193
|
+
```
|
|
194
|
+
|
|
195
|
+
## Retry Policy
|
|
196
|
+
```
|
|
197
|
+
Task fails due to missing context
|
|
198
|
+
└─ Ask user for clarification
|
|
199
|
+
├─ Provided → Retry Phase 1
|
|
200
|
+
└─ Not provided → EXIT: BLOCKED
|
|
201
|
+
```
|
|
202
|
+
|
|
203
|
+
## Escalation Rules
|
|
204
|
+
|
|
205
|
+
```
|
|
206
|
+
BLOCKED: Missing critical context for DevOps & CI/CD
|
|
207
|
+
Missing:
|
|
208
|
+
- [Specific requirement]
|
|
209
|
+
Questions:
|
|
210
|
+
1. Bạn có thể cung cấp thêm thông tin về yêu cầu này không?
|
|
211
|
+
2. Mục tiêu chính của bạn là gì?
|
|
212
|
+
Recommended Assumptions: none
|
|
213
|
+
```
|
|
214
|
+
|
|
215
|
+
## Handoff Contract
|
|
216
|
+
|
|
217
|
+
### Consumes
|
|
218
|
+
```json
|
|
219
|
+
{
|
|
220
|
+
"from": "user or qk-orchestrator",
|
|
221
|
+
"required_fields": ["context"],
|
|
222
|
+
"optional_fields": ["existing_config"]
|
|
223
|
+
}
|
|
224
|
+
```
|
|
225
|
+
|
|
226
|
+
### Produces
|
|
227
|
+
```json
|
|
228
|
+
{
|
|
229
|
+
"to": "user or downstream skill",
|
|
230
|
+
"output_fields": ["strategy_report", "exit_code"]
|
|
231
|
+
}
|
|
232
|
+
```
|
|
233
|
+
|
|
234
|
+
## Exit Codes
|
|
235
|
+
|
|
236
|
+
| Code | Meaning | When |
|
|
237
|
+
|------|---------|------|
|
|
238
|
+
| SUCCESS | DevOps & CI/CD task completed successfully | Strategy/audit generated |
|
|
239
|
+
| PARTIAL | Task completed with assumptions | Medium confidence |
|
|
240
|
+
| BLOCKED | Missing context | Cannot proceed |
|
|
241
|
+
| FAILED | Critical conflict or error | Unresolvable constraint |
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# Auto-generated from SKILL.md frontmatter
|
|
2
|
+
schema_version: 1
|
|
3
|
+
id: "qk-devops-platform"
|
|
4
|
+
version: "8.3.1"
|
|
5
|
+
description: "Kỹ sư nền tảng: Chiến lược CI/CD, kiến trúc triển khai, quản lý môi trường và chiến lược rollback."
|
|
6
|
+
tools:
|
|
7
|
+
- "filesystem"
|
|
8
|
+
- "terminal"
|
|
9
|
+
knowledge:
|
|
10
|
+
owns:
|
|
11
|
+
- "qk-devops-platform"
|
|
12
|
+
references:
|
|
13
|
+
- "architecture"
|
|
14
|
+
- "security"
|
|
15
|
+
- "anti-patterns"
|
|
16
|
+
eval:
|
|
17
|
+
scorecard: "evals/scorecard.yaml"
|
|
18
|
+
decision_boundary:
|
|
19
|
+
owns:
|
|
20
|
+
- "CI/CD strategy"
|
|
21
|
+
- "deployment architecture"
|
|
22
|
+
- "environment management"
|
|
23
|
+
- "rollback strategy"
|
|
24
|
+
does_not_own:
|
|
25
|
+
- "application code"
|
|
26
|
+
- "cloud billing"
|
|
27
|
+
- "releasing features"
|
|
28
|
+
conflicts_with:
|
|
29
|
+
- "qk-production-release"
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
name: qk-devops-platform-eval
|
|
2
|
+
description: Đánh giá chất lượng cấu trúc DevOps và CI/CD
|
|
3
|
+
version: 8.3.1
|
|
4
|
+
threshold: 85 # Đảm bảo an toàn hạ tầng và khả năng chịu lỗi (Rollback)
|
|
5
|
+
|
|
6
|
+
metrics:
|
|
7
|
+
- id: secure_secrets_management
|
|
8
|
+
name: Quản lý Secrets an toàn (R-SEC-04)
|
|
9
|
+
description: Cấu hình CI/CD có vô tình làm lộ credentials không?
|
|
10
|
+
weight: 40
|
|
11
|
+
criteria:
|
|
12
|
+
- Tuyệt đối không hardcode API keys, mật khẩu hoặc tokens vào file cấu hình (20đ)
|
|
13
|
+
- Sử dụng cơ chế inject biến môi trường an toàn (Github Secrets, Vault) (20đ)
|
|
14
|
+
|
|
15
|
+
- id: robust_pipeline_design
|
|
16
|
+
name: Thiết kế Pipeline và Môi trường
|
|
17
|
+
description: Luồng CI/CD có phân tách rõ ràng và tự động hóa tốt không?
|
|
18
|
+
weight: 35
|
|
19
|
+
criteria:
|
|
20
|
+
- Phân tách rõ ràng cấu hình cho các môi trường (Dev, Staging, Prod) (15đ)
|
|
21
|
+
- Có quy trình containerization (Docker, K8s) hoặc chiến lược deployment hợp lý (20đ)
|
|
22
|
+
|
|
23
|
+
- id: rollback_strategy
|
|
24
|
+
name: Chiến lược Rollback
|
|
25
|
+
description: Có kịch bản dự phòng khi deploy thất bại không?
|
|
26
|
+
weight: 25
|
|
27
|
+
criteria:
|
|
28
|
+
- Có cơ chế hoặc hướng dẫn rõ ràng để rollback hệ thống về trạng thái ổn định trước đó (25đ)
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
# ── Identity ───────────────────────────────────────────────
|
|
3
3
|
name: qk-docs
|
|
4
|
-
version: 8.
|
|
4
|
+
version: 8.3.1
|
|
5
5
|
status: stable
|
|
6
6
|
description: "Viết và duy trì tài liệu chính xác tuyệt đối — phải match code thực tế, cấm bịa đặt."
|
|
7
7
|
platforms: [antigravity, claude-code, cursor, windsurf, kilo-code]
|
|
@@ -47,6 +47,8 @@ knowledge_scope:
|
|
|
47
47
|
- architecture-docs
|
|
48
48
|
references:
|
|
49
49
|
- source-code
|
|
50
|
+
- security
|
|
51
|
+
- anti-patterns
|
|
50
52
|
|
|
51
53
|
# ── V8: Verification ───────────────────────────────────────
|
|
52
54
|
verification:
|
|
@@ -202,7 +204,7 @@ Fix: [specific correction]
|
|
|
202
204
|
## Severity
|
|
203
205
|
| Level | Definition | Example |
|
|
204
206
|
|-------|-----------|---------|
|
|
205
|
-
| CRITICAL | Docs instruct user to do something dangerous | Documenting destructive API without warnings |
|
|
207
|
+
| CRITICAL | Docs instruct user to do something dangerous, bypass auth, or expose secrets | Documenting destructive API without warnings, or writing guides to call internal APIs unauthenticated |
|
|
206
208
|
| HIGH | API params documented incorrectly | Says string instead of object |
|
|
207
209
|
| MEDIUM | Missing docs for edge cases | Doesn't explain error throws |
|
|
208
210
|
| LOW | Typo or poor formatting | Misaligned markdown table |
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# Auto-generated from SKILL.md frontmatter
|
|
2
|
+
schema_version: 1
|
|
3
|
+
id: "qk-docs"
|
|
4
|
+
version: "8.3.1"
|
|
5
|
+
description: "Viết và duy trì tài liệu chính xác tuyệt đối — phải match code thực tế, cấm bịa đặt."
|
|
6
|
+
tools:
|
|
7
|
+
- "filesystem"
|
|
8
|
+
- "terminal"
|
|
9
|
+
knowledge:
|
|
10
|
+
owns:
|
|
11
|
+
- "code-documentation"
|
|
12
|
+
- "architecture-docs"
|
|
13
|
+
references:
|
|
14
|
+
- "source-code"
|
|
15
|
+
- "security"
|
|
16
|
+
- "anti-patterns"
|
|
17
|
+
eval:
|
|
18
|
+
scorecard: "evals/scorecard.yaml"
|
|
19
|
+
decision_boundary:
|
|
20
|
+
owns:
|
|
21
|
+
- "qk-docs"
|
|
22
|
+
does_not_own: []
|
|
23
|
+
conflicts_with: []
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
name: qk-docs-eval
|
|
2
|
+
description: Đánh giá chất lượng tài liệu và kỹ năng viết Docs
|
|
3
|
+
version: 8.3.1
|
|
4
|
+
threshold: 85 # Đảm bảo tài liệu phản ánh chính xác 100% logic code thực tế
|
|
5
|
+
|
|
6
|
+
metrics:
|
|
7
|
+
- id: accurate_documentation
|
|
8
|
+
name: Phản ánh chính xác Code (Không bịa đặt)
|
|
9
|
+
description: Tài liệu viết ra có khớp hoàn toàn với parameters/returns trong code không?
|
|
10
|
+
weight: 40
|
|
11
|
+
criteria:
|
|
12
|
+
- Đọc code trước khi viết, không tự bịa (hallucinate) các params/lỗi không tồn tại trong code (20đ)
|
|
13
|
+
- Sử dụng đúng format chuẩn (JSDoc/TSDoc) cho hàm/class (20đ)
|
|
14
|
+
|
|
15
|
+
- id: documentation_depth
|
|
16
|
+
name: Giải thích Nguyên nhân (WHY, not WHAT)
|
|
17
|
+
description: Comments có giải thích tại sao đoạn code tồn tại thay vì diễn giải lại code không?
|
|
18
|
+
weight: 35
|
|
19
|
+
criteria:
|
|
20
|
+
- Comment tập trung giải thích lý do (WHY) thay vì viết những dòng vô nghĩa (WHAT) như `// gets the user` (35đ)
|
|
21
|
+
|
|
22
|
+
- id: verify_accuracy
|
|
23
|
+
name: Kiểm chứng độ chính xác
|
|
24
|
+
description: Agent có đọc lại tài liệu sau khi viết để đối chiếu với code không?
|
|
25
|
+
weight: 25
|
|
26
|
+
criteria:
|
|
27
|
+
- Re-read để spot check lại từng param/type nhằm đảm bảo độ chính xác tuyệt đối (25đ)
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
# ── Identity ───────────────────────────────────────────────
|
|
3
3
|
name: qk-engineering-standard
|
|
4
|
-
version: 8.
|
|
4
|
+
version: 8.3.1
|
|
5
5
|
status: stable
|
|
6
6
|
description: "Ép buộc SOLID, DRY, Clean Code với ngưỡng số liệu cụ thể — không có rule mơ hồ."
|
|
7
7
|
platforms: [antigravity, claude-code, cursor, windsurf, kilo-code]
|
|
@@ -49,6 +49,8 @@ knowledge_scope:
|
|
|
49
49
|
- best-practices
|
|
50
50
|
references:
|
|
51
51
|
- architecture
|
|
52
|
+
- security
|
|
53
|
+
- anti-patterns
|
|
52
54
|
|
|
53
55
|
# ── V8: Verification ───────────────────────────────────────
|
|
54
56
|
verification:
|
|
@@ -93,11 +95,6 @@ On missing precondition:
|
|
|
93
95
|
Message: "Vui lòng chỉ định file hoặc module cần kiểm tra."
|
|
94
96
|
```
|
|
95
97
|
|
|
96
|
-
skill_version: 7.5.0
|
|
97
|
-
runtime_version: 1
|
|
98
|
-
schema_version: 2
|
|
99
|
-
---
|
|
100
|
-
|
|
101
98
|
## Scope
|
|
102
99
|
- ✅ Detect violations with exact file:line references
|
|
103
100
|
- ✅ Classify by severity with concrete thresholds
|
|
@@ -108,12 +105,8 @@ schema_version: 2
|
|
|
108
105
|
- ❌ Rewrite architecture
|
|
109
106
|
- ❌ Touch files outside the specified scope
|
|
110
107
|
|
|
111
|
-
skill_version: 7.5.0
|
|
112
|
-
runtime_version: 1
|
|
113
|
-
schema_version: 2
|
|
114
|
-
---
|
|
115
|
-
|
|
116
108
|
## Concrete Thresholds (Non-Negotiable)
|
|
109
|
+
**Các giới hạn dưới đây được dùng để định lượng vi phạm rác mã (R-C-09) và bảo mật (R-SEC-04):**
|
|
117
110
|
|
|
118
111
|
```yaml
|
|
119
112
|
function:
|
|
@@ -139,11 +132,6 @@ dependency:
|
|
|
139
132
|
max_imports_per_file: 15 # Beyond this: likely a God File
|
|
140
133
|
```
|
|
141
134
|
|
|
142
|
-
skill_version: 7.5.0
|
|
143
|
-
runtime_version: 1
|
|
144
|
-
schema_version: 2
|
|
145
|
-
---
|
|
146
|
-
|
|
147
135
|
## Priority Order
|
|
148
136
|
|
|
149
137
|
| Priority | Check | Severity | Skip Threshold |
|
|
@@ -156,11 +144,6 @@ schema_version: 2
|
|
|
156
144
|
| P6 | Naming convention violations | LOW | Budget < 70% |
|
|
157
145
|
| P7 | Excessive imports / coupling | LOW | Budget < 80% |
|
|
158
146
|
|
|
159
|
-
skill_version: 7.5.0
|
|
160
|
-
runtime_version: 1
|
|
161
|
-
schema_version: 2
|
|
162
|
-
---
|
|
163
|
-
|
|
164
147
|
## Workflow
|
|
165
148
|
|
|
166
149
|
### Phase 1 — Scan for Critical & High Violations
|
|
@@ -187,11 +170,6 @@ IF file line count > 300
|
|
|
187
170
|
- All P1+P2+P3 checks done → go to Phase 2
|
|
188
171
|
- Token budget < 30% → go to Phase 3 directly with PARTIAL flag
|
|
189
172
|
|
|
190
|
-
skill_version: 7.5.0
|
|
191
|
-
runtime_version: 1
|
|
192
|
-
schema_version: 2
|
|
193
|
-
---
|
|
194
|
-
|
|
195
173
|
### Phase 2 — Scan for Medium & Low Violations
|
|
196
174
|
|
|
197
175
|
**Steps:**
|
|
@@ -211,11 +189,6 @@ IF token budget < 50%
|
|
|
211
189
|
→ Skip P6+P7, go to Phase 3
|
|
212
190
|
```
|
|
213
191
|
|
|
214
|
-
skill_version: 7.5.0
|
|
215
|
-
runtime_version: 1
|
|
216
|
-
schema_version: 2
|
|
217
|
-
---
|
|
218
|
-
|
|
219
192
|
### Phase 3 — Score & Report
|
|
220
193
|
|
|
221
194
|
**Steps:**
|
|
@@ -243,11 +216,6 @@ IF score < 60 OR any CRITICAL violations
|
|
|
243
216
|
→ EXIT: FAILED — requires immediate action
|
|
244
217
|
```
|
|
245
218
|
|
|
246
|
-
skill_version: 7.5.0
|
|
247
|
-
runtime_version: 1
|
|
248
|
-
schema_version: 2
|
|
249
|
-
---
|
|
250
|
-
|
|
251
219
|
## Confidence Model
|
|
252
220
|
|
|
253
221
|
| Level | Condition | Action |
|
|
@@ -256,11 +224,6 @@ schema_version: 2
|
|
|
256
224
|
| MEDIUM | Inferred cyclomatic complexity without tool | Note estimate |
|
|
257
225
|
| LOW | Architectural smell inferred from structure | Mark as "suspected — verify manually" |
|
|
258
226
|
|
|
259
|
-
skill_version: 7.5.0
|
|
260
|
-
runtime_version: 1
|
|
261
|
-
schema_version: 2
|
|
262
|
-
---
|
|
263
|
-
|
|
264
227
|
## Severity
|
|
265
228
|
|
|
266
229
|
| Level | Definition | Example |
|
|
@@ -270,11 +233,6 @@ schema_version: 2
|
|
|
270
233
|
| MEDIUM | DRY or SoC violation, fixable in < 1 hour | Same validation logic in 3 components |
|
|
271
234
|
| LOW | Style/naming issue, non-blocking | Single-letter variable `x` outside loop |
|
|
272
235
|
|
|
273
|
-
skill_version: 7.5.0
|
|
274
|
-
runtime_version: 1
|
|
275
|
-
schema_version: 2
|
|
276
|
-
---
|
|
277
|
-
|
|
278
236
|
## Evidence Format
|
|
279
237
|
|
|
280
238
|
```
|
|
@@ -296,22 +254,12 @@ Fix: Extract payment logic to `processPayment()`, shipping to `scheduleSh
|
|
|
296
254
|
Deduction: -10 pts
|
|
297
255
|
```
|
|
298
256
|
|
|
299
|
-
skill_version: 7.5.0
|
|
300
|
-
runtime_version: 1
|
|
301
|
-
schema_version: 2
|
|
302
|
-
---
|
|
303
|
-
|
|
304
257
|
## Retry Policy
|
|
305
258
|
```
|
|
306
259
|
Audit is read-only — no retry needed.
|
|
307
260
|
If file is inaccessible → skip and note in report as PARTIAL.
|
|
308
261
|
```
|
|
309
262
|
|
|
310
|
-
skill_version: 7.5.0
|
|
311
|
-
runtime_version: 1
|
|
312
|
-
schema_version: 2
|
|
313
|
-
---
|
|
314
|
-
|
|
315
263
|
## Escalation Rules
|
|
316
264
|
|
|
317
265
|
```
|
|
@@ -323,11 +271,6 @@ Questions:
|
|
|
323
271
|
2. Có ngưỡng cụ thể nào bạn muốn thay đổi không? (mặc định: 30 lines/function)
|
|
324
272
|
```
|
|
325
273
|
|
|
326
|
-
skill_version: 7.5.0
|
|
327
|
-
runtime_version: 1
|
|
328
|
-
schema_version: 2
|
|
329
|
-
---
|
|
330
|
-
|
|
331
274
|
## Handoff Contract
|
|
332
275
|
|
|
333
276
|
### Consumes
|
|
@@ -347,11 +290,6 @@ schema_version: 2
|
|
|
347
290
|
}
|
|
348
291
|
```
|
|
349
292
|
|
|
350
|
-
skill_version: 7.5.0
|
|
351
|
-
runtime_version: 1
|
|
352
|
-
schema_version: 2
|
|
353
|
-
---
|
|
354
|
-
|
|
355
293
|
## Output Format
|
|
356
294
|
|
|
357
295
|
```
|
|
@@ -375,11 +313,6 @@ Required Actions:
|
|
|
375
313
|
Exit Code: [SUCCESS | PARTIAL | FAILED]
|
|
376
314
|
```
|
|
377
315
|
|
|
378
|
-
skill_version: 7.5.0
|
|
379
|
-
runtime_version: 1
|
|
380
|
-
schema_version: 2
|
|
381
|
-
---
|
|
382
|
-
|
|
383
316
|
## Exit Codes
|
|
384
317
|
|
|
385
318
|
| Code | Meaning | When |
|
|
@@ -389,13 +322,9 @@ schema_version: 2
|
|
|
389
322
|
| BLOCKED | No target specified | Cannot audit without scope |
|
|
390
323
|
| FAILED | Score < 60 or CRITICAL found | Immediate action required |
|
|
391
324
|
|
|
392
|
-
skill_version: 7.5.0
|
|
393
|
-
runtime_version: 1
|
|
394
|
-
schema_version: 2
|
|
395
|
-
---
|
|
396
|
-
|
|
397
325
|
## References
|
|
398
326
|
- Detailed thresholds with rationale: `references/thresholds.md`
|
|
327
|
+
- Anti-Patterns Blacklist: `references/anti-patterns.md`
|
|
399
328
|
|
|
400
329
|
---
|
|
401
330
|
|