Commit 712b0b7
authored
refactor: migrate chatmodes to agents architecture (#210)
# Pull Request
## Description
This PR completes a comprehensive refactoring of the HVE-Core prompt
engineering infrastructure, renaming "chatmodes" to "agents" throughout
the codebase and introducing new workflow capabilities.
### Key Changes
**Terminology Migration:**
- Renamed `.github/chatmodes/` directory to `.github/agents/`
- Migrated all `.chatmode.md` files to `.agent.md` extension
- Updated all documentation, prompts, and instructions to use "agent"
terminology
**New Documentation:**
- Added [.github/README.md](.github/README.md) providing comprehensive
documentation for GitHub Copilot Custom Agents
- Created [docs/contributing/skills.md](docs/contributing/skills.md) for
skill package contribution guidelines
- Added
[docs/templates/security-plan-template.md](docs/templates/security-plan-template.md)
for security plan generation
**Workflow Enhancements:**
- Added
[task-implement.prompt.md](.github/prompts/task-implement.prompt.md) for
plan execution with stop controls
- Enhanced
[task-research.prompt.md](.github/prompts/task-research.prompt.md) with
subagent dispatch patterns
- Streamlined [task-plan.prompt.md](.github/prompts/task-plan.prompt.md)
for implementation planning
- Added
[prompt-refactor.prompt.md](.github/prompts/prompt-refactor.prompt.md)
for iterative artifact improvement
**Skills Infrastructure:**
- Added skills section to documentation and extension packaging
- Created
[skill-frontmatter.schema.json](scripts/linting/schemas/skill-frontmatter.schema.json)
for validation
- Updated schema mapping to include skill files
**Extension Updates:**
- Updated extension packaging to use agents instead of chatmodes
- Added docs/templates to packaging for agent reference
- Updated Prepare-Extension.ps1 to discover agents from new location
**Configuration:**
- Updated VS Code settings to reference `.github/agents/` directory
## Related Issue(s)
N/A
## Type of Change
Select all that apply:
**Code & Documentation:**
- [ ] Bug fix (non-breaking change fixing an issue)
- [ ] New feature (non-breaking change adding functionality)
- [ ] Breaking change (fix or feature causing existing functionality to
change)
- [x] Documentation update
**Infrastructure & Configuration:**
- [ ] GitHub Actions workflow
- [x] Linting configuration (markdown, PowerShell, etc.)
- [ ] Security configuration
- [ ] DevContainer configuration
- [ ] Dependency update
**AI Artifacts:**
- [x] Reviewed contribution with `prompt-builder` agent and addressed
all feedback
- [x] Copilot instructions (`.github/instructions/*.instructions.md`)
- [x] Copilot prompt (`.github/prompts/*.prompt.md`)
- [x] Copilot agent (`.github/agents/*.agent.md`)
> **Note for AI Artifact Contributors**:
>
> - **Agents**: Research, indexing/referencing other project (using
standard VS Code GitHub Copilot/MCP tools), planning, and general
implementation agents likely already exist. Review `.github/agents/`
before creating new ones.
> - **Model Versions**: Only contributions targeting the **latest
Anthropic and OpenAI models** will be accepted. Older model versions
(e.g., GPT-3.5, Claude 3) will be rejected.
> - See [Agents Not
Accepted](../docs/contributing/custom-agents.md#agents-not-accepted) and
[Model Version
Requirements](../docs/contributing/ai-artifacts-common.md#model-version-requirements).
**Other:**
- [x] Script/automation (`.ps1`, `.sh`, `.py`)
- [ ] Other (please describe):
## Sample Prompts (for AI Artifact Contributions)
**User Request:**
Use the new task-implement prompt to execute a plan:
```text
/task-implement
```
Or refactor a prompt artifact:
```text
/prompt-refactor file=.github/prompts/task-plan.prompt.md
```
**Execution Flow:**
1. `task-implement` reads plans from `.copilot-tracking/plans/` and
`.copilot-tracking/details/`
2. Executes implementation steps with stop controls for validation
3. Records changes in `.copilot-tracking/changes/`
**Output Artifacts:**
- Implementation changes to target files
- Change records in `.copilot-tracking/changes/*.md`
**Success Indicators:**
- All agent files are discoverable in VS Code chat mode picker
- Prompt invocations work correctly after rename
- Extension preparation script discovers agents from new location
- Frontmatter schemas validate new agent files
For detailed contribution requirements, see:
- **Common Standards**:
[docs/contributing/ai-artifacts-common.md](../docs/contributing/ai-artifacts-common.md)
- Shared standards for XML blocks, markdown quality, RFC 2119,
validation, and testing
- **Agents**:
[docs/contributing/custom-agents.md](../docs/contributing/custom-agents.md)
- Agent configurations with tools and behavior patterns
- **Prompts**:
[docs/contributing/prompts.md](../docs/contributing/prompts.md) -
Workflow-specific guidance with template variables
- **Instructions**:
[docs/contributing/instructions.md](../docs/contributing/instructions.md)
- Technology-specific standards with glob patterns
## Testing
Testing was performed manually by:
1. Verifying all agent files are discoverable in VS Code chat mode
picker
2. Confirming prompt invocations work correctly after rename
3. Testing extension preparation script discovers agents from new
location
4. Validating frontmatter schemas apply to new agent files
## Checklist
### Required Checks
- [x] Documentation is updated (if applicable)
- [x] Files follow existing naming conventions
- [x] Changes are backwards compatible (if applicable)
### AI Artifact Contributions
- [x] Used `/prompt-analyze` to review contribution
- [x] Addressed all feedback from `prompt-builder` review
- [x] Verified contribution follows common standards and type-specific
requirements
### Required Automated Checks
The following validation commands must pass before merging:
- [x] Markdown linting: `npm run lint:md`
- [x] Spell checking: `npm run spell-check`
- [x] Frontmatter validation: `npm run lint:frontmatter`
- [x] Link validation: `npm run lint:md-links`
- [x] PowerShell analysis: `npm run lint:ps`
## Security Considerations
- [x] This PR does not contain any sensitive or NDA information
- [x] Any new dependencies have been reviewed for security issues
- [x] Security-related scripts follow the principle of least privilege
## Additional Notes
### GHCP Artifact Maturity
This PR includes GHCP (GitHub Copilot) artifacts with maturity levels
affecting release channels.
| File | Type | Maturity | Notes |
|------|------|----------|-------|
| `ado-prd-to-wit.agent.md` | Agent | ✅ stable | All builds |
| `adr-creation.agent.md` | Agent | ✅ stable | All builds |
| `arch-diagram-builder.agent.md` | Agent | ✅ stable | All builds |
| `brd-builder.agent.md` | Agent | ✅ stable | All builds |
| `gen-data-spec.agent.md` | Agent | ✅ stable | All builds |
| `gen-jupyter-notebook.agent.md` | Agent | ✅ stable | All builds |
| `gen-streamlit-dashboard.agent.md` | Agent | ✅ stable | All builds |
| `github-issue-manager.agent.md` | Agent | ✅ stable | All builds |
| `pr-review.agent.md` | Agent | ✅ stable | All builds |
| `prd-builder.agent.md` | Agent | ✅ stable | All builds |
| `prompt-builder.agent.md` | Agent | ✅ stable | All builds |
| `rpi-agent.agent.md` | Agent | ✅ stable | All builds |
| `security-plan-creator.agent.md` | Agent | ✅ stable | All builds |
| `task-implementor.agent.md` | Agent | ✅ stable | All builds |
| `task-planner.agent.md` | Agent | ✅ stable | All builds |
| `task-researcher.agent.md` | Agent | ✅ stable | All builds |
| `test-streamlit-dashboard.agent.md` | Agent | ✅ stable | All builds |
| `prompt-refactor.prompt.md` | Prompt | ✅ stable | All builds |
| `task-implement.prompt.md` | Prompt | ✅ stable | All builds |
| `prompt-analyze.prompt.md` | Prompt | ✅ stable | All builds |
| `prompt-builder.instructions.md` | Instructions | ✅ stable | All
builds |
| `terraform.instructions.md` | Instructions | ✅ stable | All builds |
---
*🤖 Crafted with precision by ✨Copilot following brilliant human
instruction, then carefully refined by our team of discerning human
reviewers.*1 parent 54dd959 commit 712b0b7
90 files changed
Lines changed: 4655 additions & 4873 deletions
File tree
- .cspell
- .github
- ISSUE_TEMPLATE
- agents
- chatmodes
- instructions
- terraform
- prompts
- .vscode
- docs
- contributing
- getting-started
- methods
- rpi
- templates
- extension
- scripts
- extension
- linting
- schemas
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1327 | 1327 | | |
1328 | 1328 | | |
1329 | 1329 | | |
| 1330 | + | |
| 1331 | + | |
1330 | 1332 | | |
1331 | 1333 | | |
1332 | 1334 | | |
| |||
1340 | 1342 | | |
1341 | 1343 | | |
1342 | 1344 | | |
| 1345 | + | |
| 1346 | + | |
1343 | 1347 | | |
1344 | 1348 | | |
1345 | 1349 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| |||
Lines changed: 7 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
4 | | - | |
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
27 | 26 | | |
| 27 | + | |
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
| 30 | + | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
| 33 | + | |
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
| 37 | + | |
38 | 38 | | |
39 | | - | |
| 39 | + | |
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | | - | |
| 52 | + | |
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
66 | | - | |
| 66 | + | |
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
| |||
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
82 | | - | |
83 | | - | |
| 82 | + | |
| 83 | + | |
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
| |||
0 commit comments