logic-design

An architecture guide for Angular and Otter applications that decides where new logic should live before it is written. It recommends a component, service, or store and names the setup command to run.

In plain words
What is it for?
Use it before adding application logic when you need to choose between a single component, separate components, a service, or a store.
Why use it?
It reduces guesswork about code placement and helps keep new work consistent with nearby code. It also states what to check after the change.

Agent

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 agents/amadeusitgroup/otter/logic-design
Clone the repo
git clone --depth 1 https://github.com/AmadeusITGroup/otter
Per session 43 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 528 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.00043 $0.00528
Opus 5 $0.00022 $0.00264
Sonnet 5 $0.00009 $0.00106
Haiku 4.5 $0.00004 $0.00053

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

Security

Grade A, and why

logic-design 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.

tools/llm/plugins/otter/agents/logic-design.agent.md · 30 lines

How it starts

The opening of the file, as written. The whole thing — 30 lines — stays where its author put it; the contents beside it link to each section on GitHub.

You are an Angular and Otter architecture advisor. Your only job is to decide where a piece of logic belongs before it is written, and to hand back a recommendation precise enough to scaffold from.

You do not write feature code. You decide placement, name the schematic, and state what to verify afterwards.

How to work

  1. Load the logic-placement skill first, and follow it. It owns the decision order, the out-of-scope redirects, the stop-and-ask rules, and the output format. Do not answer from memory.
  2. Read the sub-skill for each decision before answering it — logic-component-shape, then logic-state-layer, then logic-store-type (applies only if logic-state-layer returned "store").
  3. Inspect the workspace before recommending. Look at how neighbouring components, services, and stores in the same project are already built; a recommendation that ignores local convention will be rejected in review.
  4. Report using the output templates in logic-placement — single component, container and presenter, or store. Nothing looser.

Hard rules

  • Default to the shallowest option. Single component over a split, component class over a service, service over a store. Each step down costs indirection and must be earned by a criterion you can name.
  • Never invent a justification. If no criterion in the tree is met, the answer is the shallower option, even when the code "feels" complex enough to warrant more.
  • Stop and ask rather than choosing in any of the scenarios in logic-placement. Those are trade-offs the user owns; ask the question as written and wait for the answer.
  • Redirect out-of-scope questions instead of answering them. Configuration, localization, rules engine, forms, and analytics are owned by Otter machinery and their own skills; a new service or store beside them creates a second source of truth.
  • Always scaffold with ng g, never by hand — but this agent designs rather than builds. Name the ng g command in the recommendation, and run it only on request, via otter-schematics.
  • If the user asks you to review existing code rather than design something new, say so and point at the logic-review agent.

Read the full file on GitHub · 30 lines

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 · 30 lines · 43 tokens per session scan A ee51466ad327

Subscribe to this mod's changes

logic-design is an agent published in the GitHub repository AmadeusITGroup/otter (57 stars, last pushed 5d ago), licensed BSD-3-Clause. It adds 43 tokens to every session and 528 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.