agent-kernel: Skill for Claude Code

.agents/skills/ak-dev-architecture/SKILL.md

ak-dev-architecture is a skill for Claude Code, Codex from yaalalabs/agent-kernel. It costs 297 tokens per session (39,925 once invoked), scanned A, original, Apache-2.0.

Architecture guidance for Agent Kernel, a framework-independent system for building and running agents. It explains how sessions, agents, tools, runners, modules, runtimes, services, configuration, adapters, and storage fit together.

In plain words
What is it for?
Use it to navigate the codebase, design integrations with agent frameworks, configure sessions, and choose session storage.
Why use it?
It helps developers understand the system structure before changing core behavior or adding framework support.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions Claude Code; installed under .agents/ (shared by several agents).

This is yaalalabs/agent-kernel's own configuration. It tells Claude Code and Codex how to work on agent-kernel itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything agent-kernel configures →

Reuse

Borrowing it

Nothing to install: this file belongs to yaalalabs/agent-kernel. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/yaalalabs/agent-kernel/develop/.agents/skills/ak-dev-architecture/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/yaalalabs/agent-kernel

Made for: Claude Code, Codex.

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 ak-dev-architecture

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/yaalalabs/agent-kernel/ak-dev-architecture"><img src="https://agentmods.dev/badge/skills/yaalalabs/agent-kernel/ak-dev-architecture.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 297 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 39,925 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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: 1 finding, 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 Tool Misuse · line 457
    Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).
    Fix: Validate all tool parameters against an allowlist. Reject dangerous parameter values (shell=True, --force, -rf /) and use safe defaults.
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.00297 $0.39925
Opus 5.5 $0.00119 $0.15970
Sonnet 5.5 $0.00059 $0.07985
Haiku 4.5 $0.00030 $0.03993

Measured today against content hash 1f4cfac0a4b8, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

ak-dev-architecture scanned grade A with 1 finding 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 today.

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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

`query(statement, limit)`, `fetch(ids)`, `browse(path, limit)`, `write(records)`. There is **no
.agents/skills/ak-dev-architecture/SKILL.md · 1,463 lines

How it starts

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

Agent Kernel Architecture

Design Principles

  1. Framework-agnostic core: All core abstractions (Session, Agent, Tool, Runner, Module, Runtime) are framework-independent. Framework-specific logic lives exclusively in adapter modules under ak-py/src/agentkernel/framework/.
  2. Adapter pattern: Each supported agent framework (OpenAI Agents SDK, CrewAI, LangGraph, Google ADK, Smolagents, Pydantic AI, Microsoft Agent Framework, and Claude Agent SDK) implements Agent, Runner, and Module subclasses that wrap native framework objects, plus a *ToolBuilder that binds plain Python functions to the framework's native tool type (for Claude, ClaudeToolBuilder produces SDK MCP tools). The Claude Agent SDK has no named agent object, so its adapter wraps a thin ClaudeAgentSpec (name, description, native ClaudeAgentOptions, tools) instead.
  3. Config-driven behavior: All runtime behavior is governed by AKConfig (Pydantic-based), loaded from YAML/JSON files and environment variables (AK_ prefix, __ for nesting).
  4. Session lifecycle: Sessions are async context managers providing concurrency-safe state management. Session stores are pluggable (in-memory, Redis, Valkey, DynamoDB, Cosmos DB, Firestore). Session stores also provide the WebSocket gateway's WSConnectionStore on their backend via SessionStore.get_connection_store() (spec #495 §9): the ABC lives beside SessionStore in core/session/base.py, and each store file carries (or explicitly declines) its implementation, encapsulating its database operations over the shared drivers: InMemoryWSConnectionStore (in_memory.py, process-wide class-level state), RedisLikeWSConnectionStore (core/session/redis_like.py, client-library-agnostic; constructed by the redis/valkey stores with their own drivers), DynamoDBWSConnectionStore (dynamodb.py, over an existing table named by session.connection_store.table_name, same schema as the AWS adapters' connections table); cosmosdb/firestore raise actionably, as does the base default (so pre-method BYO stores keep working until a WS mode is enabled). Kafka's retry/dedup bookkeeping keeps its own session-type factory in pipeline/transport/bookkeeping.py (Q5).
  5. Plugin architecture: Tools, hooks, guardrails, tracing providers, session stores, knowledge base backends, sandbox providers, and messaging integrations are all pluggable via well-defined interfaces. Backend-selection factories (guardrail, trace, session/thread/multimodal stores, sandbox provider, integration outbound adapter) share one shape via core/util/factory.py (resolve_dotted, require_extra, AKConfigError): built-ins resolved by if/elif + real imports, with a dotted-path "bring your own" branch on every surface.
  6. Minimal coupling: Integrations (Slack, WhatsApp, etc.), deployment adapters (AWS Lambda, Azure Functions, Google Cloud Run), and API layers (REST, MCP, A2A) depend on the core but the core never depends on them. The queue pipeline (pipeline/) imports only core and api; deployment/ imports pipeline; modules relocated into pipeline/ leave re-export shims at their old paths that must preserve existing patch targets (see the Queue Execution Pipeline section).
  7. Queue-pipeline execution (#495): chat execution on server surfaces runs through one five-component pipeline: Request Handler → Input Queue → Agent Runner → Output Queue → Response Handler: with the queue transport (execution.queues.type: in_memory default, sqs, kafka, nats) and process topology selected by configuration.

Read the full file on GitHub · 1,463 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. today Changed · +1 lines 1f4cfac0a4b8
  2. yesterday Changed · +27 lines f04e87d31354
  3. 2d ago Changed · +20 lines 339b7179d53b
  4. 3d ago Changed · +2 lines 57edc135fda0
  5. 8d ago Changed · +24 lines 5451b2fef0e7
  6. 17d ago Changed · +7 lines · +2 tokens per session 999ababdd597
  7. 23d ago Changed · +5 lines 8f948a829239
  8. 29d ago Changed · +49 lines 0a398a1ef0a3
  9. 1mo ago Changed · +61 lines · +18 tokens per session 5a5b63dd6a7f
  10. 1mo ago First seen · 1,267 lines · 277 tokens per session scan A 8f1683a9c3c9

Subscribe to this mod's changes

ak-dev-architecture is a skill published in the GitHub repository yaalalabs/agent-kernel (192 stars, last pushed yesterday), licensed Apache-2.0. It adds 297 tokens to every session and 39,925 once invoked, about $0.0012 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

ak-dev-architecture compared with skills from other repositories

ak-dev-architecture next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
ak-dev-architectureyaalalabs/agent-kernelSkill192yesterdayApache-2.0A297Claude Code, Codex
cloud-native-security-defensivej4flmao/agent-skillsSkill383d agoMITA127Claude Code, Codex
notionArvo-AI/auroraSkill454yesterdayApache-2.0A23Claude Code
datadogArvo-AI/auroraSkill454yesterdayApache-2.0A28Claude Code
scalewayArvo-AI/auroraSkill454yesterdayApache-2.0A29Claude Code
terrasharkLukasNiessen/terrasharkSkill7104d agoMITA56Claude Code, Codex
isaac-automatorisaac-sim/IsaacAutomatorSkill27011d agoApache-2.0A123Claude Code, Codex