跳到正文
Skillpedia
智能体15k · #10993

reflect

它能做什么

该技能会回顾当前的对话,找出值得保留的经验教训。适合希望技能能够从真实会话中不断改进的人。

适用场景

  • ✓当一段聊天产生了值得留到下次使用的有用经验的时候。
  • ✓当智能体犯了一个本应由现有技能防止的错误的时候。
  • ✓当你希望把会话中学到的内容更新到你的技能中的时候。

技能链接

https://github.com/cursor/plugins/blob/main/harness/pstack/claude-code/skills/reflect/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/cursor/plugins/blob/main/harness/pstack/claude-code/skills/reflect/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“请回顾这段对话,并更新所有需要我们所发现的经验教训的技能。”

每周 5 个新技能,1 分钟读完。

工作原理

智能体会找到当前聊天的记录,并让几位审阅者同时检查它。然后,他们的发现会与你现有技能中具体的修改对应起来。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Reflect

In Claude Code, read the Claude Code adapter once per session before you follow this skill. It maps the Cursor names in pstack skills to Claude Code.

Mine the current conversation for durable learnings, then route them into skill edits.

Invoke when the user says "reflect" or "/reflect". Skip when the conversation is trivial, off-topic, or already covered by an existing skill the parent followed correctly. One-offs are not learnings.

1. Locate the active transcript

Before fanning out, find this conversation's transcript in the agent-transcripts/ directory the system prompt names. Do not glob across ~/.cursor/projects/*/. That crosses workspace boundaries and reads private chats from unrelated projects.

ls -t <agent-transcripts>/*.jsonl <agent-transcripts>/*/*.jsonl <agent-transcripts>/*/subagents/*.jsonl 2>/dev/null | head -10

That covers the legacy flat (<id>.jsonl), current nested (<id>/<id>.jsonl), and subagent (<parent>/subagents/<child>.jsonl) layouts. For each candidate, read the first JSONL line. Take the file whose message.content[0].text contains the conversation's opening user prompt. If none matches, pass a tight digest of the session instead.

2. Spawn three reviewers in parallel

One message, three Task calls, subagent_type: generalPurpose, agent mode (readonly: false). Reviewers need MCP access to look up the tickets, chat threads, and observability traces the transcript references, and readonly strips MCPs.

Each reviewer and the synthesizer name a role line in the pstack-models.mdc rule and a default. Set model to that line's value, or to the default if the rule or the line is missing. Leave model unset when the value is auto or inherit-parent. If the Task tool rejects a slug, use the default and say so. If it rejects the default, use the closest valid slug of the same family from its error message. Pick each subagent's reasoning level and fast or standard speed for the job, per the Subagents section of the poteto-mode skill.

Lens Role line Default model Prompt template
Judgment reflect judgment, divergent, synthesizer claude-opus-5-5-xhigh references/judgment-reviewer.md
Tooling reflect tooling grok-4.7-xhigh-fast references/tooling-reviewer.md
Divergent reflect judgment, divergent, synthesizer claude-opus-5-5-xhigh references/divergent-reviewer.md

Pass each template verbatim, substituting the transcript path or digest where marked. Reviewers return findings in the Task response body.

3. Synthesize

One Task call, subagent_type: generalPurpose, model from the reflect judgment, divergent, synthesizer line (default claude-opus-5-5-xhigh), agent mode (readonly: false). It spot-verifies citations through MCP, and readonly strips MCPs. Pass references/synthesizer.md verbatim, with each reviewer's full output inlined where marked. It returns an Accepted / Rejected / Backlog list.

4. Structural enforcement check

Move any Accepted item that a lint rule, script, metadata flag, or runtime check would enforce more reliably to Backlog. See the encode-lessons-in-structure principle skill.

5. Apply

Present the synthesizer's full Accepted / Rejected / Backlog output and wait for explicit approval before applying any Accepted edit. The user picks the subset and may redirect routings. Skill changes affect every future agent in the org. Do not auto-apply.

File each Backlog item to your team's devex or backlog tracker without waiting. Only the Accepted list waits for approval.

Never edit a skill under plugins/cache/. Before approval, show its destination, .cursor/skills/<skill>/ or ~/.cursor/skills/<skill>/. After approval, copy the skill folder there and edit the copy. Never open a PR or push.

Follow each approved row's Routing exactly:

  • Trivial existing-skill edit (a one-line bullet, a tightened sentence, a stale fact corrected): the parent does it directly.
  • Substantive existing-skill edit (a new section, a new pattern table, more than ~10 lines): hand to Cursor's built-in create-skill skill and run its draft / test / iterate loop.
  • tune description: <skill path> (the skill exists but didn't trigger when it should have): hand to create-skill and run its description-optimization loop.
  • new skill via create-skill: <kebab-name>: hand creation to create-skill. Do not invent the shape
常见问题

哪些经验值得保存?

只有持久的经验才算数。一次性的细节和琐碎的聊天会被跳过。

它能对跑题的聊天进行反思吗?

不能。该技能会跳过琐碎的、跑题的或已被现有技能涵盖的对话。

它使用多少位审阅者?

同时运行三轮审阅,然后合并它们的结果。

详情

作者的原始描述

Spawn three parallel review subagents over the active transcript, surface learnings, and route each to a concrete edit on an existing skill. Use when the user says reflect.

repo: cursor/plugins

热度

GitHub 星标
15k
排名
#10993
许可证
—
更新时间
2026/10/31

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能