primocode 9.8.0-beta.5 → 9.8.0-beta.7

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 (52) hide show
  1. package/README.md +15 -4
  2. package/app/ansi.js +55 -0
  3. package/app/ide.css +345 -0
  4. package/app/ide.html +183 -0
  5. package/app/ide.js +639 -0
  6. package/bin/primocode.js +338 -88
  7. package/kits/acolhedor/index.html +130 -0
  8. package/kits/acolhedor/script.js +25 -0
  9. package/kits/acolhedor/style.css +146 -0
  10. package/kits/editorial/index.html +115 -0
  11. package/kits/editorial/script.js +19 -0
  12. package/kits/editorial/style.css +112 -0
  13. package/kits/premium/index.html +83 -0
  14. package/kits/premium/script.js +11 -0
  15. package/kits/premium/style.css +87 -0
  16. package/kits/vitrine/index.html +108 -0
  17. package/kits/vitrine/script.js +20 -0
  18. package/kits/vitrine/style.css +117 -0
  19. package/lib/act.js +66 -7
  20. package/lib/app.js +41 -6
  21. package/lib/browser.js +79 -3
  22. package/lib/checkpoint-git.js +218 -0
  23. package/lib/checkpoint.js +159 -44
  24. package/lib/comandos-extra.js +481 -0
  25. package/lib/config.js +5 -2
  26. package/lib/ide.js +337 -0
  27. package/lib/kits.js +165 -54
  28. package/lib/pre-leitura.js +118 -0
  29. package/lib/repeticao.js +4 -2
  30. package/lib/skills.js +6 -1
  31. package/lib/tempos.js +62 -0
  32. package/lib/ui.js +171 -17
  33. package/package.json +2 -2
  34. package/skills/apresentacao-pptx/SKILL.md +52 -0
  35. package/skills/cartaz-de-arte/LICENSE.txt +202 -0
  36. package/skills/cartaz-de-arte/SKILL.md +47 -0
  37. package/skills/criar-skill/LICENSE.txt +202 -0
  38. package/skills/criar-skill/SKILL.md +49 -0
  39. package/skills/depurar-de-verdade/LICENSE.txt +21 -0
  40. package/skills/depurar-de-verdade/SKILL.md +14 -5
  41. package/skills/documento-word/SKILL.md +57 -0
  42. package/skills/interface-revisada/SKILL.md +47 -0
  43. package/skills/pdf-bonito/SKILL.md +48 -0
  44. package/skills/planilha-excel/SKILL.md +47 -0
  45. package/skills/react-sem-dor/SKILL.md +48 -0
  46. package/skills/revisao-antes-de-entregar/LICENSE.txt +21 -0
  47. package/skills/revisao-antes-de-entregar/SKILL.md +6 -1
  48. package/skills/temas-prontos/LICENSE.txt +202 -0
  49. package/skills/temas-prontos/SKILL.md +50 -0
  50. package/skills/testar-o-site/LICENSE.txt +202 -0
  51. package/skills/testar-o-site/SKILL.md +46 -0
  52. package/skills/video-no-remotion/SKILL.md +48 -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,47 @@
1
+ ---
2
+ nome: Cartaz de arte
3
+ descricao: pôster, capa ou peça de arte parada que parece feita à mão por um mestre, e não por modelo pronto
4
+ quando: cartaz, cartazes, pôster, arte abstrata, peça de arte, obra de arte, capa de álbum, capa de disco, capa de livro, arte para imprimir, arte pra imprimir, quadro para parede
5
+ autor: adaptado de "canvas-design" (Anthropic, anthropics/skills, Apache-2.0 — ver LICENSE.txt); resumido e traduzido pelo PrimoCode
6
+ ---
7
+ Trabalhe em dois passos: primeiro uma FILOSOFIA visual, depois a peça que a
8
+ expressa. É isso que impede o resultado de parecer um modelo pronto.
9
+
10
+ **1. A filosofia** (escreva num `filosofia.md`, curto):
11
+ - um nome de movimento de 1 ou 2 palavras ("Silêncio geométrico", "Poesia de
12
+ concreto", "Meditação analógica");
13
+ - um parágrafo dizendo como ele aparece em espaço e forma, cor e material,
14
+ escala e ritmo, composição e hierarquia.
15
+ Ela fala de linguagem visual, não do assunto. E diz, com todas as letras, que a
16
+ peça tem de parecer resultado de horas de trabalho cuidadoso de alguém no topo do
17
+ ofício.
18
+
19
+ **2. A referência escondida.** Tire do pedido um fio do assunto e tece ele na
20
+ forma, na cor e no ritmo, sem anunciar. Quem conhece o assunto sente; quem não
21
+ conhece vê uma composição bonita. Como um músico citando outra música.
22
+
23
+ **3. A peça**
24
+ - 90% visual, 10% texto. Texto é gesto raro: uma palavra grande, rótulos
25
+ pequenos. Nunca parágrafo.
26
+ - Padrões que se repetem, formas perfeitas, paleta curta e intencional.
27
+ - NADA encosta na borda, nada se sobrepõe sem querer, tudo com margem. Isso não
28
+ se negocia.
29
+ - Fontes: 1 ou 2, escolhidas para esta peça (`estudio_midia acao:"fontes"`).
30
+ - Nada copiado de artista existente: inspiração em movimento, nunca em obra.
31
+
32
+ **Como fazer o arquivo**, no PrimoCode:
33
+ - pelo Estúdio: `estudio_projeto` com formato "arte" → `estudio_plano` com uma
34
+ cena parada → `estudio_render`, que entrega o PDF;
35
+ - ou um HTML/SVG do tamanho exato da peça, fotografado inteiro pelo Chrome:
36
+ `"<chrome>" --headless=new --hide-scrollbars --window-size=1123,1587
37
+ --screenshot="$PWD/arte.png" "file://$PWD/arte.html"` (A3 em 96dpi; o
38
+ `browser_screenshot` pega só o pedaço visível da janela).
39
+
40
+ **4. O segundo passe.** Olhe o resultado e refine TIRANDO, não acrescentando.
41
+ Vontade de pôr mais uma forma ou um filtro? Pare e pergunte: como deixar o que já
42
+ existe mais coeso? Alinhe, ajuste o respiro, reduza a paleta.
43
+
44
+ Mais de uma página: cada uma é uma variação da mesma filosofia, como páginas de
45
+ um livro de arte que contam uma história juntas.
46
+
47
+ Entregue a peça e o `filosofia.md`, e explique em duas linhas a ideia por trás.
@@ -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,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.