Skip to content
This repository was archived by the owner on May 20, 2026. It is now read-only.

Move docs/prompts.md to scoped .instructions.md file#4942

Merged
bhavyaus merged 1 commit into
mainfrom
dev/bhavyau/move-prompts-doc-to-instructions
Apr 2, 2026
Merged

Move docs/prompts.md to scoped .instructions.md file#4942
bhavyaus merged 1 commit into
mainfrom
dev/bhavyau/move-prompts-doc-to-instructions

Conversation

@bhavyaus
Copy link
Copy Markdown
Contributor

@bhavyaus bhavyaus commented Apr 2, 2026

Moves the standalone docs/prompts.md into .github/instructions/model-prompts.instructions.md so it auto-loads when editing files in src/extension/prompts/node/agent/**.

Changes

  • Converted standalone doc → scoped instructions file with applyTo: 'src/extension/prompts/node/agent/**'
  • Fixed outdated method names (resolvePromptresolveSystemPrompt, PromptConstructorSystemPrompt)
  • Added resolver interface table documenting all 6 IAgentPrompt methods
  • Added DI example showing multiple resolve methods with config/experiment flags
  • Added resolution order documentation (matchesModel → familyPrefixes → defaults)
  • Restored concrete examples for common model misbehaviors (code blocks instead of edit tools, parallel terminal calls, etc.)
  • Deleted docs/prompts.md

…ns.md

- Converted standalone doc into a scoped instructions file (applyTo: src/extension/prompts/node/agent/**)
- Fixed outdated method names (resolvePrompt -> resolveSystemPrompt, PromptConstructor -> SystemPrompt)
- Added resolver interface table, DI examples, resolution order docs
- Restored concrete examples for common model misbehaviors
- Auto-loads when editing agent prompt files
Copilot AI review requested due to automatic review settings April 2, 2026 18:18
@bhavyaus bhavyaus enabled auto-merge April 2, 2026 18:21
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Moves prompt-authoring documentation into a scoped GitHub Copilot instructions file so guidance auto-loads when editing agent prompt sources under src/extension/prompts/node/agent/**.

Changes:

  • Replaced docs/prompts.md with .github/instructions/model-prompts.instructions.md scoped via applyTo.
  • Updated documentation to current prompt registry API surface (resolveSystemPrompt, SystemPrompt, and the full IAgentPrompt method set).
  • Added documentation for resolver resolution order and DI usage patterns.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
docs/prompts.md Removed the standalone prompt authoring doc (content migrated to scoped instructions).
.github/instructions/model-prompts.instructions.md New scoped instructions for model prompt authoring/registration/testing, intended to auto-load for prompt files.

Comment thread .github/instructions/model-prompts.instructions.md
@bhavyaus bhavyaus added this pull request to the merge queue Apr 2, 2026
Merged via the queue into main with commit 783bf6a Apr 2, 2026
23 checks passed
@bhavyaus bhavyaus deleted the dev/bhavyau/move-prompts-doc-to-instructions branch April 2, 2026 18:57
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants