ai-developer-skill-os 8.2.0 → 8.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (79) hide show
  1. package/.agents/LICENSE +21 -21
  2. package/.agents/README.md +90 -90
  3. package/.agents/docs/CHI_TIET_SKILLS.md +125 -125
  4. package/.agents/docs/MIGRATION-CLEANUP-V8.1.3.md +36 -36
  5. package/.agents/docs/MIGRATION-STATUS.md +35 -35
  6. package/.agents/docs/MIGRATION-V8.md +10 -10
  7. package/.agents/docs/V8-CERTIFICATION.md +27 -27
  8. package/.agents/docs/decisions/ADR-001-v8-migration.md +58 -58
  9. package/.agents/docs/decisions/ADR-002-workflow-separation.md +50 -50
  10. package/.agents/docs/decisions/ADR-003-registry-generated.md +54 -54
  11. package/.agents/docs/decisions/ADR-008-skill-boundary-review.md +27 -27
  12. package/.agents/registry/graph.json +4 -8
  13. package/.agents/registry/index.yaml +3 -4
  14. package/.agents/registry/skills-index.yml +525 -525
  15. package/.agents/rules/coding.md +10 -0
  16. package/.agents/rules/command-safety.md +37 -14
  17. package/.agents/rules/priorities.yml +13 -2
  18. package/.agents/rules/security.md +47 -7
  19. package/.agents/rules/skill-quality.md +32 -8
  20. package/.agents/skills/_template/SKILL.md +133 -132
  21. package/.agents/skills/_template/capability.yaml +20 -20
  22. package/.agents/skills/_template/evals/scorecard.yaml +19 -19
  23. package/.agents/skills/qk-access-policy/SKILL.md +4 -1
  24. package/.agents/skills/qk-agent-observability/SKILL.md +111 -0
  25. package/.agents/skills/qk-agent-observability/references/scorecard.yaml +80 -0
  26. package/.agents/skills/qk-ai-builder/SKILL.md +74 -5
  27. package/.agents/skills/qk-api-lifecycle/SKILL.md +4 -2
  28. package/.agents/skills/qk-bug-resolution/SKILL.md +3 -21
  29. package/.agents/skills/qk-code-review/SKILL.md +188 -189
  30. package/.agents/skills/qk-context-loader/SKILL.md +3 -47
  31. package/.agents/skills/qk-data-lifecycle/SKILL.md +7 -2
  32. package/.agents/skills/qk-db-optimizer/SKILL.md +3 -2
  33. package/.agents/skills/qk-design-system-engineering/SKILL.md +235 -112
  34. package/.agents/skills/qk-devops-platform/SKILL.md +241 -117
  35. package/.agents/skills/qk-docs/SKILL.md +3 -1
  36. package/.agents/skills/qk-engineering-standard/SKILL.md +4 -75
  37. package/.agents/skills/qk-engineering-standard/references/anti-patterns.md +121 -0
  38. package/.agents/skills/qk-engineering-standard/rules/frontend.md +1 -1
  39. package/.agents/skills/qk-fe-api-integration/SKILL.md +13 -32
  40. package/.agents/skills/qk-feature-delivery/SKILL.md +54 -202
  41. package/.agents/skills/qk-frontend-architecture/SKILL.md +258 -134
  42. package/.agents/skills/qk-help/SKILL.md +21 -159
  43. package/.agents/skills/qk-orchestrator/SKILL.md +2 -78
  44. package/.agents/skills/qk-orchestrator/references/routing-table.md +15 -3
  45. package/.agents/skills/qk-product-specification/SKILL.md +253 -130
  46. package/.agents/skills/qk-production-release/SKILL.md +32 -67
  47. package/.agents/skills/qk-project-bootstrap/SKILL.md +59 -8
  48. package/.agents/skills/qk-project-health/SKILL.md +4 -2
  49. package/.agents/skills/qk-project-memory/SKILL.md +3 -1
  50. package/.agents/skills/qk-security-audit/SKILL.md +259 -135
  51. package/.agents/skills/qk-system-evolution/SKILL.md +18 -68
  52. package/.agents/skills/qk-test-engineering/SKILL.md +262 -139
  53. package/.agents/skills/qk-ui-audit/SKILL.md +16 -89
  54. package/.agents/skills/qk-ui-audit/references/anti-slop-checklist.md +2 -2
  55. package/.agents/skills/qk-ui-builder/SKILL.md +482 -509
  56. package/.agents/skills/qk-ui-builder/references/component-cookbook.md +455 -1191
  57. package/.agents/skills/qk-ui-system-builder/SKILL.md +1 -5
  58. package/.agents/skills/qk-validation-gate/SKILL.md +0 -74
  59. package/.agents/skills/qk-web-quality-gate/SKILL.md +232 -114
  60. package/.agents/workflows/_schema.yml +146 -109
  61. package/.agents/workflows/bug-resolution.yml +121 -101
  62. package/.agents/workflows/code-review.yml +93 -77
  63. package/.agents/workflows/documentation.yml +90 -75
  64. package/.agents/workflows/feature-delivery.yml +120 -103
  65. package/.agents/workflows/refactor.yml +99 -81
  66. package/.agents/workflows/research.yml +75 -60
  67. package/.agents/workflows/security-audit.yml +115 -72
  68. package/.agents/workflows/skill-evolution.yml +97 -65
  69. package/.agents/workflows/spec-driven-development.yml +87 -57
  70. package/CHANGELOG.md +10 -0
  71. package/README.md +90 -90
  72. package/bin/install.js +330 -180
  73. package/package.json +2 -2
  74. package/.agents/CHANGELOG.md +0 -131
  75. package/.agents/learnings/draft/README.md +0 -37
  76. package/.agents/reports/RELEASE-CHECKLIST.md +0 -29
  77. package/.agents/reports/architecture-audit.md +0 -13
  78. package/.agents/reports/graph-health.md +0 -20
  79. package/.agents/reports/skill-audit.md +0 -215
@@ -1,81 +1,99 @@
1
- name: refactor
2
- version: 8.0.0
3
- description: "Pipeline refactor an toàn: giữ nguyên behavior bên ngoài, cải thiện chất lượng bên trong."
4
-
5
- owner:
6
- type: engineering
7
- maintained_by: qk-team
8
-
9
- verification_profile: refactor
10
-
11
- steps:
12
- - id: baseline
13
- name: "Thiết lập baseline"
14
- purpose: "Hiểu code hiện tại trước khi thay đổi"
15
- required: true
16
- skip_if: null
17
- inputs:
18
- - target_files
19
- - refactor_goal # e.g. "extract functions", "reduce complexity", "improve naming"
20
- outputs:
21
- - current_behavior_summary # What the code does now
22
- - pain_points # Specific issues to address
23
- - test_coverage_status # Có tests không?
24
- actions:
25
- - "Đọc toàn bộ target section"
26
- - " tả behavior hiện tại"
27
- - "Identify specific code smells"
28
- exit_on_fail: BLOCKED
29
-
30
- - id: plan
31
- name: "Lên kế hoạch refactor"
32
- purpose: "Quyết định approach để không thay đổi external behavior"
33
- required: true
34
- skip_if: null
35
- inputs:
36
- - pain_points
37
- - current_behavior_summary
38
- outputs:
39
- - refactor_steps # Ordered list of changes
40
- - risk_assessment # What could break
41
- - rollback_point # Git commit or checkpoint
42
- min_confidence: HIGH
43
- actions:
44
- - "Outline từng bước thay đổi"
45
- - "Xác định thể break"
46
-
47
- - id: execute
48
- name: "Thực hiện refactor"
49
- purpose: "Apply changes theo plan, step by step"
50
- required: true
51
- skip_if: null
52
- inputs:
53
- - refactor_steps
54
- outputs:
55
- - modified_files
56
- - changes_summary
57
- actions:
58
- - "Làm từng bước nhỏ, verify sau mỗi bước"
59
- - "Không refactor ngoài scope đã định"
60
- - "Không add functionality mới trong khi refactor"
61
-
62
- - id: verify
63
- name: "Verify behavior unchanged"
64
- purpose: "Xác nhận external behavior giống hệt trước refactor"
65
- required: true
66
- skip_if: null
67
- inputs:
68
- - current_behavior_summary
69
- - modified_files
70
- outputs:
71
- - behavior_preserved # true/false
72
- - test_results # pass/fail/na
73
- actions:
74
- - "Re-read modified sections"
75
- - "So sánh với current_behavior_summary"
76
- - "Chạy tests nếu "
77
- exit_on_fail: FAILED
78
-
79
- escalation:
80
- max_retries: 1
81
- on_failure: "Revert to rollback_point. Report what was completed and what remains."
1
+ name: refactor
2
+ version: 8.0.0
3
+ description: "Pipeline refactor an toàn: giữ nguyên behavior bên ngoài, cải thiện chất lượng bên trong."
4
+
5
+ owner:
6
+ type: engineering
7
+ maintained_by: qk-team
8
+
9
+ verification_profile: refactor
10
+
11
+ triggers:
12
+ - "refactor"
13
+ - "tái cấu trúc"
14
+ - "clean up this code"
15
+ - "simplify"
16
+ - "reduce complexity"
17
+ - "dọn dẹp code"
18
+
19
+ ide_binding:
20
+ slash_command: "/refactor"
21
+ aliases: ["/cleanup", "/simplify"]
22
+
23
+ steps:
24
+ - id: baseline
25
+ name: "Thiết lập baseline"
26
+ purpose: "Hiểu code hiện tại trước khi thay đổi"
27
+ required: true
28
+ skip_if: null
29
+ inputs:
30
+ - target_files
31
+ - refactor_goal # e.g. "extract functions", "reduce complexity", "improve naming"
32
+ outputs:
33
+ - current_behavior_summary # What the code does now
34
+ - pain_points # Specific issues to address
35
+ - test_coverage_status # Có tests không?
36
+ context_budget: 200
37
+ actions:
38
+ - "Đọc toàn bộ target section"
39
+ - "Mô tả behavior hiện tại"
40
+ - "Identify specific code smells"
41
+ exit_on_fail: BLOCKED
42
+
43
+ - id: plan
44
+ name: "Lên kế hoạch refactor"
45
+ purpose: "Quyết định approach để không thay đổi external behavior"
46
+ required: true
47
+ skip_if: null
48
+ inputs:
49
+ - pain_points
50
+ - current_behavior_summary
51
+ outputs:
52
+ - refactor_steps # Ordered list of changes
53
+ - risk_assessment # What could break
54
+ - rollback_point # Git commit or checkpoint
55
+ min_confidence: HIGH
56
+ actions:
57
+ - "Outline từng bước thay đổi"
58
+ - "Xác định thể break"
59
+ human_checkpoint:
60
+ condition: "risk_assessment cho thấy thể breaking change hoặc thiếu test coverage"
61
+ message: "Refactor rủi ro cao. Vui lòng duyệt qua refactor_steps và risk_assessment."
62
+ - id: execute
63
+ name: "Thực hiện refactor"
64
+ purpose: "Apply changes theo plan, step by step"
65
+ required: true
66
+ skip_if: null
67
+ inputs:
68
+ - refactor_steps
69
+ outputs:
70
+ - modified_files
71
+ - changes_summary
72
+ actions:
73
+ - "Làm từng bước nhỏ, verify sau mỗi bước"
74
+ - "Không refactor ngoài scope đã định"
75
+ - "Chỉ refactor, KHÔNG add behavior mới"
76
+ - "Đảm bảo code sau refactor pass R-C-09"
77
+ - "Không add functionality mới trong khi refactor"
78
+
79
+ - id: verify
80
+ name: "Verify behavior unchanged"
81
+ purpose: "Xác nhận external behavior giống hệt trước refactor"
82
+ required: true
83
+ skip_if: null
84
+ inputs:
85
+ - current_behavior_summary
86
+ - modified_files
87
+ outputs:
88
+ - behavior_preserved # true/false
89
+ - test_results # pass/fail/na
90
+ actions:
91
+ - "Re-read modified sections"
92
+ - "So sánh với current_behavior_summary"
93
+ - "Chạy tests nếu có"
94
+ - "Ghi log execution trace vào evals/traces/"
95
+ exit_on_fail: FAILED
96
+
97
+ escalation:
98
+ max_retries: 1
99
+ on_failure: "Revert to rollback_point. Report what was completed and what remains."
@@ -1,60 +1,75 @@
1
- name: research
2
- version: 8.0.0
3
- description: "Pipeline nghiên cứu codebase để hiểu context, dependency, và architecture trước khi thực hiện task lớn."
4
-
5
- owner:
6
- type: engineering
7
- maintained_by: qk-team
8
-
9
- verification_profile: review
10
-
11
- steps:
12
- - id: define_scope
13
- name: "Xác định phạm vi nghiên cứu"
14
- purpose: "Biết chính xác cần tìm hiểu gì để phục vụ task"
15
- required: true
16
- skip_if: null
17
- inputs:
18
- - research_goal # What decision does this research enable?
19
- outputs:
20
- - research_questions # Specific questions to answer
21
- - entry_points # Files to start reading
22
- exit_on_fail: BLOCKED
23
-
24
- - id: explore
25
- name: "Khám phá codebase"
26
- purpose: "Thu thập thông tin đủ để trả lời research questions"
27
- required: true
28
- skip_if: null
29
- inputs:
30
- - entry_points
31
- - research_questions
32
- outputs:
33
- - findings # Answers to research questions
34
- - dependency_map # How components relate
35
- - relevant_files # Files most relevant to the task
36
- actions:
37
- - "Dùng grep_search để tìm patterns, không đọc toàn bộ repo"
38
- - "Đọc targeted sections (≤ 100 lines per read)"
39
- - "Build mental model của dependency relationship"
40
-
41
- - id: synthesize
42
- name: "Tổng hợp kết quả"
43
- purpose: "Trả lời research questions + tạo context cho task tiếp theo"
44
- required: true
45
- skip_if: null
46
- inputs:
47
- - findings
48
- - dependency_map
49
- outputs:
50
- - context_summary # Ready-to-use context for next skill
51
- - architecture_notes # Key patterns conventions
52
- - warnings # Gotchas, deprecated patterns, risks
53
- actions:
54
- - "Viết summary ngắn gọn (không cần exhaustive)"
55
- - "Flag các pattern cũ/deprecated nếu thấy"
56
- - "Liệt relevant files để task tiếp theo load"
57
-
58
- escalation:
59
- max_retries: 1
60
- on_failure: "Report partial findings với confidence level"
1
+ name: research
2
+ version: 8.0.0
3
+ description: "Pipeline nghiên cứu codebase để hiểu context, dependency, và architecture trước khi thực hiện task lớn."
4
+
5
+ owner:
6
+ type: engineering
7
+ maintained_by: qk-team
8
+
9
+ verification_profile: review
10
+
11
+ triggers:
12
+ - "how does this work"
13
+ - "tìm hiểu codebase"
14
+ - "explore this repo"
15
+ - "nghiên cứu"
16
+ - "explain the architecture"
17
+ - "trace dependency"
18
+
19
+ ide_binding:
20
+ slash_command: "/research"
21
+ aliases: ["/explore", "/explain"]
22
+
23
+ steps:
24
+ - id: define_scope
25
+ name: "Xác định phạm vi nghiên cứu"
26
+ purpose: "Biết chính xác cần tìm hiểu gì để phục vụ task"
27
+ required: true
28
+ skip_if: null
29
+ inputs:
30
+ - research_goal # What decision does this research enable?
31
+ outputs:
32
+ - research_questions # Specific questions to answer
33
+ - entry_points # Files to start reading
34
+ exit_on_fail: BLOCKED
35
+
36
+ - id: explore
37
+ name: "Khám phá codebase"
38
+ purpose: "Thu thập thông tin đủ để trả lời research questions"
39
+ required: true
40
+ skip_if: null
41
+ inputs:
42
+ - entry_points
43
+ - research_questions
44
+ outputs:
45
+ - findings # Answers to research questions
46
+ - dependency_map # How components relate
47
+ - relevant_files # Files most relevant to the task
48
+ context_budget: 100
49
+ actions:
50
+ - "Dùng grep_search để tìm patterns, không đọc toàn bộ repo"
51
+ - "Đọc targeted sections (≤ 100 lines per read)"
52
+ - "Build mental model của dependency relationship"
53
+
54
+ - id: synthesize
55
+ name: "Tổng hợp kết quả"
56
+ purpose: "Trả lời research questions + tạo context cho task tiếp theo"
57
+ required: true
58
+ skip_if: null
59
+ inputs:
60
+ - findings
61
+ - dependency_map
62
+ outputs:
63
+ - context_summary # Ready-to-use context for next skill
64
+ - architecture_notes # Key patterns và conventions
65
+ - warnings # Gotchas, deprecated patterns, risks
66
+ actions:
67
+ - "Viết summary ngắn gọn (không cần exhaustive)"
68
+ - "Flag các pattern cũ/deprecated nếu thấy"
69
+ - "Báo cáo mọi pattern vi phạm R-SEC-04 nếu thấy"
70
+ - "Ghi log execution trace vào evals/traces/"
71
+ - "Liệt kê relevant files để task tiếp theo load"
72
+
73
+ escalation:
74
+ max_retries: 1
75
+ on_failure: "Report partial findings với confidence level"
@@ -1,72 +1,115 @@
1
- name: security-audit
2
- description: "Workflow kiểm toán an toàn mã nguồn và chống xâm nhập (Security Audit)."
3
- version: 1.0.0
4
-
5
- steps:
6
- - id: observe
7
- name: "Observe System"
8
- purpose: "Thu thập metadata về cấu trúc và các thành phần"
9
- required: true
10
- inputs: [source_code]
11
- outputs: [system_context]
12
- actions:
13
- - "Xác định tech stack, boundaries và các third-party libs"
14
-
15
- - id: dependency_scan
16
- name: "Dependency Scan"
17
- purpose: "Kiểm tra rủi ro từ package bên ngoài"
18
- required: true
19
- inputs: [system_context, package_files]
20
- outputs: [dependency_vulnerabilities]
21
- actions:
22
- - "Kiểm tra version cũ, thư viện có CVE"
23
-
24
- - id: secret_scan
25
- name: "Secret Scan"
26
- purpose: "Tìm kiếm thông tin nhạy cảm bị rỉ"
27
- required: true
28
- inputs: [source_code]
29
- outputs: [leaked_secrets]
30
- actions:
31
- - "Quét hardcoded API keys, tokens, passwords trong code"
32
-
33
- - id: permission_review
34
- name: "Permission Review"
35
- purpose: "Rà soát mô hình phân quyền và RBAC"
36
- required: true
37
- inputs: [system_context, access_control_code]
38
- outputs: [permission_flaws]
39
- actions:
40
- - "Kiểm tra nguyên tắc least privilege"
41
- - "Tìm lỗ hổng authentication/authorization bypass"
42
-
43
- - id: risk_classification
44
- name: "Risk Classification"
45
- purpose: "Đánh giá mức độ nghiêm trọng"
46
- required: true
47
- inputs: [dependency_vulnerabilities, leaked_secrets, permission_flaws]
48
- outputs: [classified_risks]
49
- actions:
50
- - "Phân loại LOW/MEDIUM/HIGH/CRITICAL"
51
-
52
- - id: recommendation
53
- name: "Recommendation"
54
- purpose: "Đề xuất giải pháp khắc phục"
55
- required: true
56
- inputs: [classified_risks]
57
- outputs: [security_report]
58
- actions:
59
- - "Tạo báo cáo chi tiết kèm actionable steps"
60
-
61
- - id: verify
62
- name: "Verify Fixes"
63
- purpose: "Đảm bảo lỗ hổng đã được vá"
64
- required: false
65
- inputs: [source_code, security_report]
66
- outputs: [final_audit_status]
67
- actions:
68
- - "Check lại các vị trí đã report"
69
-
70
- escalation:
71
- max_retries: 0
72
- on_failure: "Báo động đỏ (CRITICAL) nếu phát hiện secret leak"
1
+ name: security-audit
2
+ version: 8.0.0
3
+ description: "Workflow kiểm toán an toàn mã nguồn và chống xâm nhập (Security Audit)."
4
+
5
+ owner:
6
+ type: security
7
+ maintained_by: qk-team
8
+
9
+ verification_profile: security-audit
10
+
11
+ triggers:
12
+ - "security audit"
13
+ - "kiểm toán bảo mật"
14
+ - "check for vulnerabilities"
15
+ - "scan for secrets"
16
+ - "is this secure"
17
+ - "audit an toàn"
18
+
19
+ ide_binding:
20
+ slash_command: "/security-audit"
21
+ aliases: ["/audit", "/sec-scan"]
22
+
23
+ steps:
24
+ - id: observe
25
+ name: "Observe System"
26
+ purpose: "Thu thập metadata về cấu trúc các thành phần"
27
+ required: true
28
+ inputs:
29
+ - source_code
30
+ outputs:
31
+ - system_context
32
+ actions:
33
+ - "Xác định tech stack, boundaries và các third-party libs"
34
+
35
+ - id: dependency_scan
36
+ name: "Dependency Scan"
37
+ purpose: "Kiểm tra rủi ro từ package bên ngoài"
38
+ required: true
39
+ inputs:
40
+ - system_context
41
+ - package_files
42
+ outputs:
43
+ - dependency_vulnerabilities
44
+ actions:
45
+ - "Kiểm tra version cũ, thư viện có CVE"
46
+
47
+ - id: secret_scan
48
+ name: "Secret Scan"
49
+ purpose: "Tìm kiếm thông tin nhạy cảm bị rò rỉ"
50
+ required: true
51
+ inputs:
52
+ - source_code
53
+ outputs:
54
+ - leaked_secrets
55
+ actions:
56
+ - "Quét hardcoded API keys, tokens, passwords trong code"
57
+
58
+ - id: permission_review
59
+ name: "Permission Review"
60
+ purpose: "Rà soát mô hình phân quyền và RBAC"
61
+ required: true
62
+ inputs:
63
+ - system_context
64
+ - access_control_code
65
+ outputs:
66
+ - permission_flaws
67
+ actions:
68
+ - "Kiểm tra nguyên tắc least privilege"
69
+ - "Tìm lỗ hổng authentication/authorization bypass"
70
+
71
+ - id: risk_classification
72
+ name: "Risk Classification"
73
+ purpose: "Đánh giá mức độ nghiêm trọng"
74
+ required: true
75
+ inputs:
76
+ - dependency_vulnerabilities
77
+ - leaked_secrets
78
+ - permission_flaws
79
+ outputs:
80
+ - classified_risks
81
+ actions:
82
+ - "Phân loại LOW/MEDIUM/HIGH/CRITICAL"
83
+
84
+ - id: recommendation
85
+ name: "Recommendation"
86
+ purpose: "Đề xuất giải pháp khắc phục"
87
+ required: true
88
+ inputs:
89
+ - classified_risks
90
+ outputs:
91
+ - security_report
92
+ actions:
93
+ - "Tạo báo cáo chi tiết kèm actionable steps"
94
+ - "Đề xuất giải pháp phải enforce R-SEC-04"
95
+ human_checkpoint:
96
+ condition: "classified_risks chứa bất kỳ mục nào ở mức CRITICAL"
97
+ message: "Phát hiện lỗ hổng CRITICAL. Xác nhận trước khi tiến hành áp dụng fix."
98
+ - id: verify
99
+ name: "Verify Fixes"
100
+ purpose: "Đảm bảo lỗ hổng đã được vá"
101
+ required: true
102
+ skip_if: "Không có remediation nào được apply trong phiên làm việc này"
103
+ inputs:
104
+ - source_code
105
+ - security_report
106
+ outputs:
107
+ - final_audit_status
108
+ actions:
109
+ - "Check lại các vị trí đã report"
110
+ - "Ghi log execution trace vào evals/traces/"
111
+ exit_on_fail: PARTIAL
112
+
113
+ escalation:
114
+ max_retries: 0
115
+ on_failure: "Báo động đỏ (CRITICAL) nếu phát hiện secret leak"