@abarcenas/ai-workflow-template 1.1.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.
Files changed (48) hide show
  1. package/.github/agents/implementation-plan.agent.md +192 -0
  2. package/.github/agents/plan.agent.md +135 -0
  3. package/.github/agents/research-spike.agent.md +204 -0
  4. package/.github/instructions/agent-safety.instructions.md +98 -0
  5. package/.github/instructions/agent-skill.instructions.md +272 -0
  6. package/.github/instructions/agent.instructions.md +1068 -0
  7. package/.github/instructions/ai-prompt-engineering-safety.instructions.md +991 -0
  8. package/.github/instructions/angular.instructions.md +116 -0
  9. package/.github/instructions/context7.instructions.md +109 -0
  10. package/.github/instructions/go.instructions.md +374 -0
  11. package/.github/instructions/html-to-css-guide.instructions.md +104 -0
  12. package/.github/instructions/instructions.instructions.md +264 -0
  13. package/.github/instructions/markdown.instructions.md +51 -0
  14. package/.github/instructions/memory-bank.instructions.md +322 -0
  15. package/.github/instructions/nodejs-vitest.instructions.md +34 -0
  16. package/.github/instructions/playwright-typescript.instructions.md +88 -0
  17. package/.github/instructions/prompt.instructions.md +99 -0
  18. package/.github/instructions/security-owasp.instructions.md +59 -0
  19. package/.github/instructions/shell.instructions.md +132 -0
  20. package/.github/instructions/task-implementation.instructions.md +203 -0
  21. package/.github/instructions/typescript.instructions.md +114 -0
  22. package/.github/prompts/copilot-instructions-blueprint-generator.prompt.md +317 -0
  23. package/.github/prompts/documentation-writer.prompt.md +46 -0
  24. package/.github/prompts/editconfig.prompt.md +64 -0
  25. package/.github/prompts/playwright-explore.prompt.md +39 -0
  26. package/.github/prompts/playwright-generate-test.prompt.md +39 -0
  27. package/.github/skills/agent-governance/SKILL.md +572 -0
  28. package/.github/skills/boost-prompt/SKILL.md +25 -0
  29. package/.github/skills/chrome-devtools/SKILL.md +97 -0
  30. package/.github/skills/context-map/SKILL.md +57 -0
  31. package/.github/skills/conventional-commit/SKILL.md +72 -0
  32. package/.github/skills/create-readme/SKILL.md +21 -0
  33. package/.github/skills/editorconfig/SKILL.md +63 -0
  34. package/.github/skills/gh-cli/SKILL.md +2188 -0
  35. package/.github/skills/git-commit/SKILL.md +124 -0
  36. package/.github/skills/github-issues/SKILL.md +134 -0
  37. package/.github/skills/github-issues/references/templates.md +110 -0
  38. package/.github/skills/microsoft-docs/SKILL.md +114 -0
  39. package/.github/skills/playwright-explore-website/SKILL.md +17 -0
  40. package/.github/skills/playwright-generate-test/SKILL.md +17 -0
  41. package/.github/skills/polygot-test-agent/SKILL.md +171 -0
  42. package/.github/skills/polygot-test-agent/unit-test-genearation.prompt.md +155 -0
  43. package/.github/skills/prompt-builder/SKILL.md +159 -0
  44. package/.github/workflows/npm-publish.yml +25 -0
  45. package/README.md +111 -0
  46. package/package.json +32 -0
  47. package/scripts/bump-version.js +29 -0
  48. package/scripts/sync.js +122 -0
@@ -0,0 +1,272 @@
1
+ ---
2
+ description: "Guidelines for creating high-quality Agent Skills for GitHub Copilot"
3
+ applyTo: "**/.github/skills/**/SKILL.md, **/.claude/skills/**/SKILL.md"
4
+ ---
5
+
6
+ # Agent Skills File Guidelines
7
+
8
+ Instructions for creating effective and portable Agent Skills that enhance GitHub Copilot with specialized capabilities, workflows, and bundled resources.
9
+
10
+ ## What Are Agent Skills?
11
+
12
+ Agent Skills are self-contained folders with instructions and bundled resources that teach AI agents specialized capabilities. Unlike custom instructions (which define coding standards), skills enable task-specific workflows that can include scripts, examples, templates, and reference data.
13
+
14
+ Key characteristics:
15
+
16
+ - **Portable**: Works across VS Code, Copilot CLI, and Copilot coding agent
17
+ - **Progressive loading**: Only loaded when relevant to the user's request
18
+ - **Resource-bundled**: Can include scripts, templates, examples alongside instructions
19
+ - **On-demand**: Activated automatically based on prompt relevance
20
+
21
+ ## Directory Structure
22
+
23
+ Skills are stored in specific locations:
24
+
25
+ | Location | Scope | Recommendation |
26
+ | -------------------------------- | -------------------- | ---------------------------------- |
27
+ | `.github/skills/<skill-name>/` | Project/repository | Recommended for project skills |
28
+ | `.claude/skills/<skill-name>/` | Project/repository | Legacy, for backward compatibility |
29
+ | `~/.github/skills/<skill-name>/` | Personal (user-wide) | Recommended for personal skills |
30
+ | `~/.claude/skills/<skill-name>/` | Personal (user-wide) | Legacy, for backward compatibility |
31
+
32
+ Each skill **must** have its own subdirectory containing at minimum a `SKILL.md` file.
33
+
34
+ ## Required SKILL.md Format
35
+
36
+ ### Frontmatter (Required)
37
+
38
+ ```yaml
39
+ ---
40
+ name: webapp-testing
41
+ description: Toolkit for testing local web applications using Playwright. Use when asked to verify frontend functionality, debug UI behavior, capture browser screenshots, check for visual regressions, or view browser console logs. Supports Chrome, Firefox, and WebKit browsers.
42
+ license: Complete terms in LICENSE.txt
43
+ ---
44
+ ```
45
+
46
+ | Field | Required | Constraints |
47
+ | ------------- | -------- | ----------------------------------------------------------------------------------- |
48
+ | `name` | Yes | Lowercase, hyphens for spaces, max 64 characters (e.g., `webapp-testing`) |
49
+ | `description` | Yes | Clear description of capabilities AND use cases, max 1024 characters |
50
+ | `license` | No | Reference to LICENSE.txt (e.g., `Complete terms in LICENSE.txt`) or SPDX identifier |
51
+
52
+ ### Description Best Practices
53
+
54
+ **CRITICAL**: The `description` field is the PRIMARY mechanism for automatic skill discovery. Copilot 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
+
56
+ **What to include in description:**
57
+
58
+ 1. **WHAT** the skill does (capabilities)
59
+ 2. **WHEN** to use it (specific triggers, scenarios, file types, or user requests)
60
+ 3. **Keywords** that users might mention in their prompts
61
+
62
+ **Good description:**
63
+
64
+ ```yaml
65
+ description: Toolkit for testing local web applications using Playwright. Use when asked to verify frontend functionality, debug UI behavior, capture browser screenshots, check for visual regressions, or view browser console logs. Supports Chrome, Firefox, and WebKit browsers.
66
+ ```
67
+
68
+ **Poor description:**
69
+
70
+ ```yaml
71
+ description: Web testing helpers
72
+ ```
73
+
74
+ The poor description fails because:
75
+
76
+ - No specific triggers (when should Copilot load this?)
77
+ - No keywords (what user prompts would match?)
78
+ - No capabilities (what can it actually do?)
79
+
80
+ ### Body Content
81
+
82
+ The body contains detailed instructions that Copilot loads AFTER the skill is activated. Recommended sections:
83
+
84
+ | Section | Purpose |
85
+ | --------------------------- | --------------------------------------------------- |
86
+ | `# Title` | Brief overview of what this skill enables |
87
+ | `## When to Use This Skill` | List of scenarios (reinforces description triggers) |
88
+ | `## Prerequisites` | Required tools, dependencies, environment setup |
89
+ | `## Step-by-Step Workflows` | Numbered steps for common tasks |
90
+ | `## Troubleshooting` | Common issues and solutions table |
91
+ | `## References` | Links to bundled docs or external resources |
92
+
93
+ ## Bundling Resources
94
+
95
+ Skills can include additional files that Copilot accesses on-demand:
96
+
97
+ ### Supported Resource Types
98
+
99
+ | Folder | Purpose | Loaded into Context? | Example Files |
100
+ | ------------- | --------------------------------------------------------------------- | -------------------- | --------------------------------------------------------- |
101
+ | `scripts/` | Executable automation that performs specific operations | When executed | `helper.py`, `validate.sh`, `build.ts` |
102
+ | `references/` | Documentation the AI agent reads to inform decisions | Yes, when referenced | `api_reference.md`, `schema.md`, `workflow_guide.md` |
103
+ | `assets/` | **Static files used AS-IS** in output (not modified by the AI agent) | No | `logo.png`, `brand-template.pptx`, `custom-font.ttf` |
104
+ | `templates/` | **Starter code/scaffolds that the AI agent MODIFIES** and builds upon | Yes, when referenced | `viewer.html` (insert algorithm), `hello-world/` (extend) |
105
+
106
+ ### Directory Structure Example
107
+
108
+ ```
109
+ .github/skills/my-skill/
110
+ ├── SKILL.md # Required: Main instructions
111
+ ├── LICENSE.txt # Recommended: License terms (Apache 2.0 typical)
112
+ ├── scripts/ # Optional: Executable automation
113
+ │ ├── helper.py # Python script
114
+ │ └── helper.ps1 # PowerShell script
115
+ ├── references/ # Optional: Documentation loaded into context
116
+ │ ├── api_reference.md
117
+ │ ├── workflow-setup.md # Detailed workflow (>5 steps)
118
+ │ └── workflow-deployment.md
119
+ ├── assets/ # Optional: Static files used AS-IS in output
120
+ │ ├── baseline.png # Reference image for comparison
121
+ │ └── report-template.html
122
+ └── templates/ # Optional: Starter code the AI agent modifies
123
+ ├── scaffold.py # Code scaffold the AI agent customizes
124
+ └── config.template # Config template the AI agent fills in
125
+ ```
126
+
127
+ > **LICENSE.txt**: When creating a skill, download the Apache 2.0 license text from https://www.apache.org/licenses/LICENSE-2.0.txt and save as `LICENSE.txt`. Update the copyright year and owner in the appendix section.
128
+
129
+ ### Assets vs Templates: Key Distinction
130
+
131
+ **Assets** are static resources **consumed unchanged** in the output:
132
+
133
+ - A `logo.png` that gets embedded into a generated document
134
+ - A `report-template.html` copied as output format
135
+ - A `custom-font.ttf` applied to text rendering
136
+
137
+ **Templates** are starter code/scaffolds that **the AI agent actively modifies**:
138
+
139
+ - A `scaffold.py` where the AI agent inserts logic
140
+ - A `config.template` where the AI agent fills in values based on user requirements
141
+ - A `hello-world/` project directory that the AI agent extends with new features
142
+
143
+ **Rule of thumb**: If the AI agent reads and builds upon the file content → `templates/`. If the file is used as-is in output → `assets/`.
144
+
145
+ ### Referencing Resources in SKILL.md
146
+
147
+ Use relative paths to reference files within the skill directory:
148
+
149
+ ```markdown
150
+ ## Available Scripts
151
+
152
+ Run the [helper script](./scripts/helper.py) to automate common tasks.
153
+
154
+ See [API reference](./references/api_reference.md) for detailed documentation.
155
+
156
+ Use the [scaffold](./templates/scaffold.py) as a starting point.
157
+ ```
158
+
159
+ ## Progressive Loading Architecture
160
+
161
+ Skills use three-level loading for efficiency:
162
+
163
+ | Level | What Loads | When |
164
+ | --------------- | ----------------------------- | --------------------------------- |
165
+ | 1. Discovery | `name` and `description` only | Always (lightweight metadata) |
166
+ | 2. Instructions | Full `SKILL.md` body | When request matches description |
167
+ | 3. Resources | Scripts, examples, docs | Only when Copilot references them |
168
+
169
+ This means:
170
+
171
+ - Install many skills without consuming context
172
+ - Only relevant content loads per task
173
+ - Resources don't load until explicitly needed
174
+
175
+ ## Content Guidelines
176
+
177
+ ### Writing Style
178
+
179
+ - Use imperative mood: "Run", "Create", "Configure" (not "You should run")
180
+ - Be specific and actionable
181
+ - Include exact commands with parameters
182
+ - Show expected outputs where helpful
183
+ - Keep sections focused and scannable
184
+
185
+ ### Script Requirements
186
+
187
+ When including scripts, prefer cross-platform languages:
188
+
189
+ | Language | Use Case |
190
+ | ---------- | ----------------------------------- |
191
+ | Python | Complex automation, data processing |
192
+ | pwsh | PowerShell Core scripting |
193
+ | Node.js | JavaScript-based tooling |
194
+ | Bash/Shell | Simple automation tasks |
195
+
196
+ Best practices:
197
+
198
+ - Include help/usage documentation (`--help` flag)
199
+ - Handle errors gracefully with clear messages
200
+ - Avoid storing credentials or secrets
201
+ - Use relative paths where possible
202
+
203
+ ### When to Bundle Scripts
204
+
205
+ Include scripts in your skill when:
206
+
207
+ - The same code would be rewritten repeatedly by the agent
208
+ - Deterministic reliability is critical (e.g., file manipulation, API calls)
209
+ - Complex logic benefits from being pre-tested rather than generated each time
210
+ - The operation has a self-contained purpose that can evolve independently
211
+ - Testability matters — scripts can be unit tested and validated
212
+ - Predictable behavior is preferred over dynamic generation
213
+
214
+ Scripts enable evolution: even simple operations benefit from being implemented as scripts when they may grow in complexity, need consistent behavior across invocations, or require future extensibility.
215
+
216
+ ### Security Considerations
217
+
218
+ - Scripts rely on existing credential helpers (no credential storage)
219
+ - Include `--force` flags only for destructive operations
220
+ - Warn users before irreversible actions
221
+ - Document any network operations or external calls
222
+
223
+ ## Common Patterns
224
+
225
+ ### Parameter Table Pattern
226
+
227
+ Document parameters clearly:
228
+
229
+ ```markdown
230
+ | Parameter | Required | Default | Description |
231
+ | ----------- | -------- | ------- | ---------------------------- |
232
+ | `--input` | Yes | - | Input file or URL to process |
233
+ | `--action` | Yes | - | Action to perform |
234
+ | `--verbose` | No | `false` | Enable verbose output |
235
+ ```
236
+
237
+ ## Validation Checklist
238
+
239
+ Before publishing a skill:
240
+
241
+ - [ ] `SKILL.md` has valid frontmatter with `name` and `description`
242
+ - [ ] `name` is lowercase with hyphens, ≤64 characters
243
+ - [ ] `description` clearly states **WHAT** it does, **WHEN** to use it, and relevant **KEYWORDS**
244
+ - [ ] Body includes when to use, prerequisites, and step-by-step workflows
245
+ - [ ] SKILL.md body kept under 500 lines (split large content into `references/` folder)
246
+ - [ ] Large workflows (>5 steps) split into `references/` folder with clear links from SKILL.md
247
+ - [ ] Scripts include help documentation and error handling
248
+ - [ ] Relative paths used for all resource references
249
+ - [ ] No hardcoded credentials or secrets
250
+
251
+ ## Workflow Execution Pattern
252
+
253
+ When executing multi-step workflows, create a TODO list where each step references the relevant documentation:
254
+
255
+ ```markdown
256
+ ## TODO
257
+
258
+ - [ ] Step 1: Configure environment - see [workflow-setup.md](./references/workflow-setup.md#environment)
259
+ - [ ] Step 2: Build project - see [workflow-setup.md](./references/workflow-setup.md#build)
260
+ - [ ] Step 3: Deploy to staging - see [workflow-deployment.md](./references/workflow-deployment.md#staging)
261
+ - [ ] Step 4: Run validation - see [workflow-deployment.md](./references/workflow-deployment.md#validation)
262
+ - [ ] Step 5: Deploy to production - see [workflow-deployment.md](./references/workflow-deployment.md#production)
263
+ ```
264
+
265
+ This ensures traceability and allows resuming workflows if interrupted.
266
+
267
+ ## Related Resources
268
+
269
+ - [Agent Skills Specification](https://agentskills.io/)
270
+ - [VS Code Agent Skills Documentation](https://code.visualstudio.com/docs/copilot/customization/agent-skills)
271
+ - [Reference Skills Repository](https://github.com/anthropics/skills)
272
+ - [Awesome Copilot Skills](https://github.com/github/awesome-copilot/blob/main/docs/README.skills.md)