agentleFS
MrCipherSmithMrCipherSmith/goodai-base/skills/review-flow-graph/SKILL.md

review-flow-graph

Skill0 starsChanged 5 months agoMITView on GitHub

Use when reviewing generic ReactFlow or graph-surface abstraction changes: public graph surface, store subclassing, layout lifecycle, internal helper boundaries, selection lifecycle, and large-graph performance. Dispatched by review-orchestrator for --flow-graph, --project-conventions, --all, or src/core/flow/** / graph abstraction changes.

The file

We split this skill into the rules it gives an agent

2 rules. About 0 are common, 1 is distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    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:

    If the repository has local graph docs, read them first and treat this checklist as a neutral baseline.

    line 29
  2. Very specific:

    When dispatched by review-orchestrator, follow the provided reviewer-input.schema.json payload.

    line 76

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 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

Review — Flow Graph Abstractions

Reviewer for reusable ReactFlow/graph integration layers. Use it when a repository has a shared graph surface consumed by domain modules.


Scope

Applicable to shared graph/flow abstraction folders such as src/core/flow/**, src/graph/**, src/shared/flow/**, and consumers adding a new graph surface through the shared public API.

If the repository has local graph docs, read them first and treat this checklist as a neutral baseline.


Checklist

Public Surface

  • Domain modules consume the documented public graph surface instead of mounting internal shell or bridge modules directly.
  • New exports are added only when more than one domain consumer needs them.
  • Public graph components own common setup such as loader/splitter/viewport wiring/toolbars.

Store and Lifecycle

  • Static viewers and expandable/progressive graphs use the appropriate base store or abstraction.
  • Subclasses initialize base state before local observability/reactivity.
  • Domain side effects preserve base selection/click/reset behaviour.
  • Expand/collapse graphs define fetch and direction/availability contracts explicitly.
  • Independent graph data fetches run in parallel and merge through a deduplication helper.

Internal Boundary

  • Layout helpers, shell components, bridge hooks, SVG/canvas geometry helpers, export helpers, and popup/container utilities stay internal unless there is a real shared public need.
  • New pure node/edge helpers live close to the graph abstraction.
  • New visual primitives live in the graph abstraction layer only when domain-neutral.
  • Domain-specific data shapes and selection details stay in domain modules.

Shared Graph Defaults and Performance

  • Shared graph defaults are configured in one surface, not repeated per consumer.
  • Large nodes/edges arrays avoid deep observation/proxying when shallow/reference observation is enough.
  • Selection/detail slots use reference semantics when values are swapped as units.
  • Lookup maps/indexes are computed once from source arrays for O(1) access.
  • Hand graph libraries fresh array references without deep cloning on every render.
  • User-initiated graph changes batch writes.
  • Animated edge/node effects do not restart unnecessarily on parent rerenders.
  • Level-of-detail logic uses discrete thresholds or policy helpers rather than per-frame UI rerenders.

Orchestrated Review Contract

When dispatched by review-orchestrator, follow the provided reviewer-input.schema.json payload. Return a REVIEW_RESULT object compatible with skills/review-orchestrator/reviewer-finding.schema.json, then a concise markdown summary. Keep findings evidence-based, include concrete suggested_fix for every blocker/major, and return NEEDS_CONTEXT instead of guessing when required context is missing.


Finding Format

### [F-NNN] Title

- **Severity**: blocker | major | minor | info
- **File**: path/to/graph/file.ts:line
- **Problem**: which graph abstraction contract is violated
- **Why it matters**: public surface stability, graph correctness, or performance impact
- **Fix**: concrete change aligned with the shared graph surface

Severity guidance: breaking the public surface or bypassing base selection/layout lifecycle is usually major; performance regressions on large graphs can be major or blocker.

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.