Skip to content

Commit d606de9

Browse files
algattikCopilot
andcommitted
fix(skills): bootstrap shared RPI instructions
πŸ“ - Generated by Copilot Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 941dd88 commit d606de9

7 files changed

Lines changed: 24 additions & 26 deletions

File tree

β€Ž.cspell.jsonβ€Ž

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@
7171
],
7272
"ignorePaths": [
7373
".agent/reviews/**",
74+
".github/instructions/hve-core/copilot-tracking.instructions.md",
7475
"**/.github/chatmodes/**",
7576
"**/node_modules/**",
7677
"**/vscode-extension/**",

β€Ž.github/copilot-instructions.mdβ€Ž

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -334,24 +334,15 @@ The weekly `copilot-setup-steps.yml` cron and `Test-BinaryFreshness.ps1` weekly
334334

335335
The `Bootstrap hve-core RPI skills` step in `copilot-setup-steps.yml` runs **outside** the cloud-agent firewall and uses `gh skill install` to download the complete RPI skill suite from a pinned `microsoft/hve-core` commit into immediate subdirectories of `.github/skills/`.
336336

337-
The generated `.github/skills/rpi-*/` directories are gitignored and excluded from repository Markdown linting. The setup step names all eight allowed skill paths explicitly, pins every installation to the reviewed commit, and relies on the GitHub CLI to preserve each skill's references and templates and inject its source commit and tree metadata into `SKILL.md`. Bootstrap failure is fatal because no local fallback provides these workflows.
337+
The generated `.github/skills/rpi-*/` directories and `.github/instructions/hve-core/copilot-tracking.instructions.md` are gitignored and excluded from repository linting. The setup step names all eight allowed skill paths explicitly, pins every installation to the reviewed commit, and downloads the shared tracking instruction from the same commit.
338+
339+
The GitHub CLI preserves each skill's references and templates and injects its source commit and tree metadata into `SKILL.md`. Bootstrap failure is fatal because no local fallback provides these workflows.
338340

339341
The cloud agent discovers the `rpi-quick`, `rpi-research`, `rpi-plan`, `rpi-implement`, and `rpi-review` workflows directly from their `SKILL.md` files. The bootstrap also preserves `rpi-challenger`, `rpi-plan-critique`, `rpi-walkthrough`, and every bundled reference and template.
340342

341343
The current immutable commit predates a published hve-core release containing the skill-forward layout. Prefer a released commit on upgrades; when none exists, review the complete upstream commit and tree before changing `RPI_SKILLS_REF`.
342344

343-
Before starting RPI work, verify each required `.github/skills/rpi-*/SKILL.md` exists and its `metadata.github-pinned` value matches `RPI_SKILLS_REF`; otherwise stop with a bootstrap failure.
344-
345-
Use `.copilot-tracking/` for RPI intermediate state rather than conversation memory. Keep task slugs in lower kebab case and write dated artifacts to the phase-specific paths used by the skills:
346-
347-
* Research: `.copilot-tracking/research/YYYY-MM-DD/<task>-research.md`
348-
* Plans: `.copilot-tracking/plans/YYYY-MM-DD/<task>-plan.md`
349-
* Phase details: `.copilot-tracking/details/YYYY-MM-DD/<task>-phase-details.md`
350-
* Implementation: `.copilot-tracking/changes/YYYY-MM-DD/<task>-changes.md`
351-
* Plan critique: `.copilot-tracking/reviews/plans/YYYY-MM-DD/<task>-plan-critique.md`
352-
* Review: `.copilot-tracking/reviews/logs/YYYY-MM-DD/<task>-review.md`
353-
354-
Generated tracking Markdown starts with `<!-- markdownlint-disable-file -->`. Use one stable task ID across artifacts, `Pxx` phase IDs, and `Pxx-Txx` task IDs. Keep tracking paths out of production code, code comments, documentation strings, and commit messages. Update the current phase artifact when gaps remain instead of skipping ahead, and name the next phase and expected artifact path in handoffs.
345+
Before starting RPI work, verify each required `.github/skills/rpi-*/SKILL.md` exists, its `metadata.github-pinned` value matches `RPI_SKILLS_REF`, and `.github/instructions/hve-core/copilot-tracking.instructions.md` exists; otherwise stop with a bootstrap failure. The generated instruction is the source of truth for `.copilot-tracking/` artifact paths, evidence ownership, IDs, formatting, and handoffs.
355346

356347
In cloud-agent PR work, persist each completed RPI phase as a PR comment and maintain an `RPI Artifact Index` in the PR description with the phase comment links and resolved upstream SHA. If PR write tools are unavailable, include the complete phase artifacts in the final response rather than claiming durable persistence.
357348

β€Ž.github/workflows/copilot-setup-steps.ymlβ€Ž

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,3 +150,10 @@ jobs:
150150
--dir .github/skills \
151151
--force
152152
done
153+
154+
tracking_instruction=".github/instructions/hve-core/copilot-tracking.instructions.md"
155+
mkdir -p "$(dirname "$tracking_instruction")"
156+
gh api \
157+
"repos/microsoft/hve-core/contents/.github/instructions/hve-core/copilot-tracking.instructions.md?ref=$RPI_SKILLS_REF" \
158+
--header "Accept: application/vnd.github.raw+json" \
159+
> "$tracking_instruction"

β€Ž.gitignoreβ€Ž

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -465,6 +465,7 @@ venv/
465465
**/out/*
466466
.agent/
467467
.copilot-tracking/
468+
.github/instructions/hve-core/copilot-tracking.instructions.md
468469
.github/skills/rpi-*/
469470

470471
# Environment-specific deployment artifacts

β€Ž.markdownlint-cli2.jsoncβ€Ž

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"**/node_modules/**",
44
".agent/reviews/**",
55
".copilot-tracking/**",
6+
".github/instructions/hve-core/copilot-tracking.instructions.md",
67
".github/skills/rpi-*/**",
78
"venv/**",
89
".venv/**",

β€Ždocs/contributing/architecture.mdβ€Ž

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -387,12 +387,12 @@ HVE-Core artifacts are registered via the extension's `package.json` `contribute
387387

388388
This repository defines project-specific artifacts in `.github/` that extend HVE-Core with domain knowledge:
389389

390-
| Artifact Type | Count | Purpose |
391-
|---------------|-------|----------------------------------------------------------------------------------|
392-
| Agents | 2 | OSMO training manager, dataviewer developer |
393-
| Instructions | 4 | Copilot instructions, dataviewer conventions, documentation style, shell scripts |
394-
| Prompts | 4 | OSMO training submission, LeRobot pipeline, dataviewer workflows |
395-
| Skills | 15 | Seven committed domain skills and eight runtime-provisioned RPI skills |
390+
| Artifact Type | Count | Purpose |
391+
|---------------|-------|------------------------------------------------------------------------------|
392+
| Agents | 2 | OSMO training manager, dataviewer developer |
393+
| Instructions | 5 | Four committed instructions and runtime-provisioned RPI tracking conventions |
394+
| Prompts | 4 | OSMO training submission, LeRobot pipeline, dataviewer workflows |
395+
| Skills | 15 | Seven committed domain skills and eight runtime-provisioned RPI skills |
396396

397397
Project artifacts are auto-discovered by VS Code from the `.github/` directory without explicit registration.
398398

β€Ždocs/reference/copilot-artifacts.mdβ€Ž

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ The cloud-agent setup workflow provisions the RPI skill suite at runtime.
2929
| Instruction | Commit Messages | Conventional Commits format for all commit messages | `.github/instructions/commit-message.instructions.md` |
3030
| Instruction | Dataviewer | Coding standards for dataviewer development | `.github/instructions/dataviewer.instructions.md` |
3131
| Instruction | Docs Style and Conventions | Writing standards for all markdown files | `.github/instructions/docs-style-and-conventions.instructions.md` |
32+
| Instruction | RPI Tracking | Shared RPI working-artifact conventions | `.github/instructions/hve-core/copilot-tracking.instructions.md` |
3233
| Instruction | Shell Scripts | Implementation standards for bash scripts | `.github/instructions/shell-scripts.instructions.md` |
3334
| Prompt | `/chatlog` | Create and maintain conversation logs | `.github/prompts/chatlog.prompt.md` |
3435
| Prompt | `/check-training-status` | Monitor OSMO training job progress | `.github/prompts/check-training-status.prompt.md` |
@@ -139,13 +140,9 @@ discovery (frontmatter only) β†’ instructions (SKILL.md body) β†’ resources
139140

140141
### rpi-* skill suite
141142

142-
The cloud-agent setup workflow uses `gh skill install` to download eight
143-
explicit RPI skill paths from a pinned `microsoft/hve-core` commit into
144-
gitignored `.github/skills/rpi-*/` directories. Each skill is an immediate
145-
child of `.github/skills/`, as required for discovery. Local clones do not
146-
contain these skills unless the setup workflow has provisioned them. Each skill
147-
retains its upstream references and templates, and the GitHub CLI injects the
148-
source commit and tree metadata into its `SKILL.md` front matter.
143+
The cloud-agent setup workflow uses `gh skill install` to download eight explicit RPI skill paths from a pinned `microsoft/hve-core` commit into gitignored `.github/skills/rpi-*/` directories. It also downloads the shared `copilot-tracking.instructions.md` from the same commit into `.github/instructions/hve-core/`.
144+
145+
Each skill is an immediate child of `.github/skills/`, as required for discovery. Local clones do not contain these runtime artifacts unless the setup workflow has provisioned them. Each skill retains its upstream references and templates, and the GitHub CLI injects the source commit and tree metadata into its `SKILL.md` front matter.
149146

150147
| Skill | Purpose |
151148
|---------------------|-----------------------------------------------------|

0 commit comments

Comments
Β (0)