agentleFS
sequant-iosequant-io/sequant/.claude/skills/reflect/SKILL.md

reflect

Skill1 starsChanged 3 months agoMITView on GitHub

Strategic reflection on workflow effectiveness and continuous improvement

172 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use poteto-help, setup-pstack and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • ianclearySkill

    poteto-help

    Guides users through pstack setup, /poteto-mode, and picking the skill, playbook, or principle for a task. Type /poteto-help with a question.

    Also in 14 projects that use this

  • bnemaSkill

    setup-pstack

    Configure which Pi models pstack uses per role. Detects available provider/model specs and writes pstack's user configuration. Use for /setup-pstack, "configure pstack models", or changing pstack model choices.

    Also in 24 projects that use this

  • eryzerzSkill

    make-bot-ui

    Use when building a custom UI (page, dashboard, buttons) that should wake a Grok Bot over a webhook, when the user must provide a webhook sender key, or when exposing that UI on Tailscale.

    Also in 19 projects that use this

  • ianclearySkill

    principle-explain-the-number

    Apply before you trust, report, or act on a number you measured: a speedup, a regression, a throughput, a latency, or an eval result. Find what limits it, and rule out that it measured something other than the work you think.

    Also in 26 projects that use this

  • jaydubya818Skill

    automate-me

    Use when the user wants working preferences captured in a reusable mode skill.

    Also in 39 projects that use this

  • jaydubya818Skill

    poteto-mode

    Use when non-trivial work should follow the smallest rigorous Jstack workflow.

    Also in 27 projects that use this

  • +6 more from jaydubya818

The file

We split this skill into the rules it gives an agent

7 rules. 0 are common, 6 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 163 edited versions we read keep these.

  • 6

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    When invoked as /reflect, your job is to:

    line 24
  2. Distinctive:

    When called without arguments:

    line 33
  3. Distinctive:

    When called with a focus area:

    line 38
  4. Distinctive:

    Process gap: No established pattern for this scenario

    line 68
  5. Distinctive:

    After completing a major feature

    line 166
  6. Distinctive:

    When workflow feels inefficient

    line 167
  7. Distinctive:

    After onboarding new team members (capture confusion points)

    line 169

“Common” is measured: kept by at least 6 in 10 of the 163 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md
<!-- sequant:local-override -->

Local overrides (read this first). Before following any instruction below, check whether .claude/.local/skills/reflect/overrides.md exists. If it does, read it and treat its contents as authoritative: its instructions take precedence over anything in this skill they conflict with. This is the supported way to tailor /reflect without forking it — overrides.md lives under .claude/.local/, which sequant update and sync never overwrite.

Reflection Agent

You are the "Reflection Agent" for the current repository.

Purpose

When invoked as /reflect, your job is to:

  1. Analyze the recent work session for workflow effectiveness
  2. Identify friction points, inefficiencies, or missing context
  3. Propose targeted improvements to commands, docs, or processes
  4. Balance documentation completeness with actionability (avoid bloat)

Behavior

When called without arguments:

  • Reflect on the current conversation/session
  • Analyze what worked well and what could be improved
  • Auto-detect current workflow phase (planning, implementation, QA)

When called with a focus area:

  • /reflect commands - Focus on slash command effectiveness
  • /reflect docs - Focus on documentation (CLAUDE.md, other docs/)
  • /reflect workflow - Focus on development workflow (includes historical data)
  • /reflect tools - Focus on tool usage patterns
  • /reflect planning - Focus on planning phase (use during/after /spec)
  • /reflect implementation - Focus on implementation phase (use during/after /exec)
  • /reflect qa - Focus on QA/review phase (use during/after /qa)

Reflection Framework

1. Session Analysis

Effectiveness Metrics:

  • How many attempts to complete tasks?
  • Were there repeated searches for the same information?
  • Did I have the right context at the right time?
  • Were there ambiguities that blocked progress?

Friction Points:

  • What information was hard to find?
  • What decisions took multiple iterations?
  • What patterns did I have to discover vs. having documented?
  • Where did I waste time or tokens?

2. Root Cause Analysis

For each friction point, determine:

  • Missing documentation: Information exists but isn't documented
  • Documentation bloat: Information documented but hard to find/use
  • Process gap: No established pattern for this scenario
  • Tool limitation: Current tools don't support this workflow
  • Command gap: Common task lacks dedicated slash command

3. Improvement Proposals

See documentation-tiers.md for the 4-tier system.

For Documentation Changes:

  • What to add: Missing patterns, decisions, or context
  • What to remove: Outdated, redundant, or rarely-used content
  • What to restructure: Information that's hard to find or too verbose
  • Where to put it: Right file, right section, right level of detail

Documentation Balance Principles

Avoid these anti-patterns: ❌ Over-documentation: Every edge case documented exhaustively ❌ Stale documentation: Old information that's no longer accurate ❌ Premature documentation: Documenting patterns before they're stable ❌ Redundant documentation: Same info in multiple places ❌ Example overload: Too many examples that obscure the pattern

Follow these principles: ✅ Just-in-time documentation: Document when pattern stabilizes (2-3 uses) ✅ Progressive disclosure: Brief overview → link to details ✅ Living documentation: Review and prune quarterly ✅ Decision logs: Document why not just what ✅ Searchable patterns: Use consistent keywords for grep/search

Output Structure

Session Summary

  • What was accomplished
  • What went smoothly
  • What caused friction

Effectiveness Analysis

  • Token usage efficiency (did we re-read files unnecessarily?)
  • Context gathering (did we find info quickly?)
  • Decision making (were choices clear or iterative?)
  • Pattern reuse (did we reinvent vs. follow existing patterns?)

Proposed Changes

For each proposal, specify:

  1. Change Type: [Add | Update | Remove | Restructure]
  2. Target: [File path or command name]
  3. Rationale: [Why this change improves workflow]
  4. Content: [Specific text to add/change, or "see draft"]
  5. Priority: [High | Medium | Low]
  6. Risk: [What could go wrong with this change]

Documentation Health Check

CLAUDE.md is an index, not a knowledge store. Durable knowledge belongs in auto-memory, docs/, or the relevant skill; CLAUDE.md holds only what must be loaded into every session (commit rules, hook gotchas, skill-invocation rules). A short CLAUDE.md is a sign the other tiers are doing their job — do not recommend padding it toward some line count. There is no target length.

Review CLAUDE.md relevance:

  • Does every line still apply, and is it still accurate?
  • Anything that only matters in one workflow → move to that skill or docs/
  • Anything that is durable session-to-session context → auto-memory
  • Redundancy check (same rule stated here and in a skill)
  • Extract candidates (sections >50 lines — CLAUDE.md should rarely have any)
  • Recommendation: [Prune | Restructure | Extract | Good as-is]

Also check the memory tier, which carries most of this repo's knowledge:

  • Entries citing script flags, CLI behavior, or file:line rot silently — spot-check any entry you relied on this session against current code and fix it. A wrong memory is worse than a missing one.
  • Index (MEMORY.md) one-liners still accurate?

Action Items

Generate a checklist. Prefer concrete targets — a file, a memory entry, a command — over intentions:

  • Correct/remove a stale memory entry: [name] (verify against current code first)
  • Add a memory entry for: [durable lesson]
  • Update skill: [name] — remember all three skill dirs
  • Update docs: [path] (check main README + marketplace README + docs/)
  • Add a pointer to CLAUDE.md: [one line + link] — only if needed most sessions
  • Remove outdated content: [location]

Workflow Analytics

For /reflect workflow, analyze:

  • Log files in /tmp/claude-issue-*.log
  • Git history and commit patterns
  • Issue comments and PR history

See phase-reflection.md for phase-specific guidance.

Reflection Cadence

Suggested usage:

  • After completing a major feature
  • When workflow feels inefficient
  • Monthly for general health check
  • After onboarding new team members (capture confusion points)

Meta-Reflection

At the end of reflection, ask:

  • Is this reflection session providing value?
  • Are the proposed changes specific enough to act on?
  • Did I identify root causes or just symptoms?
  • Will these changes be maintainable long-term?
  • Am I in the right workflow phase for this reflection focus?

Output Verification

Before responding, verify your output includes ALL of these:

  • Session Summary - What was accomplished, what went well, friction points
  • Effectiveness Analysis - Token efficiency, context gathering, pattern reuse
  • Proposed Changes - Specific changes with target files and rationale
  • Documentation Health - CLAUDE.md relevance/accuracy (not length) + memory-tier rot check
  • Action Items - Checklist of concrete next steps

DO NOT respond until all items are verified.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.