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

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

Good fit Use it to design prompt flows, validate answers, add spinners and status messages, and create runnable examples with Clack.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/pass-agent/loomkin/clack
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.

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/github.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/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 clack

Your own site · 80×15
<a href="https://agentmods.dev/skills/pass-agent/loomkin/clack"><img src="https://agentmods.dev/badge/skills/pass-agent/loomkin/clack.svg" alt="Reviewed on agentmods" width="80" 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. A grade says what 26 rules found in the file — not that it is safe.
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.00072 $0.00696
Opus 5.5 $0.00029 $0.00278
Sonnet 5.5 $0.00014 $0.00139
Haiku 4.5 $0.00007 $0.00070

Measured 3mo ago against content hash f348ebf86f4d, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 3mo 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. 3mo 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 (183 stars, last pushed 6mo ago), licensed MIT. It adds 72 tokens to every session and 696 once invoked, about $0.0003 per session on Opus 5.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

clack compared with skills from other repositories

clack next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
clackpass-agent/loomkinSkill1836mo agoMITA72Claude Code, Codex
elixirericrisco/rsc-harnessSkill7072d agoMITA72Claude Code, Codex
phoenixericrisco/rsc-harnessSkill7072d agoMITB89Claude Code, Codex
offensive-vuln-classesMiosa-osa/OSASkill824d agoApache-2.0A69Claude Code, Codex
offensive-crypto-attacksMiosa-osa/OSASkill824d agoApache-2.0A199Claude Code, Codex
offensive-social-engineeringMiosa-osa/OSASkill824d agoApache-2.0A193Claude Code, Codex
offensive-parameter-pollutionMiosa-osa/OSASkill824d agoApache-2.0A57Claude Code, Codex