ai-developer-skill-os 10.1.0 → 10.2.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 (98) hide show
  1. package/.agents/AGENTS.md +13 -0
  2. package/.agents/LICENSE +21 -21
  3. package/.agents/docs/ARCHITECTURE.md +56 -120
  4. package/.agents/docs/GOVERNANCE.md +3 -3
  5. package/.agents/docs/SPEC.md +137 -60
  6. package/.agents/docs/VERSIONING.md +25 -57
  7. package/.agents/docs/adr/0005-v10-platform-consolidation.md +50 -0
  8. package/.agents/docs/schemas/learning.schema.yml +22 -57
  9. package/.agents/docs/schemas/skill.schema.yml +116 -161
  10. package/.agents/docs/schemas/workflow.schema.yml +51 -26
  11. package/.agents/docs/skill-classification.md +1 -1
  12. package/.agents/registry/graph.json +171 -77
  13. package/.agents/registry/index.yaml +68 -35
  14. package/.agents/rules/coding.md +1 -1
  15. package/.agents/rules/command-safety.md +1 -1
  16. package/.agents/rules/global.md +1 -1
  17. package/.agents/rules/prompt-compiler.md +1 -1
  18. package/.agents/rules/safety.md +1 -1
  19. package/.agents/rules/security.md +1 -1
  20. package/.agents/rules/skill-quality.md +18 -3
  21. package/.agents/skills/_template/SKILL.md +238 -88
  22. package/.agents/skills/qk-api-data-discovery/SKILL.md +176 -190
  23. package/.agents/skills/qk-api-data-discovery/references/bronze-record-format.md +47 -0
  24. package/.agents/skills/qk-api-data-discovery/references/data-contract-yaml.md +72 -0
  25. package/.agents/skills/qk-api-data-discovery/references/discovery-report-template.md +110 -0
  26. package/.agents/skills/qk-backend-data/SKILL.md +150 -1
  27. package/.agents/skills/qk-bug-resolution/SKILL.md +153 -1
  28. package/.agents/skills/qk-bug-resolution/evals/scorecard.yaml +1 -1
  29. package/.agents/skills/qk-code-cleaner/SKILL.md +150 -1
  30. package/.agents/skills/qk-code-review/SKILL.md +195 -1
  31. package/.agents/skills/qk-code-review/evals/scorecard.yaml +1 -1
  32. package/.agents/skills/qk-code-review/references/ai/{v8-schema-validation.md → schema-validation.md} +2 -2
  33. package/.agents/skills/qk-code-review/references/cross-cutting/async-concurrency-patterns.md +515 -515
  34. package/.agents/skills/qk-code-review/references/cross-cutting/error-handling-principles.md +492 -492
  35. package/.agents/skills/qk-code-review/references/cross-cutting/n-plus-one-queries.md +309 -309
  36. package/.agents/skills/qk-code-review/references/cross-cutting/sql-injection-prevention.md +307 -307
  37. package/.agents/skills/qk-code-review/references/cross-cutting/xss-prevention.md +263 -263
  38. package/.agents/skills/qk-code-review/references/languages/angular.md +768 -768
  39. package/.agents/skills/qk-code-review/references/languages/c.md +890 -890
  40. package/.agents/skills/qk-code-review/references/languages/cpp.md +893 -893
  41. package/.agents/skills/qk-code-review/references/languages/css-less-sass.md +661 -661
  42. package/.agents/skills/qk-code-review/references/languages/django.md +985 -985
  43. package/.agents/skills/qk-code-review/references/languages/fastapi.md +580 -580
  44. package/.agents/skills/qk-code-review/references/languages/go.md +993 -993
  45. package/.agents/skills/qk-code-review/references/languages/java.md +409 -409
  46. package/.agents/skills/qk-code-review/references/languages/java8.md +586 -586
  47. package/.agents/skills/qk-code-review/references/languages/kotlin.md +1018 -1018
  48. package/.agents/skills/qk-code-review/references/languages/nestjs.md +593 -593
  49. package/.agents/skills/qk-code-review/references/languages/php.md +684 -684
  50. package/.agents/skills/qk-code-review/references/languages/python.md +1073 -1073
  51. package/.agents/skills/qk-code-review/references/languages/qt.md +757 -757
  52. package/.agents/skills/qk-code-review/references/languages/react.md +871 -871
  53. package/.agents/skills/qk-code-review/references/languages/ruby.md +964 -964
  54. package/.agents/skills/qk-code-review/references/languages/rust.md +846 -846
  55. package/.agents/skills/qk-code-review/references/languages/svelte.md +1064 -1064
  56. package/.agents/skills/qk-code-review/references/languages/swift.md +936 -936
  57. package/.agents/skills/qk-code-review/references/languages/typescript.md +1016 -1016
  58. package/.agents/skills/qk-code-review/references/languages/vue.md +924 -924
  59. package/.agents/skills/qk-code-review/references/languages/zig.md +440 -440
  60. package/.agents/skills/qk-devops-release/SKILL.md +150 -1
  61. package/.agents/skills/qk-feature-delivery/SKILL.md +153 -1
  62. package/.agents/skills/qk-feature-delivery/evals/scorecard.yaml +1 -1
  63. package/.agents/skills/qk-orchestrator/SKILL.md +187 -2
  64. package/.agents/skills/qk-orchestrator/evals/scorecard.yaml +1 -1
  65. package/.agents/skills/qk-orchestrator/references/routing-table.md +1 -1
  66. package/.agents/skills/qk-product-spec/SKILL.md +150 -1
  67. package/.agents/skills/qk-prompt-compiler/SKILL.md +188 -65
  68. package/.agents/skills/qk-ui-engineer/SKILL.md +150 -1
  69. package/.agents/workflows/_schema.yml +146 -146
  70. package/.agents/workflows/bug-resolution.yml +155 -121
  71. package/.agents/workflows/code-review.yml +127 -93
  72. package/.agents/workflows/context-discovery.yml +128 -94
  73. package/.agents/workflows/documentation.yml +124 -90
  74. package/.agents/workflows/feature-delivery.yml +158 -124
  75. package/.agents/workflows/production-release.yml +207 -173
  76. package/.agents/workflows/prompt-compilation.yml +126 -0
  77. package/.agents/workflows/refactor.yml +136 -102
  78. package/.agents/workflows/security-audit.yml +149 -115
  79. package/.agents/workflows/shared/quality-gate.yml +3 -1
  80. package/.agents/workflows/skin-governance.yml +149 -115
  81. package/.agents/workflows/spec-driven-development.yml +78 -71
  82. package/CHANGELOG.md +61 -0
  83. package/README.md +3 -3
  84. package/bin/install.js +38 -51
  85. package/package.json +68 -74
  86. package/tooling/build-registry.js +226 -208
  87. package/tooling/run-aar.js +55 -126
  88. package/tooling/sync-versions.js +2 -2
  89. package/tooling/validate-graph.js +100 -87
  90. package/tooling/validate-skills.js +32 -14
  91. package/.agents/docs/decisions/ADR-001-v8-migration.md +0 -58
  92. package/.agents/docs/decisions/ADR-002-workflow-separation.md +0 -50
  93. package/.agents/docs/decisions/ADR-003-registry-generated.md +0 -54
  94. package/.agents/docs/decisions/ADR-008-skill-boundary-review.md +0 -27
  95. package/.agents/registry/capability-graph.yml +0 -390
  96. package/.agents/registry/skills-index.yml +0 -305
  97. package/.agents/skills/_template/capability.yaml +0 -34
  98. package/.agents/skills/_template/evals/scorecard.yaml +0 -19
package/.agents/AGENTS.md CHANGED
@@ -124,6 +124,19 @@ Nếu không khớp rõ → dùng `qk-orchestrator`.
124
124
 
125
125
  ---
126
126
 
127
+ [Platform-Specific Instructions]
128
+ Each IDE has a different entry point and context window:
129
+
130
+ | IDE | Entry Point | Context | Tool Format |
131
+ |---|---|---|---|
132
+ | **Antigravity** | | Large | Custom Cockpit |
133
+ | **Claude** | | ~200K tokens | Read/Write/Edit/Bash |
134
+ | **OpenCode** | | ~128K tokens | Custom |
135
+
136
+ Each skill has in frontmatter and a section.
137
+
138
+ ---
139
+
127
140
  [Trigger Mechanism]
128
141
  Two ways to activate a skill:
129
142
 
package/.agents/LICENSE CHANGED
@@ -1,21 +1,21 @@
1
- MIT License
2
-
3
- Copyright (c) 2026 Quang Khánh
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Quang Khánh
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -1,4 +1,4 @@
1
- # AI Developer Skill OS — V8 Architecture
1
+ # AI Developer Skill OS — V10 Architecture
2
2
 
3
3
  ## Source of Truth
4
4
 
@@ -10,12 +10,51 @@
10
10
  | File | Editable? | Generated from |
11
11
  |---|---|---|
12
12
  | `.agents/skills/*/SKILL.md` | ✅ YES | — (source) |
13
- | `.agents/registry/skills-index.yml` | ❌ NO | `tooling/generate-registry.js` |
14
- | `skills.json` | ❌ NO | `tooling/generate-registry.js` |
13
+ | `.agents/registry/index.yaml` | ❌ NO | `node tooling/build-registry.js` |
14
+ | `.agents/registry/graph.json` | ❌ NO | `node tooling/build-registry.js` |
15
15
 
16
16
  Regenerate after any SKILL.md change:
17
17
  ```bash
18
- node tooling/generate-registry.js
18
+ node tooling/build-registry.js
19
+ ```
20
+
21
+ ---
22
+
23
+ ## Directory Structure
24
+
25
+ ```
26
+ .agents/
27
+ ├── AGENTS.md # Master configuration for all AI coding agents
28
+ ├── DEV_PROFILE.md # Developer role + stack profile
29
+ ├── rules/ # Behavior policies (global, coding, security, safety...)
30
+ ├── skills/ # 11 Super-Skills + _template
31
+ │ ├── qk-orchestrator/
32
+ │ ├── qk-prompt-compiler/
33
+ │ ├── qk-product-spec/
34
+ │ ├── qk-feature-delivery/
35
+ │ ├── qk-bug-resolution/
36
+ │ ├── qk-code-cleaner/
37
+ │ ├── qk-code-review/
38
+ │ ├── qk-ui-engineer/
39
+ │ ├── qk-backend-data/
40
+ │ ├── qk-devops-release/
41
+ │ ├── qk-api-data-discovery/
42
+ │ └── _template/
43
+ ├── workflows/ # 12 execution pipelines (YAML)
44
+ │ ├── shared/
45
+ │ └── *_workflow*.yml
46
+ ├── registry/ # Generated runtime artifacts
47
+ │ ├── index.yaml # Lightweight lookup
48
+ │ └── graph.json # O(1) adjacency graph
49
+ ├── docs/ # Architecture documentation
50
+ └── knowledge/ # Design intelligence patterns & templates
51
+
52
+ tooling/
53
+ ├── build-registry.js # Generate index.yaml + graph.json
54
+ ├── validate-skills.js # Validate all SKILL.md files
55
+ ├── validate-graph.js # Validate graph integrity
56
+ ├── sync-versions.js # Sync version across all files
57
+ └── run-aar.js # Run after-action review
19
58
  ```
20
59
 
21
60
  ---
@@ -29,128 +68,25 @@ User / Calling Agent
29
68
  AGENTS.md ← Entry point. Read this first.
30
69
  │
31
70
  ▼
32
- registry/skills-index.yml ← Find candidate skills by task keywords
71
+ qk-orchestrator ← Route to correct Super-Skill
33
72
  │
34
73
  ▼
35
- skills/qk-*/SKILL.md ← Confirm intent, preconditions, complexity
74
+ [Target Super-Skill] ← Execute with Role Adaptation
36
75
  │
37
- ├── rules: [global, coding, safety] ← Load relevant rules
38
- │
39
- ├── workflow: bug-resolution ← Load execution pipeline
76
+ ▼
77
+ Evidence Gate ← Verify CLAIM <= EVIDENCE
40
78
  │
41
- └── verification: strategy ← Know how to verify
42
- │
43
- ▼
44
- Execute workflow steps
45
- │
46
- ▼
47
- Exit with: SUCCESS | BLOCKED | FAILED | PARTIAL
48
- │
49
- ▼
50
- learnings/ ← (human) Document lessons learned
51
- ```
52
-
53
- ---
54
-
55
- ## Domain Map
56
-
57
- | Domain | Path | Question Answered | Owner |
58
- |---|---|---|---|
59
- | Rules | `.agents/rules/` | How should agent behave? | Architect |
60
- | Workflows | `.agents/workflows/` | What sequence to follow? | Architect |
61
- | Skills | `.agents/skills/` | What can agent do? | Skill author |
62
- | Examples | `.agents/examples/` | What does good output look like? | Human |
63
- | Learnings | `.agents/learnings/` | What lessons are validated? | Human |
64
- | Registry | `.agents/registry/` | Which skill for this task? | Generated |
65
-
66
- ---
67
-
68
- ## Skill Anatomy (V8)
69
-
70
- ```
71
- SKILL.md
72
- ├── frontmatter (YAML)
73
- │ ├── Identity: name, version, description
74
- │ ├── Classification: type, intent, triggers, complexity
75
- │ ├── References: workflow, rules, tools, related_skills
76
- │ ├── Verification: required, strategy
77
- │ └── Runtime: execution_mode, token_budget, exit_codes
78
- │
79
- └── body (Markdown)
80
- ├── Preconditions
81
- ├── Scope (✅ does / ❌ does not)
82
- └── Output Format
83
- ```
84
-
85
- The skill body contains **what** and **when**. The referenced **workflow** contains **how**.
86
-
87
- ---
88
-
89
- ## Retrieval Path (AI-Native)
90
-
91
- When given a task, the agent MUST:
92
-
93
- ```
94
- 1. Read registry/skills-index.yml
95
- → triggers matching → candidate_skills[]
96
-
97
- 2. Read candidate SKILL.md(s)
98
- → confirm intent + preconditions met?
99
- → if BLOCKED: ask user for missing info
100
-
101
- 3. Load workflow YAML
102
- → understand step inputs/outputs
103
-
104
- 4. Load referenced rules (global.md always, coding.md if edit_files)
105
-
106
- 5. Execute step by step
107
- → each step: check inputs → execute → verify outputs
108
-
109
- 6. Exit with code + report
110
- ```
111
-
112
- **Do NOT:**
113
- - Load all 22 skills at once
114
- - Read entire files without targeted grep first
115
- - Proceed without verifying preconditions
116
-
117
- ---
118
-
119
- ## Knowledge Lifecycle
120
-
121
- ```
122
- Observation (agent)
123
- ↓
124
- Draft Learning (auto-created on FAILED exit)
125
- ↓
126
- Human Review
127
- ↓
128
- Validated Learning (human promotes with evidence)
129
- ↓
130
- Referenced in Skill / Workflow
131
- ↓
132
- Deprecated (when superseded by newer evidence)
79
+ ▼
80
+ Exit Code ← SUCCESS | PARTIAL | BLOCKED | FAILED
133
81
  ```
134
82
 
135
83
  ---
136
84
 
137
- ## Versioning Summary
138
-
139
- See [VERSIONING.md](./VERSIONING.md) for full policy.
140
-
141
- | Change Type | Version Bump |
142
- |---|---|
143
- | Breaking schema change | Major (8.x.x → 9.0.0) |
144
- | New skill / workflow | Minor (8.0.x → 8.1.0) |
145
- | Fix typo / improve description | Patch (8.0.0 → 8.0.1) |
146
-
147
- ---
148
-
149
- ## File Conventions
85
+ ## V10.2 Key Principles
150
86
 
151
- | Pattern | Purpose |
152
- |---|---|
153
- | `_schema.yml` | Schema definition (not a skill/workflow) |
154
- | `README.md` in empty dirs | Placeholder + instructions |
155
- | `ADR-NNN-*.md` | Architecture Decision Record |
156
- | `[validated]` in git message | Promotes draft learning to validated |
87
+ 1. **Confidence Model**: Every routing decision has HIGH/MEDIUM/LOW confidence
88
+ 2. **Exit Codes**: Every skill defines SUCCESS/PARTIAL/BLOCKED/FAILED
89
+ 3. **Evidence Format**: Structured evidence with severity, confidence, fix suggestion
90
+ 4. **Compliance**: Every skill has a compliance checklist with schema_version 10.2.0
91
+ 5. **Zero Orphans**: All 11 skills connected in graph (Score 100/100)
92
+ 6. **No Duplicate Systems**: Single skill system under `.agents/skills/` only
@@ -30,9 +30,9 @@ A change is considered **Breaking** if it:
30
30
 
31
31
  ## 5. Versioning Strategy (Semantic Versioning)
32
32
  We strictly adhere to SemVer based on the framework's architecture, not just content.
33
- - **MAJOR (e.g., v4.0.0 to v6.0.0):** Breaking changes to the Kernel (`AGENTS.md`), Metadata Contract (`SPEC.md`), or fundamental routing.
34
- - **MINOR (e.g., v4.0.0 to v4.1.0):** Adding new Capabilities, new default Skills, new Knowledge docs, or new Templates.
35
- - **PATCH (e.g., v4.0.0 to v4.0.1):** Fixing typos in docs, updating README, or minor bug fixes within an individual skill's SOP.
33
+ - **MAJOR (e.g., v10.x.x to v11.0.0):** Breaking changes to the Kernel (`AGENTS.md`), Metadata Contract (`SPEC.md`), or fundamental routing.
34
+ - **MINOR (e.g., v10.2.0 to v10.3.0):** Adding new Capabilities, new default Skills, new Knowledge docs, or new Templates.
35
+ - **PATCH (e.g., v10.2.0 to v10.2.1):** Fixing typos in docs, updating README, or minor bug fixes within an individual skill's SOP.
36
36
 
37
37
  ## 6. PR Review Process
38
38
  1. **Architecture Compliance:** Does the PR violate the Kernel Freeze? Are all skills compliant with `SPEC.md`?
@@ -1,4 +1,4 @@
1
- # AI Developer Skill OS - Specification (v7.5)
1
+ # AI Developer Skill OS - Specification (V10.2.0)
2
2
 
3
3
  This document defines the strict contract and schema for all `SKILL.md` files in the AI Developer Skill OS. Every active skill MUST comply with this specification. The frontmatter is frozen to ensure cross-platform compatibility and deterministic agent behavior.
4
4
 
@@ -8,28 +8,57 @@ Every `SKILL.md` must begin with this exact YAML structure. Do not add, remove,
8
8
 
9
9
  ```yaml
10
10
  ---
11
+ # ── Identity ───────────────────────────────────────
11
12
  name: qk-[skill-name]
12
- category: [core|frontend|backend|fullstack|security|qa|maintenance|devops|utilities]
13
- version: X.Y.Z
14
- description: "[One sentence — what this skill does]"
15
- platforms: [antigravity, claude-code, cursor, windsurf, kilo-code]
16
- execution_mode: deterministic
13
+ version: 10.2.0
14
+ status: stable
15
+ description: "[Một câu — skill này làm gì và dành cho ai]"
16
+ platforms: [antigravity, claude, opencode]
17
+
18
+ # ── Classification ─────────────────────────────────
19
+ type: capability # capability | utility | orchestrator
20
+ runtime_version: 1
21
+
22
+ intent:
23
+ - [primary-intent]
24
+ - [secondary-intent]
25
+
26
+ complexity:
27
+ level: medium # low | medium | high | critical
28
+
29
+ triggers:
30
+ - "[trigger phrase 1]"
17
31
 
18
- # Orchestrator routing metadata
19
- cost: [low|medium|high]
20
- latency: [fast|medium|slow]
21
- risk: [low|medium|high]
22
- side_effects: [edit_files|run_commands|read_only|none]
23
- produces: [report|code|schema|plan|tokens]
24
- consumes: [context-graph|design-md|stack-trace|json-payload|none]
32
+ selection:
33
+ priority: medium # high | medium | low
34
+ confidence_threshold: 0.75
25
35
 
36
+ # ── References ─────────────────────────────────────
37
+ workflow: [workflow-name]
38
+ rules:
39
+ - global
40
+ tools:
41
+ - filesystem
42
+
43
+ # ── Runtime ────────────────────────────────────────
44
+ execution_mode: deterministic
26
45
  token_budget:
27
46
  max_files_read: 3
28
47
  max_lines_per_read: 150
29
48
  max_shell_commands: 2
30
49
  stop_early: true
31
50
 
32
- exit_codes: [SUCCESS, BLOCKED, FAILED, PARTIAL]
51
+ # ── V10 Required ───────────────────────────────────
52
+ exit_codes:
53
+ SUCCESS: "Task completed"
54
+ PARTIAL: "Task done with gaps"
55
+ BLOCKED: "Missing precondition"
56
+ FAILED: "Task failed"
57
+
58
+ compliance:
59
+ schema_version: 10.2.0
60
+ runtime_version: 1
61
+ platforms: [antigravity, claude, opencode]
33
62
  ---
34
63
  ```
35
64
 
@@ -38,50 +67,98 @@ exit_codes: [SUCCESS, BLOCKED, FAILED, PARTIAL]
38
67
  | Field | Type | Required | Description |
39
68
  |-------|------|----------|-------------|
40
69
  | `name` | string | YES | Skill identifier, must start with `qk-` |
41
- | `category` | enum | YES | Primary domain: `core`, `frontend`, `backend`, `fullstack`, `security`, `qa`, `maintenance`, `devops`, `utilities` |
42
- | `version` | semver | YES | Semantic version of this skill |
70
+ | `version` | semver | YES | Must be `10.2.0` |
71
+ | `status` | enum | YES | `stable`, `experimental`, or `deprecated` |
43
72
  | `description` | string | YES | One-sentence summary of the skill's purpose |
44
- | `platforms` | array | YES | Supported AI platforms. Valid values: `antigravity`, `claude-code`, `cursor`, `windsurf`, `kilo-code` |
45
- | `execution_mode` | string | YES | Must be `deterministic` for all v7.5 skills |
46
- | `cost` | enum | YES | Token/compute cost: `low`, `medium`, `high` |
47
- | `latency` | enum | YES | Expected execution speed: `fast`, `medium`, `slow` |
48
- | `risk` | enum | YES | Risk level of side effects: `low`, `medium`, `high` |
49
- | `side_effects` | enum | YES | What the skill modifies: `edit_files`, `run_commands`, `read_only`, `none` |
50
- | `produces` | array | YES | Output artifacts: `report`, `code`, `schema`, `plan`, `tokens` |
51
- | `consumes` | array | YES | Required inputs: `context-graph`, `design-md`, `stack-trace`, `json-payload`, `none` |
52
- | `token_budget.max_files_read` | int | YES | Maximum files to read before stopping |
53
- | `token_budget.max_lines_per_read` | int | YES | Maximum lines per file read operation |
54
- | `token_budget.max_shell_commands` | int | YES | Maximum shell commands allowed |
55
- | `token_budget.stop_early` | bool | YES | Whether to stop when confidence threshold is reached |
56
- | `exit_codes` | array | YES | Valid exit codes for this skill |
57
-
58
- ## 2. Skill Body Structure (Markdown)
59
-
60
- The body of the `SKILL.md` file MUST contain the following sections in order:
61
-
62
- 1. **Header:** Skill title and language rule
63
- 2. **Preconditions:** Checklist of required inputs/state before execution
64
- 3. **Scope:** What the skill explicitly does (✅) and does not do (❌)
65
- 4. **Priority Order:** P1–P4 checks with skip thresholds for token budget management
66
- 5. **Workflow:** Phased execution steps with explicit decision trees and exit conditions
67
- 6. **Confidence Model:** HIGH/MEDIUM/LOW confidence levels with actions
68
- 7. **Severity:** CRITICAL/HIGH/MEDIUM/LOW severity definitions with examples
69
- 8. **Evidence Format:** Mandatory template for all findings
70
- 9. **Retry Policy:** Retry logic with maximum attempt limits
71
- 10. **Escalation Rules:** Structured BLOCKED response format
72
- 11. **Handoff Contract:** JSON schema for `Consumes` and `Produces`
73
- 12. **Output Format:** Mandatory output template
74
- 13. **Exit Codes:** Table mapping codes to meanings
75
-
76
- ## 3. Naming Conventions
77
-
78
- - Skill files: `skills/qk-[skill-name]/SKILL.md`
79
- - Registry entry: `qk-[skill-name]`
80
- - All code, identifiers, and file names: English only
81
- - Explanations and reports: Vietnamese (match user language)
82
-
83
- ## 4. Compliance Enforcement
84
-
85
- - All skills MUST pass `npm run lint` (which validates frontmatter against this spec)
86
- - The `## Compliance` table at the bottom of each `SKILL.md` is deprecated and MUST be removed
87
- - CI pipeline enforces schema compliance automatically
73
+ | `platforms` | array | YES | Supported IDEs. Valid values: `antigravity`, `claude`, `opencode` |
74
+ | `type` | enum | YES | Primary domain: `capability`, `utility`, `orchestrator` |
75
+ | `runtime_version` | integer | YES | Runtime version (currently `1`) |
76
+ | `execution_mode` | string | YES | Must be `deterministic` for all V10 skills |
77
+ | `intent` | array | YES | Primary and secondary intents |
78
+ | `complexity.level` | enum | YES | `low`, `medium`, `high`, `critical` |
79
+ | `triggers` | array | YES | Keywords that route AI to this skill |
80
+ | `selection.priority` | enum | YES | `high`, `medium`, `low` |
81
+ | `workflow` | string | YES | References `workflows/<name>.yml` |
82
+ | `exit_codes` | object | YES | SUCCESS, PARTIAL, BLOCKED, FAILED with meanings |
83
+ | `compliance` | object | YES | schema_version, runtime_version, platforms |
84
+
85
+ ---
86
+
87
+ ## 2. Required Body Sections (V10.2)
88
+
89
+ Every `SKILL.md` body MUST contain sections in this order:
90
+
91
+ ```
92
+ ## 1. Nguyên Tắc Cốt Lõi & Luật Chống Over-Engineering
93
+ ## 2. Giới Hạn Kỹ Thuật & Cấm Kỵ Tuyệt Đối (Hard Boundaries)
94
+ ## 3. Quy Trình Thực Hiện Theo Bước (Sequential Procedure)
95
+ ## 4. Xử Lý Sự Cố Khi Thất Bại (Failure Path) [if applicable]
96
+ ## 5. Thích Ứng Theo Role Kỹ Thuật (Role Adaptation) [if applicable]
97
+ ## 6. Mô Hình Độ Tin Cậy (Confidence Model)
98
+ ## 7. Bằng Chứng Định Dạng (Evidence Format)
99
+ ## 8. Thoái Ra Mã (Exit Codes)
100
+ ## 9. Chính Sách Retry (Retry Policy) [if applicable]
101
+ ## 10. Platform-Specific Instructions
102
+ ## 11. Compliance
103
+ ```
104
+
105
+ ### V10 Key Requirements
106
+
107
+ - **Confidence Model**: Every skill defines HIGH/MEDIUM/LOW confidence levels
108
+ - **Exit Codes**: Every skill defines SUCCESS/PARTIAL/BLOCKED/FAILED
109
+ - **Evidence Format**: Every skill has structured evidence format with severity + confidence
110
+ - **Compliance**: Every skill ends with Compliance check table (schema_version 10.2.0)
111
+ - **Platform-Specific**: Every skill has instructions for Antigravity, Claude, OpenCode
112
+
113
+ ---
114
+
115
+ ## 3. Supported Platforms
116
+
117
+ | Platform | Config File | Context Window | Tool Format |
118
+ |----------|-------------|----------------|-------------|
119
+ | **Antigravity** (Google Gemini) | `.agents/AGENTS.md` | Large | Custom Cockpit |
120
+ | **Claude** (Anthropic) | `.claude/CLAUDE.md` | ~200K tokens | Native (Read/Write/Edit/Bash) |
121
+ | **OpenCode** (Open Source) | `.opencode/config.yaml` | ~128K tokens | Custom |
122
+
123
+ ---
124
+
125
+ ## 4. Registry Schema
126
+
127
+ | File | Format | Generated by |
128
+ |------|--------|--------------|
129
+ | `.agents/registry/index.yaml` | YAML | `node tooling/build-registry.js` |
130
+ | `.agents/registry/graph.json` | JSON | `node tooling/build-registry.js` |
131
+
132
+ Each graph node includes: `path`, `version`, `platforms`, `tags`, `dependencies`, `dependents`, `is_orphan`.
133
+
134
+ ---
135
+
136
+ ## 5. Validation
137
+
138
+ ```bash
139
+ # Validate all skill files
140
+ node tooling/validate-skills.js # 11/11 valid
141
+
142
+ # Validate graph integrity
143
+ node tooling/validate-graph.js # Score 100/100
144
+
145
+ # Rebuild registry
146
+ node tooling/build-registry.js # 11 active, 0 archived
147
+
148
+ # Sync versions across repo
149
+ node tooling/sync-versions.js # All files to 10.2.0
150
+
151
+ # Run full test suite
152
+ npm run test:registry # All tests pass
153
+ ```
154
+
155
+ ---
156
+
157
+ ## Changelog
158
+
159
+ | Version | Change |
160
+ |---------|--------|
161
+ | V10.2.0 | 3 IDEs (Antigravity, Claude, OpenCode), platform-specific sections, platforms field |
162
+ | V10.1.0 | 11 Super-Skills, API Discovery Engine, Prompt Compiler Control Plane |
163
+ | V9.x | Legacy multi-skill system (29+ skills) |
164
+ | V8.x | Structured skill system |
@@ -1,95 +1,63 @@
1
- # Versioning Policy — AI Developer Skill OS V8
1
+ # Versioning Policy — AI Developer Skill OS V10
2
2
 
3
3
  ## Semantic Versioning: `MAJOR.MINOR.PATCH`
4
4
 
5
- Current: `8.0.0`
5
+ Current: `10.2.0`
6
6
 
7
7
  ### Bản đồ Kiến trúc các Phiên bản
8
8
 
9
9
  | Version | Identity | Architecture |
10
10
  | ------- | ------------------------- | ------------------------------------------ |
11
11
  | V7 | Prompt Collection | Static instructions |
12
- | V8.0 | Skill System | Structured capabilities |
13
- | V8.1.x | Governed Capability Graph | Decision boundaries + lifecycle governance |
14
- | V8.2 | Adaptive Agent OS | Analytics + feedback + adaptive routing |
12
+ | V8.x | Skill System | Structured capabilities |
13
+ | V9.x | Governed Capability Graph | Decision boundaries + lifecycle governance |
14
+ | V10.x | 11 Super-Skills | V10.2 — Confidence Model, Exit Codes, Evidence Format, Compliance |
15
15
 
16
16
  ---
17
17
 
18
18
  ## When to bump each segment
19
19
 
20
- ### MAJOR (8.x.x → 9.0.0)
20
+ ### MAJOR (10.x.x → 11.0.0)
21
21
  Breaking changes that require skill/workflow authors to update their files.
22
22
 
23
- ```
24
- ✅ Examples:
25
- - Removing or renaming a required frontmatter field
26
- - Changing the schema of workflow steps (removing inputs/outputs)
27
- - Changing exit_codes semantics
28
- - Architecture restructure that changes file paths
29
- ```
30
-
31
- **Gate:** Requires ADR + announcement. All existing skills must be migrated.
32
-
33
- ---
34
-
35
- ### MINOR (8.0.x → 8.1.0)
23
+ ### MINOR (10.2.0 → 10.3.0)
36
24
  Backward-compatible additions.
37
25
 
38
26
  ```
39
27
  ✅ Examples:
40
28
  - Adding a new skill
41
29
  - Adding a new workflow
42
- - Adding a new optional frontmatter field
30
+ - Adding a new reference file
43
31
  - Adding a new rule to rules/
44
- - Adding a new example or validated learning
45
32
  ```
46
33
 
47
34
  **Gate:** No migration required. Existing skills remain valid.
48
35
 
49
- ---
50
-
51
- ### PATCH (8.0.0 → 8.0.1)
52
- Backward-compatible fixes and improvements.
53
-
54
- ```
55
- ✅ Examples:
56
- - Fixing a typo in SKILL.md body
57
- - Improving description or explanation
58
- - Adding an example to an existing skill
59
- - Updating triggers list with additional keywords
60
- - Fixing a broken link in docs
61
- ```
62
-
63
- **Gate:** No review required. Direct commit.
36
+ ### PATCH (10.2.0 → 10.2.1)
37
+ Fixes that don't change behavior.
64
38
 
65
39
  ---
66
40
 
67
- ## Who can bump versions?
68
-
69
- | Type | Who | Process |
70
- |---|---|---|
71
- | MAJOR | Architect (human) | ADR + PR + migration plan |
72
- | MINOR | Skill author | PR with description |
73
- | PATCH | Anyone | Direct commit OK |
41
+ ## V10.2 Migration Notes
74
42
 
75
- ---
76
-
77
- ## Registry versioning
43
+ All skill files, rule files, and workflow files MUST have version `10.2.0` in frontmatter.
78
44
 
79
- `registry/skills-index.yml` is a **generated file**. Its version tracks the knowledge system version, not the registry format.
45
+ ### New Required Sections in Every SKILL.md:
46
+ - `## Mô Hình Độ Tin Cậy (Confidence Model)`
47
+ - `## Thoái Ra Mã (Exit Codes)`
48
+ - `## Bằng Chứng Định Dạng (Evidence Format)`
49
+ - `## Compliance`
80
50
 
81
- It is regenerated whenever any SKILL.md is modified. **Never manually edit it.**
51
+ ### Registry Files:
52
+ - `graph.json` and `index.yaml` — generated by `node tooling/build-registry.js`
53
+ - Old files (`capability-graph.yml`, `skills-index.yml`) — REMOVED in V10
82
54
 
83
55
  ---
84
56
 
85
- ## Learning lifecycle versioning
86
-
87
- Learnings do not follow semver. They follow a lifecycle:
57
+ ## Validation Commands
88
58
 
59
+ ```bash
60
+ npm run test:registry # Validate all skills + rebuild registry
61
+ npm run test:graph # Validate graph integrity
62
+ npm run lint # Validate individual skill structure
89
63
  ```
90
- draft/ → validated/ → deprecated/
91
- ```
92
-
93
- - `draft/`: Created automatically or by human. Not yet reviewed.
94
- - `validated/`: Requires human commit with `[validated]` in message + evidence field filled.
95
- - `deprecated/`: Superseded by newer evidence. Keep for historical reference.