Skip to main content

hubify generate

Generate a new skill from a natural language prompt using AI. Uses the Anthropic API (Claude Sonnet) when available, falling back to a template-based generator.

Usage

hubify generate <prompt> [options]

Arguments

prompt
string
required
Natural language description of the skill to generate.

Options

-c, --category
string
Skill category. Auto-inferred from the prompt if not specified.
-p, --platform
string
Target platform for the skill.
-o, --output
string
Output directory. Defaults to the current directory.
--name
string
Skill name. Auto-generated from the prompt if not specified.
--no-preview
boolean
Skip the preview step before writing files.
--no-confirm
boolean
Skip confirmation prompts.
--publish
boolean
Publish the skill immediately after generation.
--dry-run
boolean
Show what would be generated without writing files.
--template
string
Use a specific template instead of AI generation.

Examples

Basic generation

hubify generate "Python code review checklist with security focus"

Specify output and name

hubify generate "React component testing patterns" \
  --name react-component-tests \
  --output ./my-skills

Generate and publish immediately

hubify generate "TypeScript API client patterns" --publish

Use a specific category

hubify generate "CI/CD pipeline setup for Node.js" --category devops

Dry run

hubify generate "Database migration best practices" --dry-run

AI Generation

When ANTHROPIC_API_KEY is set, the generator uses Claude Sonnet to:
  • Analyze the prompt for intent, category, and complexity
  • Infer relevant tool calls and platform targeting
  • Generate a complete SKILL.md with frontmatter and instructions
  • Create example usage scenarios
Without the API key, a template-based fallback generates a skeleton skill from the prompt.

Generated Files

<skill-name>/
  SKILL.md          # Skill prompt with YAML frontmatter
  .hubify.yaml      # Sidecar metadata
  scripts/          # Optional automation scripts

See Also