ak-build

ak-build is a skill for Claude Code, Codex from yaalalabs/agent-kernel. It costs 65 tokens per session (4,278 once invoked), scanned A, original, Apache-2.0.

A guide for extending an existing Agent Kernel project with tools, agents, and handoffs. It first examines the project's framework, agents, entry point, configuration, and dependencies.

In plain words
What is it for?
Use it to add custom tool functions, new specialized agents, agent-to-agent handoffs, and the wiring that connects them.
Why use it?
It reduces the risk of adding code that conflicts with the project's current structure or framework. The existing setup provides the context for each change.

Skill for Claude CodeCodex

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 skills/yaalalabs/agent-kernel/ak-build
Any agent
npx skills add yaalalabs/agent-kernel --skill ak-build
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-build

README.md
[![agentmods](https://agentmods.dev/badge/skills/yaalalabs/agent-kernel/ak-build.svg)](https://agentmods.dev/skills/yaalalabs/agent-kernel/ak-build)
Your own site
<a href="https://agentmods.dev/skills/yaalalabs/agent-kernel/ak-build"><img src="https://agentmods.dev/badge/skills/yaalalabs/agent-kernel/ak-build.svg" alt="Measured on agentmods" height="20"></a>
Per session 65 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,278 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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.00065 $0.04278
Opus 5 $0.00032 $0.02139
Sonnet 5 $0.00013 $0.00856
Haiku 4.5 $0.00006 $0.00428

Measured today against content hash c7b1fd504a27, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

ak-build 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.

curl -X POST http://localhost:8000/run \
ak-py/src/agentkernel/skills/ak-build/SKILL.md · 470 lines

How it starts

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

Build: Add Tools & Agents

Use this skill to add new tools, agents, or handoffs to an existing Agent Kernel project.

Instructions for the Agent

Step 1: Read the Existing Project

Before generating any code, inspect the project to determine:

  1. Framework — Open the main agent file (e.g., app.py, demo.py, server.py, lambda.py) and look for:

    • from agentkernel.openai import OpenAIModuleOpenAI Agents SDK
    • from agentkernel.langgraph import LangGraphModuleLangGraph
    • from agentkernel.crewai import CrewAIModuleCrewAI
    • from agentkernel.adk import GoogleADKModuleGoogle ADK
    • from agentkernel.smolagents import SmolagentsModuleSmolagents
    • from agentkernel.pydanticai import PydanticAIModulePydantic AI
  2. Existing agents — List every agent already defined (names, roles, instructions).

  3. Existing tools — List every tool function and which agent uses it.

  4. Entry point — Is it CLI (demo.py), API (RESTAPI.run()), Lambda (Lambda.handler), or Azure Function?

  5. Config — Read config.yaml for session type, guardrails, tracing, integrations already enabled.

  6. Dependencies — Read pyproject.toml for the extras already installed (e.g., [openai,api,redis]).

Report back what you found before proceeding. Example:

Project summary:

  • Framework: OpenAI Agents SDK
  • Entry point: app.py (API mode via RESTAPI.run())
  • Agents: triage (routes to sub-agents), math (handles math), general (handles everything else)
  • Tools: calculator (bound to math), web_search (bound to general)
  • Session: Redis
  • Extras: [openai,api,redis]

Step 2: Ask What to Add

Ask the user what they want to add:

  1. A new tool — A Python function that an agent can call
  2. A new agent — A new specialist agent
  3. A handoff — Wire an existing agent to delegate to another
  4. All of the above — Add a new agent with its own tools and wire it into the existing handoff graph

Read the full file on GitHub · 470 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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 c7b1fd504a27
  2. 4d ago First seen · 470 lines · 65 tokens per session scan A 1230377718f5

Subscribe to this mod's changes

ak-build is a skill published in the GitHub repository yaalalabs/agent-kernel (166 stars, last pushed today), licensed Apache-2.0. It adds 65 tokens to every session and 4,278 once invoked, about $0.0003 per session on Opus 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.