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
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
# ADR-005: V10 Platform Consolidation
|
|
2
|
+
|
|
3
|
+
**Date:** 2026-09-24
|
|
4
|
+
**Status:** Accepted
|
|
5
|
+
**Deciders:** AI Developer Skill OS Team
|
|
6
|
+
|
|
7
|
+
## Context
|
|
8
|
+
|
|
9
|
+
The V8-V9 architecture supported 29+ skills across multiple IDEs including Cursor, Windsurf, Kilo Code, and OpenAI Codex. This led to:
|
|
10
|
+
|
|
11
|
+
- Two parallel skill systems (`/skills/` and `.agents/skills/`)
|
|
12
|
+
- Registry inconsistency between `capability-graph.yml` (old) and `graph.json` (new)
|
|
13
|
+
- Version fragmentation (8.0.0, 9.1.0, 9.2.0, 10.1.0, 11.1.0)
|
|
14
|
+
- Missing validation sections (Exit Codes, Confidence Model, Evidence Format, Compliance)
|
|
15
|
+
- No automated testing for skill structure
|
|
16
|
+
|
|
17
|
+
## Decision
|
|
18
|
+
|
|
19
|
+
Consolidate to **3 IDE platforms** with a clean architecture:
|
|
20
|
+
|
|
21
|
+
| Platform | Config | Context Window |
|
|
22
|
+
|----------|--------|----------------|
|
|
23
|
+
| **Antigravity** | `.agents/AGENTS.md` | Large (Gemini) |
|
|
24
|
+
| **Claude** | `.claude/CLAUDE.md` | ~200K tokens |
|
|
25
|
+
| **OpenCode** | `.opencode/config.yaml` | ~128K tokens |
|
|
26
|
+
|
|
27
|
+
### Structural Changes
|
|
28
|
+
|
|
29
|
+
1. **Removed `/skills/` directory** — single system under `.agents/skills/`
|
|
30
|
+
2. **Removed `capability-graph.yml` and `skills-index.yml`** — replaced by `graph.json` and `index.yaml`
|
|
31
|
+
3. **Removed old worktrees** — `.kilo/worktrees/stealth-octagon`
|
|
32
|
+
4. **Added `platforms` field** to all SKILL.md frontmatters
|
|
33
|
+
5. **Added required sections** to all SKILL.md: Exit Codes, Confidence Model, Evidence Format, Compliance, Platform-Specific Instructions
|
|
34
|
+
6. **Created `tooling/validate-skills.js`** — validates all skill structure
|
|
35
|
+
7. **Created `tooling/validate-graph.js`** — validates graph integrity (Score 100/100)
|
|
36
|
+
8. **Updated all versions** to `10.2.0` consistently
|
|
37
|
+
|
|
38
|
+
### Consequences
|
|
39
|
+
|
|
40
|
+
- Single source of truth: `.agents/skills/**/SKILL.md`
|
|
41
|
+
- Automated validation: `npm run test:registry` (10/10 tests)
|
|
42
|
+
- Graph integrity: `npm run test:graph` (100/100)
|
|
43
|
+
- IDE-specific wrappers: `.claude/CLAUDE.md`, `.opencode/config.yaml`
|
|
44
|
+
- 11 Super-Skills, 12 workflows, 9 rules, all at version 10.2.0
|
|
45
|
+
|
|
46
|
+
### Future Considerations
|
|
47
|
+
|
|
48
|
+
- Add platform-specific skill variants if context window differences require
|
|
49
|
+
- Add `qk-help` skill if routing needs improvement
|
|
50
|
+
- Consider adding ADR for each major version bump
|
|
@@ -1,69 +1,34 @@
|
|
|
1
|
-
# Learning Schema —
|
|
1
|
+
# Learning Schema — V10.2
|
|
2
2
|
# Defines the required structure for all learning files.
|
|
3
3
|
|
|
4
|
-
schema_version:
|
|
4
|
+
schema_version: 10.2.0
|
|
5
5
|
|
|
6
|
-
# ── Required fields
|
|
6
|
+
# ── Required fields ────────────────────────────────
|
|
7
7
|
required:
|
|
8
|
-
|
|
8
|
+
skill:
|
|
9
9
|
type: string
|
|
10
|
-
|
|
11
|
-
example: "
|
|
12
|
-
|
|
13
|
-
context:
|
|
10
|
+
pattern: "^qk-[a-z-]+$"
|
|
11
|
+
example: "qk-bug-resolution"
|
|
12
|
+
topic:
|
|
14
13
|
type: string
|
|
15
|
-
|
|
16
|
-
example: "When diagnosing bugs with incomplete stack traces"
|
|
17
|
-
|
|
18
|
-
lifecycle:
|
|
19
|
-
type: enum
|
|
20
|
-
values: [draft, validated, deprecated]
|
|
21
|
-
|
|
22
|
-
# ── Required only for validated learnings ──────────────────
|
|
23
|
-
validated_required:
|
|
14
|
+
example: "triangulate-technique"
|
|
24
15
|
evidence:
|
|
25
16
|
type: array
|
|
26
|
-
|
|
27
|
-
example: ["
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
values: [human, benchmark]
|
|
32
|
-
|
|
33
|
-
validated_date:
|
|
34
|
-
type: date
|
|
35
|
-
example: "2026-07"
|
|
17
|
+
items: string
|
|
18
|
+
example: ["test-passed", "code-reviewed"]
|
|
19
|
+
validated_at:
|
|
20
|
+
type: string
|
|
21
|
+
format: date-time
|
|
36
22
|
|
|
37
|
-
# ── Optional fields
|
|
23
|
+
# ── Optional fields ────────────────────────────────
|
|
38
24
|
optional:
|
|
39
|
-
|
|
40
|
-
type:
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
superseded_by:
|
|
25
|
+
confidence:
|
|
26
|
+
type: enum
|
|
27
|
+
values: [HIGH, MEDIUM, LOW]
|
|
28
|
+
source:
|
|
44
29
|
type: string
|
|
45
|
-
description: "
|
|
46
|
-
|
|
47
|
-
related_skills:
|
|
30
|
+
description: "Where this learning was validated"
|
|
31
|
+
applies_to:
|
|
48
32
|
type: array
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
# ── Lifecycle transitions ────────────────────────────────────
|
|
52
|
-
lifecycle_rules:
|
|
53
|
-
draft_to_validated:
|
|
54
|
-
- "Human review required"
|
|
55
|
-
- "Evidence field must be filled"
|
|
56
|
-
- "Git commit message must include [validated]"
|
|
57
|
-
|
|
58
|
-
validated_to_deprecated:
|
|
59
|
-
- "Superseded_by field must reference the newer learning"
|
|
60
|
-
- "Keep file in deprecated/ for 6 months then can archive"
|
|
61
|
-
|
|
62
|
-
agent_can:
|
|
63
|
-
- "Create draft learnings"
|
|
64
|
-
- "Read validated learnings"
|
|
65
|
-
|
|
66
|
-
agent_cannot:
|
|
67
|
-
- "Promote draft to validated"
|
|
68
|
-
- "Delete any learning"
|
|
69
|
-
- "Modify validated learnings"
|
|
33
|
+
items: string
|
|
34
|
+
example: ["qk-bug-resolution", "qk-code-cleaner"]
|
|
@@ -1,188 +1,143 @@
|
|
|
1
|
-
# Skill Schema —
|
|
2
|
-
|
|
1
|
+
# Skill Schema — V10.2
|
|
3
2
|
# This file defines the required and optional fields for all SKILL.md frontmatter.
|
|
4
3
|
# Every skill MUST conform to this schema. Validator: tooling/validate-skills.js
|
|
5
4
|
|
|
6
|
-
schema_version:
|
|
7
|
-
|
|
8
|
-
# ──
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
5
|
+
schema_version: 10.2.0
|
|
6
|
+
|
|
7
|
+
# ── Identity ────────────────────────────────────────────
|
|
8
|
+
name:
|
|
9
|
+
type: string
|
|
10
|
+
pattern: "^qk-[a-z-]+$"
|
|
11
|
+
example: "qk-bug-resolution"
|
|
12
|
+
|
|
13
|
+
version:
|
|
14
|
+
type: semver
|
|
15
|
+
example: "10.2.0"
|
|
16
|
+
|
|
17
|
+
status:
|
|
18
|
+
type: enum
|
|
19
|
+
values: [stable, experimental, deprecated]
|
|
20
|
+
|
|
21
|
+
description:
|
|
22
|
+
type: string
|
|
23
|
+
maxLength: 200
|
|
24
|
+
example: "Chẩn đoán nguyên nhân gốc rễ và khắc phục lỗi mã nguồn."
|
|
25
|
+
|
|
26
|
+
platforms:
|
|
27
|
+
type: array
|
|
28
|
+
items: [antigravity, claude, opencode]
|
|
29
|
+
description: "Which IDEs this skill supports"
|
|
30
|
+
example: [antigravity, claude, opencode]
|
|
31
|
+
|
|
32
|
+
runtime_version:
|
|
33
|
+
type: integer
|
|
34
|
+
default: 1
|
|
35
|
+
|
|
36
|
+
type:
|
|
37
|
+
type: enum
|
|
38
|
+
values: [capability, utility, orchestrator]
|
|
39
|
+
example: "capability"
|
|
40
|
+
|
|
41
|
+
# ── Classification ──────────────────────────────────────
|
|
42
|
+
intent:
|
|
43
|
+
type: array
|
|
44
|
+
minItems: 1
|
|
45
|
+
example: [bug-fixing, debugging]
|
|
46
|
+
|
|
47
|
+
complexity:
|
|
48
|
+
type: object
|
|
49
|
+
required_fields: [level]
|
|
50
|
+
optional_fields: [criteria]
|
|
51
|
+
levels: [low, medium, high, critical]
|
|
52
|
+
|
|
53
|
+
triggers:
|
|
54
|
+
type: array
|
|
55
|
+
minItems: 2
|
|
56
|
+
description: "Keywords that cause AI to select this skill"
|
|
57
|
+
example: ["fix bug", "lỗi", "crash"]
|
|
58
|
+
|
|
59
|
+
selection:
|
|
60
|
+
type: object
|
|
61
|
+
required_fields: [priority]
|
|
62
|
+
optional_fields: [confidence_threshold, fallback_skill]
|
|
63
|
+
priority:
|
|
20
64
|
type: enum
|
|
21
|
-
values: [
|
|
22
|
-
|
|
23
|
-
|
|
65
|
+
values: [high, medium, low]
|
|
66
|
+
confidence_threshold:
|
|
67
|
+
type: number
|
|
68
|
+
default: 0.75
|
|
69
|
+
range:
|
|
70
|
+
min: 0.0
|
|
71
|
+
max: 1.0
|
|
72
|
+
fallback_skill:
|
|
24
73
|
type: string
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
type: number
|
|
68
|
-
default: 0.75
|
|
69
|
-
range:
|
|
70
|
-
min: 0.0
|
|
71
|
-
max: 1.0
|
|
72
|
-
fallback_skill:
|
|
73
|
-
type: string
|
|
74
|
-
optional: true
|
|
75
|
-
|
|
76
|
-
verification:
|
|
77
|
-
type: object
|
|
78
|
-
required_fields: [required, strategy]
|
|
79
|
-
strategies: [bug-fix, refactor, feature, documentation, review, api-change, migration-safety, performance-regression, release-safety, bootstrap-validation, none]
|
|
80
|
-
|
|
81
|
-
execution_mode:
|
|
82
|
-
type: enum
|
|
83
|
-
values: [deterministic]
|
|
84
|
-
|
|
85
|
-
token_budget:
|
|
86
|
-
type: object
|
|
87
|
-
required_fields: [max_files_read, max_lines_per_read, max_shell_commands, stop_early]
|
|
88
|
-
|
|
89
|
-
exit_codes:
|
|
90
|
-
type: array
|
|
91
|
-
items: [SUCCESS, BLOCKED, FAILED, PARTIAL]
|
|
92
|
-
|
|
93
|
-
# ── Optional fields ─────────────────────────────────────────
|
|
74
|
+
optional: true
|
|
75
|
+
|
|
76
|
+
# ── References ──────────────────────────────────────────
|
|
77
|
+
workflow:
|
|
78
|
+
type: string
|
|
79
|
+
description: "References workflows/<name>.yml"
|
|
80
|
+
example: "bug-resolution"
|
|
81
|
+
|
|
82
|
+
rules:
|
|
83
|
+
type: array
|
|
84
|
+
example: [global]
|
|
85
|
+
|
|
86
|
+
tools:
|
|
87
|
+
type: array
|
|
88
|
+
example: [filesystem]
|
|
89
|
+
|
|
90
|
+
# ── Runtime ─────────────────────────────────────────────
|
|
91
|
+
execution_mode:
|
|
92
|
+
type: enum
|
|
93
|
+
values: [deterministic]
|
|
94
|
+
|
|
95
|
+
token_budget:
|
|
96
|
+
type: object
|
|
97
|
+
required_fields: [max_files_read, max_lines_per_read, max_shell_commands, stop_early]
|
|
98
|
+
|
|
99
|
+
# ── V10 Required Sections ───────────────────────────────
|
|
100
|
+
exit_codes:
|
|
101
|
+
type: object
|
|
102
|
+
required_fields: [SUCCESS, PARTIAL, BLOCKED, FAILED]
|
|
103
|
+
description: "Each exit code with meaning and when"
|
|
104
|
+
|
|
105
|
+
confidence_model:
|
|
106
|
+
type: object
|
|
107
|
+
levels: [HIGH, MEDIUM, LOW]
|
|
108
|
+
description: "Confidence levels for evidence-based routing"
|
|
109
|
+
|
|
110
|
+
compliance:
|
|
111
|
+
type: object
|
|
112
|
+
required_fields: [schema_version, runtime_version, platforms]
|
|
113
|
+
description: "Compliance check block at end of SKILL.md"
|
|
114
|
+
|
|
115
|
+
# ── Optional fields ─────────────────────────────────────
|
|
94
116
|
optional:
|
|
95
|
-
rules:
|
|
96
|
-
type: array
|
|
97
|
-
description: "References rules/<name>.md"
|
|
98
|
-
example: [global, coding]
|
|
99
|
-
|
|
100
|
-
tools:
|
|
101
|
-
type: array
|
|
102
|
-
example: [filesystem, git, browser]
|
|
103
|
-
|
|
104
117
|
related_skills:
|
|
105
118
|
type: array
|
|
106
119
|
description: "Skills often used together"
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
type: array
|
|
111
|
-
description: "References examples/good/*.md"
|
|
112
|
-
|
|
113
|
-
learnings:
|
|
114
|
-
type: array
|
|
115
|
-
description: "References learnings/validated/*.md"
|
|
116
|
-
|
|
120
|
+
knowledge_scope:
|
|
121
|
+
type: object
|
|
122
|
+
fields: [owns, references]
|
|
117
123
|
cost:
|
|
118
124
|
type: enum
|
|
119
125
|
values: [low, medium, high]
|
|
120
|
-
|
|
121
126
|
latency:
|
|
122
127
|
type: enum
|
|
123
128
|
values: [fast, medium, slow]
|
|
124
|
-
|
|
125
129
|
risk:
|
|
126
130
|
type: enum
|
|
127
131
|
values: [low, medium, high]
|
|
128
|
-
|
|
129
132
|
side_effects:
|
|
130
133
|
type: enum
|
|
131
134
|
values: [edit_files, run_commands, read_only, none]
|
|
132
|
-
|
|
133
135
|
produces:
|
|
134
136
|
type: array
|
|
135
137
|
items: [code, report, schema, plan, tokens]
|
|
136
|
-
|
|
137
138
|
consumes:
|
|
138
139
|
type: array
|
|
139
|
-
|
|
140
|
-
knowledge_scope:
|
|
141
|
-
type: object
|
|
142
|
-
description: "Defines what knowledge this skill knows vs. references"
|
|
143
|
-
fields:
|
|
144
|
-
domain:
|
|
145
|
-
type: array
|
|
146
|
-
concepts:
|
|
147
|
-
type: array
|
|
148
|
-
references:
|
|
149
|
-
type: array
|
|
150
|
-
|
|
151
|
-
decision_boundary:
|
|
152
|
-
type: object
|
|
153
|
-
description: "Defines what decisions this skill is authorized to make"
|
|
154
|
-
fields:
|
|
155
|
-
owns:
|
|
156
|
-
type: array
|
|
157
|
-
does_not_own:
|
|
158
|
-
type: array
|
|
159
|
-
conflicts_with:
|
|
160
|
-
type: array
|
|
161
|
-
delegates_to:
|
|
162
|
-
type: array
|
|
163
|
-
description: "Other skills this skill can delegate implementation to"
|
|
164
|
-
|
|
165
|
-
lifecycle:
|
|
140
|
+
verification:
|
|
166
141
|
type: object
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
promotion_gate:
|
|
170
|
-
type: object
|
|
171
|
-
fields:
|
|
172
|
-
requirements:
|
|
173
|
-
type: object
|
|
174
|
-
fields:
|
|
175
|
-
tests:
|
|
176
|
-
type: object
|
|
177
|
-
usage:
|
|
178
|
-
type: object
|
|
179
|
-
conflicts:
|
|
180
|
-
type: object
|
|
181
|
-
evidence:
|
|
182
|
-
type: object
|
|
183
|
-
fields:
|
|
184
|
-
required:
|
|
185
|
-
type: array
|
|
186
|
-
demotion_gate:
|
|
187
|
-
type: object
|
|
188
|
-
|
|
142
|
+
required_fields: [required, strategy]
|
|
143
|
+
strategies: [bug-fix, refactor, feature, documentation, review]
|
|
@@ -1,33 +1,58 @@
|
|
|
1
|
-
# Workflow Schema
|
|
1
|
+
# Workflow Schema — V10.2
|
|
2
2
|
# See workflows/_schema.yml for the full machine-readable schema.
|
|
3
3
|
# This file is for human reference.
|
|
4
4
|
|
|
5
|
-
schema_version:
|
|
5
|
+
schema_version: 10.2.0
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
7
|
+
# ── Required top-level fields ──────────────────────
|
|
8
|
+
required:
|
|
9
|
+
- name # string: workflow identifier (kebab-case)
|
|
10
|
+
- version # semver: 10.x.x
|
|
11
|
+
- description # string: what this pipeline does
|
|
12
|
+
- owner
|
|
13
|
+
- steps
|
|
13
14
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
inputs: "array — what this step needs to start"
|
|
19
|
-
outputs: "array — what this step produces when done"
|
|
20
|
-
required: "bool — true = cannot be skipped without skip_if condition"
|
|
15
|
+
# ── Owner ──────────────────────────────────────────
|
|
16
|
+
owner:
|
|
17
|
+
type: engineering
|
|
18
|
+
maintained_by: qk-team
|
|
21
19
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
20
|
+
# ── Steps ──────────────────────────────────────────
|
|
21
|
+
steps:
|
|
22
|
+
- id: string # Unique step identifier
|
|
23
|
+
name: string # Display name
|
|
24
|
+
purpose: string # What this step achieves
|
|
25
|
+
required: boolean # Whether step is mandatory
|
|
26
|
+
outputs: # Array of output names
|
|
27
|
+
- string
|
|
28
|
+
actions: # Array of action descriptions
|
|
29
|
+
- string
|
|
30
|
+
human_checkpoint: # Optional human approval
|
|
31
|
+
condition: string
|
|
32
|
+
message: string
|
|
33
|
+
exit_on_fail: # What to do on failure
|
|
34
|
+
- PARTIAL
|
|
35
|
+
- BLOCKED
|
|
36
|
+
- FAILED
|
|
27
37
|
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
38
|
+
# ── Escalation ─────────────────────────────────────
|
|
39
|
+
escalation:
|
|
40
|
+
max_retries: integer
|
|
41
|
+
on_failure: string
|
|
42
|
+
|
|
43
|
+
# ── Example ────────────────────────────────────────
|
|
44
|
+
example: |
|
|
45
|
+
name: bug-resolution
|
|
46
|
+
version: 10.2.0
|
|
47
|
+
description: "Pipeline chuẩn để diagnose và fix bugs."
|
|
48
|
+
owner:
|
|
49
|
+
type: engineering
|
|
50
|
+
maintained_by: qk-team
|
|
51
|
+
steps:
|
|
52
|
+
- id: understand
|
|
53
|
+
name: "Hiểu yêu cầu"
|
|
54
|
+
purpose: "Nhận diện mục tiêu cốt lõi"
|
|
55
|
+
required: true
|
|
56
|
+
escalation:
|
|
57
|
+
max_retries: 2
|
|
58
|
+
on_failure: "Report error and ask user"
|
|
@@ -5,7 +5,7 @@ Skills are classified into behavioral groups that define their **Primary Objecti
|
|
|
5
5
|
*Note: Actual verification depth is NOT determined by the skill itself, but must strictly follow the **Risk-based Verification Policy** defined in `AGENTS.md`.*
|
|
6
6
|
|
|
7
7
|
## 1. Static Analysis Skills
|
|
8
|
-
*e.g.,
|
|
8
|
+
*e.g., qk-code-review, qk-product-spec, qk-orchestrator*
|
|
9
9
|
- **Primary Goal:** Audit, analyze, or document without altering system behavior.
|
|
10
10
|
- **Preferred Behavior:** Prefer static analysis (`read_file`, `grep_search`). Do not execute code or run test suites unless explicitly requested to validate the audit.
|
|
11
11
|
|