askit-build-settingslisted
Install: claude install-skill product-on-purpose/agent-skills-toolkit
# askit-build-settings
## Purpose
Author and improve a plugin's settings and permissions, following the builder pattern ([../../docs/reference/builder-pattern.md](../../docs/reference/builder-pattern.md)). `create` scaffolds the settings per target (Claude Code `settings.json` - permissions, env, hook registration; Codex `config.toml` for the subset it supports); `improve` tightens an existing one. It also folds in permission advice: recommend the least-privilege allowlist a plugin needs, never broader (Standard sec 9). Recipe and the permission rubric are in [references/settings-recipe.md](references/settings-recipe.md).
## When to use
When authoring settings, scoping permissions, wiring environment variables, or registering hooks in settings.
## create mode
1. Read what the plugin actually needs (which tools, which paths, which env, which hooks).
2. Scaffold the settings per target: Claude Code `settings.json` (a `permissions` allow/deny set, `env`, and `hooks` registration); Codex `config.toml` for the subset it supports.
3. Apply least privilege: the allowlist grants only what a component uses; secrets go through `env` indirection, never committed (sec 9).
## improve mode
1. Read the current settings and the components; remove any granted permission no component uses, and tighten an over-broad matcher.
## permission advice
1. For a given component or plugin, recommend the minimal allowlist (the narrowest tool set and path scope it needs) and flag any over-grant. This