frontend
Skill0 starsChanged 5 months agoMITView on GitHub
Generate production-grade Next.js (App Router) JSX code. Use for components, pages, layouts, and utilities — pure UI, no DB or server logic.
We split this skill into the rules it gives an agent
4 rules. 0 are common, 2 are distinctive, and 2 are very specific to this project.
0
Common
Most of the 43 edited versions we read keep these.
2
Distinctive
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 11
All four states: loading · error · empty · ideal
- Very specific: line 14
Only use libraries in package.json
- Very specific: line 40
Never useEffect for data when Server Component works
- Distinctive: line 47
Never invent design tokens, colors, or custom fonts
“Common” is measured: kept by at least 6 in 10 of the 43 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.
Files
Read
.agents/software-principles/SKILL.mdfirst.
Pre-Code Checklist
- All four states: loading · error · empty · ideal
- Server vs. client boundary (default: Server Component)
- Existing conventions in
app/,components/,hooks/,lib/ - Only use libraries in
package.json
Architecture
| Need | Solution |
| Fetch + render data | async Server Component |
useState / events / browser API | 'use client' — push as deep as possible |
| Reusable UI | components/ — server-first, add 'use client' only if needed |
| Custom logic | hooks/*.js (client) · lib/*.js (server/shared) |
Extensions: .jsx for JSX · .js for hooks and utilities.
Four States (all required)
| State | Implementation |
| Loading | loading.jsx or <Suspense fallback={<Skeleton />}> |
| Error | error.jsx — must be 'use client' |
| Empty | Inline message — helpful, not just "No data" |
| Not found | not-found.jsx |
Data Fetching
- Server:
asyncRSC +fetchwith{ next: { revalidate: N } }orcache()for dedup - Client:
useEffectwith cleanup — only when Server Component is impossible - Never
useEffectfor data when Server Component works useEffectdeps array must be exhaustive — no suppression comments. Extract stable refs withuseCallback/useMemoif needed
Styling
- Tailwind: existing tokens only. No
[]arbitrary values unless truly one-off - CSS Modules: follow existing class naming pattern
- Never invent design tokens, colors, or custom fonts
Forms, Routing & Quality
- Mutations → Server Actions (
'use server') layout.jsxfor shared UI. ExportmetadataorgenerateMetadatafor SEOnext/imagefor images ·next/fontfor fonts ·@/alias for all imports- Semantic HTML + ARIA. All interactive elements keyboard-accessible
- Stable
keyprops — never array index for dynamic lists - Env vars server-only unless
NEXT_PUBLIC_prefix
Never Do
- Hooks or browser APIs in Server Components
.tsx/.tsextensions — this is a JS project- Libraries not in
package.json - Invented design tokens or broken folder conventions
- Skip any of the four states
key={index}on dynamic lists- Suppress
useEffectexhaustive-deps lint rule
Other versions49 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 49
- langwatch/langwatch★ 5ksame name
- atopile/atopile★ 4ksame name
- leookun/cursor-byok★ 3.2ksame name
- theopenco/llmgateway★ 1.7ksame name
- notque/vexjoy-agent★ 444same name
- notque/claude-code-toolkit★ 442same name
- AlexPEClub/ai-coding-starter-kit★ 382same name
- OyadotAI/oya-browser★ 351same name
- speakeasy-api/gram★ 275same name
- ThePrimeagen/skills★ 234same name
39 more not listed
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.
Used alongsideProjects with it also use programming, data 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.
DevNewbie1826Skillprogramming
MUST USE for work on Python, Rust, TypeScript, or Go source files and project manifests. Triggers: write or edit code; new project; Go HTTP service (gin lane); Bubble Tea TUI; CJK IME; Connect-Go RPC; sqlc or pgx; branded IDs; exhaustive matching; unsafe Rust; Miri; oversized file; refactoring; logging, log levels, structured logging, or observability; arena, allocator, bumpalo, const fn, const generics, compile-time programming, zero-allocation APIs, bitfields, repr, scope guards, errdefer-style cleanup, Zig-like patterns, zero-copy parsing, packed data, or FFI; Rust public API design or macros.
Also in 3 projects that use this
launch52-aiSkilldata
Generate data layer code (Freezed DTOs, repository implementations, data sources) from feature specifications or API references. Creates the bridge between domain entities and external data sources. Use after /domain to implement the data layer.
Also in 4 projects that use this
AnthropicSkillarchitecture
Create or evaluate an architecture decision record (ADR). Use when choosing between technologies (e.g., Kafka vs SQS), documenting a design decision with trade-offs and consequences, reviewing a system design proposal, or designing a new component from requirements and constraints.
Also in 7 projects that use this
0xSeroSkillsecurity
Also in 7 projects that use this
BlockSkilldebugging
Debugging guidelines and best practices
Also in 5 projects that use this
MicrosoftSkillhelp
Entry point for the MedImageInsight plugin, covering the getting-started walkthrough, how the skills work, what MI2 is, and troubleshooting.
Also in 4 projects that use this
In this repository6 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- backendSkill
- frontend-designSkill
- fullstackSkill
- software-principlesSkill
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.

