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 contactandrewchl-wq/turtle-mcp --skill frontend-component-patternsgit clone --depth 1 https://github.com/contactandrewchl-wq/turtle-mcpWrote 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/contactandrewchl-wq/turtle-mcp/frontend-component-patterns)<a href="https://agentmods.dev/skills/contactandrewchl-wq/turtle-mcp/frontend-component-patterns"><img src="https://agentmods.dev/badge/skills/contactandrewchl-wq/turtle-mcp/frontend-component-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/contactandrewchl-wq/turtle-mcp/frontend-component-patterns"><img src="https://agentmods.dev/badge/skills/contactandrewchl-wq/turtle-mcp/frontend-component-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.00063 | $0.02517 |
| Opus 5.5 | $0.00025 | $0.01007 |
| Sonnet 5.5 | $0.00013 | $0.00503 |
| Haiku 4.5 | $0.00006 | $0.00252 |
Grade A, and why
frontend-component-patterns scanned grade A with 0 findings 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.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 139 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Frontend component patterns
Cuándo usar
- Crear un componente nuevo de UI compleja (formulario, tabla, modal, lista virtualizada).
- Refactorizar un componente que creció a >300 líneas o tiene >5 props booleanos.
- Resolver problemas de rerender, claves o estado compartido.
Composición
- Slots/children sobre props de configuración. Si vas por
variant="primary-large-icon-loading", partilo en partes componibles. - Headless + estilos para libraries reutilizables (Radix, Headless UI, shadcn): la lógica vive en un hook, el render en JSX.
- Compound components para grupos:
<Tabs><TabList><Tab/></TabList><TabPanel/></Tabs>. Mejor API que props array.
Estado
| Decisión | Regla |
|---|---|
| ¿Local o compartido? | Local hasta que tres componentes no relacionados lo necesiten. |
| ¿Server o cliente? | Server state (datos remotos) → React Query / SWR / TanStack Query. Client state → useState/signals/stores. No mezclar. |
| ¿Global? | Solo si cruza rutas o capas. Zustand/Pinia/Svelte stores antes que Redux. |
| ¿Form? | React Hook Form / VeeValidate / Felte. Nunca useState por campo en formularios >3 campos. |
Controlled vs uncontrolled
- Controlled por defecto en formularios con validación viva.
- Uncontrolled (refs +
defaultValue) para inputs simples sin reactividad — más rápido, menos rerenders. - Nunca mezclar: o
valueodefaultValue, no ambos.
Listas
keyestable y único, nunca el índice si la lista cambia de orden.- Listas >100 ítems: virtualizar (
react-window,vue-virtual-scroller,svelte-virtual-list). - Paginación o scroll infinito >50 ítems. No render todo "porque cabe".
Memoización
- No memoizar por reflejo.
useMemo/memo/computedsolo cuando hay profiler que lo justifique. - Sí memoizar: cálculos pesados (>10 ms), referencias pasadas a
React.memo, dependencias deuseEffectque disparan red. - Vue 3 / Svelte: la reactividad fina ya memoiza; intervenir solo en cuellos medidos.
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 · 139 lines · 63 tokens per session scan A bfab2b7d00c2
frontend-component-patterns is a skill published in the GitHub repository contactandrewchl-wq/turtle-mcp (2 stars, last pushed 3mo ago), licensed MIT. It adds 63 tokens to every session and 2,517 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other skills, from other repositories
pro-ppt
A presentation-making workflow that turns a speech or slide content into images for polished business-style slides. It first plans each slide and then generates the slide images.
zootopia-ppt
A presentation-making workflow that turns a speech or slide content into images showing an animated world of human-like animals. It first plans each slide and then generates the slide images.
kanban-tasks
A task-board workflow for breaking work into cards and moving them through stages such as inbox, ready, doing, review, and done. It also includes a background service and a web interface for the board.
flint-chart-author
A guide for turning structured data, such as tables or query results, into Flint chart specifications. Flint is a visualization format that describes the data, chart type, and visual mappings for rendering.
ocr
OCR image files using the Qwen VL model via the bundled scripts/ocr.py (lives in this skill's directory, NOT your cwd). Use when the user asks to extract text from an image, perform OCR on a photo or screenshot, or recognize characters in an image file (.jpg, .jpeg, .png, .gif, .webp). Requires QWENAPIKEY and…
daily-digest
Build a daily digest from curated sources. Follow the output contract strictly.