@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,104 @@
1
+ ---
2
+ description: "Color usage guidelines and styling rules for HTML elements to ensure accessible, professional designs."
3
+ applyTo: "**/*.html, **/*.css, **/*.js"
4
+ ---
5
+
6
+ # HTML CSS Style Color Guide
7
+
8
+ Follow these guidelines when updating or creating HTML/CSS styles for browser rendering. Color names
9
+ represent the full spectrum of their respective hue ranges (e.g., "blue" includes navy, sky blue, etc.).
10
+
11
+ ## Color Definitions
12
+
13
+ - **Hot Colors**: Oranges, reds, and yellows
14
+ - **Cool Colors**: Blues, greens, and purples
15
+ - **Neutral Colors**: Grays and grayscale variations
16
+ - **Binary Colors**: Black and white
17
+ - **60-30-10 Rule**
18
+ - **Primary Color**: Use 60% of the time (_cool or light color_)
19
+ - **Secondary Color**: Use 30% of the time (_cool or light color_)
20
+ - **Accent**: Use 10% of the time (_complementary hot color_)
21
+
22
+ ## Color Usage Guidelines
23
+
24
+ Balance the colors used by applying the **60-30-10 rule** to graphic design elements like backgrounds,
25
+ buttons, cards, etc...
26
+
27
+ ### Background Colors
28
+
29
+ **Never Use:**
30
+
31
+ - Purple or magenta
32
+ - Red, orange, or yellow
33
+ - Pink
34
+ - Any hot color
35
+
36
+ **Recommended:**
37
+
38
+ - White or off-white
39
+ - Light cool colors (e.g., light blues, light greens)
40
+ - Subtle neutral tones
41
+ - Light gradients with minimal color shift
42
+
43
+ ### Text Colors
44
+
45
+ **Never Use:**
46
+
47
+ - Yellow (poor contrast and readability)
48
+ - Pink
49
+ - Pure white or light text on light backgrounds
50
+ - Pure black or dark text on dark backgrounds
51
+
52
+ **Recommended:**
53
+
54
+ - Dark neutral colors (e.g., #1f2328, #24292f)
55
+ - Near-black variations (#000000 to #333333)
56
+ - Ensure background is a light color
57
+ - Dark grays (#4d4d4d, #6c757d)
58
+ - High-contrast combinations for accessibility
59
+ - Near-white variations (#ffffff to #f0f2f3)
60
+ - Ensure background is a dark color
61
+
62
+ ### Colors to Avoid
63
+
64
+ Unless explicitly required by design specifications or user request, avoid:
65
+
66
+ - Bright purples and magentas
67
+ - Bright pinks and neon colors
68
+ - Highly saturated hot colors
69
+ - Colors with low contrast ratios (fails WCAG accessibility standards)
70
+
71
+ ### Colors to Use Sparingly
72
+
73
+ **Hot Colors** (red, orange, yellow):
74
+
75
+ - Reserve for critical alerts, warnings, or error messages
76
+ - Use only when conveying urgency or importance
77
+ - Limit to small accent areas rather than large sections
78
+ - Consider alternatives like icons or bold text before using hot colors
79
+
80
+ ## Gradients
81
+
82
+ Apply gradients with subtle color transitions to maintain professional aesthetics.
83
+
84
+ ### Best Practices
85
+
86
+ - Keep color shifts minimal (e.g., #E6F2FF to #F5F7FA)
87
+ - Use gradients within the same color family
88
+ - Avoid combining hot and cool colors in a single gradient
89
+ - Prefer linear gradients over radial for backgrounds
90
+
91
+ ### Appropriate Use Cases
92
+
93
+ - Background containers and sections
94
+ - Button hover states and interactive elements
95
+ - Drop shadows and depth effects
96
+ - Header and navigation bars
97
+ - Card components and panels
98
+
99
+ ## Additional Resources
100
+
101
+ - [Color Tool](https://civicactions.github.io/uswds-color-tool/)
102
+ - [Government or Professional Color Standards](https://designsystem.digital.gov/design-tokens/color/overview/)
103
+ - [UI Color Palette Best Practices](https://www.interaction-design.org/literature/article/ui-color-palette)
104
+ - [Color Combination Resource](https://www.figma.com/resource-library/color-combinations/)
@@ -0,0 +1,264 @@
1
+ ---
2
+ description: "Guidelines for creating high-quality custom instruction files for GitHub Copilot"
3
+ applyTo: "**/*.instructions.md"
4
+ ---
5
+
6
+ # Custom Instructions File Guidelines
7
+
8
+ Instructions for creating effective and maintainable custom instruction files that guide GitHub Copilot in generating domain-specific code and following project conventions.
9
+
10
+ ## Project Context
11
+
12
+ - Target audience: Developers and GitHub Copilot working with domain-specific code
13
+ - File format: Markdown with YAML frontmatter
14
+ - File naming convention: lowercase with hyphens (e.g., `react-best-practices.instructions.md`)
15
+ - Location: `.github/instructions/` directory
16
+ - Purpose: Provide context-aware guidance for code generation, review, and documentation
17
+
18
+ ## Required Frontmatter
19
+
20
+ Every instruction file must include YAML frontmatter with the following fields:
21
+
22
+ ```yaml
23
+ ---
24
+ description: "Brief description of the instruction purpose and scope"
25
+ applyTo: "glob pattern for target files (e.g., **/*.ts, **/*.py)"
26
+ ---
27
+ ```
28
+
29
+ ### Frontmatter Guidelines
30
+
31
+ - **description**: Single-quoted string, 1-500 characters, clearly stating the purpose
32
+ - **applyTo**: Glob pattern(s) specifying which files these instructions apply to
33
+ - Single pattern: `'**/*.ts'`
34
+ - Multiple patterns: `'**/*.ts, **/*.tsx, **/*.js'`
35
+ - Specific files: `'src/**/*.py'`
36
+ - All files: `'**'`
37
+
38
+ ## File Structure
39
+
40
+ A well-structured instruction file should include the following sections:
41
+
42
+ ### 1. Title and Overview
43
+
44
+ - Clear, descriptive title using `#` heading
45
+ - Brief introduction explaining the purpose and scope
46
+ - Optional: Project context section with key technologies and versions
47
+
48
+ ### 2. Core Sections
49
+
50
+ Organize content into logical sections based on the domain:
51
+
52
+ - **General Instructions**: High-level guidelines and principles
53
+ - **Best Practices**: Recommended patterns and approaches
54
+ - **Code Standards**: Naming conventions, formatting, style rules
55
+ - **Architecture/Structure**: Project organization and design patterns
56
+ - **Common Patterns**: Frequently used implementations
57
+ - **Security**: Security considerations (if applicable)
58
+ - **Performance**: Optimization guidelines (if applicable)
59
+ - **Testing**: Testing standards and approaches (if applicable)
60
+
61
+ ### 3. Examples and Code Snippets
62
+
63
+ Provide concrete examples with clear labels:
64
+
65
+ ```markdown
66
+ ### Good Example
67
+
68
+ \`\`\`language
69
+ // Recommended approach
70
+ code example here
71
+ \`\`\`
72
+
73
+ ### Bad Example
74
+
75
+ \`\`\`language
76
+ // Avoid this pattern
77
+ code example here
78
+ \`\`\`
79
+ ```
80
+
81
+ ### 4. Validation and Verification (Optional but Recommended)
82
+
83
+ - Build commands to verify code
84
+ - Linting and formatting tools
85
+ - Testing requirements
86
+ - Verification steps
87
+
88
+ ## Content Guidelines
89
+
90
+ ### Writing Style
91
+
92
+ - Use clear, concise language
93
+ - Write in imperative mood ("Use", "Implement", "Avoid")
94
+ - Be specific and actionable
95
+ - Avoid ambiguous terms like "should", "might", "possibly"
96
+ - Use bullet points and lists for readability
97
+ - Keep sections focused and scannable
98
+
99
+ ### Best Practices
100
+
101
+ - **Be Specific**: Provide concrete examples rather than abstract concepts
102
+ - **Show Why**: Explain the reasoning behind recommendations when it adds value
103
+ - **Use Tables**: For comparing options, listing rules, or showing patterns
104
+ - **Include Examples**: Real code snippets are more effective than descriptions
105
+ - **Stay Current**: Reference current versions and best practices
106
+ - **Link Resources**: Include official documentation and authoritative sources
107
+
108
+ ### Common Patterns to Include
109
+
110
+ 1. **Naming Conventions**: How to name variables, functions, classes, files
111
+ 2. **Code Organization**: File structure, module organization, import order
112
+ 3. **Error Handling**: Preferred error handling patterns
113
+ 4. **Dependencies**: How to manage and document dependencies
114
+ 5. **Comments and Documentation**: When and how to document code
115
+ 6. **Version Information**: Target language/framework versions
116
+
117
+ ## Patterns to Follow
118
+
119
+ ### Bullet Points and Lists
120
+
121
+ ```markdown
122
+ ## Security Best Practices
123
+
124
+ - Always validate user input before processing
125
+ - Use parameterized queries to prevent SQL injection
126
+ - Store secrets in environment variables, never in code
127
+ - Implement proper authentication and authorization
128
+ - Enable HTTPS for all production endpoints
129
+ ```
130
+
131
+ ### Tables for Structured Information
132
+
133
+ ```markdown
134
+ ## Common Issues
135
+
136
+ | Issue | Solution | Example |
137
+ | ---------------- | ------------------- | ----------------------------- |
138
+ | Magic numbers | Use named constants | `const MAX_RETRIES = 3` |
139
+ | Deep nesting | Extract functions | Refactor nested if statements |
140
+ | Hardcoded values | Use configuration | Store API URLs in config |
141
+ ```
142
+
143
+ ### Code Comparison
144
+
145
+ ```markdown
146
+ ### Good Example - Using TypeScript interfaces
147
+
148
+ \`\`\`typescript
149
+ interface User {
150
+ id: string;
151
+ name: string;
152
+ email: string;
153
+ }
154
+
155
+ function getUser(id: string): User {
156
+ // Implementation
157
+ }
158
+ \`\`\`
159
+
160
+ ### Bad Example - Using any type
161
+
162
+ \`\`\`typescript
163
+ function getUser(id: any): any {
164
+ // Loses type safety
165
+ }
166
+ \`\`\`
167
+ ```
168
+
169
+ ### Conditional Guidance
170
+
171
+ ```markdown
172
+ ## Framework Selection
173
+
174
+ - **For small projects**: Use Minimal API approach
175
+ - **For large projects**: Use controller-based architecture with clear separation
176
+ - **For microservices**: Consider domain-driven design patterns
177
+ ```
178
+
179
+ ## Patterns to Avoid
180
+
181
+ - **Overly verbose explanations**: Keep it concise and scannable
182
+ - **Outdated information**: Always reference current versions and practices
183
+ - **Ambiguous guidelines**: Be specific about what to do or avoid
184
+ - **Missing examples**: Abstract rules without concrete code examples
185
+ - **Contradictory advice**: Ensure consistency throughout the file
186
+ - **Copy-paste from documentation**: Add value by distilling and contextualizing
187
+
188
+ ## Testing Your Instructions
189
+
190
+ Before finalizing instruction files:
191
+
192
+ 1. **Test with Copilot**: Try the instructions with actual prompts in VS Code
193
+ 2. **Verify Examples**: Ensure code examples are correct and run without errors
194
+ 3. **Check Glob Patterns**: Confirm `applyTo` patterns match intended files
195
+
196
+ ## Example Structure
197
+
198
+ Here's a minimal example structure for a new instruction file:
199
+
200
+ ```markdown
201
+ ---
202
+ description: "Brief description of purpose"
203
+ applyTo: "**/*.ext"
204
+ ---
205
+
206
+ # Technology Name Development
207
+
208
+ Brief introduction and context.
209
+
210
+ ## General Instructions
211
+
212
+ - High-level guideline 1
213
+ - High-level guideline 2
214
+
215
+ ## Best Practices
216
+
217
+ - Specific practice 1
218
+ - Specific practice 2
219
+
220
+ ## Code Standards
221
+
222
+ ### Naming Conventions
223
+
224
+ - Rule 1
225
+ - Rule 2
226
+
227
+ ### File Organization
228
+
229
+ - Structure 1
230
+ - Structure 2
231
+
232
+ ## Common Patterns
233
+
234
+ ### Pattern 1
235
+
236
+ Description and example
237
+
238
+ \`\`\`language
239
+ code example
240
+ \`\`\`
241
+
242
+ ### Pattern 2
243
+
244
+ Description and example
245
+
246
+ ## Validation
247
+
248
+ - Build command: `command to verify`
249
+ - Linting: `command to lint`
250
+ - Testing: `command to test`
251
+ ```
252
+
253
+ ## Maintenance
254
+
255
+ - Review instructions when dependencies or frameworks are updated
256
+ - Update examples to reflect current best practices
257
+ - Remove outdated patterns or deprecated features
258
+ - Add new patterns as they emerge in the community
259
+ - Keep glob patterns accurate as project structure evolves
260
+
261
+ ## Additional Resources
262
+
263
+ - [Custom Instructions Documentation](https://code.visualstudio.com/docs/copilot/customization/custom-instructions)
264
+ - [Awesome Copilot Instructions](https://github.com/github/awesome-copilot/tree/main/instructions)
@@ -0,0 +1,51 @@
1
+ ---
2
+ description: "Documentation and content creation standards"
3
+ applyTo: "**/*.md"
4
+ ---
5
+
6
+ ## Markdown Content Rules
7
+
8
+ The following markdown content rules are enforced in the validators:
9
+
10
+ 1. **Headings**: Use appropriate heading levels (H2, H3, etc.) to structure your content. Do not use an H1 heading, as this will be generated based on the title.
11
+ 2. **Lists**: Use bullet points or numbered lists for lists. Ensure proper indentation and spacing.
12
+ 3. **Code Blocks**: Use fenced code blocks for code snippets. Specify the language for syntax highlighting.
13
+ 4. **Links**: Use proper markdown syntax for links. Ensure that links are valid and accessible.
14
+ 5. **Images**: Use proper markdown syntax for images. Include alt text for accessibility.
15
+ 6. **Tables**: Use markdown tables for tabular data. Ensure proper formatting and alignment.
16
+ 7. **Line Length**: Limit line length to 400 characters for readability.
17
+ 8. **Whitespace**: Use appropriate whitespace to separate sections and improve readability.
18
+ 9. **Front Matter**: Include YAML front matter at the beginning of the file with required metadata fields.
19
+
20
+ ## Formatting and Structure
21
+
22
+ Follow these guidelines for formatting and structuring your markdown content:
23
+
24
+ - **Headings**: Use `##` for H2 and `###` for H3. Ensure that headings are used in a hierarchical manner. Recommend restructuring if content includes H4, and more strongly recommend for H5.
25
+ - **Lists**: Use `-` for bullet points and `1.` for numbered lists. Indent nested lists with two spaces.
26
+ - **Code Blocks**: Use triple backticks (`) to create fenced code blocks. Specify the language after the opening backticks for syntax highlighting (e.g., `csharp).
27
+ - **Links**: Use `[link text](URL)` for links. Ensure that the link text is descriptive and the URL is valid.
28
+ - **Images**: Use `![alt text](image URL)` for images. Include a brief description of the image in the alt text.
29
+ - **Tables**: Use `|` to create tables. Ensure that columns are properly aligned and headers are included.
30
+ - **Line Length**: Break lines at 80 characters to improve readability. Use soft line breaks for long paragraphs.
31
+ - **Whitespace**: Use blank lines to separate sections and improve readability. Avoid excessive whitespace.
32
+
33
+ ## Validation Requirements
34
+
35
+ Ensure compliance with the following validation requirements:
36
+
37
+ - **Front Matter**: Include the following fields in the YAML front matter:
38
+ - `post_title`: The title of the post.
39
+ - `author1`: The primary author of the post.
40
+ - `post_slug`: The URL slug for the post.
41
+ - `microsoft_alias`: The Microsoft alias of the author.
42
+ - `featured_image`: The URL of the featured image.
43
+ - `categories`: The categories for the post. These categories must be from the list in /categories.txt.
44
+ - `tags`: The tags for the post.
45
+ - `ai_note`: Indicate if AI was used in the creation of the post.
46
+ - `summary`: A brief summary of the post. Recommend a summary based on the content when possible.
47
+ - `post_date`: The publication date of the post.
48
+
49
+ - **Content Rules**: Ensure that the content follows the markdown content rules specified above.
50
+ - **Formatting**: Ensure that the content is properly formatted and structured according to the guidelines.
51
+ - **Validation**: Run the validation tools to check for compliance with the rules and guidelines.