ag-referencia-prompt-guide

ag-referencia-prompt-guide is a skill for Claude Code, Codex from andregusman-raiz/a-gusman-claude. It costs 58 tokens per session (2,861 once invoked), scanned A, original, MIT.

A guide for writing structured prompts that ask AI tools to generate user interfaces.

In plain words
What is it for?
Use it before asking Claude, Cursor, Lovable, or v0 to generate a web interface.
Why use it?
It helps developers describe the product context, layout, visual style, constraints, and expected output clearly, reducing repeated prompt revisions.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it before asking Claude, Cursor, Lovable, or v0 to generate a web interface.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/andregusman-raiz/a-gusman-claude/ag-referencia-prompt-guide
Install

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.

Any agent
npx skills add andregusman-raiz/a-gusman-claude --skill ag-referencia-prompt-guide
Clone the repo
git clone --depth 1 https://github.com/andregusman-raiz/a-gusman-claude

Made for: Claude Code, Codex.

Wrote 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.

agentmods badge for ag-referencia-prompt-guide

README.md
[![agentmods](https://agentmods.dev/badge/skills/andregusman-raiz/a-gusman-claude/ag-referencia-prompt-guide/github.svg)](https://agentmods.dev/skills/andregusman-raiz/a-gusman-claude/ag-referencia-prompt-guide)
Your own site
<a href="https://agentmods.dev/skills/andregusman-raiz/a-gusman-claude/ag-referencia-prompt-guide"><img src="https://agentmods.dev/badge/skills/andregusman-raiz/a-gusman-claude/ag-referencia-prompt-guide/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.

agentmods 80×15 button for ag-referencia-prompt-guide

Your own site · 80×15
<a href="https://agentmods.dev/skills/andregusman-raiz/a-gusman-claude/ag-referencia-prompt-guide"><img src="https://agentmods.dev/badge/skills/andregusman-raiz/a-gusman-claude/ag-referencia-prompt-guide.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 58 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,861 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00058 $0.02861
Opus 5 $0.00029 $0.01430
Sonnet 5 $0.00012 $0.00572
Haiku 4.5 $0.00006 $0.00286

Measured 9d ago against content hash f8e35d58a02e, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

ag-referencia-prompt-guide 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 9d 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.

skills/ag-referencia-prompt-guide/SKILL.md · 325 lines

How it starts

The opening of the file, as written. The whole thing — 325 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Prompt Guide — Gerar UI via AI

Inspirado em GlowUp UI (glowupui.io) e validado com o design-library rAIz. Complementa /ag-referencia-design-presentation (taxonomia de 86 layouts). Uso: antes de qualquer geração de UI via Claude/Cursor/Lovable/v0.


Princípio

Builder AI gera o que você descreve, não o que você quer. Prompt fraco = 5-15 iterações queimando créditos. Prompt estruturado = 1-2 shots para resultado utilizável.

A diferença entre um prompt que queima tempo e um que acerta está em quantos tipos de informação ele carrega, não em quão longo é.


Estrutura canônica — 6 blocos

Todo prompt de UI bom tem estes 6 blocos (nesta ordem):

1. Contexto       → quem usa, para quê, em que produto
2. Layout base    → qual a estrutura geométrica pretendida
3. Estilo         → identidade visual + tokens (cores, radius, tipografia, spacing)
4. Referências    → screenshots, URLs de inspiração, ID de variante do design-library
5. Constraints    → stack, dependências permitidas, tamanho, a11y, mobile
6. Entregável     → formato (1 arquivo? múltiplos? spec markdown? prompt otimizado?)

Skippar qualquer bloco = AI inventa. Exceção: Referências é opcional se o layout é simples ou se #1 e #2 já são precisos.


Template mestre

Copiar e preencher placeholders:

# Build: <NOME CURTO DO COMPONENTE>

## Contexto
Você é um designer senior implementando uma seção de <CATEGORIA> para <TIPO DE PRODUTO>.
Usuário final: <PERSONA>. Objetivo: <O QUE O USUÁRIO DEVE FAZER/SENTIR>.

## Layout base
<DESCRIÇÃO ESTRUTURAL EM 1-2 FRASES — ex: "layout 50/50 desktop, stack mobile, form à esquerda, visual à direita">

## Estilo (design tokens)
- Cor primária: <HEX + nome CSS var>
- Cor secundária: <HEX + nome CSS var>
- Radius: <VALOR> (ex: 0.75rem = rounded-xl)
- Typography: <FONT FAMILY + TRACKING>
- Dark mode: <class strategy | data-attribute | nenhum>
- Spacing: <8pt grid | 4pt grid | custom>
- Shadows: <subtle | pronounced | nenhum>
- Motion: <none | subtle — 150-250ms ease-out, sem transition:all, sem ease-in | ver /ag-referencia-motion>

## Referências
- Design-library: <ID da variante — ex: 04b-split-text-image>
- Screenshots: <anexar ou descrever>
- URL inspiração: <opcional>
- Preset estético: <raiz-default | minimalist | brutalist | glass | outro>

## Constraints (stack rAIz)
- React 19 + TypeScript strict
- Tailwind v4 + shadcn/ui
- lucide-react para ícones (sem outras libs de icon)
- Mobile-first: `md:` e `lg:` para breakpoints
- Acessibilidade: aria-labels em elementos interativos sem texto, focus rings visíveis, labels em forms
- Placeholder content em PT-BR
- Tamanho: 50-200 linhas
- Sem business logic — apenas UI + handlers placeholder (`onClick?: () => void`)

## Entregável
<1 arquivo .tsx self-contained | múltiplos arquivos com estrutura X/Y/Z | spec markdown | prompt otimizado para v0>

Read the full file on GitHub · 325 lines

Changes

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.

  1. 9d ago First seen · 325 lines · 58 tokens per session scan A f8e35d58a02e

Subscribe to this mod's changes

ag-referencia-prompt-guide is a skill published in the GitHub repository andregusman-raiz/a-gusman-claude (19 stars, last pushed 3d ago), licensed MIT. It adds 58 tokens to every session and 2,861 once invoked, about $0.0003 per session on Opus 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-09-03.