typst-author
यह क्या करती है
यह स्किल एजेंट को Typst फ़ाइलें बनाने, संपादित करने और उनकी समस्याएँ सुलझाने में मदद करती है, और Typst के सिंटैक्स के सवालों के जवाब देती है। यह उन लेखकों और छात्रों के लिए है जो LaTeX के बजाय Typst पसंद करते हैं।
कब इस्तेमाल करें
- ✓जब आप नया Typst दस्तावेज़ या रिपोर्ट बनाना चाहते हैं।
- ✓जब आपको Typst फ़ाइल की कोई त्रुटि ठीक करनी है या उसे कंपाइल कराना है।
- ✓जब आपके पास Typst की फ़ॉर्मेटिंग, स्टाइल या पैकेज के बारे में सवाल है।
Skill का लिंक
https://github.com/jihe520/MathModelAgent/blob/main/skills/typst-author/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“मेरे नोट्स को एक Typst रिपोर्ट में बदलिए जिसमें नंबर वाले पेज, शीर्षक और दो हेडिंग हों, और कोई कंपाइल त्रुटि हो तो उसे ठीक कीजिए।”
हर हफ़्ते 5 नई skills, 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
- लाइसेंस
- —
- अपडेट की गई
- 2/11/2026
कमेंट
- …
इस repository की और skills
मिलती-जुलती skills
obsidian-vault-maintainer
394kयह आपके एजेंट को Obsidian के अनुकूल मेमोरी vault व्यवस्थित रखने देती है, जिसमें काम करने वाले wiki लिंक, एक जैसी properties और सुरक्षित जेनरेटेड सेक्शन हों।
wiki-maintainer
394kयह आपके एजेंट को OpenClaw मेमोरी wiki दोहराए जा सकने वाले पेजों, सुरक्षित मैनेज्ड ब्लॉक्स और विरोधाभास या कमियों की जांच के साथ संभालने देती है।
obsidian
394kयह आपके एजेंट को आधिकारिक Obsidian कमांड-लाइन से Obsidian नोट्स, टास्क, लिंक और properties पढ़ने, खोजने, बनाने और बदलने देती है।