Agent skill

New Command

by flowexec in flowexec/flow

Scaffold a new Cobra CLI command following the project's patterns.

Apache-2.0Auto-check passed

Install New Command

skills CLI
$ npx skills add flowexec/flow --skill new-command -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install flowexec/flow new-command --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/flowexec/flow.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/new-command .claude/skills/new-command && rm -rf skills-src

Use ~/.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/

Facts

Skill name
new-command
GitHub stars
137
Token cost
~404 tokens
SKILL.md length
150 words
Files
1
Skills in repo
5
Repo updated
First seen
Licence
Apache-2.0

At a glance

Scaffold a new Cobra CLI command following the project's patterns.

  • Works in 5 steps: File location: cmd/internal/.go. Only… → Command registration: register on the… → Error handling → …
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

New Command is an agent skill from flowexec/flow. Scaffold a new Cobra CLI command following the project's patterns.

Its SKILL.md is about 400 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

The repository describes itself as: Local-first CLI for defining and running your project's workflows. The licence is Apache-2.0.

Example prompts

  • “/new-command”

Requirements

  • Pre-approved tools (allowed-tools): mcp__flow__execute, mcp__flow__run_command, mcp__flow__list_executables, Bash(flow build:*), Bash(go build:*), Read

Workflow steps

5 steps, taken from the first numbered list in SKILL.md.

  1. File location: cmd/internal/.go. Only root.go lives directly in cmd/; every
  2. Command registration: register on the parent command, or add to rootCmd in cmd/root.go
  3. Error handling
  4. Context: resolve workspace context via pkg/context before delegating to internal/services
  5. Output: respect --output flag (text/json/yaml) for structured responses

What it can do on your machine

Read from SKILL.md and the folder at commit 0583ac5. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves these tools, so the agent can use them without asking each time:

    • mcp__flow__execute
    • mcp__flow__run_command
    • mcp__flow__list_executables
    • Bash(flow build:*)
    • Bash(go build:*)
    • Read

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

New Command loads about 404 tokens when it runs. Until then it costs about 20 tokens; SKILL.md has 150 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~20
When it runs · the whole SKILL.md, loaded when a task matches
~404

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.

Safety

Auto-check passed

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.

SKILL.md

The full file from flowexec/flow at commit 0583ac5, republished under its Apache-2.0 licence (© flowexec). 150 words, ~404 tokens.

Download SKILL.mdSave it as .claude/skills/new-command/SKILL.md (or your agent's skills folder).
name
new-command
description
Scaffold a new Cobra CLI command following the project's patterns.
allowed-tools
mcp__flow__execute, mcp__flow__run_command, mcp__flow__list_executables, Bash(flow build:*), Bash(go build:*), Read
disable-model-invocation
true
argument-hint
<verb> [noun] — what the command does

Scaffold a new Cobra CLI command for: $ARGUMENTS

Before writing any code, read a similar existing command to match the exact style:

  • Simple verb commands: cmd/internal/exec.go
  • Noun/verb subcommands: cmd/internal/workspace.go or cmd/internal/vault.go — each groups its subcommands in a single file rather than a directory

Then follow these patterns:

  1. File location: cmd/internal/<noun>.go. Only root.go lives directly in cmd/; every command handler is under cmd/internal/. Shared helpers go in cmd/internal/helpers.go, flags in cmd/internal/flags/, output shaping in cmd/internal/response/.
  2. Command registration: register on the parent command, or add to rootCmd in cmd/root.go
  3. Error handling:
    • Runtime errors → errhandler.HandleFatal(ctx, cmd, err)
    • Flag/arg misuse → errhandler.HandleUsage(ctx, cmd, "message", args...)
    • Never use log.Fatal, os.Exit, or logger.Log().FatalErr() in cmd/
  4. Context: resolve workspace context via pkg/context before delegating to internal/services
  5. Output: respect --output flag (text/json/yaml) for structured responses

After scaffolding, verify it builds — prefer mcp__flow__execute with ref build binary and argument ./bin/flow over a raw shell call.

© flowexec, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .claude/skills/new-command of flowexec/flow.

Open the folder on GitHubat commit 0583ac5

Compare with similar skills

New Command 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.

New Command compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
New Command this skillflowexec/flow137—~404Automated safety check: PassApache-2.0
Scaffoldingdotnet/efcore15k—~165Automated safety check: PassMIT
Scaffold Elementremotion-dev/remotion62k—~202Automated safety check: PassCustom licence
Power Apps Code App Scaffoldgithub/awesome-copilot40k1 repos~1.8kAutomated safety check: PassMIT
SaaS Scaffolderalirezarezvani/claude-skills28k1 repos~2.6kAutomated safety check: PassMIT
Greenfield Project Scaffoldingasgeirtj/system_prompts_leaks69k—~1.6kAutomated safety check: PassCC0-1.0

Similar skills

  • Scaffolding

    dotnet/efcore

    Official

    Implementation details for EF Core scaffolding (reverse engineering).

    15k GitHub stars~165 tokensUpdated today
    SecurityAuto-check passed
  • Scaffold Element

    remotion-dev/remotion

    Official

    Scaffold a new Remotion Element for development in the docs Remotion Studio.

    62k GitHub stars~202 tokensUpdated today
    Media & CreativeAuto-check passed
  • Power Apps Code App Scaffold

    github/awesome-copilot

    Official

    Scaffold a complete Power Apps Code App project with PAC CLI setup, SDK integration, and connector configuration

    40k GitHub starsUsed in 1 repo~1.8k tokens
    DevelopmentAuto-check passed
  • SaaS Scaffolder

    alirezarezvani/claude-skills

    Generates complete, production-ready SaaS project boilerplate including authentication, database schemas, billing integration, API routes, and a working dashboard using Next.js 14+ App Router…

    28k GitHub starsUsed in 1 repo~2.6k tokens
    DatabasesAuto-check passed
  • Greenfield Project Scaffolding

    asgeirtj/system_prompts_leaks

    Use only when all three gates already hold. An agent skill from asgeirtj/system_prompts_leaks.

    69k GitHub stars~1.6k tokensUpdated yesterday
    DevelopmentAuto-check passed

More from flowexec/flow

  • Flow Context

    flowexec/flow

    This project uses flow for automation. An agent skill from flowexec/flow.

    137 GitHub stars~654 tokensUpdated 6 days ago
    Auto-check passed
  • New Exec Type

    flowexec/flow

    Add a new executable type to the flow runner (a new kind of automation block users can define in .flow files).

    137 GitHub stars~462 tokensUpdated 6 days ago
    Auto-check passed
  • PR Ready

    flowexec/flow

    Run a pre-PR readiness check and report READY or NOT READY. An agent skill from flowexec/flow.

    137 GitHub stars~384 tokensUpdated 6 days ago
    Auto-check passed
  • Validate

    flowexec/flow

    Run flow validate and fix any failures. An agent skill from flowexec/flow.

    137 GitHub stars~375 tokensUpdated 6 days ago
    Auto-check passed

Questions about New Command

What does New Command do?

Scaffold a new Cobra CLI command following the project's patterns. New Command is an agent skill from flowexec/flow. Scaffold a new Cobra CLI command following the project's patterns.

How do I install New Command in Claude Code?

Run `npx skills add flowexec/flow --skill new-command -a claude-code`. Or copy the skill folder (.claude/skills/new-command in flowexec/flow) into .claude/skills/new-command in your project. Claude Code loads it when a task matches its description.

How do I install New Command in Codex?

Run `npx skills add flowexec/flow --skill new-command -a codex`. Or copy the skill folder (.claude/skills/new-command in flowexec/flow) into .agents/skills/new-command in your project. Codex loads it when a task matches its description.

Can I use New Command in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add flowexec/flow --skill new-command -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/new-command, .gemini/skills/new-command, .github/skills/new-command and .opencode/skills/new-command in your project.

What does New Command need to run?

SKILL.md names no scripts, command-line tools or credentials: New Command is instructions for the agent only. Its frontmatter pre-approves these tools: mcp__flow__execute, mcp__flow__run_command, mcp__flow__list_executables, Bash(flow build:*), Bash(go build:*), Read.

Does New Command access the network?

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.

Is New Command safe to install?

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.

What licence does New Command use?

New Command is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does New Command use?

About 404 tokens (SKILL.md is roughly 1.6k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to New Command?

Skills that share tags, products or a category with New Command: Scaffolding (dotnet/efcore, 15k stars), Scaffold Element (remotion-dev/remotion, 62k stars), Power Apps Code App Scaffold (github/awesome-copilot, 40k stars) and SaaS Scaffolder (alirezarezvani/claude-skills, 28k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains New Command?

flowexec (a GitHub organization) maintains it in flowexec/flow, which has 137 GitHub stars. The repository holds 5 skills in this directory. The repository was last updated on October 1, 2026.

Source: flowexec/flow on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.