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.
- package/.agents/AGENTS.md +13 -0
- package/.agents/LICENSE +21 -21
- package/.agents/docs/ARCHITECTURE.md +56 -120
- package/.agents/docs/GOVERNANCE.md +3 -3
- package/.agents/docs/SPEC.md +137 -60
- package/.agents/docs/VERSIONING.md +25 -57
- package/.agents/docs/adr/0005-v10-platform-consolidation.md +50 -0
- package/.agents/docs/schemas/learning.schema.yml +22 -57
- package/.agents/docs/schemas/skill.schema.yml +116 -161
- package/.agents/docs/schemas/workflow.schema.yml +51 -26
- package/.agents/docs/skill-classification.md +1 -1
- package/.agents/registry/graph.json +171 -77
- package/.agents/registry/index.yaml +68 -35
- package/.agents/rules/coding.md +1 -1
- package/.agents/rules/command-safety.md +1 -1
- package/.agents/rules/global.md +1 -1
- package/.agents/rules/prompt-compiler.md +1 -1
- package/.agents/rules/safety.md +1 -1
- package/.agents/rules/security.md +1 -1
- package/.agents/rules/skill-quality.md +18 -3
- package/.agents/skills/_template/SKILL.md +238 -88
- package/.agents/skills/qk-api-data-discovery/SKILL.md +176 -190
- package/.agents/skills/qk-api-data-discovery/references/bronze-record-format.md +47 -0
- package/.agents/skills/qk-api-data-discovery/references/data-contract-yaml.md +72 -0
- package/.agents/skills/qk-api-data-discovery/references/discovery-report-template.md +110 -0
- package/.agents/skills/qk-backend-data/SKILL.md +150 -1
- package/.agents/skills/qk-bug-resolution/SKILL.md +153 -1
- package/.agents/skills/qk-bug-resolution/evals/scorecard.yaml +1 -1
- package/.agents/skills/qk-code-cleaner/SKILL.md +150 -1
- package/.agents/skills/qk-code-review/SKILL.md +195 -1
- package/.agents/skills/qk-code-review/evals/scorecard.yaml +1 -1
- package/.agents/skills/qk-code-review/references/ai/{v8-schema-validation.md → schema-validation.md} +2 -2
- package/.agents/skills/qk-code-review/references/cross-cutting/async-concurrency-patterns.md +515 -515
- package/.agents/skills/qk-code-review/references/cross-cutting/error-handling-principles.md +492 -492
- package/.agents/skills/qk-code-review/references/cross-cutting/n-plus-one-queries.md +309 -309
- package/.agents/skills/qk-code-review/references/cross-cutting/sql-injection-prevention.md +307 -307
- package/.agents/skills/qk-code-review/references/cross-cutting/xss-prevention.md +263 -263
- package/.agents/skills/qk-code-review/references/languages/angular.md +768 -768
- package/.agents/skills/qk-code-review/references/languages/c.md +890 -890
- package/.agents/skills/qk-code-review/references/languages/cpp.md +893 -893
- package/.agents/skills/qk-code-review/references/languages/css-less-sass.md +661 -661
- package/.agents/skills/qk-code-review/references/languages/django.md +985 -985
- package/.agents/skills/qk-code-review/references/languages/fastapi.md +580 -580
- package/.agents/skills/qk-code-review/references/languages/go.md +993 -993
- package/.agents/skills/qk-code-review/references/languages/java.md +409 -409
- package/.agents/skills/qk-code-review/references/languages/java8.md +586 -586
- package/.agents/skills/qk-code-review/references/languages/kotlin.md +1018 -1018
- package/.agents/skills/qk-code-review/references/languages/nestjs.md +593 -593
- package/.agents/skills/qk-code-review/references/languages/php.md +684 -684
- package/.agents/skills/qk-code-review/references/languages/python.md +1073 -1073
- package/.agents/skills/qk-code-review/references/languages/qt.md +757 -757
- package/.agents/skills/qk-code-review/references/languages/react.md +871 -871
- package/.agents/skills/qk-code-review/references/languages/ruby.md +964 -964
- package/.agents/skills/qk-code-review/references/languages/rust.md +846 -846
- package/.agents/skills/qk-code-review/references/languages/svelte.md +1064 -1064
- package/.agents/skills/qk-code-review/references/languages/swift.md +936 -936
- package/.agents/skills/qk-code-review/references/languages/typescript.md +1016 -1016
- package/.agents/skills/qk-code-review/references/languages/vue.md +924 -924
- package/.agents/skills/qk-code-review/references/languages/zig.md +440 -440
- package/.agents/skills/qk-devops-release/SKILL.md +150 -1
- package/.agents/skills/qk-feature-delivery/SKILL.md +153 -1
- package/.agents/skills/qk-feature-delivery/evals/scorecard.yaml +1 -1
- package/.agents/skills/qk-orchestrator/SKILL.md +187 -2
- package/.agents/skills/qk-orchestrator/evals/scorecard.yaml +1 -1
- package/.agents/skills/qk-orchestrator/references/routing-table.md +1 -1
- package/.agents/skills/qk-product-spec/SKILL.md +150 -1
- package/.agents/skills/qk-prompt-compiler/SKILL.md +188 -65
- package/.agents/skills/qk-ui-engineer/SKILL.md +150 -1
- package/.agents/workflows/_schema.yml +146 -146
- package/.agents/workflows/bug-resolution.yml +155 -121
- package/.agents/workflows/code-review.yml +127 -93
- package/.agents/workflows/context-discovery.yml +128 -94
- package/.agents/workflows/documentation.yml +124 -90
- package/.agents/workflows/feature-delivery.yml +158 -124
- package/.agents/workflows/production-release.yml +207 -173
- package/.agents/workflows/prompt-compilation.yml +126 -0
- package/.agents/workflows/refactor.yml +136 -102
- package/.agents/workflows/security-audit.yml +149 -115
- package/.agents/workflows/shared/quality-gate.yml +3 -1
- package/.agents/workflows/skin-governance.yml +149 -115
- package/.agents/workflows/spec-driven-development.yml +78 -71
- package/CHANGELOG.md +61 -0
- package/README.md +3 -3
- package/bin/install.js +38 -51
- package/package.json +68 -74
- package/tooling/build-registry.js +226 -208
- package/tooling/run-aar.js +55 -126
- package/tooling/sync-versions.js +2 -2
- package/tooling/validate-graph.js +100 -87
- package/tooling/validate-skills.js +32 -14
- package/.agents/docs/decisions/ADR-001-v8-migration.md +0 -58
- package/.agents/docs/decisions/ADR-002-workflow-separation.md +0 -50
- package/.agents/docs/decisions/ADR-003-registry-generated.md +0 -54
- package/.agents/docs/decisions/ADR-008-skill-boundary-review.md +0 -27
- package/.agents/registry/capability-graph.yml +0 -390
- package/.agents/registry/skills-index.yml +0 -305
- package/.agents/skills/_template/capability.yaml +0 -34
- 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 —
|
|
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/
|
|
14
|
-
|
|
|
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/
|
|
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
|
-
|
|
71
|
+
qk-orchestrator ← Route to correct Super-Skill
|
|
33
72
|
│
|
|
34
73
|
▼
|
|
35
|
-
|
|
74
|
+
[Target Super-Skill] ← Execute with Role Adaptation
|
|
36
75
|
│
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
├── workflow: bug-resolution ← Load execution pipeline
|
|
76
|
+
▼
|
|
77
|
+
Evidence Gate ← Verify CLAIM <= EVIDENCE
|
|
40
78
|
│
|
|
41
|
-
|
|
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
|
-
##
|
|
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
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
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.,
|
|
34
|
-
- **MINOR (e.g.,
|
|
35
|
-
- **PATCH (e.g.,
|
|
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`?
|
package/.agents/docs/SPEC.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# AI Developer Skill OS - Specification (
|
|
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
|
-
|
|
13
|
-
|
|
14
|
-
description: "[
|
|
15
|
-
platforms: [antigravity, claude
|
|
16
|
-
|
|
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
|
-
|
|
19
|
-
|
|
20
|
-
|
|
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
|
-
|
|
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
|
-
| `
|
|
42
|
-
| `
|
|
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
|
|
45
|
-
| `
|
|
46
|
-
| `
|
|
47
|
-
| `
|
|
48
|
-
| `
|
|
49
|
-
| `
|
|
50
|
-
| `
|
|
51
|
-
| `
|
|
52
|
-
| `
|
|
53
|
-
| `
|
|
54
|
-
| `
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
## 2.
|
|
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
|
-
|
|
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
|
|
1
|
+
# Versioning Policy — AI Developer Skill OS V10
|
|
2
2
|
|
|
3
3
|
## Semantic Versioning: `MAJOR.MINOR.PATCH`
|
|
4
4
|
|
|
5
|
-
Current: `
|
|
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.
|
|
13
|
-
|
|
|
14
|
-
|
|
|
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 (
|
|
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
|
|
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
|
-
##
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
##
|
|
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.
|