Logo van Reflect And Improve

Reflect And Improve

Community
ShaishavMaisuria
reflect-and-improve

De reflectie-agent. Gebruik deze direct nadat een andere skill een artefact heeft gemaakt, zoals een herschrijving met polish-prose, een rebuttal, een abstract, een preflight-fix of een aangepaste versie. De agent beoordeelt dat resultaat aan de hand van het opgegeven doel, het bestand .paper-memory/profile.yml van de paper, de relevante beoordelingscriteria en eerdere lessen in .paper-memory/lessons.md, en bepaalt vervolgens of het resultaat echt beter is. Triggers zijn onder meer 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 en "is the new version actually better". Voert een begrensde self-refine-/Reflexion-loop uit, voorkomt regressies en voegt blijvende, ontdubbelde en gedateerde lessen toe aan .paper-memory/lessons.md via een stdlib-script, zodat de toolkit met elke paper beter wordt. Reflectie kost extra tijd en moeite; het loont alleen als er een meetbaar doel is.

Add to TypingMind

Overzicht

UitgeverShaishavMaisuria
Repositoryresearch-paper-lifecycle-skills
Skillnaamreflect-and-improve
Sterren
59
Forks
22
Meegeleverde bestanden
3
LicentieApache-2.0
Links
  • Instructies in Markdown

    Het model laadt het bestand SKILL.md alleen als dat nodig is. Dat kost dus alleen tokens als een verzoek daadwerkelijk bij de skill past.

  • Werkt met elk LLM

    AI-skills bestaan uit instructies in gewone Markdown, niet uit aanbiederspecifieke code. Daardoor werken ze met GPT, Claude, Gemini, Grok of een lokaal model.

  • Meegeleverde bestanden: 3

    Scripts, sjablonen en referentiemateriaal die het model tijdens het werken kan lezen. De bestanden kunnen alleen worden gelezen en worden nooit uitgevoerd.

  • Open source

    Gepubliceerd door ShaishavMaisuria op GitHub. Bekijk de bronbestanden voordat je de skill installeert.

Installatie

Installeer de AI-skill Reflect And Improve in TypingMind om deze met elk LLM te gebruiken, of voeg de skill toe aan een andere agent die SKILL.md kan lezen.

1

Installeren in TypingMind

TypingMind installeert een skill rechtstreeks vanuit de GitHub-map. De app leest SKILL.md, bundelt de bijbehorende bestanden en slaat het resultaat lokaal op.

  1. Open de app en ga naar Plug-ins → Skills.
  2. Kies "Installeren via GitHub".
  3. Plak de onderstaande URL van de skillmap en bevestig.
    https://github.com/ShaishavMaisuria/research-paper-lifecycle-skills/tree/main/skills/reflect-and-improve
  4. Schakel de skill in voor elke chat waarin je de skill wilt kunnen gebruiken.
Plug-ins → Skills → Skill toevoegen → Via GitHub-URL. Plak vervolgens de map-URL en druk op Doorgaan.
2

Installeren in een andere agent

Elke agent die het Agent Skills-formaat kan lezen, kan deze skill gebruiken — kopieer de map naar de skillmap van die agent.

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
Start Claude Code na het kopiëren opnieuw op, zodat de nieuwe skill wordt herkend.

Gebruik deze skill in TypingMind

Schakel Reflect And Improve in voor een chat naar keuze in TypingMind en het model doet de rest. De naam en beschrijving staan in de systeemprompt. Zodra een verzoek bij de skill past, laadt het model zelf de volledige instructies. Je hoeft de skill nooit handmatig aan te roepen. Pas als het model de skill daadwerkelijk gebruikt, kost dat tokens.

Het model laadt Reflect And Improve automatisch zodra een verzoek erbij past.

Werkt met elk AI-model

AI-skills zijn gewone Markdown-instructies in plaats van aanbiederspecifieke code. Daardoor is Reflect And Improve niet gebonden aan het model waarvoor de skill is geschreven. Installeer de skill één keer in TypingMind en gebruik deze met GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama of een lokaal model dat je zelf draait — allemaal met je eigen API-sleutels.

  • Alleen geladen wanneer nodig

    De systeemprompt bevat alleen de naam en beschrijving. De instructies worden bij het eerste bijpassende verzoek opgehaald, dus een ongebruikte skill kost niets.

  • Wissel van model tijdens een chat

    Omdat de skill uit instructies bestaat en niet uit code, blijft deze werken als je van model wisselt — het volgende model leest hetzelfde SKILL.md-bestand.

Skillinstructies

Dit is de inhoud van SKILL.md die het model laadt. Lees deze vóór de installatie — een skill bestaat uit instructies die je model zal volgen.

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.

Meegeleverde bestanden

Zolang de skill geladen is, leest het model deze bestanden als dat nodig is. Het model kan ze alleen lezen; ze worden nooit uitgevoerd.

Veelgestelde vragen

Wat doet de AI-skill Reflect And Improve?

De reflectie-agent. Gebruik deze direct nadat een andere skill een artefact heeft gemaakt, zoals een herschrijving met polish-prose, een rebuttal, een abstract, een preflight-fix of een aangepaste versie. De agent beoordeelt dat resultaat aan de hand van het opgegeven doel, het bestand .paper-memory/profile.yml van de paper, de relevante beoordelingscriteria en eerdere lessen in .paper-memory/lessons.md, en bepaalt vervolgens of het resultaat echt beter is. Triggers zijn onder meer reflect, self-critique, did this get better, did my edit help, regression check, review my own output, iterate...

Waarom Reflect And Improve gebruiken in TypingMind?

Omdat je deze skill één keer installeert en met elk model kunt gebruiken. Reflect And Improve bestaat uit gewone Markdown in plaats van aanbiederspecifieke code. Dezelfde skill werkt dus met GPT-5, Claude, Gemini, Grok of een lokaal model. Ook als je midden in een chat van model wisselt, blijft de skill werken. TypingMind werkt met je eigen API-sleutels, dus je betaalt aanbieders rechtstreeks in plaats van een abonnement per gebruikersplek af te sluiten. Je skills en chats blijven in je eigen opslag.

Hoe installeer ik Reflect And Improve in TypingMind?

Open Plug-ins → Skills → Installeren vanaf GitHub in TypingMind en plak https://github.com/ShaishavMaisuria/research-paper-lifecycle-skills/tree/main/skills/reflect-and-improve. TypingMind leest het bestand SKILL.md, bundelt de bijbehorende bestanden en installeert het geheel als een skill die je per chat kunt inschakelen.

Welke AI-modellen kunnen Reflect And Improve gebruiken?

Elk model dat je in TypingMind koppelt. AI-skills bestaan uit gewone Markdown-instructies in plaats van aanbiederspecifieke code. GPT, Claude, Gemini, Grok en lokale modellen kunnen deze skill dus allemaal laden wanneer een verzoek erbij past.

Hoeveel AI-modellen kan ik met Reflect And Improve gebruiken?

Zoveel als je wilt. Je kunt Reflect And Improve gebruiken met elk model dat skills ondersteunt, zoals GPT, Claude, Gemini, Grok, DeepSeek, Mistral of Llama. Allemaal in TypingMind met je eigen API-sleutels.

Is de AI-skill Reflect And Improve gratis?

Ja. Deze skill is door ShaishavMaisuria op GitHub gepubliceerd onder de licentie Apache-2.0. Je betaalt alleen je eigen AI-aanbieder voor de tokens die je gebruikt.

Wat zijn AI-skills?

Een AI-skill is een herbruikbare bundel instructies die een AI-model leert hoe het één specifieke taak moet uitvoeren. De skill volgt het open Agent Skills-formaat: het bestand SKILL.md bevat de naam en beschrijving van de skill. Daarnaast kan de skill scripts, sjablonen of referentiebestanden bevatten die het model nodig heeft. Het model leest de instructies alleen als je verzoek bij de skill past. Een geïnstalleerde skill kost dus niets zolang deze niet wordt gebruikt.

Waarin verschillen AI-skills van plug-ins of MCP-servers?

Een plug-in of MCP-server geeft een model nieuwe tools om aan te roepen: code die ergens wordt uitgevoerd en een resultaat teruggeeft. Een AI-skill geeft het model juist kennis en een werkwijze: hoe het een taak moet aanpakken, welke stappen het moet volgen en hoe goede uitvoer eruitziet. Skills bestaan uit gewone Markdown en hebben dus geen server, API-sleutel of runtime nodig. Ze werken met elk model.

Bekijk alles

Maak nu je eigen AI-werkruimte

Schrijf je in voor onze nieuwsbrief en blijf op de hoogte van nieuwe functies en toekomstige weggeefacties 👇