architecture

architecture is a skill for Claude Code from flipbook-labs/flipbook. It costs 115 tokens per session (1,971 once invoked), scanned A, original, MIT.

A guide to the design rules behind Flipbook, including how it runs as a Studio plugin or an embedded app and how its parts communicate.

In plain words
What is it for?
It helps design or review shared interfaces, plugin access, embedded behavior, application state, and module reloading.
Why use it?
It helps prevent changes that work in one runtime but break the other, or that bypass the boundaries between Flipbook, Storyteller, and ModuleLoader.

Skill for Claude Code

Written for Claude Code: installed under .claude/. Also seen: mentions AGENTS.md.

Good fit It helps design or review shared interfaces, plugin access, embedded behavior, application state, and module reloading.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/flipbook-labs/flipbook/architecture
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 flipbook-labs/flipbook --skill architecture
Clone the repo
git clone --depth 1 https://github.com/flipbook-labs/flipbook

Made for: Claude Code.

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 architecture

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/flipbook-labs/flipbook/architecture"><img src="https://agentmods.dev/badge/skills/flipbook-labs/flipbook/architecture.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 115 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,971 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.00115 $0.01971
Opus 5.5 $0.00046 $0.00788
Sonnet 5.5 $0.00023 $0.00394
Haiku 4.5 $0.00012 $0.00197

Measured 4d ago against content hash 02a21c309736, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

architecture 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 4d 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.

.claude/skills/architecture/SKILL.md · 87 lines

How it starts

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

Flipbook Architecture

This skill holds the contracts that the code does not make obvious. For repo layout, tooling, and the Charm frozen-flag workaround, read the repo's AGENTS.md. For story formats, control types, and framework return shapes, read the docs site under docs/docs/creating-stories/ and docs/docs/frameworks/ in the Flipbook repo, and Storyteller's src/types.luau.

Pluginlike and embedding

Flipbook runs in two places: as a Studio plugin, and as a client-side app embedded in an experience. Both mount through createFlipbookApp, which takes a Pluginlike instead of the real plugin object. Pluginlike is declared in workspace/flipbook-core/src/Common/types.luau and has four methods: GetMouse, GetSetting, SetSetting, and OpenScript.

The type is the decoupling point. Code in flipbook-core must not reach for any other member of plugin, because the embedded runtime has no plugin to call. When no plugin is passed, createFlipbookApp substitutes a stub (defaultPlugin) whose settings reads return nil and whose OpenScript does nothing. If you need a new plugin capability, add it to Pluginlike, give the stub a safe default, and decide what the embedded context does without it.

The entry points differ by wrapper:

  • createFlipbookPlugin passes the real plugin, a dock widget, and AppMode.PluginWidget. It mounts lazily when the widget becomes visible.
  • createEmbeddedFlipbookApp passes a ScreenGui and AppMode.EmbeddedClient, and mounts immediately.

Branch on AppMode for context-specific UI. The topbar already does this: the viewport control only shows in the plugin, and the "Embed into Experience" action is hidden once embedded.

Keep the starter scripts under src/ thin. Each one guards its context, then delegates to flipbook-core. The embedded scripts return early when they sit under PluginDebugService, so a plugin-debug session does not start a second app. The embedded server script disables Players.CharacterAutoLoads so characters do not spawn behind the UI. Launch data is read on the server from Player:GetJoinData() and handed to the client through a RemoteFunction, because the client cannot read join data itself.

Read the full file on GitHub · 87 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. 4d ago Changed · +1 lines 02a21c309736
  2. 6d ago First seen · 86 lines · 115 tokens per session scan A 507687abab25

Subscribe to this mod's changes

architecture is a skill published in the GitHub repository flipbook-labs/flipbook (127 stars, last pushed yesterday), licensed MIT. It adds 115 tokens to every session and 1,971 once invoked, about $0.0005 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-11-24.

Related

architecture compared with skills from other repositories

architecture next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
architectureflipbook-labs/flipbookSkill127yesterdayMITA115Claude Code
flow-next-tracker-syncgmickel/flow-nextSkill735todayMITA44Claude Code, Codex
taiyi-evolveDong90/oh-my-taiyiforgeSkill85514d agoMITA37Claude Code, Codex
taiyi-diagram-c4Dong90/oh-my-taiyiforgeSkill85514d agoMITA48Claude Code, Codex
writing-styleumputun/cc-thingzSkill50111d agoMITA52Claude Code
flow-next-resolve-prgmickel/flow-nextSkill735todayMITA36Claude Code, Codex
graspjongwony/epistemic-protocolsSkill1764d agoMITA73Claude Code