microsoft/hve-core

Public

mirrored fromhttps://github.com/microsoft/hve-coreAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
23be43f9eb4e5c4524397014accacc4b303fec29

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

docs/architecture/README.md

89lines · modecode

1---
2title: Architecture Overview
3description: HVE Core system design and component relationships
4sidebar_position: 1
5author: Microsoft
6ms.date: 2026-02-19
7ms.topic: concept
8---
9
10HVE Core provides a Copilot customization framework that enables teams to extend GitHub Copilot with project-specific context, workflows, and automation. The framework organizes reusable AI artifacts, development scripts, and documentation into a cohesive system that integrates with VS Code and GitHub workflows.
11
12## System Architecture
13
14The following diagram illustrates the primary components and their relationships:
15
16```mermaid
17graph TD
18 EXT[Extension] --> AGENTS[Agents]
19 EXT --> PROMPTS[Prompts]
20 EXT --> INSTRUCTIONS[Instructions]
21 EXT --> SKILLS[Skills]
22 SCRIPTS[Scripts] --> LINTING[Linting]
23 SCRIPTS --> SECURITY[Security]
24 SCRIPTS --> PLUGINS[Plugins]
25 DOCS[Documentation] --> GUIDES[User Guides]
26 DOCS --> ARCH[Architecture]
27```
28
29## Component Summary
30
31| Component | Location | Purpose |
32|---------------------|----------------------------|-------------------------------------------------------------------------------|
33| Extension | `extension/` | VS Code extension providing contribution points for AI artifacts |
34| Scripts | `scripts/` | PowerShell automation for linting, security validation, and plugin generation |
35| Documentation | `docs/` | User guides, architecture docs, and contribution guidelines |
36| GitHub Assets | `.github/` | Workflows, instructions, prompts, agents, skills, and issue templates |
37| Dev Container | `.devcontainer/` | Codespaces and local container development environment |
38| Frontmatter Schema | `scripts/linting/schemas/` | JSON schemas for AI artifact validation |
39| GitHub Workflows | `.github/workflows/` | CI/CD pipelines for validation, security, and release automation |
40| Access Control | `.github/CODEOWNERS` | Path-based review requirements and ownership |
41| MCP Configuration | `.vscode/mcp.json` | Model Context Protocol server definitions |
42| Plugins | `plugins/` | Generated Copilot CLI plugin output from collection manifests |
43| Test Infrastructure | `scripts/tests/` | Pester test suites with fixtures and mocks |
44
45## Core Subsystems
46
47### Extension
48
49The VS Code extension serves as the integration layer between HVE Core artifacts and the Copilot experience. It registers contribution points that allow Copilot to discover and use agents, prompts, instructions, and skills defined within the repository. The extension follows VS Code extension packaging conventions and includes its own README and license.
50
51### Scripts
52
53Automation scripts handle quality assurance and development workflows. The scripts directory organizes functionality into specialized subdirectories:
54
55* Linting scripts validate markdown formatting, link integrity, YAML structure, and PowerShell code quality
56* Security scripts verify dependency pinning and SHA staleness for workflow actions
57* Plugin scripts generate Copilot CLI plugins from collection manifests
58* Library modules provide shared utilities like verified downloads
59
60### Plugins
61
62Collection manifests in `collections/` define bundles of agents, prompts, instructions, and skills. Running `npm run plugin:generate` produces the `plugins/` directory, which contains generated output organized by collection ID. Files under `plugins/` are not edited directly. See [scripts/plugins/README.md](https://github.com/microsoft/hve-core/blob/main/scripts/plugins/README.md) for the generation pipeline.
63
64### Documentation
65
66User-facing documentation guides teams through installation, configuration, and effective use of the framework. The RPI (Researcher, Planner, Implementor) methodology documentation helps teams structure their AI-assisted development workflows. Contributing guides explain how to author AI artifacts that follow project conventions.
67
68### GitHub Assets
69
70The `.github/` directory contains workflow definitions, issue templates, and the AI artifacts that define Copilot behavior. Instructions files provide context-specific guidance that Copilot applies when working with certain file types or directories. Agents define specialized personas for different tasks. Prompts offer reusable starting points for common operations. All artifact types are organized into `{collection-id}` subdirectories by convention (e.g., `.github/agents/hve-core/`, `.github/instructions/coding-standards/`).
71
72Skills package executable utilities with cross-platform scripts and domain-specific guidance; each skill is self-contained with a SKILL.md file describing capabilities and usage patterns. By convention, skills are organized under `.github/skills/{collection-id}/{skill-name}/`.
73
74## Package Relationships
75
76Components interact through well-defined boundaries. The extension registers contribution points for agents, prompts, and instructions, making them available to Copilot Chat. Skills use a separate discovery mechanism: Copilot scans `.github/skills/{collection-id}/` subdirectories by convention for `SKILL.md` files that describe executable capabilities. Scripts operate independently of the extension but share configuration files like `PSScriptAnalyzer.psd1` and schema definitions in `scripts/linting/schemas/`.
77
78Documentation references both the extension capabilities and script utilities, providing guidance on how to use each component effectively. The tracking directory (`.copilot-tracking/`) serves as a workspace for AI-assisted workflows, storing work item discoveries, plan artifacts, and change records that bridge human and AI collaboration.
79
80GitHub workflows orchestrate script execution for continuous integration, running linting and security checks on pull requests. The extension packaging scripts prepare the VS Code extension for distribution, bundling required assets and generating the installable VSIX package.
81
82## Further Reading
83
84* [AI Artifacts Architecture](ai-artifacts.md) - Four-tier artifact delegation model
85* [Agentic Workflows](agentic-workflows) - End-to-end process flow for AI-driven issue triage, implementation, and review
86* [Build Workflows](workflows.md) - GitHub Actions CI/CD pipeline architecture
87* [Testing Architecture](testing.md) - PowerShell Pester test infrastructure
88
89🤖 *Crafted with precision by ✨Copilot following brilliant human instruction, then carefully refined by our team of discerning human reviewers.*
90