askCode: Skill for Claude Code

.claude/skills/add-agent/SKILL.md

add-agent is a skill for Claude Code from realEbi/askCode. It costs 64 tokens per session (646 once invoked), scanned A, original, MIT.

A workflow for adding an AI command-line tool to the askCode.nvim Neovim plugin. It covers the adapter code, registry entry, documentation, and MiniTest tests needed for a new agent.

In plain words
What is it for?
Use it when connecting a new non-interactive CLI agent, choosing how to pass prompts, parsing its output, registering it, and testing its behavior.
Why use it?
It provides a complete integration checklist for tools with different command formats and output styles. This helps prevent incorrect parsing, prompt handling, or missing registration and tests.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

This is realEbi/askCode's own configuration. It tells Claude Code how to work on askCode 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 askCode configures →

Reuse

Borrowing it

Nothing to install: this file belongs to realEbi/askCode. 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/realEbi/askCode/main/.claude/skills/add-agent/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/realEbi/askCode

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 add-agent

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/realebi/askcode/add-agent"><img src="https://agentmods.dev/badge/skills/realebi/askcode/add-agent.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 64 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 646 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.
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.00064 $0.00646
Opus 5.5 $0.00026 $0.00258
Sonnet 5.5 $0.00013 $0.00129
Haiku 4.5 $0.00006 $0.00065

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

Security

Grade A, and why

add-agent 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/add-agent/SKILL.md · 53 lines

How it starts

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

Task: Add a New Agent to askCode.nvim

You are implementing a new agent named $agent_name whose CLI is invoked as:

$cli_invocation

Follow the implementation plan in .agents/add-new-agent.md exactly. The relevant source files are:

  • lua/askCode/agents/ — existing agents to use as reference
  • lua/askCode/agents/init.lua — agent registry (must be updated)
  • .agents/summary/interfaces.md — config schema docs (must be updated)
  • tests/ — existing test files to use as reference

Current agent registry

cat lua/askCode/agents/init.lua

Execution steps

Work through these steps in order. Do not skip any.

Step 1 — Analyse the CLI output format. Determine whether $cli_invocation produces plain text, a single JSON object, or a JSON event stream. Use that to select the correct parse_response strategy from the plan.

Step 2 — Determine the prompt input method. If the CLI reads the prompt from a flag argument (e.g. -p "...") or if prompts can contain code with newlines, use the tempfile method. If the CLI reads from stdin, use the shellescape+pipe method.

Step 3 — Create lua/askCode/agents/$agent_name.lua. Implement all four exports: setup, prepare_command, parse_response, ask. Use the chosen strategies from Steps 1 and 2.

Step 4 — Register the agent. Add $agent_name = require("askCode.agents.$agent_name") to the M.agents table in lua/askCode/agents/init.lua.

Step 5 — Update documentation. In .agents/summary/interfaces.md, append | "$agent_name" to the agent config comment line.

Step 6 — Write unit tests. Create tests/test_$agent_name_agent.lua with all four test groups: setup, prepare_command, parse_response, ask. Mock io.popen in all ask tests. The mock output for the success case must be a string that the real CLI would produce, and the expected parsed value must match what parse_response returns for that input.

Step 7 — Verify. Run make test and confirm the output shows Fails (0) and all cases for test_$agent_name_agent.lua are green. If any test fails, fix the implementation before finishing.

Read the full file on GitHub · 53 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 · 53 lines · 64 tokens per session scan A e917ebb20523

Subscribe to this mod's changes

add-agent is a skill published in the GitHub repository realEbi/askCode (4 stars, last pushed 6mo ago), licensed MIT. It adds 64 tokens to every session and 646 once invoked, about $0.0003 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-31.

Related

add-agent compared with skills from other repositories

add-agent next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
add-agentrealEbi/askCodeSkill46mo agoMITA64Claude Code
skillgrade-gradersmgechev/skillgradeSkill73526d agoMITA63Claude Code, Codex
angular-modern-apismgechev/skillgradeSkill73526d agoMITA20Claude Code, Codex
superlintmgechev/skillgradeSkill73526d agoMITA0Claude Code, Codex
skillgrade-setupmgechev/skillgradeSkill73526d agoMITA58Claude Code, Codex
ainb-fleet:daemonsstevengonsalvez/agents-in-a-boxSkill277d agoMITA126Claude Code
ainb-fleet:bridgestevengonsalvez/agents-in-a-boxSkill277d agoMITA147Claude Code