agentic-context-engine: Skill for Claude Code

.claude/skills/kayba-pipeline/stage-1-api-analysis/SKILL.md

kayba-stage-1-api-analysis is a skill for Claude Code from kayba-ai/agentic-context-engine. It costs 93 tokens per session (1,004 once invoked), scanned A, original, Apache-2.0.

A Kayba analysis step that fetches already-generated insights from the Kayba API, a service that analyzes agent traces, and saves them for later pipeline steps.

In plain words
What is it for?
Use it to list insights with the Kayba command-line tool, save them as `eval/insights.json`, check their quality, and create a structured summary.
Why use it?
It separates retrieving existing results from uploading or generating analysis, and checks for missing, empty, or duplicate insights before continuing.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

This is kayba-ai/agentic-context-engine's own configuration. It tells Claude Code how to work on agentic-context-engine 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 agentic-context-engine configures →

About the project

Agentic Context Engine is an open-source engine that gives AI agents a persistent learning loop, helping them remember successful strategies and learn from failures across sessions. It is used to improve production agents, and also powers Kayba’s hosted service. Catalogue add-ons support workflows for operating and configuring the engine.

kayba-ai/agentic-context-engine · 2,608 stars · on GitHub · kayba.ai

Reuse

Borrowing it

Nothing to install: this file belongs to kayba-ai/agentic-context-engine. 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/kayba-ai/agentic-context-engine/main/.claude/skills/kayba-pipeline/stage-1-api-analysis/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/kayba-ai/agentic-context-engine

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 kayba-stage-1-api-analysis

README.md
[![agentmods](https://agentmods.dev/badge/skills/kayba-ai/agentic-context-engine/stage-1-api-analysis/github.svg)](https://agentmods.dev/skills/kayba-ai/agentic-context-engine/stage-1-api-analysis)
Your own site
<a href="https://agentmods.dev/skills/kayba-ai/agentic-context-engine/stage-1-api-analysis"><img src="https://agentmods.dev/badge/skills/kayba-ai/agentic-context-engine/stage-1-api-analysis/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 kayba-stage-1-api-analysis

Your own site · 80×15
<a href="https://agentmods.dev/skills/kayba-ai/agentic-context-engine/stage-1-api-analysis"><img src="https://agentmods.dev/badge/skills/kayba-ai/agentic-context-engine/stage-1-api-analysis.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 93 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,004 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 pass 7 Sept 2026
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.00093 $0.01004
Opus 5.5 $0.00037 $0.00402
Sonnet 5.5 $0.00019 $0.00201
Haiku 4.5 $0.00009 $0.00100

Measured 2mo ago against content hash 838146a48a5f, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

kayba-stage-1-api-analysis 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 2mo 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.

.claude/skills/kayba-pipeline/stage-1-api-analysis/SKILL.md · 85 lines

How it starts

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

Stage 1: Kayba API Analysis (Fetch-Only Mode)

Fetch pre-computed insights from the Kayba API. Traces have already been uploaded and analyzed — this stage only pulls results.

Inputs

  • TRACES_FOLDER — passed by the orchestrator but ignored in this stage. Traces are already uploaded and analyzed on the Kayba side. Do NOT upload, validate, or read trace files.

Process

Step 1: Setup

Ensure eval/ directory exists at the project root.

Step 2: Fetch insights

kayba insights list --json > eval/insights.json

If kayba is not found in PATH, search common locations (.venv/bin/kayba, project virtualenvs). If found, use the full path. If not found anywhere, report the error and stop.

If KAYBA_API_KEY is not set, report the error and stop.

Step 3: Insight quality gate

Read eval/insights.json and run quality checks before building the summary:

  1. Empty check: if the insights array is empty (0 insights returned), report this as a warning. Write a minimal summary noting "0 insights generated" and stop — downstream stages cannot proceed without insights.
  2. Duplicate detection: compare insight content fields pairwise. If two insights cover substantially the same behavior (same section, overlapping evidence traces, similar corrective action), flag them as potential duplicates in the summary. Do not remove them — just annotate.
  3. Evidence coverage: for each insight, check if the evidence field references specific traces (e.g., "task_7 turn 4"). Insights with no trace-specific evidence are lower quality — flag as "low-evidence" in the summary.
  4. Vote signal: insights with status: "accepted" and helpful > 0 have been human-validated. Insights with status: "new" and helpful: 0, harmful: 0 are unvalidated — note this distinction in the summary.

Log the quality gate result: "Insight quality: {total} insights, {accepted} accepted, {new_unvalidated} unvalidated, {duplicates} potential duplicate pairs, {low_evidence} low-evidence"

Read the full file on GitHub · 85 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. 2mo ago First seen · 85 lines · 93 tokens per session scan A 838146a48a5f

Subscribe to this mod's changes

kayba-stage-1-api-analysis is a skill published in the GitHub repository kayba-ai/agentic-context-engine (2,608 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 93 tokens to every session and 1,004 once invoked, about $0.0004 per session on Opus 5.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.

Related

kayba-stage-1-api-analysis compared with skills from other repositories

kayba-stage-1-api-analysis next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
kayba-stage-1-api-analysiskayba-ai/agentic-context-engineSkill2.6k1mo agoApache-2.0A93Claude Code
browser-usebrowser-use/browser-useSkill120kyesterdayMITA57Claude Code, Codex
x402browser-use/browser-useSkill120kyesterdayMITA175Claude Code
remote-browserbrowser-use/browser-useSkill120kyesterdayMITA22Claude Code
cloudbrowser-use/browser-useSkill120kyesterdayMITA177Claude Code
open-sourcebrowser-use/browser-useSkill120kyesterdayMITA137Claude Code
qabrowser-use/browser-useSkill120kyesterdayMITC103Claude Code