/otter:otter-new-configfrom otter
Guides adding configuration flags in an Otter workspace: scope decisions, safe defaults, and absence-detection patterns. Use for feature toggles, URLs, enums, or numeric thresholds.
Ships in otter. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
When introducing new config flags (feature toggles, URLs, enums, numeric thresholds) in an Otter workspace, follow this decision process to ensure safe defaults and correct scoping.
Who consumes this config?
├── Multiple libraries/packages → GLOBAL (app-level runtime config)
├── Single component only → COMPONENT-LEVEL config
└── App-wide behavior toggle → GLOBAL (app-level runtime config)
Explicitly state the scope decision and rationale, then ask the user to confirm before proceeding with implementation.
For component-level config, use the @o3r/configuration:add-config schematic to add configuration to an existing component:
ng g @o3r/configuration:add-config --path="/path/to/the/component/class.ts"
Options:
--useSignal — use a config signal instead of observable--exposeComponent — expose the component in CMS metadata (default: true)This generates the *-config.ts file, wires up the ConfigurationObserver (or signal), and registers the component with the configuration service. Do not create these files manually.
For global (app-level) config, add properties to the existing AppRuntimeConfiguration interface — no schematic needed.
Every new config flag must have a safe default that preserves current behavior when not explicitly set.
| Type | Default Rule | Naming Convention |
|---|---|---|
| Feature toggle | false (feature OFF) | enableX, showX, allowX |
| URL/endpoint | '' (empty string) | Suffixed with Url |
| Enum/mode | Value that matches the component's current behavior (introducing the config alone must not change what the user sees) | Suffixed with Mode |
| Numeric threshold | Existing value or safe boundary | Descriptive noun |
| Label/text | Use CMS/i18n, NOT runtime config | n/a |
Critical rules:
false — users opt IN, never opt OUT'' — feature is absent when URL is emptyRationale: Deployments that haven't configured the new flag must continue working exactly as before. A missing config value must never activate new behavior.
When a config property holds a URL or integration endpoint, its absence signals the feature is unavailable. The check must happen before any HTTP call, template rendering, or side effect related to the feature.
const hasFeature = !!config.targetUrl?.trim();
if (hasFeature) {
// safe to call the endpoint / show feature UI
} else {
// feature does not exist in this deployment — hide entirely
}
Rules:
enableX, showX, allowX)Url (serviceUrl, apiBaseUrl)Mode (displayMode, validationMode)After introducing a config flag, verify:
Halt and ask for clarification if:
trueWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub amadeusitgroup/otter --plugin otter11 skills in this plugin
/logic-component-shapeDecision tree for single component versus container/presenter, which componentStructure to generate, and which componentType to declare. Invoked by `logic-placement` and `logic-review`, not directly./logic-placementDecide where new logic belongs — component shape, logic layer, and store variant — when designing a component, service, or store in an Angular/Otter workspace. Use `logic-review` to assess existing code./logic-reviewReview existing components, services, or stores for misplaced logic — presenter leaks, componentType mismatches, wrong store variants. Use `logic-placement` when designing something new./logic-state-layerDecision tree for whether logic belongs in the component class, a service, or an NgRx store, including service scope and where API calls go. Invoked by `logic-placement` and `logic-review`, not directly./logic-store-typeDecision tree for which NgRx store variant to generate — entity or simple, sync or async. Invoked by `logic-placement` and `logic-review` once a store is justified, not directly; it does not decide whether a store is warranted./otter-mcp-setupThis skill should be used when the `@o3r/mcp` MCP server is not available and needs to be installed, or when the user asks to "install otter mcp", "setup otter mcp", or "configure otter mcp server".Other plugins' skills for the same job