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,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,49 @@
1
+ ---
2
+ nome: Criar skill
3
+ descricao: transformar um jeito de trabalhar numa skill do PrimoCode — cabeçalho certo, gatilho preciso, texto curto e testado
4
+ quando: criar skill, criar uma skill, cria uma skill, crie uma skill, nova skill, new skill, escrever uma skill, skill.md, minha skill, transforma isso em skill, vira skill, virar skill, melhorar a skill, a skill não dispara
5
+ autor: adaptado de "skill-creator" (Anthropic, anthropics/skills, Apache-2.0 — ver LICENSE.txt); resumido, traduzido e ajustado ao formato do PrimoCode
6
+ ---
7
+ Uma skill do PrimoCode é um arquivo `SKILL.md`: um cabeçalho e um texto que vai
8
+ para o modelo quando o pedido bate. É só texto — nada de script, nada que rode.
9
+
10
+ **1. Entenda o que a pessoa quer** (se a conversa já mostrou o jeito dela de
11
+ trabalhar, tire as respostas dali e só confirme):
12
+ - o que a skill faz o agente fazer diferente;
13
+ - em que pedidos ela deve entrar — e em quais NÃO;
14
+ - como fica o resultado quando dá certo.
15
+
16
+ **2. O cabeçalho**
17
+ ```
18
+ ---
19
+ nome: Revisão com lint
20
+ descricao: roda o lint e corrige antes de dizer que terminou
21
+ quando: lint, eslint, terminar, entregar
22
+ autor: você
23
+ ---
24
+ ```
25
+ O `quando:` decide tudo. São palavras ou expressões separadas por vírgula,
26
+ casadas por PALAVRA INTEIRA no pedido (acento e maiúscula não importam). Sem uma
27
+ palavra que bata, a skill nunca entra. Palavra comum demais ("fazer", "tudo",
28
+ "bem") faz ela entrar em conversa que não tem nada a ver.
29
+
30
+ **3. O corpo**
31
+ - CURTO: até uns 2.500 caracteres. Cada pedido leva no máximo 6.000 caracteres
32
+ de skills somadas; a longa demais fica de fora quando outra também bate.
33
+ - No imperativo, e explicando o PORQUÊ ("rode o lint: erro de lint quebra o
34
+ deploy") — regra com motivo é seguida em caso que ela não previu; MAIÚSCULA
35
+ sem motivo, não.
36
+ - Um exemplo do resultado esperado vale mais que três parágrafos.
37
+ - Nada que a pessoa estranharia se lesse: nada de esconder ação, mandar dado
38
+ para fora ou mexer onde ninguém pediu.
39
+
40
+ **4. Teste antes de dar por pronta**
41
+ - Escreva 2 ou 3 pedidos de verdade, do jeito que a pessoa fala. Cada um tem de
42
+ conter uma palavra do `quando:`; "oi, tudo bem?" não pode conter nenhuma.
43
+ - Faça a tarefa com a skill e compare com o que sairia sem ela. Não mudou
44
+ nada? O texto está genérico demais — reescreva.
45
+ - Ajuste com o que a pessoa disser, e teste de novo.
46
+
47
+ **5. Instale.** Salve em `<pasta>/SKILL.md` e diga à pessoa para rodar
48
+ `/install-skill <caminho da pasta>`. Ou ela cria direto pelo `/marketplace` →
49
+ "New Skill". Com `/skills` ela vê a lista e confirma que a nova está ligada.
@@ -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,23 +2,29 @@
2
2
  nome: Depurar de verdade
3
3
  descricao: achar a causa do defeito em vez de tentar consertos no escuro
4
4
  quando: bug, erro, defeito, quebrado, não funciona, nao funciona, falha, corrigir, consertar, debug, depurar, travando
5
- autor: PrimoCode
5
+ autor: PrimoCode; com ideias de "diagnosing-bugs" (Matt Pocock, mattpocock/skills, MIT — ver LICENSE.txt)
6
6
  ---
7
7
  Não conserte antes de reproduzir. Conserto sem reprodução é chute, e chute que
8
8
  "parece ter resolvido" esconde o defeito para ele voltar depois.
9
9
 
10
10
  **A ordem**:
11
11
 
12
- 1. **Reproduza.** Qual entrada, qual passo, o que aconteceu, o que deveria ter
13
- acontecido. Se não reproduz, o defeito não está onde você acha.
12
+ 1. **Reproduza, com UM comando.** Qual entrada, qual passo, o que aconteceu, o
13
+ que deveria ter acontecido — e um comando (teste, `curl`, script) que você
14
+ já rodou e que FALHA neste defeito, com o sintoma que a pessoa viu. Esse é o
15
+ trabalho mais importante: com ele o resto é mecânico. Defeito que só às
16
+ vezes aparece: rode 50 vezes até a falha aparecer o bastante para estudar.
17
+ Se não reproduz, o defeito não está onde você acha.
14
18
  2. **Leia o erro inteiro.** A primeira linha diz o sintoma; a pilha diz o
15
19
  lugar. A linha que importa costuma ser a primeira que é do PROJETO, não da
16
20
  biblioteca.
17
21
  3. **Isole.** Metade de cada vez: o dado está errado ao entrar ou ao sair?
18
22
  Antes ou depois desta função? Cada medição corta o espaço de busca pela
19
23
  metade.
20
- 4. **Entenda a causa.** "Adicionei um try/catch e parou de aparecer" não é
21
- causa, é mordaça.
24
+ 4. **Entenda a causa.** Liste de 3 a 5 hipóteses, da mais provável para a
25
+ menos, cada uma com a sua previsão ("se for X, mudar Y faz sumir") — e teste
26
+ uma de cada vez. "Adicionei um try/catch e parou de aparecer" não é causa, é
27
+ mordaça.
22
28
  5. **Conserte** o menor pedaço possível, e **prove** rodando a reprodução do
23
29
  passo 1.
24
30
 
@@ -27,3 +33,6 @@ depois veja-o passar. Assim o defeito não volta sem ninguém ver.
27
33
 
28
34
  Quando a suspeita for de ambiente (versão, variável, caminho), confira em vez
29
35
  de supor: rode `--version`, imprima a variável, liste a pasta.
36
+
37
+ Log de depuração leva uma marca única (`[DEPURA-7f3]`): no fim, procure a marca e
38
+ apague todos. E diga qual hipótese era a certa — é o que ensina quem vier depois.
@@ -0,0 +1,177 @@
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
@@ -0,0 +1,42 @@
1
+ ---
2
+ nome: Design de verdade
3
+ descricao: cada site com identidade própria, e não a cara de "feito por IA"
4
+ quando: landing, landing page, site, página, pagina, design, interface, tela, layout, visual, bonito, bonita, identidade, marca
5
+ autor: adaptado de "frontend-design" (Anthropic, anthropics/skills, Apache-2.0 — ver LICENSE.txt); resumido e traduzido pelo PrimoCode
6
+ ---
7
+ Trabalhe como o diretor de arte de um estúdio conhecido por dar a cada cliente uma identidade que
8
+ ninguém confunde. O cliente já recusou propostas com cara de modelo pronto.
9
+
10
+ **Não existe modelo.** Toda página começa do zero, e nenhuma sai com a estrutura da anterior.
11
+
12
+ **Comece pelo assunto.** O ramo, os materiais e o vocabulário do negócio são de onde vem a escolha
13
+ visual. Um brinquedo para meninas de 8 anos e um painel de analista financeiro não se parecem em nada.
14
+ Use o conteúdo real do pedido em tudo, e não texto genérico.
15
+
16
+ **Planeje antes de escrever código**, em poucas linhas:
17
+ - cor: 4 a 6 cores com nome e hex;
18
+ - tipo: 1 ou 2 fontes escolhidas para ESTE negócio (não as de sempre), com papéis claros;
19
+ - layout: a ideia em uma frase, e se o conteúdo alinha à esquerda ou ao centro;
20
+ - o único elemento memorável da página.
21
+ Depois releia o plano. O que você faria igual para qualquer página parecida, troque, e diga o que trocou.
22
+
23
+ **As marcas de página gerada por IA.** Evite estas, a não ser que o pedido peça:
24
+ - fundo creme com serifa e destaque terracota; ou fundo quase preto com um único destaque neon;
25
+ - conteúdo picado em cards idênticos, com o mesmo arredondado e a mesma sombra em tudo;
26
+ - rótulo em CAIXA ALTA espaçada acima de todo título, e textos "A · B · C" com ponto no meio;
27
+ - uma única palavra do título em itálico ou em outra cor;
28
+ - números 01 / 02 / 03 quando o conteúdo não é uma sequência de verdade;
29
+ - a mesma entrada com fade subindo em toda seção, e hover em todo card;
30
+ - uma seta "→" em todo botão.
31
+
32
+ **Contenção.** Gaste a ousadia num lugar só: um elemento marcante, o resto calmo. Antes de entregar,
33
+ tire um enfeite. Movimento só num momento orquestrado (a abertura, por exemplo) ou em resposta a uma
34
+ ação da pessoa.
35
+
36
+ **Piso de qualidade, sem anunciar:** funciona no celular, foco de teclado visível, respeita "reduzir
37
+ movimento", contraste acessível, linhas de texto com menos de 80 caracteres.
38
+
39
+ **Texto é design.** Escreva do ponto de vista de quem usa, com palavras simples. O botão diz o que
40
+ acontece ("Agendar horário", e não "Enviar"). Específico vence esperto. Voz ativa, sem enrolação.
41
+
42
+ **Confira com os olhos:** abra a página, tire um print e critique o que viu antes de dizer que terminou.
@@ -0,0 +1,57 @@
1
+ ---
2
+ nome: Documento Word
3
+ descricao: gerar e editar arquivo .docx de verdade (contrato, relatório, currículo) com python-docx, e conferir antes de entregar
4
+ quando: word, docx, documento word, arquivo do word, em word, no word, currículo, contrato, ofício, relatório em word
5
+ autor: PrimoCode
6
+ ---
7
+ Um .docx é um pacote de XML. Não escreva esse XML à mão: use `python-docx`.
8
+
9
+ **1. Prepare.** `python3 --version`. Instale num ambiente só do projeto — o
10
+ Python do sistema costuma recusar `pip install` direto:
11
+ `python3 -m venv .venv && .venv/bin/pip install python-docx`, e rode os scripts
12
+ com `.venv/bin/python`. Tem `pandoc`? Texto simples em Markdown vira .docx com
13
+ `pandoc texto.md -o saida.docx`.
14
+
15
+ **2. Escreva um script** (`gerar_documento.py`), não comandos soltos: dá para
16
+ rodar de novo depois de cada ajuste.
17
+ ```python
18
+ from docx import Document
19
+ from docx.shared import Pt, Cm
20
+ doc = Document()
21
+ s = doc.sections[0]
22
+ s.page_width, s.page_height = Cm(21), Cm(29.7) # A4
23
+ s.left_margin = s.right_margin = Cm(2.5)
24
+ doc.styles['Normal'].font.name = 'Calibri'
25
+ doc.styles['Normal'].font.size = Pt(11)
26
+ doc.add_heading('Contrato de prestação de serviço', level=1)
27
+ doc.add_paragraph('Texto do parágrafo.')
28
+ t = doc.add_table(rows=1, cols=3, style='Table Grid')
29
+ doc.save('contrato.docx')
30
+ ```
31
+
32
+ **3. Estrutura com ESTILO, não com negrito.** Título é `add_heading` (Título 1,
33
+ 2, 3). Assim o Word monta o sumário e o painel de navegação sozinho. Negrito
34
+ manual num parágrafo comum parece título, mas não é.
35
+ - Lista: `style='List Bullet'` ou `'List Number'`.
36
+ - Quebra de página: `doc.add_page_break()`.
37
+ - Imagem: `doc.add_picture('logo.png', width=Cm(4))`.
38
+ - Fonte que a outra pessoa tem (Calibri, Arial, Georgia, Times New Roman). Fonte
39
+ que falta na máquina dela é trocada e o documento muda de tamanho.
40
+ - Número de página precisa de um campo PAGE no rodapé (um trecho de XML
41
+ `fldSimple`); só coloque se pedirem.
42
+
43
+ **4. Editar um .docx que já existe:** `Document('original.docx')`, e salve com
44
+ OUTRO nome — o original fica intacto. O texto de um parágrafo vem quebrado em
45
+ pedaços (`runs`) com formatação diferente; troque dentro do pedaço certo para
46
+ não perder negrito e cor.
47
+
48
+ **5. Confira antes de entregar.**
49
+ - Reabra com o próprio `python-docx` e imprima os títulos e a contagem de
50
+ parágrafos e tabelas: prova que o arquivo abre e tem o conteúdo.
51
+ - Tem LibreOffice (`soffice`)? `soffice --headless --convert-to pdf
52
+ contrato.docx` e abra o PDF para OLHAR as páginas: tabela estourando a
53
+ margem e título órfão no pé da página só aparecem assim.
54
+ - Procure texto de exemplo esquecido ("Lorem", "[NOME]", "XXX").
55
+
56
+ Contrato e documento legal: escreva o que a pessoa pediu, e diga em uma linha
57
+ que vale a leitura de um advogado antes de assinar.
@@ -0,0 +1,47 @@
1
+ ---
2
+ nome: Interface revisada
3
+ descricao: a lista de conferência de uma interface web — clique, formulário, estados, celular, texto, tema e movimento
4
+ quando: revisa a interface, revisar a interface, revise a interface, revisão de interface, revisão de ux, ux, usabilidade, revisa a tela, revisa o layout, formulário, dark mode, modo escuro, responsivo, no celular
5
+ autor: PrimoCode
6
+ ---
7
+ Revise com a tela FUNCIONANDO no navegador, não só lendo o código. Para cada
8
+ problema diga onde está (arquivo:linha ou a tela), o que acontece com quem usa e
9
+ a correção. Primeiro o que impede alguém de usar; acabamento vai no fim.
10
+
11
+ **Clique e toque**
12
+ - O que é clicável é `button` ou `a`, com hover, estado pressionado e foco
13
+ visível (`:focus-visible`).
14
+ - Alvo de toque de pelo menos 44×44px. Nada importante escondido só no hover.
15
+ - Ação que demora mostra que está trabalhando e não pode ser enviada duas vezes.
16
+ - Ação que apaga pede confirmação ou oferece desfazer.
17
+ - O endereço guarda o estado (aba, filtro, página): o voltar do navegador e o
18
+ link compartilhado levam ao mesmo lugar.
19
+
20
+ **Formulário**
21
+ - Todo campo tem `label` ligado a ele. Placeholder não é label.
22
+ - `type`, `inputmode` e `autocomplete` certos (email, tel, one-time-code): o
23
+ teclado do celular muda e o preenchimento automático funciona.
24
+ - Nunca bloqueie colar. Enter envia.
25
+ - O erro aparece ao lado do campo, em texto, dizendo como resolver; o foco vai
26
+ para o primeiro erro, e o que a pessoa digitou continua lá.
27
+
28
+ **Os quatro estados de toda tela**: carregando (esqueleto do tamanho do conteúdo,
29
+ sem a tela pular), vazio (o que fazer agora), erro (o que houve e como tentar de
30
+ novo) e cheio (texto longo quebra ou termina em `…`; mil itens não travam).
31
+
32
+ **Layout**
33
+ - De 360px a 1440px sem rolagem para o lado; respeita a área segura do celular
34
+ (`env(safe-area-inset-bottom)`).
35
+ - Imagem com `width`/`height` ou `aspect-ratio`, para a página não pular.
36
+ - Número em coluna com `tabular-nums`; título com `text-wrap: balance`.
37
+
38
+ **Texto**: o botão diz o que acontece ("Salvar endereço", não "OK"). Data e
39
+ dinheiro no jeito brasileiro: `Intl` com `'pt-BR'`, `R$ 1.234,56`.
40
+
41
+ **Tema e movimento**: modo escuro com `color-scheme: dark` (campo e barra de
42
+ rolagem acompanham) e contraste de 4.5:1 nos dois temas. Animação só em
43
+ `transform` e `opacity`, curta (150 a 300ms) e desligada em
44
+ `prefers-reduced-motion`. Nunca `transition: all`.
45
+
46
+ **Feche com a contagem**: quantos impedem o uso, quantos atrapalham, quantos são
47
+ acabamento. E conserte nessa mesma ordem.