Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add sjarmak/coding-agent-workflows --skill frontend-patternsgit clone --depth 1 https://github.com/sjarmak/coding-agent-workflowsWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/sjarmak/coding-agent-workflows/frontend-patterns)<a href="https://agentmods.dev/skills/sjarmak/coding-agent-workflows/frontend-patterns"><img src="https://agentmods.dev/badge/skills/sjarmak/coding-agent-workflows/frontend-patterns/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/sjarmak/coding-agent-workflows/frontend-patterns"><img src="https://agentmods.dev/badge/skills/sjarmak/coding-agent-workflows/frontend-patterns.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00024 | $0.03709 |
| Opus 5.5 | $0.00010 | $0.01484 |
| Sonnet 5.5 | $0.00005 | $0.00742 |
| Haiku 4.5 | $0.00002 | $0.00371 |
Grade A, and why
frontend-patterns scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
fetch(url) This is a copy
86% identical to frontend-patterns — 73 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.
How it starts
The opening of the file, as written. The whole thing — 648 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Frontend Development Patterns
Use the project's installed version and conventions. Verify version-sensitive APIs,
security settings, and deployment support with documentation-lookup before
applying examples; these patterns are reference guidance, not a tested guarantee
for every current release. Do not replace an existing toolchain solely to match
an example.
Modern frontend patterns for React, Next.js, and performant user interfaces.
When to Activate
- Building React components (composition, props, rendering)
- Managing state (useState, useReducer, Zustand, Context)
- Implementing data fetching (SWR, React Query, server components)
- Optimizing performance (memoization, virtualization, code splitting)
- Working with forms (validation, controlled inputs, Zod schemas)
- Handling client-side routing and navigation
- Building accessible, responsive UI patterns
Component Patterns
Composition Over Inheritance
// ✅ GOOD: Component composition
interface CardProps {
children: React.ReactNode
variant?: 'default' | 'outlined'
}
export function Card({ children, variant = 'default' }: CardProps) {
return <div className={`card card-${variant}`}>{children}</div>
}
export function CardHeader({ children }: { children: React.ReactNode }) {
return <div className="card-header">{children}</div>
}
export function CardBody({ children }: { children: React.ReactNode }) {
return <div className="card-body">{children}</div>
}
// Usage
<Card>
<CardHeader>Title</CardHeader>
<CardBody>Content</CardBody>
</Card>
Compound Components
interface TabsContextValue {
activeTab: string
setActiveTab: (tab: string) => void
}
const TabsContext = createContext<TabsContextValue | undefined>(undefined)
export function Tabs({ children, defaultTab }: {
children: React.ReactNode
defaultTab: string
}) {
const [activeTab, setActiveTab] = useState(defaultTab)
return (
<TabsContext.Provider value={{ activeTab, setActiveTab }}>
{children}
</TabsContext.Provider>
)
}
export function TabList({ children }: { children: React.ReactNode }) {
return <div className="tab-list">{children}</div>
}
export function Tab({ id, children }: { id: string, children: React.ReactNode }) {
const context = useContext(TabsContext)
if (!context) throw new Error('Tab must be used within Tabs')
return (
<button
className={context.activeTab === id ? 'active' : ''}
onClick={() => context.setActiveTab(id)}
>
{children}
</button>
)
}
// Usage
<Tabs defaultTab="overview">
<TabList>
<Tab id="overview">Overview</Tab>
<Tab id="details">Details</Tab>
</TabList>
</Tabs>
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 1mo ago First seen · 648 lines · 24 tokens per session scan A 708189fbb942
frontend-patterns is a skill published in the GitHub repository sjarmak/coding-agent-workflows (7 stars, last pushed 2d ago), licensed MIT. It adds 24 tokens to every session and 3,709 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). It is 86% identical to frontend-patterns, differing in 73 lines, and is treated as a copy.
frontend-patterns compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| frontend-patternssjarmak/coding-agent-workflows | Skill | 7 | 2d ago | MIT | A | 24 | Claude Code, Codex |
| migrate-class-to-hooksPhaedra-Solutions/cursor-rules | Skill | 4 | 28d ago | MIT | A | 111 | Claude Code, Codex |
| migrate-cra-to-vitePhaedra-Solutions/cursor-rules | Skill | 4 | 28d ago | MIT | A | 118 | Claude Code, Codex |
| afrexai-react-productionLeoYeAI/openclaw-master-skills | Skill | 2.2k | 8d ago | MIT | A | 32 | Claude Code, Codex |
| remotion-best-practicesguanyang/open-agent-hub | Skill | 1.0k | yesterday | MIT | A | 116 | Claude Code |
| airflow-pluginsastronomer/agents | Skill | 464 | 6d ago | Apache-2.0 | A | 147 | Claude Code |
| browser-tracemxyhi/ok-skills | Skill | 518 | 9d ago | Apache-2.0 | A | 88 | Claude Code |