Agent skill

Add Ktnip Ksp Tests

by vendelieu in vendelieu/telegram-bot

Adds tests for the ktnip KSP processor. An agent skill from vendelieu/telegram-bot.

Apache-2.0Auto-check passedProductivity & Automation

Install Add Ktnip Ksp Tests

skills CLI
$ npx skills add vendelieu/telegram-bot --skill add-ktnip-ksp-tests -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install vendelieu/telegram-bot add-ktnip-ksp-tests --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/vendelieu/telegram-bot.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.cursor/skills/add-ktnip-ksp-tests .claude/skills/add-ktnip-ksp-tests && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
add-ktnip-ksp-tests
GitHub stars
249
Token cost
~726 tokens
SKILL.md length
197 words
Files
1
Skills in repo
14
Repo updated
First seen
Licence
Apache-2.0

At a glance

Adds tests for the ktnip KSP processor. An agent skill from vendelieu/telegram-bot.

  • Works in 3 steps: Test Data → Add to ProcessorTest → Custom Assertions (optional)
  • Adding tests for a new collector
  • SKILL.md covers Workflow, runTest Behavior, Golden Output and G-EXPECT (fallback), plus 1 more section
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Add Ktnip Ksp Tests is an agent skill from vendelieu/telegram-bot. Adds tests for the ktnip KSP processor. Use when adding tests for a new collector, testing processor behavior with new annotations, or verifying KSP code generation for the telegram-bot library.

Its SKILL.md is about 730 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Productivity & Automation, covering Chatbots and conversational support, Android development and Test data and fixtures. It works with Telegram and Kotlin. The repository describes itself as: Telegram Bot API wrapper with handy Kotlin DSL. The licence is Apache-2.0.

When your agent uses it

  • Adding tests for a new collector
  • Testing processor behavior with new annotations
  • Verifying KSP code generation for the telegram-bot library

Example prompts

  • “/add-ktnip-ksp-tests”

Workflow steps

3 steps, taken from the step headings in SKILL.md.

  1. Test Data
  2. Add to ProcessorTest
  3. Custom Assertions (optional)

What it can do on your machine

Read from SKILL.md and the folder at commit 1dbfd00. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are kotlin).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Add Ktnip Ksp Tests loads about 726 tokens when it runs. Until then it costs about 54 tokens; SKILL.md has 197 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~54
When it runs · the whole SKILL.md, loaded when a task matches
~726

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from vendelieu/telegram-bot at commit 1dbfd00, republished under its Apache-2.0 licence (© vendelieu). 197 words, ~726 tokens.

Download SKILL.mdSave it as .claude/skills/add-ktnip-ksp-tests/SKILL.md (or your agent's skills folder).
name
add-ktnip-ksp-tests
description
Adds tests for the ktnip KSP processor. Use when adding tests for a new collector, testing processor behavior with new annotations, or verifying KSP code generation for the telegram-bot library.

Add Ktnip KSP Tests

Workflow

1. Test Data
  • Create Kotlin source in ktnip/src/jvmTest/resources/test-data/
  • Name: FeatureName.kt (e.g. NewHandler.kt)
  • Must import from telegram-bot (project dependency)
  • Include valid handlers with annotations being tested
2. Add to ProcessorTest
  • In ProcessorTest.kt
  • Add @Test fun featureName() = runTest("test-data/FeatureName.kt")
3. Custom Assertions (optional)
  • Use compile(vararg SourceFile, ...) instead of runTest for custom checks
  • Returns JvmCompilationResult; inspect exitCode, kspSourcesDir, generated files
  • Pass custom symbolProcessors or processorProviders

runTest Behavior

  • Loads source from resources
  • Compiles with ActivityProcessorProvider (default)
  • Asserts exitCode == OK (or COMPILATION_ERROR when error directives present)
  • Verifies generated files exist (ActivitiesData.kt, KtGramCtxLoader.kt, BotCtx.kt)
  • Parses /* G-EXPECT ... */ blocks for golden output checks

Golden Output

Two modes (hybrid):

  1. Golden files (preferred): If test-data/golden/<TestName>/<FileName>.gold exists, full file content is compared.
  2. G-EXPECT (fallback): When no golden exists, use inline /* G-EXPECT ... */ block in test data.

G-EXPECT is optional when golden files exist — expectations are discovered from golden files automatically.

Update golden files: ./gradlew :ktnip:updateGolden — run when generated output changes intentionally.

G-EXPECT (fallback)

Add /* G-EXPECT ... */ block to test data when no golden file exists:

kotlin
/* G-EXPECT
file=KtGramCtxLoader.kt
contains="registerCommand"
contains="registerActivity"

file=BotCtx.kt
contains="userData"
contains="getState"
notContains="TODO"

noError
*/

Directives: file=, contains="...", notContains="...", matches="regex", notMatches="regex", noError, error contains=, error exact=, error count=, error file=X line=Y contains=

Reference

© vendelieu, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .cursor/skills/add-ktnip-ksp-tests of vendelieu/telegram-bot.

Open the folder on GitHubat commit 1dbfd00

Compare with similar skills

Add Ktnip Ksp Tests next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Add Ktnip Ksp Tests compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Add Ktnip Ksp Tests this skillvendelieu/telegram-bot249—~726Automated safety check: PassApache-2.0
Testing Strategiesc0x12c/ai-toolkit106—~893Automated safety check: PassNone
Telegrambubbuild/bub1.7k—~2.2kAutomated safety check: PassApache-2.0
Pytdbotpytdbot/client137—~4.3kAutomated safety check: PassMIT
Setupterranc/claude-telegram-bot-bridge134—~1.5kAutomated safety check: NotesNone
Android Audio E2Ehyochan/react-native-nitro-sound961—~814Automated safety check: PassMIT

Similar skills

  • Testing Strategies

    c0x12c/ai-toolkit

    Testing patterns for Micronaut/Kotlin backend including repository tests, integration tests, and test data builders.

    106 GitHub stars~893 tokensUpdated 3 mo ago
    Testing & QAAuto-check passed
  • Telegram

    bubbuild/bub

    Telegram Bot skill for sending and editing Telegram messages via Bot API.

    1.7k GitHub stars~2.2k tokensUpdated yesterday
    Productivity & AutomationAuto-check passed
  • Pytdbot

    pytdbot/client

    Write Telegram bots and userbots with Pytdbot (async TDLib wrapper with high-level helpers; not the Telegram Bot API).

    137 GitHub stars~4.3k tokensUpdated today
    Productivity & AutomationAuto-check passed
  • Setup

    terranc/claude-telegram-bot-bridge

    Install and configure the Telegram Skill Bot. An agent skill from terranc/claude-telegram-bot-bridge.

    134 GitHub stars~1.5k tokensUpdated 4 mo ago
    Productivity & AutomationAuto-check: notes
  • Android Audio E2E

    hyochan/react-native-nitro-sound

    Build and run device-backed Android end-to-end checks for react-native-nitro-sound permissions, recording, playback, listeners, pause/resume, seek, speed, audio focus, lifecycle behavior, and rapid…

    961 GitHub stars~814 tokensUpdated 11 days ago
    MobileAuto-check passed
  • Crap Analyzer

    swingerman/engineer

    A skill your agent uses to produce a risk-based refactor + test plan for recently-changed code on a diff/branch/PR by computing CRAP (complexity × untested) on changed methods.

    154 GitHub stars~1.2k tokensUpdated 18 days ago
    Testing & QAAuto-check passed

More from vendelieu/telegram-bot

All 14 skills in this repo
  • Add Ktnip Parameter Strategy

    vendelieu/telegram-bot

    Adds a new parameter resolution strategy to the ktnip KSP processor.

    249 GitHub stars~613 tokensUpdated 6 days ago
    Auto-check passed
  • Add Telegram API Action

    vendelieu/telegram-bot

    Adds a new Telegram Bot API method (action class and top-level functions).

    249 GitHub stars~974 tokensUpdated 6 days ago
    Auto-check passed
  • Add Telegram API Tests

    vendelieu/telegram-bot

    Writes tests for Telegram Bot API actions. An agent skill from vendelieu/telegram-bot.

    249 GitHub stars~609 tokensUpdated 6 days ago
    Auto-check: notes
  • Add Telegram Update Field

    vendelieu/telegram-bot

    Adds a new field to the Update type and wires it through ProcessedUpdate, UpdateType, ProcessUpdate, KSP (TypeConstants, TypeMapper), and FunctionalDSLUtils.

    249 GitHub stars~841 tokensUpdated 6 days ago
    Auto-check passed
  • Add Wizard Handler

    vendelieu/telegram-bot

    Configures @WizardHandler annotation for wizard flows. An agent skill from vendelieu/telegram-bot.

    249 GitHub stars~508 tokensUpdated 6 days ago
    Auto-check passed
  • Add Wizard Step

    vendelieu/telegram-bot

    Implements WizardStep for wizard flows. An agent skill from vendelieu/telegram-bot.

    249 GitHub stars~634 tokensUpdated 6 days ago
    Auto-check passed

Works with

Questions about Add Ktnip Ksp Tests

What does Add Ktnip Ksp Tests do?

Adds tests for the ktnip KSP processor. An agent skill from vendelieu/telegram-bot. Add Ktnip Ksp Tests is an agent skill from vendelieu/telegram-bot. Adds tests for the ktnip KSP processor.

When should I use Add Ktnip Ksp Tests?

Add Ktnip Ksp Tests fits situations like: adding tests for a new collector; testing processor behavior with new annotations; verifying KSP code generation for the telegram-bot library.

How do I install Add Ktnip Ksp Tests in Claude Code?

Run `npx skills add vendelieu/telegram-bot --skill add-ktnip-ksp-tests -a claude-code`. Or copy the skill folder (.cursor/skills/add-ktnip-ksp-tests in vendelieu/telegram-bot) into .claude/skills/add-ktnip-ksp-tests in your project. Claude Code loads it when a task matches its description.

How do I install Add Ktnip Ksp Tests in Codex?

Run `npx skills add vendelieu/telegram-bot --skill add-ktnip-ksp-tests -a codex`. Or copy the skill folder (.cursor/skills/add-ktnip-ksp-tests in vendelieu/telegram-bot) into .agents/skills/add-ktnip-ksp-tests in your project. Codex loads it when a task matches its description.

Can I use Add Ktnip Ksp Tests in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add vendelieu/telegram-bot --skill add-ktnip-ksp-tests -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/add-ktnip-ksp-tests, .gemini/skills/add-ktnip-ksp-tests, .github/skills/add-ktnip-ksp-tests and .opencode/skills/add-ktnip-ksp-tests in your project.

What does Add Ktnip Ksp Tests need to run?

SKILL.md names no scripts, command-line tools or credentials: Add Ktnip Ksp Tests is instructions for the agent only.

Does Add Ktnip Ksp Tests access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Add Ktnip Ksp Tests safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Add Ktnip Ksp Tests use?

Add Ktnip Ksp Tests is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Add Ktnip Ksp Tests use?

About 726 tokens (SKILL.md is roughly 2.9k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Add Ktnip Ksp Tests?

Skills that share tags, products or a category with Add Ktnip Ksp Tests: Testing Strategies (c0x12c/ai-toolkit, 106 stars), Telegram (bubbuild/bub, 1.7k stars), Pytdbot (pytdbot/client, 137 stars) and Setup (terranc/claude-telegram-bot-bridge, 134 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Add Ktnip Ksp Tests?

vendelieu (a GitHub user) maintains it in vendelieu/telegram-bot, which has 249 GitHub stars. The repository holds 14 skills in this directory. The repository was last updated on October 4, 2026.

Source: vendelieu/telegram-bot on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.