agent-native-architecture

agent-native-architecture is a skill for Claude Code from iliaal/ai-skills. It costs 49 tokens per session (1,423 once invoked), scanned A, original, MIT.

Guidance for designing software in which AI agents are the main users, including their tools, prompts, workspace, and execution flow.

In plain words
What is it for?
Use it when designing agent-based applications, MCP tools, hooks, shared file workflows, system prompts, or self-improving agent systems.
Why use it?
It helps ensure an agent can complete the same meaningful tasks as a person and that the system can grow through new prompts and capabilities.

Skill for Claude Code

Written for Claude Code: PreToolUse hook event.

Good fit Use it when designing agent-based applications, MCP tools, hooks, shared file workflows, system prompts, or self-improving agent systems.

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

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 agent-native-architecture

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/iliaal/ai-skills/agent-native-architecture"><img src="https://agentmods.dev/badge/skills/iliaal/ai-skills/agent-native-architecture.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 49 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,423 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. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 2 findings, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high Rogue Agent · line 7
    Skill modifies its own code, configuration, or behavior at runtime. Self-modification enables an agent to escalate privileges, disable safety constraints, or install persistent backdoors.
    Fix: Prevent the skill from modifying its own code, SKILL.md, or configuration files. Treat skill files as read-only at runtime.
  • high Rogue Agent · line 58
    Skill modifies its own code, configuration, or behavior at runtime. Self-modification enables an agent to escalate privileges, disable safety constraints, or install persistent backdoors.
    Fix: Prevent the skill from modifying its own code, SKILL.md, or configuration files. Treat skill files as read-only at runtime.
How audits are shown
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.00049 $0.01423
Opus 5 $0.00024 $0.00711
Sonnet 5 $0.00010 $0.00285
Haiku 4.5 $0.00005 $0.00142

Measured 2d ago against content hash 9077606b71fc, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

agent-native-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 2d 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.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

skills/agent-native-architecture/SKILL.md · 92 lines

How it starts

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

Agent-Native Architecture

Working rules

  • Keep authority, scope, approval, and runtime isolation in trusted orchestration; prompts alone cannot enforce them.
  • Provide explicit completion and partial-progress signals, durable state, and observable action results.
  • Validate capabilities with real tasks, including failure and interruption paths; do not infer improvement from elapsed usage.
  • Use the selected topic's references and the architecture checklist to produce a concrete design with evidence and unresolved constraints.

Core Principles

Five principles govern agent-native design. For detailed explanations, examples, and test criteria, see core-principles.md.

Principle One-line test
Parity Can the agent achieve every outcome the UI allows?
Granularity Changing behavior means editing prose, not refactoring code
Composability Can a feature be added by writing a new prompt, without new code?
Emergent Capability Can the agent handle open-ended requests it wasn't designed for?
Improvement Over Time Does the app work better after a month, even without code changes?

Focus Area Selection

  1. Design architecture - Plan a new agent-native system from scratch
  2. Files & workspace - Use files as the universal interface, shared workspace patterns
  3. Tool design - Build primitive tools, dynamic capability discovery, CRUD completeness
  4. Domain tools - Know when to add domain tools vs stay with primitives
  5. Execution patterns - Completion signals, partial completion, context limits
  6. System prompts - Define agent behavior in prompts, judgment criteria
  7. Context injection - Inject runtime app state into agent prompts
  8. Action parity - Ensure agents can do everything users can do
  9. Self-modification - Enable agents to safely evolve themselves
  10. Product design - Progressive disclosure, latent demand, approval patterns
  11. Mobile patterns - iOS storage, background execution, checkpoint/resume
  12. Testing - Test agent-native apps for capability and parity
  13. Refactoring - Make existing code more agent-native
  14. Anti-patterns - Common mistakes and how to avoid them
  15. Success criteria - Verify your architecture is agent-native
  16. Hooks patterns - Hook events, decision control, MCP matchers, async hooks

Read the full file on GitHub · 92 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. 2d ago Changed · -41 lines 9077606b71fc
  2. 3d ago Changed 6f8f86ec0817
  3. 11d ago First seen · 133 lines · 49 tokens per session scan A 0ddaae366f5d

Subscribe to this mod's changes

agent-native-architecture is a skill published in the GitHub repository iliaal/ai-skills (41 stars, last pushed 3d ago), licensed MIT. It adds 49 tokens to every session and 1,423 once invoked, about $0.0002 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-30.