Agent skill

Build Wizard Flow

by vendelieu in vendelieu/telegram-bot

Creates multi-step wizard flows with validation and state persistence using @WizardHandler and WizardStep.

Apache-2.0Auto-check passedMobile

Install Build Wizard Flow

skills CLI
$ npx skills add vendelieu/telegram-bot --skill build-wizard-flow -a claude-code

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

GitHub CLI
$ gh skill install vendelieu/telegram-bot build-wizard-flow --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/build-wizard-flow .claude/skills/build-wizard-flow && 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
build-wizard-flow
GitHub stars
249
Token cost
~889 tokens
SKILL.md length
160 words
Files
1
Skills in repo
14
Repo updated
First seen
Licence
Apache-2.0

At a glance

Creates multi-step wizard flows with validation and state persistence using @WizardHandler and WizardStep.

  • Multi-step conversations that need typed state and validation
  • SKILL.md covers Quick Start, WizardStep Lifecycle, Transitions and State Managers, plus 4 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md
  • Tasks that involve Agent memory

What it does

Build Wizard Flow is an agent skill from vendelieu/telegram-bot. Creates multi-step wizard flows with validation and state persistence using @WizardHandler and WizardStep. Use when building forms, questionnaires, or multi-step conversations that need typed state and validation.

Its SKILL.md is about 890 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 Mobile, covering Agent memory, Chatbots and conversational support and Android development. 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

  • Multi-step conversations that need typed state and validation
  • Tasks that involve Agent memory
  • Tasks that involve Chatbots and conversational support

Example prompts

  • “Use the build-wizard-flow skill to create multi-step wizard flows with validation and state persistence using @WizardHandler and WizardStep”
  • “/build-wizard-flow”

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

Build Wizard Flow loads about 889 tokens when it runs. Until then it costs about 58 tokens; SKILL.md has 160 words of instructions outside code blocks.

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

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). 160 words, ~889 tokens.

Download SKILL.mdSave it as .claude/skills/build-wizard-flow/SKILL.md (or your agent's skills folder).
name
build-wizard-flow
description
Creates multi-step wizard flows with validation and state persistence using @WizardHandler and WizardStep. Use when building forms, questionnaires, or multi-step conversations that need typed state and validation.

Build Wizard Flow

Quick Start

Annotate an object/class with @WizardHandler. Define nested steps extending WizardStep. KSP generates the WizardActivity; no manual Activity class needed.

kotlin
import eu.vendeli.tgbot.types.component.MessageUpdate

@WizardHandler(trigger = ["/start"])
object RegistrationWizard {
    object NameStep : WizardStep(isInitial = true) {
        override suspend fun onEntry(ctx: WizardContext) {
            message("What's your name?").send(ctx.user, ctx.bot)
        }
        override suspend fun validate(ctx: WizardContext): Transition {
            val text = (ctx.update as? MessageUpdate)?.message?.text ?: return Transition.Retry()
            return if (text.isNotBlank()) Transition.Next else Transition.Retry("Invalid name")
        }
        override suspend fun store(ctx: WizardContext): String? =
            (ctx.update as? MessageUpdate)?.message?.text
    }

    object AgeStep : WizardStep() {
        override suspend fun onEntry(ctx: WizardContext) {
            message("How old are you?").send(ctx.user, ctx.bot)
        }
        override suspend fun validate(ctx: WizardContext): Transition {
            val age = (ctx.update as? MessageUpdate)?.message?.text?.toIntOrNull()
            return if (age != null && age in 1..150) Transition.Next else Transition.Retry()
        }
        override suspend fun store(ctx: WizardContext): Int? =
            (ctx.update as? MessageUpdate)?.message?.text?.toIntOrNull()
    }
}

WizardStep Lifecycle

  • onEntry(ctx) — Called when entering the step. Send prompts, set keyboards.
  • validate(ctx) — Return Transition based on input.
  • store(ctx) — Return value to persist (or null). Type must match a state manager.
  • onRetry(ctx, reason) — Called when validation fails (optional).

Transitions

TransitionEffect
Transition.NextMove to next step in sequence
Transition.JumpTo(Step::class)Jump to specific step
Transition.Retry() or Transition.Retry("reason")Stay on step, call onRetry
Transition.FinishEnd wizard

State Managers

Default: MapStringStateManager, MapIntStateManager, MapLongStateManager. KSP matches store() return type to the manager.

Override per step:

kotlin
@WizardHandler.StateManager(CustomStateManager::class)
object CustomStep : WizardStep { ... }

WizardContext

  • ctx.user, ctx.update, ctx.bot
  • ctx.getState(Step::class), ctx.setState(Step::class, value), ctx.delState(Step::class) — type-safe accessors generated by KSP for each step

Trigger and Scope

  • trigger = ["/start", "/register"] — commands that start the wizard
  • scope = [UpdateType.MESSAGE] — default; use UpdateType.CALLBACK_QUERY for button-triggered wizards
  • add-wizard-handler — Configure @WizardHandler (trigger, scope, state managers)
  • add-wizard-step — Implement WizardStep (onEntry, validate, store, transitions)

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/build-wizard-flow of vendelieu/telegram-bot.

Open the folder on GitHubat commit 1dbfd00

Compare with similar skills

Build Wizard Flow 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.

Build Wizard Flow compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Build Wizard Flow this skillvendelieu/telegram-bot249—~889Automated safety check: PassApache-2.0
Create Core ModuleMartinStyk/apk-analyzer369—~1.7kAutomated safety check: PassGPL-3.0
Android Hidden API and R8 Checkgkd-kit/gkd43k—~1.5kAutomated safety check: PassGPL-3.0
Build Teaql Appteaql/teaql-agent-kit2.8k—~4.6kAutomated safety check: PassMIT
Compose Multiplatform Patternsmonta-app/ocpp-emulator1805 repos~2kAutomated safety check: PassApache-2.0
OpenClaw to NanoClaw Migrationnanocoai/nanoclaw31k—~6kAutomated safety check: NotesMIT

Similar skills

  • Create Core Module

    MartinStyk/apk-analyzer

    A skill your agent uses when creating a new core or shared library module for domain logic, data access, repositories, managers, or utilities.

    369 GitHub stars~1.7k tokensUpdated 3 days ago
    MobileAuto-check passed
  • Checks whether Android hidden-API implementations and system callbacks survive R8 minification, and diagnoses Release-only failures such as AbstractMethodError.

    43k GitHub stars~1.5k tokensUpdated 2 days ago
    MobileAuto-check passed
  • Build Teaql App

    teaql/teaql-agent-kit

    Build or change a TeaQL application in Java, Rust, Go, Swift, Python, C/.NET, or TypeScript, including Kotlin/JVM applications that consume Java-generated libraries.

    2.8k GitHub stars~4.6k tokensUpdated 11 days ago
    MobileAuto-check passed
  • Compose Multiplatform Patterns

    monta-app/ocpp-emulator

    Compose Multiplatform and Jetpack Compose patterns for KMP projects — state management, navigation, theming, performance, and platform-specific UI.

    180 GitHub starsUsed in 5 repos~2k tokens
    MobileAuto-check passed
  • Guides a conversational migration from an OpenClaw install to NanoClaw v2, carrying over identity, channel credentials, scheduled tasks and workspace files.

    31k GitHub stars~6k tokensUpdated 2 days ago
    Productivity & AutomationAuto-check: notes
  • Android Development

    dpconde/claude-android-skill

    Create production-quality Android applications following Google's official architecture guidance and NowInAndroid best practices.

    336 GitHub stars~1.7k tokensUpdated 10 mo ago
    MobileAuto-check passed

More from vendelieu/telegram-bot

All 14 skills in this repo
  • Add Ktnip Ksp Tests

    vendelieu/telegram-bot

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

    249 GitHub stars~726 tokensUpdated 4 days ago
    Auto-check passed
  • Add Ktnip Parameter Strategy

    vendelieu/telegram-bot

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

    249 GitHub stars~613 tokensUpdated 4 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 4 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 4 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 4 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 4 days ago
    Auto-check passed

Works with

Questions about Build Wizard Flow

What does Build Wizard Flow do?

Creates multi-step wizard flows with validation and state persistence using @WizardHandler and WizardStep. Build Wizard Flow is an agent skill from vendelieu/telegram-bot. Creates multi-step wizard flows with validation and state persistence using @WizardHandler and WizardStep.

When should I use Build Wizard Flow?

Build Wizard Flow fits situations like: multi-step conversations that need typed state and validation; tasks that involve Agent memory; tasks that involve Chatbots and conversational support.

How do I install Build Wizard Flow in Claude Code?

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

How do I install Build Wizard Flow in Codex?

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

Can I use Build Wizard Flow 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 build-wizard-flow -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/build-wizard-flow, .gemini/skills/build-wizard-flow, .github/skills/build-wizard-flow and .opencode/skills/build-wizard-flow in your project.

What does Build Wizard Flow need to run?

SKILL.md names no scripts, command-line tools or credentials: Build Wizard Flow is instructions for the agent only.

Does Build Wizard Flow 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 Build Wizard Flow 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 Build Wizard Flow use?

Build Wizard Flow 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 Build Wizard Flow use?

About 889 tokens (SKILL.md is roughly 3.6k 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 Build Wizard Flow?

Skills that share tags, products or a category with Build Wizard Flow: Create Core Module (MartinStyk/apk-analyzer, 369 stars), Android Hidden API and R8 Check (gkd-kit/gkd, 43k stars), Build Teaql App (teaql/teaql-agent-kit, 2.8k stars) and Compose Multiplatform Patterns (monta-app/ocpp-emulator, 180 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Build Wizard Flow?

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.