julia-comonicon

Create Julia command-line interfaces with Comonicon.jl macros and docstrings.

30|6|Updated Jan 21, 2026
One-click install
npx skills add https://github.com/Krastanov/JuliaLLMAgentSkills --skill julia-comonicon
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: julia-comonicon
Source: https://github.com/Krastanov/JuliaLLMAgentSkills/tree/main/julia-comonicon
Command: npx skills add https://github.com/Krastanov/JuliaLLMAgentSkills --skill julia-comonicon

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill simplifies the creation of command-line interfaces (CLIs) for Julia projects, transforming functions into executable commands with automatic help text generation and argument parsing.

Core Features & Use Cases

  • CLI Creation: Build single-command scripts or multi-command packages using intuitive macros (@main, @cast).
  • Argument Parsing: Automatically handle options, flags, and positional arguments based on function signatures and docstrings.
  • Help Text Generation: Generate rich, -h/--help compatible documentation directly from function docstrings.
  • Package Integration: Seamlessly integrate CLIs into Julia packages for easy installation and distribution.

Quick Start

Use the julia-comonicon skill to create a new Julia CLI script named 'mycli.jl' that accepts a single string argument 'name' and an optional boolean flag '--loud'.

Frequently Asked Questions about julia-comonicon

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I build a command-line interface in Julia?

To build a command-line interface in Julia, you can use the Comonicon.jl package to transform functions into executable commands using macros like @main and @cast, which automatically handle argument parsing and help text generation.

How does Comonicon generate help text from Julia docstrings?

Comonicon generates help text by parsing Julia function docstrings and signatures, automatically converting them into rich -h and --help compatible documentation without requiring separate manual configuration.

Can I create both single-command scripts and multi-command packages for Julia?

Yes, you can create both single-command scripts and multi-command Julia packages using Comonicon.jl, utilizing intuitive macros to define commands, subcommands, options, and flags based on your function signatures.

Does Comonicon support package installation and standalone application builds?

Comonicon supports package installation workflows and standalone application builds, allowing you to seamlessly integrate command-line interfaces into Julia packages for easy distribution and execution.

How do I parse positional arguments and boolean flags in Julia CLI scripts?

To parse positional arguments and boolean flags in Julia CLI scripts, Comonicon automatically handles options, flags, and positional arguments derived directly from your function signatures and docstrings.

What are the limitations of using macros for command-line parsing in Julia?

Using macros for command-line parsing in Julia ties your CLI structure strictly to function signatures and docstrings, meaning complex argument validation or highly dynamic command routing may require additional manual handling beyond standard macro definitions.