AGENT SKILL

reflect

Reflect on the conversation and update the brain. Use when a mistake is made, a failure occurs, a user corrects you, a user points out a mistake, a user provides steering, negative code review results are provided, a workaround is discovered, a code review reveals a gap in understanding, or when wrapping up. Review may conclude no write is needed. Use when the user says "reflect", "remember this".

License 许可
MIT
所属仓库
japurcell/skills
最近更新
2026-11-11
Stars
★ 0
Forks
0

01 前言 Front Matter

name
reflect
description
Reflect on the conversation and update the brain. Use when a mistake is made, a failure occurs, a user corrects you, a user points out a mistake, a user provides steering, negative code review results are provided, a workaround is discovered, a code review reveals a gap in understanding, or when wrapping up. Review may conclude no write is needed. Use when the user says "reflect", "remember this".

03 SKILL.md 正文

Reflect

Review the conversation and persist learnings - to brain/, to skill files, or as structural enforcement.

Process

Track the review in the active plan when one exists; otherwise use the available planning tools or a short checklist.

  1. Scan the conversation for:
    • Mistakes made and corrections received
    • User preferences and workflow patterns
    • Codebase knowledge gained (architecture, gotchas, patterns)
    • Tool/library quirks discovered
    • Decisions made and their rationale
    • Friction in skill execution, orchestration, or delegation
    • Repeated manual steps that could be automated or encoded
  2. Identify lessons that will matter in a future session. If none qualify, finish here.
  3. Route each remaining learning to the appropriate destination below. Before a brain write, read brain/index.md and the relevant topic notes. Write only what those notes do not already cover.
  4. Reconcile navigation using the brain skill after a brain write. Hooks own the root inventory.

Routing

Not everything belongs in the brain. Route each learning to where it will have the most impact.

Structural enforcement check

Before routing a learning to brain/, ask: can this be a lint rule, script, metadata flag, or runtime check? If yes, encode it structurally and skip the brain note. See brain/principles/encode-lessons-in-structure.md.

Brain files (brain/)

Codebase knowledge, delegation principles, gotchas - anything that informs future sessions. This is the default destination. Use the brain skill for writing conventions.

  • One topic per file. File name = topic slug.
  • Group in directories with index files using standard Markdown links.
  • No inlined content in index files.

Skill improvements (.agents/skills/<skill>/)

If a learning is about how a specific skill works - its process, prompts, or edge cases - update the skill directly. Use the skill-creator skill for guidelines on effective skill content.

Orchestration workflow improvements

If the session revealed systemic orchestration issues, route to:

  • Brain principle (new delegation heuristic) → brain/delegation/
  • Skill mechanics change (monitoring loop, review step) → relevant skill file
  • New skill opportunity (recurring workflow that could be encoded) → note in summary for the user

Backlog items (brain/todos.md)

Follow-up work that can't be done during reflection - bugs, non-trivial rewrites, tooling gaps. Use the todo skill to file.

Summary

## Reflect Summary
- Brain: [files created/updated, one-line each]
- Skills: [skill files modified, one-line each]
- Structural: [rules/scripts/checks added]
- Todos: [follow-up items filed]

04 同仓库更多 Skills

japurcell
japurcell/skills

spec-create

Create or revise a portable behavioral SPEC for a feature or whole product. Use when specifying a new idea, documenting an existing system for reimplementation, or defining a change while preserving compatibility. Implementation planning is a separate task.

产品经理
★ 0
japurcell
japurcell/skills

prd-ralph

Complete at most one eligible unfinished PRD task, verify it, log progress, and optionally create one scoped commit.

产品经理
★ 0
japurcell
japurcell/skills

fsdp-style-guide

Mandatory for all UI/UX design, implementation, review, audit, or visual regression tasks. Always use for any work that affects user-facing appearance, behavior, accessibility, branding, layout, navigation, forms, dialogs, alerts, tables, or visual design.

设计师
★ 0
japurcell
japurcell/skills

agency-priorities

Provide self-contained USDA strategic goals and Forest Service priorities for agency briefings, proposals, and work-plan alignment. Use when explaining agency direction or evaluating how a project contributes to USDA and Forest Service priorities.

★ 0
japurcell
japurcell/skills

accomplishment-report

Create a concise Forest Service executive accomplishment report when all work in an ExecPlan is completed, or update its existing report. Use at ExecPlan closeout and when asked to report completed work, agency alignment, and estimated AI-assisted versus human-only time and cost savings.

行政与办公人员
★ 0
japurcell
japurcell/skills

writing-for-agents

Writing documents for agents. Use when creating or editing skills, or modifying AGENTS.md or CLAUDE.md.

内容创作者写作与文案
★ 0