frontend-conventions
Skill11k starsChanged 2 months agoApache-2.0View on GitHub
Use for creating, modifying, moving, or reviewing React frontend code anywhere in packages/*, including Workshop pages, gatekeeper management apps, shared UI, components, hooks, forms, interactions, styling, accessibility, and frontend tests.
3 other projects use a version of this.
Trending
Quiet since October.about the whole repository
Most recently taken up by
- iflytek/skillhubtheir own version, first seen Aug 29, 2026
- mikemai2awesome/agent-skillstheir own version, first seen May 11, 2026
- kimzeze/frontend-conventionstheir own version, first seen May 7, 2026
Who's talking about cloudflare/cloudflare-os
- @qdrddr.bsky.social“@cloudflare.social released a #harness #agent, confusingly called #Cloudflare OS, that includes an agent …”Bluesky · Aug 10, 2026 · 6 likes
- @yug1224.com“社内の文脈やシステムと連携してAIエージェントやアプリを動かせる環境らしい 企業の業務効率化ツールとしてかなり便利そう yug1224 starred cloudflare/cloudflare-os…”Bluesky · Aug 8, 2026 · 4 likes
- @github-trending.bsky.social“📦 cloudflare / cloudflare-os ⭐ 10,391 (+84) 🗒 TypeScript Agent workspace built on Cloudflare Workers for …”Bluesky · Oct 3, 2026 · 2 likes
- @smith.wiki“Cloudflare OS is an open-source workspace for AI agents and personal applications. This investigation asks …”Bluesky · Oct 2, 2026 · 2 likes
- @github-trending-js.bsky.social“🔥 Hot Repo! 🔥 (100+ new stars) 📦 cloudflare / cloudflare-os ⭐ 9,164 (+111) 🗒 TypeScript Agent workspace …”Bluesky · Aug 25, 2026 · 2 likes
The biggest 5 of 41 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 41
Talked about on GitHub and Bluesky (41 times).
On GitHub · 27
- Aug 6, 2026Cloudflare OS integration: gatekeeper capability layer + os-bridge — S-FX-com/Arcadia1 reaction · 1 comment
- Oct 7, 2026chore(cloudflare-os): bump to main@9c2b76a — appflare/catalog0 reactions
- Oct 6, 2026Add curated AI projects from Oct 6 Trending feeds — alvinreal/awesome-opensource-ai0 reactions
- Oct 5, 2026[Inspiration] Agent-built gadgets: persistent, sandboxed mini-apps users keep and iterate on, beyond one-shot run artifacts — helloimcx/agentdock0 reactions
- Oct 5, 2026🚀 upstreamの50コミットを取り込む(2026-10-05) — PAYNHQ/cloudflare-os0 reactions
22 more on GitHub
- Oct 4, 2026Scout pitch: Deferred approval (queue risky actions, keep working, one batch decision) — 8gi-foundation/8gent-code0 reactions
- Oct 4, 2026Donor intake: Cloudflare OS capability-security reference — ubuntuokos/Final-Architecture-v3.00 reactions · 2 comments
- Oct 3, 2026[Inspiration] Speculative permission gates: simulate blocked actions so unattended runs keep working, reconcile on approval — helloimcx/agentdock0 reactions
- Sep 26, 2026Upstream-Sync: 4 kritische Fixes f961c844→004ab773 (OWL-1715) — axelweichert/cloudflare-os0 reactions · 2 comments
- Sep 22, 2026feat: advance Cloudflare OS overlay to candidate.9 — dscott98/cloudflare-os-overlay0 reactions
- Aug 18, 2026MCP write-capable tools are not auto-retried after mid-flight session expiry (no duplicate side effects) (salvage #88821) — NousResearch/hermes-agent0 reactions · 1 comment
- Aug 12, 2026Cloudflare OS v2を試用しYouTube制作基盤への適合性を評価する — daiki-beppu/youtube-automation0 reactions
- Aug 12, 2026Update pinned cloudflare-os release — cloudflare/cloudflare-os-starter0 reactions · 1 comment
- Aug 10, 2026feat(ai): AI Gateway transport over the Cloudflare AI binding — earendil-works/pi0 reactions · 1 comment
- Aug 10, 2026Harden: move OAuth token decryption out of the main Worker into per-provider gatekeeper Workers — jezweb/vite-flare-starter0 reactions
- Aug 9, 2026cloudflare-os self-hosting via wrangler-cli + podman — elasticdotventures/_b00t_0 reactions · 1 comment
- Aug 9, 2026Create — github/advisory-database0 reactions
- Aug 8, 2026Add Cloudflare Workers AI Gateway transport over the AI binding — earendil-works/pi0 reactions · 4 comments
- Aug 8, 2026Cloudflare OS型Gatekeeper・Blueprint・共有Agent UXをイベント基盤へ導入する — KAFKA2306/vrc_cast_event_calender0 reactions · 1 comment
- Aug 8, 2026Cloudflare OS型の旅行Gadget・Gatekeeper・共有ワークスペースを導入する — KAFKA2306/travel0 reactions · 2 comments
- Aug 8, 2026Cloudflare OS型Gadget sandbox・Gatekeeper・Blueprintを衣装生成パイプラインへ導入する — KAFKA2306/image2outfit0 reactions · 1 comment
- Aug 8, 2026Cloudflare OS型Agent Workspace・Gatekeeper・Blueprintを分析基盤へ導入する — KAFKA2306/semiconductor-earnings-model0 reactions · 1 comment
- Aug 8, 2026Cloudflare OS型のGatekeeper・Blueprint・Agent APIを導入する — KAFKA2306/factory0 reactions · 2 comments
- Aug 7, 2026Clone cloudflare/cloudflare-os を取り込み — jeminisaga/-0 reactions
- Aug 5, 2026dweb: adopt the read-through sharing invariant (observer model) before data-bearing mesh surfaces land — NotASithLord/peerd0 reactions
- Aug 5, 2026runtime: optimistic side-effect queue — simulate unapproved actions, bulk-approve later (Gatekeeper pattern) — NotASithLord/peerd0 reactions · 1 comment
- Aug 5, 2026dweb: dwapp sandbox CSP omits connect-src — app frames have unrestricted network egress — NotASithLord/peerd0 reactions
On Bluesky · 14
- Aug 10, 2026@cloudflare.social released a #harness #agent, confusingly called #Cloudflare OS, that includes an agent runtime, a workspace, and… — @qdrddr.bsky.social6 likes and reposts · 1 reply
- Aug 8, 2026社内の文脈やシステムと連携してAIエージェントやアプリを動かせる環境らしい 企業の業務効率化ツールとしてかなり便利そう yug1224 starred cloudflare/cloudflare-os… — @yug1224.com4 likes and reposts
- Oct 3, 2026📦 cloudflare / cloudflare-os ⭐ 10,391 (+84) 🗒 TypeScript Agent workspace built on Cloudflare Workers for creating documents, building… — @github-trending.bsky.social2 likes and reposts
- Oct 2, 2026Cloudflare OS is an open-source workspace for AI agents and personal applications. This investigation asks what users can build, how agents… — @smith.wiki2 likes and reposts · 1 reply
- Aug 25, 2026🔥 Hot Repo! 🔥 (100+ new stars) 📦 cloudflare / cloudflare-os ⭐ 9,164 (+111) 🗒 TypeScript Agent workspace built on Cloudflare Workers for… — @github-trending-js.bsky.social2 likes and reposts
9 more on Bluesky
- Aug 19, 2026At the other extreme, it evolves to be more like an OS at a higher level of abstraction. It provides a set of syscalls and guarantees that… — @jeremymorrell.dev2 likes and reposts · 1 reply
- Aug 7, 2026Cloudflare OS is an #OpenSource workspace for #AI productivity originally developed for use inside #Cloudflare. It provides: a) an agent… — @dshnow.bsky.social2 likes and reposts · 1 reply
- Aug 5, 2026#🔖テクノロジー GitHub - cloudflare/cloudflare-os: Agent workspace built on Cloudflare Workers for creating documents, building apps, and running… — @hatena-bookmark.bsky.social2 likes and reposts · 1 reply
- Sep 25, 2026📦 cloudflare / cloudflare-os ⭐ 10,090 (+31) 🗒 TypeScript Agent workspace built on Cloudflare Workers for creating documents, building… — @github-trending-js.bsky.social1 likes and repost
- Aug 11, 2026Cloudflare OS blog: blog.cloudflare.com/cloudflare-os/, github.com/cloudflare/cloudflare-os Vercel eve: vercel.com/blog/introducing-eve ·… — @akash-bhatia.bsky.social1 likes and repost
- Aug 6, 2026AI news - Aug 6, 2026 1. Cloudflare Open Sources Internal AI Productivity Operating System LINK 2. Jeff Dean and Google Executives Launch… — @hackobar.bsky.social1 likes and repost · 1 reply
- Aug 5, 2026Cloudflare OS – an open-source AI productivity environment Discussion | hackernews | Author: berlianta #InfrastructureAndDevOps — @news.karthihegde.dev1 likes and repost
- Oct 4, 2026AI news - Oct 4, 2026 1. Aleph Alpha launches Kolibri 78B Mixture-of-Experts LLM LINK 2. Cloudflare Workers Agent Workspace for… — @hackobar.bsky.social0 likes and reposts · 1 reply
- Aug 6, 2026時間ができたら遊んでみる。 github.com/cloudflare/c... — @koshibas.bsky.social0 likes and reposts · 1 reply
Other versions3 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 3
- iflytek/skillhub★ 5.1ksame name
- mikemai2awesome/agent-skills★ 15same name
- kimzeze/frontend-conventions★ 1same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository5 other files it gives its agents.
- AGENTS.mdAGENTS.md
- packages/gatekeeper-kit/AGENTS.mdAGENTS.md
- packages/ui/AGENTS.mdAGENTS.md
- packages/workshop-frontend/AGENTS.mdAGENTS.md
- write-gatekeeperSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
14 rules. About 0 are common, 8 are distinctive, and 6 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈8
Distinctive · estimate
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Very specific: line 16
Start directories flat. Do not introduce components/, hooks/, helpers/, or tests/ subdirectories merely to classify files.
- Very specific: line 20
Use PascalCase filenames for components and camelCase filenames for hooks and non-component modules.
- Distinctive: line 24
Keep product behavior with its product even when another feature consumes it.
- Distinctive: line 31
Do not merge components merely because they look similar.
- Distinctive: line 36
Create a separate component when it owns meaningful state, effects, interactions, accessibility behavior, or reusable responsibility.
- Very specific: line 44
Prefer named arrow-function components and hooks.
- Very specific: line 54
Add children, slots, variants, className, DOM passthrough, and imperative refs only for current callers, not speculative reuse.
- Distinctive: line 57
Use context for genuinely application-wide values such as authentication, theme, and toasts.
- Very specific: line 62
Use Kumo components and semantic tokens by default.
- Distinctive: line 66
Do not add custom color literals, arbitrary Tailwind colors, feature-local token systems, or local replacements for Kumo surfaces, borders, …
- Distinctive: line 75
When Kumo is unsuitable, identify the concrete behavioral or accessibility gap before introducing a shared abstraction.
- Distinctive: line 80
Treat Effects as synchronization with external systems, not as derived-state machinery or a way to sequence user interactions.
- Very specific: line 87
Do not add useMemo or useCallback without a concrete identity or performance need.
- Distinctive: line 93
Prefer names and types that communicate intent.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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.
Files
Frontend Conventions
Apply these conventions to the Workshop SPA, gatekeeper management SPAs, and @gadgets/ui.
Package-level AGENTS.md files add product-specific rules but do not replace this guidance.
Ownership And Organization
Organize code by product ownership before implementation type. Feature directories own product behavior and may contain components, hooks, tests, and utilities that change for the same reason.
Start directories flat. Do not introduce components/, hooks/, helpers/, or tests/
subdirectories merely to classify files. Introduce a responsibility-named subsystem directory only
when several files form a coherent unit or the flat directory becomes difficult to scan.
Use PascalCase filenames for components and camelCase filenames for hooks and non-component
modules. Colocate *.test.ts(x) files with their subject. Feature organization does not replace
the one-component-per-file model.
Keep product behavior with its product even when another feature consumes it. Promote code only as high as its ownership requires:
- Code shared within one feature belongs at the nearest common feature directory.
- Feature-independent code shared across unrelated areas of one app may live in that app's
components/orhooks/directory. - Runtime UI shared by independent frontends belongs in
@gadgets/ui. - Do not merge components merely because they look similar. Avoid generic prop-heavy abstractions that erase domain behavior.
Components And Hooks
Create a separate component when it owns meaningful state, effects, interactions, accessibility behavior, or reusable responsibility; represents a distinct UI concern; or obscures its parent's main flow. Keep small stateless render helpers private until they develop an independent concern.
Extract a hook when it owns a coherent behavior or external synchronization lifecycle, not simply to shorten a file. Keep code together when an extracted child would mostly forward markup or depend on the parent's refs, setters, and synchronization callbacks.
Prefer named arrow-function components and hooks. Type props directly rather than using React.FC.
Give wrappers such as memo and forwardRef stable DevTools names.
Component APIs
Represent props that are valid only together as an object or discriminated union. A controlled value requires a change callback; otherwise expose an uncontrolled initial value. Do not copy a controlled prop into local state with an Effect.
Name callbacks on<Action> and pass domain values rather than React setters or browser events.
Add children, slots, variants, className, DOM passthrough, and imperative refs only for current
callers, not speculative reuse.
Use context for genuinely application-wide values such as authentication, theme, and toasts. Pass instance-specific feature data and actions through props.
Kumo And Styling
Use Kumo components and semantic tokens by default. Check Kumo and @gadgets/ui before creating a
control or interaction pattern. A shared Gadgets component should compose Kumo behavior, not merely
rename or restyle a primitive.
Do not add custom color literals, arbitrary Tailwind colors, feature-local token systems, or local replacements for Kumo surfaces, borders, text, status, focus, and interaction tokens unless the user explicitly requests them. Existing legacy colors are not precedent.
Tailwind is appropriate for structure, spacing, sizing, positioning, responsive behavior, and typography. Use custom CSS only for technical behavior Kumo and utilities cannot express. Global Kumo token theming is an application-level decision and must not be changed during ordinary feature work.
When Kumo is unsuitable, identify the concrete behavioral or accessibility gap before introducing a shared abstraction.
React
Treat Effects as synchronization with external systems, not as derived-state machinery or a way to
sequence user interactions. Calculate render data during render, keep state near its owner, prefer a
component key for identity resets, and use useSyncExternalStore for suitable external stores.
Effects that fetch or subscribe must clean up stale work and remain correct when restarted. Avoid chains of Effects and do not synchronize two pieces of React state when one can be derived.
Do not add useMemo or useCallback without a concrete identity or performance need. Preserve
keyboard behavior, focus management, accessible names, announcements, and mouse/touch/hybrid input
parity. RPC stubs must follow the disposal and React state rules in the root AGENTS.md.
Comments
Prefer names and types that communicate intent. Comments should explain non-obvious constraints, security or performance reasons, and deliberate departures from conventions. Do not narrate the next line. Remove or update comments when their constraint changes.
Tests
Tests should protect observable behavior, product rules, accessibility, state transitions, races, and failure paths. Do not test React, JavaScript, Kumo, or another framework's own behavior merely for coverage. Avoid assertions coupled only to implementation details or trivial passthrough.
Behavior-preserving moves should keep tests unchanged apart from imports. Add focused coverage only when an extraction exposes important previously untested logic.
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
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.

