typst-author
O que ela faz
Esta skill ajuda um agente a criar, editar e solucionar problemas em arquivos Typst, e responde perguntas sobre a sintaxe do Typst. É para escritores e estudantes que preferem o Typst ao LaTeX.
Quando usar
- ✓Quando você quer criar um novo documento ou relatório em Typst.
- ✓Quando você precisa corrigir um erro em um arquivo Typst ou fazê-lo compilar.
- ✓Quando você tem uma dúvida sobre formatação, estilos ou pacotes do Typst.
Link da skill
https://github.com/jihe520/MathModelAgent/blob/main/skills/typst-author/SKILL.mdCopie e cole na sua IA (Claude, ChatGPT ou Cursor) pedindo para seguir as instruções.
Como usar
O jeito mais fácil: copie a mensagem e cole na sua IA. Ela lê a skill e segue as instruções.
Mensagem pronta para colar
Para Claude Code, Codex ou Cursor: rode na pasta do projeto e a skill fica instalada.
Baixe o SKILL.md e coloque na pasta de skills do seu agente.
Exemplo do que pedir para a IA
“Transforme minhas anotações em um relatório Typst com páginas numeradas, um título e dois subtítulos, e corrija os erros de compilação.”
5 skills novas por semana. 1 minuto de leitura.
Como funciona
A skill dá ao agente um layout inicial e fluxos de trabalho para criar, editar e formatar arquivos Typst. Ela também aponta o agente para as páginas de referência do Typst, para conferir a sintaxe antes de fazer mudanças.
Conteúdo técnico (SKILL.md original)
Texto original do autor, em inglês, direto do GitHub.
typst-author skill
Overview
This skill helps agents generate, edit, and reason about Typst documents. It provides quick‑start examples, detailed workflows, and links to the full Typst documentation (guides, tutorials, reference).
Minimal document example
#set document(title: "My Document", author: "Author Name")
#set page(numbering: "1")
#set text(lang: "en")
// Enable paragraph justification and character-level justification
#set par(
justify: true,
justification-limits: (
tracking: (min: -0.012em, max: 0.012em),
spacing: (min: 75%, max: 120%),
)
)
#title[My Document]
= Heading 1
This is a paragraph in Typst.
== Heading 2
#lorem(50)
Workflows
- Creating a new Typst project: Use the "Minimal document example" above as a starting point. Skim the tutorial for the basics (docs/tutorial/writing-in-typst.md), then create the
.typfile(s). After each.typedit, follow the post-edit formatting checks below whentypstyleis available. - Editing existing content: Locate the target text and apply changes; confirm syntax against the reference when needed (docs/reference/). After each modified
.typfile, follow the post-edit formatting checks below. - Formatting & Styling: Consult the styling guide (docs/reference/styling.md) for
set rule,show rule, and custom themes.
Documentation
- Syntax & foundations:
docs/reference/syntax.md - Styling & show/set rules:
docs/reference/styling.md - Scripting & runtime behavior:
docs/reference/scripting.md - Page setup & tables:
docs/guides/page-setup.mdanddocs/guides/tables.md - Task-oriented authoring help:
docs/tutorial/writing-in-typst.md,docs/guides/*.md, anddocs/reference/**/*.md
Detailed instructions
- PRIORITY: Trust local documentation. Your internal training data regarding Typst may be outdated or hallucinated. Always verify function names, parameters, and syntax against the local
docs/folder before generating code. - Read the relevant documentation using local file search and open tools on the paths above.
- Use local docs for syntax and reference questions. Verify syntax, function names, parameters, and reference behavior from the bundled docs. Run a minimal Typst probe only when runtime or evaluation behavior remains unclear after checking the docs.
- Generate or modify the
.typsource according to the user's request. - Run the post-edit formatting checks below for every
.typfile you created or edited in that pass. - Validate with
typst compileafter the formatting decision is complete when you created or edited.typfiles, or when the user explicitly asks for verification (if tool access is allowed). - Summarize touched files and outcomes. Provide full
.typcontent only when the user requests it or when direct editing is not possible, and optionally include a rendered preview (PDF/HTML).
Probing uncertain behavior
- Use a probe when the bundled docs do not settle runtime or evaluation behavior.
- Model the case with Typst scripting as described in docs/reference/scripting.md.
- When a probe is necessary, prefer a fileless probe through stdin instead of creating scratch
.typfiles. Expose the value withmetadata(...) <probe>and read it withtypst query - "<probe>" --field value --one. See docs/reference/introspection/query.md and docs/reference/introspection/metadata.md. - Example:
printf '#metadata(1 + 2) <probe>\n' | typst query - "<probe>" --field value --one
Post-edit formatting checks
- Check whether
typstyleis available withcommand -v typstyle. If it is unavailable, skip the remaining formatting checks. - After each
.typfile modification, runtypstyle --check <file>for the file you just created or edited. - If
typstyle --checkfails, inspect the formatter changes withtypstyle --diff <file>before deciding what to do. - Apply formatting with
typstyle -i <file>only when the formatter changes are limited to a newly created file or to code you created or edited in the current task. - Stop and ask the user when formatting would change untouched pre-existing code. If the diff reaches outside your own edits, or if you cannot confidently prove that e
Perguntas frequentes
O que é Typst?
Typst é uma linguagem de marcação para escrever documentos, com finalidade parecida à do LaTeX.
Ela formata meus arquivos?
A skill inclui verificações de formatação que rodam depois das edições, quando a ferramenta typstyle está disponível.
Ela ajuda com templates?
Sim, a descrição diz que ela cobre o trabalho com templates e o uso de pacotes.
Detalhes
Descrição original do autor
Generate idiomatic Typst (.typ) code, edit and troubleshoot Typst documents and projects, and answer Typst syntax/reference questions. Use when working with .typ files or when the user explicitly asks for Typst document creation, editing, debugging, compilation, formatting, template work, or package usage.
repo: jihe520/MathModelAgent
Popularidade
- Estrelas no GitHub
- 6,3 mil
- Posição no ranking
- #14376
- Licença
- —
- Atualizada em
- 02/11/2026
Comentários
- …
Mais skills deste repositório
Skills parecidas
obsidian-vault-maintainer
394 milAjuda seu agente a manter um vault de memória compatível com o Obsidian organizado, com links funcionando, propriedades consistentes e seções seguras.
wiki-maintainer
394 milAjuda seu agente a manter uma wiki de memória do OpenClaw com páginas repetíveis, blocos gerenciados seguros e verificações de contradições ou lacunas.
obsidian
394 milPermite que seu agente leia, pesquise, crie e edite notas, tarefas, links e propriedades do Obsidian usando a linha de comando oficial do Obsidian.