typst-author
하는 일
이 스킬은 에이전트가 Typst 파일을 만들고, 편집하고, 문제를 해결하도록 돕고, Typst 문법에 관한 질문에 답합니다. LaTeX보다 Typst를 선호하는 작가와 학생을 위한 스킬입니다.
사용하는 경우
- ✓새 Typst 문서나 보고서를 만들고 싶을 때.
- ✓Typst 파일의 오류를 고치고 컴파일되게 해야 할 때.
- ✓Typst 서식, 스타일, 패키지에 대해 질문이 있을 때.
스킬 링크
https://github.com/jihe520/MathModelAgent/blob/main/skills/typst-author/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“제 메모를 Typst 보고서로 바꿔 주세요. 페이지 번호, 제목, 소제목 두 개를 넣고, 컴파일 오류가 있으면 고쳐 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
스킬은 에이전트에게 Typst 파일을 만들고, 편집하고, 서식을 맞추는 기본 레이아웃과 작업 흐름을 제공합니다. 또한 변경 전에 Typst 참고 페이지에서 문법을 확인하도록 안내합니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 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
자주 묻는 질문
Typst가 무엇인가요?
Typst는 문서를 작성하기 위한 마크업 언어로, 목적은 LaTeX와 비슷합니다.
파일 서식도 맞춰 주나요?
설명에 따르면 typstyle 도구를 쓸 수 있을 때 편집 후 서식 검사를 실행하는 기능이 포함되어 있습니다.
템플릿도 도와줄 수 있나요?
네, 템플릿 작업과 패키지 사용을 다룬다고 설명에 나와 있습니다.
상세 정보
작성자의 원본 설명
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
인기도
- GitHub 스타
- 6.3k
- 순위
- #14376
- 라이선스
- —
- 업데이트
- 2026. 11. 2.
댓글
- …