cli-tool-builder
Skill3 starsChanged 11 months agoApache-2.0View on GitHub
Build command-line interface tools. Use when the user needs to create CLI applications, parse arguments, or build terminal utilities.
In this repository100 other files it gives its agents.
- accessibility-checkerSkill
- analytics-trackerSkill
- api-contract-testerSkill
- api-documentation-generatorSkill
- api-rate-limiterSkill
- appstore-screenshot-resizerSkill
- architecture-documenterSkill
- authentication-implementerSkill
- aws-resource-provisionerSkill
- browser-extension-builderSkill
- caching-implementerSkill
- changelog-generatorSkill
- chart-generatorSkill
- ci-pipeline-debuggerSkill
- code-documenterSkill
- code-explainerSkill
- code-migration-helperSkill
- code-refactorerSkill
- code-reviewerSkill
- color-palette-generatorSkill
- comment-generatorSkill
- contributing-guide-writerSkill
- cron-job-schedulerSkill
- css-animatorSkill
- csv-processorSkill
- data-aggregatorSkill
- database-backup-restoreSkill
- database-migration-generatorSkill
- database-query-optimizerSkill
- data-transformerSkill
- data-validatorSkill
- date-time-helperSkill
- debug-helperSkill
- dependency-updaterSkill
- dependency-vulnerability-checkerSkill
- discord-bot-builderSkill
- docker-compose-builderSkill
- dockerfile-generatorSkill
- e2e-test-builderSkill
- email-template-builderSkill
- env-setupSkill
- error-handlerSkill
- error-message-writerSkill
- error-response-handlerSkill
- etl-pipeline-builderSkill
- file-organizerSkill
- form-builderSkill
- git-commit-messageSkill
- github-actions-builderSkill
- gitignore-generatorSkill
- graphql-schema-builderSkill
- icon-system-builderSkill
- input-validatorSkill
- integration-test-builderSkill
- jsdoc-generatorSkill
- json-schema-generatorSkill
- kubernetes-manifest-generatorSkill
- license-chooserSkill
- linter-fixerSkill
- load-testerSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 8
Create powerful command-line interface tools.
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
CLI Tool Builder
Create powerful command-line interface tools.
Node.js (Commander)
#!/usr/bin/env node
import { Command } from 'commander';
import chalk from 'chalk';
const program = new Command();
program
.name('myapp')
.description('A helpful CLI tool')
.version('1.0.0');
program
.command('init')
.description('Initialize a new project')
.option('-n, --name <name>', 'project name', 'my-project')
.option('-t, --template <template>', 'template to use', 'default')
.option('--no-git', 'skip git initialization')
.action((options) => {
console.log(chalk.green(`Creating project: ${options.name}`));
console.log(`Template: ${options.template}`);
console.log(`Git: ${options.git ? 'yes' : 'no'}`);
});
program
.command('deploy <environment>')
.description('Deploy to environment')
.option('-f, --force', 'force deployment')
.action((environment, options) => {
console.log(`Deploying to ${environment}`);
if (options.force) {
console.log(chalk.yellow('Force mode enabled'));
}
});
program.parse();Interactive Prompts (Inquirer)
import inquirer from 'inquirer';
async function setupProject() {
const answers = await inquirer.prompt([
{
type: 'input',
name: 'name',
message: 'Project name:',
default: 'my-project',
},
{
type: 'list',
name: 'template',
message: 'Select a template:',
choices: ['React', 'Vue', 'Angular', 'Vanilla'],
},
{
type: 'checkbox',
name: 'features',
message: 'Select features:',
choices: ['TypeScript', 'ESLint', 'Prettier', 'Testing'],
},
{
type: 'confirm',
name: 'git',
message: 'Initialize git?',
default: true,
},
]);
console.log('Creating project with:', answers);
}Python (Click)
import click
@click.group()
@click.version_option('1.0.0')
def cli():
"""A helpful CLI tool."""
pass
@cli.command()
@click.option('--name', '-n', default='my-project', help='Project name')
@click.option('--template', '-t', default='default', help='Template to use')
@click.option('--no-git', is_flag=True, help='Skip git initialization')
def init(name, template, no_git):
"""Initialize a new project."""
click.echo(click.style(f'Creating project: {name}', fg='green'))
click.echo(f'Template: {template}')
@cli.command()
@click.argument('environment')
@click.option('--force', '-f', is_flag=True, help='Force deployment')
def deploy(environment, force):
"""Deploy to environment."""
click.echo(f'Deploying to {environment}')
if __name__ == '__main__':
cli()Go (Cobra)
package main
import (
"fmt"
"github.com/spf13/cobra"
)
var rootCmd = &cobra.Command{
Use: "myapp",
Short: "A helpful CLI tool",
}
var initCmd = &cobra.Command{
Use: "init",
Short: "Initialize a new project",
Run: func(cmd *cobra.Command, args []string) {
name, _ := cmd.Flags().GetString("name")
fmt.Printf("Creating project: %s\n", name)
},
}
func init() {
initCmd.Flags().StringP("name", "n", "my-project", "Project name")
rootCmd.AddCommand(initCmd)
}
func main() {
rootCmd.Execute()
}Best Practices
| Practice | Description |
| Help text | Clear descriptions for commands/options |
| Exit codes | 0 for success, non-zero for errors |
| Colors | Use sparingly, support --no-color |
| Progress | Show progress for long operations |
| Config files | Support .rc files for defaults |
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

