cli-feature

cli-feature is a skill for Claude Code, Codex from clidey/whodb. It costs 16 tokens per session (445 once invoked), scanned A, original, Apache-2.0.

A workflow for adding a command or text-based interface view to the WhoDB command-line application. A command-line application is controlled by typed commands in a terminal.

In plain words
What is it for?
Use it to create a new CLI command or TUI view, connect it to database operations, and build and check the CLI.
Why use it?
It keeps database access, machine-readable output, identity handling, and terminal UI code in the intended parts of the project.

Skill for Claude CodeCodex

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

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is cd cli && go test ./internal/tui/... && go build ..

Good fit Use it to create a new CLI command or TUI view, connect it to database operations, and build and check the CLI.

Compare 6 skills from other repositories ↓
About the project

WhoDB is a self-hosted workspace for exploring and managing databases through a browser, desktop app, or terminal interface. Developers and data teams use it to browse and edit data, run queries, inspect table relationships, move data, and optionally ask questions through an AI provider. The catalogue includes add-ons for operating WhoDB and working with its database tools.

clidey/whodb · 5,074 stars · on GitHub · whodb.com

Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/clidey/whodb
agentmods
npx agentmods add skills/clidey/whodb/cli-feature

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 cli-feature

README.md
[![agentmods](https://agentmods.dev/badge/skills/clidey/whodb/cli-feature/github.svg)](https://agentmods.dev/skills/clidey/whodb/cli-feature)
Your own site
<a href="https://agentmods.dev/skills/clidey/whodb/cli-feature"><img src="https://agentmods.dev/badge/skills/clidey/whodb/cli-feature/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 cli-feature

Your own site · 80×15
<a href="https://agentmods.dev/skills/clidey/whodb/cli-feature"><img src="https://agentmods.dev/badge/skills/clidey/whodb/cli-feature.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 16 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 445 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.00016 $0.00445
Opus 5.5 $0.00006 $0.00178
Sonnet 5.5 $0.00003 $0.00089
Haiku 4.5 $0.00002 $0.00044

Measured 17d ago against content hash dce848101d49, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

cli-feature 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 17d 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.

.agents/skills/cli-feature/SKILL.md · 70 lines

What it actually says

Add a CLI Feature

Adding a New Command

1. Create Command File

cli/cmd/<name>.go:

package cmd

import "github.com/spf13/cobra"

var <name>Cmd = &cobra.Command{
    Use:   "<name>",
    Short: "Description",
    RunE: func(cmd *cobra.Command, args []string) error {
        // Implementation using database.Manager
        return nil
    },
}

func init() {
    rootCmd.AddCommand(<name>Cmd)
}

2. Key Rules

  • Use database.Manager for all DB operations (direct plugin access, not GraphQL)
  • Identity-driven text: write whodb in command examples; use pkg/identity helpers for display names and home-dir paths, never hardcode edition-specific names
  • Structured output: use pkg/output writers (table/json/csv/ndjson) for machine-readable commands
  • Keep main.go thin — it calls the shared runtime, nothing else

3. Verification

cd cli && go build . && go vet ./...

Adding a New TUI View

1. Create View File

cli/internal/tui/<name>_view.go:

Implement the Bubble Tea model interface:

  • Init() tea.Cmd
  • Update(msg tea.Msg) (tea.Model, tea.Cmd)
  • View() string

2. Add to MainModel

  • Add view mode to cli/internal/tui/model.go
  • Add navigation in Update()
  • Use pkg/styles for consistent rendering

3. Key Patterns

  • Vim-like navigation (hjkl)
  • Tab for view switching
  • Esc for going back
  • Don't use lipgloss Padding with viewport output (use manual prefix)
  • Use database.Manager for data access

4. Verification

cd cli && go test ./internal/tui/... && go build .
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. 17d ago First seen · 70 lines · 16 tokens per session scan A dce848101d49

Subscribe to this mod's changes

cli-feature is a skill published in the GitHub repository clidey/whodb (5,074 stars, last pushed today), licensed Apache-2.0. It adds 16 tokens to every session and 445 once invoked, about $0.0001 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-11-13.

Related

cli-feature compared with skills from other repositories

cli-feature next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
cli-featureclidey/whodbSkill5.1ktodayApache-2.0A16Claude Code, Codex
test-reviewdatahub-project/datahubSkill13ktodayApache-2.0A0Claude Code, Codex
datahub-test-taxonomydatahub-project/datahubSkill13ktodayApache-2.0A80Claude Code
graphjin-evaldosco/graphjinSkill3.2kyesterdayApache-2.0A27Claude Code, Codex
graphjin-env-workflowsdosco/graphjinSkill3.2kyesterdayApache-2.0A60Claude Code
graphjin-envdosco/graphjinSkill3.2kyesterdayApache-2.0A61Claude Code, Codex
add-graphjin-databasedosco/graphjinSkill3.2kyesterdayApache-2.0A60Claude Code, Codex