avalonia-extensions: Command for Claude Code

.claude/commands/worksetup.md

worksetup is a command for Claude Code from Devolutions/avalonia-extensions. It costs 35 tokens per session (712 once invoked), scanned A, original, MIT.

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

Written for Claude Code: installed under .claude/.

This is Devolutions/avalonia-extensions's own configuration. It tells Claude Code how to work on avalonia-extensions itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything avalonia-extensions configures →

Reuse

Borrowing it

Nothing to install: this file belongs to Devolutions/avalonia-extensions. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/Devolutions/avalonia-extensions/master/.claude/commands/worksetup.md
Clone the repo
git clone --depth 1 https://github.com/Devolutions/avalonia-extensions

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for worksetup

README.md
[![agentmods](https://agentmods.dev/badge/commands/devolutions/avalonia-extensions/worksetup/github.svg)](https://agentmods.dev/commands/devolutions/avalonia-extensions/worksetup)
Your own site
<a href="https://agentmods.dev/commands/devolutions/avalonia-extensions/worksetup"><img src="https://agentmods.dev/badge/commands/devolutions/avalonia-extensions/worksetup/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for worksetup

Your own site · 80×15
<a href="https://agentmods.dev/commands/devolutions/avalonia-extensions/worksetup"><img src="https://agentmods.dev/badge/commands/devolutions/avalonia-extensions/worksetup.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
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. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00035 $0.00712
Opus 5.5 $0.00014 $0.00285
Sonnet 5.5 $0.00007 $0.00142
Haiku 4.5 $0.00003 $0.00071

Measured 2mo ago against content hash 674df4442e70, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 2mo 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. 2mo 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 (84 stars, last pushed 15d ago), licensed MIT. It adds 35 tokens to every session and 712 once invoked, about $0.0001 per session on Opus 5.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.