Agent skill

Update Typst Grammar Authoring

by typst-doc-cn in typst-doc-cn/tutorial

A skill your agent uses when maintaining the portable typst-grammar-authoring skill from this repository's canonical Typst grammar source.

Apache-2.0Auto-check passed

Install Update Typst Grammar Authoring

skills CLI
$ npx skills add typst-doc-cn/tutorial --skill update-typst-grammar-authoring -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install typst-doc-cn/tutorial update-typst-grammar-authoring --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/typst-doc-cn/tutorial.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.codex/skills/update-typst-grammar-authoring .claude/skills/update-typst-grammar-authoring && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
update-typst-grammar-authoring
GitHub stars
220
Token cost
~611 tokens
SKILL.md length
190 words
Files
4 (incl. scripts, references)
Skills in repo
2
Repo updated
First seen
Licence
Apache-2.0

At a glance

A skill your agent uses when maintaining the portable typst-grammar-authoring skill from this repository's canonical Typst grammar source.

  • Works in 6 steps: Review the source edits in… → Regenerate the portable skill body and… → Review the generated diff for the… → …
  • Maintaining the portable typst-grammar-authoring skill from this repositorys canonical Typst grammar source
  • SKILL.md covers Inputs And Outputs, Workflow and Guardrails
  • Runs Python scripts from its folder; calls python, git and rg

What it does

Update Typst Grammar Authoring is an agent skill from typst-doc-cn/tutorial. Use when maintaining the portable typst-grammar-authoring skill from this repository's canonical Typst grammar source.

Its SKILL.md is about 610 tokens, which your agent loads only when the skill is triggered. The skill folder holds 6 other files, including scripts and reference files (for example `agents/openai.yaml`, `references/grammar-catalog.json` and `scripts/generate_grammar_catalog.py`).

The licence is Apache-2.0.

When your agent uses it

  • Maintaining the portable typst-grammar-authoring skill from this repositorys canonical Typst grammar source

Example prompts

  • “/update-typst-grammar-authoring”

Requirements

  • Python 3

Workflow steps

6 steps, taken from the first numbered list in SKILL.md.

  1. Review the source edits in src/tutorial/reference-grammar.typ and confirm
  2. Regenerate the portable skill body and traceability artifact
  3. Review the generated diff for the portable skill and the traceability JSON
  4. Verify the portable skill stayed single-file
  5. Verify the portable skill's command examples stayed platform-neutral and did
  6. If the regenerated lookup looks correct, keep the portable skill focused on

What it can do on your machine

Read from SKILL.md and the folder at commit b2e19b6. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 1 file in scripts/ (Python), which the agent can run.

    Shell commands in SKILL.md call:

    • python
    • git
    • rg

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use git, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Update Typst Grammar Authoring loads about 611 tokens when it runs, and up to ~21k if it reads all its reference files. Until then it costs about 37 tokens; SKILL.md has 190 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~37
When it runs · the whole SKILL.md, loaded when a task matches
~611
With references · SKILL.md plus every file in references/, read only if the agent opens them
~21k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

The full file from typst-doc-cn/tutorial at commit b2e19b6, republished under its Apache-2.0 licence (© typst-doc-cn). 190 words, ~611 tokens.

Download SKILL.mdSave it as .claude/skills/update-typst-grammar-authoring/SKILL.md (or your agent's skills folder). This skill also uses 3 other files; get the full folder from GitHub.
name
update-typst-grammar-authoring
description
Use when maintaining the portable typst-grammar-authoring skill from this repository's canonical Typst grammar source.
metadata.short-description
Regenerate the portable Typst grammar skill

Update Typst Grammar Authoring

Use this skill when a maintainer needs to refresh the portable typst-grammar-authoring skill after changing the canonical grammar examples in src/tutorial/reference-grammar.typ.

Inputs And Outputs

  • Canonical source: src/tutorial/reference-grammar.typ
  • Portable skill: .codex/skills/typst-grammar-authoring/SKILL.md
  • Traceability artifact: .codex/skills/update-typst-grammar-authoring/references/grammar-catalog.json

Workflow

  1. Review the source edits in src/tutorial/reference-grammar.typ and confirm they are ready to publish into the portable skill.

  2. Regenerate the portable skill body and traceability artifact:

    sh
    python .codex/skills/update-typst-grammar-authoring/scripts/generate_grammar_catalog.py
  3. Review the generated diff for the portable skill and the traceability JSON:

    sh
    git diff -- .codex/skills/typst-grammar-authoring/SKILL.md .codex/skills/update-typst-grammar-authoring/references/grammar-catalog.json
  4. Verify the portable skill stayed single-file:

    powershell
    Get-ChildItem -Force .codex/skills/typst-grammar-authoring
  5. Verify the portable skill's command examples stayed platform-neutral and did not reintroduce Windows absolute paths:

    sh
    rg -n "[A-Za-z]:\\\\|path\\\\to|target\\\\typst-grammar-authoring-check|\\.codex\\\\skills|src\\\\tutorial" .codex/skills/typst-grammar-authoring/SKILL.md
  6. If the regenerated lookup looks correct, keep the portable skill focused on author guidance only. Any exact source mapping belongs in the updater-owned traceability JSON, not in the portable SKILL.md.

Guardrails

  • Keep the distributed typst-grammar-authoring folder limited to SKILL.md.
  • Treat .codex/skills/update-typst-grammar-authoring/references/grammar-catalog.json as the source-mapping artifact for maintainers.
  • Keep maintenance-only commands, source-path references, and review steps in this updater skill rather than the portable one.
  • If the generator output reveals a design issue in the portable skill, update the portable template first and rerun the generator before final review.

© typst-doc-cn, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 3 other files (scripts, references) in .codex/skills/update-typst-grammar-authoring of typst-doc-cn/tutorial.

  • SKILL.md
  • agents/openai.yaml
  • references/grammar-catalog.json
  • scripts/generate_grammar_catalog.py

Open the folder on GitHubat commit b2e19b6

Compare with similar skills

Update Typst Grammar Authoring next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Update Typst Grammar Authoring compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Update Typst Grammar Authoring this skilltypst-doc-cn/tutorial220—~611Automated safety check: PassApache-2.0
Typst Authorjihe520/MathModelAgent6.2k1 repos~2.3kAutomated safety check: PassNone
Authoring Skillsvercel/next.js143k—~1kAutomated safety check: PassMIT
Hermes Agent Skill AuthoringNousResearch/hermes-agent252k—~3.6kAutomated safety check: PassMIT
Wiki Maintaineropenclaw/openclaw392k1 repos~462Automated safety check: PassMIT
Configuring Oauth2 Authorization Flowmukul975/Anthropic-Cybersecurity-Skills34k—~1.7kAutomated safety check: PassApache-2.0

Similar skills

  • Typst Author

    jihe520/MathModelAgent

    Generates, edits and debugs Typst (.typ) documents using the bundled Typst documentation as the source of truth, with formatting checks after each edit.

    6.2k GitHub starsUsed in 1 repo~2.3k tokens
    Documents & OfficeAuto-check passed
  • Authoring Skills

    vercel/next.js

    Official

    How to create and maintain agent skills in .agents/skills/. An agent skill from vercel/next.js.

    143k GitHub stars~1k tokensUpdated today
    Agent WorkflowsAuto-check passed
  • Hermes Agent Skill Authoring

    NousResearch/hermes-agent

    Author in-repo SKILL.md files: frontmatter and structure. An agent skill from NousResearch/hermes-agent.

    252k GitHub stars~3.6k tokensUpdated yesterday
    Agent WorkflowsAuto-check passed
  • Wiki Maintainer

    openclaw/openclaw

    Maintain the OpenClaw memory wiki vault with deterministic pages, managed blocks, and source-backed updates.

    392k GitHub starsUsed in 1 repo~462 tokens
    Knowledge ManagementAuto-check passed
  • Configuring Oauth2 Authorization Flow

    mukul975/Anthropic-Cybersecurity-Skills

    Configures secure OAuth 2.0 authorization flows, including Authorization Code with PKCE, Client Credentials, and Device Authorization Grant, covering flow selection, PKCE implementation, token…

    34k GitHub stars~1.7k tokensUpdated 1 mo ago
    Backend & APIsAuto-check passed
  • Abp Authorization

    abpframework/abp

    ABP permission system - PermissionDefinitionProvider, [Authorize] attribute, CheckPolicyAsync, IsGrantedAsync, ICurrentUser, IPermissionManager, multi-tenancy side.

    14k GitHub stars~1.3k tokensUpdated yesterday
    Backend & APIsAuto-check passed

More from typst-doc-cn/tutorial

  • Typst Grammar Authoring

    typst-doc-cn/tutorial

    A skill your agent uses when authoring or validating Typst documents from canonical grammar examples, especially when you need compile, HTML, or SVG-based validation workflows.

    220 GitHub stars~2.6k tokensUpdated 3 mo ago
    Auto-check passed

Questions about Update Typst Grammar Authoring

What does Update Typst Grammar Authoring do?

A skill your agent uses when maintaining the portable typst-grammar-authoring skill from this repository's canonical Typst grammar source. Update Typst Grammar Authoring is an agent skill from typst-doc-cn/tutorial. Use when maintaining the portable typst-grammar-authoring skill from this repository's canonical Typst grammar source.

When should I use Update Typst Grammar Authoring?

Update Typst Grammar Authoring fits situations like: maintaining the portable typst-grammar-authoring skill from this repositorys canonical Typst grammar source.

How do I install Update Typst Grammar Authoring in Claude Code?

Run `npx skills add typst-doc-cn/tutorial --skill update-typst-grammar-authoring -a claude-code`. Or copy the skill folder (.codex/skills/update-typst-grammar-authoring in typst-doc-cn/tutorial) into .claude/skills/update-typst-grammar-authoring in your project. Claude Code loads it when a task matches its description.

How do I install Update Typst Grammar Authoring in Codex?

Run `npx skills add typst-doc-cn/tutorial --skill update-typst-grammar-authoring -a codex`. Or copy the skill folder (.codex/skills/update-typst-grammar-authoring in typst-doc-cn/tutorial) into .agents/skills/update-typst-grammar-authoring in your project. Codex loads it when a task matches its description.

Can I use Update Typst Grammar Authoring in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add typst-doc-cn/tutorial --skill update-typst-grammar-authoring -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/update-typst-grammar-authoring, .gemini/skills/update-typst-grammar-authoring, .github/skills/update-typst-grammar-authoring and .opencode/skills/update-typst-grammar-authoring in your project.

What does Update Typst Grammar Authoring need to run?

Going by SKILL.md and its folder, Update Typst Grammar Authoring needs Python for the scripts in its folder and the command-line tools its instructions call (python, git and rg). Our summary lists: Python 3.

Does Update Typst Grammar Authoring access the network?

SKILL.md contains no URLs. Its commands use git, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Update Typst Grammar Authoring safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Update Typst Grammar Authoring use?

Update Typst Grammar Authoring is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Update Typst Grammar Authoring use?

About 611 tokens (SKILL.md is roughly 2.4k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 20k tokens, read only when the agent opens those files.

What are the alternatives to Update Typst Grammar Authoring?

Skills that share tags, products or a category with Update Typst Grammar Authoring: Typst Author (jihe520/MathModelAgent, 6.2k stars), Authoring Skills (vercel/next.js, 143k stars), Hermes Agent Skill Authoring (NousResearch/hermes-agent, 252k stars) and Wiki Maintainer (openclaw/openclaw, 392k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Update Typst Grammar Authoring?

typst-doc-cn (a GitHub organization) maintains it in typst-doc-cn/tutorial, which has 220 GitHub stars. The repository holds 2 skills in this directory. The repository was last updated on June 21, 2026.

Source: typst-doc-cn/tutorial on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.