Skip to content
Back to skills

Add Setting

ASecurity

Add or change a user setting or preference. Use when editing AppPreferences, the settings UI, the resolver cascade, or a launch configuration.

  • 5 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 20, 2026
developmenttypescriptrustgoreactnode

Security analysis

A100/100

Scanned December 5, 2026

npx -y skills add alondero/buildmesh --skill add-setting --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Add Setting?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Add Setting
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/alondero-add-setting/badge)](https://www.skillsdirectory.com/skills/alondero-add-setting)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: add-setting
description: Add or change a user setting or preference. Use when editing AppPreferences, the settings UI, the resolver cascade, or a launch configuration.
---

# Add a setting

Before raw Cargo commands in this recipe, set `CARGO_TARGET_DIR` to a private
absolute path under this worktree, such as `<worktree>/.tmp/cargo-focused`.
Restore the previous environment after focused checks. Final verification uses
`npm run verify` and its stamped Rust runner; see
[worktree setup](../../../docs/agents/development-harness.md#worktree-setup).

`AppPreferences` in `src-tauri/src/preferences/model.rs` is the wire struct. Import `src/types/generated/AppPreferences.ts`. Do not declare a parallel TypeScript interface.

1. Add the field on `AppPreferences` with a serde default so an existing preferences file still loads. A JSON shape change goes through `src-tauri/src/preferences/migrations.rs`. Load and save stay in `src-tauri/src/preferences/storage.rs`, off the async worker pool.
2. A value that changes how an agent spawns is resolved in `src-tauri/src/preferences/resolver/cascade.rs` (explicit, then mesh, then application). The spawn path and `get_resolved_harness_view` both use that cascade. Do not re-derive the order in a command or a React component.
3. A per-harness launch default (model, effort, extra arguments, permission mode) belongs in `src-tauri/src/preferences/launch_configurations.rs`, not a one-off field on the modal.
4. Put the control in the existing pane under `src/components/AppSettings`: `GeneralPane.tsx`, `ProvidersPane.tsx`, `HarnessesPane.tsx`, `AutopilotPane.tsx` (Circuit limits), `PromptsPane.tsx` (spawn prompts) or `RemoteAccessPane.tsx`, all in `src/components/AppSettings`. Colours come from `src/App.css`. Do not hardcode a colour.
5. Document the default, what it changes, and how to undo it in `docs/user-guide.md`.

When the wire struct changes, run `cargo test` from `src-tauri/` and commit `src/types/generated`.

From `src-tauri/`: `cargo test --lib preferences`. For a visible control, also run the unit test that renders the pane you edited (`npx vitest run <file>` from the worktree root, with `NODE_ENV=test`).

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.