github / github/copilot-cli

Add support to prompts

未關閉
#4,869 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

triage
主要語言
Shell
星號
11.2k
分支
1.9k
平均合併
14 小時 16 分鐘
30 天內合併 PR
6

描述

Describe the feature or problem you'd like to solve

Add supports for reusable prompts stored as .github/prompts/myprompt.prompt.md

Proposed solution

You currently can just reference them with @someprompt, but they are not pasted in the editor, they are just sent as-is.
Instead I need to insert a prompt, read it and eventually modify it depending on the use-case.
The current usage is a sort of "black box" which sounds good for skills and agents, but definitely not for prompts.

Example prompts or workflows

No response

Additional context

No response

貢獻指南

開啟貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

研究方向

首先追蹤 @someprompt 參照在 Copilot CLI 中的處理方式,以及如何探索 .github/prompts/*.prompt.md 檔案。定義將提示內容插入編輯器時的行為,包括允許在使用前進行編輯;當可重複使用的提示不再只是原樣傳送,且相關測試涵蓋該工作流程時,這項工作就完成了。

由索引模型根據 Issue 內容生成。

評估

技術堆疊
shell
領域
cli
Issue 類型
功能
難度
4/5
預估耗時
3-5 天
活躍度
活躍
描述清晰度
基本清楚
新手友好度
48/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。