@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.
- package/.github/agents/implementation-plan.agent.md +192 -0
- package/.github/agents/plan.agent.md +135 -0
- package/.github/agents/research-spike.agent.md +204 -0
- package/.github/instructions/agent-safety.instructions.md +98 -0
- package/.github/instructions/agent-skill.instructions.md +272 -0
- package/.github/instructions/agent.instructions.md +1068 -0
- package/.github/instructions/ai-prompt-engineering-safety.instructions.md +991 -0
- package/.github/instructions/angular.instructions.md +116 -0
- package/.github/instructions/context7.instructions.md +109 -0
- package/.github/instructions/go.instructions.md +374 -0
- package/.github/instructions/html-to-css-guide.instructions.md +104 -0
- package/.github/instructions/instructions.instructions.md +264 -0
- package/.github/instructions/markdown.instructions.md +51 -0
- package/.github/instructions/memory-bank.instructions.md +322 -0
- package/.github/instructions/nodejs-vitest.instructions.md +34 -0
- package/.github/instructions/playwright-typescript.instructions.md +88 -0
- package/.github/instructions/prompt.instructions.md +99 -0
- package/.github/instructions/security-owasp.instructions.md +59 -0
- package/.github/instructions/shell.instructions.md +132 -0
- package/.github/instructions/task-implementation.instructions.md +203 -0
- package/.github/instructions/typescript.instructions.md +114 -0
- package/.github/prompts/copilot-instructions-blueprint-generator.prompt.md +317 -0
- package/.github/prompts/documentation-writer.prompt.md +46 -0
- package/.github/prompts/editconfig.prompt.md +64 -0
- package/.github/prompts/playwright-explore.prompt.md +39 -0
- package/.github/prompts/playwright-generate-test.prompt.md +39 -0
- package/.github/skills/agent-governance/SKILL.md +572 -0
- package/.github/skills/boost-prompt/SKILL.md +25 -0
- package/.github/skills/chrome-devtools/SKILL.md +97 -0
- package/.github/skills/context-map/SKILL.md +57 -0
- package/.github/skills/conventional-commit/SKILL.md +72 -0
- package/.github/skills/create-readme/SKILL.md +21 -0
- package/.github/skills/editorconfig/SKILL.md +63 -0
- package/.github/skills/gh-cli/SKILL.md +2188 -0
- package/.github/skills/git-commit/SKILL.md +124 -0
- package/.github/skills/github-issues/SKILL.md +134 -0
- package/.github/skills/github-issues/references/templates.md +110 -0
- package/.github/skills/microsoft-docs/SKILL.md +114 -0
- package/.github/skills/playwright-explore-website/SKILL.md +17 -0
- package/.github/skills/playwright-generate-test/SKILL.md +17 -0
- package/.github/skills/polygot-test-agent/SKILL.md +171 -0
- package/.github/skills/polygot-test-agent/unit-test-genearation.prompt.md +155 -0
- package/.github/skills/prompt-builder/SKILL.md +159 -0
- package/.github/workflows/npm-publish.yml +25 -0
- package/README.md +111 -0
- package/package.json +32 -0
- package/scripts/bump-version.js +29 -0
- package/scripts/sync.js +122 -0
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: context-map
|
|
3
|
+
description: "Generate a map of all files relevant to a task before making changes"
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Context Map
|
|
7
|
+
|
|
8
|
+
Before implementing any changes, analyze the codebase and create a context map.
|
|
9
|
+
|
|
10
|
+
## Task
|
|
11
|
+
|
|
12
|
+
{{task_description}}
|
|
13
|
+
|
|
14
|
+
## Instructions
|
|
15
|
+
|
|
16
|
+
1. Search the codebase for files related to this task
|
|
17
|
+
2. Identify direct dependencies (imports/exports)
|
|
18
|
+
3. Find related tests
|
|
19
|
+
4. Look for similar patterns in existing code
|
|
20
|
+
|
|
21
|
+
## Output Format
|
|
22
|
+
|
|
23
|
+
```markdown
|
|
24
|
+
## Context Map
|
|
25
|
+
|
|
26
|
+
### Files to Modify
|
|
27
|
+
|
|
28
|
+
| File | Purpose | Changes Needed |
|
|
29
|
+
| ------------ | ----------- | -------------- |
|
|
30
|
+
| path/to/file | description | what changes |
|
|
31
|
+
|
|
32
|
+
### Dependencies (may need updates)
|
|
33
|
+
|
|
34
|
+
| File | Relationship |
|
|
35
|
+
| ----------- | ---------------------------- |
|
|
36
|
+
| path/to/dep | imports X from modified file |
|
|
37
|
+
|
|
38
|
+
### Test Files
|
|
39
|
+
|
|
40
|
+
| Test | Coverage |
|
|
41
|
+
| ------------ | ---------------------------- |
|
|
42
|
+
| path/to/test | tests affected functionality |
|
|
43
|
+
|
|
44
|
+
### Reference Patterns
|
|
45
|
+
|
|
46
|
+
| File | Pattern |
|
|
47
|
+
| --------------- | ----------------- |
|
|
48
|
+
| path/to/similar | example to follow |
|
|
49
|
+
|
|
50
|
+
### Risk Assessment
|
|
51
|
+
|
|
52
|
+
- [ ] Breaking changes to public API
|
|
53
|
+
- [ ] Database migrations needed
|
|
54
|
+
- [ ] Configuration changes required
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
Do not proceed with implementation until this map is reviewed.
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: conventional-commit
|
|
3
|
+
description: "Prompt and workflow for generating conventional commit messages using a structured XML format. Guides users to create standardized, descriptive commit messages in line with the Conventional Commits specification, including instructions, examples, and validation."
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
### Instructions
|
|
7
|
+
|
|
8
|
+
```xml
|
|
9
|
+
<description>This file contains a prompt template for generating conventional commit messages. It provides instructions, examples, and formatting guidelines to help users write standardized, descriptive commit messages in accordance with the Conventional Commits specification.</description>
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
### Workflow
|
|
13
|
+
|
|
14
|
+
**Follow these steps:**
|
|
15
|
+
|
|
16
|
+
1. Run `git status` to review changed files.
|
|
17
|
+
2. Run `git diff` or `git diff --cached` to inspect changes.
|
|
18
|
+
3. Stage your changes with `git add <file>`.
|
|
19
|
+
4. Construct your commit message using the following XML structure.
|
|
20
|
+
5. After generating your commit message, Copilot will automatically run the following command in your integrated terminal (no confirmation needed):
|
|
21
|
+
|
|
22
|
+
```bash
|
|
23
|
+
git commit -m "type(scope): description"
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
6. Just execute this prompt and Copilot will handle the commit for you in the terminal.
|
|
27
|
+
|
|
28
|
+
### Commit Message Structure
|
|
29
|
+
|
|
30
|
+
```xml
|
|
31
|
+
<commit-message>
|
|
32
|
+
<type>feat|fix|docs|style|refactor|perf|test|build|ci|chore|revert</type>
|
|
33
|
+
<scope>()</scope>
|
|
34
|
+
<description>A short, imperative summary of the change</description>
|
|
35
|
+
<body>(optional: more detailed explanation)</body>
|
|
36
|
+
<footer>(optional: e.g. BREAKING CHANGE: details, or issue references)</footer>
|
|
37
|
+
</commit-message>
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
### Examples
|
|
41
|
+
|
|
42
|
+
```xml
|
|
43
|
+
<examples>
|
|
44
|
+
<example>feat(parser): add ability to parse arrays</example>
|
|
45
|
+
<example>fix(ui): correct button alignment</example>
|
|
46
|
+
<example>docs: update README with usage instructions</example>
|
|
47
|
+
<example>refactor: improve performance of data processing</example>
|
|
48
|
+
<example>chore: update dependencies</example>
|
|
49
|
+
<example>feat!: send email on registration (BREAKING CHANGE: email service required)</example>
|
|
50
|
+
</examples>
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
### Validation
|
|
54
|
+
|
|
55
|
+
```xml
|
|
56
|
+
<validation>
|
|
57
|
+
<type>Must be one of the allowed types. See <reference>https://www.conventionalcommits.org/en/v1.0.0/#specification</reference></type>
|
|
58
|
+
<scope>Optional, but recommended for clarity.</scope>
|
|
59
|
+
<description>Required. Use the imperative mood (e.g., "add", not "added").</description>
|
|
60
|
+
<body>Optional. Use for additional context.</body>
|
|
61
|
+
<footer>Use for breaking changes or issue references.</footer>
|
|
62
|
+
</validation>
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
### Final Step
|
|
66
|
+
|
|
67
|
+
```xml
|
|
68
|
+
<final-step>
|
|
69
|
+
<cmd>git commit -m "type(scope): description"</cmd>
|
|
70
|
+
<note>Replace with your constructed message. Include body and footer if needed.</note>
|
|
71
|
+
</final-step>
|
|
72
|
+
```
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: create-readme
|
|
3
|
+
description: "Create a README.md file for the project"
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
## Role
|
|
7
|
+
|
|
8
|
+
You're a senior expert software engineer with extensive experience in open source projects. You always make sure the README files you write are appealing, informative, and easy to read.
|
|
9
|
+
|
|
10
|
+
## Task
|
|
11
|
+
|
|
12
|
+
1. Take a deep breath, and review the entire project and workspace, then create a comprehensive and well-structured README.md file for the project.
|
|
13
|
+
2. Take inspiration from these readme files for the structure, tone and content:
|
|
14
|
+
- https://raw.githubusercontent.com/Azure-Samples/serverless-chat-langchainjs/refs/heads/main/README.md
|
|
15
|
+
- https://raw.githubusercontent.com/Azure-Samples/serverless-recipes-javascript/refs/heads/main/README.md
|
|
16
|
+
- https://raw.githubusercontent.com/sinedied/run-on-output/refs/heads/main/README.md
|
|
17
|
+
- https://raw.githubusercontent.com/sinedied/smoke/refs/heads/main/README.md
|
|
18
|
+
3. Do not overuse emojis, and keep the readme concise and to the point.
|
|
19
|
+
4. Do not include sections like "LICENSE", "CONTRIBUTING", "CHANGELOG", etc. There are dedicated files for those sections.
|
|
20
|
+
5. Use GFM (GitHub Flavored Markdown) for formatting, and GitHub admonition syntax (https://github.com/orgs/community/discussions/16925) where appropriate.
|
|
21
|
+
6. If you find a logo or icon for the project, use it in the readme's header.
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: editorconfig
|
|
3
|
+
description: "Generates a comprehensive and best-practice-oriented .editorconfig file based on project analysis and user preferences."
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
## 📜 MISSION
|
|
7
|
+
|
|
8
|
+
You are an **EditorConfig Expert**. Your mission is to create a robust, comprehensive, and best-practice-oriented `.editorconfig` file. You will analyze the user's project structure and explicit requirements to generate a configuration that ensures consistent coding styles across different editors and IDEs. You must operate with absolute precision and provide clear, rule-by-rule explanations for your configuration choices.
|
|
9
|
+
|
|
10
|
+
## 📝 DIRECTIVES
|
|
11
|
+
|
|
12
|
+
1. **Analyze Context**: Before generating the configuration, you MUST analyze the provided project structure and file types to infer the languages and technologies being used.
|
|
13
|
+
2. **Incorporate User Preferences**: You MUST adhere to all explicit user requirements. If any requirement conflicts with a common best practice, you will still follow the user's preference but make a note of the conflict in your explanation.
|
|
14
|
+
3. **Apply Universal Best Practices**: You WILL go beyond the user's basic requirements and incorporate universal best practices for `.editorconfig` files. This includes settings for character sets, line endings, trailing whitespace, and final newlines.
|
|
15
|
+
4. **Generate Comprehensive Configuration**: The generated `.editorconfig` file MUST be well-structured and cover all relevant file types found in the project. Use glob patterns (`*`, `**.js`, `**.py`, etc.) to apply settings appropriately.
|
|
16
|
+
5. **Provide Rule-by-Rule Explanation**: You MUST provide a detailed, clear, and easy-to-understand explanation for every single rule in the generated `.editorconfig` file. Explain what the rule does and why it's a best practice.
|
|
17
|
+
6. **Output Format**: The final output MUST be presented in two parts:
|
|
18
|
+
- A single, complete code block containing the `.editorconfig` file content.
|
|
19
|
+
- A "Rule-by-Rule Explanation" section using Markdown for clarity.
|
|
20
|
+
|
|
21
|
+
## 🧑💻 USER PREFERENCES
|
|
22
|
+
|
|
23
|
+
- **Indentation Style**: Use spaces, not tabs.
|
|
24
|
+
- **Indentation Size**: 2 spaces.
|
|
25
|
+
|
|
26
|
+
## 🚀 EXECUTION
|
|
27
|
+
|
|
28
|
+
Begin by acknowledging the user's preferences. Then, proceed directly to generating the `.editorconfig` file and the detailed explanation as per the specified output format.
|
|
29
|
+
|
|
30
|
+
### Example Output Structure:
|
|
31
|
+
|
|
32
|
+
Here is the `.editorconfig` file tailored to your project:
|
|
33
|
+
|
|
34
|
+
```editorconfig
|
|
35
|
+
# .editorconfig
|
|
36
|
+
|
|
37
|
+
# Top-most EditorConfig file
|
|
38
|
+
root = true
|
|
39
|
+
|
|
40
|
+
[*]
|
|
41
|
+
indent_style = space
|
|
42
|
+
indent_size = 2
|
|
43
|
+
end_of_line = lf
|
|
44
|
+
charset = utf-8
|
|
45
|
+
trim_trailing_whitespace = true
|
|
46
|
+
insert_final_newline = true
|
|
47
|
+
|
|
48
|
+
[*.md]
|
|
49
|
+
trim_trailing_whitespace = false
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
### Rule-by-Rule Explanation
|
|
53
|
+
|
|
54
|
+
- `root = true`: This is a best practice that stops the EditorConfig search in the current directory. Without it, EditorConfig would continue searching parent directories, which could lead to unexpected behavior.
|
|
55
|
+
- `[*]`: This is a universal glob pattern that applies the following rules to ALL files in the project.
|
|
56
|
+
- `indent_style = space`: As requested, this sets the indentation to use spaces instead of tabs.
|
|
57
|
+
- `indent_size = 2`: As requested, this sets the indentation size to 2 spaces.
|
|
58
|
+
- `end_of_line = lf`: This standardizes line endings to Line Feed (LF), which is the standard for macOS, Linux, and modern Windows (WSL), preventing issues with version control systems.
|
|
59
|
+
- `charset = utf-8`: This sets the character encoding to UTF-8, the universal standard, ensuring files can be read and written correctly across all systems.
|
|
60
|
+
- `trim_trailing_whitespace = true`: This automatically removes any whitespace characters at the end of lines, which keeps the code clean and avoids unnecessary diffs in version control.
|
|
61
|
+
- `insert_final_newline = true`: This ensures that every file ends with a single newline character, a POSIX standard that prevents certain scripting and concatenation issues.
|
|
62
|
+
- `[*.md]`: This glob pattern applies specific rules only to Markdown files.
|
|
63
|
+
- `trim_trailing_whitespace = false`: This overrides the universal setting for Markdown files. It's disabled because trailing whitespace can be significant in Markdown (e.g., for creating hard line breaks).
|