Token导航 LogoToken导航

Agent Skill · 研究检索

typst-writer(打字员)

typst-writer 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

typst-writer 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为执行命令;许可证为 MIT,第三方扫描有提醒项,按安装量在研究检索类的 73,675 个 Skill 里排第 35,455。

总安装 2,081周安装 85GitHub Stars 24下载 666核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
MIT

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:typst-writer(打字员)
来源仓库:https://github.com/ypares/agent-skills
仓库路径:skills/typst-writer
安装命令:
npx skills add https://github.com/ypares/agent-skills --skill typst-writer
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/ypares/agent-skills --skill typst-writer

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

typst-writer 用于查找、检索和筛选相关信息。适合在 Codex、Claude、Cursor、Gemini CLI 中根据关键词、任务场景或来源线索快速定位候选结果。通过 npx skills add 命令从指定仓库安装,需结合原始 README 核验具体用法。

安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。当前无原始 SKILL.md 内容可参考,功能描述基于通用检索场景推断。

来源仓库内路径:skills/typst-writer

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/ypares/agent-skills --skill typst-writer;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要执行命令,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

typst-writer 怎么安装?

在终端执行 npx skills add https://github.com/ypares/agent-skills --skill typst-writer。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

typst-writer 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

typst-writer 需要什么权限?

权限级别是执行命令。安装流程涉及命令执行,可能通过 npx skills add https://github.com/ypares/agent-skills --skill typst-writer;npx skills add ypares/agent-skills --skill "typst-writer" 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

typst-writer 是免费的吗?

来源标注的许可证是 MIT。本站不代收任何费用,也不托管安装包;能否商用、要不要署名,以许可证原文为准。

typst-writer 用的人多吗?

公开数据是累计安装 2,081 次,近一周安装 85 次,下载 666 次,GitHub 24 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

typst-writer 安全吗?

第三方扫描有提醒项,说明存在需要人工确认的行为。安装前请打开源码看清它读了什么、联网到哪里。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 3 个目录同时收录,说明这个 Skill 流传比较广。
  • 许可证明确为 MIT,商用和分发边界好判断。

先想清楚的地方

  • 需要执行命令,装到常用环境前要先评估影响面。
  • 第三方扫描存在提醒项或未通过项,需要人工逐条确认。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。

不太适合

  • 不能接受 Skill 在你机器上执行命令的人。
  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
typst-writer

打字员 · 本页

2,08124执行命令MIT有提醒

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Typst Writer

This skill provides guidance for writing correct Typst code, with emphasis on avoiding common syntax errors from conflating Typst with other languages.

Core Principles

  1. Never assume syntax from other languages applies - Typst has its own semantics, especially for data structures
  2. Verify uncertain syntax - When unsure, check official documentation
  3. Use idiomatic patterns - Follow Typst conventions for clean, maintainable code

Quick Syntax Reference

Critical distinctions:

  • Arrays: (item1, item2) - parentheses
  • Dictionaries: (key: value, key2: value2) - parentheses with colons
  • Content blocks: [markup content] - square brackets
  • NO tuples - Typst only has arrays

For detailed syntax rules and common patterns, see references/syntax.md.

Documentation Resources

Official Documentation

- main page (JS SPA): https://typst.app/universe - whole registry is just a regular GitHub repo: https://github.com/typst/packages

Searching for Typst Packages

Typst Universe (the official package registry) doesn't have a programmatic API, but you can search for packages via GitHub:

  • Most packages are hosted on GitHub
  • Use gh search, or SearXNG's repos search (see the searxng-search Skill)
  • Example: Search for "typst diagram" or "typst table" in repositories
With GitHub CLI

Direct GitHub search examples:

# Search for typst repos about some topic
gh search repos --language "typst" --json "url,language,description" diagram arrows ...

# List all files in a given repo
gh search code --repo "Jollywatt/typst-fletcher"

# In a repo, search through all files of some type
gh search code --repo "Jollywatt/typst-fletcher" --extension "md" arrow node ...
Via SearXNG

Requires searxng-search Skill

curl "http://localhost:<searxng-port>/search?q=typst+diagram&format=json&categories=repos" | jq '.results[] | select(.engines[] == "github")'

When to Consult Documentation

  • Uncertain about function signatures or parameters
  • Need to verify syntax for less common features
  • Looking for built-in functions or methods
  • Exploring available packages (e.g., fletcher for diagrams, drafting for margin notes, tablex for advanced tables)

Use WebFetch when needed to retrieve current documentation for verification.

Workflow

  1. Before writing: If syntax is unclear, consult references/syntax.md or documentation
  2. While writing:

- Use proper data structure syntax (arrays with (), content with []) - Define functions with #let name(params) = {...} - Use context blocks when accessing state

  1. After writing: Review for Python/other language syntax leaking in

Common Mistakes to Avoid

  • ❌ Calling things "tuples" (Typst only has arrays)
  • ❌ Using [] for arrays (use () instead)
  • ❌ Accessing array elements with arr[0] (use arr.at(0))
  • ❌ Forgetting # prefix for code in markup context
  • ❌ Mixing up content blocks [] with code blocks {}

Example Workflow

// Define custom functions for document elements
#let important(body) = {
  box(
    fill: red.lighten(80%),
    stroke: red + 1pt,
    inset: 8pt,
    body
  )
}

// Use state for counters
#let example-counter = state("examples", 1)

#let example(body) = context {
  let num = example-counter.get()
  important[Example #num: #body]
  example-counter.update(x => x + 1)
}

// Arrays for data
#let factions = (
  (name: "Merchants", color: blue),
  (name: "Artisans", color: green)
)

// Iterate and render
#for faction in factions [
  - #text(fill: faction.color, faction.name)
]

Reading contents from a Typst file

Besides compiling, the typst CLI command can also run queries against a Typst file with typst query, using Typst selectors, and get the result as JSON.

For instance, typst query the_document.typ "heading.where(level: 1)" | jq ".[].body.text" will list all the level-1 section titles present in the document. Sadly, it will not tell you their exact positions in the file, but Typst file are easy to grep.

See [https://typst.app/docs/reference/introspection/query/#command-line-queries online docs about query) for more info.

Package Usage

When needing specialized functionality:

  1. Search for packages at https://typst.app/universe/
  2. Import with #import "@preview/package:version"
  3. Consult package documentation for API

Popular packages:

  • drafting: annotations/comments for work-in-progress docs
  • gentle-clues: callouts, tips, notes, admonitions
  • showybox: general-purpose, customizable text boxes, with headers and footers. E.g. for definitions, theorems or highlighting important paragraphs
  • itemize: nice layouts for item lists, enums, checklists, tree lists, etc.
  • cetz: general diagrams/drawings, with explicit placing (coordinates) - basis of most Typst drawing libraries
  • fletcher: graphs, flowcharts, automata, trees, etc. - automatic placing
  • chronos: sequence diagrams
  • timeliney: Gantt charts
  • herodot: linear timelines
  • lilaq: data visualization and plots
  • tablem: write tables in markdown-like table format - easy control over strokes, merged cells...
  • cmarker: render Markdown (inlined or from separate file) as part as a Typst doc
  • polylux: presentations, slides
  • suiji: random number generation in Typst code
  • zebraw: code listings with line numbers, highlighted lines, inlined Typst comments/explanations etc.
  • lovelace: algorithms/pseudo-code
  • conchord: lyrics with overlayed chord changes, guitar shapes and tabs
  • eqalc: math equations to actual, callable Typst functions
  • jlyfish: Typst as a Julia notebook: embed Julia code inside Typst to generate content, visualizations etc.
  • pyrunner: embed and call *non-I/O* Python code inside Typst

Working with Templates

Typst Universe hosts many pre-built templates for reports, papers, CVs, presentations, and more. Templates provide complete document styling and structure.

Finding Templates

Using a Template

  1. Import the template: #import "@preview/template-name:version": *
  2. Apply it with #show: template-name.with(param: value,...)
  3. Consult template documentation for required and optional parameters

Example:

#import "@preview/bubble:0.2.2": bubble

// Some templates (like bubble) don't use the standard metadata set by `#set document(...)` (for now?),
// so we factor it out:
#let doc-md = (
  title: [My report],
  author: "Claude",
  date: datetime(year: 2025, month: 12, day: 8) // ALWAYS include explicit date in code (so we don't default to date of PDF build)
)

#set document(..doc-md)

#show: bubble.with(
  ..doc-md,
  date: doc-md.date.display("[day]-[month]-[year]"), // some templates want a string here, not a `datetime` object, so we override date here
  subtitle: "A detailed analysis",
  affiliation: "Your Organization",
  main-color: rgb("#FF6B35"),
  color-words: ("important", "key", "critical"),
)

// Your content follows
= Introduction
...

Key differences from packages:

  • Templates typically use #show: to apply styling to the entire document, via one single "main" function
  • Packages provide functions/components you call explicitly
  • Templates often have a title page and document structure built-in

Popular templates: charged-ieee (IEEE papers), bubble (colorful reports), modern-cv (CVs)

Bibliographies and Citations

Typst supports citations and bibliographies using BibTeX (.bib) or Hayagriva (.yml) format files.

See references/bibliography.md

ALWAYS include proper URLs in the bibliography file AS MUCH AS POSSIBLE.

ALWAYS include @ref-name citations in text WHEREVER A REF IS RELEVANT. A good bibliography is useless if not cited.

Complete Document Structure Patterns

This shows an example for academic papers. Most reports you will have to write won't need to be that formal, but it's sort of the canonical example.

"Manual" layout (If needed, e.g. if the user gave specific layout requirements)

#set document(
  title: "Document Title",
  author: "Your Name",
  date: auto,
)

#set page(
  paper: "a4",
  margin: (x: 2.5cm, y: 2.5cm),
  numbering: "1",
)

#set text(size: 11pt)
#set par(justify: true)
#set heading(numbering: "1.")

// Title page
#align(center)[
  #text(size: 24pt, weight: "bold")[Document Title]

  #v(1cm)
  #text(size: 14pt)[Your Name]

  #v(0.5cm)
  #datetime.today().display()
]

#pagebreak()

// Table of contents
#outline(title: "Table of Contents", indent: auto)

#pagebreak()

// Main content
= Introduction
Your introduction text...

= Methods
...

= Results
...

= Conclusion
...

#pagebreak()

// Bibliography
#bibliography("refs.bib", title: "References", style: "ieee")

Using Templates (Simpler)

#import "@preview/charged-ieee:0.1.4": *

#show: ieee.with(
  title: "Your Paper Title",
  authors: (
    (name: "Author One", email: "author1@example.com"),
    (name: "Author Two", email: "author2@example.com"),
  ),
  abstract: [
    Your abstract text here...
  ],
  index-terms: ("keyword1", "keyword2", "keyword3"),
  bibliography: bibliography("refs.bib"), // the ieee template takes care of bibliography itself. That's not always the case
)

// Content starts immediately
= Introduction
Your introduction text...

= Methods
...

= Results
...

= Conclusion
...

Troubleshooting

Missing Font Warnings

If you see "unknown font family" warnings, remove the font specification to use system defaults

Note: Font warnings don't prevent compilation; the document will use fallback fonts

Template/Package Not Found

If import fails with "package not found":

  • Verify exact package name and version on Typst Universe
  • Check for typos in @preview/package:version syntax
  • Ensure network connectivity (packages download on first use)
  • Remember: Typst uses fully qualified imports with specific versions - there's no package cache to update

Compilation Errors

Common fixes:

  • "expected content, found...": You're using code where markup is expected - wrap in #{} or use proper syntax
  • "expected expression, found...": Missing # prefix in markup context
  • "unknown variable": Check spelling, ensure imports are correct
  • Array/dictionary errors: Review syntax - use () for both, dictionaries need key: value, singleton arrays are (elem,)

Performance Issues

For large documents:

  • Use #include "file.typ" to split into multiple files
  • Compile specific pages: typst compile doc.typ output.pdf --pages 1-5
  • Profile compilation (experimental): typst compile --timings doc.typ

平台分布

Claude Code

29.94%
按下载量换算199

OpenCode

24.11%
按下载量换算161

trae

15.57%
按下载量换算104

Antigravity

11.54%
按下载量换算77

Gemini CLI

7.86%
按下载量换算52

kilo

3.09%
按下载量换算21

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

执行命令

安装流程涉及命令执行,可能通过 npx skills add https://github.com/ypares/agent-skills --skill typst-writer;npx skills add ypares/agent-skills --skill "typst-writer" 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在提醒或未通过项,安装前请自行复核。

继续浏览同类 Skills