cli-developer
БесплатноБез исполняемых скриптовНе проверенReview, modify, and improve the LenserFight CLI at apps/cli/. Covers citty commands, API client integration, output formatting, TUI, and configuration.
от conectlens★ 18 звёзд на GitHubОб этом скилле
Work on the LenserFight CLI (lf).
Scope
- Source:
apps/cli/src/** - Commands:
apps/cli/src/commands/*.ts - Utilities:
apps/cli/src/utils/(api, output, auth, auth-recovery, ansi, error-reporter, profiles, supabase-client, automation-objects, battle-stream-broadcaster, local-battle-engine, local-battle-paths, local-battle-storage) - Libraries:
apps/cli/src/lib/(exec-context, safety, telemetry, redact, onboarding, combine-seeds, command-inventory) - TUI:
apps/cli/src/tui/(dashboard.ts+tui/ink/— first-party dashboard, defaultlfbehavior;runtime-telemetry— shared withlf top) - Adapters:
apps/cli/src/adapters/
CLI Structure
src/main.ts— entry point, usesdefineCommand+runMainfrom citty; binary name islenserfight/lf- Each command file exports a
defineCommand(...)default and is lazy-imported inmain.ts src/utils/api.ts—callRpc+handleError; all Supabase RPC calls go through heresrc/utils/output.ts—printTable,printJson,truncate; uses consola for loggingsrc/utils/auth.ts+src/utils/supabase-client.ts— auth and Supabase clientsrc/utils/ansi.ts— ANSI helperAand symbolssymsrc/lib/exec-context.ts—setExecContext/getExecContextfor--local/--debugflagssrc/lib/safety/—assertSafefor input validationsrc/lib/telemetry.ts— telemetry adapter
Command pattern
import { defineCommand } from 'citty';
import consola from 'consola';
import { callRpc, handleError } from '../utils/api';
import { printTable, printJson } from '../utils/output';
const subCommand = defineCommand({
meta: { name: 'list', description: 'List items.' },
args: {
json: { type: 'boolean', default: false, description: 'Output as JSON' },
},
async run({ args }) {
try {
const data = await callRpc('fn_example', {});
if (args.json) printJson(data);
else printTable(['ID', 'Name'], data.map((r) => [r.id, r.name]));
} catch (err) {
handleError(err);
}
},
});
export default defineCommand({
meta: { name: 'example', description: 'Example group.' },
subCommands: { list: subCommand },
});
Registration in main.ts
const main = defineCommand({
subCommands: {
example: () => import('./commands/example').then((m) => m.default),
},
});
Global flags
--local→ setsLF_LOCAL=1(parsed early viaparseGlobalFlagsEarlybefore citty)--debug→ setsLF_DEBUG=1- Default (
lfwith no subcommand) → opens the first-party TUI dashboard (tui/dashboard.ts)
Constraints
- Never use fetch/axios directly — use
callRpc/handleErrorfromutils/api.ts - Never add NestJS, Prisma, or backend dependencies
- Keep dependency footprint minimal (citty, consola, dotenv)
- Output via
printTable/printJson/consola.*— never rawconsole.log - Build:
pnpm nx build cli| Test:pnpm nx test cli
References
- citty patterns and integration details: REFERENCE.md
Установить cli-developer в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл cli-developer?
Review, modify, and improve the LenserFight CLI at apps/cli/. Covers citty commands, API client integration, output formatting, TUI, and configuration.
Как установить скилл cli-developer?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл cli-developer запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic