telegram-bot: Skill for Cursor

.cursor/skills/add-ktnip-parameter-strategy/SKILL.md

add-ktnip-parameter-strategy is a skill for Cursor from vendelieu/telegram-bot. It costs 60 tokens per session (648 once invoked), scanned A, original, Apache-2.0.

A workflow for adding support for a new parameter type in the ktnip KSP processor. KSP is a Kotlin tool that generates code during the build, and this workflow updates the parts that resolve and generate handler parameters.

In plain words
What is it for?
Use it when adding support for values such as ChatMember or InlineQuery. It covers defining the strategy, adding type constants, updating parameter resolution, handling parameter mappings and nullability, and generating the required code.
Why use it?
It provides the code changes needed when handlers must receive a type the processor does not yet understand. This keeps parameter matching and generated invocation code aligned.

Skill for Cursor

Written for Cursor: installed under .cursor/.

This is vendelieu/telegram-bot's own configuration. It tells Cursor how to work on telegram-bot 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 telegram-bot configures →

Reuse

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.

Copy the file
curl -O https://raw.githubusercontent.com/vendelieu/telegram-bot/master/.cursor/skills/add-ktnip-parameter-strategy/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/vendelieu/telegram-bot

Made for: Cursor.

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-ktnip-parameter-strategy

README.md
[![agentmods](https://agentmods.dev/badge/skills/vendelieu/telegram-bot/add-ktnip-parameter-strategy/github.svg)](https://agentmods.dev/skills/vendelieu/telegram-bot/add-ktnip-parameter-strategy)
Your own site
<a href="https://agentmods.dev/skills/vendelieu/telegram-bot/add-ktnip-parameter-strategy"><img src="https://agentmods.dev/badge/skills/vendelieu/telegram-bot/add-ktnip-parameter-strategy/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-ktnip-parameter-strategy

Your own site · 80×15
<a href="https://agentmods.dev/skills/vendelieu/telegram-bot/add-ktnip-parameter-strategy"><img src="https://agentmods.dev/badge/skills/vendelieu/telegram-bot/add-ktnip-parameter-strategy.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 60 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 648 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.00060 $0.00648
Opus 5 $0.00030 $0.00324
Sonnet 5 $0.00012 $0.00130
Haiku 4.5 $0.00006 $0.00065

Measured 9d ago against content hash dcb0561184c3, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

add-ktnip-parameter-strategy 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 9d 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.

.cursor/skills/add-ktnip-parameter-strategy/SKILL.md · 55 lines

How it starts

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

Add Ktnip Parameter Strategy

Workflow

1. Add ParameterResolutionStrategy

  • In ParameterResolutionStrategy.kt
  • Add new data class extending ParameterResolutionStrategy
  • Include typeName, isNullable; add strategy-specific fields (e.g. parameterName, updateTypeSimpleName)
data class MyParam(
    override val typeName: TypeName,
    override val isNullable: Boolean,
    val myField: String,
) : ParameterResolutionStrategy()

2. Add TypeConstant (if new type)

  • In TypeConstants.kt
  • Add val myTypeClass: TypeName = MyType::class.asTypeName()

3. Update ParameterResolver

  • In ParameterResolver.kt
  • Add branch in resolve() when block:
    • Match typeName (use TypeConstants or in TypeMapper.getAllTypedUpdateTypes() for typed updates)
    • Return new strategy instance
    • Handle @ParamMapping for parameter name if from parameters map

4. Update InvocationCodeGenerator

  • In InvocationCodeGenerator.kt
  • Add branch in generateParameterResolution() when block
  • Generate CodeBlock: CodeBlock.of("val param%L = ...\n", parameterIndex, ...)
  • Add imports via fileBuilder.addImport(...) if needed
  • Use nullabilityMark for !! when non-null

5. Update generateInvocationCode (if needed)

  • If strategy affects isBotNeeded, isUpdateNeeded, isParametersNeeded, isUserNeeded: add to the strategies.any { ... } checks

Reference

Read the full file on GitHub · 55 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. 9d ago First seen · 55 lines · 60 tokens per session scan A dcb0561184c3

Subscribe to this mod's changes

add-ktnip-parameter-strategy is a skill published in the GitHub repository vendelieu/telegram-bot (248 stars, last pushed 12d ago), licensed Apache-2.0. It adds 60 tokens to every session and 648 once invoked, about $0.0003 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.

Related

Other skills, from other repositories

compose-animations

Use when writing or reviewing Jetpack Compose motion: visibility enter/exit, animating one property toward a target, color or size transitions, multiple properties from one state, switching composable content, or choosing between AnimatedVisibility, animateAsState, rememberTransition, AnimatedContent, and Crossfade.

chrisbanes/skills · 64 tokens

compose-focus-navigation

Use when writing or reviewing Jetpack Compose UI for TV, keyboard, desktop, accessibility focus, D-pad navigation, FocusRequester, focusProperties, key events, or initial focus behavior.

chrisbanes/skills · 41 tokens

kotlin-control-flow

Use when writing or reviewing Kotlin branching and control flow: when expressions, guard conditions, sealed type exhaustiveness, smart casts, nullable branching, early returns, or replacing complex if/else chains.

chrisbanes/skills · 44 tokens

kotlin-tooling-agp9-migration

Migrates Kotlin Multiplatform (KMP) projects to Android Gradle Plugin 9.0+. Handles plugin replacement (com.android.kotlin.multiplatform.library), module splitting, DSL migration, and the new default project structure. Use when upgrading AGP, when build fails due to KMP+AGP incompatibility, or when the user mentions…

Kotlin/kotlin-agent-skills · 105 tokens

kotlin-tooling-immutable-collections-0-5-x-migration

Migrate Kotlin (and Java) code from kotlinx.collections.immutable 0.3.x / 0.4.x to the latest 0.5.x. The 0.5.x line renames every copy-returning method on PersistentList / PersistentMap / PersistentSet / PersistentCollection to a participial form per KEEP-0459 (add→adding, removeAt→removingAt, set→replacingAt…

Kotlin/kotlin-agent-skills · 192 tokens

kotlin-tooling-native-build-performance

Diagnoses and fixes slow Kotlin/Native compilation and linking in Kotlin Multiplatform projects that target iOS. Use when the user reports slow iOS or shared-framework builds, long linkDebug/linkRelease or XCFramework tasks, cold CI builds that re-download the Kotlin/Native toolchain, KSP or other generated code on…

Kotlin/kotlin-agent-skills · 96 tokens