ak-add-integration

ak-add-integration is a skill for Claude Code, Codex from yaalalabs/agent-kernel. It costs 59 tokens per session (2,941 once invoked), scanned A, original, Apache-2.0.

A setup guide for connecting an Agent Kernel agent to a messaging service or Gmail. It covers services such as Slack, WhatsApp, Telegram, Microsoft Teams, and Instagram.

In plain words
What is it for?
Use it to add a bot or email-based agent integration, configure the chosen service, and set up the handlers that receive incoming messages.
Why use it?
It shows which project files, packages, settings, and webhook handlers need to change when an agent must receive and send messages through one of these services.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to add a bot or email-based agent integration, configure the chosen service, and set up the handlers that receive incoming messages.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/yaalalabs/agent-kernel/ak-add-integration
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 yaalalabs/agent-kernel --skill ak-add-integration
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-add-integration

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/yaalalabs/agent-kernel/ak-add-integration"><img src="https://agentmods.dev/badge/skills/yaalalabs/agent-kernel/ak-add-integration.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 59 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,941 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: 4 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 Privilege Escalation · line 124
    Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
    Fix: Remove references to credential paths. Use environment variables or secrets managers. For docs, use placeholder paths (e.g., /path/to/config). Never load .env or token files in production code paths.
  • high Privilege Escalation · line 292
    Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
    Fix: Remove references to credential paths. Use environment variables or secrets managers. For docs, use placeholder paths (e.g., /path/to/config). Never load .env or token files in production code paths.
  • medium Data Exfiltration · line 83
    Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.
    Fix: Verify the destination URL is trusted and necessary. Remove or replace with documented APIs. Ensure no secrets, tokens, or PII are transmitted.
  • medium Data Exfiltration · line 254
    Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.
    Fix: Verify the destination URL is trusted and necessary. Remove or replace with documented APIs. Ensure no secrets, tokens, or PII are transmitted.
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.00059 $0.02941
Opus 5.5 $0.00024 $0.01176
Sonnet 5.5 $0.00012 $0.00588
Haiku 4.5 $0.00006 $0.00294

Measured 11d ago against content hash ba8ab3e2f589, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

ak-add-integration 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 11d 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.

Makes network callslowCapability

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

4. Check health: `curl http://localhost:8000/health`
ak-py/src/agentkernel/skills/ak-add-integration/SKILL.md · 435 lines

How it starts

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

Add a Messaging Integration

Use this skill to add a messaging platform integration to your Agent Kernel project.

Instructions for the Agent

When the user wants to add a messaging integration, follow this workflow:

Step 1: Identify the Project

Check the user's current project for:

  • An existing pyproject.toml with agentkernel dependency
  • An agent definition file (e.g., app.py, server.py, demo.py)
  • An existing config.yaml

If not found, suggest using the ak-init skill first.

Step 2: Ask Which Integration

Which messaging platform would you like to integrate?

  1. Slack — Bot that responds in Slack channels and threads
  2. WhatsApp — Bot via WhatsApp Business API (Meta)
  3. Facebook Messenger — Bot via Messenger Platform (Meta)
  4. Instagram — Bot via Instagram Messaging API (Meta)
  5. Telegram — Bot via Telegram Bot API
  6. Teams — Bot via Microsoft Teams (Azure Bot Framework)
  7. Gmail — Email-based agent via Gmail API (polling)

Step 3: Generate Changes

The snippets below mount each integration with IOHandler.run(...), the local/containerized pipeline. If the project deploys on AWS Lambda (the ak-serverless Terraform module), host the same handler in the request-handler Lambda instead, and add the platform extra to both the request-handler and the response-handler packages (agentkernel[aws,<platform>], not the api extra):

# lambda_request_handler.py
from agentkernel.aws import Lambda, LambdaWebhookHost
from agentkernel.integration.adapter import WebhookRESTRequestHandler
from agentkernel.slack import SlackInboundAdapter  # or the platform's inbound adapter

slack = LambdaWebhookHost(WebhookRESTRequestHandler(SlackInboundAdapter()))


@Lambda.register("/slack/events", method="POST")  # the adapter's webhook_path
def slack_events(event, context):
    return slack.handle(event, context)


handler = Lambda.handler
  • WhatsApp, Messenger and Instagram also register the handshake: Lambda.register("/<platform>/webhook", method="GET")(host.challenge).

Read the full file on GitHub · 435 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. 11d ago Changed ba8ab3e2f589
  2. 12d ago Changed · +38 lines 1521f77e22dd
  3. 25d ago Changed 1689b85dca1b
  4. 28d ago Changed cb9775f9b3e9
  5. 1mo ago Changed · +10 lines f7b7a569a7bf
  6. 1mo ago Changed 05d67810c304
  7. 1mo ago Changed 659f3f4404b3
  8. 1mo ago First seen · 387 lines · 59 tokens per session scan A 98e160858a12

Subscribe to this mod's changes

ak-add-integration is a skill published in the GitHub repository yaalalabs/agent-kernel (192 stars, last pushed yesterday), licensed Apache-2.0. It adds 59 tokens to every session and 2,941 once invoked, about $0.0002 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.