Logfire Instrumentation
pydantic/skills
Add Pydantic Logfire observability to application code — traces, logs, metrics, and AI/agent spans.
A skill your agent uses when wrapping CLI binaries in JavaScript, automating shell workflows in TypeScript, composing multiple CLIs into scripts, or building agent tool-use.
$ npx skills add millionco/cli-to-js --skill cli-to-js -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install millionco/cli-to-js cli-to-js --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/millionco/cli-to-js.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/cli-to-js .claude/skills/cli-to-js && rm -rf skills-srcUse ~/.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/
Install the "cli-to-js" agent skill from https://github.com/millionco/cli-to-js/tree/main/.agents/skills/cli-to-js into .claude/skills/cli-to-js/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "cli-to-js", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/millionco/cli-to-js/tree/main/.agents/skills/cli-to-jsType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add millionco/cli-to-js --skill cli-to-js -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install millionco/cli-to-js cli-to-js --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/millionco/cli-to-js.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.agents/skills/cli-to-js .agents/skills/cli-to-js && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "cli-to-js" agent skill from https://github.com/millionco/cli-to-js/tree/main/.agents/skills/cli-to-js into .agents/skills/cli-to-js/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "cli-to-js", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add millionco/cli-to-js --skill cli-to-js -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install millionco/cli-to-js cli-to-js --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/millionco/cli-to-js.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.agents/skills/cli-to-js .cursor/skills/cli-to-js && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "cli-to-js" agent skill from https://github.com/millionco/cli-to-js/tree/main/.agents/skills/cli-to-js into .cursor/skills/cli-to-js/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "cli-to-js", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/millionco/cli-to-js.git --path .agents/skills/cli-to-js--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add millionco/cli-to-js --skill cli-to-js -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install millionco/cli-to-js cli-to-js --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/millionco/cli-to-js.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.agents/skills/cli-to-js .gemini/skills/cli-to-js && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "cli-to-js" agent skill from https://github.com/millionco/cli-to-js/tree/main/.agents/skills/cli-to-js into .gemini/skills/cli-to-js/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "cli-to-js", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install millionco/cli-to-js cli-to-jsInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add millionco/cli-to-js --skill cli-to-js -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/millionco/cli-to-js.git skills-src && mkdir -p .github/skills && cp -r skills-src/.agents/skills/cli-to-js .github/skills/cli-to-js && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "cli-to-js" agent skill from https://github.com/millionco/cli-to-js/tree/main/.agents/skills/cli-to-js into .github/skills/cli-to-js/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "cli-to-js", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add millionco/cli-to-js --skill cli-to-js -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install millionco/cli-to-js cli-to-js --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/millionco/cli-to-js.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.agents/skills/cli-to-js .opencode/skills/cli-to-js && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "cli-to-js" agent skill from https://github.com/millionco/cli-to-js/tree/main/.agents/skills/cli-to-js into .opencode/skills/cli-to-js/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "cli-to-js", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
cli-to-jsA skill your agent uses when wrapping CLI binaries in JavaScript, automating shell workflows in TypeScript, composing multiple CLIs into scripts, or building agent tool-use.
CLI To JS is an agent skill from millionco/cli-to-js. Use when wrapping CLI binaries in JavaScript, automating shell workflows in TypeScript, composing multiple CLIs into scripts, or building agent tool-use. Covers convertCliToJs, $command, $validate, $spawn, script(), .text()/.lines()/.json() output parsing.
Its SKILL.md is about 1.1k 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 AI & LLM Engineering, covering Building AI agents. It works with JavaScript and TypeScript. The repository describes itself as: Turn any CLI into a JavaScript API. The licence is MIT.
4 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit 7619a98. It shows what the files ask for, not the result of running them.
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.
No scripts in the folder and no shell commands in SKILL.md (its code samples are typescript).
From the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
CLI To JS loads about 1.1k tokens when it runs. Until then it costs about 67 tokens; SKILL.md has 142 words of instructions outside code blocks.
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.
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.
The full file from millionco/cli-to-js at commit 7619a98, republished under its MIT licence (© millionco). 142 words, ~1,058 tokens.
.claude/skills/cli-to-js/SKILL.md (or your agent's skills folder).You are using cli-to-js to turn CLI binaries into callable JavaScript APIs.
convertCliToJs("binary") once, reuse the returned API.text(), .lines(), or .json() for typed output — never manually split result.stdout$validate before executing when inputs come from untrusted sources$spawn + for await for streaming — never callbacks unless specifically asked// JS option key → CLI output
// { verbose: true } → --verbose
// { verbose: false } → (omitted)
// { output: "file.txt" } → --output file.txt
// { dryRun: true } → --dry-run
// { v: true } → -v
// { include: ["a", "b"] } → --include a --include b
// { _: ["file.txt"] } → file.txtimport { convertCliToJs, script } from "cli-to-js";
const tool = await convertCliToJs("binary-name");
// Run + typed output
await tool.subcommand({ flag: "val", _: ["pos"] }).text();
await tool.subcommand({ json: true }).json<MyType>();
await tool.subcommand().lines();
// Streaming
for await (const line of tool.$spawn.subcommand({ watch: true })) {
}
// Validation (did-you-mean, choices, required flags, exclusive flags)
const errors = tool.$validate({ misspeled: true });
// Shell string without executing
tool.$command.subcommand({ flag: "val" });
// → "binary-name subcommand --flag val"
// Compose into runnable script
const deploy = script(git.$command.push(), docker.$command.build({ tag: "app", _: ["."] }));
deploy.run(); // execute with &&
console.log(`${deploy}`); // get the stringBad:
const result = await api.status();
const lines = result.stdout.trim().split("\n");Good:
const statusLines = await api.status().lines();Bad:
const api1 = await convertCliToJs("git");
const api2 = await convertCliToJs("git"); // wasteful duplicateGood:
const git = await convertCliToJs("git");
// reuse git everywhereBad:
await api.commit({ mesage: "fix" }); // typo silently becomes unknown flagGood:
const errors = api.$validate({ mesage: "fix" });
// [{ kind: "unknown-flag", suggestion: "message" }]
if (errors.length > 0) throw new Error(errors[0].message);
await api.commit({ message: "fix" });const git = await convertCliToJs("git");
const claude = await convertCliToJs("claude");
const files = await git.diff({ nameOnly: true, _: ["HEAD~1"] }).lines();
for (const file of files) {
const review = await claude({
print: true,
model: "sonnet",
_: [`Review ${file} for bugs`],
}).text();
if (review.includes("no issues")) continue;
console.log(`${file}: ${review}`);
}| Method | Returns | Use for |
|---|---|---|
api.sub(opts) | CommandPromise | Run subcommand |
.text() | Promise<string> | Trimmed stdout |
.lines() | Promise<string[]> | Split by newlines |
.json<T>() | Promise<T> | Parse JSON output |
api.$spawn.sub(opts) | CommandProcess | for await streaming |
api.$command.sub(opts) | string | Shell string, no execution |
api.$validate(opts) | ValidationError[] | Pre-flight flag checking |
api.$validate("sub", opts) | ValidationError[] | Subcommand flag checking |
api.$schema | CliSchema | Parsed schema from --help |
api.$parse("sub") | ParsedCommand | Lazily enrich subcommand |
script(...cmds) | { run, toString } | Compose && chain |
© millionco, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in .agents/skills/cli-to-js of millionco/cli-to-js.
Open the folder on GitHubat commit 7619a98
CLI To JS 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.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| CLI To JS this skillmillionco/cli-to-js | 410 | — | ~1.1k | Automated safety check: Pass | MIT | |
| Logfire Instrumentationpydantic/skills | 140 | — | ~6.1k | Automated safety check: Pass | MIT | |
| Langgraph Testing Evaluationsoba-labs/langchain-agent-skills | 107 | — | ~2.3k | Automated safety check: Pass | MIT | |
| Sap Cloud SDK AIsecondsky/sap-skills | 462 | — | ~3.2k | Automated safety check: Pass | GPL-3.0 | |
| Coding Agentmastra-ai/mastra | 29k | — | ~2.3k | Automated safety check: Pass | Custom licence | |
| Compromise NLP Libraryspencermountain/compromise | 12k | — | ~2k | Automated safety check: Pass | MIT |
pydantic/skills
Add Pydantic Logfire observability to application code — traces, logs, metrics, and AI/agent spans.
soba-labs/langchain-agent-skills
A skill your agent uses when you need to test or evaluate LangGraph/LangChain agents: writing unit or integration tests, generating test scaffolds, mocking LLM/tool behavior, running trajectory…
secondsky/sap-skills
Integrates SAP Cloud SDK for AI into JavaScript/TypeScript and Java applications.
mastra-ai/mastra
Authoring playbook for building agents that write, edit, review, or refactor code.
spencermountain/compromise
Helps write and debug JavaScript or TypeScript that uses the compromise English NLP library for matching, entity extraction, tagging and sentence transforms.
papermark/papermark
Patterns for building LLM agents on Trigger.dev tasks: prompt chaining, routing, parallel workers, orchestrator-workers, evaluator loops and human approval gates.
Works with
Categories
A skill your agent uses when wrapping CLI binaries in JavaScript, automating shell workflows in TypeScript, composing multiple CLIs into scripts, or building agent tool-use. CLI To JS is an agent skill from millionco/cli-to-js. Use when wrapping CLI binaries in JavaScript, automating shell workflows in TypeScript, composing multiple CLIs into scripts, or building agent tool-use.
CLI To JS fits situations like: wrapping CLI binaries in JavaScript; automating shell workflows in TypeScript; composing multiple CLIs into scripts; building agent tool-use.
Run `npx skills add millionco/cli-to-js --skill cli-to-js -a claude-code`. Or copy the skill folder (.agents/skills/cli-to-js in millionco/cli-to-js) into .claude/skills/cli-to-js in your project. Claude Code loads it when a task matches its description.
Run `npx skills add millionco/cli-to-js --skill cli-to-js -a codex`. Or copy the skill folder (.agents/skills/cli-to-js in millionco/cli-to-js) into .agents/skills/cli-to-js in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add millionco/cli-to-js --skill cli-to-js -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/cli-to-js, .gemini/skills/cli-to-js, .github/skills/cli-to-js and .opencode/skills/cli-to-js in your project.
SKILL.md names no scripts, command-line tools or credentials: CLI To JS is instructions for the agent only. Our summary lists: Docker.
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.
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.
CLI To JS is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 1.1k tokens (SKILL.md is roughly 4.2k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with CLI To JS: Logfire Instrumentation (pydantic/skills, 140 stars), Langgraph Testing Evaluation (soba-labs/langchain-agent-skills, 107 stars), Sap Cloud SDK AI (secondsky/sap-skills, 462 stars) and Coding Agent (mastra-ai/mastra, 29k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
millionco (a GitHub organization) maintains it in millionco/cli-to-js, which has 410 GitHub stars. The repository was last updated on April 17, 2026.
Source: millionco/cli-to-js on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.