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.
- package/.agents/LICENSE +21 -21
- package/.agents/README.md +90 -90
- package/.agents/docs/CHI_TIET_SKILLS.md +125 -125
- package/.agents/docs/MIGRATION-CLEANUP-V8.1.3.md +36 -36
- package/.agents/docs/MIGRATION-STATUS.md +35 -35
- package/.agents/docs/MIGRATION-V8.md +10 -10
- package/.agents/docs/V8-CERTIFICATION.md +27 -27
- package/.agents/docs/decisions/ADR-001-v8-migration.md +58 -58
- package/.agents/docs/decisions/ADR-002-workflow-separation.md +50 -50
- package/.agents/docs/decisions/ADR-003-registry-generated.md +54 -54
- package/.agents/docs/decisions/ADR-008-skill-boundary-review.md +27 -27
- package/.agents/registry/graph.json +4 -8
- package/.agents/registry/index.yaml +3 -4
- package/.agents/registry/skills-index.yml +525 -525
- package/.agents/rules/coding.md +10 -0
- package/.agents/rules/command-safety.md +37 -14
- package/.agents/rules/priorities.yml +13 -2
- package/.agents/rules/security.md +47 -7
- package/.agents/rules/skill-quality.md +32 -8
- package/.agents/skills/_template/SKILL.md +133 -132
- package/.agents/skills/_template/capability.yaml +20 -20
- package/.agents/skills/_template/evals/scorecard.yaml +19 -19
- package/.agents/skills/qk-access-policy/SKILL.md +4 -1
- package/.agents/skills/qk-agent-observability/SKILL.md +111 -0
- package/.agents/skills/qk-agent-observability/references/scorecard.yaml +80 -0
- package/.agents/skills/qk-ai-builder/SKILL.md +74 -5
- package/.agents/skills/qk-api-lifecycle/SKILL.md +4 -2
- package/.agents/skills/qk-bug-resolution/SKILL.md +3 -21
- package/.agents/skills/qk-code-review/SKILL.md +188 -189
- package/.agents/skills/qk-context-loader/SKILL.md +3 -47
- package/.agents/skills/qk-data-lifecycle/SKILL.md +7 -2
- package/.agents/skills/qk-db-optimizer/SKILL.md +3 -2
- package/.agents/skills/qk-design-system-engineering/SKILL.md +235 -112
- package/.agents/skills/qk-devops-platform/SKILL.md +241 -117
- package/.agents/skills/qk-docs/SKILL.md +3 -1
- package/.agents/skills/qk-engineering-standard/SKILL.md +4 -75
- package/.agents/skills/qk-engineering-standard/references/anti-patterns.md +121 -0
- package/.agents/skills/qk-engineering-standard/rules/frontend.md +1 -1
- package/.agents/skills/qk-fe-api-integration/SKILL.md +13 -32
- package/.agents/skills/qk-feature-delivery/SKILL.md +54 -202
- package/.agents/skills/qk-frontend-architecture/SKILL.md +258 -134
- package/.agents/skills/qk-help/SKILL.md +21 -159
- package/.agents/skills/qk-orchestrator/SKILL.md +2 -78
- package/.agents/skills/qk-orchestrator/references/routing-table.md +15 -3
- package/.agents/skills/qk-product-specification/SKILL.md +253 -130
- package/.agents/skills/qk-production-release/SKILL.md +32 -67
- package/.agents/skills/qk-project-bootstrap/SKILL.md +59 -8
- package/.agents/skills/qk-project-health/SKILL.md +4 -2
- package/.agents/skills/qk-project-memory/SKILL.md +3 -1
- package/.agents/skills/qk-security-audit/SKILL.md +259 -135
- package/.agents/skills/qk-system-evolution/SKILL.md +18 -68
- package/.agents/skills/qk-test-engineering/SKILL.md +262 -139
- package/.agents/skills/qk-ui-audit/SKILL.md +16 -89
- package/.agents/skills/qk-ui-audit/references/anti-slop-checklist.md +2 -2
- package/.agents/skills/qk-ui-builder/SKILL.md +482 -509
- package/.agents/skills/qk-ui-builder/references/component-cookbook.md +455 -1191
- package/.agents/skills/qk-ui-system-builder/SKILL.md +1 -5
- package/.agents/skills/qk-validation-gate/SKILL.md +0 -74
- package/.agents/skills/qk-web-quality-gate/SKILL.md +232 -114
- package/.agents/workflows/_schema.yml +146 -109
- package/.agents/workflows/bug-resolution.yml +121 -101
- package/.agents/workflows/code-review.yml +93 -77
- package/.agents/workflows/documentation.yml +90 -75
- package/.agents/workflows/feature-delivery.yml +120 -103
- package/.agents/workflows/refactor.yml +99 -81
- package/.agents/workflows/research.yml +75 -60
- package/.agents/workflows/security-audit.yml +115 -72
- package/.agents/workflows/skill-evolution.yml +97 -65
- package/.agents/workflows/spec-driven-development.yml +87 -57
- package/CHANGELOG.md +10 -0
- package/README.md +90 -90
- package/bin/install.js +330 -180
- package/package.json +2 -2
- package/.agents/CHANGELOG.md +0 -131
- package/.agents/learnings/draft/README.md +0 -37
- package/.agents/reports/RELEASE-CHECKLIST.md +0 -29
- package/.agents/reports/architecture-audit.md +0 -13
- package/.agents/reports/graph-health.md +0 -20
- package/.agents/reports/skill-audit.md +0 -215
|
@@ -1,135 +1,259 @@
|
|
|
1
|
-
---
|
|
2
|
-
# ── Identity ───────────────────────────────────────────────
|
|
3
|
-
name: qk-security-audit
|
|
4
|
-
version: 8.1.0
|
|
5
|
-
status: experimental
|
|
6
|
-
description: "Security audit (OWASP, dependency security, secret detection, permission model)."
|
|
7
|
-
platforms: [antigravity, claude-code, cursor, windsurf, kilo-code]
|
|
8
|
-
|
|
9
|
-
# ── V8: Classification ─────────────────────────────────────
|
|
10
|
-
type: capability
|
|
11
|
-
|
|
12
|
-
intent:
|
|
13
|
-
- security-audit
|
|
14
|
-
- vulnerability-scan
|
|
15
|
-
- secret-detection
|
|
16
|
-
- permission-review
|
|
17
|
-
|
|
18
|
-
complexity:
|
|
19
|
-
level: high
|
|
20
|
-
criteria:
|
|
21
|
-
files_affected: "1-10"
|
|
22
|
-
has_behavior_change: true
|
|
23
|
-
has_external_dependency: true
|
|
24
|
-
has_breaking_change: false
|
|
25
|
-
|
|
26
|
-
triggers:
|
|
27
|
-
- "kiểm tra bảo mật"
|
|
28
|
-
- "scan lỗ hổng"
|
|
29
|
-
- "audit code"
|
|
30
|
-
- "tìm secret leak"
|
|
31
|
-
|
|
32
|
-
# ── V8: References ─────────────────────────────────────────
|
|
33
|
-
workflow: security-audit
|
|
34
|
-
|
|
35
|
-
rules:
|
|
36
|
-
- global
|
|
37
|
-
- security
|
|
38
|
-
|
|
39
|
-
tools:
|
|
40
|
-
- filesystem
|
|
41
|
-
- terminal
|
|
42
|
-
|
|
43
|
-
related_skills:
|
|
44
|
-
- qk-access-policy
|
|
45
|
-
|
|
46
|
-
knowledge_scope:
|
|
47
|
-
domain:
|
|
48
|
-
- security-practices
|
|
49
|
-
- vulnerability-detection
|
|
50
|
-
concepts:
|
|
51
|
-
- owasp
|
|
52
|
-
- secret-detection
|
|
53
|
-
references:
|
|
54
|
-
- architecture
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
-
|
|
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
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
-
|
|
134
|
-
-
|
|
135
|
-
-
|
|
1
|
+
---
|
|
2
|
+
# ── Identity ───────────────────────────────────────────────
|
|
3
|
+
name: qk-security-audit
|
|
4
|
+
version: 8.1.0
|
|
5
|
+
status: experimental
|
|
6
|
+
description: "Security audit (OWASP, dependency security, secret detection, permission model)."
|
|
7
|
+
platforms: [antigravity, claude-code, cursor, windsurf, kilo-code]
|
|
8
|
+
|
|
9
|
+
# ── V8: Classification ─────────────────────────────────────
|
|
10
|
+
type: capability
|
|
11
|
+
|
|
12
|
+
intent:
|
|
13
|
+
- security-audit
|
|
14
|
+
- vulnerability-scan
|
|
15
|
+
- secret-detection
|
|
16
|
+
- permission-review
|
|
17
|
+
|
|
18
|
+
complexity:
|
|
19
|
+
level: high
|
|
20
|
+
criteria:
|
|
21
|
+
files_affected: "1-10"
|
|
22
|
+
has_behavior_change: true
|
|
23
|
+
has_external_dependency: true
|
|
24
|
+
has_breaking_change: false
|
|
25
|
+
|
|
26
|
+
triggers:
|
|
27
|
+
- "kiểm tra bảo mật"
|
|
28
|
+
- "scan lỗ hổng"
|
|
29
|
+
- "audit code"
|
|
30
|
+
- "tìm secret leak"
|
|
31
|
+
|
|
32
|
+
# ── V8: References ─────────────────────────────────────────
|
|
33
|
+
workflow: security-audit
|
|
34
|
+
|
|
35
|
+
rules:
|
|
36
|
+
- global
|
|
37
|
+
- security
|
|
38
|
+
|
|
39
|
+
tools:
|
|
40
|
+
- filesystem
|
|
41
|
+
- terminal
|
|
42
|
+
|
|
43
|
+
related_skills:
|
|
44
|
+
- qk-access-policy
|
|
45
|
+
|
|
46
|
+
knowledge_scope:
|
|
47
|
+
domain:
|
|
48
|
+
- security-practices
|
|
49
|
+
- vulnerability-detection
|
|
50
|
+
concepts:
|
|
51
|
+
- owasp
|
|
52
|
+
- secret-detection
|
|
53
|
+
references:
|
|
54
|
+
- architecture
|
|
55
|
+
- security
|
|
56
|
+
- anti-patterns
|
|
57
|
+
|
|
58
|
+
decision_boundary:
|
|
59
|
+
owns:
|
|
60
|
+
- application-security
|
|
61
|
+
- agent-security
|
|
62
|
+
- prompt-injection
|
|
63
|
+
- dependency-risk
|
|
64
|
+
does_not_own:
|
|
65
|
+
- access control implementation
|
|
66
|
+
- penetration testing
|
|
67
|
+
- compliance certification
|
|
68
|
+
conflicts_with: []
|
|
69
|
+
delegates_to:
|
|
70
|
+
- qk-validation-gate
|
|
71
|
+
|
|
72
|
+
# ── V8: Verification ───────────────────────────────────────
|
|
73
|
+
verification:
|
|
74
|
+
required: true
|
|
75
|
+
strategy: feature
|
|
76
|
+
|
|
77
|
+
lifecycle:
|
|
78
|
+
promotion_gate:
|
|
79
|
+
requirements:
|
|
80
|
+
tests:
|
|
81
|
+
minimum_pass_rate: 0.95
|
|
82
|
+
usage:
|
|
83
|
+
minimum_runs: 20
|
|
84
|
+
conflicts:
|
|
85
|
+
zero_boundary_violation: true
|
|
86
|
+
evidence:
|
|
87
|
+
required:
|
|
88
|
+
- evaluation_report
|
|
89
|
+
- usage_history
|
|
90
|
+
- boundary_audit
|
|
91
|
+
demotion_gate:
|
|
92
|
+
triggers:
|
|
93
|
+
- repeated_failure
|
|
94
|
+
- boundary_violation
|
|
95
|
+
- outdated_reference
|
|
96
|
+
action:
|
|
97
|
+
change_status: "stable -> experimental"
|
|
98
|
+
|
|
99
|
+
selection:
|
|
100
|
+
priority: high
|
|
101
|
+
confidence_threshold: 0.85
|
|
102
|
+
|
|
103
|
+
examples: []
|
|
104
|
+
learnings: []
|
|
105
|
+
|
|
106
|
+
# ── V7 Runtime ─────────────────────────────────────────────
|
|
107
|
+
execution_mode: deterministic
|
|
108
|
+
cost: medium
|
|
109
|
+
latency: slow
|
|
110
|
+
risk: low
|
|
111
|
+
side_effects: read_only
|
|
112
|
+
produces: [report, security_fixes]
|
|
113
|
+
consumes: [user-description]
|
|
114
|
+
|
|
115
|
+
token_budget:
|
|
116
|
+
max_files_read: 10
|
|
117
|
+
max_lines_per_read: 150
|
|
118
|
+
max_shell_commands: 2
|
|
119
|
+
stop_early: true
|
|
120
|
+
|
|
121
|
+
exit_codes: [SUCCESS, BLOCKED, FAILED, PARTIAL]
|
|
122
|
+
---
|
|
123
|
+
|
|
124
|
+
# qk-security-audit — Security Auditor
|
|
125
|
+
|
|
126
|
+
> **Language rule:** Code, identifiers, file names → English. Explanations, summaries → Vietnamese.
|
|
127
|
+
|
|
128
|
+
## Preconditions
|
|
129
|
+
- [ ] Tuân thủ `security.md`.
|
|
130
|
+
- [ ] Xác định phạm vi codebase cần audit.
|
|
131
|
+
|
|
132
|
+
## Scope
|
|
133
|
+
- Quét và phát hiện các rủi ro bảo mật từ dependencies bên thứ ba.
|
|
134
|
+
- Nhận diện secret bị hardcode/leak (API keys, passwords, tokens).
|
|
135
|
+
- Rà soát mô hình phân quyền (RBAC, ABAC) và kiểm tra lỗ hổng logic (BOLA, Broken Auth).
|
|
136
|
+
- **Quét lỗ hổng Prompt Injection và xác minh ranh giới Zero-Trust theo đúng R-SEC-04.**
|
|
137
|
+
- Check dựa trên OWASP Top 10.
|
|
138
|
+
- Khuyến nghị bản vá bảo mật tương ứng.
|
|
139
|
+
|
|
140
|
+
## Non-Goals
|
|
141
|
+
- ❌ Provide implementation outside of Security Vulnerability Detection scope
|
|
142
|
+
- ❌ Override explicit user directives without explanation
|
|
143
|
+
- ❌ Guess ambiguous requirements without asking
|
|
144
|
+
|
|
145
|
+
## Priority Order
|
|
146
|
+
|
|
147
|
+
| Priority | Task | Skip Threshold |
|
|
148
|
+
|----------|------|----------------|
|
|
149
|
+
| P1 | Core Security Vulnerability Detection analysis and decision making | Never |
|
|
150
|
+
| P2 | Validation of existing patterns | Budget < 30% |
|
|
151
|
+
| P3 | Detailed documentation generation | Budget < 50% |
|
|
152
|
+
| P4 | Edge case exploration | Budget < 70% |
|
|
153
|
+
|
|
154
|
+
## Workflow
|
|
155
|
+
|
|
156
|
+
### Phase 1 — Context Loading
|
|
157
|
+
**Steps:**
|
|
158
|
+
1. Read existing configuration and requirements related to Security Vulnerability Detection.
|
|
159
|
+
2. Check for missing preconditions.
|
|
160
|
+
|
|
161
|
+
**Decision:**
|
|
162
|
+
```
|
|
163
|
+
IF context is clear
|
|
164
|
+
→ Confidence: HIGH → go to Phase 2
|
|
165
|
+
ELSE
|
|
166
|
+
→ EXIT: BLOCKED — ask user
|
|
167
|
+
```
|
|
168
|
+
|
|
169
|
+
### Phase 2 — Analysis & Strategy
|
|
170
|
+
**Steps:**
|
|
171
|
+
1. Analyze the current state against Security Vulnerability Detection best practices.
|
|
172
|
+
2. Formulate strategy or audit report based on findings.
|
|
173
|
+
|
|
174
|
+
**Decision:**
|
|
175
|
+
```
|
|
176
|
+
IF strategy/audit is complete
|
|
177
|
+
→ Confidence: HIGH → go to Phase 3
|
|
178
|
+
ELSE IF minor gaps exist
|
|
179
|
+
→ Confidence: MEDIUM → proceed with assumptions noted
|
|
180
|
+
```
|
|
181
|
+
|
|
182
|
+
### Phase 3 — Finalization
|
|
183
|
+
**Steps:**
|
|
184
|
+
1. Generate final report or configuration.
|
|
185
|
+
2. Prepare handoff data for subsequent skills.
|
|
186
|
+
|
|
187
|
+
## Confidence Model
|
|
188
|
+
|
|
189
|
+
| Level | Condition | Action |
|
|
190
|
+
|-------|-----------|--------|
|
|
191
|
+
| HIGH | All preconditions met, context fully understood | Proceed directly |
|
|
192
|
+
| MEDIUM | Some context missing but safe defaults exist | Proceed and note assumptions |
|
|
193
|
+
| LOW | Core requirements missing | EXIT: BLOCKED |
|
|
194
|
+
|
|
195
|
+
## Severity (for findings)
|
|
196
|
+
|
|
197
|
+
| Level | Definition |
|
|
198
|
+
|-------|-----------|
|
|
199
|
+
| CRITICAL | Severe violation of Security Vulnerability Detection principles |
|
|
200
|
+
| HIGH | Significant risk or technical debt |
|
|
201
|
+
| MEDIUM | Suboptimal pattern but functional |
|
|
202
|
+
| LOW | Minor style or documentation issue |
|
|
203
|
+
|
|
204
|
+
## Evidence Format
|
|
205
|
+
|
|
206
|
+
```
|
|
207
|
+
[SEVERITY] Context/File
|
|
208
|
+
Issue: [what was found]
|
|
209
|
+
Confidence: HIGH
|
|
210
|
+
Recommendation: [actionable advice]
|
|
211
|
+
```
|
|
212
|
+
|
|
213
|
+
## Retry Policy
|
|
214
|
+
```
|
|
215
|
+
Task fails due to missing context
|
|
216
|
+
└─ Ask user for clarification
|
|
217
|
+
├─ Provided → Retry Phase 1
|
|
218
|
+
└─ Not provided → EXIT: BLOCKED
|
|
219
|
+
```
|
|
220
|
+
|
|
221
|
+
## Escalation Rules
|
|
222
|
+
|
|
223
|
+
```
|
|
224
|
+
BLOCKED: Missing critical context for Security Vulnerability Detection
|
|
225
|
+
Missing:
|
|
226
|
+
- [Specific requirement]
|
|
227
|
+
Questions:
|
|
228
|
+
1. Bạn có thể cung cấp thêm thông tin về yêu cầu này không?
|
|
229
|
+
2. Mục tiêu chính của bạn là gì?
|
|
230
|
+
Recommended Assumptions: none
|
|
231
|
+
```
|
|
232
|
+
|
|
233
|
+
## Handoff Contract
|
|
234
|
+
|
|
235
|
+
### Consumes
|
|
236
|
+
```json
|
|
237
|
+
{
|
|
238
|
+
"from": "user or qk-orchestrator",
|
|
239
|
+
"required_fields": ["context"],
|
|
240
|
+
"optional_fields": ["existing_config"]
|
|
241
|
+
}
|
|
242
|
+
```
|
|
243
|
+
|
|
244
|
+
### Produces
|
|
245
|
+
```json
|
|
246
|
+
{
|
|
247
|
+
"to": "user or downstream skill",
|
|
248
|
+
"output_fields": ["strategy_report", "exit_code"]
|
|
249
|
+
}
|
|
250
|
+
```
|
|
251
|
+
|
|
252
|
+
## Exit Codes
|
|
253
|
+
|
|
254
|
+
| Code | Meaning | When |
|
|
255
|
+
|------|---------|------|
|
|
256
|
+
| SUCCESS | Security Vulnerability Detection task completed successfully | Strategy/audit generated |
|
|
257
|
+
| PARTIAL | Task completed with assumptions | Medium confidence |
|
|
258
|
+
| BLOCKED | Missing context | Cannot proceed |
|
|
259
|
+
| FAILED | Critical conflict or error | Unresolvable constraint |
|
|
@@ -50,6 +50,8 @@ knowledge_scope:
|
|
|
50
50
|
references:
|
|
51
51
|
- testing
|
|
52
52
|
- architecture
|
|
53
|
+
- security
|
|
54
|
+
- anti-patterns
|
|
53
55
|
|
|
54
56
|
# ── V8: Verification ───────────────────────────────────────
|
|
55
57
|
verification:
|
|
@@ -76,7 +78,7 @@ token_budget:
|
|
|
76
78
|
max_files_read: 4
|
|
77
79
|
max_lines_per_read: 100
|
|
78
80
|
max_shell_commands: 2
|
|
79
|
-
stop_early:
|
|
81
|
+
stop_early: true
|
|
80
82
|
|
|
81
83
|
exit_codes: [SUCCESS, BLOCKED, FAILED, PARTIAL]
|
|
82
84
|
---
|
|
@@ -96,11 +98,6 @@ On missing precondition:
|
|
|
96
98
|
Message: "Rollback plan required before any major upgrade. Specify: target version + rollback method."
|
|
97
99
|
```
|
|
98
100
|
|
|
99
|
-
skill_version: 7.5.0
|
|
100
|
-
runtime_version: 1
|
|
101
|
-
schema_version: 2
|
|
102
|
-
---
|
|
103
|
-
|
|
104
101
|
## Scope
|
|
105
102
|
- ✅ Read official Changelog/Migration Guide for breaking changes
|
|
106
103
|
- ✅ Apply incremental upgrades (not big-bang)
|
|
@@ -112,11 +109,6 @@ schema_version: 2
|
|
|
112
109
|
- ❌ Skip reading Changelog for major version bumps
|
|
113
110
|
- ❌ Upgrade multiple major versions at once (one at a time)
|
|
114
111
|
|
|
115
|
-
skill_version: 7.5.0
|
|
116
|
-
runtime_version: 1
|
|
117
|
-
schema_version: 2
|
|
118
|
-
---
|
|
119
|
-
|
|
120
112
|
## Priority Order
|
|
121
113
|
|
|
122
114
|
| Priority | Check | Skip Threshold |
|
|
@@ -128,19 +120,15 @@ schema_version: 2
|
|
|
128
120
|
| P5 | Fix breaking changes if minor (< 3 files affected) | Budget < 40% |
|
|
129
121
|
| P6 | Update documentation/README | Budget < 70% |
|
|
130
122
|
|
|
131
|
-
skill_version: 7.5.0
|
|
132
|
-
runtime_version: 1
|
|
133
|
-
schema_version: 2
|
|
134
|
-
---
|
|
135
|
-
|
|
136
123
|
## Workflow
|
|
137
124
|
|
|
138
125
|
### Phase 1 — Breaking Change Analysis
|
|
139
126
|
|
|
140
127
|
**Steps:**
|
|
141
|
-
1. `view_file` or `read_url` — read official Changelog for target version
|
|
128
|
+
1. `view_file` or `read_url` — read official Changelog for target version. **Đồng thời kiểm tra Security Advisory (CVEs) của version cũ.**
|
|
142
129
|
2. List all `BREAKING CHANGE` entries
|
|
143
130
|
3. Map each breaking change to affected files in current codebase (`grep_search`)
|
|
131
|
+
4. *Lưu ý:* Nếu đây là bản vá bảo mật khẩn cấp (Security Patch), phải ưu tiên nâng cấp ngay cả khi có minor breaking changes, nhưng vẫn tuân thủ rollback plan.
|
|
144
132
|
|
|
145
133
|
**Decision:**
|
|
146
134
|
```
|
|
@@ -155,11 +143,6 @@ IF > 3 breaking changes OR affects core files
|
|
|
155
143
|
→ Recommend: plan as a dedicated migration project
|
|
156
144
|
```
|
|
157
145
|
|
|
158
|
-
skill_version: 7.5.0
|
|
159
|
-
runtime_version: 1
|
|
160
|
-
schema_version: 2
|
|
161
|
-
---
|
|
162
|
-
|
|
163
146
|
### Phase 2 — Rollback Snapshot
|
|
164
147
|
|
|
165
148
|
**Steps:**
|
|
@@ -173,11 +156,6 @@ schema_version: 2
|
|
|
173
156
|
|
|
174
157
|
**Exit When:** Rollback procedure documented → go to Phase 3
|
|
175
158
|
|
|
176
|
-
skill_version: 7.5.0
|
|
177
|
-
runtime_version: 1
|
|
178
|
-
schema_version: 2
|
|
179
|
-
---
|
|
180
|
-
|
|
181
159
|
### Phase 3 — Incremental Upgrade
|
|
182
160
|
|
|
183
161
|
**Steps:**
|
|
@@ -194,11 +172,6 @@ IF install fails (peer dep conflict)
|
|
|
194
172
|
→ EXIT: PARTIAL — report conflict, suggest resolution
|
|
195
173
|
```
|
|
196
174
|
|
|
197
|
-
skill_version: 7.5.0
|
|
198
|
-
runtime_version: 1
|
|
199
|
-
schema_version: 2
|
|
200
|
-
---
|
|
201
|
-
|
|
202
175
|
### Phase 4 — Verification
|
|
203
176
|
|
|
204
177
|
**Steps:**
|
|
@@ -219,11 +192,6 @@ IF > 3 tests fail OR core tests fail
|
|
|
219
192
|
→ Provide exact rollback command
|
|
220
193
|
```
|
|
221
194
|
|
|
222
|
-
skill_version: 7.5.0
|
|
223
|
-
runtime_version: 1
|
|
224
|
-
schema_version: 2
|
|
225
|
-
---
|
|
226
|
-
|
|
227
195
|
## Confidence Model
|
|
228
196
|
|
|
229
197
|
| Level | Condition | Action |
|
|
@@ -232,11 +200,6 @@ schema_version: 2
|
|
|
232
200
|
| MEDIUM | Changelog read, some uncertainties remain | Proceed with caution, note risks |
|
|
233
201
|
| LOW | Cannot access Changelog or no tests available | EXIT: BLOCKED |
|
|
234
202
|
|
|
235
|
-
skill_version: 7.5.0
|
|
236
|
-
runtime_version: 1
|
|
237
|
-
schema_version: 2
|
|
238
|
-
---
|
|
239
|
-
|
|
240
203
|
## Severity
|
|
241
204
|
|
|
242
205
|
| Level | Definition |
|
|
@@ -246,11 +209,6 @@ schema_version: 2
|
|
|
246
209
|
| MEDIUM | Utility library, build tool upgrade |
|
|
247
210
|
| LOW | Dev dependency, formatter upgrade |
|
|
248
211
|
|
|
249
|
-
skill_version: 7.5.0
|
|
250
|
-
runtime_version: 1
|
|
251
|
-
schema_version: 2
|
|
252
|
-
---
|
|
253
|
-
|
|
254
212
|
## Evidence Format
|
|
255
213
|
|
|
256
214
|
```
|
|
@@ -261,11 +219,6 @@ Confidence: [HIGH|MEDIUM|LOW]
|
|
|
261
219
|
Rollback: git checkout [tag] OR npm install [name]@[old-version]
|
|
262
220
|
```
|
|
263
221
|
|
|
264
|
-
skill_version: 7.5.0
|
|
265
|
-
runtime_version: 1
|
|
266
|
-
schema_version: 2
|
|
267
|
-
---
|
|
268
|
-
|
|
269
222
|
## Rollback Procedure (Required Output)
|
|
270
223
|
|
|
271
224
|
Every upgrade must document:
|
|
@@ -277,11 +230,6 @@ Method 2 (npm): npm install [package]@[previous-version]
|
|
|
277
230
|
Snapshot tag: [pre-upgrade-[package]-[date]]
|
|
278
231
|
```
|
|
279
232
|
|
|
280
|
-
skill_version: 7.5.0
|
|
281
|
-
runtime_version: 1
|
|
282
|
-
schema_version: 2
|
|
283
|
-
---
|
|
284
|
-
|
|
285
233
|
## Handoff Contract
|
|
286
234
|
|
|
287
235
|
### Consumes
|
|
@@ -301,22 +249,25 @@ schema_version: 2
|
|
|
301
249
|
}
|
|
302
250
|
```
|
|
303
251
|
|
|
304
|
-
skill_version: 7.5.0
|
|
305
|
-
runtime_version: 1
|
|
306
|
-
schema_version: 2
|
|
307
|
-
---
|
|
308
|
-
|
|
309
|
-
|
|
310
252
|
---
|
|
311
253
|
|
|
312
254
|
## Escalation Rules
|
|
313
|
-
|
|
314
|
-
|
|
255
|
+
```
|
|
256
|
+
BLOCKED: Missing rollback plan
|
|
257
|
+
Questions:
|
|
258
|
+
1. Bạn muốn rollback bằng git tag hay snapshot?
|
|
259
|
+
2. Có test suite nào để chạy sau khi upgrade không?
|
|
260
|
+
Recommended Assumptions: none
|
|
261
|
+
```
|
|
315
262
|
---
|
|
316
263
|
|
|
317
264
|
## Retry Policy
|
|
318
|
-
|
|
319
|
-
|
|
265
|
+
```
|
|
266
|
+
Install fails due to peer conflict
|
|
267
|
+
└─ run with --legacy-peer-deps
|
|
268
|
+
├─ PASS → log as PARTIAL
|
|
269
|
+
└─ FAIL → DO NOT retry again
|
|
270
|
+
```
|
|
320
271
|
---
|
|
321
272
|
## Exit Codes
|
|
322
273
|
|
|
@@ -329,4 +280,3 @@ schema_version: 2
|
|
|
329
280
|
|
|
330
281
|
---
|
|
331
282
|
|
|
332
|
-
|