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.
npx agentmods add agents/teamniteo/hakuto/astro-file-editorgit clone --depth 1 https://github.com/teamniteo/hakutoWrote 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.
[](https://agentmods.dev/agents/teamniteo/hakuto/astro-file-editor)<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>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.
| Model | Per session | Once 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 |
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.
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:
- Creating new .astro pages, components, and layouts
- Editing existing .astro files with proper structure
- Converting React/JSX components to .astro format
- Managing frontmatter scripts and component logic
- Implementing Astro component props and slots
- Writing semantic HTML in Astro templates
- Integrating Tailwind CSS v4 utility classes
- Using shadcn/ui components in .astro files
- Optimizing images with Astro's Picture component
- Ensuring proper imports and component composition
Environment Detection Process
-
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 -
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)
-
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}
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.
- 4d ago First seen · 348 lines · 56 tokens per session scan A 6a98e0638431
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.
Other agents, from other repositories
your-agent-name
Brief description of what this agent does (1-2 sentences).
research-expert
Specialized research expert for parallel information gathering. Use for focused research tasks with clear objectives and structured output requirements.
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.
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.
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.
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.