@abarcenas/ai-workflow-template 1.23.0 → 1.26.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/instructions/agent-skill.instructions.md +18 -20
- package/.agents/instructions/agent.instructions.md +111 -570
- package/.agents/instructions/ai-prompt-engineering-safety.instructions.md +3 -3
- package/.agents/instructions/instructions.instructions.md +6 -7
- package/.agents/instructions/learned-knowledge.instructions.md +17 -41
- package/.agents/instructions/memory-bank.instructions.md +125 -17
- package/.agents/instructions/memory-schema.instructions.md +75 -0
- package/.agents/instructions/prompt.instructions.md +25 -30
- package/.agents/instructions/task-implementation.instructions.md +12 -5
- package/.agents/skills/architecture-blueprint-generator/SKILL.md +63 -18
- package/.agents/skills/context-map/SKILL.md +27 -4
- package/.agents/skills/conventional-commit/SKILL.md +2 -2
- package/.agents/skills/github-issues/SKILL.md +2 -2
- package/.agents/skills/graphify-framework-aware/SKILL.md +133 -0
- package/.agents/skills/graphify-framework-aware/references/framework-registry.md +95 -0
- package/.agents/skills/graphify-framework-aware/scripts/fw-exclude.py +425 -0
- package/.agents/skills/memory-search/SKILL.md +69 -0
- package/.agents/skills/microsoft-docs/SKILL.md +1 -1
- package/.agents/skills/polygot-test-agent/SKILL.md +0 -1
- package/.agents/skills/prompt-builder/SKILL.md +15 -14
- package/.husky/post-merge +10 -0
- package/.husky/pre-commit +2 -0
- package/AGENTS.md +54 -0
- package/README.md +177 -3
- package/memory-bank/.vocabulary.json +52 -0
- package/opencode.mcp.example.json +8 -1
- package/package.json +25 -5
- package/scripts/mcp-memory-server.js +243 -0
- package/scripts/memory-cli.js +110 -0
- package/scripts/memory-index.js +512 -0
- package/scripts/normalize-memory.js +349 -0
- package/scripts/sync.test.js +12 -0
- package/scripts/validate-memory-schema.js +190 -0
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
---
|
|
2
|
-
description: "Guidelines for creating high-quality Agent Skills for
|
|
3
|
-
applyTo: "**/.
|
|
2
|
+
description: "Guidelines for creating high-quality Agent Skills for opencode"
|
|
3
|
+
applyTo: "**/.agents/skills/**/SKILL.md"
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# Agent Skills File Guidelines
|
|
7
7
|
|
|
8
|
-
Instructions for creating effective and portable Agent Skills that enhance
|
|
8
|
+
Instructions for creating effective and portable Agent Skills that enhance opencode with specialized capabilities, workflows, and bundled resources.
|
|
9
9
|
|
|
10
10
|
## What Are Agent Skills?
|
|
11
11
|
|
|
@@ -13,21 +13,20 @@ Agent Skills are self-contained folders with instructions and bundled resources
|
|
|
13
13
|
|
|
14
14
|
Key characteristics:
|
|
15
15
|
|
|
16
|
-
- **Portable**: Works across
|
|
16
|
+
- **Portable**: Works across opencode environments
|
|
17
17
|
- **Progressive loading**: Only loaded when relevant to the user's request
|
|
18
18
|
- **Resource-bundled**: Can include scripts, templates, examples alongside instructions
|
|
19
|
-
- **On-demand**: Activated automatically based on
|
|
19
|
+
- **On-demand**: Activated automatically based on task relevance
|
|
20
20
|
|
|
21
21
|
## Directory Structure
|
|
22
22
|
|
|
23
|
-
Skills are stored in
|
|
23
|
+
Skills are stored in the following standard location:
|
|
24
24
|
|
|
25
|
-
| Location
|
|
26
|
-
|
|
|
27
|
-
| `.
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
| `~/.claude/skills/<skill-name>/` | Personal (user-wide) | Legacy, for backward compatibility |
|
|
25
|
+
| Location | Scope | Recommendation |
|
|
26
|
+
| ---------------------------------- | ------------------ | ---------------------------------- |
|
|
27
|
+
| `.agents/skills/<skill-name>/` | Project/repository | Standard location for all skills |
|
|
28
|
+
|
|
29
|
+
> **Personal skills**: You may also place skills in `~/.config/opencode/skills/<skill-name>/` for user-wide availability across projects. This location is optional and not shown in the table above.
|
|
31
30
|
|
|
32
31
|
Each skill **must** have its own subdirectory containing at minimum a `SKILL.md` file.
|
|
33
32
|
|
|
@@ -51,7 +50,7 @@ license: Complete terms in LICENSE.txt
|
|
|
51
50
|
|
|
52
51
|
### Description Best Practices
|
|
53
52
|
|
|
54
|
-
**CRITICAL**: The `description` field is the PRIMARY mechanism for automatic skill discovery.
|
|
53
|
+
**CRITICAL**: The `description` field is the PRIMARY mechanism for automatic skill discovery. opencode reads ONLY the `name` and `description` to decide whether to load a skill. If your description is vague, the skill will never be activated.
|
|
55
54
|
|
|
56
55
|
**What to include in description:**
|
|
57
56
|
|
|
@@ -73,13 +72,13 @@ description: Web testing helpers
|
|
|
73
72
|
|
|
74
73
|
The poor description fails because:
|
|
75
74
|
|
|
76
|
-
- No specific triggers (when should
|
|
75
|
+
- No specific triggers (when should opencode load this?)
|
|
77
76
|
- No keywords (what user prompts would match?)
|
|
78
77
|
- No capabilities (what can it actually do?)
|
|
79
78
|
|
|
80
79
|
### Body Content
|
|
81
80
|
|
|
82
|
-
The body contains detailed instructions that
|
|
81
|
+
The body contains detailed instructions that opencode loads AFTER the skill is activated. Recommended sections:
|
|
83
82
|
|
|
84
83
|
| Section | Purpose |
|
|
85
84
|
| --------------------------- | --------------------------------------------------- |
|
|
@@ -92,7 +91,7 @@ The body contains detailed instructions that Copilot loads AFTER the skill is ac
|
|
|
92
91
|
|
|
93
92
|
## Bundling Resources
|
|
94
93
|
|
|
95
|
-
Skills can include additional files that
|
|
94
|
+
Skills can include additional files that opencode accesses on-demand:
|
|
96
95
|
|
|
97
96
|
### Supported Resource Types
|
|
98
97
|
|
|
@@ -106,7 +105,7 @@ Skills can include additional files that Copilot accesses on-demand:
|
|
|
106
105
|
### Directory Structure Example
|
|
107
106
|
|
|
108
107
|
```
|
|
109
|
-
.
|
|
108
|
+
.agents/skills/my-skill/
|
|
110
109
|
├── SKILL.md # Required: Main instructions
|
|
111
110
|
├── LICENSE.txt # Recommended: License terms (Apache 2.0 typical)
|
|
112
111
|
├── scripts/ # Optional: Executable automation
|
|
@@ -164,7 +163,7 @@ Skills use three-level loading for efficiency:
|
|
|
164
163
|
| --------------- | ----------------------------- | --------------------------------- |
|
|
165
164
|
| 1. Discovery | `name` and `description` only | Always (lightweight metadata) |
|
|
166
165
|
| 2. Instructions | Full `SKILL.md` body | When request matches description |
|
|
167
|
-
| 3. Resources | Scripts, examples, docs | Only when
|
|
166
|
+
| 3. Resources | Scripts, examples, docs | Only when opencode references them |
|
|
168
167
|
|
|
169
168
|
This means:
|
|
170
169
|
|
|
@@ -267,6 +266,5 @@ This ensures traceability and allows resuming workflows if interrupted.
|
|
|
267
266
|
## Related Resources
|
|
268
267
|
|
|
269
268
|
- [Agent Skills Specification](https://agentskills.io/)
|
|
270
|
-
- [VS Code Agent Skills Documentation](https://code.visualstudio.com/docs/copilot/customization/agent-skills)
|
|
271
269
|
- [Reference Skills Repository](https://github.com/anthropics/skills)
|
|
272
|
-
- [
|
|
270
|
+
- [opencode Documentation](https://opencode.ai)
|