CreateCLI

CreateCLI is a skill for Claude Code, Codex from danielmiessler/LifeOS. It costs 88 tokens per session (1,933 once invoked), scanned A, original, MIT.

A generator for TypeScript command-line programs, which are tools operated by typing commands in a terminal. It offers templates ranging from simple argument handling to frameworks such as Commander.js and oclif.

In plain words
What is it for?
Use it to create a new terminal utility, wrap an API in a command, add commands to a tool, or move an existing CLI to a more structured template.
Why use it?
It removes the repeated setup work involved in building a command-line tool. The generated project includes implementation files, documentation, configuration, JSON output, and defined exit-code behavior.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: reads .claude/ paths.

Good fit Use it to create a new terminal utility, wrap an API in a command, add commands to a tool, or move an existing CLI to a more structured template.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/danielmiessler/lifeos/createcli
About the project

LifeOS is an AI-assisted personal operating system that records a person’s goals, values, context, and current situation to help move them toward a desired future state. It supports work such as building applications, starting businesses, and creative projects. Its catalogue entries extend the system through skills, hooks, agents, and commands.

danielmiessler/LifeOS · 20,594 stars · on GitHub · ourlifeos.ai

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 danielmiessler/LifeOS --skill createcli
Clone the repo
git clone --depth 1 https://github.com/danielmiessler/LifeOS

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 CreateCLI

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/danielmiessler/lifeos/createcli"><img src="https://agentmods.dev/badge/skills/danielmiessler/lifeos/createcli.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 88 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,933 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
  • Snyk pass 7 Sept 2026
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 3 findings, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Rogue Agent · line 4
    Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.
    Fix: Remove any persistence mechanisms (cron jobs, startup scripts, state files). Skills should not maintain state across sessions without explicit user consent.
  • medium Data Exfiltration · line 21
    Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.
    Fix: Verify the destination URL is trusted and necessary. Remove or replace with documented APIs. Ensure no secrets, tokens, or PII are transmitted.
  • medium Rogue Agent · line 74
    Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.
    Fix: Remove any persistence mechanisms (cron jobs, startup scripts, state files). Skills should not maintain state across sessions without explicit user consent.
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.00088 $0.01933
Opus 5.5 $0.00035 $0.00773
Sonnet 5.5 $0.00018 $0.00387
Haiku 4.5 $0.00009 $0.00193

Measured 1mo ago against content hash 17543411b43c, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

CreateCLI 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 1mo ago.

The scan reads SKILL.md. This mod also ships 1 executable file (Tools/CheckCli.ts), 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.

LifeOS/install/skills/CreateCLI/SKILL.md · 101 lines

How it starts

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

CreateCLI

Contents: Ideal State · Intent Routing · Data & Config · Gotchas · Examples

Generates production-ready TypeScript CLIs, from agent-first CLIs for public web apps (API-key auth, browser device login) to personal and project tools. Every CLI ships with full implementation, README and QUICKSTART, a Bun package.json, strict tsconfig, JSON output, and correct exit codes. A three-tier template system picks the right complexity: Tier 1 manual arg parsing with zero deps (most cases), Tier 2 Commander.js for subcommands, Tier 3 oclif as a reference for enterprise scale.

Shared facts the intents rely on:

  • Tiers. Tier 1 parses process.argv by hand with zero framework dependencies, Bun + TypeScript and type-safe interfaces in ~300-400 lines, in four sections: configuration, command functions, help documentation, main entry point. It fits API clients, data transformers and simple automation with 2-10 commands, simple arguments, JSON output and no subcommands. Tier 2 (Commander.js) is the escalation when any Tier 2 indicator holds, the same list for CreateCli and UpgradeTier: 10+ commands that need grouping, git-style subcommands (cli convert json csv / cli convert csv json), a plugin architecture, complex nested option combinations, or multiple output format engines (a --format json flag alone is standard Tier 1 output control). A long list of simple, ungrouped commands is not an indicator. Tier 3 (oclif) is reference only, documentation and no templates, for Heroku CLI or Salesforce CLI scale.
  • Stack. Runtime and package manager are Bun, the language is TypeScript with a strict tsconfig, tests (when added) run under bun test ./<path>, output is deterministic JSON that pipes to jq and grep, and documentation is README + QUICKSTART.
  • Placement. ~/.claude/LIFEOS/TOOLS/[cli-name]/ holds personal CLIs and ~/Projects/[project-name]/ project-specific ones. The two sit in different git repositories, so confirm which repository a CLI directory belongs to before any git operation in it.
  • CLI-First Architecture (LIFEOS/DOCUMENTATION/Tools/CliFirstArchitecture.md): every generated CLI is deterministic (same input → same output), clean (single responsibility), composable (JSON output pipes to other tools), documented (comprehensive help and examples) and testable (predictable behavior).

Read the full file on GitHub · 101 lines

Files

What ships with it

6 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 1mo ago Changed · -278 lines 17543411b43c
  2. 3mo ago First seen · 379 lines · 88 tokens per session scan A 28ef0cc19b09

Subscribe to this mod's changes

CreateCLI is a skill published in the GitHub repository danielmiessler/LifeOS (20,594 stars, last pushed 13d ago), licensed MIT. It adds 88 tokens to every session and 1,933 once invoked, about $0.0004 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

CreateCLI compared with skills from other repositories

CreateCLI next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
CreateCLIdanielmiessler/LifeOSSkill21k13d agoMITA88Claude Code, Codex
setup-ts-deep-modulesvinvcn/mattpocock-skills-zh-CNSkill6.2kyesterdayMITA49Claude Code, Codex
output-dev-code-stylegrowthxai/outputSkill445yesterdayApache-2.0A50Claude Code
typescript-projectmajiayu000/spellbookSkill301yesterdayMITA42Claude Code, Codex
frontend-typescript-rulesshinpr/ai-coding-project-boilerplateSkill2392d agoMITA29Claude Code
typescript-rulesshinpr/ai-coding-project-boilerplateSkill2392d agoMITA31Claude Code
buncode-yeongyu/senpiSkill530todayMITA237Claude Code, Codex