agentleFS
sukirman1901sukirman1901/frontend-expert/AGENTS.md

frontend-expert

AGENTS.md9 starsChanged 2 months agoMITView on GitHub

Guidance for AI coding agents when this pack is available. Users should not need to type slash commands. When the request matches an intent below, load the skills automatically. Slash commands are optional shortcuts only. Frontend Expert — a suite of pillars for shipping product web UI: UI quality + responsive (all devices) + ship FE (shell/data/forms) + depth (architecture/SEO). Not a full roadmap.sh curriculum; not React Native. Pillar map: docs/pillars.md.

The file

We split this AGENTS.md into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈4

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 4

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Users should not need to type slash commands: When the request matches an intent below, load the skills automatically.

    line 7
  2. Distinctive:

    Wait for a clear pick (or “langsung saja”)

    line 65
  3. Very specific:

    Responsive: MUST: verify 320/768/1024/1440 on layout UI — responsive

    line 110
  4. Very specific:

    Hierarchy pass: before DONE on blank-canvas / layout polish — one primary focus + one primary CTA (design-direction)

    line 112
  5. Very specific:

    No purple/indigo defaults / Lorem (purple only via scored/hard-gated/explicit token)

    line 115
  6. Distinctive:

    Do not fabricate visual audit scores without tokens/screenshots

    line 120
  7. Distinctive:

    Never block on slash commands when intent is clear

    line 121
  8. Very specific:

    Before DONE → Conventions check including Responsive, Hierarchy, Typography, Control geometry, Motion, Shell, Landing.

    line 124

≈ “Common” is an estimate: at least 1 in 5 of the 40,246 AGENTS.md 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
AGENTS.md

AGENTS.md

Guidance for AI coding agents when this pack is available.

Chat-first (default)

Users should not need to type slash commands. When the request matches an intent below, load the skills automatically. Slash commands are optional shortcuts only.

What this pack is

Frontend Expert — a suite of pillars for shipping product web UI: UI quality + responsive (all devices) + ship FE (shell/data/forms) + depth (architecture/SEO). Not a full roadmap.sh curriculum; not React Native.

Pillar map: docs/pillars.md.

Auto intent map

User says / meansLoad skills (order)Optional shortcut
Build/change UI, page, component, layout, stylingdesign-direction* → (+ prototype if comparing/stressing) → design-foundations** → tokens → (+ marketing if landing) → components → anti-slop-code → responsive → motion (light shell defaults) → anti-slop-design → polish → accessibility/ui
+ form / validasi / wizard… + forms (before or with components)/ui
+ list/detail API / loading data… + data-fetching/ui
+ app shell / sidebar / routing / 404… + app-shell/ui
+ architecture / folder structure / state choice… + architecture—
+ SEO / meta / OG / landing public… + seo (+ performance if CWV)—
+ marketing landing / homepage sections / logo cloud / testimonials… + marketing (+ motion / seo)/ui
+ animation / motion / marquee / parallax / text reveal / landing motion… + motion (families/patterns in motion-families.md; hand-roll — no registry default)/ui
Inspeksi animasi / frame by frame / jelaskan transisi / kenapa animasinya anehmotion-inspection (then motion to fix)/design
Mobile / responsive / semua device / tabletresponsive (MUST on layout UI)/ui
Audit design, AI slop, UI generikanti-slop-design → polish → tokens → responsive → accessibility → performance (+ motion / motion-inspection if animated; marketing if landing; + design-direction hierarchy/type if scores claimed)/design or /audit
Match Figma / mock / pixel / fidelityfidelity → tokens → responsive → polish/design
Lighthouse / axe / DevTools / measured auditdevtools → accessibility → performance → testing/test-ui or /design
Hierarchy / visual hierarchy / primary CTA uncleardesign-direction (Hierarchy pass) → design-foundations → anti-slop-design → polish/design
Grid / spacing / alignment / density / cluttered layout / "layout berantakan" / "struktur layout" / "rapikan struktur"design-foundations → tokens → responsive/ui
Typography / type scale / multi-h1 / heading ladderdesign-direction (Typography ladder) → design-typography → polish → anti-slop-design/design
Font choice / type scale / wrapping / truncation / variable fontsdesign-typography → responsive → accessibility—
Palette / OKLCH / dark mode / contrast / gamuttokens → design-color → accessibility—
Card / modal / radius / border / shadow / elevationtokens → design-surfaces → polish—
Component props / API / “prop terlalu banyak” / compositioncomponents/ui
Prototype / varian / side-by-side / bandingkan arah / cek semua statedesign-direction (if axes unnamed) → prototype — then foundations → tokens → components/ui
Kode terasa AI / rapikan kode / dampak ke modul lain / error handling generik / edge caseanti-slop-code (not anti-slop-design, not polish)/ui
UI copy / CTA / error / empty state / confirmation / AI writing / tulisan AIcontent-design (not anti-slop-design, not polish)—
Figma Auto Layout / Fill / Hug / layout from Figmaresponsive (Auto Layout ↔ CSS) → components/ui
Feels off / rapihin detailpolish (+ anti-slop-design if generik) — one pass—
Test / TDD / coveragetesting → components → accessibility/test-ui
Polish / rapihin sampai bagusquality-loop/polish
Slow / LCP / optimizeperformance—
WebGL / shader / Plasmawebgl—
Monitoring / Sentry / OTelmonitoring—
"What's the name for…" / loose UI description / design term lookupdesign-vocabulary—
"What pattern is…" / loose engineering description / FE term lookupengineering-vocabulary—
Create/add new skill / extend the pack / "buat skill baru"skill-authoring—

* design-direction for non-trivial / blank-canvas only — see skip rules. ** design-foundations for new layouts and structural redesigns. Skip isolated color, typography, copy, token, component-state, motion, and micro-polish changes. prototype when the user wants rendered comparison or state stress — not on every tiny /ui.

“Rapihin”: alone on existing UI → polish. Vague new UI → judgment. “Rapikan struktur” / layout berantakan → design-foundations. “Rapikan kode” / kode terasa AI → anti-slop-code. Copy / “tulisan AI” / empty-state wording → content-design. “Sampai bagus” → quality-loop.

Personas: build → ui-developer; audit → design-reviewer; test → test-engineer.

Expert judgment

  1. At most 1–2 clarifying questions if blocked
  2. Offer 2–3 approaches on distinct axes with tradeoffs + one recommendation
  3. Wait for a clear pick (or “langsung saja”)
  4. Then run domain skills (including responsive for layout)

Skills (suite)

SkillPillarTriggers
frontend-expertSuite rootCatalog / install entry — routes into pillars
design-directionUI QualityBlank-canvas / ambiguous UI
prototypeUI QualityRendered variants + state stress
design-foundationsUI QualityGrid, spacing rhythm, alignment, density, composition
tokensUI QualityTheme — decision tree + scoring
componentsUI QualityComponents, states, composition, public props/API
responsiveResponsive MUSTEvery layout UI / all devices
anti-slop-designUI QualityBuild + visual audits
anti-slop-codeUI QualityGenerated implementation tells, blast radius, field errors
polishUI QualityMicro craft
accessibilityUI QualityBuild/audit a11y
performanceUI QualityCWV / slow
motionUI QualityShell defaults + family/pattern vocabulary (motion-families.md); hand-roll
motion-inspectionUI QualityPlayback / reverse-engineer existing motion
testingUI QualityTests / TDD
quality-loopUI QualityPolish until clean
webglUI QualityPlasma backgrounds
monitoringUI QualitySentry / analytics
app-shellShip FEShell, nav, routes
data-fetchingShip FEAsync API UI
formsShip FEForms / wizards
architectureDepthFolders / state boundaries
seoDepthMeta / OG / indexability
marketingUI QualityMarketing section stack (hero→footer); hand-roll — not registry install
fidelityUI QualitySpec / Figma / screenshot match
devtoolsUI QualityLighthouse / axe / measured checks
design-vocabularyUI QualityReverse-lookup: loose description → design term
engineering-vocabularyDepthReverse-lookup: loose description → FE engineering term
skill-authoringSuite rootAuthor new pack skills following conventions
design-typographyUI QualityFont choice, type roles/scales, wrapping, truncation, numerics, bidi
design-colorUI QualityPalette construction, OKLCH, themes, contrast, gamut
design-surfacesUI QualityRadius, borders, elevation, shadows, overlays
content-designUI QualityUI copy, recovery language, voice, localization, AI-sounding prose

Hard rules

  1. Tokens via decision tree (token-preset-scoring.md) or project system — never vibe-pick
  2. Icons: MUST ship Reicon unless waiver — compliance-gates.md
  3. Responsive: MUST verify 320/768/1024/1440 on layout UI — responsive
  4. Primary CTAs full-width below 768 (forms / toolbars / action rows) — no tiny desktop-width CTAs on phone
  5. Hierarchy pass before DONE on blank-canvas / layout polish — one primary focus + one primary CTA (design-direction)
  6. Typography ladder — ≤2 families; one h1/page; sequential levels; token type roles
  7. WebGL → webgl / Plasma — no parallel invented stack
  8. No purple/indigo defaults / Lorem (purple only via scored/hard-gated/explicit token)
  9. Loading / error / empty for interactive + async surfaces
  10. Light Motion defaults on shell/dashboard (or waiver) — motion; marketing: name families/patterns from motion-families.md and hand-roll (registry install is not the default)
  11. Shell chrome — theme in topbar (icon); profile = avatar → account menu; filters = custom select (app-shell / components)
  12. Marketing landing — section stack via marketing / landing-sections.md; hero-only fails; hand-roll (registry install is not the default)
  13. Do not fabricate visual audit scores without tokens/screenshots
  14. Never block on slash commands when intent is clear
  15. Blank-canvas → judgment first
  16. “Sampai bagus” → quality-loop (cap 3)
  17. Before DONE → Conventions check including Responsive, Hierarchy, Typography, Control geometry, Motion, Shell, Landing; report n/a or an explicit waiver when a gate does not apply
  18. Evidence before taste — classify standards, project defaults, enterprise patterns, recommendations, heuristics, and inspiration (evidence-policy.md)
  19. Structural layout → design-foundations: relationships before values; no universal column count, width, or density

Orchestration: session agent loads skills; agents do not call agents. See docs/pack-layers.md, docs/pillars.md.

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.