LogoClawIndex
CasesSkillsAbout
LogoClawIndex

ClawIndex

OpenClaw Skills & Use Case Index

ClawIndex is an ecosystem-driven index of OpenClaw skills and real-world use cases.

Index

Skills·
Cases

Meta

About·
Disclaimer·
Email·
GitHub
© 2026 ClawIndex All Rights Reserved.

new-command - Scaffold a Cobra CLI command following patterns

Scaffold a Cobra CLI command following project patterns and verify the build.

Tags

Updated: 2026-09-10

Capabilities

Typical Inputs

Typical Outputs

What this skill does

  • Read existing command patterns
  • Scaffold command source file
  • Register command on parent command
  • Handle runtime and flag misuse errors
  • Resolve workspace context using pkg/context
  • Format text json or yaml output
  • Verify build status after scaffolding

Inputs

  • Command verb and noun arguments
  • Existing command file patterns

Outputs

  • New command file under cmd/internal/
  • Updated command registration code
  • Build verification status

Requirements

  • Disabled model invocation setting
  • Access to mcp__flow Bash and Read tools

Source

  • Spec: SKILL.md
cobra
cli
scaffolding
go
code-generation
Read existing command patterns
Scaffold command source file
Register command on parent command
Handle runtime and flag misuse errors
Command verb and noun arguments
Existing command file patterns
New command file under cmd/internal/
Updated command registration code
Build verification status