interaction-patterns

interaction-patterns is a skill for Claude Code from aneja5/forge-skills. It costs 54 tokens per session (1,445 once invoked), scanned A, original, MIT.

A set of shared rules for how people interact with interface elements, such as modals, bottom sheets, loading states, gestures, and destructive actions. It also covers keyboard behavior, scrolling, and touch-target sizes.

In plain words
What is it for?
Use it to decide interaction behavior before building features, including when to expand, navigate, confirm, undo, or show loading feedback.
Why use it?
It keeps interactions predictable across screens and devices instead of making each feature behave differently.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the forge-skills plugin — 42 skills, 36 commands, 1 hook shipped together

Good fit Use it to decide interaction behavior before building features, including when to expand, navigate, confirm, undo, or show loading feedback.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/aneja5/forge-skills/interaction-patterns
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.

Any agent
npx skills add aneja5/forge-skills --skill interaction-patterns
Clone the repo
git clone --depth 1 https://github.com/aneja5/forge-skills

Made for: Claude Code.

Or install forge-skills, the plugin that ships this one along with the rest of its 42 skills, 36 commands, 1 hook.

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 interaction-patterns

README.md
[![agentmods](https://agentmods.dev/badge/skills/aneja5/forge-skills/interaction-patterns/github.svg)](https://agentmods.dev/skills/aneja5/forge-skills/interaction-patterns)
Your own site
<a href="https://agentmods.dev/skills/aneja5/forge-skills/interaction-patterns"><img src="https://agentmods.dev/badge/skills/aneja5/forge-skills/interaction-patterns/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 interaction-patterns

Your own site · 80×15
<a href="https://agentmods.dev/skills/aneja5/forge-skills/interaction-patterns"><img src="https://agentmods.dev/badge/skills/aneja5/forge-skills/interaction-patterns.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 54 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,445 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.00054 $0.01445
Opus 5.5 $0.00022 $0.00578
Sonnet 5.5 $0.00011 $0.00289
Haiku 4.5 $0.00005 $0.00145

Measured 2mo ago against content hash f767174de88c, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

interaction-patterns 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.

skills/interaction-patterns/SKILL.md · 104 lines

How it starts

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

Interaction Patterns

Overview

Define the canonical interaction for every UI primitive before features get built. Output is .forge/interaction-patterns.md — the decision tree for each interaction (expand vs navigate, modal vs bottom sheet, optimistic vs pessimistic UI, undo vs confirm), the tap-target minimums, the keyboard and scroll behavior, and the documented anti-patterns. Paired with design-system (which defines the look) and accessibility (which defines the floor).

When to Use

  • A new product or major feature is being designed and no interaction conventions exist
  • Mobile and desktop are drifting (centered modals on mobile, no swipe affordances)
  • Destructive actions have inconsistent UX (some have confirm, some have undo, some have neither)
  • A new component category is being introduced (e.g., first time adding command palette, drawer, popover)
  • Loading states are inconsistent (skeletons on one page, spinners on another)

When NOT to Use

  • A single interaction tweak inside one screen — that's incremental-implementation
  • Backend-only services
  • Accessibility-specific decisions (those go in accessibility)

Common Rationalizations

Thought Reality
"Desktop patterns work on mobile" Centered dialogs on mobile are unreachable with one thumb. Modal trap UX on a touchscreen is hostile.
"Users will figure it out" If it needs figuring out, it's broken. Every interaction that needs explanation costs a support ticket.
"We don't need loading states for fast operations" Fast on your dev machine is slow on a train in rural India. The user can't see your machine.
"Undo is too complex" Undo is cheaper than a confirmation dialog and faster than user anxiety. The only complex undo is the one nobody designed for.
"Swipe is obvious from native apps" Swipe with no visual affordance is a hidden feature. Discoverability requires a hint.
"Optimistic UI is risky" The risk is rollback messaging, not optimism. Pessimistic UI is a 300ms spinner every interaction.

Read the full file on GitHub · 104 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. 2mo ago First seen · 104 lines · 54 tokens per session scan A f767174de88c

Subscribe to this mod's changes

interaction-patterns is a skill published in the GitHub repository aneja5/forge-skills (3 stars, last pushed 5mo ago), licensed MIT. It adds 54 tokens to every session and 1,445 once invoked, about $0.0002 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-09-03.

Related

interaction-patterns compared with skills from other repositories

interaction-patterns next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
interaction-patternsaneja5/forge-skillsSkill35mo agoMITA54Claude Code
top-designwondelai/skillsSkill2.6k4d agoMITA113Claude Code, Codex
web-typographywondelai/skillsSkill2.6k4d agoMITA128Claude Code, Codex
designlang-tokensManavarya09/design-extractSkill4.8kyesterdayMITA30Claude Code
refactoring-uiwondelai/skillsSkill2.6k4d agoMITA132Claude Code, Codex
brand-visual-languagedembrandt/dembrandt-skillsSkill1835d agoMITA35Claude Code
loading-states-and-perceived-performancedembrandt/dembrandt-skillsSkill1835d agoMITA38Claude Code