agentleFS
ankitluthraankitluthra/frontend-quality-graph/skills/frontend-graph/SKILL.md

frontend-graph

Skill0 starsChanged 3 months agoMITView on GitHub

Auto-routes frontend/UI work with a hard Sameness Shield gate: plan → build → parallel reviews → run sameness-check.py (must exit 0) → Pass?. Rejects vibe-coded sameness with actual rework. Use for UI/pages/components without the user naming a skill. Skip pure Q&A and non-frontend work.

The file

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈5

    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:

    Run the checker (try in order until one works):

    line 45
  2. Distinctive:

    If exit code ≠ 0: treat as FAIL.

    line 56
  3. Distinctive:

    Read the first file that exists:

    line 62
  4. Distinctive:

    Sameness Shield: must exit 0

    line 87
  5. Very specific:

    All must-pass reviewers return PASS (interaction may WARN)

    line 102
  6. Distinctive:

    If Shield fails, lead with:

    line 112

≈ “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

Frontend quality graph (auto-router)

Never ask which skill to use. Classify silently, then invoke skills yourself.

Thin stack only (do not load extra UI skill packs):

JobSkill / tool
Design intelligenceui-ux-pro-max (optional companion)
Taste / anti-genericfrontend-design (optional companion)
Anti-slop detectorsimpeccable (optional companion)
React engineeringvercel-react-best-practices (optional)
Audit gatesweb-design-guidelines + our reviewers
Hard gatescripts/sameness-check.py — must exit 0
Orchestrationthis skill

Step 0 — Classify (silent)

ClassSignalsMode
fe.fullNew page/section, redesign, multi-component UI, landing/heroFull graph + Shield
fe.visualLook/brand/typography/spacing/hero polishPlan-light → build → design + Shield
fe.responsiveMobile, breakpoint, overflowImplement → responsive (+ a11y if chrome changes)
fe.a11yKeyboard, focus, contrast, ariaImplement → a11y
fe.interactionLoading/empty/error, motionImplement → interaction
fe.componentSingle component / small UI slicePlan-light → implement → a11y + responsive (+ design/Shield if visually led)
skipPure Q&A, non-FE, or tightly scoped one-line tweakNo graph

Status: Route: fe.full → … → Sameness Shield → Pass/Rework

Sameness Shield (actual effect — non-negotiable)

On fe.full, fe.visual, and visually led fe.component, before you tell the user the work is done:

  1. Identify changed UI files (tsx/jsx/css/vue/svelte/html, etc.).
  2. Run the checker (try in order until one works):
python3 .cursor/frontend-quality-graph/sameness-check <files>
python3 ~/.agents/frontend-quality-graph/bin/sameness-check <files>
python3 ~/.agents/frontend-quality-graph/repo/scripts/sameness-check.py <files>
python3 scripts/sameness-check.py <files>

Do not skip because path resolution is annoying — find the script.

  1. If exit code ≠ 0: treat as FAIL. Print the Shield output to the user. Rework the UI. Re-run. Max 2 rework loops after Shield fails.
  2. Forbidden: claiming done while Shield fails. Forbidden: SAMENESS_ALLOW=1 unless the user explicitly requests a bypass.
  3. Soft reviewers (frontend-design-critique) still run; Shield is the machine gate that blocks ship.

Models

Read the first file that exists:

  1. .cursor/frontend-quality-graph/models.toml (project install)
  2. ~/.agents/frontend-quality-graph/models.toml (global install)
RoleConfigBehavior
Plannerroles.plannerSubagent
Workerroles.worker (inherit OK)This chat
Reviewersreviewers.* / roles.qaParallel subagents

Step 1 — Invoke by class

fe.full

  1. ui-ux-pro-max if installed → design brief
  2. frontend-planner @ planner (must list 3 vibe patterns we will not ship)
  3. frontend-implement @ worker (+ frontend-design / vercel-react-best-practices / impeccable if present)
  4. Parallel: frontend-design-critique, frontend-a11y, frontend-responsive (+ frontend-interaction warn)
  5. Run Sameness Shield on changed UI files — must exit 0
  6. Pass? → else rework → re-run failed gates only

fe.visual

  1. Companions as available → implement → frontend-design-critique
  2. Sameness Shield must exit 0
  3. a11y/responsive if structure changed

fe.responsive / fe.a11y / fe.interaction

Implement + matching reviewers. Shield optional unless the change is visually led.

fe.component (visually led)

Implement + a11y + responsive + design-critique + Sameness Shield.

Pass?

You may only say the work is complete when:

  1. All must-pass reviewers return PASS (interaction may WARN)
  2. Sameness Shield exits 0 (for classes that require it)
  3. Design critique Sameness: PASS

Otherwise: rework. Max 2 loops, then stop with residual risks + Shield output.

User-facing

Route → Plan → Build → Review → Sameness Shield → Pass/Rework → Done

If Shield fails, lead with:

Sameness Shield: FAIL — looks like other AI-built products. Reworking.

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.