Reflect And Improve 标志

Reflect And Improve

社区
ShaishavMaisuria
reflect-and-improve

反思智能体。其他技能生成工件后立即使用,例如通过 polish-prose 生成的改写稿、rebuttal、摘要、preflight 修正或定制稿;它会根据既定目标、论文的 .paper-memory/profile.yml、相关评分标准和过往的 .paper-memory/lessons.md,批评该输出并判断是否确实有所改进。触发词包括 reflect、self-critique、did this get better、did my edit help、regression check、review my own output、iterate、refine、second pass、sanity-check the rewrite,以及「新版本真的更好吗」。运行有界的 self-refine/Reflexion 循环,防止回归,并通过标准库脚本将持久、去重且带日期的经验追加到 .paper-memory/lessons.md,让工具包随着每篇论文不断完善。反思会增加成本;只有存在可衡量的目标时才值得使用。

Add to TypingMind

概览

发布者ShaishavMaisuria
代码仓库research-paper-lifecycle-skills
技能名称reflect-and-improve
星标数
59
复刻数
22
附带文件
3
许可协议Apache-2.0
链接
  • Markdown 格式的指令

    模型按需加载 SKILL.md 文件,因此只有在请求确实与该技能匹配时才会消耗 Token。

  • 兼容任何大语言模型

    AI 技能采用纯 Markdown,而非特定提供商的代码,因此可搭配 GPT、Claude、Gemini、Grok 或本地模型使用。

  • 3 个附带文件

    模型执行任务时可读取的脚本、模板和参考资料。这些文件为只读文件,绝不会被执行。

  • 开源

    由 ShaishavMaisuria 发布于 GitHub。请在安装前查看技能的源文件。

安装

在 TypingMind 中安装 Reflect And Improve AI 技能,即可搭配任意大语言模型使用;也可以将其放入其他支持读取 SKILL.md 的智能体中。

1

安装到 TypingMind

TypingMind 可直接从 GitHub 文件夹安装技能:读取 SKILL.md,打包资源文件,并将结果保存在本地。

  1. 打开应用,前往“插件 → 技能”。
  2. 选择“从 GitHub 安装”。
  3. 粘贴下方的技能文件夹 URL 并确认。
    https://github.com/ShaishavMaisuria/research-paper-lifecycle-skills/tree/main/skills/reflect-and-improve
  4. 请在每个需要使用该技能的聊天中启用它。
依次选择“插件 → 技能 → 添加技能 → 从 GitHub URL 导入”,然后粘贴文件夹 URL 并点击“继续”。
2

安装到其他智能体

任何支持 Agent Skills 格式的智能体都可以使用此技能,只需将文件夹复制到该智能体的技能目录中。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/ShaishavMaisuria/research-paper-lifecycle-skills.git /tmp/research-paper-lifecycle-skills
mkdir -p .claude/skills
cp -r /tmp/research-paper-lifecycle-skills/skills/reflect-and-improve .claude/skills/reflect-and-improve
复制后,请重启 Claude Code,以加载新技能。

在 TypingMind 中使用此技能

在任意 TypingMind 聊天中启用 Reflect And Improve,后续即可交由模型处理。技能的名称和描述会放在系统提示词中,一旦请求匹配,模型就会自动加载完整指令,无需您手动调用,且在实际使用前不会消耗 Token。

一旦请求与技能匹配,模型就会自动加载 Reflect And Improve。

兼容任何 AI 模型

AI 技能是纯 Markdown 指令,而非特定提供商的代码,因此 Reflect And Improve 不局限于最初适配的模型。只需在 TypingMind 中安装一次,即可搭配 GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 或您自行运行的本地模型使用,全程使用您自己的 API 密钥。

  • 仅在需要时加载

    系统提示词中仅包含技能名称和描述。首次遇到匹配的请求时才会加载完整指令,因此技能未使用时,这些指令不会消耗 Token。

  • 在聊天中切换模型

    技能是指令而非代码,因此切换模型不会导致技能失效,新模型会读取同一个 SKILL.md。

技能指令

这是模型会加载的 SKILL.md 内容。请在安装前阅读,因为技能就是模型将遵循的指令。

Reflect and Improve

A meta-skill that runs after another skill in this toolkit produces an artifact. It asks one question honestly: did the change actually make the paper better, measured against the goal — or did it just make it different? It critiques the new artifact against (a) the goal, (b) the paper's .paper-memory/profile.yml, (c) the rubric that fits the task, and (d) past .paper-memory/lessons.md; iterates within a hard budget; refuses to accept a change that lowers a measurable score; and records what it learned so the next paper starts smarter.

This is a copilot, not a pilot. It proposes; the author decides and edits.

When to use

  • Just after polish-prose, write-rebuttal, write-abstract, preflight-check, tailor-to-venue, draft-related-work, or any skill that emits an artifact, and you want a guarded second pass — "is the new version actually better, or did I introduce a regression?"
  • "Reflect on / critique / self-review this rewrite before I keep it."
  • "Did my edit help?" / "did this get better?" / "should I revert?"
  • To capture a durable lesson ("we keep over-hedging the abstract") so the whole toolkit stops repeating the mistake on this and future papers.

When NOT to use (be honest about cost)

Reflection is an extra LLM pass plus author attention. It only pays off when there is a measurable or rubric-anchored target. Skip it (or keep it to a single quick pass) when:

  • There is no goal to measure against — pure preference edits ("make it sound nicer" with no rubric) reduce to taste; one read is enough.
  • The producing skill already emits a hard score that did not change (e.g. a preflight that was clean before and after). Re-running its checker IS the reflection; do that instead of a narrative critique.
  • The artifact is tiny (a one-line fix). The loop's overhead exceeds its value.

Say this to the user when they ask to reflect on something unmeasurable, then offer the single-pass version.

Inputs

  1. The artifact to critique: the new text/file (and, ideally, the version it replaced, so "better" can be a diff, not a vibe).
  2. The goal: what the producing skill was asked to achieve, in one sentence ("cut the abstract to 200 words without dropping the contribution", "answer R2's soundness concern").
  3. .paper-memory/profile.yml — author/paper positioning. If it does not exist, create it first with paper-profile (or hand-write the minimal fields below). Reflection without positioning gives generic advice.
  4. A measurable target, where one exists:
    • a script score (preflight error count, polish-prose readability/hedge counts, abstract word count vs venue bound, citation-verify failures);
    • or a rubric in references/ (or simulate-reviewers/references/rubrics.md) scored 1–5 before and after.
  5. .paper-memory/lessons.md — read at start so the critique personalizes and does not repeat advice already logged.

The .paper-memory/ convention

A per-project directory in the user's paper working directory (never in this repo). The skill creates it at use time. Tell the user to add .paper-memory/ to their .gitignore unless they want positioning and lessons versioned with the paper. It is local; nothing is uploaded.

  • profile.yml — vertical (systems/theory/applied/empirical/survey/position), contribution_type, target audience & venue tier, risk appetite, writing preferences (link to match-style), constraints. Minimal starter in references/paper-memory-schema.md.
  • lessons.md — accumulated, deduplicated, dated lessons. Other skills (preflight-check, polish-prose, verify-citations, simulate-reviewers) APPEND here when they catch something and READ here at start. Format and hygiene rules in the schema reference; enforced by scripts/reflect_log.py.
  • decisions.md — venue/track/positioning decisions with rationale (written by select-venue / plan-submission; read here for context).

Process

The loop is Reflexion / self-refine, bounded: critique → revise → re-score → keep only if it measurably improved. Cap iterations; stop on no gain.

  1. Establish the baseline — measure first. Before critiquing, capture the current score of the artifact against its target. Pick the cheapest valid measure: re-run the producing skill's checker if it has one (preferred — deterministic), else score the relevant rubric 1–5. Record it:

    python3 scripts/reflect_log.py score --memory .paper-memory \
        --skill polish-prose --metric hedge-count --before 11

    If there is no measurable target, say so, do one qualitative pass, and stop — do not pretend a number exists.

  2. Read memory. Surface recurring lessons so you neither repeat past advice nor re-introduce a known regression:

    python3 scripts/reflect_log.py recurring --memory .paper-memory

    Read profile.yml. A "tighten every sentence" critique is wrong for a position paper that values voice; a "add more hedging" critique is wrong for a high-risk-appetite systems paper. Tailor to the profile.

  3. Critique against the four anchors, concretely and per-finding:

    • Goal — did it do the specific thing asked, fully and only that?
    • Profile — does it fit the vertical, audience, venue tier, voice?
    • Rubric — score the fitting dimensions (soundness, clarity, novelty-framing, responsiveness for rebuttals) 1–5 vs the prior version.
    • Lessons — does it repeat a logged mistake, or fix one? Write each as {what regressed/improved, evidence, minimal fix}.
  4. Decide — the regression guard is non-negotiable. Compute the after score the same way as the baseline and compare:

    python3 scripts/reflect_log.py score --memory .paper-memory \
        --skill polish-prose --metric hedge-count --before 11 --after 6

    The script prints the delta and a verdict. Never accept a change that lowers a measurable score (more preflight errors, worse rubric mean, over the word bound, new citation failures) even if the prose "feels" better — a measurable regression beats a feeling. Outcomes: KEEP (measurably better) / REVERT (measurably worse — recommend the prior version) / TIE (no measurable change — defer to author taste, do not burn another iteration).

  5. Iterate within budget. If KEEP but still short of target and under the iteration cap (default 3 total passes), produce a focused revision addressing the top finding only, then return to step 4. Stop when: the target is met, the cap is hit, or two consecutive passes show no measurable gain (diminishing returns — the honest signal to stop).

  6. Append durable lessons. When the loop surfaces a pattern worth carrying forward, log it — deduplicated and dated:

    python3 scripts/reflect_log.py append --memory .paper-memory \
        --skill polish-prose --scope recurring \
        --issue "abstract over-hedges the contribution" \
        --rec "state the result as a claim once, then qualify in the body"

    --scope this-paper for paper-specific notes, recurring for cross-paper patterns (these are never pruned). The script dedupes on (skill, issue) and stamps the date.

  7. Hygiene. Periodically prune stale this-paper lessons and enforce the cap (recurring lessons are always kept):

    python3 scripts/reflect_log.py prune --memory .paper-memory \
        --keep 50 --stale-days 365

    See references/reflection-loop.md for the patterns this implements and their failure modes (reward hacking, sycophantic self-approval, oscillation), and references/paper-memory-schema.md for the file formats.

Output

  • A critique: per-anchor findings (goal / profile / rubric / lessons), each with evidence and a minimal fix.
  • A KEEP / REVERT / TIE verdict backed by a before→after number, not a vibe. On REVERT, recommend the prior version and explain which measure dropped.
  • Zero or more lessons appended to .paper-memory/lessons.md.
  • An honest statement of confidence and of what reflection could not measure.

Adapt to your discipline

The loop and memory are field-agnostic; only the rubrics and metrics are CS-flavored. Swap in your field's review form for the rubric, your venue's length/format limits for the script metrics, and your citation style for the verify hook. The .paper-memory/ schema does not change.

Guardrails

  • Never accept a measurable regression. A lower score is a REVERT, however good the new version feels. This is the skill's whole point.
  • Reflection is not free. State the cost; skip the loop when there is no measurable target and offer a single pass instead — do not manufacture a metric to justify iterating.
  • Bounded loop. Hard iteration cap; stop on no measurable gain. Never spin.
  • No self-sycophancy. Do not approve your own previous output by default; the baseline measure, not your prior reasoning, is the judge.
  • Never fabricate scores, rubric numbers, or "improvements" — measure or say you could not. Route citation problems to verify-citations, desk-reject format problems to preflight-check.
  • Never submit anything anywhere; never promise acceptance. .paper-memory/ stays local — remind the user to .gitignore it.

附带文件

技能加载后,模型会按需读取这些文件。它们仅作为可读文件提供,绝不会被执行。

常见问题

Reflect And Improve AI 技能有什么作用?

反思智能体。其他技能生成工件后立即使用,例如通过 polish-prose 生成的改写稿、rebuttal、摘要、preflight 修正或定制稿;它会根据既定目标、论文的 .paper-memory/profile.yml、相关评分标准和过往的 .paper-memory/lessons.md,批评该输出并判断是否确实有所改进。触发词包括 reflect、self-critique、did this get better、did my edit help、regression check、review my own output、iterate、refine、second pass、sanity-check the rewrite,以及「新版本真的更好吗」。运行有界的 self-refine/Reflexion 循环,防止回归,并通过标准库脚本将持久、去重且带日期的经验追加到 .paper-memory/lessons.md,让工具包随着每篇论文不断完善。反思会增加成本;只有存在可衡量的目标时才值得使用。

为什么在 TypingMind 中使用 Reflect And Improve?

因为您只需安装一次,就能搭配任何模型使用。Reflect And Improve 采用纯 Markdown 格式,而非特定提供商专用的代码,因此同一技能可用于 GPT-5、Claude、Gemini、Grok 或本地模型。您甚至可以在聊天中途切换模型,而不会影响技能的正常使用。TypingMind 使用您自己的 API 密钥,因此您直接向提供商付费,而不是按席位订阅;您的技能和聊天记录也都保留在您自己的存储空间中。

如何在 TypingMind 中安装 Reflect And Improve?

在 TypingMind 中打开“插件 → 技能 → 从 GitHub 安装”,然后粘贴 https://github.com/ShaishavMaisuria/research-paper-lifecycle-skills/tree/main/skills/reflect-and-improve。TypingMind 会读取其中的 SKILL.md,打包相关文件,并将其安装为技能,供您在各个聊天中按需启用。

哪些 AI 模型可以使用 Reflect And Improve?

您在 TypingMind 中连接的任何模型都可以。AI 技能采用纯 Markdown 指令,而非特定提供商专用的代码,因此 GPT、Claude、Gemini、Grok 和本地模型都能在请求匹配时加载此技能。

Reflect And Improve 可以搭配多少个 AI 模型使用?

数量不限。只要模型支持技能,您就可以将它与 Reflect And Improve 搭配使用。GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 等模型都可以通过您自己的 API 密钥接入 TypingMind。

Reflect And Improve AI 技能免费吗?

是的。ShaishavMaisuria 已在 GitHub 上根据 Apache-2.0 许可证发布了该技能。您只需向自己的 AI 提供商支付所用 Token 的费用。

什么是 AI 技能?

AI 技能是一组可复用的指令,用于教会 AI 模型完成某项特定任务。它遵循开放的 Agent Skills 格式:包含名称和描述的 SKILL.md 文件,以及模型可能需要的脚本、模板或参考文件。模型仅在您的请求与技能匹配时才会读取这些指令,因此已安装的技能在使用前不会产生任何费用。

AI 技能与插件或 MCP 服务器有何不同?

插件或 MCP 服务器为模型提供可调用的新工具,也就是在某处运行并返回结果的代码。AI 技能则为模型提供知识和流程:如何处理任务、遵循哪些步骤,以及怎样的输出才算优质。技能采用纯 Markdown 格式,因此不需要服务器、API 密钥或运行时环境,并且适用于任何模型。

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇