Borrowing it
Nothing to install: this file belongs to vendelieu/telegram-bot. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/vendelieu/telegram-bot/master/.cursor/skills/add-ktnip-ksp-tests/SKILL.mdgit clone --depth 1 https://github.com/vendelieu/telegram-botWrote 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.
[](https://agentmods.dev/skills/vendelieu/telegram-bot/add-ktnip-ksp-tests)<a href="https://agentmods.dev/skills/vendelieu/telegram-bot/add-ktnip-ksp-tests"><img src="https://agentmods.dev/badge/skills/vendelieu/telegram-bot/add-ktnip-ksp-tests/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.
<a href="https://agentmods.dev/skills/vendelieu/telegram-bot/add-ktnip-ksp-tests"><img src="https://agentmods.dev/badge/skills/vendelieu/telegram-bot/add-ktnip-ksp-tests.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00048 | $0.00771 |
| Opus 5 | $0.00024 | $0.00385 |
| Sonnet 5 | $0.00010 | $0.00154 |
| Haiku 4.5 | $0.00005 | $0.00077 |
Grade A, and why
add-ktnip-ksp-tests 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 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.
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.
How it starts
The opening of the file, as written. The whole thing — 77 lines — stays where its author put it; the contents beside it link to each section on GitHub.
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 ofrunTestfor custom checks - Returns
JvmCompilationResult; inspectexitCode,kspSourcesDir, generated files - Pass custom
symbolProcessorsorprocessorProviders
runTest Behavior
- Loads source from resources
- Compiles with ActivityProcessorProvider (default)
- Asserts
exitCode == OK(orCOMPILATION_ERRORwhen 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):
- Golden files (preferred): If
test-data/golden/<TestName>/<FileName>.goldexists, full file content is compared. - 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:
/* 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=
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.
- 11d ago First seen · 77 lines · 48 tokens per session scan A 33769f4925d1
add-ktnip-ksp-tests is a skill published in the GitHub repository vendelieu/telegram-bot (248 stars, last pushed 14d ago), licensed Apache-2.0. It adds 48 tokens to every session and 771 once invoked, about $0.0002 per session on Opus 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.
Other skills, from other repositories
Kotlin Testing Patterns
Kotlin testing with JUnit 5, MockK, Kotest, coroutine testing, Android testing with Espresso, and Kotlin-specific assertion libraries.
author-test
Generate a test given sample. Parameters: C# SDK repository root; Package name: one of Azure.AI.Projects, Azure.AI.Projects.Agents or Azure.AI.Extensions.OpenAI; the sample to use as a starting point for the test.
swift-testing-pro
Writes, reviews, and improves Swift Testing code using modern APIs and best practices. Use when reading, writing, or reviewing projects that use Swift Testing.
swift
Swift development: concurrency patterns, async/await, actors, testing with XCTest and Swift Testing framework.
modernize-tests
Modernize test suites to use modern Swift Testing features or migrate from XCTest.
swift-testing-expert
Expert guidance for Swift Testing: test structure, #expect/#require macros, traits and tags, parameterized tests, test plans, parallel execution, async waiting patterns, and XCTest migration. Use when writing new Swift tests, modernizing XCTest suites, debugging flaky tests, or improving test quality and…