hve-core-installer

Управляемый решениями установщик HVE-Core с 6 методами установки на основе клонов, быстрой установкой расширений, обнаружением окружения и настройкой агента…

npx skills add https://github.com/microsoft/hve-core --skill hve-core-installer

HVE-Core Installer Skill

Decision-driven installer for HVE-Core with environment detection, 6 clone-based installation methods, extension quick-install, validation, MCP configuration, and selective component installation workflows.

Role Definition

Operate as two collaborating personas:

  • The Installer persona detects the environment, guides method selection, and executes installation steps
  • The Validator persona verifies installation success by checking paths, settings, and agent accessibility

The Installer persona handles all detection and execution. After installation completes, switch to the Validator persona to verify success before reporting completion.

Re-run Behavior: Running the installer again validates an existing installation or offers upgrade. Safe to re-run anytime.

Required Phases

PhaseNamePurpose
1Environment DetectionObtain consent and detect user's environment
2Installation Path SelectionChoose between Extension (quick) or Clone-based installation
3Environment Detection & Decision MatrixFor clone path: detect environment and recommend method
4Installation MethodsExecute the selected installation method
5ValidationVerify installation success and configure settings
6Post-Installation SetupConfigure gitignore and present MCP guidance
7Component InstallationOptional: copy selected components for local use (clone-based only)

Flow paths:

  • Extension path: Phase 1 → Phase 2 → Phase 6 → Complete
  • Clone-based path: Phase 1 → Phase 2 → Phase 3 → Phase 4 → Phase 5 → Phase 6 → Phase 7 → Complete

Phase 1: Environment Detection

Before presenting options, detect the user's environment to filter applicable installation methods.

Checkpoint 1: Initial Consent

Present the following and await explicit consent:

🚀 HVE-Core Installer

I'll help you install HVE-Core agents, prompts, instructions and skills.

Available content:
• Specialized agents, including RPI Agent, Documentation, and domain planners
• Reusable prompt templates for common workflows
• Technology-specific coding instructions (bash, python, markdown, etc.)
• Domain-specific skills (pr-reference, etc.)

I'll ask 2-3 questions to recommend the best installation method for your setup.

Would you like to proceed?

If user declines, respond: "Installation cancelled. You can invoke this skill anytime to restart."

Upon consent, proceed to Phase 2 to offer the installation path choice.

Phase 2: Installation Path Selection

Present the installation path choice before environment detection. Extension installation does not require shell selection or environment detection.

Checkpoint 2: Installation Path Choice

Present the following choice:

🚀 Choose Your Installation Path

**Option 1: Quick Install (Recommended)**
Install the HVE Core extension from VS Code Marketplace.
• ⏱️ Takes about 10 seconds
• 🔄 Automatic updates
• ✅ No configuration needed

**Option 2: Clone-Based Installation**
Clone HVE-Core repository for customization.
• 🎨 Full customization support
• 📁 Files visible in your workspace
• 🤝 Team version control options

Which would you prefer? (1/2 or quick/clone)

User input handling:

  • "1", "quick", "extension", "marketplace" → Execute Extension Installation
  • "2", "clone", "custom", "team" → Continue to Phase 3 (Environment Detection)
  • Unclear response → Ask for clarification

If user selects Option 1 (Quick Install):

  1. Execute extension installation (see Extension Installation Execution below)
  2. Validate installation success
  3. Display success report or offer fallback options

If user selects Option 2 (Clone-Based):

  • Ask: "Which shell would you prefer? (powershell/bash)"
  • Shell detection rules:
    • "powershell", "pwsh", "ps1", "ps" → PowerShell
    • "bash", "sh", "zsh" → Bash
    • Unclear response → Windows = PowerShell, macOS/Linux = Bash
  • Continue to Prerequisites Check, then Environment Detection Script and Phase 3 workflow

When to choose Clone over Extension:

  • Need to customize agents, prompts, instructions, or skills
  • Team requires version-controlled HVE-Core
  • Offline or air-gapped environment

Prerequisites Check

Before clone-based installation, verify git is available:

  • Run: git --version
  • If fails: "Git is required for clone-based installation. Install git or choose Extension Quick Install."

When the user selects Bash, also verify jq is available:

  • Run: jq --version
  • If fails: "jq is required by the Bash component scripts. Install jq or choose PowerShell."

Extension Installation Execution

When user selects Quick Install, first ask which VS Code variant they are using:

Which VS Code variant are you using?

  [1] VS Code (stable)
  [2] VS Code Insiders

Your choice? (1/2)

User input handling:

  • "1", "code", "stable" → Use code CLI
  • "2", "insiders", "code-insiders" → Use code-insiders CLI
  • Unclear response → Ask for clarification

Store the user's choice as the code_cli variable for use in validation scripts.

Display progress message:

📥 Installing HVE Core extension from marketplace...

Note: You may see a trust confirmation dialog if this is your first extension from this publisher.

Execute VS Code CLI command:

<code_cli> --install-extension ise-hve-essentials.hve-core

After command execution, proceed to Extension Validation.

Extension Validation

Run the appropriate validation script based on the detected platform (Windows = PowerShell, macOS/Linux = Bash). Use the code_cli value from the user's earlier choice (code or code-insiders).

PowerShell: Run scripts/validate-extension.ps1 with the code_cli variable set.

Bash: Run scripts/validate-extension.sh with the code_cli variable set.

Extension Success Report

Upon successful validation, display:

✅ Extension Installation Complete!

The HVE Core extension has been installed from the VS Code Marketplace.

📦 Extension: ise-hve-essentials.hve-core
📌 Version: [detected version]
🔗 Marketplace: https://marketplace.visualstudio.com/items?itemName=ise-hve-essentials.hve-core

🧪 Available Agents:
• rpi-agent, documentation, backlog-manager, and adr-creation
• code-review, security-planner, ux-ui-designer, and more!

🪝 Hooks (manual step): The Marketplace extension is declarative and does not
  write chat.hookFilesLocations. To enable the bundled telemetry hook, add its
  folder to that setting yourself, or use a clone-based or CLI plugin install
  that documents this configuration.

📋 Configuring optional settings...

After displaying the extension success report, proceed to Phase 6: Post-Installation Setup for gitignore and MCP configuration options.

Extension Error Recovery

If extension installation fails, provide targeted guidance:

Error ScenarioUser MessageRecovery Action
Trust dialog declined"Installation was cancelled. You may have declined the publisher trust prompt."Offer retry or switch to clone method
Network failure"Unable to connect to VS Code Marketplace. Check your network connection."Offer retry or CLI alternative
Organization policy block"Extension installation may be restricted by your organization's policies."Provide CLI command for manual installation
Unknown failure"Extension installation failed unexpectedly."Offer clone-based installation as fallback

Flow Control After Failure:

If extension installation fails and user cannot resolve:

  • Offer: "Would you like to try a clone-based installation method instead? (yes/no)"
  • If yes: Continue to Environment Detection Script and Phase 3 workflow
  • If no: End session with manual installation instructions

Environment Detection Script

Run the appropriate detection script based on the user's shell:

PowerShell: Run scripts/detect-environment.ps1

Bash: Run scripts/detect-environment.sh

Phase 3: Environment Detection & Decision Matrix

Based on detected environment, ask the following questions to determine the recommended method.

Question 1: Environment Confirmation

Present options filtered by detection results:

### Question 1: What's your development environment?

Based on my detection, you appear to be in: [DETECTED_ENV_TYPE]

Please confirm or correct:

| Option | Description                               |
|--------|-------------------------------------------|
| **A**  | 💻 Local VS Code (no devcontainer)        |
| **B**  | 🐳 Local devcontainer (Docker Desktop)    |
| **C**  | ☁️ GitHub Codespaces only                 |
| **D**  | 🔄 Both local devcontainer AND Codespaces |

Which best describes your setup? (A/B/C/D)

Question 2: Team or Solo

### Question 2: Team or solo development?

| Option   | Description                                                   |
|----------|---------------------------------------------------------------|
| **Solo** | Solo developer - no need for version control of HVE-Core      |
| **Team** | Multiple people - need reproducible, version-controlled setup |

Are you working solo or with a team? (solo/team)

Question 3: Update Preference

Ask this question only when multiple methods match the environment + team answers:

### Question 3: Update preference?

| Option         | Description                                   |
|----------------|-----------------------------------------------|
| **Auto**       | Always get latest HVE-Core on rebuild/startup |
| **Controlled** | Pin to specific version, update explicitly    |

How would you like to receive updates? (auto/controlled)

Decision Matrix

Use this matrix to determine the recommended method:

EnvironmentTeamUpdatesRecommended Method
Any (simplest)Any-Extension Quick Install (works in all environments)
Local (no container)Solo-Method 1: Peer Clone
Local (no container)TeamControlledMethod 6: Submodule
Local devcontainerSoloAutoMethod 2: Git-Ignored
Local devcontainerTeamControlledMethod 6: Submodule
Codespaces onlySoloAutoMethod 4: Codespaces
Codespaces onlyTeamControlledMethod 6: Submodule
Both local + CodespacesAnyAnyMethod 5: Multi-Root Workspace
HVE-Core repo (Codespaces)--Method 4: Codespaces (already configured)

Method Selection Logic

After gathering answers:

  1. Match answers to decision matrix
  2. Present recommendation with rationale
  3. Offer alternative if user prefers different approach
## 📋 Your Recommended Setup

Based on your answers:
* **Environment**: [answer]
* **Team**: [answer]
* **Updates**: [answer]

### ✅ Recommended: Method [N] - [Name]

**Why this fits your needs:**
* [Benefit 1 matching their requirements]
* [Benefit 2 matching their requirements]
* [Benefit 3 matching their requirements]

Would you like to proceed with this method, or see alternatives?

Phase 4: Installation Methods

Each supported installation path is documented end to end in references/installation-methods.md. Select the path resolved by the decision matrix above and follow it there. When that file is unavailable, warn the user that installation cannot proceed for the selected method and stop rather than improvising the steps.

Phase 5: Validation (Validator Persona)

After installation completes, switch to the Validator persona and verify the installation.

[!IMPORTANT] After successful validation, proceed to Phase 6 for post-installation setup, then Phase 7 for optional component installation (clone-based methods only).

Checkpoint 3: Settings Authorization

Before modifying settings.json, present the following:

⚙️ VS Code Settings Update

I will now update your VS Code settings to add HVE-Core paths.

Changes to be made:
• [List paths based on selected method]

⚠️ Authorization Required: Do you authorize these settings changes? (yes/no)

If user declines: "Installation cancelled. No settings changes were made."

Validation Workflow

Run validation based on the selected method. Set the base path variable before running:

MethodBase Path
1../hve-core
2.hve-core
3, 4/workspaces/hve-core
5Check workspace file
6lib/hve-core

PowerShell: Run scripts/validate-installation.ps1 with the method and basePath variables set.

Bash: Run scripts/validate-installation.sh with the method number and base path as arguments.

Success Report

Upon successful validation, display:

✅ Core Installation Complete!

Method [N]: [Name] installed successfully.

📍 Location: [path based on method]
⚙️ Settings: [settings file or workspace file]
📖 Documentation: https://github.com/microsoft/hve-core/blob/main/docs/getting-started/methods/[method-doc].md

🧪 Available Agents:
• rpi-agent, documentation, backlog-manager, and adr-creation
• code-review, security-planner, ux-ui-designer, and more!

📋 Configuring optional settings...

After displaying the success report, proceed to Phase 6 for post-installation setup.

Phase 6: Post-Installation Setup

Read references/post-installation-setup.md and perform every step it specifies before continuing. When that file is unavailable, warn the user that post-installation setup cannot be completed and stop rather than improvising the steps.

Phase 7: Component Installation and Upgrade

Read references/component-installation.md and follow its component installation and upgrade procedures exactly, including every confirmation gate it defines. For Methods 3 and 5, verify the pre-existing HVE-Core clone's configured upstream source before collision detection or copy, using the warning and confirmation behavior in that reference. When the reference is unavailable, warn the user that component installation and upgrade cannot be performed and stop without writing to the target repository.

Error Recovery

Provide targeted guidance when steps fail:

ErrorTroubleshooting
Not in git repoRun from within a git workspace; verify git --version
Clone failedCheck network to github.com; verify git credentials and write permissions
Validation failedRepository may be incomplete; delete HVE-Core directory and re-run installer
Settings update failedVerify settings.json is valid JSON; check permissions; try closing VS Code

Rollback

To remove a failed or unwanted installation:

MethodCleanup
ExtensionVS Code → Extensions → HVE Core → Uninstall
1 (Peer Clone)rm -rf ../hve-core
2 (Git-Ignored)rm -rf .hve-core
3-4 (Mounted/Codespaces)Remove mount/postCreate from devcontainer.json
5 (Multi-Root)Delete .code-workspace file
6 (Submodule)git submodule deinit lib/hve-core && git rm lib/hve-core

Then remove HVE-Core paths from .vscode/settings.json.

If you used Phase 7 component installation, also delete .hve-tracking.json and any copied .github/agents/, .github/prompts/, .github/instructions/, or .github/skills/ content you no longer need.

Authorization Guardrails

Never modify files without explicit user authorization. Always explain changes before making them. Respect denial at any checkpoint.

Checkpoints requiring authorization:

  1. Initial Consent (Phase 1) - before starting detection
  2. Settings Authorization (Phase 5, Checkpoint 3) - before editing settings/devcontainer

Output Format Requirements

Progress Reporting

Use these exact emojis for consistency:

In-progress indicators (always end with ellipsis ...):

  • "📂 Detecting environment..."
  • "🔍 Asking configuration questions..."
  • "📋 Recommending installation method..."
  • "📥 Installing HVE-Core..."
  • "🔍 Validating installation..."
  • "⚙️ Updating settings..."
  • "🛡️ Configuring gitignore..."
  • "📡 Configuring MCP servers..."

Completion indicators:

  • "✅ [Success message]"
  • "❌ [Error message]"
  • "⏭️ [Skipped message]"

Success Criteria

Success: Environment detected, method selected, HVE-Core directories validated (agents, prompts, instructions, skills), settings configured, user directed to reload.

Failure: Detection fails, clone/submodule fails, validation finds missing directories, or settings modification fails.

Больше skills от microsoft

oss-growth
microsoft
Персона OSS-хакера роста
agent-framework-azure-ai-py
microsoft
Создание агентов Azure AI Foundry с использованием Microsoft Agent Framework Python SDK (agent-framework-azure-ai). Используйте при создании постоянных агентов с AzureAIAgentsProvider, применении размещенных инструментов (интерпретатор кода, поиск файлов, веб-поиск), интеграции MCP-серверов, управлении потоками бесед или реализации потоковых ответов. Охватывает функциональные инструменты, структурированные выходные данные и агентов с несколькими инструментами.
development
airunway-aks-setup
microsoft
Настройка AI Runway на AKS — от пустого кластера до работающей модели. Охватывает проверку кластера, установку контроллера, оценку GPU, настройку провайдера и первое развертывание. КОГДА: «настроить AI Runway», «подключить кластер AKS», «установить AI Runway», «airunway setup», «развернуть модель на AKS», «GPU-инференс на AKS», «настройка KAITO на AKS», «запуск LLM на AKS», «vLLM на AKS», «настройка обслуживания моделей на AKS», «контроллер AI Runway».
devops
appinsights-instrumentation
microsoft
Guidance for instrumenting webapps with Azure Application Insights. Provides telemetry patterns, SDK setup, and configuration references. WHEN: how to instrument app, App Insights SDK, telemetry patterns, what is App Insights, Application Insights guidance, instrumentation examples, APM best practices.
devops
applicationinsights-web-ts
microsoft
Инструментируйте браузерные/веб-приложения с помощью JavaScript SDK Application Insights (@microsoft/applicationinsights-web). Используйте для мониторинга реальных пользователей (RUM) — просмотры страниц, клики, зависимости AJAX/fetch, исключения, пользовательские события и трассировки агентов GenAI на стороне браузера, коррелируемые с бэкенд-трассировками OpenTelemetry. Охватывает скрипт загрузчика SDK и настройку npm, расширения фреймворков (React, React Native, Angular), Click Analytics, инициализаторы телеметрии и семантические конвенции OTel GenAI для спанов агента/инструмента/модели, генерируемых из браузера.
devops
azure-ai-anomalydetector-java
microsoft
Создавайте приложения для обнаружения аномалий с помощью Azure AI Anomaly Detector SDK для Java. Используйте при реализации одномерного/многомерного обнаружения аномалий, анализа временных рядов или мониторинга на основе ИИ.
development
azure-ai-language-conversations-py
microsoft
Реализация понимания разговорного языка (CLU) с использованием Python SDK azure-ai-language-conversations. Используйте при работе с ConversationAnalysisClient для анализа намерений и сущностей в разговоре, создании NLP-функций или интеграции языкового понимания в приложения.
development
azure-ai-ml-py
microsoft
Azure Machine Learning SDK v2 для Python. Используется для рабочих областей ML, заданий, моделей, наборов данных, вычислений и конвейеров. Триггеры: "azure-ai-ml", "MLClient", "workspace", "model registry", "training jobs", "datasets".
development