NAME

Wordsmith::Claude::Mode - Built-in rewriting mode definitions

SYNOPSIS

use Wordsmith::Claude::Mode;

# Get instruction for a mode
my $instruction = Wordsmith::Claude::Mode->get_instruction('eli5');

# Check if mode exists
if (Wordsmith::Claude::Mode->exists('pirate')) { ... }

# List all modes
my @modes = Wordsmith::Claude::Mode->all_modes;

# Get modes by category
my @fun_modes = Wordsmith::Claude::Mode->modes_in_category('fun');

DESCRIPTION

Defines all built-in rewriting modes with their instructions.

MODES

CLASS METHODS

get_instruction

my $instruction = Wordsmith::Claude::Mode->get_instruction('eli5');

Returns the instruction text for a mode, or undef if mode doesn't exist.

exists

if (Wordsmith::Claude::Mode->exists('pirate')) { ... }

Returns true if the mode exists.

all_modes

my @modes = Wordsmith::Claude::Mode->all_modes;

Returns list of all mode names.

get_description

my $desc = Wordsmith::Claude::Mode->get_description('eli5');

Returns the description for a mode.

get_category

my $cat = Wordsmith::Claude::Mode->get_category('pirate');  # 'fun'

Returns the category for a mode.

modes_in_category

my @fun = Wordsmith::Claude::Mode->modes_in_category('fun');

Returns all modes in a category.

all_categories

my @cats = Wordsmith::Claude::Mode->all_categories;

Returns list of all category names.

mode_info

my $info = Wordsmith::Claude::Mode->mode_info('eli5');
# { category => 'complexity', description => '...', instruction => '...' }

Returns full info hashref for a mode.

AUTHOR

LNATION, <email at lnation.org>

LICENSE AND COPYRIGHT

This software is Copyright (c) 2026 by LNATION.

This is free software, licensed under:

The Artistic License 2.0 (GPL Compatible)