@abarcenas/ai-workflow-template 1.2.0 → 1.13.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 (77) hide show
  1. package/.agents/instructions/learned-knowledge.instructions.md +46 -0
  2. package/{.github → .agents}/skills/architecture-blueprint-generator/SKILL.md +57 -1
  3. package/.agents/skills/cavecrew/SKILL.md +82 -0
  4. package/.agents/skills/caveman/SKILL.md +74 -0
  5. package/.agents/skills/caveman-commit/SKILL.md +65 -0
  6. package/.agents/skills/caveman-compress/README.md +163 -0
  7. package/.agents/skills/caveman-compress/SECURITY.md +31 -0
  8. package/.agents/skills/caveman-compress/SKILL.md +111 -0
  9. package/.agents/skills/caveman-compress/scripts/__init__.py +9 -0
  10. package/.agents/skills/caveman-compress/scripts/__main__.py +3 -0
  11. package/.agents/skills/caveman-compress/scripts/benchmark.py +78 -0
  12. package/.agents/skills/caveman-compress/scripts/cli.py +85 -0
  13. package/.agents/skills/caveman-compress/scripts/compress.py +254 -0
  14. package/.agents/skills/caveman-compress/scripts/detect.py +121 -0
  15. package/.agents/skills/caveman-compress/scripts/validate.py +213 -0
  16. package/.agents/skills/caveman-help/SKILL.md +59 -0
  17. package/.agents/skills/caveman-review/SKILL.md +55 -0
  18. package/.agents/skills/caveman-stats/SKILL.md +10 -0
  19. package/.agents/skills/compress/SKILL.md +111 -0
  20. package/.agents/skills/compress/scripts/__init__.py +9 -0
  21. package/.agents/skills/compress/scripts/__main__.py +3 -0
  22. package/.agents/skills/compress/scripts/benchmark.py +78 -0
  23. package/.agents/skills/compress/scripts/cli.py +85 -0
  24. package/.agents/skills/compress/scripts/compress.py +254 -0
  25. package/.agents/skills/compress/scripts/detect.py +121 -0
  26. package/.agents/skills/compress/scripts/validate.py +213 -0
  27. package/AGENTS.md +149 -0
  28. package/README.md +197 -60
  29. package/opencode.mcp.example.json +54 -0
  30. package/package.json +13 -5
  31. package/scripts/mcp/playwright-mcp-launcher.js +46 -0
  32. package/scripts/sync.js +50 -12
  33. package/.github/agents/implementation-plan.agent.md +0 -192
  34. package/.github/agents/plan.agent.md +0 -135
  35. package/.github/agents/research-spike.agent.md +0 -204
  36. package/.github/prompts/copilot-instructions-blueprint-generator.prompt.md +0 -317
  37. /package/{.github → .agents}/instructions/agent-safety.instructions.md +0 -0
  38. /package/{.github → .agents}/instructions/agent-skill.instructions.md +0 -0
  39. /package/{.github → .agents}/instructions/agent.instructions.md +0 -0
  40. /package/{.github → .agents}/instructions/ai-prompt-engineering-safety.instructions.md +0 -0
  41. /package/{.github → .agents}/instructions/angular.instructions.md +0 -0
  42. /package/{.github → .agents}/instructions/context7.instructions.md +0 -0
  43. /package/{.github → .agents}/instructions/go.instructions.md +0 -0
  44. /package/{.github → .agents}/instructions/html-to-css-guide.instructions.md +0 -0
  45. /package/{.github → .agents}/instructions/instructions.instructions.md +0 -0
  46. /package/{.github → .agents}/instructions/markdown.instructions.md +0 -0
  47. /package/{.github → .agents}/instructions/memory-bank.instructions.md +0 -0
  48. /package/{.github → .agents}/instructions/nodejs-vitest.instructions.md +0 -0
  49. /package/{.github → .agents}/instructions/playwright-typescript.instructions.md +0 -0
  50. /package/{.github → .agents}/instructions/prompt.instructions.md +0 -0
  51. /package/{.github → .agents}/instructions/security-owasp.instructions.md +0 -0
  52. /package/{.github → .agents}/instructions/shell.instructions.md +0 -0
  53. /package/{.github → .agents}/instructions/task-implementation.instructions.md +0 -0
  54. /package/{.github → .agents}/instructions/typescript.instructions.md +0 -0
  55. /package/{.github → .agents}/prompts/documentation-writer.prompt.md +0 -0
  56. /package/{.github → .agents}/prompts/editconfig.prompt.md +0 -0
  57. /package/{.github → .agents}/prompts/playwright-explore.prompt.md +0 -0
  58. /package/{.github → .agents}/prompts/playwright-generate-test.prompt.md +0 -0
  59. /package/{.github → .agents}/skills/agent-governance/SKILL.md +0 -0
  60. /package/{.github → .agents}/skills/boost-prompt/SKILL.md +0 -0
  61. /package/{.github → .agents}/skills/chrome-devtools/SKILL.md +0 -0
  62. /package/{.github → .agents}/skills/context-map/SKILL.md +0 -0
  63. /package/{.github → .agents}/skills/conventional-commit/SKILL.md +0 -0
  64. /package/{.github → .agents}/skills/create-implementation-plan/SKILL.md +0 -0
  65. /package/{.github → .agents}/skills/create-readme/SKILL.md +0 -0
  66. /package/{.github → .agents}/skills/create-specification/SKILL.md +0 -0
  67. /package/{.github → .agents}/skills/editorconfig/SKILL.md +0 -0
  68. /package/{.github → .agents}/skills/gh-cli/SKILL.md +0 -0
  69. /package/{.github → .agents}/skills/git-commit/SKILL.md +0 -0
  70. /package/{.github → .agents}/skills/github-issues/SKILL.md +0 -0
  71. /package/{.github → .agents}/skills/github-issues/references/templates.md +0 -0
  72. /package/{.github → .agents}/skills/microsoft-docs/SKILL.md +0 -0
  73. /package/{.github → .agents}/skills/playwright-explore-website/SKILL.md +0 -0
  74. /package/{.github → .agents}/skills/playwright-generate-test/SKILL.md +0 -0
  75. /package/{.github → .agents}/skills/polygot-test-agent/SKILL.md +0 -0
  76. /package/{.github → .agents}/skills/polygot-test-agent/unit-test-genearation.prompt.md +0 -0
  77. /package/{.github → .agents}/skills/prompt-builder/SKILL.md +0 -0
@@ -1,317 +0,0 @@
1
- ---
2
- description: "Technology-agnostic blueprint generator for creating comprehensive copilot-instructions.md files that guide GitHub Copilot to produce code consistent with project standards, architecture patterns, and exact technology versions by analyzing existing codebase patterns and avoiding assumptions."
3
- agent: "agent"
4
- ---
5
-
6
- # Copilot Instructions Blueprint Generator
7
-
8
- ## Configuration Variables
9
-
10
- ${PROJECT_TYPE="Auto-detect|.NET|Java|JavaScript|TypeScript|React|Angular|Python|Multiple|Other"} <!-- Primary technology -->
11
- ${ARCHITECTURE_STYLE="Layered|Microservices|Monolithic|Domain-Driven|Event-Driven|Serverless|Mixed"} <!-- Architectural approach -->
12
- ${CODE_QUALITY_FOCUS="Maintainability|Performance|Security|Accessibility|Testability|All"} <!-- Quality priorities -->
13
- ${DOCUMENTATION_LEVEL="Minimal|Standard|Comprehensive"} <!-- Documentation requirements -->
14
- ${TESTING_REQUIREMENTS="Unit|Integration|E2E|TDD|BDD|All"} <!-- Testing approach -->
15
- ${VERSIONING="Semantic|CalVer|Custom"} <!-- Versioning approach -->
16
-
17
- ## Generated Prompt
18
-
19
- "Generate a comprehensive copilot-instructions.md file that will guide GitHub Copilot to produce code consistent with our project's standards, architecture, and technology versions. The instructions must be strictly based on actual code patterns in our codebase and avoid making any assumptions. Follow this approach:
20
-
21
- ### 1. Core Instruction Structure
22
-
23
- ```markdown
24
- # GitHub Copilot Instructions
25
-
26
- ## Priority Guidelines
27
-
28
- When generating code for this repository:
29
-
30
- 1. **Version Compatibility**: Always detect and respect the exact versions of languages, frameworks, and libraries used in this project
31
- 2. **Context Files**: Prioritize patterns and standards defined in the .github/copilot directory
32
- 3. **Codebase Patterns**: When context files don't provide specific guidance, scan the codebase for established patterns
33
- 4. **Architectural Consistency**: Maintain our ${ARCHITECTURE_STYLE} architectural style and established boundaries
34
- 5. **Code Quality**: Prioritize ${CODE_QUALITY_FOCUS == "All" ? "maintainability, performance, security, accessibility, and testability" : CODE_QUALITY_FOCUS} in all generated code
35
-
36
- ## Technology Version Detection
37
-
38
- Before generating code, scan the codebase to identify:
39
-
40
- 1. **Language Versions**: Detect the exact versions of programming languages in use
41
- - Examine project files, configuration files, and package managers
42
- - Look for language-specific version indicators (e.g., <LangVersion> in .NET projects)
43
- - Never use language features beyond the detected version
44
-
45
- 2. **Framework Versions**: Identify the exact versions of all frameworks
46
- - Check package.json, .csproj, pom.xml, requirements.txt, etc.
47
- - Respect version constraints when generating code
48
- - Never suggest features not available in the detected framework versions
49
-
50
- 3. **Library Versions**: Note the exact versions of key libraries and dependencies
51
- - Generate code compatible with these specific versions
52
- - Never use APIs or features not available in the detected versions
53
-
54
- ## Context Files
55
-
56
- Prioritize the following files in .github/copilot directory (if they exist):
57
-
58
- - **architecture.md**: System architecture guidelines
59
- - **tech-stack.md**: Technology versions and framework details
60
- - **coding-standards.md**: Code style and formatting standards
61
- - **folder-structure.md**: Project organization guidelines
62
- - **exemplars.md**: Exemplary code patterns to follow
63
-
64
- ## Codebase Scanning Instructions
65
-
66
- When context files don't provide specific guidance:
67
-
68
- 1. Identify similar files to the one being modified or created
69
- 2. Analyze patterns for:
70
- - Naming conventions
71
- - Code organization
72
- - Error handling
73
- - Logging approaches
74
- - Documentation style
75
- - Testing patterns
76
- 3. Follow the most consistent patterns found in the codebase
77
- 4. When conflicting patterns exist, prioritize patterns in newer files or files with higher test coverage
78
- 5. Never introduce patterns not found in the existing codebase
79
-
80
- ## Code Quality Standards
81
-
82
- ${CODE_QUALITY_FOCUS.includes("Maintainability") || CODE_QUALITY_FOCUS == "All" ? `### Maintainability
83
-
84
- - Write self-documenting code with clear naming
85
- - Follow the naming and organization conventions evident in the codebase
86
- - Follow established patterns for consistency
87
- - Keep functions focused on single responsibilities
88
- - Limit function complexity and length to match existing patterns` : ""}
89
-
90
- ${CODE_QUALITY_FOCUS.includes("Performance") || CODE_QUALITY_FOCUS == "All" ? `### Performance
91
-
92
- - Follow existing patterns for memory and resource management
93
- - Match existing patterns for handling computationally expensive operations
94
- - Follow established patterns for asynchronous operations
95
- - Apply caching consistently with existing patterns
96
- - Optimize according to patterns evident in the codebase` : ""}
97
-
98
- ${CODE_QUALITY_FOCUS.includes("Security") || CODE_QUALITY_FOCUS == "All" ? `### Security
99
-
100
- - Follow existing patterns for input validation
101
- - Apply the same sanitization techniques used in the codebase
102
- - Use parameterized queries matching existing patterns
103
- - Follow established authentication and authorization patterns
104
- - Handle sensitive data according to existing patterns` : ""}
105
-
106
- ${CODE_QUALITY_FOCUS.includes("Accessibility") || CODE_QUALITY_FOCUS == "All" ? `### Accessibility
107
-
108
- - Follow existing accessibility patterns in the codebase
109
- - Match ARIA attribute usage with existing components
110
- - Maintain keyboard navigation support consistent with existing code
111
- - Follow established patterns for color and contrast
112
- - Apply text alternative patterns consistent with the codebase` : ""}
113
-
114
- ${CODE_QUALITY_FOCUS.includes("Testability") || CODE_QUALITY_FOCUS == "All" ? `### Testability
115
-
116
- - Follow established patterns for testable code
117
- - Match dependency injection approaches used in the codebase
118
- - Apply the same patterns for managing dependencies
119
- - Follow established mocking and test double patterns
120
- - Match the testing style used in existing tests` : ""}
121
-
122
- ## Documentation Requirements
123
-
124
- ${DOCUMENTATION_LEVEL == "Minimal" ?
125
- `- Match the level and style of comments found in existing code
126
-
127
- - Document according to patterns observed in the codebase
128
- - Follow existing patterns for documenting non-obvious behavior
129
- - Use the same format for parameter descriptions as existing code` : ""}
130
-
131
- ${DOCUMENTATION_LEVEL == "Standard" ?
132
- `- Follow the exact documentation format found in the codebase
133
-
134
- - Match the XML/JSDoc style and completeness of existing comments
135
- - Document parameters, returns, and exceptions in the same style
136
- - Follow existing patterns for usage examples
137
- - Match class-level documentation style and content` : ""}
138
-
139
- ${DOCUMENTATION_LEVEL == "Comprehensive" ?
140
- `- Follow the most detailed documentation patterns found in the codebase
141
-
142
- - Match the style and completeness of the best-documented code
143
- - Document exactly as the most thoroughly documented files do
144
- - Follow existing patterns for linking documentation
145
- - Match the level of detail in explanations of design decisions` : ""}
146
-
147
- ## Testing Approach
148
-
149
- ${TESTING_REQUIREMENTS.includes("Unit") || TESTING_REQUIREMENTS == "All" ?
150
- `### Unit Testing
151
-
152
- - Match the exact structure and style of existing unit tests
153
- - Follow the same naming conventions for test classes and methods
154
- - Use the same assertion patterns found in existing tests
155
- - Apply the same mocking approach used in the codebase
156
- - Follow existing patterns for test isolation` : ""}
157
-
158
- ${TESTING_REQUIREMENTS.includes("Integration") || TESTING_REQUIREMENTS == "All" ?
159
- `### Integration Testing
160
-
161
- - Follow the same integration test patterns found in the codebase
162
- - Match existing patterns for test data setup and teardown
163
- - Use the same approach for testing component interactions
164
- - Follow existing patterns for verifying system behavior` : ""}
165
-
166
- ${TESTING_REQUIREMENTS.includes("E2E") || TESTING_REQUIREMENTS == "All" ?
167
- `### End-to-End Testing
168
-
169
- - Match the existing E2E test structure and patterns
170
- - Follow established patterns for UI testing
171
- - Apply the same approach for verifying user journeys` : ""}
172
-
173
- ${TESTING_REQUIREMENTS.includes("TDD") || TESTING_REQUIREMENTS == "All" ?
174
- `### Test-Driven Development
175
-
176
- - Follow TDD patterns evident in the codebase
177
- - Match the progression of test cases seen in existing code
178
- - Apply the same refactoring patterns after tests pass` : ""}
179
-
180
- ${TESTING_REQUIREMENTS.includes("BDD") || TESTING_REQUIREMENTS == "All" ?
181
- `### Behavior-Driven Development
182
-
183
- - Match the existing Given-When-Then structure in tests
184
- - Follow the same patterns for behavior descriptions
185
- - Apply the same level of business focus in test cases` : ""}
186
-
187
- ## Technology-Specific Guidelines
188
-
189
- ${PROJECT_TYPE == ".NET" || PROJECT_TYPE == "Auto-detect" || PROJECT_TYPE == "Multiple" ? `### .NET Guidelines
190
-
191
- - Detect and strictly adhere to the specific .NET version in use
192
- - Use only C# language features compatible with the detected version
193
- - Follow LINQ usage patterns exactly as they appear in the codebase
194
- - Match async/await usage patterns from existing code
195
- - Apply the same dependency injection approach used in the codebase
196
- - Use the same collection types and patterns found in existing code` : ""}
197
-
198
- ${PROJECT_TYPE == "Java" || PROJECT_TYPE == "Auto-detect" || PROJECT_TYPE == "Multiple" ? `### Java Guidelines
199
-
200
- - Detect and adhere to the specific Java version in use
201
- - Follow the exact same design patterns found in the codebase
202
- - Match exception handling patterns from existing code
203
- - Use the same collection types and approaches found in the codebase
204
- - Apply the dependency injection patterns evident in existing code` : ""}
205
-
206
- ${PROJECT_TYPE == "JavaScript" || PROJECT_TYPE == "TypeScript" || PROJECT_TYPE == "Auto-detect" || PROJECT_TYPE == "Multiple" ? `### JavaScript/TypeScript Guidelines
207
-
208
- - Detect and adhere to the specific ECMAScript/TypeScript version in use
209
- - Follow the same module import/export patterns found in the codebase
210
- - Match TypeScript type definitions with existing patterns
211
- - Use the same async patterns (promises, async/await) as existing code
212
- - Follow error handling patterns from similar files` : ""}
213
-
214
- ${PROJECT_TYPE == "React" || PROJECT_TYPE == "Auto-detect" || PROJECT_TYPE == "Multiple" ? `### React Guidelines
215
-
216
- - Detect and adhere to the specific React version in use
217
- - Match component structure patterns from existing components
218
- - Follow the same hooks and lifecycle patterns found in the codebase
219
- - Apply the same state management approach used in existing components
220
- - Match prop typing and validation patterns from existing code` : ""}
221
-
222
- ${PROJECT_TYPE == "Angular" || PROJECT_TYPE == "Auto-detect" || PROJECT_TYPE == "Multiple" ? `### Angular Guidelines
223
-
224
- - Detect and adhere to the specific Angular version in use
225
- - Follow the same component and module patterns found in the codebase
226
- - Match decorator usage exactly as seen in existing code
227
- - Apply the same RxJS patterns found in the codebase
228
- - Follow existing patterns for component communication` : ""}
229
-
230
- ${PROJECT_TYPE == "Python" || PROJECT_TYPE == "Auto-detect" || PROJECT_TYPE == "Multiple" ? `### Python Guidelines
231
-
232
- - Detect and adhere to the specific Python version in use
233
- - Follow the same import organization found in existing modules
234
- - Match type hinting approaches if used in the codebase
235
- - Apply the same error handling patterns found in existing code
236
- - Follow the same module organization patterns` : ""}
237
-
238
- ## Version Control Guidelines
239
-
240
- ${VERSIONING == "Semantic" ?
241
- `- Follow Semantic Versioning patterns as applied in the codebase
242
-
243
- - Match existing patterns for documenting breaking changes
244
- - Follow the same approach for deprecation notices` : ""}
245
-
246
- ${VERSIONING == "CalVer" ?
247
- `- Follow Calendar Versioning patterns as applied in the codebase
248
-
249
- - Match existing patterns for documenting changes
250
- - Follow the same approach for highlighting significant changes` : ""}
251
-
252
- ${VERSIONING == "Custom" ?
253
- `- Match the exact versioning pattern observed in the codebase
254
-
255
- - Follow the same changelog format used in existing documentation
256
- - Apply the same tagging conventions used in the project` : ""}
257
-
258
- ## General Best Practices
259
-
260
- - Follow naming conventions exactly as they appear in existing code
261
- - Match code organization patterns from similar files
262
- - Apply error handling consistent with existing patterns
263
- - Follow the same approach to testing as seen in the codebase
264
- - Match logging patterns from existing code
265
- - Use the same approach to configuration as seen in the codebase
266
-
267
- ## Project-Specific Guidance
268
-
269
- - Scan the codebase thoroughly before generating any code
270
- - Respect existing architectural boundaries without exception
271
- - Match the style and patterns of surrounding code
272
- - When in doubt, prioritize consistency with existing code over external best practices
273
- ```
274
-
275
- ### 2. Codebase Analysis Instructions
276
-
277
- To create the copilot-instructions.md file, first analyze the codebase to:
278
-
279
- 1. **Identify Exact Technology Versions**:
280
- - ${PROJECT_TYPE == "Auto-detect" ? "Detect all programming languages, frameworks, and libraries by scanning file extensions and configuration files" : `Focus on ${PROJECT_TYPE} technologies`}
281
- - Extract precise version information from project files, package.json, .csproj, etc.
282
- - Document version constraints and compatibility requirements
283
-
284
- 2. **Understand Architecture**:
285
- - Analyze folder structure and module organization
286
- - Identify clear layer boundaries and component relationships
287
- - Document communication patterns between components
288
-
289
- 3. **Document Code Patterns**:
290
- - Catalog naming conventions for different code elements
291
- - Note documentation styles and completeness
292
- - Document error handling patterns
293
- - Map testing approaches and coverage
294
-
295
- 4. **Note Quality Standards**:
296
- - Identify performance optimization techniques actually used
297
- - Document security practices implemented in the code
298
- - Note accessibility features present (if applicable)
299
- - Document code quality patterns evident in the codebase
300
-
301
- ### 3. Implementation Notes
302
-
303
- The final copilot-instructions.md should:
304
-
305
- - Be placed in the .github/copilot directory
306
- - Reference only patterns and standards that exist in the codebase
307
- - Include explicit version compatibility requirements
308
- - Avoid prescribing any practices not evident in the code
309
- - Provide concrete examples from the codebase
310
- - Be comprehensive yet concise enough for Copilot to effectively use
311
-
312
- Important: Only include guidance based on patterns actually observed in the codebase. Explicitly instruct Copilot to prioritize consistency with existing code over external best practices or newer language features.
313
- "
314
-
315
- ## Expected Output
316
-
317
- A comprehensive copilot-instructions.md file that will guide GitHub Copilot to produce code that is perfectly compatible with your existing technology versions and follows your established patterns and architecture.
File without changes
File without changes