MCP Consumer Repository Shim¶
Use this prompt to generate exactly one repository-scoped Copilot instruction shim for an MCP consumer repository.
Supplied Inputs¶
apply_to_glob: {{apply_to_glob}}primary_skill_resource: {{primary_skill_resource}}shim_title: {{shim_title}}companion_docs_page: {{companion_docs_page}}
Inputs¶
- Required:
- apply_to_glob
- primary_skill_resource
- Optional:
- shim_title
- companion_docs_page
Required References¶
Load only sections relevant to the requested shim:
- Thin shim pattern and scope guidance: Skill Usage Mechanics
- VS Code Copilot MCP resource behavior: Copilot MCP Mechanics
- Authoring workflow and validation checklist: Authoring Guide
- Instruction metadata expectations and examples: Copilot customization skill
Workflow¶
- Validate that apply_to_glob and primary_skill_resource are present.
- Validate that primary_skill_resource uses the
skill://<skill-name>/SKILL.mdform. - If either value is missing or ambiguous, ask exactly one clarifying question before generating output.
- Generate one .instructions.md file content block only.
- Keep the shim concise and deterministic:
- include YAML frontmatter with name, description, and applyTo
- include a primary rule that uses the selected primary_skill_resource first
- include a bounded execution pattern (load primary doc, apply only relevant sections, keep edits minimal)
- Include VS Code/Copilot integration mechanics in the shim body:
- use MCP resource attachment
- inspect
_manifestonly when the task needs supporting material - ask one clarifying question when confidence is low
- If companion_docs_page is provided, include it as a companion docs link line.
- Do not generate additional files, code changes, or batch shim packs.
Output Format¶
Return exactly:
- Suggested file path line under .github/instructions/.
- One fenced markdown block containing the full .instructions.md content.
- A brief note (max 3 lines) describing what the shim routes and why.
Output Template¶
Path: .github/instructions/<slug>.instructions.md
```md
---
name: <shim-title>
description: Route <scope> edits to the Personal MCP <skill-id> resource.
applyTo: '<apply_to_glob>'
---
When editing files matching <apply_to_glob>, use <primary_skill_resource> as the primary guidance source.
Execution pattern:
1. Load the primary skill document first.
2. Apply only sections relevant to the file being edited.
3. Keep edits minimal and aligned with repository conventions.
4. Prefer MCP resource attachment when available in the current chat surface.
5. Read the selected skill's `_manifest` only when supporting material is needed.
6. If confidence is low, ask one clarifying question before editing.
Companion docs page: <optional-relative-doc-link>
```