worksetup

A command for setting SampleApp's startup theme, opening page, display scale, and optional planning document.

In plain words
What is it for?
Use it to start SampleApp with a chosen visual style, page, zoom level, and project plan.
Why use it?
It avoids changing several startup settings by hand and checks that theme and scale values are allowed.

Command for Claude Code

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/devolutions/avalonia-extensions/worksetup
Clone the repo
git clone --depth 1 https://github.com/Devolutions/avalonia-extensions

Made for: Claude Code.

Per session 35 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 712 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00035 $0.00712
Opus 5 $0.00017 $0.00356
Sonnet 5 $0.00007 $0.00142
Haiku 4.5 $0.00003 $0.00071

Measured 2d ago against content hash 674df4442e70, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

worksetup scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/commands/worksetup.md · 70 lines

What it actually says

Configure SampleApp startup defaults for development.

Arguments:

  1. theme (required): MacOS, MacOSClassic/Classic/MacClassic, MacOSLiquidGlass/LiquidGlass/Liquid/Glass, DevExpress, Linux, or Default
  2. pageTitle (optional, default Overview): page title to select at startup
  3. scale (optional, default Default): Default, 100%, 125%, 150%, 175%, 200%, 225%, 250%, 275%, 300%, 400%
  4. projectPlan (optional): planning doc name/partial name under .claude/docs/planning

1) Parse and validate inputs

  • Parse /worksetup [theme] [pageTitle] [scale] [projectPlan]

  • Validate theme and scale against allowed values

  • Theme matching is case-insensitive and accepts aliases listed above

    2) Update startup settings in samples/SampleApp/PageCatalog/page-catalog.jsonc

    Edit only the sampleAppStartUpSettings block:

    "sampleAppStartUpSettings": {
      "theme": "DevExpress",
      "selectedPage": "ComboBox",
      "scale": "default"
    }
    
    • theme: set from the validated theme argument
    • selectedPage: set from resolved page title (see Step 3)
    • scale: set from validated scale argument (if provided), otherwise preserve existing value

    The app applies these settings at runtime; do not edit App.axaml or MainWindowViewModel.cs for normal /worksetup usage.

    3) Resolve page title

Collect candidate page titles from:

  • samples/SampleApp/PageCatalog/page-catalog.jsonc -> pages.*[].uniqueTitle

Match rules:

  • case-insensitive

  • prefer exact match

  • then partial match

  • if ambiguous, ask user to clarify

    4) Scale value format

    In sampleAppStartUpSettings.scale, write one of:

    • default
    • 100%, 125%, 150%, 175%, 200%, 225%, 250%, 275%, 300%, 400%

    5) Error handling

    • Invalid theme: report valid theme options
    • Invalid scale: report valid scale options
    • No page match: list available page titles from catalog
    • Ambiguous page match: ask user to be more specific

    6) Completion message

    Report:

    • selected theme
    • selected startup page
    • selected startup scale (if changed)
    • files edited

    Do not run the app unless explicitly asked.

    7) Optional planning doc handling

If projectPlan is provided (or an open planning doc is detected):

  • locate matching file in .claude/docs/planning/**/*.md
  • load and summarize current phase + next steps
  • ask whether to proceed with the plan work
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 70 lines · 35 tokens per session scan A 674df4442e70

Subscribe to this mod's changes

worksetup is a command published in the GitHub repository Devolutions/avalonia-extensions (79 stars, last pushed 4d ago), licensed MIT. It adds 35 tokens to every session and 712 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.