primocode 9.8.0-beta.2 → 9.8.0-beta.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (74) hide show
  1. package/README.md +33 -6
  2. package/app/ansi.js +55 -0
  3. package/app/app.css +482 -281
  4. package/app/app.js +888 -315
  5. package/app/index.html +176 -101
  6. package/app/primo-marca.js +58 -1
  7. package/bin/primocode.js +697 -118
  8. package/comandos/explicar.md +14 -0
  9. package/comandos/publicar.md +10 -0
  10. package/comandos/revisar.md +13 -0
  11. package/lib/act.js +130 -26
  12. package/lib/api.js +8 -1
  13. package/lib/app.js +317 -74
  14. package/lib/browser.js +79 -3
  15. package/lib/catalogo.js +11 -3
  16. package/lib/checkpoint-git.js +218 -0
  17. package/lib/checkpoint.js +249 -0
  18. package/lib/claude-engine.js +25 -3
  19. package/lib/comandos-extra.js +481 -0
  20. package/lib/comandos.js +104 -0
  21. package/lib/config.js +21 -4
  22. package/lib/estudio/acervo-site.js +157 -0
  23. package/lib/estudio/assets.js +77 -3
  24. package/lib/estudio/cinema.js +354 -0
  25. package/lib/estudio/composicao.js +470 -0
  26. package/lib/estudio/edicao.js +450 -0
  27. package/lib/estudio/impacto.js +263 -0
  28. package/lib/estudio/index.js +769 -5
  29. package/lib/estudio/plano.js +5 -2
  30. package/lib/estudio/remotion.js +228 -23
  31. package/lib/estudio/slides.js +34 -30
  32. package/lib/fala.js +95 -1
  33. package/lib/local/cerebro.json +361 -180
  34. package/lib/local/entrada.js +18 -8
  35. package/lib/local/motor-cli.js +1 -1
  36. package/lib/mencoes.js +98 -0
  37. package/lib/offline.js +168 -0
  38. package/lib/painel.js +291 -0
  39. package/lib/perigo.js +256 -0
  40. package/lib/pre-leitura.js +118 -0
  41. package/lib/repeticao.js +4 -2
  42. package/lib/skills.js +6 -1
  43. package/lib/tempos.js +62 -0
  44. package/lib/ui.js +171 -17
  45. package/package.json +3 -2
  46. package/skills/apresentacao-pptx/SKILL.md +52 -0
  47. package/skills/cartaz-de-arte/LICENSE.txt +202 -0
  48. package/skills/cartaz-de-arte/SKILL.md +47 -0
  49. package/skills/criar-skill/LICENSE.txt +202 -0
  50. package/skills/criar-skill/SKILL.md +49 -0
  51. package/skills/depurar-de-verdade/LICENSE.txt +21 -0
  52. package/skills/depurar-de-verdade/SKILL.md +14 -5
  53. package/skills/design-de-verdade/LICENSE.txt +177 -0
  54. package/skills/design-de-verdade/SKILL.md +42 -0
  55. package/skills/documento-word/SKILL.md +57 -0
  56. package/skills/interface-revisada/SKILL.md +47 -0
  57. package/skills/me-ensina/LICENSE.txt +21 -0
  58. package/skills/me-ensina/SKILL.md +27 -0
  59. package/skills/me-entrevista/LICENSE.txt +21 -0
  60. package/skills/me-entrevista/SKILL.md +27 -0
  61. package/skills/motion-de-primeira/SKILL.md +1 -1
  62. package/skills/pdf-bonito/SKILL.md +48 -0
  63. package/skills/planilha-excel/SKILL.md +47 -0
  64. package/skills/react-sem-dor/SKILL.md +48 -0
  65. package/skills/revisao-antes-de-entregar/LICENSE.txt +21 -0
  66. package/skills/revisao-antes-de-entregar/SKILL.md +6 -1
  67. package/skills/site-com-motion/SKILL.md +39 -0
  68. package/skills/temas-prontos/LICENSE.txt +202 -0
  69. package/skills/temas-prontos/SKILL.md +50 -0
  70. package/skills/testar-o-site/LICENSE.txt +202 -0
  71. package/skills/testar-o-site/SKILL.md +46 -0
  72. package/skills/video-no-remotion/SKILL.md +48 -0
  73. package/studio/narrar.py +111 -10
  74. package/studio/rostos.py +52 -0
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Matt Pocock
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,27 @@
1
+ ---
2
+ nome: Me ensina
3
+ descricao: ensina um assunto em aulas curtas e bonitas, lembrando do que a pessoa já aprendeu
4
+ quando: me ensina, me ensine, quero aprender, aula, aprender a, como funciona, me explica, me explique, curso, estudar
5
+ autor: adaptado de "teach" (Matt Pocock, mattpocock/skills, MIT — ver LICENSE.txt); resumido e traduzido pelo PrimoCode
6
+ ---
7
+ A pessoa quer APRENDER, não só receber a resposta pronta. Ensinar é um processo de várias sessões,
8
+ e a pasta de trabalho guarda onde ela está:
9
+
10
+ - `MISSAO.md`: por que ela quer aprender isso, em duas ou três frases. Toda aula se apoia nela.
11
+ Se não existe, pergunte antes o porquê e escreva.
12
+ - `aulas/0001-<assunto>.html`: cada aula é UM arquivo HTML sozinho, que ensina UMA coisa pequena.
13
+ - `aprendido/0001-<assunto>.md`: o que ela já aprendeu e o que ainda confunde. Leia antes de
14
+ preparar a próxima aula: a aula certa é a que está logo além do que ela já sabe.
15
+
16
+ **A aula.** Curta, pra terminar em poucos minutos, com UMA vitória concreta no fim (fez funcionar,
17
+ acertou o exercício). Bonita e fácil de reler, com boa tipografia, porque ela volta nela depois.
18
+ Tem um exemplo real e um exercício. Indica UMA fonte confiável pra ir além, que você pesquisou, e não
19
+ tirou da memória. Abra a aula no navegador quando terminar.
20
+
21
+ **Aprender de verdade, e não só a sensação de aprender:**
22
+ - faça ela LEMBRAR sem olhar (perguntas no começo da aula sobre a aula anterior);
23
+ - espace: volte num assunto de dias atrás;
24
+ - misture: exercício que junta o novo com o velho.
25
+
26
+ Depois de cada aula, atualize `aprendido/` com o que ficou firme e o que ainda está frágil. Fale
27
+ simples, sem jargão, e sem fingir que ela já sabe o que não sabe.
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Matt Pocock
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,27 @@
1
+ ---
2
+ nome: Me entrevista
3
+ descricao: antes de construir, faz as perguntas certas em rodadas, cada uma com a resposta que ele recomenda
4
+ quando: me pergunta, me entrevista, planejar, planeja comigo, ideia, tenho uma ideia, antes de começar, antes de comecar, tira as dúvidas, tira as duvidas, não sei por onde, nao sei por onde, me ajuda a decidir
5
+ autor: adaptado de "grilling" (Matt Pocock, mattpocock/skills, MIT — ver LICENSE.txt); traduzido pelo PrimoCode
6
+ ---
7
+ Entreviste a pessoa até os dois entenderem a mesma coisa. Só depois disso comece a construir.
8
+
9
+ Pense no plano como uma árvore de decisões: cada decisão abre as que dependem dela. Trabalhe em
10
+ RODADAS. Em cada rodada, pergunte só o que já dá pra decidir agora, sem adivinhar resposta que ainda
11
+ não veio. Numere as perguntas e dê a sua recomendação em cada uma:
12
+
13
+ ❓ **P1 · <o assunto>**: <a pergunta, com as opções, em palavras simples>
14
+ ➡️ <o que você recomenda, e por quê, em uma linha>
15
+
16
+ Espere as respostas antes da próxima rodada. Cada resposta muda a árvore: o que ficou decidido libera
17
+ as perguntas que dependiam dele.
18
+
19
+ **Fato é trabalho seu, decisão é da pessoa.** Não pergunte o que dá pra descobrir sozinho (ler um
20
+ arquivo, listar uma pasta, pesquisar): descubra. Pergunte só o que é escolha dela: pra quem é, o que
21
+ conta como pronto, o que fica de fora, quanto pode custar.
22
+
23
+ Fale como quem conversa com alguém que nunca programou: sem sigla, sem jargão. No máximo 4 perguntas
24
+ por rodada.
25
+
26
+ Acabou quando não sobra decisão tomada no chute. Resuma o plano em poucas linhas e pergunte se pode
27
+ começar. Não construa nada antes do "pode".
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  nome: Motion de primeira
3
3
  descricao: como um vídeo criado do zero deixa de parecer feito por máquina
4
- quando: vídeo, video, motion, animação, animacao, anúncio, anuncio, reels, teaser, abertura, comercial, propaganda, estúdio, estudio
4
+ quando: vídeo, video, motion graphics, vídeo animado, video animado, anúncio, anuncio, reels, teaser, vinheta, comercial, propaganda, estúdio, estudio
5
5
  autor: PrimoCode
6
6
  ---
7
7
  Não existe template. Cada propriedade deste vídeo é uma decisão sua, e a
@@ -0,0 +1,48 @@
1
+ ---
2
+ nome: PDF bonito
3
+ descricao: gerar PDF bem diagramado (HTML → PDF pelo Chrome) e ler, juntar e separar PDF com pypdf
4
+ quando: pdf, pdfs, em pdf, gerar pdf, exportar pdf, orçamento, proposta comercial, apostila, e-book, ebook, certificado, juntar pdf, extrair texto
5
+ autor: PrimoCode
6
+ ---
7
+ **Gerar: escreva HTML e imprima com o Chrome.** HTML e CSS diagramam melhor que
8
+ qualquer biblioteca de PDF, e o Chrome já está na máquina (é o navegador que o
9
+ PrimoCode controla).
10
+
11
+ 1. Um `documento.html` com o CSS de impressão:
12
+ ```css
13
+ @page { size: A4; margin: 18mm 16mm; }
14
+ html { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
15
+ h2 { break-after: avoid; }
16
+ tr, .cartao, figure { break-inside: avoid; }
17
+ .capitulo { break-before: page; }
18
+ ```
19
+ Sem o `print-color-adjust`, o Chrome tira as cores de fundo. Fonte do Google
20
+ Fonts funciona; imagem com caminho relativo ao HTML.
21
+ 2. Imprima pelo terminal (no Mac, o Chrome fica em
22
+ `/Applications/Google Chrome.app/Contents/MacOS/Google Chrome`):
23
+ ```
24
+ "<chrome>" --headless=new --no-pdf-header-footer --virtual-time-budget=8000 \
25
+ --print-to-pdf="$PWD/saida.pdf" "file://$PWD/documento.html"
26
+ ```
27
+ O `--virtual-time-budget` dá tempo para a fonte e a imagem carregarem.
28
+
29
+ Documento que se repete com dados (100 certificados, um orçamento por cliente):
30
+ um script que preenche o mesmo HTML e imprime um PDF por item. PDF feito só com
31
+ código, sem HTML: `reportlab`.
32
+
33
+ **Ler e mexer num PDF que já existe** — `python3 -m venv .venv &&
34
+ .venv/bin/pip install pypdf`:
35
+ - texto: `PdfReader('a.pdf').pages[0].extract_text()`;
36
+ - juntar: `PdfWriter()`, `append('a.pdf')`, `append('b.pdf')`, `write('junto.pdf')`;
37
+ - separar ou girar: `writer.add_page(reader.pages[i])`, `page.rotate(90)`.
38
+ Se o texto vem vazio, o PDF é uma FOTO de papel escaneado: precisa de OCR
39
+ (`tesseract`). Diga isso em vez de devolver nada.
40
+
41
+ Nunca escreva por cima do PDF original: salve com outro nome.
42
+
43
+ **Confira antes de entregar**
44
+ - Número de páginas: `len(PdfReader('saida.pdf').pages)` — bate com o esperado?
45
+ - Abra com `browser_open` e OLHE página por página: texto cortado na quebra,
46
+ título sozinho no pé da página, tabela saindo da margem, fundo que sumiu.
47
+ - Procure texto de exemplo esquecido ("Lorem", "[NOME]").
48
+ - Orçamento e proposta: confira a soma dos valores à mão.
@@ -0,0 +1,47 @@
1
+ ---
2
+ nome: Planilha Excel
3
+ descricao: planilha .xlsx viva, com fórmula de verdade, formato brasileiro e conferência, usando openpyxl
4
+ quando: planilha, planilhas, excel, xlsx, csv, google sheets, fórmula, fórmulas, controle de gastos, fluxo de caixa, tabela dinâmica
5
+ autor: PrimoCode
6
+ ---
7
+ Planilha boa é VIVA: a pessoa muda um número e o total muda junto. Então conta é
8
+ fórmula na célula, nunca um valor que você calculou em Python e colou.
9
+
10
+ **1. Prepare.** `python3 -m venv .venv && .venv/bin/pip install openpyxl`, e um
11
+ script (`gerar_planilha.py`) que dá para rodar de novo a cada ajuste.
12
+
13
+ **2. Fórmula no openpyxl é em INGLÊS e com vírgula**, mesmo que o Excel da pessoa
14
+ mostre em português: escreva `=SUM(B2:B31)`, `=IF(C2>0,"ok","falta")`,
15
+ `=VLOOKUP(...)`. O Excel traduz ao abrir (vira `SOMA`, com `;`). Escrever
16
+ `=SOMA(B2:B31;...)` no arquivo dá erro.
17
+
18
+ **3. Estrutura que dura**
19
+ - Uma tabela por aba, começando em A1, uma linha de cabeçalho, sem linha em
20
+ branco no meio e sem célula mesclada nos dados.
21
+ - Dados crus numa aba, resumo e gráfico em outra.
22
+ - Cabeçalho em negrito, `ws.freeze_panes = 'A2'` (o cabeçalho fica parado ao
23
+ rolar), `ws.auto_filter.ref = ws.dimensions`, largura de coluna ajustada.
24
+ - Célula que a pessoa preenche com uma cor; célula de fórmula com outra.
25
+
26
+ **4. Formato brasileiro**
27
+ - Dinheiro: `cell.number_format = '"R$" #,##0.00'`. Data: guarde um `date` de
28
+ verdade e use `'DD/MM/YYYY'` — data escrita como texto não ordena nem soma.
29
+ - Porcentagem: guarde 0.15 e use `'0%'`.
30
+
31
+ **5. Gráfico**: `openpyxl.chart` (`BarChart`, `LineChart`, `PieChart`) apontando
32
+ para o intervalo com `Reference`. Título e nome de eixo em português.
33
+
34
+ **6. CSV para o Excel brasileiro**: separador `;`, vírgula decimal e
35
+ `encoding='utf-8-sig'`. Sem o BOM, o Excel mostra "São Paulo"; com vírgula
36
+ como separador, tudo cai numa coluna só.
37
+
38
+ **7. Ler uma planilha que já existe**: `load_workbook('x.xlsx')` traz as fórmulas;
39
+ `data_only=True` traz o último valor calculado (vem `None` se o arquivo nunca
40
+ foi aberto num Excel). Salve com OUTRO nome.
41
+
42
+ **8. Confira antes de entregar.** O openpyxl não calcula fórmula, então:
43
+ - reabra o arquivo e percorra as células de fórmula: todo intervalo aponta para
44
+ onde deve, nenhuma referência a linha vazia ou à aba errada;
45
+ - com LibreOffice (`soffice --headless --convert-to pdf planilha.xlsx`), abra o
46
+ PDF e procure `#REF!`, `#DIV/0!`, `#NAME?` e `###`;
47
+ - teste uma conta à mão: some três valores e compare com o total.
@@ -0,0 +1,48 @@
1
+ ---
2
+ nome: React sem dor
3
+ descricao: componentes React com o estado no lugar certo, sem efeito à toa, sem re-render e sem tela piscando
4
+ quando: react, jsx, tsx, nextjs, next.js, usestate, useeffect, usememo, usecallback, hook, hooks, componente react, re-render, rerender, renderiza duas vezes
5
+ autor: PrimoCode
6
+ ---
7
+ React é simples quando o estado mora no lugar certo. Quase toda dor vem de estado
8
+ duplicado e de efeito que não precisava existir.
9
+
10
+ **1. Estado mínimo.** Guarde só o que não dá para calcular. Nome completo = nome +
11
+ sobrenome: calcule durante o render, não guarde num segundo `useState` que um
12
+ `useEffect` mantém em dia. Estado derivado guardado é bug esperando a hora.
13
+
14
+ **2. Quase sempre você NÃO precisa de `useEffect`.** Efeito é para sincronizar com
15
+ algo FORA do React: API, timer, evento do navegador, biblioteca que não é React.
16
+ - transformar dado para mostrar → calcule no render;
17
+ - reagir a um clique → faça no manipulador do clique;
18
+ - zerar o estado quando uma prop muda → dê uma `key` diferente ao componente.
19
+
20
+ Quando o efeito existe: todas as dependências que ele usa vão na lista, e ele
21
+ devolve a limpeza (tirar o listener, cancelar o timer, ignorar a resposta atrasada
22
+ de um `fetch` com `AbortController`). Em desenvolvimento o React monta, desmonta e
23
+ monta de novo DE PROPÓSITO: se isso quebra algo, falta a limpeza.
24
+
25
+ **3. Buscar dado.** Busca em cascata (o pai busca, depois o filho busca) é a
26
+ lentidão mais comum. Dispare junto (`Promise.all`); no Next.js, busque no
27
+ servidor. Com muita busca, use uma biblioteca de cache (TanStack Query, SWR) em
28
+ vez de reinventar cache dentro de `useEffect`.
29
+
30
+ **4. Lista** leva `key` estável que vem do dado (o id). Índice como `key`
31
+ embaralha o estado quando a lista muda de ordem.
32
+
33
+ **5. Performance, nesta ordem.** Meça primeiro (Profiler do React DevTools).
34
+ Depois: desça o estado para perto de quem usa; passe `children` em vez de
35
+ re-renderizar a árvore inteira; só então `memo`, `useMemo`, `useCallback` — no
36
+ lugar medido, não em tudo. Lista de milhares de itens → virtualização. Tela
37
+ pesada → `lazy` + `Suspense`.
38
+
39
+ **6. Componente pequeno.** Nunca declare um componente DENTRO de outro: ele nasce
40
+ de novo a cada render e perde o estado. Prefira composição (`children`) a um
41
+ componente com dez props booleanas.
42
+
43
+ **7. Formulário**: controlado quando precisa validar enquanto digita; senão,
44
+ `FormData` no envio resolve com menos código.
45
+
46
+ **Antes de entregar**: console sem aviso (key faltando, dependência faltando), o
47
+ `build` do projeto passa, e a tela foi aberta no navegador e USADA, não só
48
+ compilada.
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Matt Pocock
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -2,7 +2,7 @@
2
2
  nome: Revisão antes de entregar
3
3
  descricao: confere o próprio trabalho antes de dizer que acabou
4
4
  quando: pronto, terminar, entregar, finalizar, revisar, conferir, testar, verificar
5
- autor: PrimoCode
5
+ autor: PrimoCode; com ideias de "code-review" (Matt Pocock, mattpocock/skills, MIT — ver LICENSE.txt)
6
6
  ---
7
7
  Antes de dizer que terminou, PROVE. A mentira mais comum de um agente é
8
8
  "pronto" sem prova, e ela custa a confiança inteira.
@@ -19,6 +19,11 @@ O que conta como prova, por tipo de entrega:
19
19
  executar, diga isso em vez de afirmar que funciona.
20
20
  - **Arquivo de configuração**: leia de volta o que escreveu.
21
21
 
22
+ Releia o PEDIDO item por item: cada coisa pedida está feita? Tem algo feito que
23
+ ninguém pediu? Confira isso separado do estilo do código (segue o jeito do
24
+ projeto?): código bonito que faz a coisa errada passa numa conferência e reprova
25
+ na outra, e misturar as duas esconde uma delas.
26
+
22
27
  Releia o seu próprio diff antes de terminar, procurando o que você mesmo
23
28
  quebraria: caminho que não existe, promessa sem await, variável que só existe
24
29
  num dos ramos, texto de exemplo esquecido.
@@ -0,0 +1,39 @@
1
+ ---
2
+ nome: Site com motion
3
+ descricao: movimento em site e landing que parece de estúdio, e não efeito jogado em tudo
4
+ quando: motion, site animado, landing animada, página animada, pagina animada, animação no site, animações no site, animacao no site, com animação, com animacao, com animações, scroll, parallax, transição, transicao, microinteração, microinteracao, efeito, efeitos, gsap, hover, landing, landing page, página, pagina, site, one page
5
+ autor: PrimoCode
6
+ ---
7
+ Movimento em site serve para três coisas: **mostrar a ordem** (o que ler primeiro), **responder à
8
+ pessoa** (clicou, passou o mouse, rolou) e **dar um momento memorável**. Fora disso, é ruído.
9
+
10
+ **Planeje o movimento antes do código**, em três linhas:
11
+ - o momento marcante: UMA coisa (a abertura se montando, o título que se desenha, o produto que gira
12
+ com o scroll);
13
+ - como as seções entram: cada uma do jeito que o conteúdo pede, e não o mesmo fade em todas;
14
+ - a resposta ao toque: botão, card, link, campo.
15
+
16
+ **O que denuncia animação feita por IA:** fade subindo em toda seção; hover que aumenta todo card;
17
+ tudo com a mesma duração; `transition: all`; texto piscando; nada que responda ao scroll.
18
+
19
+ **Como se faz bem:**
20
+ - **Tempo:** resposta ao toque em 120 a 200 ms. Entrada de elemento em 400 a 700 ms. O momento
21
+ marcante pode levar 1 a 1,5 s, uma vez só.
22
+ - **Curva:** nada linear. Para entrar, `cubic-bezier(.2,.8,.2,1)`. Para sair, a curva ao contrário
23
+ e mais curta que a entrada.
24
+ - **Cascata:** itens de uma lista entram com 40 a 80 ms de diferença, e não todos juntos.
25
+ - **Scroll:** `IntersectionObserver` põe uma classe quando a seção aparece, e o CSS anima. Pra algo
26
+ que acompanha o scroll (parallax, barra de progresso, imagem que cresce), use
27
+ `animation-timeline: view()` e deixe a página parada onde isso não existe (`@supports`).
28
+ - **Só `transform` e `opacity`.** Animar `top`, `width`, `height` ou `box-shadow` trava no celular.
29
+ - **Troca de página ou de estado:** a View Transitions API (`document.startViewTransition`), com o
30
+ caminho sem animação quando o navegador não tiver.
31
+ - **Biblioteca só se precisar.** CSS e um pouco de JS resolvem quase tudo. Timeline longa ou texto
32
+ que se quebra letra a letra: GSAP pelo CDN.
33
+
34
+ **Obrigatório:** `@media (prefers-reduced-motion: reduce)` desliga o movimento grande e deixa só
35
+ troca de cor e opacidade. O conteúdo aparece mesmo sem JS: esconda o elemento só depois que o script
36
+ carregou (uma classe `js` no `<html>`).
37
+
38
+ **Confira:** abra a página, role do topo ao fim, e pergunte se cada movimento tem um dos três
39
+ motivos. O que não tiver, tire.
@@ -0,0 +1,202 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright 2026 Anthropic, PBC.
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
@@ -0,0 +1,50 @@
1
+ ---
2
+ nome: Temas prontos
3
+ descricao: 10 combinações de cor e fonte prontas para slides, documento, relatório e página — ou um tema novo feito na hora
4
+ quando: tema, temas, tema pronto, paleta, paletas, paleta de cores, combinação de cores, esquema de cores, escolhe as cores, escolher as cores, que cores, theme
5
+ autor: adaptado de "theme-factory" (Anthropic, anthropics/skills, Apache-2.0 — ver LICENSE.txt); resumido e traduzido pelo PrimoCode
6
+ ---
7
+ Um tema é uma paleta com códigos hex e um par de fontes (título e texto), usado
8
+ igual do começo ao fim da peça.
9
+
10
+ **Como usar**
11
+ 1. Mostre a lista abaixo (nome e para que serve) e pergunte qual a pessoa quer.
12
+ 2. ESPERE ela escolher. Não aplique um tema por conta própria.
13
+ 3. Aplique as cores e as fontes em toda a peça, igual em cada página ou slide.
14
+ 4. Confira o contraste: texto sobre fundo com pelo menos 4.5:1. A cor de destaque
15
+ serve para destacar, não para texto corrido.
16
+
17
+ Se a marca é de uma empresa que existe, as cores são as DELA (leia com
18
+ `estudio_site`), e nenhum tema daqui substitui isso.
19
+
20
+ **Os temas** — 4 cores (a primeira é a mais escura, boa para texto ou fundo)
21
+ · fonte (título em Bold, texto normal) · bom para
22
+ 1. **Oceano profundo** — #1a2332 #2d8b8b #a8dadc #f1faee · DejaVu Sans ·
23
+ corporativo, financeiro, consultoria.
24
+ 2. **Pôr do sol** — #264653 #e76f51 #f4a261 #e9c46a · DejaVu Serif / DejaVu Sans ·
25
+ marketing, evento, criativo.
26
+ 3. **Floresta** — #2d4a2b #7d8471 #a4ac86 #faf9f6 · FreeSerif / FreeSans ·
27
+ sustentabilidade, bem-estar.
28
+ 4. **Minimalista** — #36454f #708090 #d3d3d3 #ffffff · DejaVu Sans · tecnologia,
29
+ arquitetura, dados.
30
+ 5. **Hora dourada** — #4a403a #c1666b #f4a900 #d4b896 · FreeSans · restaurante,
31
+ hotelaria, artesanal.
32
+ 6. **Gelo** — #4a6fa5 #c0c0c0 #d4e4f7 #fafafa · DejaVu Sans · saúde, tecnologia
33
+ limpa.
34
+ 7. **Rosa do deserto** — #5d2e46 #b87d6d #d4a5a5 #e8d5c4 · FreeSans · moda,
35
+ beleza, casamento.
36
+ 8. **Inovação** — #1e1e1e #0066ff #00ffff #ffffff · DejaVu Sans · startup,
37
+ software, IA.
38
+ 9. **Jardim botânico** — #4a7c59 #b7472a #f9a620 #f5f3ed · DejaVu Serif / DejaVu
39
+ Sans · comida, produto natural.
40
+ 10. **Galáxia** — #2b1e3e #4a4e8f #a490c2 #e6e6fa · FreeSans · games,
41
+ entretenimento, luxo.
42
+
43
+ As fontes DejaVu e Free são livres e existem em quase todo sistema. Numa página
44
+ web, troque por uma do Google Fonts do mesmo estilo (sem serifa → Inter; com
45
+ serifa → Source Serif); num .pptx ou .docx, por Arial ou Georgia, que a outra
46
+ máquina com certeza tem.
47
+
48
+ **Nenhum serviu?** Crie um tema na hora a partir do que a pessoa contou: 4 cores
49
+ com hex, 2 fontes e um nome que diga o clima ("Café da manhã", "Arquivo de
50
+ jornal"). Mostre para ela aprovar ANTES de aplicar.