clack

clack is a skill for Claude Code, Codex from pass-agent/loomkin. It costs 72 tokens per session (696 once invoked), scanned A, original, MIT.

A guide for building interactive command-line programs with Node.js or Bun. It covers prompts, cancellation, progress indicators, messages, and related terminal interactions.

In plain words
What is it for?
Use it to design prompt flows, validate answers, add spinners and status messages, and create runnable examples with Clack.
Why use it?
It helps keep command-line input safe and predictable, including when users cancel a prompt or enter invalid data.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/pass-agent/loomkin/clack
Any agent
npx skills add pass-agent/loomkin --skill clack
Clone the repo
git clone --depth 1 https://github.com/pass-agent/loomkin

Made for: Claude Code, Codex.

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 clack

README.md
[![agentmods](https://agentmods.dev/badge/skills/pass-agent/loomkin/clack.svg)](https://agentmods.dev/skills/pass-agent/loomkin/clack)
Your own site
<a href="https://agentmods.dev/skills/pass-agent/loomkin/clack"><img src="https://agentmods.dev/badge/skills/pass-agent/loomkin/clack.svg" alt="Measured on agentmods" height="20"></a>
Per session 72 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 696 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00072 $0.00696
Opus 5 $0.00036 $0.00348
Sonnet 5 $0.00014 $0.00139
Haiku 4.5 $0.00007 $0.00070

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

Security

Grade A, and why

clack 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 4d ago.

The scan reads SKILL.md. This mod also ships 5 executable files (assets/templates/basic-cli.mjs, assets/templates/basic-cli.ts, assets/templates/spinner-cli.mjs, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

apps/cli/.agents/skills/clack/SKILL.md · 77 lines

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.

Clack CLI Skill

Implement robust, user-friendly CLI flows with Clack.

Follow This Workflow

  1. Identify the implementation target.
  • Use @clack/prompts for most interactive CLI flows.
  • Use @clack/core for low-level/custom prompt rendering and lifecycle control.
  1. Load only the relevant references.
  • Prompt-centric workflows: references/prompts-api.md
  • Low-level/core extension work: references/core-api.md
  • UX and reliability review: references/best-practices.md
  • Pattern selection and scaffolding: references/examples.md
  • Source links and freshness checks: references/sources.md
  • If user asks for a starter file quickly, run scripts/scaffold-clack.sh.
  1. Build a minimal runnable skeleton first.
  • Include imports, intro(), flow logic, and outro().
  • Add install/run commands for the user's runtime.
  1. Add prompts with explicit validation and cancellation paths.
  • Validate every user-facing field that can fail constraints.
  • Handle cancellation after each prompt result with isCancel(...) and cancel(...).
  1. Add UX support functions intentionally.
  • Use log.* for structured feedback.
  • Use spinner() for long-running single operations.
  • Use note() for summaries and next actions.
  1. For asynchronous multi-step work, use task-oriented patterns.
  • Prefer clear status updates and concise task titles.
  • Keep success/error messages short and actionable.
  1. Finalize with a production-ready answer.
  • Return complete runnable code (not fragments) unless user asks otherwise.
  • Include quick verification steps.

Bundled Resources

  • scripts/scaffold-clack.sh

  • Generate a starter CLI from curated templates in JS or TS.

  • Usage: bash scripts/scaffold-clack.sh <target-dir> [basic|spinner] [js|ts] [auto|npm|pnpm|yarn|bun]

  • assets/templates/basic-cli.mjs

  • Baseline prompt flow with validation, cancellation handling, and summary note.

  • assets/templates/spinner-cli.mjs

  • Prompt flow plus spinner-driven execution pattern for longer operations.

Read the full file on GitHub · 77 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. 4d ago First seen · 77 lines · 72 tokens per session scan A f348ebf86f4d

Subscribe to this mod's changes

clack is a skill published in the GitHub repository pass-agent/loomkin (179 stars, last pushed 3mo ago), licensed MIT. It adds 72 tokens to every session and 696 once invoked, about $0.0004 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

sync-docs

This skill should be used when the user asks to "sync docs", "update guides", "check docs against official", "refresh documentation", "compare guides to official docs", "update docs from upstream", or mentions syncing the SDK documentation guides with the official Claude Agent SDK documentation.

guess/claude_code · 60 tokens

cli-sync

This skill should be used when the user asks to "check CLI schema", "sync CLI version", "check for new CLI options", "update bundled CLI", "compare SDK structs", "check schema drift", "align message structs", "verify CLI compatibility", "check control protocol", or mentions CLI compatibility, schema alignment, or…

guess/claude_code · 100 tokens

elixir

Use when writing or refactoring Elixir/OTP on the BEAM — GenServers, supervision trees and restart strategies, pattern matching, mix projects and releases — or when processes misbehave (restart loops, mailbox growth, call timeouts). NOT a Phoenix web app, LiveView, Ecto or channels (that is phoenix).

ericrisco/rsc-harness · 72 tokens

phoenix

Use when building an Elixir web app with Phoenix — contexts, Ecto schemas, changesets and migrations, LiveView, channels and PubSub, the generators, and the boundary between domain logic and the web layer. Covers the classic LiveView over-rendering and Ecto N+1 traps. NOT pure OTP work with no web or Ecto layer …

ericrisco/rsc-harness · 89 tokens

unit-converter

Converts between common units of measurement including temperature, distance, and weight.

agentjido/jido_ai · 19 tokens

code-review

Reviews code changes for quality, security, and best practices.

agentjido/jido_ai · 15 tokens