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.

docsreferencefoundationsduration.md

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

Duration

Represents a positive or negative span of time.

Constructor

duration

Creates a new duration.

You can specify the duration using weeks, days, hours, minutes and seconds. You can also get a duration by subtracting two datetimes.

#duration(
  days: 3,
  hours: 12,
).hours()
#duration(
  seconds: int,
  minutes: int,
  hours: int,
  days: int,
  weeks: int
) -> duration

Parameters

  • seconds:
    • description: The number of seconds.
    • type: int
    • default: 0
  • minutes:
    • description: The number of minutes.
    • type: int
    • default: 0
  • hours:
    • description: The number of hours.
    • type: int
    • default: 0
  • days:
    • description: The number of days.
    • type: int
    • default: 0
  • weeks:
    • description: The number of weeks.
    • type: int
    • default: 0

Methods

duration.seconds

The duration expressed in seconds.

This function returns the total duration represented in seconds as a floating-point number rather than the second component of the duration.

duration.minutes

The duration expressed in minutes.

This function returns the total duration represented in minutes as a floating-point number rather than the second component of the duration.

duration.hours

The duration expressed in hours.

This function returns the total duration represented in hours as a floating-point number rather than the second component of the duration.

duration.days

The duration expressed in days.

This function returns the total duration represented in days as a floating-point number rather than the second component of the duration.

duration.weeks

The duration expressed in weeks.

This function returns the total duration represented in weeks as a floating-point number rather than the second component of the duration.

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