astro-file-editor

astro-file-editor is an agent for coding agents from teamniteo/hakuto. It costs 56 tokens per session (2,465 once invoked), scanned A, original, MIT.

An agent for creating and editing Astro files, which are web-page files used by the Astro framework, with Tailwind CSS and shadcn/ui components.

In plain words
What is it for?
Use it to create pages and components, convert React code to Astro, manage component data and slots, optimize images, and inspect the project's existing configuration and patterns.
Why use it?
It helps keep new or changed landing-page code consistent with the project's Astro structure, styling setup, and reusable components.

Agent

Part of the hakuto plugin — 14 skills, 1 command, 1 agent shipped together

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/teamniteo/hakuto/astro-file-editor
Clone the repo
git clone --depth 1 https://github.com/teamniteo/hakuto

Or install hakuto, the plugin that ships this one along with the rest of its 14 skills, 1 command, 1 agent.

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 astro-file-editor

README.md
[![agentmods](https://agentmods.dev/badge/agents/teamniteo/hakuto/astro-file-editor.svg)](https://agentmods.dev/agents/teamniteo/hakuto/astro-file-editor)
Your own site
<a href="https://agentmods.dev/agents/teamniteo/hakuto/astro-file-editor"><img src="https://agentmods.dev/badge/agents/teamniteo/hakuto/astro-file-editor.svg" alt="Measured on agentmods" height="20"></a>
Per session 56 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,465 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.00056 $0.02465
Opus 5 $0.00028 $0.01233
Sonnet 5 $0.00011 $0.00493
Haiku 4.5 $0.00006 $0.00247

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

Security

Grade A, and why

astro-file-editor 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.

agents/astro-file-editor.md · 348 lines

How it starts

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

Astro File Editor Expert

You are an Astro framework specialist focused on creating and editing .astro files for landing pages. Your expertise covers the entire Astro component lifecycle from creation to optimization.

Core Competencies

This agent handles 10+ related .astro file problems:

  1. Creating new .astro pages, components, and layouts
  2. Editing existing .astro files with proper structure
  3. Converting React/JSX components to .astro format
  4. Managing frontmatter scripts and component logic
  5. Implementing Astro component props and slots
  6. Writing semantic HTML in Astro templates
  7. Integrating Tailwind CSS v4 utility classes
  8. Using shadcn/ui components in .astro files
  9. Optimizing images with Astro's Picture component
  10. Ensuring proper imports and component composition

Environment Detection Process

  1. Project Structure Analysis (Read first, avoid shell commands):

    Read: package.json → Detect Astro version, dependencies
    Read: site-specification.md
    Read: astro.config.mjs → Check integrations, output mode
    Read: src/index.css → Understand Tailwind v4 theme tokens
    Glob: src/components/**/*.astro → Analyze existing patterns
    Grep: "export interface Props" → Find prop patterns
    
  2. Configuration Detection:

    • Astro version (3.x vs 4.x vs 5.x)
    • Tailwind CSS v4 setup (@import 'tailwindcss')
    • shadcn/ui component availability (48 pre-installed)
    • TypeScript configuration (strict mode, paths)
  3. Pattern Recognition:

    • Existing component structure and naming conventions
    • Prop interface patterns
    • Import alias usage (@/ for src/)
    • Layout hierarchy

Problem Analysis Categories

1. Component Structure Issues

Symptoms: Malformed frontmatter, incorrect prop types, missing imports Solutions:

  • Ensure frontmatter uses --- delimiters
  • Define Props interface in TypeScript
  • Use Astro.props for accessing props
  • Import dependencies at top of frontmatter

2. Template Syntax Problems

Symptoms: JSX remnants, incorrect attribute syntax, broken expressions Solutions:

  • Convert className → class
  • Remove React hooks (useState, useEffect)
  • Use client:* directives only for true interactivity
  • Wrap expressions in curly braces {expression}

Read the full file on GitHub · 348 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 First seen · 348 lines · 56 tokens per session scan A 6a98e0638431

Subscribe to this mod's changes

astro-file-editor is an agent published in the GitHub repository teamniteo/hakuto (5 stars, last pushed 10d ago), licensed MIT. It adds 56 tokens to every session and 2,465 once invoked, about $0.0003 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-31.

Related

Other agents, from other repositories

your-agent-name

Brief description of what this agent does (1-2 sentences).

pjt222/agent-almanac · 17 tokens

research-expert

Specialized research expert for parallel information gathering. Use for focused research tasks with clear objectives and structured output requirements.

dork-labs/dorkos · 26 tokens

code-review-expert

Deep code review specialist using a 9-layer methodology — root cause analysis, cross-file intelligence, and impact-based prioritization. Use PROACTIVELY after significant code changes, refactors, or before merging PRs.

GoogilyBoogily/googilyboogily-claude-power-tools · 49 tokens

git-expert

Git workflow, merge conflict, and repository recovery expert. Use PROACTIVELY for merge conflicts, rebase failures, history rewriting, detached HEAD, lost commits, branching strategy decisions, or any git error message you cannot resolve.

GoogilyBoogily/googilyboogily-claude-power-tools · 50 tokens

refactoring-expert

PROACTIVELY invoke when encountering duplicated code, long methods, complex conditionals, deep nesting, primitive obsession, or any structural code quality issue. Detects code smells and applies proven refactoring techniques without changing external behavior.

GoogilyBoogily/googilyboogily-claude-power-tools · 50 tokens

research-expert

PROACTIVELY use when the task requires web research, fact-finding, or gathering information from multiple sources. Triggers on research questions, "look up", "find out", comparison requests, or when current/external information is needed.

GoogilyBoogily/googilyboogily-claude-power-tools · 53 tokens