agentleFS
madeordinarymadeordinary/serel-memory/.agents/skills/analyze/SKILL.md

analyze

Skill1 starsChanged 17 days agoMITView on GitHub

Audit a Serel Memory bank against code and evidence without editing it. Use when asked to check memory accuracy, stale claims, unsupported status, or gaps between memory and implementation.

70 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use constitution, revise and 9 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.
  • ArvorCoSkill

    constitution

    Create or update the project constitution - personalized governance and coding principles. Use when starting a project or updating project standards. Triggers on: create constitution, update principles, set project rules.

    Also in 4 projects that use this

  • stormlightlabsSkill

    revise

    Address review comments on an open pull request and push the fixes. Use for /edit, /revise, or when asked to respond to review feedback on a PR number.

    Also in 3 projects that use this

  • DockerSkill

    write

    Write or edit reader-facing technical prose for immediate comprehension. Use for documentation, PR titles and descriptions, release notes, design documents, user-facing explanations, and substantive comments. Also use when asked to make writing clearer, more natural, less AI-generated, or easier to read. For documentation fixes, handles edits, formatting, self-review, and commits after research identifies what to change. Do not use for code-only tasks with no prose deliverable.

    Also in 6 projects that use this

  • ArvorCoSkill

    specify

    Create feature specification from natural language description. Use when starting a new feature or creating a spec. Triggers on: create spec, specify feature, new feature spec.

    Also in 5 projects that use this

  • H-mmerSkill

    submit

    Draft and submit a vulnerability report to the bug bounty platform. Reads scope.yaml for platform/program, uses brain + findings for content. Always drafts first for review.

    Also in 3 projects that use this

  • GoogleSkill

    quality

    Evaluates whether a GitHub issue is spam, empty, needs more information, or is OK to proceed.

    Also in 3 projects that use this

  • +1 more from ArvorCo

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 60 edited versions we read keep these.

  • 7

    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. Distinctive:

    Read the contract's Memory accuracy and Accuracy audit sections.

    line 28
  2. Very specific:

    Read the effective bank's projectbrief.md, productContext.md, systemPatterns.md, techContext.md, decisionLog.md, activeContext.md, …

    line 29
  3. Distinctive:

    Read optional docs only for those subjects.

    line 44
  4. Distinctive:

    Never execute a recipe or infer a fresh pass from an old record.

    line 47
  5. Distinctive:

    If the checker exists, run it for this scope and retain its exit code and summary separately from semantic findings:

    line 48
  6. Distinctive:

    Keep unsupported claims unverified or request evidence.

    line 83
  7. Distinctive:

    Read-only source inspection is not a test run.

    line 91
  8. Distinctive:

    Start with the scope, effective bank, inspected subjects, HEAD and working-tree state, then the deterministic check's exit code and summary …

    line 96

“Common” is measured: kept by at least 6 in 10 of the 60 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

Analyze

Audit the selected memory bank against repository evidence. This is an on-demand accuracy review; routine update-memory captures and reconciles subjects changed during a session. Use this workflow when asked whether existing memory is accurate, stale, unsupported, or missing durable facts.

Invoke as analyze [topic] [--scope <path>].

Scope and required reads

Resolve exactly one scope per Resolving scope in docs/workflow-contract.md: explicit --scope (. is root), else cwd, else root. Invalid selectors stop and list valid selectors. At root, audit the root bank only; do not open child banks. Read inherited root rules at a project scope without auditing or changing another scope's bank.

Effective bank: within that scope use memory-bank.local/ and its .rules when present; otherwise use memory-bank/ and the scope's .rules. A maintainer overlay is partial: missing core files get intent from README.md/docs/, never from the blank tracked templates behind it.

  1. Read the contract's Memory accuracy and Accuracy audit sections.
  2. Read the effective bank's projectbrief.md, productContext.md, systemPatterns.md, techContext.md, decisionLog.md, activeContext.md, progress.md, then its rules. A normal bank with missing, empty, or template-only core files is uninitialized: name them and stop; suggest discover, init-memory, or from-prd as appropriate. Do not seed it here.
  3. Inspect recent git history and working-tree status, including staged, unstaged and relevant untracked files. Inspect source, manifests and test definitions needed to assess the selected subjects. Do not assume an implementation is committed, released or tested because it exists locally.
  4. With a topic, inspect claims about that topic across the live bank and relevant optional docs. Without one, bound the audit to current status in progress.md, focus/checkpoint/next steps in activeContext.md, pending or accepted decisions, and current setup facts in techContext.md. Other files supply intent; report other claims as outside coverage. Skip archives unless a specific finding needs historical evidence.
  5. Read optional docs only for those subjects. A verification map's Recipe is a procedure, not a result. Records describe a particular revision and environment; changed paths or missing artifacts limit their relevance. Never execute a recipe or infer a fresh pass from an old record.
  6. If the checker exists, run it for this scope and retain its exit code and summary separately from semantic findings:

    "$(git rev-parse --show-toplevel)/bin/serel-memory" check --scope <resolved scope>

    Report an absent checker or failed assessment explicitly. Exit 2, including dirty evidence paths, means incomplete assessment, not proven drift. Do not stash or edit files to make the checker pass. Its exit 0 does not certify the accuracy of prose.

Assessment

Apply Memory accuracy: classify each disputed claim as current fact, durable decision, intended future, or open question before recommending action. Code can establish a current implementation without overruling accepted intent. An unbuilt plan and a dated historical statement are not stale current facts. A proposed decision is an open question, not accepted intent, even once implemented; an accepted entry without provenance stays accepted, with provenance unknown.

Report evidence-backed findings as documentation drift, possible regression, missing evidence, or missing durable information. Missing code alone does not prove a claim false; narrow the conclusion to what was inspected. Recheck in-scope external capability claims against a primary source with version/date, or mark them unassessed. Report a workaround's recorded retirement condition as met, not met, or unverifiable, with its evidence, in coverage (contract Accuracy audit). Use a finding kind only for a discrepancy the evidence supports. Met means investigate a safe removal within existing scope and approvals, not that the workaround or its accurate explanation is stale; not met does not prove it correct; an unavailable lookup is unassessed, not false. Do not invent missing work or decisions, erase history, or recommend making intent match a possible bug. Keep unsupported claims unverified or request evidence; do not convert them into targets or decisions without owner intent. Say implemented or committed when that is all the evidence shows; reserve released/shipped for release evidence.

Allowed writes and stop conditions

None. Do not edit bank, code, rules, evidence markers, or checkpoints; do not run tests, builds, verification recipes, installs, fetches, or another agent. Read-only source inspection is not a test run. Report access failures, conflicting evidence, and owner decisions needed; do not guess to finish.

Output

Start with the scope, effective bank, inspected subjects, HEAD and working-tree state, then the deterministic check's exit code and summary (or unavailable).

For each finding, give:

  • Kind and impact: one of the four finding kinds, and why it matters.
  • Claim: exact bank path/line or section and a short quotation, plus its fact/decision/intent/question classification. For missing information, name the owning bank section and the evidenced omission instead of inventing a quote.
  • Evidence: source path/line, commit/diff, observed result, or primary-source link with version/date. Distinguish inspected tests from tests actually run.
  • Recommended action: a proposed factual correction, a missing entry, a verification step, or an owner decision about a possible regression.
  • Limits: what the evidence cannot establish.

End with Coverage and unassessed areas, including unresolved evidence and decisions. If there are no findings, say "No discrepancies found within the inspected subjects," not "the bank is accurate." No score or semantic CI verdict. Offer update-memory for a separate, reviewed bank update; do not invoke it or write the corrections automatically. Possible regressions need an owner decision before intent or code changes.

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.