@nockdev/awf 6.2.6 → 6.2.8
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/.agent/config.yaml +2 -2
- package/.agent/core/AGENT_BEHAVIOR.md +1 -1
- package/.agent/core/AUDIT_POLICY.md +1 -1
- package/.agent/core/CACHE.md +1 -1
- package/.agent/core/DATA_SAFETY.md +1 -1
- package/.agent/core/MEMORY_PATHS.yaml +2 -2
- package/.agent/core/PERMISSIONS.md +1 -1
- package/.agent/core/README.md +1 -1
- package/.agent/core/VERSION.yaml +4 -4
- package/.agent/core/archive/ACTIVE_MEMORY.yaml +2 -2
- package/.agent/core/archive/CHECKPOINT.yaml +2 -2
- package/.agent/core/archive/CLEANUP_ENGINE.yaml +2 -2
- package/.agent/core/archive/CONTEXT_INJECTOR.yaml +2 -2
- package/.agent/core/archive/CONTEXT_LOADER.yaml +1 -1
- package/.agent/core/archive/CONTEXT_OPTIMIZATION.yaml +1 -1
- package/.agent/core/archive/CONTEXT_PRIORITY.yaml +2 -2
- package/.agent/core/archive/FLOW_ENGINE.yaml +1 -1
- package/.agent/core/archive/GRAPH_MEMORY.yaml +1 -1
- package/.agent/core/archive/HYBRID_ROUTER.yaml +1 -1
- package/.agent/core/archive/INTENT_DETECTION.yaml +1 -1
- package/.agent/core/archive/MEMORY_CONSOLIDATION.yaml +3 -3
- package/.agent/core/archive/MEMORY_ENGINE.yaml +2 -2
- package/.agent/core/archive/MEMORY_UTILS.yaml +1 -1
- package/.agent/core/archive/REFLECTION_ENGINE.yaml +1 -1
- package/.agent/core/archive/ROUTER.yaml +4 -4
- package/.agent/core/archive/SCORING_FORMULA.yaml +2 -2
- package/.agent/core/archive/SEMANTIC_ENGINE.yaml +1 -1
- package/.agent/core/archive/SKILLS_FLOW.yaml +1 -1
- package/.agent/core/archive/STATE_MACHINE.yaml +1 -1
- package/.agent/core/archive/SUMMARIZATION_ENGINE.yaml +2 -2
- package/.agent/core/archive/TOKEN_BUDGETS.yaml +2 -2
- package/.agent/core/archive/TOKEN_LOADING.yaml +2 -2
- package/.agent/core/archive/TOKEN_SUMMARY.yaml +2 -2
- package/.agent/core/reference/CODING_STYLES.yaml +1 -1
- package/.agent/core/reference/LIBRARY_REGISTRY.yaml +1 -1
- package/.agent/core/reference/MCP_TOOLS.yaml +2 -2
- package/.agent/core/reference/PATTERNS.yaml +1 -1
- package/.agent/core/reference/SKILL_SCHEMA.yaml +1 -1
- package/.agent/i18n/en.yaml +6 -6
- package/.agent/i18n/vi.yaml +6 -6
- package/.agent/ide/README.md +1 -1
- package/.agent/ide/amazonq.json +1 -1
- package/.agent/ide/amp.json +1 -1
- package/.agent/ide/antigravity.json +1 -1
- package/.agent/ide/augment.json +1 -1
- package/.agent/ide/claude.json +1 -1
- package/.agent/ide/cline.json +1 -1
- package/.agent/ide/cody.json +1 -1
- package/.agent/ide/continue.json +1 -1
- package/.agent/ide/cursor.json +1 -1
- package/.agent/ide/gemini.json +1 -1
- package/.agent/ide/jetbrains.json +1 -1
- package/.agent/ide/kiro.json +1 -1
- package/.agent/ide/opencode.json +1 -1
- package/.agent/ide/roo.json +1 -1
- package/.agent/ide/tabnine.json +1 -1
- package/.agent/ide/trae.json +1 -1
- package/.agent/ide/vscode.json +1 -1
- package/.agent/ide/windsurf.json +1 -1
- package/.agent/ide/zed.json +1 -1
- package/.agent/manifest.yaml +1 -1
- package/.agent/personas/README.md +1 -1
- package/.agent/personas/architect.md +1 -1
- package/.agent/personas/auditor.md +1 -1
- package/.agent/personas/debugger.md +1 -1
- package/.agent/personas/developer.md +1 -1
- package/.agent/personas/devops.md +1 -1
- package/.agent/personas/documenter.md +1 -1
- package/.agent/personas/orchestrator.md +1 -1
- package/.agent/personas/persona.schema.yaml +1 -1
- package/.agent/personas/planner.md +1 -1
- package/.agent/personas/researcher.md +1 -1
- package/.agent/personas/security.md +1 -1
- package/.agent/personas/tester.md +1 -1
- package/.agent/rules/README.md +1 -1
- package/.agent/rules/archive/constitutional/tier-0-core.yaml +5 -5
- package/.agent/rules/archive/constitutional/tier-1-safety.yaml +5 -5
- package/.agent/rules/archive/constitutional/tier-2-execution.yaml +6 -6
- package/.agent/rules/archive/context-management.yaml +1 -1
- package/.agent/rules/archive/duplication-prevention.md +1 -1
- package/.agent/rules/archive/evidence.yaml +1 -1
- package/.agent/rules/archive/project-detection.md +1 -1
- package/.agent/rules/archive/reflection.yaml +1 -1
- package/.agent/rules/archive/versioning.yaml +5 -5
- package/.agent/rules/data/build-systems.yaml +2 -2
- package/.agent/rules/modules/agent-delegation.yaml +2 -2
- package/.agent/rules/modules/edit-verification.yaml +1 -1
- package/.agent/rules/modules/git-workflow.yaml +1 -1
- package/.agent/rules/modules/language.yaml +1 -1
- package/.agent/rules/modules/online-research.yaml +1 -1
- package/.agent/rules/modules/performance-optimization.yaml +2 -2
- package/.agent/rules/modules/quality.yaml +1 -1
- package/.agent/rules/modules/stop-conditions.yaml +1 -1
- package/.agent/rules/modules/terminal-safety.yaml +1 -1
- package/.agent/rules/modules/yagni.yaml +1 -1
- package/.agent/rules/validation-framework.md +1 -1
- package/.agent/skills/README.md +1 -1
- package/.agent/skills/_categories.yaml +2 -2
- package/.agent/skills/ai-ml/rag-patterns/META.yaml +2 -0
- package/.agent/skills/core/api-design/META.yaml +1 -1
- package/.agent/skills/core/authentication/META.yaml +1 -1
- package/.agent/skills/core/error-handling/META.yaml +1 -1
- package/.agent/skills/core/logging/META.yaml +1 -1
- package/.agent/skills/core/observability/META.yaml +1 -1
- package/.agent/skills/core/security/META.yaml +1 -1
- package/.agent/skills/core/security/SKILL.md +1 -1
- package/.agent/skills/cross-cutting/accessibility/META.yaml +1 -1
- package/.agent/skills/cross-cutting/audit-pro/META.yaml +9 -1
- package/.agent/skills/cross-cutting/audit-pro/SKILL.md +61 -5
- package/.agent/skills/cross-cutting/bun/META.yaml +17 -8
- package/.agent/skills/cross-cutting/bun/SKILL.md +1 -1
- package/.agent/skills/cross-cutting/coding-rules/META.yaml +1 -1
- package/.agent/skills/cross-cutting/database/META.yaml +42 -1
- package/.agent/skills/cross-cutting/database/SKILL.md +44 -628
- package/.agent/skills/cross-cutting/database/references/nosql-patterns.md +194 -0
- package/.agent/skills/cross-cutting/database/references/orms-patterns.md +278 -0
- package/.agent/skills/cross-cutting/database/references/postgresql.md +144 -0
- package/.agent/skills/cross-cutting/deno/META.yaml +19 -10
- package/.agent/skills/cross-cutting/deno/SKILL.md +1 -1
- package/.agent/skills/cross-cutting/domyh-design/META.yaml +1 -1
- package/.agent/skills/cross-cutting/domyh-design/data/desktop-colors.yaml +1 -1
- package/.agent/skills/cross-cutting/electron/SKILL.md +15 -616
- package/.agent/skills/cross-cutting/electron/references/ipc-testing.md +114 -0
- package/.agent/skills/cross-cutting/electron/references/native-integrations.md +216 -0
- package/.agent/skills/cross-cutting/electron/references/performance-accessibility.md +118 -0
- package/.agent/skills/cross-cutting/electron/references/updates-persistence.md +165 -0
- package/.agent/skills/cross-cutting/seo/META.yaml +1 -1
- package/.agent/skills/cross-cutting/skill-creator/META.yaml +37 -0
- package/.agent/skills/cross-cutting/skill-creator/SKILL.md +163 -0
- package/.agent/skills/cross-cutting/skill-creator/references/patterns.md +58 -0
- package/.agent/skills/cross-cutting/skill-creator/references/schema-v2.md +44 -0
- package/.agent/skills/cross-cutting/sql/META.yaml +1 -1
- package/.agent/skills/cross-cutting/sql/SKILL.md +1 -1
- package/.agent/skills/cross-cutting/tailwind/META.yaml +1 -1
- package/.agent/skills/cross-cutting/tailwind/SKILL.md +1 -1
- package/.agent/skills/cross-cutting/tdd-workflow/META.yaml +1 -1
- package/.agent/skills/cross-cutting/testing/META.yaml +7 -1
- package/.agent/skills/cross-cutting/testing/SKILL.md +1 -1
- package/.agent/skills/cross-cutting/testing/data/frameworks.yaml +1 -1
- package/.agent/skills/cross-cutting/web-perf/META.yaml +1 -1
- package/.agent/skills/cross-cutting/web-perf/SKILL.md +1 -1
- package/.agent/skills/devops/aws/META.yaml +1 -1
- package/.agent/skills/devops/aws/SKILL.md +101 -16
- package/.agent/skills/devops/azure/SKILL.md +96 -30
- package/.agent/skills/devops/ci-cd/META.yaml +1 -1
- package/.agent/skills/devops/ci-cd/SKILL.md +114 -8
- package/.agent/skills/devops/docker/META.yaml +1 -1
- package/.agent/skills/devops/docker/SKILL.md +96 -8
- package/.agent/skills/devops/gcp/SKILL.md +106 -30
- package/.agent/skills/devops/kubernetes/META.yaml +1 -1
- package/.agent/skills/devops/kubernetes/SKILL.md +125 -8
- package/.agent/skills/frameworks/angular/META.yaml +1 -1
- package/.agent/skills/frameworks/angular/SKILL.md +1 -1
- package/.agent/skills/frameworks/flutter/META.yaml +1 -1
- package/.agent/skills/frameworks/flutter/SKILL.md +1 -1
- package/.agent/skills/frameworks/nextjs/META.yaml +1 -1
- package/.agent/skills/frameworks/nextjs/SKILL.md +1 -1
- package/.agent/skills/frameworks/nuxt/META.yaml +1 -1
- package/.agent/skills/frameworks/nuxt/SKILL.md +1 -1
- package/.agent/skills/frameworks/react/META.yaml +1 -1
- package/.agent/skills/frameworks/react/SKILL.md +24 -1
- package/.agent/skills/frameworks/react-native/META.yaml +1 -1
- package/.agent/skills/frameworks/react-native/SKILL.md +1 -1
- package/.agent/skills/frameworks/svelte/META.yaml +1 -1
- package/.agent/skills/frameworks/svelte/SKILL.md +1 -1
- package/.agent/skills/frameworks/vue/META.yaml +1 -1
- package/.agent/skills/frameworks/vue/SKILL.md +1 -1
- package/.agent/skills/index.json +2 -2
- package/.agent/skills/languages/asm/META.yaml +1 -1
- package/.agent/skills/languages/asm/SKILL.md +27 -436
- package/.agent/skills/languages/asm/references/advanced-architectures.md +191 -0
- package/.agent/skills/languages/asm/references/build-structure.md +150 -0
- package/.agent/skills/languages/asm/references/simd-programming.md +92 -0
- package/.agent/skills/languages/c/META.yaml +1 -1
- package/.agent/skills/languages/c/SKILL.md +14 -356
- package/.agent/skills/languages/c/references/data-structures.md +63 -0
- package/.agent/skills/languages/c/references/memory-management.md +74 -0
- package/.agent/skills/languages/c/references/platform-headers.md +230 -0
- package/.agent/skills/languages/clojure/META.yaml +1 -1
- package/.agent/skills/languages/clojure/SKILL.md +1 -1
- package/.agent/skills/languages/cpp/META.yaml +1 -1
- package/.agent/skills/languages/cpp/SKILL.md +22 -753
- package/.agent/skills/languages/cpp/references/headers-optimization.md +229 -0
- package/.agent/skills/languages/cpp/references/memory-concurrency.md +85 -0
- package/.agent/skills/languages/cpp/references/modern-cpp-features.md +126 -0
- package/.agent/skills/languages/cpp/references/platform-headers.md +202 -0
- package/.agent/skills/languages/cpp/references/stl-containers.md +57 -0
- package/.agent/skills/languages/crystal/META.yaml +1 -1
- package/.agent/skills/languages/crystal/SKILL.md +1 -1
- package/.agent/skills/languages/csharp/META.yaml +1 -1
- package/.agent/skills/languages/csharp/SKILL.md +1 -1
- package/.agent/skills/languages/elixir/META.yaml +1 -1
- package/.agent/skills/languages/elixir/SKILL.md +1 -1
- package/.agent/skills/languages/fsharp/META.yaml +1 -1
- package/.agent/skills/languages/fsharp/SKILL.md +1 -1
- package/.agent/skills/languages/go/META.yaml +1 -1
- package/.agent/skills/languages/go/SKILL.md +1 -1
- package/.agent/skills/languages/haskell/META.yaml +1 -1
- package/.agent/skills/languages/haskell/SKILL.md +1 -1
- package/.agent/skills/languages/java/META.yaml +1 -1
- package/.agent/skills/languages/java/SKILL.md +1 -1
- package/.agent/skills/languages/javascript/META.yaml +1 -1
- package/.agent/skills/languages/javascript/SKILL.md +1 -1
- package/.agent/skills/languages/julia/META.yaml +1 -1
- package/.agent/skills/languages/julia/SKILL.md +1 -1
- package/.agent/skills/languages/kotlin/META.yaml +1 -1
- package/.agent/skills/languages/kotlin/SKILL.md +1 -1
- package/.agent/skills/languages/lua/META.yaml +1 -1
- package/.agent/skills/languages/lua/SKILL.md +3 -3
- package/.agent/skills/languages/nim/META.yaml +1 -1
- package/.agent/skills/languages/nim/SKILL.md +1 -1
- package/.agent/skills/languages/ocaml/META.yaml +1 -1
- package/.agent/skills/languages/ocaml/SKILL.md +1 -1
- package/.agent/skills/languages/perl/META.yaml +1 -1
- package/.agent/skills/languages/perl/SKILL.md +1 -1
- package/.agent/skills/languages/php/META.yaml +1 -1
- package/.agent/skills/languages/php/SKILL.md +1 -1
- package/.agent/skills/languages/python/META.yaml +1 -1
- package/.agent/skills/languages/python/SKILL.md +1 -1
- package/.agent/skills/languages/r/META.yaml +1 -1
- package/.agent/skills/languages/r/SKILL.md +1 -1
- package/.agent/skills/languages/ruby/META.yaml +1 -1
- package/.agent/skills/languages/ruby/SKILL.md +1 -1
- package/.agent/skills/languages/rust/META.yaml +1 -1
- package/.agent/skills/languages/rust/SKILL.md +1 -1
- package/.agent/skills/languages/scala/META.yaml +1 -1
- package/.agent/skills/languages/scala/SKILL.md +1 -1
- package/.agent/skills/languages/solidity/META.yaml +1 -1
- package/.agent/skills/languages/solidity/SKILL.md +1 -1
- package/.agent/skills/languages/swift/META.yaml +1 -1
- package/.agent/skills/languages/swift/SKILL.md +1 -1
- package/.agent/skills/languages/typescript/META.yaml +19 -1
- package/.agent/skills/languages/typescript/SKILL.md +23 -1
- package/.agent/skills/languages/zig/META.yaml +1 -1
- package/.agent/skills/languages/zig/SKILL.md +1 -1
- package/.agent/templates/README.md +2 -2
- package/.agent/templates/chains/feature/step1-requirements.md +76 -0
- package/.agent/templates/chains/feature/step2-design.md +75 -0
- package/.agent/templates/chains/feature/step3-planning.md +81 -0
- package/.agent/templates/chains/feature/step4-implementation.md +74 -0
- package/.agent/templates/chains/feature/step5-testing.md +81 -0
- package/.agent/templates/debug-report.md +1 -1
- package/.agent/templates/deploy-plan.md +1 -1
- package/.agent/templates/doc-template.md +1 -1
- package/.agent/templates/feature-lifecycle.md +53 -0
- package/.agent/templates/index.yaml +53 -2
- package/.agent/templates/migrate-plan.md +1 -1
- package/.agent/templates/phase-template.md +1 -1
- package/.agent/templates/tasks/audit.yaml +1 -1
- package/.agent/templates/tasks/bug_fix.yaml +1 -1
- package/.agent/templates/tasks/code_implementation.yaml +1 -1
- package/.agent/templates/tasks/feature_development.yaml +89 -0
- package/.agent/templates/tasks/refactor.yaml +1 -1
- package/.agent/templates/test-report.md +1 -1
- package/.agent/workflows/doctor.md +124 -0
- package/.agent/workflows/feature.md +130 -0
- package/.agent/workflows/help.md +7 -5
- package/dist/commands/install.js +1 -1
- package/dist/commands/install.js.map +1 -1
- package/dist/constants/ide-install-specs.js +30 -30
- package/dist/constants/ide-install-specs.js.map +1 -1
- package/dist/constants/ides.d.ts.map +1 -1
- package/dist/constants/ides.js +7 -5
- package/dist/constants/ides.js.map +1 -1
- package/dist/constants.d.ts +1 -1
- package/dist/constants.js +1 -1
- package/dist/types/ide-install.d.ts +1 -1
- package/dist/types/ide-install.d.ts.map +1 -1
- package/package.json +2 -2
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
# Skill Creator — DOMYH Awesome Code
|
|
2
|
+
|
|
3
|
+
Guide for creating new domyh-awf skills with proper schema, progressive disclosure, and quality standards.
|
|
4
|
+
|
|
5
|
+
## Decision Tree
|
|
6
|
+
|
|
7
|
+
```
|
|
8
|
+
Task → Creating a new skill?
|
|
9
|
+
├─ Simple skill (patterns only)
|
|
10
|
+
│ └─ META.yaml + SKILL.md (< 300 lines)
|
|
11
|
+
├─ Standard skill
|
|
12
|
+
│ └─ META.yaml + SKILL.md + data/*.yaml
|
|
13
|
+
├─ Complex skill (deep-dive content)
|
|
14
|
+
│ └─ META.yaml + SKILL.md + ADVANCED.md + data/ + references/
|
|
15
|
+
└─ Expanding existing skill?
|
|
16
|
+
└─ Check line count → Split if > 500 lines
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
## Quick Start — 6-Step Workflow
|
|
20
|
+
|
|
21
|
+
### Step 1: Choose Category & Directory
|
|
22
|
+
|
|
23
|
+
```yaml
|
|
24
|
+
categories:
|
|
25
|
+
core: # Foundation skills (security, coding-rules)
|
|
26
|
+
languages: # Programming languages (typescript, python, go)
|
|
27
|
+
frameworks: # Frameworks (react, nextjs, vue)
|
|
28
|
+
cross-cutting: # Multi-domain skills (testing, database, docker)
|
|
29
|
+
devops: # Infrastructure (aws, kubernetes, ci-cd)
|
|
30
|
+
tooling: # Dev tools (git, vscode)
|
|
31
|
+
ai-ml: # AI/ML patterns (rag-patterns, prompt-engineering)
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
### Step 2: Create META.yaml
|
|
35
|
+
|
|
36
|
+
```yaml
|
|
37
|
+
# Template — META.yaml v2
|
|
38
|
+
name: my-skill # lowercase, hyphen-separated
|
|
39
|
+
version: "6.2.7"
|
|
40
|
+
display: My Skill # Human-readable name
|
|
41
|
+
category: cross-cutting # One of the 7 categories
|
|
42
|
+
tier: 2 # 1=core, 2=standard, 3=specialized
|
|
43
|
+
priority: 3 # 0-6 (lower = higher priority)
|
|
44
|
+
|
|
45
|
+
desc: "Short description — max 80 chars"
|
|
46
|
+
|
|
47
|
+
trigger_desc: | # NEW v2: Rich description for semantic matching
|
|
48
|
+
When to activate this skill. Keywords, file patterns, common
|
|
49
|
+
user questions that should trigger this skill. Max 1024 chars.
|
|
50
|
+
|
|
51
|
+
triggers:
|
|
52
|
+
file_patterns:
|
|
53
|
+
- "*.ext"
|
|
54
|
+
- "config.file"
|
|
55
|
+
keywords:
|
|
56
|
+
- keyword1
|
|
57
|
+
- keyword2
|
|
58
|
+
- keyword3
|
|
59
|
+
intents:
|
|
60
|
+
- "action description 1"
|
|
61
|
+
- "action description 2"
|
|
62
|
+
|
|
63
|
+
caps:
|
|
64
|
+
- Capability 1
|
|
65
|
+
- Capability 2
|
|
66
|
+
- Capability 3
|
|
67
|
+
|
|
68
|
+
compatibility: "Runtime >= version" # NEW v2: Environment requirements
|
|
69
|
+
|
|
70
|
+
related_skills:
|
|
71
|
+
- related-skill-1
|
|
72
|
+
- related-skill-2
|
|
73
|
+
|
|
74
|
+
data_files:
|
|
75
|
+
- data/patterns.yaml
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
### Step 3: Write SKILL.md (< 500 lines)
|
|
79
|
+
|
|
80
|
+
```markdown
|
|
81
|
+
# Skill Name
|
|
82
|
+
|
|
83
|
+
Short description of what this skill covers.
|
|
84
|
+
|
|
85
|
+
## Decision Tree ← REQUIRED: When to use which pattern
|
|
86
|
+
|
|
87
|
+
## Quick Start ← REQUIRED: Most common workflow
|
|
88
|
+
|
|
89
|
+
## Patterns ← Key patterns with code examples
|
|
90
|
+
|
|
91
|
+
## Best Practices ← Checklist format preferred
|
|
92
|
+
|
|
93
|
+
## Data Files ← Reference to data/ files
|
|
94
|
+
|
|
95
|
+
## Deep-Dive References ← Links to references/ (if split)
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
### Step 4: Create data/ files (YAML patterns)
|
|
99
|
+
|
|
100
|
+
```yaml
|
|
101
|
+
# data/patterns.yaml
|
|
102
|
+
patterns:
|
|
103
|
+
- name: pattern-name
|
|
104
|
+
description: "What this pattern does"
|
|
105
|
+
when: "When to use it"
|
|
106
|
+
example: |
|
|
107
|
+
Code example here
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
### Step 5: Add references/ (if > 500 lines)
|
|
111
|
+
|
|
112
|
+
Split detailed content into `references/*.md` files:
|
|
113
|
+
|
|
114
|
+
```
|
|
115
|
+
my-skill/
|
|
116
|
+
├── META.yaml
|
|
117
|
+
├── SKILL.md (< 300 lines, core content)
|
|
118
|
+
├── ADVANCED.md (optional, deep-dive)
|
|
119
|
+
├── data/
|
|
120
|
+
│ └── patterns.yaml
|
|
121
|
+
└── references/
|
|
122
|
+
├── advanced-patterns.md
|
|
123
|
+
└── migration-guide.md
|
|
124
|
+
```
|
|
125
|
+
|
|
126
|
+
### Step 6: Validate
|
|
127
|
+
|
|
128
|
+
```yaml
|
|
129
|
+
checklist:
|
|
130
|
+
- [ ] META.yaml has all required fields (name, version, category, desc)
|
|
131
|
+
- [ ] trigger_desc is under 1024 chars
|
|
132
|
+
- [ ] SKILL.md is under 500 lines
|
|
133
|
+
- [ ] Decision tree present in SKILL.md
|
|
134
|
+
- [ ] Quick start section with working examples
|
|
135
|
+
- [ ] data/ files use consistent YAML schema
|
|
136
|
+
- [ ] references/ files linked from SKILL.md
|
|
137
|
+
- [ ] No duplicate keywords with existing skills
|
|
138
|
+
```
|
|
139
|
+
|
|
140
|
+
## SKILL.md Best Practices
|
|
141
|
+
|
|
142
|
+
| Practice | Rule |
|
|
143
|
+
| -------------------------- | -------------------------------------------- |
|
|
144
|
+
| **Line limit** | < 500 lines (split to references/ if larger) |
|
|
145
|
+
| **Decision tree** | Always include — guides agent routing |
|
|
146
|
+
| **Code examples** | Working, copy-pasteable code |
|
|
147
|
+
| **Checklist** | Use `- [ ]` for actionable items |
|
|
148
|
+
| **Cross-refs** | Link to related skills and data files |
|
|
149
|
+
| **Progressive disclosure** | Core in SKILL.md, details in references/ |
|
|
150
|
+
|
|
151
|
+
## Common Mistakes
|
|
152
|
+
|
|
153
|
+
❌ No decision tree → Agent doesn't know when to use patterns
|
|
154
|
+
❌ SKILL.md > 500 lines → Context bloat, slow loading
|
|
155
|
+
❌ Missing `desc` field → Broken HSA routing
|
|
156
|
+
❌ Missing `triggers.file_patterns` → No auto-detection
|
|
157
|
+
❌ Overlapping keywords → Confused skill selection
|
|
158
|
+
❌ Placeholder content → Wasted token budget
|
|
159
|
+
|
|
160
|
+
## References
|
|
161
|
+
|
|
162
|
+
- [META.yaml v2 Schema](references/schema-v2.md)
|
|
163
|
+
- [Progressive Disclosure Patterns](references/patterns.md)
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
# Progressive Disclosure Patterns
|
|
2
|
+
|
|
3
|
+
## 3-Tier Loading System
|
|
4
|
+
|
|
5
|
+
```
|
|
6
|
+
Tier 1: META.yaml (~100 tokens) — Always loaded for routing
|
|
7
|
+
Tier 2: SKILL.md (~1,500 tokens) — Loaded on-demand when skill activated
|
|
8
|
+
Tier 3: ADVANCED.md (~4,000 tokens) — Referenced only when deep-dive needed
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## When to Split
|
|
12
|
+
|
|
13
|
+
| Condition | Action |
|
|
14
|
+
| ---------------------- | -------------------------------------- |
|
|
15
|
+
| SKILL.md < 300 lines | Keep as-is |
|
|
16
|
+
| SKILL.md 300-500 lines | Consider splitting heavy sections |
|
|
17
|
+
| SKILL.md > 500 lines | **Must split** into core + references/ |
|
|
18
|
+
|
|
19
|
+
## Split Strategy
|
|
20
|
+
|
|
21
|
+
1. **Keep in SKILL.md** (core, < 300 lines):
|
|
22
|
+
- Decision tree
|
|
23
|
+
- Quick start / most common workflow
|
|
24
|
+
- Essential patterns overview
|
|
25
|
+
- Production checklist
|
|
26
|
+
- Data file references
|
|
27
|
+
|
|
28
|
+
2. **Move to references/** (on-demand):
|
|
29
|
+
- Detailed code examples
|
|
30
|
+
- Platform-specific content
|
|
31
|
+
- Migration guides
|
|
32
|
+
- Advanced patterns
|
|
33
|
+
- API reference tables
|
|
34
|
+
|
|
35
|
+
3. **Keep in ADVANCED.md** (rare access):
|
|
36
|
+
- Deep architectural patterns
|
|
37
|
+
- Performance tuning guides
|
|
38
|
+
- Edge cases and gotchas
|
|
39
|
+
- Historical context
|
|
40
|
+
|
|
41
|
+
## Reference File Naming
|
|
42
|
+
|
|
43
|
+
```
|
|
44
|
+
references/
|
|
45
|
+
├── {topic}-patterns.md # Pattern collections
|
|
46
|
+
├── {platform}-specific.md # Platform guides
|
|
47
|
+
├── migration-guide.md # Version migration
|
|
48
|
+
└── api-reference.md # API documentation
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
## Linking Pattern
|
|
52
|
+
|
|
53
|
+
```markdown
|
|
54
|
+
## 📚 Deep-Dive References
|
|
55
|
+
|
|
56
|
+
- **Topic Name** — Brief description
|
|
57
|
+
→ See [references/topic-name.md](references/topic-name.md)
|
|
58
|
+
```
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
# META.yaml v2 Schema Reference
|
|
2
|
+
|
|
3
|
+
## Required Fields
|
|
4
|
+
|
|
5
|
+
| Field | Type | Max Length | Description |
|
|
6
|
+
| ---------- | ------ | ---------- | -------------------------------------------------------------------------- |
|
|
7
|
+
| `name` | string | 30 chars | Lowercase, hyphen-separated identifier |
|
|
8
|
+
| `version` | string | - | Semver string (e.g., "6.2.7") |
|
|
9
|
+
| `category` | enum | - | One of: core, languages, frameworks, cross-cutting, devops, tooling, ai-ml |
|
|
10
|
+
| `desc` | string | 80 chars | Short description for listings |
|
|
11
|
+
|
|
12
|
+
## Recommended Fields
|
|
13
|
+
|
|
14
|
+
| Field | Type | Max Length | Description |
|
|
15
|
+
| ------------------------ | ------ | ---------- | ------------------------------------------ |
|
|
16
|
+
| `display` | string | 50 chars | Human-readable display name |
|
|
17
|
+
| `tier` | int | - | 1=core, 2=standard, 3=specialized |
|
|
18
|
+
| `priority` | int | - | 0-6 (lower = higher priority) |
|
|
19
|
+
| `trigger_desc` | string | 1024 chars | Rich semantic description for HSA matching |
|
|
20
|
+
| `triggers.file_patterns` | list | - | File globs for auto-detection |
|
|
21
|
+
| `triggers.keywords` | list | 30 items | Keywords for BM25 matching |
|
|
22
|
+
| `triggers.intents` | list | 10 items | User intent descriptions |
|
|
23
|
+
| `caps` | list | 6 items | Capability descriptions |
|
|
24
|
+
| `compatibility` | string | 100 chars | Environment requirements |
|
|
25
|
+
|
|
26
|
+
## Optional Fields
|
|
27
|
+
|
|
28
|
+
| Field | Type | Description |
|
|
29
|
+
| ------------------------ | ---- | ---------------------------------- |
|
|
30
|
+
| `related_skills` | list | Other skills to cross-reference |
|
|
31
|
+
| `prevent_confusion_with` | map | Disambiguation from similar skills |
|
|
32
|
+
| `data_files` | list | Paths to data/ YAML files |
|
|
33
|
+
| `patterns.total` | int | Total pattern count |
|
|
34
|
+
| `patterns.domains` | map | Domain breakdown |
|
|
35
|
+
|
|
36
|
+
## Validation Rules
|
|
37
|
+
|
|
38
|
+
1. `name` must be unique across all skills
|
|
39
|
+
2. `desc` must not exceed 80 characters
|
|
40
|
+
3. `trigger_desc` must not exceed 1024 characters
|
|
41
|
+
4. `triggers.keywords` should have 5-30 items
|
|
42
|
+
5. `caps` should have 3-6 items
|
|
43
|
+
6. `compatibility` should specify minimum versions
|
|
44
|
+
7. File patterns must use standard glob syntax
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
name: testing
|
|
2
|
-
version: "6.2.
|
|
2
|
+
version: "6.2.7"
|
|
3
3
|
display: Testing
|
|
4
4
|
category: support
|
|
5
5
|
tier: 1
|
|
@@ -7,6 +7,12 @@ priority: 2
|
|
|
7
7
|
|
|
8
8
|
desc: "Testing patterns: unit tests, integration tests, mocking, TDD, coverage, e2e"
|
|
9
9
|
|
|
10
|
+
trigger_desc: |
|
|
11
|
+
Activate when user asks about writing tests, test coverage, mocking,
|
|
12
|
+
test-driven development (TDD), integration tests, e2e tests, test
|
|
13
|
+
fixtures, assertions, or testing framework selection (Vitest, Jest,
|
|
14
|
+
pytest, Go testing). Also for CI test pipeline setup.
|
|
15
|
+
|
|
10
16
|
triggers:
|
|
11
17
|
file_patterns:
|
|
12
18
|
- "tests/"
|
|
@@ -2,6 +2,101 @@
|
|
|
2
2
|
|
|
3
3
|
AWS cloud services patterns for serverless, containers, and AI/ML. Covers Lambda, S3, ECS, EKS, Bedrock, and SageMaker.
|
|
4
4
|
|
|
5
|
+
## Decision Tree
|
|
6
|
+
|
|
7
|
+
```
|
|
8
|
+
Task → What are you deploying?
|
|
9
|
+
├─ API/Microservice
|
|
10
|
+
│ ├─ Low traffic / event-driven → Lambda + API Gateway
|
|
11
|
+
│ ├─ Medium traffic → ECS Fargate (containers)
|
|
12
|
+
│ └─ High traffic / complex → EKS (Kubernetes)
|
|
13
|
+
├─ Static website
|
|
14
|
+
│ └─ S3 + CloudFront (CDN)
|
|
15
|
+
├─ Data processing
|
|
16
|
+
│ ├─ Batch → Step Functions + Lambda
|
|
17
|
+
│ ├─ Stream → Kinesis + Lambda
|
|
18
|
+
│ └─ ETL → Glue
|
|
19
|
+
├─ AI/ML
|
|
20
|
+
│ ├─ Foundation models → Bedrock
|
|
21
|
+
│ ├─ Custom training → SageMaker
|
|
22
|
+
│ └─ RAG → Bedrock + OpenSearch Serverless
|
|
23
|
+
└─ Database
|
|
24
|
+
├─ Relational → RDS (PostgreSQL/MySQL) or Aurora
|
|
25
|
+
├─ Key-value → DynamoDB
|
|
26
|
+
├─ Cache → ElastiCache (Redis/Valkey)
|
|
27
|
+
└─ Vector → OpenSearch Serverless
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
## Quick Start — Lambda + API Gateway
|
|
31
|
+
|
|
32
|
+
```yaml
|
|
33
|
+
# template.yaml (SAM)
|
|
34
|
+
AWSTemplateFormatVersion: "2010-09-09"
|
|
35
|
+
Transform: AWS::Serverless-2016-10-31
|
|
36
|
+
|
|
37
|
+
Globals:
|
|
38
|
+
Function:
|
|
39
|
+
Timeout: 30
|
|
40
|
+
Runtime: nodejs22.x
|
|
41
|
+
MemorySize: 256
|
|
42
|
+
Architectures: [arm64] # Graviton = cheaper + faster
|
|
43
|
+
Environment:
|
|
44
|
+
Variables:
|
|
45
|
+
NODE_ENV: production
|
|
46
|
+
|
|
47
|
+
Resources:
|
|
48
|
+
ApiFunction:
|
|
49
|
+
Type: AWS::Serverless::Function
|
|
50
|
+
Properties:
|
|
51
|
+
CodeUri: src/
|
|
52
|
+
Handler: index.handler
|
|
53
|
+
Events:
|
|
54
|
+
Api:
|
|
55
|
+
Type: HttpApi
|
|
56
|
+
Properties:
|
|
57
|
+
Path: /api/{proxy+}
|
|
58
|
+
Method: ANY
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
```bash
|
|
62
|
+
# Deploy
|
|
63
|
+
sam build
|
|
64
|
+
sam deploy --guided
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
## Quick Start — ECS Fargate
|
|
68
|
+
|
|
69
|
+
```bash
|
|
70
|
+
# Create cluster + service
|
|
71
|
+
aws ecs create-cluster --cluster-name myapp
|
|
72
|
+
aws ecs create-service \
|
|
73
|
+
--cluster myapp \
|
|
74
|
+
--service-name api \
|
|
75
|
+
--task-definition myapp:1 \
|
|
76
|
+
--desired-count 2 \
|
|
77
|
+
--launch-type FARGATE \
|
|
78
|
+
--network-configuration "awsvpcConfiguration={subnets=[subnet-xxx],securityGroups=[sg-xxx],assignPublicIp=ENABLED}"
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
## Quick Start — Bedrock
|
|
82
|
+
|
|
83
|
+
```python
|
|
84
|
+
import boto3
|
|
85
|
+
import json
|
|
86
|
+
|
|
87
|
+
bedrock = boto3.client('bedrock-runtime', region_name='us-east-1')
|
|
88
|
+
|
|
89
|
+
response = bedrock.invoke_model(
|
|
90
|
+
modelId='anthropic.claude-3-5-sonnet-20241022-v2:0',
|
|
91
|
+
body=json.dumps({
|
|
92
|
+
"anthropic_version": "bedrock-2023-05-31",
|
|
93
|
+
"max_tokens": 1024,
|
|
94
|
+
"messages": [{"role": "user", "content": "Hello"}]
|
|
95
|
+
})
|
|
96
|
+
)
|
|
97
|
+
result = json.loads(response['body'].read())
|
|
98
|
+
```
|
|
99
|
+
|
|
5
100
|
## Patterns (25 total)
|
|
6
101
|
|
|
7
102
|
### Compute (6)
|
|
@@ -17,32 +112,22 @@ AWS cloud services patterns for serverless, containers, and AI/ML. Covers Lambda
|
|
|
17
112
|
|
|
18
113
|
- S3 Vectors (vector embeddings in S3)
|
|
19
114
|
- S3 Tables (Apache Iceberg format)
|
|
20
|
-
- S3
|
|
21
|
-
- S3 lifecycle policies
|
|
22
|
-
- Cross-region replication
|
|
115
|
+
- S3 lifecycle policies and replication
|
|
23
116
|
|
|
24
117
|
### Kubernetes (5)
|
|
25
118
|
|
|
26
|
-
- EKS cluster configuration
|
|
27
|
-
-
|
|
28
|
-
- EKS capabilities and add-ons
|
|
29
|
-
- Fargate profiles for EKS
|
|
30
|
-
- EKS auto-mode
|
|
119
|
+
- EKS cluster configuration + Pod Identity
|
|
120
|
+
- Fargate profiles, auto-mode, add-ons
|
|
31
121
|
|
|
32
122
|
### AI/ML (5)
|
|
33
123
|
|
|
34
|
-
- Bedrock foundation models
|
|
35
|
-
- SageMaker
|
|
36
|
-
- MLFlow experiment tracking
|
|
37
|
-
- Bedrock Agents for autonomous tasks
|
|
38
|
-
- SageMaker inference endpoints
|
|
124
|
+
- Bedrock foundation models + Agents
|
|
125
|
+
- SageMaker training + inference endpoints
|
|
39
126
|
|
|
40
127
|
### Serverless (4)
|
|
41
128
|
|
|
42
129
|
- API Gateway + Lambda patterns
|
|
43
|
-
- Step Functions
|
|
44
|
-
- DynamoDB single-table design
|
|
45
|
-
- CloudFront edge functions
|
|
130
|
+
- Step Functions, DynamoDB single-table design
|
|
46
131
|
|
|
47
132
|
## Data Files
|
|
48
133
|
|
|
@@ -1,43 +1,109 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Azure Cloud Services
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Azure cloud services patterns for enterprise workloads. Covers App Service, AKS, Functions, Cosmos DB, Azure AI.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
## Decision Tree
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
```
|
|
8
|
+
Task → What are you deploying?
|
|
9
|
+
├─ Web API
|
|
10
|
+
│ ├─ Simple → App Service (PaaS)
|
|
11
|
+
│ ├─ Event-driven → Azure Functions
|
|
12
|
+
│ └─ Complex / microservices → AKS (Kubernetes)
|
|
13
|
+
├─ Static website
|
|
14
|
+
│ └─ Azure Static Web Apps + CDN
|
|
15
|
+
├─ Database
|
|
16
|
+
│ ├─ Relational → Azure SQL / PostgreSQL Flexible
|
|
17
|
+
│ ├─ NoSQL → Cosmos DB
|
|
18
|
+
│ └─ Cache → Azure Cache for Redis
|
|
19
|
+
├─ AI/ML
|
|
20
|
+
│ ├─ OpenAI models → Azure OpenAI Service
|
|
21
|
+
│ ├─ Custom models → Azure ML
|
|
22
|
+
│ └─ Search → Azure AI Search (vector + hybrid)
|
|
23
|
+
└─ DevOps
|
|
24
|
+
├─ CI/CD → Azure DevOps Pipelines or GitHub Actions
|
|
25
|
+
└─ IaC → Bicep (Azure-native) or Terraform
|
|
26
|
+
```
|
|
8
27
|
|
|
9
|
-
|
|
10
|
-
- CI/CD pipelines (Azure DevOps)
|
|
11
|
-
- NoSQL database (Cosmos DB)
|
|
12
|
-
- Enterprise app deployment
|
|
28
|
+
## Quick Start — App Service
|
|
13
29
|
|
|
14
|
-
|
|
30
|
+
```bash
|
|
31
|
+
# Create and deploy
|
|
32
|
+
az group create --name myapp-rg --location eastus
|
|
33
|
+
az appservice plan create --name myplan --resource-group myapp-rg --sku B1 --is-linux
|
|
34
|
+
az webapp create --name myapp --resource-group myapp-rg --plan myplan --runtime "NODE:22-lts"
|
|
35
|
+
az webapp up --name myapp --resource-group myapp-rg
|
|
36
|
+
```
|
|
15
37
|
|
|
16
|
-
|
|
17
|
-
| ------------------- | -------------------- | ---------------------- |
|
|
18
|
-
| **Azure Functions** | Serverless functions | Event-driven, webhooks |
|
|
19
|
-
| **App Service** | Managed web apps | APIs, web apps |
|
|
20
|
-
| **AKS** | Managed Kubernetes | Microservices |
|
|
21
|
-
| **Cosmos DB** | Multi-model NoSQL | Global distribution |
|
|
22
|
-
| **Azure SQL** | Managed SQL | Relational data |
|
|
38
|
+
## Quick Start — Azure Functions
|
|
23
39
|
|
|
24
|
-
|
|
40
|
+
```typescript
|
|
41
|
+
// src/functions/httpTrigger.ts
|
|
42
|
+
import { app, HttpRequest, HttpResponseInit } from "@azure/functions";
|
|
25
43
|
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
44
|
+
app.http("hello", {
|
|
45
|
+
methods: ["GET", "POST"],
|
|
46
|
+
authLevel: "anonymous",
|
|
47
|
+
handler: async (request: HttpRequest): Promise<HttpResponseInit> => {
|
|
48
|
+
const name = request.query.get("name") || "World";
|
|
49
|
+
return { body: `Hello, ${name}!` };
|
|
50
|
+
},
|
|
51
|
+
});
|
|
31
52
|
```
|
|
32
53
|
|
|
33
|
-
##
|
|
54
|
+
## Quick Start — Azure OpenAI
|
|
55
|
+
|
|
56
|
+
```python
|
|
57
|
+
from openai import AzureOpenAI
|
|
58
|
+
|
|
59
|
+
client = AzureOpenAI(
|
|
60
|
+
api_key=os.getenv("AZURE_OPENAI_API_KEY"),
|
|
61
|
+
api_version="2024-10-21",
|
|
62
|
+
azure_endpoint=os.getenv("AZURE_OPENAI_ENDPOINT")
|
|
63
|
+
)
|
|
64
|
+
|
|
65
|
+
response = client.chat.completions.create(
|
|
66
|
+
model="gpt-4o",
|
|
67
|
+
messages=[{"role": "user", "content": "Hello"}]
|
|
68
|
+
)
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
## Patterns (20 total)
|
|
72
|
+
|
|
73
|
+
### Compute (5)
|
|
74
|
+
|
|
75
|
+
- App Service deployment slots (zero-downtime)
|
|
76
|
+
- Azure Functions with Durable Functions
|
|
77
|
+
- AKS cluster with managed identity
|
|
78
|
+
- Container Apps (serverless containers)
|
|
79
|
+
- Azure Spring Apps for Java
|
|
80
|
+
|
|
81
|
+
### Data (5)
|
|
82
|
+
|
|
83
|
+
- Cosmos DB partition strategies
|
|
84
|
+
- Azure SQL Hyperscale
|
|
85
|
+
- PostgreSQL Flexible Server
|
|
86
|
+
- Azure Cache for Redis
|
|
87
|
+
- Event Hubs for streaming
|
|
88
|
+
|
|
89
|
+
### AI (5)
|
|
90
|
+
|
|
91
|
+
- Azure OpenAI GPT-4o integration
|
|
92
|
+
- Azure AI Search (vector + hybrid)
|
|
93
|
+
- Azure ML endpoints
|
|
94
|
+
- Prompt Flow orchestration
|
|
95
|
+
- Content Safety filters
|
|
96
|
+
|
|
97
|
+
### Infrastructure (5)
|
|
34
98
|
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
99
|
+
- Bicep modules (IaC)
|
|
100
|
+
- Azure DevOps pipelines
|
|
101
|
+
- Managed Identity (passwordless)
|
|
102
|
+
- Key Vault integration
|
|
103
|
+
- Private Endpoints
|
|
40
104
|
|
|
41
|
-
|
|
105
|
+
## Data Files
|
|
42
106
|
|
|
43
|
-
|
|
107
|
+
- `data/compute.yaml` — App Service, Functions, AKS patterns
|
|
108
|
+
- `data/data.yaml` — Cosmos DB, SQL, Redis patterns
|
|
109
|
+
- `data/ai.yaml` — Azure OpenAI, AI Search patterns
|