page-composition

page-composition is a skill for Claude Code from aneja5/forge-skills. It costs 33 tokens per session (1,613 once invoked), scanned A, original, MIT.

A method for defining how interface pages are built from shared components, including layout grids, page templates, navigation, and responsive behavior. Responsive behavior describes how a page changes across screen sizes.

In plain words
What is it for?
Use it to establish page templates, layout rules, breakpoint changes, and sidebar or navigation behavior across a product.
Why use it?
It prevents routes from developing inconsistent layouts and mobile behavior.

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 establish page templates, layout rules, breakpoint changes, and sidebar or navigation behavior across a product.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/aneja5/forge-skills/page-composition"><img src="https://agentmods.dev/badge/skills/aneja5/forge-skills/page-composition.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 33 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,613 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.00033 $0.01613
Opus 5.5 $0.00013 $0.00645
Sonnet 5.5 $0.00007 $0.00323
Haiku 4.5 $0.00003 $0.00161

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

Security

Grade A, and why

page-composition 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 3mo 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/page-composition/SKILL.md · 128 lines

How it starts

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

Page Composition

Overview

Decide how pages are assembled from components: layout grid, page templates, responsive collapse strategy, navigation transformation per breakpoint, and content priority rules. Output is .forge/page-composition.md. Reads component-library (available pieces), design-system (breakpoints + spacing), and interaction-patterns (scroll, sticky, overlay behavior).

When to Use

  • A product is about to start building pages and there's no named template vocabulary
  • Routes have drifted into one-off layouts with no shared structure
  • The sidebar collapses inconsistently on mobile (or doesn't collapse at all)
  • A new responsive breakpoint is being added and nobody knows what should change
  • A second product is joining the design system and needs to inherit layout conventions

When NOT to Use

  • A single one-off marketing page — that's content, not composition
  • Backend-only services with no UI
  • A trivial layout fix inside one route — incremental-implementation

Common Rationalizations

Thought Reality
"Every page is different" Every page feels different, but most follow 3–4 templates. Name them and variation becomes predictable.
"We'll figure out responsive as we go" "As we go" means the first 5 pages are desktop-only and mobile is retrofitted on day 10 under deadline pressure.
"Just make it responsive with Tailwind" Tailwind handles the mechanics (sm:, md:, lg:). It doesn't decide what to do at each breakpoint. That's a design decision.
"Mobile can wait" If field users open the product on phones, mobile IS the product. Desktop is the secondary experience.
"Sticky elements just work" A sticky header that covers content on mobile is a bug. Sticky needs a rule.

Red Flags

  • A route with no defined template (a one-off layout)
  • A sidebar that doesn't collapse on mobile (or hides instead of relocating)
  • Content that disappears on small screens rather than relocating to a secondary tab/accordion
  • Inconsistent grid usage across routes (12-col on one, free-flow on another)
  • Scroll behavior differing between similar pages (infinite on one list, paginated on the next)
  • Sticky element that covers content on mobile (header overlapping first row of a list)

Read the full file on GitHub · 128 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. 3mo ago First seen · 128 lines · 33 tokens per session scan A 2e79db1f89d7

Subscribe to this mod's changes

page-composition is a skill published in the GitHub repository aneja5/forge-skills (3 stars, last pushed 6mo ago), licensed MIT. It adds 33 tokens to every session and 1,613 once invoked, about $0.0001 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

page-composition compared with skills from other repositories

page-composition next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
page-compositionaneja5/forge-skillsSkill36mo agoMITA33Claude Code
top-designwondelai/skillsSkill2.8k2d agoMITA113Claude Code, Codex
web-typographywondelai/skillsSkill2.8k2d agoMITA128Claude Code, Codex
designlang-tokensManavarya09/design-extractSkill5.2ktodayMITA30Claude Code
refactoring-uiwondelai/skillsSkill2.8k2d agoMITA132Claude Code, Codex
brand-visual-languagedembrandt/dembrandt-skillsSkill2493d agoMITA35Claude Code
loading-states-and-perceived-performancedembrandt/dembrandt-skillsSkill2493d agoMITA38Claude Code