agentleFS
cisco-opencisco-open/ai-harness-toolkit/skills/reflect-on-changes/SKILL.md

reflect-on-changes

Skill13 starsChanged 7 months agoApache-2.0View on GitHub

Analyze recent code changes, review findings, and touched docs to codify what changed in the repository. Use when work is complete, after a review/fix loop, or whenever the agent should update docs, commands, skills, and conventions based on recent changes while identifying repeatable problems that should become lint rules or other mechanical checks.

The file

Show its rules and text

We split this skill into the rules it gives an agent

15 rules. About 0 are common, 15 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈15

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use this skill after meaningful code changes, review passes, workflow updates, or bug-fix loops.

    line 8
  2. Distinctive:

    Update the docs, commands, or skills that became stale because of the change.

    line 14
  3. Distinctive:

    Read any rolling review artifacts if present.

    line 22
  4. Distinctive:

    Read touched docs, commands, skills, configs, and validation scripts before concluding they are up to date.

    line 23
  5. Distinctive:

    Update the source of truth directly.

    line 30
  6. Distinctive:

    Prefer updating the most specific doc first, then update summaries.

    line 31
  7. Distinctive:

    Keep related docs and affected command/skill files in sync.

    line 32
  8. Distinctive:

    Look for issues that appeared more than once in the same task or across related files.

    line 34
  9. Distinctive:

    Treat "we had to fix this manually again" as a strong signal for mechanical enforcement.

    line 35
  10. Distinctive:

    follow-up lint-rule or validation candidates deferred

    line 54
  11. Distinctive:

    If a rule matters and can be checked mechanically, prefer enforcement over prose.

    line 58
  12. Distinctive:

    If the same review comment would likely be written again, propose a lint rule or validation script.

    line 59
  13. Distinctive:

    If the rule is still ambiguous or product-dependent, document it instead of enforcing it.

    line 60
  14. Distinctive:

    Do not add noisy checks just because something is theoretically automatable.

    line 61
  15. Distinctive:

    If nothing needed updating, say that explicitly and explain why the current docs/checks already cover the change.

    line 72

≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “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

Reflect on Changes

Use this skill after meaningful code changes, review passes, workflow updates, or bug-fix loops.

The goal is to turn local knowledge into durable repository knowledge.

Core Outcomes

  1. Update the docs, commands, or skills that became stale because of the change.
  2. Identify repeatable problems that should be enforced mechanically instead of re-reviewed manually.
  3. Either implement the enforcement immediately when it is low-risk and clearly scoped, or record a concrete follow-up.

Workflow

  1. Gather the learning scope.
    • Inspect the current diff against main plus any untracked files that matter.
    • Read any rolling review artifacts if present.
    • Read touched docs, commands, skills, configs, and validation scripts before concluding they are up to date.
  2. Determine what repository knowledge changed.
    • conventions
    • command behavior
    • skill behavior
    • validation workflow
    • developer expectations
  3. Update the source of truth directly.
    • Prefer updating the most specific doc first, then update summaries.
    • Keep related docs and affected command/skill files in sync.
  4. Mine repeated problems from the change and review history.
    • Look for issues that appeared more than once in the same task or across related files.
    • Treat "we had to fix this manually again" as a strong signal for mechanical enforcement.
  5. Choose the right enforcement layer.
    • ESLint: AST-shaped TS/JS rules and import/code-organization invariants.
    • Nx/module-boundary config: project graph and tag dependency rules.
    • Semgrep: security patterns and broader code-shape checks.
    • Knip: dead code, unused exports, dependency drift.
    • Custom script/CI check: docs freshness, repo metadata, or non-AST structural validation.
    • Docs only: judgment-heavy guidance that should not be mechanized yet.
  6. Act on the best candidates.
    • Implement low-risk, well-understood enforcement immediately when it fits the current task.
    • Otherwise add a concrete follow-up entry with:
      • the repeatable problem
      • recommended enforcement layer
      • why it is worth mechanizing
      • any expected false-positive risk or rollout caveat
  7. Summarize what was learned.
    • docs updated
    • commands/skills updated
    • enforcement added
    • follow-up lint-rule or validation candidates deferred

Heuristics

  • If a rule matters and can be checked mechanically, prefer enforcement over prose.
  • If the same review comment would likely be written again, propose a lint rule or validation script.
  • If the rule is still ambiguous or product-dependent, document it instead of enforcing it.
  • Do not add noisy checks just because something is theoretically automatable.

Output

Return a concise learning summary with these sections:

  • Docs updated
  • Workflow or skill changes
  • Mechanical enforcement added
  • Deferred lint-rule candidates

If nothing needed updating, say that explicitly and explain why the current docs/checks already cover the change.

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.