new-page

new-page is a command for Claude Code from holger1411/astrodeck. It costs 0 tokens per session (497 once invoked), scanned A, original, MIT.

A project command for creating an AstroDeck page, including its layout, sections, page title, and search-engine description.

In plain words
What is it for?
Use it for pages such as about, pricing, contact, or authentication screens, choosing from the available layouts and content sections.
Why use it?
It removes the need to assemble page files and SEO details manually while keeping the page aligned with the project's conventions.

Command for Claude Code

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 commands/holger1411/astrodeck/new-page
Clone the repo
git clone --depth 1 https://github.com/holger1411/astrodeck

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 new-page

README.md
[![agentmods](https://agentmods.dev/badge/commands/holger1411/astrodeck/new-page.svg)](https://agentmods.dev/commands/holger1411/astrodeck/new-page)
Your own site
<a href="https://agentmods.dev/commands/holger1411/astrodeck/new-page"><img src="https://agentmods.dev/badge/commands/holger1411/astrodeck/new-page.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 497 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.1 $0.00000 $0.00497
Opus 5 $0.00000 $0.00249
Sonnet 5 $0.00000 $0.00099
Haiku 4.5 $0.00000 $0.00050

Measured 6d ago against content hash a2c751d2558f, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade A, and why

new-page 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 6d 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/commands/new-page.md · 62 lines

What it actually says

Create New Page

Create a new page following AstroDeck conventions from @AGENTS.md.

Arguments provided by the user: $ARGUMENTS

Gather Information

Parse the arguments above. Only ask for what is still missing:

  1. Page name (e.g., "about", "pricing", "contact")
  2. Layout type — BaseLayout | FullWidthLayout | MinimalLayout | AuthLayout (default: BaseLayout)
  3. Sections needed — list from available: Hero, Features, CTA, Pricing, FAQ, Testimonials, Contact, Stats, Team, LogoCloud, Newsletter, Comparison

If the page name is given and the rest is unspecified, pick a sensible layout and section combination for the page type and say what you chose — do not interrogate the user.

Template

---
import [Layout] from "@/layouts/[Layout].astro";
import [Sections] from "@/components/sections/[Section].astro";

const title = "[Page Title] - AstroDeck";
const description = "[SEO description, 150-160 chars]";
---

<[Layout] title={title} description={description}>
  <!-- Sections -->
</[Layout]>

Skills

For patterns, consult the astro and content-seo skills (.claude/skills/astro/SKILL.md, .claude/skills/content-seo/SKILL.md).

By default, every new page must be added to the navigation (unless the user explicitly says otherwise):

  • Header: src/components/Header.astro → add to navItems array
  • Footer: src/components/Footer.astro → add to appropriate column (astrodeckLinks or pageLinks)

Only skip navigation for pages that are clearly internal (login, 404, legal).

Checklist Before Done

  • File created in src/pages/[name].astro
  • Proper layout imported with @/ alias
  • Title and description set for SEO
  • All sections imported and configured
  • Responsive design verified
  • Added to Header and Footer navigation (unless user said otherwise)
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. 6d ago First seen · 62 lines · 0 tokens per session scan A a2c751d2558f

Subscribe to this mod's changes

new-page is a command published in the GitHub repository holger1411/astrodeck (74 stars, last pushed yesterday), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 497 tokens. 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.