All skills
jihe520 avatar

/typst-author

@4a360cb
by Sanjinjihe520/mathmodelagent6.2k stars
450

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.

Use this Skill: https://skilld.dev/gh/jihe520/mathmodelagent/typst-author

This session only. Nothing lands on disk.

docsreferencemodelbibliography.md

≈871 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Bibliography

bibliography

A bibliography / reference listing.

You can create a new bibliography by calling this function with a path to a bibliography file in either one of two formats:

  • A Hayagriva .yaml/.yml file. Hayagriva is a new bibliography file format designed for use with Typst. Visit its documentation for more details.
  • A BibLaTeX .bib file.

As soon as you add a bibliography somewhere in your document, you can start citing things with reference syntax (@key) or explicit calls to the citation function (#cite(<key>)). The bibliography will only show entries for works that were referenced in the document.

Styles

Typst offers a wide selection of built-in citation and bibliography styles. Beyond those, you can add and use custom CSL (Citation Style Language) files. Wondering which style to use? Here are some good defaults based on what discipline you're working in:

Fields Typical Styles
Engineering, IT "ieee"
Psychology, Life Sciences "apa"
Social sciences "chicago-author-date"
Humanities "mla", "chicago-notes", "harvard-cite-them-right"
Economics "harvard-cite-them-right"
Physics "american-physics-society"

Example

This was already noted by
pirates long ago. @arrgh

Multiple sources say ...
@arrgh @netwok.

#bibliography("works.bib")
#bibliography(
  sources,
  title: none | auto | content,
  full: bool,
  style: str | bytes
) -> content

Parameters

  • sources:
    • description: One or multiple paths to or raw bytes for Hayagriva .yaml and/or BibLaTeX .bib files. This can be a: - A path string to load a bibliography file from the given path. For more details about paths, see the Paths section. - Raw bytes from which the bibliography should be decoded. - An array where each item is one of the above.
    • type: str | bytes | array
    • default: None
  • title:
    • description: The title of the bibliography. - When set to auto, an appropriate title for the text language will be used. This is the default. - When set to none, the bibliography will not have a title. - A custom title can be set by passing content. The bibliography's heading will not be numbered by default, but you can force it to be with a show-set rule: show bibliography: set heading(numbering: "1.")
    • type: none | auto | content
    • default: auto
  • full:
    • description: Whether to include all works from the given bibliography files, even those that weren't cited in the document. To selectively add individual cited works without showing them, you can also use the cite function with form set to none.
    • type: bool
    • default: false
  • style:
    • description: The bibliography style. This can be: - A string with the name of one of the built-in styles (see below). Some of the styles listed below appear twice, once with their full name and once with a short alias. - A path string to a CSL file. For more details about paths, see the Paths section. - Raw bytes from which a CSL style should be decoded.
    • type: str | bytes
    • default: "ieee"

Source: SKILL.md on GitHub

1 alert3mo3 checks · Risk SAFE
  • Gen Agent Trust Hub3mo

    This skill is a comprehensive Typst authoring assistant that provides a complete local mirror of the Typst documentation (tutorials, guides, and reference). It facilitates the generation, editing, and troubleshooting of Typst documents using standard ecosystem tools such as 'typst' and 'typstyle'. The instructions emphasize accuracy by directing the agent to prioritize local documentation and include safety checkpoints for formatting and editing tasks. No malicious patterns, data exfiltration risks, or other security threats were identified.

  • Socket3mo

    1 alert: obfuscatedFile

  • Snyk3mo

    Risk: LOW · No issues

Signed by skilld at 4a360cb. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 3 weeks ago.

Activeupdated 4 months ago

README badge

README badge for jihe520/mathmodelagent/typst-author