feedback-learning

作者: microsoft

分類並記錄明確的糾正性回饋,而不將技能或指令變成只能附加的知識堆疊。

npx skills add https://github.com/microsoft/vscode --skill feedback-learning

Feedback learning

Use this skill when a user explicitly corrects an implementation or design approach, rejects a pattern, or asks the agent to learn from feedback, except when the user invokes the literal learn! trigger.

Literal learn! requests are governed exclusively by .github/instructions/learnings.instructions.md and are outside this skill's scope. Do not replace or reinterpret that instruction.

Goal

Preserve reusable knowledge in the smallest authoritative artifact. A correction is not automatically a permanent rule.

Workflow

  1. Identify the correction

    • What was wrong?
    • Why was it wrong?
    • What approach did the user prefer?
    • Which paths or subsystem does it affect?
  2. Search before writing

    • Check applicable instructions, skills, design documents, tests, and scoped learning files.
    • Update an existing rule instead of adding a duplicate.
  3. Classify the feedback

    Feedback kindDestination
    Task-specific preference or one-off adjustmentDo not persist
    Concrete behavior that must not regressRegression test
    Stable subsystem architecture or product invariantRelevant design/specification document
    Universal repository ruleApplicable instruction file
    Reusable but not yet mature or proven guidance.github/learnings/<area>.md
    Tool-driven workflowRelevant skill
  4. Generalize carefully

    • Preserve the principle, not the incident chronology.
    • Do not include temporary symbol names, line numbers, or implementation details unless they define the durable contract.
    • Do not turn a single rejected implementation into a universal prohibition without broader evidence.
  5. Record once

    • Design documents and tests are authoritative.
    • A learning inbox entry is temporary. When promoted, remove the inbox entry in the same change.
    • Never copy the same rule into a skill, instruction, and design document.
    • Before adding an inbox entry, compact the target file using the maintenance rules below.
  6. Validate

    • Confirm the destination applies to the affected path.
    • Check links and remove superseded or contradictory guidance.

Learning inbox format

Create or update .github/learnings/<area>.md using:

# Area learning inbox

Last reviewed: YYYY-MM-DD

## Short topic

- **Scope:** `affected/path/**`
- **Learning:** Generalized guidance in one or two sentences.
- **Evidence:** Why this is reusable beyond the current task.
- **Disposition:** Candidate for `<design document, instruction, skill, or test>`.

Keep entries concise. Each area inbox is limited to ten topics and 8 KB. If a new entry would exceed either limit, promote, merge, or remove existing entries before deciding whether the new feedback deserves persistence.

Reading learnings

Do not inject learning inboxes into every task. Search the relevant file's headings and Scope fields first, then read only matching entries. Learning inboxes supplement source code, tests, and design documents; they are not a prerequisite for unrelated work and are not authoritative over them.

Compaction and garbage collection

Compact an inbox before every write. Also perform a full review when an inbox is at either limit or its Last reviewed date is more than 90 days old when read. During review:

  • promote stable architectural guidance into the owning specification;
  • encode concrete behavior in tests;
  • merge overlapping entries into one general principle;
  • remove obsolete, contradicted, already-promoted, or weakly supported entries;
  • update Last reviewed after checking every retained entry against the current source and authoritative documentation.

An inbox may shrink to zero entries. Do not retain a learning merely because it might be useful someday.

來自 microsoft 的更多技能

oss-growth
microsoft
開源增長駭客角色
agent-framework-azure-ai-py
microsoft
使用Microsoft Agent Framework Python SDK(agent-framework-azure-ai)构建Azure AI Foundry代理。适用于使用AzureAIAgentsProvider创建持久化代理、使用托管工具(代码解释器、文件搜索、网络搜索)、集成MCP服务器、管理对话线程或实现流式响应。涵盖函数工具、结构化输出和多工具代理。
development
airunway-aks-setup
microsoft
在AKS上設定AI Runway——從裸叢集到執行模型。涵蓋叢集驗證、控制器安裝、GPU評估、供應商設定及首次部署。時機:「設定AI Runway」、「上線AKS叢集」、「安裝AI Runway」、「airunway設定」、「部署模型至AKS」、「在AKS上進行GPU推論」、「在AKS上設定KAITO」、「在AKS上執行LLM」、「在AKS上使用vLLM」、「在AKS上設定模型服務」、「AI Runway控制器」。
devops
appinsights-instrumentation
microsoft
使用Azure Application Insights檢測Web應用程式的指南。提供遙測模式、SDK設定與組態參考。適用時機:如何檢測應用程式、App Insights SDK、遙測模式、什麼是App Insights、Application Insights指南、檢測範例、APM最佳實踐。
devops
applicationinsights-web-ts
microsoft
使用Application Insights JavaScript SDK(@microsoft/applicationinsights-web)為瀏覽器/Web應用程式進行檢測。適用於真實使用者監控(RUM)——頁面檢視、點擊、AJAX/fetch依賴、例外、自訂事件,以及與後端OpenTelemetry追蹤關聯的瀏覽器端GenAI代理追蹤。涵蓋SDK載入器指令碼與npm設定、框架擴充(React、React Native、Angular)、點擊分析、遙測初始化器,以及從瀏覽器發出的代理/工具/模型span的OTel GenAI語意慣例。
devops
azure-ai-anomalydetector-java
microsoft
使用適用於 Java 的 Azure AI 異常偵測器 SDK 建置異常偵測應用程式。在實作單變量/多變量異常偵測、時間序列分析或 AI 驅動監控時使用。
development
azure-ai-language-conversations-py
microsoft
使用 azure-ai-language-conversations Python SDK 實作對話語言理解(CLU)。當使用 ConversationAnalysisClient 分析對話意圖與實體、建置 NLP 功能,或將語言理解整合至應用程式時使用。
development
azure-ai-ml-py
microsoft
Azure Machine Learning SDK v2 for Python。用於機器學習工作區、作業、模型、資料集、計算資源與管線。 觸發詞:「azure-ai-ml」、「MLClient」、「workspace」、「model registry」、「training jobs」、「datasets」。
development