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.

docsreferencevisualizepolygon.md

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

Polygon

polygon

A closed polygon.

The polygon is defined by its corner points and is closed automatically.

Example

#polygon(
  fill: blue.lighten(80%),
  stroke: blue,
  (20%, 0pt),
  (60%, 0pt),
  (80%, 2cm),
  (0%,  2cm),
)
#polygon(
  fill: none | color | gradient | tiling,
  fill-rule: str,
  stroke: none | auto | length | color | gradient | stroke | tiling | dictionary,
  vertices
) -> content

Parameters

  • fill:
    • description: How to fill the polygon. When setting a fill, the default stroke disappears. To create a rectangle with both fill and stroke, you have to configure both.
    • type: none | color | gradient | tiling
    • default: none
  • fill-rule:
    • description: The drawing rule used to fill the polygon. See the curve documentation for an example.
    • type: str
    • default: "non - zero"
  • stroke:
    • description: How to stroke the polygon. Can be set to none to disable the stroke or to auto for a stroke of 1pt black if and only if no fill is given.
    • type: none | auto | length | color | gradient | stroke | tiling | dictionary
    • default: auto
  • vertices:
    • description: The vertices of the polygon. Each point is specified as an array of two relative lengths.
    • type: array
    • default: None

Definitions

polygon.regular

A regular polygon, defined by its size and number of vertices.

#polygon.regular(
  fill: blue.lighten(80%),
  stroke: blue,
  size: 30pt,
  vertices: 3,
)
#polygon.regular(
  fill: none | color | gradient | tiling,
  stroke: none | auto | length | color | gradient | stroke | tiling | dictionary,
  size: length,
  vertices: int
) -> content
Parameters
  • fill:
    • description: How to fill the polygon. See the general polygon's documentation for more details.
    • type: none | color | gradient | tiling
    • default: None
  • stroke:
    • description: How to stroke the polygon. See the general polygon's documentation for more details.
    • type: none | auto | length | color | gradient | stroke | tiling | dictionary
    • default: None
  • size:
    • description: The diameter of the circumcircle of the regular polygon.
    • type: length
    • default: 1em
  • vertices:
    • description: The number of vertices in the polygon.
    • type: int
    • default: 3

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