agentic-flow 1.7.0 → 1.7.3

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 (53) hide show
  1. package/.claude/agents/test-neural.md +5 -0
  2. package/.claude/settings.json +20 -19
  3. package/.claude/skills/agentdb-memory-patterns/SKILL.md +166 -0
  4. package/.claude/skills/agentdb-vector-search/SKILL.md +126 -0
  5. package/.claude/skills/agentic-flow/agentdb-memory-patterns/SKILL.md +166 -0
  6. package/.claude/skills/agentic-flow/agentdb-vector-search/SKILL.md +126 -0
  7. package/.claude/skills/agentic-flow/reasoningbank-intelligence/SKILL.md +201 -0
  8. package/.claude/skills/agentic-flow/swarm-orchestration/SKILL.md +179 -0
  9. package/.claude/skills/reasoningbank-intelligence/SKILL.md +201 -0
  10. package/.claude/skills/skill-builder/README.md +308 -0
  11. package/.claude/skills/skill-builder/SKILL.md +910 -0
  12. package/.claude/skills/skill-builder/docs/SPECIFICATION.md +358 -0
  13. package/.claude/skills/skill-builder/resources/schemas/skill-frontmatter.schema.json +41 -0
  14. package/.claude/skills/skill-builder/resources/templates/full-skill.template +118 -0
  15. package/.claude/skills/skill-builder/resources/templates/minimal-skill.template +38 -0
  16. package/.claude/skills/skill-builder/scripts/generate-skill.sh +334 -0
  17. package/.claude/skills/skill-builder/scripts/validate-skill.sh +198 -0
  18. package/.claude/skills/swarm-orchestration/SKILL.md +179 -0
  19. package/CHANGELOG.md +117 -0
  20. package/README.md +81 -17
  21. package/dist/cli-proxy.js +33 -2
  22. package/dist/mcp/standalone-stdio.js +4 -200
  23. package/dist/reasoningbank/index.js +4 -0
  24. package/dist/utils/cli.js +22 -0
  25. package/docs/AGENTDB_INTEGRATION.md +379 -0
  26. package/package.json +4 -4
  27. package/.claude/answer.md +0 -1
  28. package/dist/agentdb/benchmarks/comprehensive-benchmark.js +0 -664
  29. package/dist/agentdb/benchmarks/frontier-benchmark.js +0 -419
  30. package/dist/agentdb/benchmarks/reflexion-benchmark.js +0 -370
  31. package/dist/agentdb/cli/agentdb-cli.js +0 -717
  32. package/dist/agentdb/controllers/CausalMemoryGraph.js +0 -322
  33. package/dist/agentdb/controllers/CausalRecall.js +0 -281
  34. package/dist/agentdb/controllers/EmbeddingService.js +0 -118
  35. package/dist/agentdb/controllers/ExplainableRecall.js +0 -387
  36. package/dist/agentdb/controllers/NightlyLearner.js +0 -382
  37. package/dist/agentdb/controllers/ReflexionMemory.js +0 -239
  38. package/dist/agentdb/controllers/SkillLibrary.js +0 -276
  39. package/dist/agentdb/controllers/frontier-index.js +0 -9
  40. package/dist/agentdb/controllers/index.js +0 -8
  41. package/dist/agentdb/index.js +0 -32
  42. package/dist/agentdb/optimizations/BatchOperations.js +0 -198
  43. package/dist/agentdb/optimizations/QueryOptimizer.js +0 -225
  44. package/dist/agentdb/optimizations/index.js +0 -7
  45. package/dist/agentdb/tests/frontier-features.test.js +0 -665
  46. package/dist/memory/SharedMemoryPool.js +0 -211
  47. package/dist/memory/index.js +0 -6
  48. package/dist/reasoningbank/AdvancedMemory.js +0 -67
  49. package/dist/reasoningbank/HybridBackend.js +0 -91
  50. package/dist/reasoningbank/index-new.js +0 -87
  51. package/docs/AGENTDB_TESTING.md +0 -411
  52. package/scripts/run-validation.sh +0 -165
  53. package/scripts/test-agentdb.sh +0 -153
@@ -0,0 +1,358 @@
1
+ # Claude Code Skills - Official Specification
2
+
3
+ **Source**: Anthropic Documentation & Research
4
+ **Last Updated**: 2025-10-19
5
+ **Status**: Production
6
+
7
+ ---
8
+
9
+ ## Overview
10
+
11
+ Claude Code Skills are filesystem-based knowledge modules that Claude can autonomously discover and use. They follow a progressive disclosure architecture that enables scaling to 100+ skills without context window penalties.
12
+
13
+ ---
14
+
15
+ ## YAML Frontmatter Specification
16
+
17
+ ### Required Format
18
+
19
+ ```yaml
20
+ ---
21
+ name: "Skill Name"
22
+ description: "Description text"
23
+ ---
24
+ ```
25
+
26
+ ### Field Definitions
27
+
28
+ #### `name` (REQUIRED)
29
+ - **Type**: String
30
+ - **Min Length**: 1 character
31
+ - **Max Length**: 64 characters
32
+ - **Format**: Human-friendly display name
33
+ - **Usage**: Shown in UI, loaded into system prompt
34
+ - **Validation**: Must be unique within skills directory
35
+ - **Examples**:
36
+ - ✅ "API Documentation Generator"
37
+ - ✅ "React Component Builder"
38
+ - ❌ "" (empty)
39
+ - ❌ "This is a very long skill name that definitely exceeds the sixty-four character limit" (too long)
40
+
41
+ #### `description` (REQUIRED)
42
+ - **Type**: String
43
+ - **Min Length**: 10 characters (recommended 50+)
44
+ - **Max Length**: 1024 characters
45
+ - **Content Requirements**:
46
+ 1. **WHAT**: What the skill does (functionality)
47
+ 2. **WHEN**: When Claude should invoke it (triggers)
48
+ - **Usage**: Loaded into system prompt for autonomous skill matching
49
+ - **Validation**: Should contain action verbs and use cases
50
+ - **Examples**:
51
+ - ✅ "Generate OpenAPI 3.0 documentation from Express.js routes. Use when creating API docs, documenting endpoints, or building API specifications."
52
+ - ✅ "Debug React performance issues using Chrome DevTools. Use when components re-render unnecessarily, investigating slow updates, or optimizing bundle size."
53
+ - ❌ "API documentation tool" (no "when" clause, too vague)
54
+ - ❌ "A comprehensive guide to building APIs" (no clear triggers)
55
+
56
+ ### Additional Fields
57
+
58
+ **Status**: NOT part of official specification
59
+ **Behavior**: Additional fields (version, author, tags, etc.) are **ignored** by Claude
60
+
61
+ ```yaml
62
+ ---
63
+ name: "My Skill"
64
+ description: "My description"
65
+ version: "1.0.0" # Ignored
66
+ author: "Me" # Ignored
67
+ tags: ["dev"] # Ignored
68
+ custom: "value" # Ignored
69
+ ---
70
+ ```
71
+
72
+ **Recommendation**: Avoid adding non-standard fields to keep frontmatter clean.
73
+
74
+ ---
75
+
76
+ ## Directory Structure Specification
77
+
78
+ ### Minimal Valid Skill
79
+
80
+ ```
81
+ ~/.claude/skills/
82
+ └── my-skill/
83
+ └── SKILL.md # REQUIRED
84
+ ```
85
+
86
+ ### Full-Featured Skill
87
+
88
+ ```
89
+ ~/.claude/skills/
90
+ └── namespace/
91
+ └── skill-name/
92
+ ├── SKILL.md # REQUIRED: Main skill file
93
+ ├── README.md # Optional: Human-readable docs
94
+ ├── scripts/ # Optional: Executable scripts
95
+ │ ├── setup.sh
96
+ │ └── generate.js
97
+ ├── resources/ # Optional: Supporting files
98
+ │ ├── templates/
99
+ │ ├── examples/
100
+ │ └── schemas/
101
+ └── docs/ # Optional: Additional docs
102
+ ├── ADVANCED.md
103
+ └── API_REFERENCE.md
104
+ ```
105
+
106
+ ### Skills Locations
107
+
108
+ **Personal Skills**:
109
+ - **Path**: `~/.claude/skills/` or `$HOME/.claude/skills/`
110
+ - **Scope**: Available across all projects for current user
111
+ - **Discovery**: Auto-detected by Claude Code on startup
112
+ - **Version Control**: NOT recommended (user-specific)
113
+
114
+ **Project Skills**:
115
+ - **Path**: `<project-root>/.claude/skills/`
116
+ - **Scope**: Available only within this project
117
+ - **Discovery**: Auto-detected when Claude Code runs in project
118
+ - **Version Control**: RECOMMENDED (team-shared)
119
+
120
+ ---
121
+
122
+ ## Progressive Disclosure Architecture
123
+
124
+ ### Level 1: Metadata (Name + Description)
125
+ - **Loaded**: At startup for ALL skills
126
+ - **Size**: ~200 bytes per skill
127
+ - **Purpose**: Enable skill matching
128
+ - **Context Impact**: 100 skills = ~20KB
129
+
130
+ ```yaml
131
+ ---
132
+ name: "API Builder" # ~11 bytes
133
+ description: "Creates REST APIs with Express. Use when building APIs." # ~60 bytes
134
+ ---
135
+ # Total per skill: ~71 bytes + YAML overhead = ~200 bytes
136
+ ```
137
+
138
+ ### Level 2: SKILL.md Body
139
+ - **Loaded**: Only when skill is triggered
140
+ - **Size**: 1-10KB typically (recommended < 50KB)
141
+ - **Purpose**: Main instructions and procedures
142
+ - **Context Impact**: Only active skills loaded
143
+
144
+ ```markdown
145
+ # API Builder
146
+
147
+ ## What This Skill Does
148
+ [Loaded only when skill is active]
149
+
150
+ ## Quick Start
151
+ ...
152
+ ```
153
+
154
+ ### Level 3+: Referenced Files
155
+ - **Loaded**: On-demand as Claude navigates
156
+ - **Size**: Variable (KB to MB)
157
+ - **Purpose**: Deep reference, schemas, examples
158
+ - **Context Impact**: Only specific files Claude accesses
159
+
160
+ ```markdown
161
+ See [Advanced Guide](docs/ADVANCED.md)
162
+ Use template: `resources/templates/api.template`
163
+ ```
164
+
165
+ **Benefit**: Install 100+ skills with minimal context penalty. Only active skill content enters context window.
166
+
167
+ ---
168
+
169
+ ## Content Structure Recommendations
170
+
171
+ ### 4-Level Structure
172
+
173
+ ```markdown
174
+ ---
175
+ name: "..."
176
+ description: "..."
177
+ ---
178
+
179
+ # Level 1: Overview (Always Read)
180
+ - What This Skill Does (2-3 sentences)
181
+ - Prerequisites
182
+
183
+ # Level 2: Quick Start (Common Path)
184
+ - Basic usage command
185
+ - Expected output
186
+
187
+ # Level 3: Detailed Instructions (Full Guide)
188
+ - Step-by-step procedures
189
+ - Advanced options
190
+
191
+ # Level 4: Reference (Rarely Needed)
192
+ - Troubleshooting
193
+ - API reference links
194
+ ```
195
+
196
+ ### Recommended Sections
197
+
198
+ **REQUIRED**:
199
+ - H1 title matching skill name
200
+ - "What This Skill Does" section
201
+
202
+ **RECOMMENDED**:
203
+ - Prerequisites
204
+ - Quick Start
205
+ - Step-by-Step Guide
206
+ - Troubleshooting
207
+
208
+ **OPTIONAL**:
209
+ - Advanced Features
210
+ - Examples
211
+ - API Reference
212
+ - Related Skills
213
+ - Resources
214
+
215
+ ---
216
+
217
+ ## File Reference Patterns
218
+
219
+ Claude can navigate to referenced files automatically:
220
+
221
+ ### Markdown Links
222
+ ```markdown
223
+ See [Advanced Configuration](docs/ADVANCED.md)
224
+ See [Troubleshooting](docs/TROUBLESHOOTING.md)
225
+ ```
226
+
227
+ ### Relative Paths
228
+ ```markdown
229
+ Use template at `resources/templates/api.template`
230
+ See examples in `resources/examples/basic/`
231
+ ```
232
+
233
+ ### Inline Content
234
+ ```markdown
235
+ See configuration schema in `resources/schemas/config.json`
236
+ ```
237
+
238
+ **Best Practice**: Keep SKILL.md lean. Move lengthy content to separate files and reference them.
239
+
240
+ ---
241
+
242
+ ## Validation Requirements
243
+
244
+ ### YAML Frontmatter
245
+ - ✅ Starts with `---` on first line
246
+ - ✅ Contains `name` field (1-64 chars)
247
+ - ✅ Contains `description` field (10-1024 chars, recommended 50+)
248
+ - ✅ Ends with `---` before markdown content
249
+ - ✅ Valid YAML syntax (no parse errors)
250
+
251
+ ### File Structure
252
+ - ✅ SKILL.md exists
253
+ - ✅ Located in `~/.claude/skills/` or `.claude/skills/`
254
+ - ✅ Directory name is clear and descriptive
255
+
256
+ ### Content Quality
257
+ - ✅ Description includes "what" and "when"
258
+ - ✅ Instructions are clear and actionable
259
+ - ✅ Examples are concrete and runnable
260
+ - ✅ File size < 50KB (SKILL.md)
261
+
262
+ ### Discovery
263
+ - ✅ Skill appears in Claude's skills list
264
+ - ✅ Description triggers on relevant queries
265
+ - ✅ Claude can execute instructions successfully
266
+
267
+ ---
268
+
269
+ ## Platform Support
270
+
271
+ Skills work across all Claude surfaces:
272
+
273
+ | Platform | Support | Notes |
274
+ |----------|---------|-------|
275
+ | **Claude.ai** | ✅ Full | Upload skills or use built-in |
276
+ | **Claude Code** | ✅ Full | Auto-discovery from filesystem |
277
+ | **Claude SDK** | ✅ Full | Programmatic access via API |
278
+ | **Claude API** | ✅ Full | Skills via API calls |
279
+
280
+ **Format**: Same SKILL.md format across all platforms (portable)
281
+
282
+ ---
283
+
284
+ ## Best Practices
285
+
286
+ ### Description Writing
287
+ 1. **Front-load keywords**: Put important trigger words first
288
+ 2. **Include "when" clause**: Specify use cases explicitly
289
+ 3. **Be specific**: Name technologies, frameworks, tools
290
+ 4. **Use action verbs**: "Generate", "Create", "Debug", "Build"
291
+ 5. **Target queries**: Think about what users will ask
292
+
293
+ ### Content Organization
294
+ 1. **Progressive disclosure**: Start simple, add detail gradually
295
+ 2. **Scannable structure**: Use clear headings and lists
296
+ 3. **Concrete examples**: Show actual code, not just descriptions
297
+ 4. **Reference heavy content**: Move large docs to separate files
298
+ 5. **Keep SKILL.md lean**: Target 2-10KB for optimal performance
299
+
300
+ ### File Management
301
+ 1. **Use namespaces**: Organize skills by category/owner
302
+ 2. **Scripts in scripts/**: Keep executable files organized
303
+ 3. **Resources in resources/**: Templates, examples, schemas
304
+ 4. **Docs in docs/**: Long-form documentation
305
+ 5. **README for humans**: SKILL.md is for Claude, README is for people
306
+
307
+ ---
308
+
309
+ ## Common Mistakes
310
+
311
+ ### ❌ Invalid YAML
312
+ ```yaml
313
+ name: API:Builder # Missing quotes with special char
314
+ ```
315
+ **Fix**:
316
+ ```yaml
317
+ name: "API:Builder"
318
+ ```
319
+
320
+ ### ❌ Description Too Vague
321
+ ```yaml
322
+ description: "API documentation tool"
323
+ ```
324
+ **Fix**:
325
+ ```yaml
326
+ description: "Generate OpenAPI 3.0 docs from Express routes. Use when documenting APIs."
327
+ ```
328
+
329
+ ### ❌ Massive SKILL.md
330
+ ```markdown
331
+ [10,000 lines of reference documentation in SKILL.md]
332
+ ```
333
+ **Fix**: Move to separate files, reference from SKILL.md
334
+
335
+ ### ❌ No "When" Clause
336
+ ```yaml
337
+ description: "Creates React components with TypeScript."
338
+ ```
339
+ **Fix**:
340
+ ```yaml
341
+ description: "Creates React components with TypeScript. Use when scaffolding new components or refactoring."
342
+ ```
343
+
344
+ ---
345
+
346
+ ## Version History
347
+
348
+ - **2025-10-16**: Official Skills launch by Anthropic
349
+ - **2025-10-19**: Specification documented in this file
350
+
351
+ ---
352
+
353
+ ## References
354
+
355
+ - [Anthropic Skills Documentation](https://docs.claude.com/en/docs/agents-and-tools/agent-skills)
356
+ - [GitHub Skills Repository](https://github.com/anthropics/skills)
357
+ - [Claude Code Documentation](https://docs.claude.com/en/docs/claude-code)
358
+ - [Anthropic Engineering Blog: Agent Skills](https://www.anthropic.com/engineering/equipping-agents-for-the-real-world-with-agent-skills)
@@ -0,0 +1,41 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "title": "Claude Code Skill YAML Frontmatter Schema",
4
+ "description": "Schema for validating SKILL.md YAML frontmatter according to Anthropic specification",
5
+ "type": "object",
6
+ "properties": {
7
+ "name": {
8
+ "type": "string",
9
+ "description": "Human-friendly skill name",
10
+ "minLength": 1,
11
+ "maxLength": 64,
12
+ "examples": [
13
+ "API Documentation Generator",
14
+ "React Component Builder",
15
+ "Database Schema Designer"
16
+ ]
17
+ },
18
+ "description": {
19
+ "type": "string",
20
+ "description": "Skill description including what it does and when to use it",
21
+ "minLength": 10,
22
+ "maxLength": 1024,
23
+ "examples": [
24
+ "Generate OpenAPI 3.0 documentation from Express.js routes. Use when creating API docs, documenting endpoints, or building API specifications.",
25
+ "Create React functional components with TypeScript, hooks, and tests. Use when scaffolding new components or converting class components."
26
+ ]
27
+ }
28
+ },
29
+ "required": ["name", "description"],
30
+ "additionalProperties": false,
31
+ "examples": [
32
+ {
33
+ "name": "API Builder",
34
+ "description": "Creates REST APIs with Express and TypeScript. Use when building new APIs, adding endpoints, or scaffolding backend services."
35
+ },
36
+ {
37
+ "name": "Test Generator",
38
+ "description": "Generate Jest test suites from component implementations. Use when writing tests, improving coverage, or following TDD practices."
39
+ }
40
+ ]
41
+ }
@@ -0,0 +1,118 @@
1
+ ---
2
+ name: "{{SKILL_NAME}}"
3
+ description: "{{DESCRIPTION}}"
4
+ ---
5
+
6
+ # {{SKILL_NAME}}
7
+
8
+ ## Overview
9
+
10
+ {{DESCRIPTION}}
11
+
12
+ ## Prerequisites
13
+
14
+ - Technology 1 (version X+)
15
+ - Technology 2 (version Y+)
16
+ - API keys or credentials
17
+
18
+ ## What This Skill Does
19
+
20
+ 1. **Core Feature**: Description
21
+ 2. **Integration**: Description
22
+ 3. **Automation**: Description
23
+
24
+ ---
25
+
26
+ ## Quick Start (60 seconds)
27
+
28
+ ### Installation
29
+ ```bash
30
+ ./scripts/install.sh
31
+ ```
32
+
33
+ ### First Use
34
+ ```bash
35
+ ./scripts/quickstart.sh
36
+ ```
37
+
38
+ Expected output:
39
+ ```
40
+ ✓ Setup complete
41
+ ✓ Configuration validated
42
+ → Ready to use
43
+ ```
44
+
45
+ ---
46
+
47
+ ## Configuration
48
+
49
+ ### Basic Configuration
50
+ Edit `config.json`:
51
+ ```json
52
+ {
53
+ "mode": "production",
54
+ "features": ["feature1", "feature2"]
55
+ }
56
+ ```
57
+
58
+ ### Advanced Configuration
59
+ See [Configuration Guide](docs/CONFIGURATION.md)
60
+
61
+ ---
62
+
63
+ ## Step-by-Step Guide
64
+
65
+ ### 1. Initial Setup
66
+ [Detailed steps]
67
+
68
+ ### 2. Core Workflow
69
+ [Main procedures]
70
+
71
+ ### 3. Integration
72
+ [Integration steps]
73
+
74
+ ---
75
+
76
+ ## Advanced Features
77
+
78
+ ### Feature 1: Custom Templates
79
+ ```bash
80
+ ./scripts/generate.sh --template custom
81
+ ```
82
+
83
+ ### Feature 2: Batch Processing
84
+ ```bash
85
+ ./scripts/batch.sh --input data.json
86
+ ```
87
+
88
+ ---
89
+
90
+ ## Scripts Reference
91
+
92
+ | Script | Purpose | Usage |
93
+ |--------|---------|-------|
94
+ | `install.sh` | Install dependencies | `./scripts/install.sh` |
95
+ | `generate.sh` | Generate code | `./scripts/generate.sh [name]` |
96
+
97
+ ---
98
+
99
+ ## Troubleshooting
100
+
101
+ ### Issue: Installation Failed
102
+ **Symptoms**: Error during install
103
+ **Solution**:
104
+ ```bash
105
+ ./scripts/install.sh --force
106
+ ```
107
+
108
+ ---
109
+
110
+ ## Resources
111
+
112
+ - [Documentation](https://example.com/docs)
113
+ - [Examples](resources/examples/)
114
+
115
+ ---
116
+
117
+ **Created**: {{DATE}}
118
+ **Category**: {{CATEGORY}}
@@ -0,0 +1,38 @@
1
+ ---
2
+ name: "{{SKILL_NAME}}"
3
+ description: "{{DESCRIPTION}}"
4
+ ---
5
+
6
+ # {{SKILL_NAME}}
7
+
8
+ ## What This Skill Does
9
+
10
+ {{DESCRIPTION}}
11
+
12
+ ## Prerequisites
13
+
14
+ - Prerequisite 1
15
+ - Prerequisite 2
16
+
17
+ ## Quick Start
18
+
19
+ ```bash
20
+ # Basic usage
21
+ command --option value
22
+ ```
23
+
24
+ ## Step-by-Step Guide
25
+
26
+ ### Step 1: Setup
27
+ [Instructions]
28
+
29
+ ### Step 2: Usage
30
+ [Instructions]
31
+
32
+ ### Step 3: Verify
33
+ [Instructions]
34
+
35
+ ## Troubleshooting
36
+
37
+ - **Issue**: Problem description
38
+ - **Solution**: Fix description