跳到正文
cccskills
Microsoft 官方免费在 GitHub 公开

reflect

Learning capture system that extracts HIGH/MED/LOW confidence patterns from conversations to prevent repeating mistakes. Use after user corrections ("no", "wrong"), praise ("perfect", "exactly"), or when discovering edge cases. Complements .squad/agents/{agent}/history.md and .squad/decisions.md.

中文简介正在准备中。当前显示原文说明。

查看安装方法

包含的文件(1)

  • SKILL.md8.6 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Reflect Skill

Critical learning capture system for Squad. Prevents repeating mistakes and preserves successful patterns across sessions.

Analyze conversations and propose improvements to squad knowledge based on what worked, what didn't, and edge cases discovered. Every correction is a learning opportunity.


Integration with Squad Architecture

Reflect complements existing Squad knowledge systems:

  1. Governed runtime memory — Durable observations and decisions persisted through configured state tools
  2. Tracked governing source — Coordinator prompts, skills, and other behavior-defining files changed through focused pull requests
  3. reflect skill — Identifies learnings that may warrant either runtime memory or an approved tracked behavior change

Workflow:

  • Use reflect during work to capture learnings
  • At session end, review captured learnings
  • Persist evidence through governed runtime memory when available
  • Promote accepted behavior changes through the accountable specialist as tracked source changes in a focused PR
  • Report adjacent improvements separately; do not expand the current scope without explicit user approval

Triggers

🔴 HIGH Priority (Invoke Immediately)

TriggerExampleWhy Critical
User correction"no", "wrong", "not like that", "never do"Captures mistakes to prevent repetition
Architectural insight"you removed that without understanding why"Documents design decisions (Chesterton's Fence)
Immediate fixes"debug", "root cause", "fix all"Learns from errors in real-time

🟡 MEDIUM Priority (Invoke After Multiple)

TriggerExampleWhy Important
User praise"perfect", "exactly", "great"Reinforces successful patterns
Tool preferences"use X instead of Y", "prefer"Builds workflow preferences
Edge cases"what if X happens?", "don't forget", "ensure"Captures scenarios to handle

🟢 LOW Priority (Invoke at Session End)

TriggerExampleWhy Useful
Repeated patternsFrequent use of specific commands/toolsIdentifies workflow preferences
Session endAfter complex workConsolidates all session learnings

Process

Phase 1: Identify Learning Target

Determine what knowledge system should be updated:

  1. Observation or preference → Governed runtime memory, when configured
  2. Accepted team-wide behavior change → The accountable tracked instruction or skill source, through a focused PR
  3. Adjacent improvement → Report separately and require explicit user approval before adding it to scope

Phase 2: Analyze Conversation

Scan for learning signals with confidence levels:

HIGH Confidence: Corrections

User actively steered or corrected output.

Detection patterns:

  • Explicit rejection: "no", "not like that", "that's wrong"
  • Strong directives: "never do", "always do", "don't ever"
  • User provided alternative implementation

Example:

User: "No, use the azure-devops MCP tool instead of raw API calls"
→ [HIGH] + Add constraint: "Prefer azure-devops MCP tools over REST API"

MEDIUM Confidence: Success Patterns

Output was accepted or praised.

Detection patterns:

  • Explicit praise: "perfect", "great", "yes", "exactly"
  • User built on output without modification
  • Output was committed without changes

Example:

User: "Perfect, that's exactly what I needed"
→ [MED] + Add preference: "Include usage examples in documentation"

MEDIUM Confidence: Edge Cases

Scenarios not anticipated.

Detection patterns:

  • Questions not answered
  • Workarounds user had to apply
  • Error handling gaps discovered

LOW Confidence: Preferences

Accumulated patterns over time.


Phase 3: Propose Learnings

Present findings:

┌─────────────────────────────────────────────────────────────┐
│ REFLECTION: {target (agent/decision/skill)}                  │
├─────────────────────────────────────────────────────────────┤
│                                                             │
│ [HIGH] + Add constraint: "{specific constraint}"            │
│   Source: "{quoted user correction}"                        │
│   Target: tracked governing source via focused PR            │
│                                                             │
│ [MED]  + Add preference: "{specific preference}"            │
│   Source: "{evidence from conversation}"                    │
│   Target: governed runtime memory                            │
│                                                             │
│ [LOW]  ~ Note for review: "{observation}"                   │
│   Source: "{pattern observed}"                              │
│   Target: report only; no persistence                        │
│                                                             │
├─────────────────────────────────────────────────────────────┤
│ Apply changes? [Y/n/edit]                                   │
└─────────────────────────────────────────────────────────────┘

Confidence Threshold:

ThresholdAction
≥1 HIGH signalAlways propose (user explicitly corrected)
≥2 MED signalsPropose (sufficient pattern)
≥3 LOW signalsPropose (accumulated evidence)
1-2 LOW onlySkip (insufficient evidence)

Phase 4: Persist Learnings

ALWAYS show changes before applying.

After user approval:

  1. For Runtime Memory:

    • Use the configured governed memory or state tool.
    • If no runtime persistence tool is available, report the learning without claiming it was saved.
  2. For Behavioral Changes:

    • Route the accountable specialist to update the minimum tracked governing source.
    • Validate the change and open a focused PR.
  3. Never Use Throwaway Proposal Files:

    • Do not create local or gitignored Markdown proposals, including .squad/decisions/inbox/*.md, for reflection or directive capture.
    • Runtime memory may preserve context, but it does not replace the tracked source change required to alter behavior.

Usage Examples

Example 1: User Correction

Conversation:

Agent: "I'll use grep to search the repository"
User: "No, use the code search tools first, grep is too slow"

Reflection Output:

[HIGH] + Add constraint: "Use code intelligence tools before grep"
  Source: "No, use the code search tools first, grep is too slow"
  Target: accountable tracked instruction via focused PR; governed runtime
          memory for context only

Example 2: Success Pattern

Conversation:

Agent: [Creates PR with detailed description and test plan]
User: "Perfect! This is exactly the format I want for all PRs"

Reflection Output:

[MED] + Add preference: "Include test plan in PR descriptions"
  Source: User praised detailed PR format
  Target: governed runtime memory; if adopted as team behavior, update the
          accountable tracked instruction in a focused PR

When to Use

✅ Use reflect when:

  • User says "no", "wrong", "not like that" (HIGH priority)
  • User says "perfect", "exactly", "great" (MED priority)
  • You discover edge cases or gaps
  • Complex work session with multiple learnings
  • At end of sprint/milestone to consolidate patterns

❌ Don't use reflect when:

  • Simple one-off questions with no pattern
  • User is just exploring ideas (no concrete decisions)
  • Learning is already captured in history.md/decisions.md

See Also

  • .squad/decisions.md — Runtime-backed team decisions
  • .github/agents/squad.agent.md — Coordinator behavior
  • .squad/routing.md — Work assignment patterns

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

agent-collaboration

Microsoft 官方免费

Standard collaboration patterns for all squad agents — worktree awareness, decisions, cross-agent communication

中文简介正在准备中。当前显示原文说明。

microsoft/waza14242026年10月21日 更新

azd-publish

Microsoft 官方免费

Prepare and publish a new version of the waza azd extension. USE FOR: "publish extension", "release new version", "bump version", "prepare release", "update changelog", "azd publish", "new release", "version bump", "cut a release". DO NOT USE FOR: running evals (use waza), writing skills (use skill-authoring), CI/CD pipeline changes (edit workflow files directly).

中文简介正在准备中。当前显示原文说明。

microsoft/waza14242026年10月21日 更新

code-explainer

Microsoft 官方免费

Explains code snippets in plain English, breaking down what the code does step by step. Perfect for learning, code reviews, or documentation.

中文简介正在准备中。当前显示原文说明。

microsoft/waza14242026年10月21日 更新

code-explainer

Microsoft 官方免费

**UTILITY SKILL** - Explain code snippets, functions, and algorithms in plain language. USE FOR: explain code, what does this code do, break down this function, help me understand this, walk through this algorithm, clarify this logic, explain this snippet, describe what happens here. DO NOT USE FOR: writing new code (use code generation), fixing bugs (use debugging), refactoring (use refactoring skills), code review with action items. INVOKES: file reading tools to access code, language detection for tailored explanations. FOR SINGLE OPERATIONS: If the user just needs to see file contents, use file reading tools directly.

中文简介正在准备中。当前显示原文说明。

microsoft/waza14242026年10月21日 更新

coordinator-init-mode

Microsoft 官方免费

The complete two-phase Init Mode protocol the Squad coordinator runs when no team exists yet in the current repo. Phase 1 = propose the team (no files created, wait for user confirm). Phase 2 = create .squad/ scaffolding, casting state, .gitattributes for merge drivers, and the always-on built-ins (Scribe, Ralph, Rai, Fact Checker). Loaded on demand when the coordinator detects no .squad/team.md exists.

中文简介正在准备中。当前显示原文说明。

microsoft/waza14242026年10月21日 更新

coordinator-response-mode

Microsoft 官方免费

Selecting WHO handles work is the Routing table; selecting HOW they handle it (Direct, Lightweight, Standard, Full) is Response Mode. This skill contains the complete decision table, exemplar prompts for each mode, the Lightweight spawn template, and the upgrade rules. Squad coordinator loads this on demand once routing has identified the agent — to pick the right ceremony level for the task.

中文简介正在准备中。当前显示原文说明。

microsoft/waza14242026年10月21日 更新

查看 microsoft 的全部技能

报告此技能的问题