From koha-contributor
Create a new Koha atomicupdate file for a bug. Arguments: bug number (e.g. 12345) and a short description of the DB change.
How this skill is triggered — by the user, by Claude, or both
Slash command
/koha-contributor:atomicupdateThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Create an atomicupdate file for Koha bug $ARGUMENTS.
Create an atomicupdate file for Koha bug $ARGUMENTS.
Steps:
installer/data/mysql/atomicupdate/bug_BUGNUMBER.pl using the skeleton below.BUG_NUMBER with the actual bug number and DESCRIPTION with the description.$dbh->do(q{}) placeholder in place — the user will fill in the actual SQL.chmod +x installer/data/mysql/atomicupdate/bug_BUGNUMBER.pl (Koha QA's file_permissions check enforces this).Skeleton (based on installer/data/mysql/atomicupdate/skeleton.pl):
use Modern::Perl;
use Koha::Installer::Output qw(say_warning say_success say_info);
return {
bug_number => "BUG_NUMBER",
description => "DESCRIPTION",
up => sub {
my ($args) = @_;
my ( $dbh, $out ) = @$args{qw(dbh out)};
# Add your DB changes here
$dbh->do(q{});
say_success( $out, "Done" );
},
};
After the user fills in the SQL, remind them of the wider workflow:
installer/data/mysql/kohastructure.sql to match.perl installer/data/mysql/updatedatabase.pl.dbic --force inside KTD.tinyint(1) columns that semantically represent yes/no flags, add '+colname' => { is_boolean => 1 } to the Result module BELOW the # DO NOT MODIFY THIS OR ANYTHING ABOVE! line (QA SQL12 / tinyint_has_boolean_flag).Bug XXXXX: Automated Schema Update, then commit any manual is_boolean / relationship additions as a separate commit.Provides UI/UX resources: 50+ styles, color palettes, font pairings, guidelines, charts for web/mobile across React, Next.js, Vue, Svelte, Tailwind, React Native, Flutter. Aids planning, building, reviewing interfaces.
Fetches up-to-date documentation from Context7 for libraries and frameworks like React, Next.js, Prisma. Use for setup questions, API references, and code examples.
npx claudepluginhub mrenvoize/koha-contributor --plugin koha-contributor