stephansama

9 mods across 1 repository, 5 stars between them.

ai-commit-msg

01

stephansama/packages

Skill Claude CodeCodex

Generate conventional commit messages from staged git diffs using an AI model via a prepare-commit-msg Git hook. Configure provider (google, openai, ollama) and model via cosmiconfig (ai-commit-msg.config.ts, package.json ai-commit-msg key, etc.). Default is ollama/llama2. Requires GOOGLEGENERATIVEAIAPIKEY for google…

5 1mo ago A 100 tokens original MIT

stephansama/packages

Skill Claude CodeCodex

Astro integration that generates optimized SVG sprite maps from @iconify-json/ icon packs for SSG sites. Add createIntegration() to astro.config.mjs, import virtual:iconify-svgmap in your base layout to activate the plugin, then call getIcon(pack, name) in .astro components to register icons and get hrefs. Use…

5 1mo ago A 96 tokens original MIT

auto-readme

03

stephansama/packages

Skill Claude CodeCodex

Auto-generate and update tables and lists in README files using HTML comment markers. Supports WORKSPACE (monorepo package tables), ACTION (GitHub Action inputs from action.yml), PKG (package.json dependency tables), ZOD (zod schema reference tables), USAGE actions. Run via CLI or as a pre-commit hook with --changes…

5 1mo ago A 82 tokens original MIT

eslint-config

04

stephansama/packages

Skill Claude CodeCodex

Composable ESLint flat config for TypeScript projects. Use config() with presets.base spread to activate baseline, javascript, typescript, imports, jsdoc, unicorn, perfectionist, prettier, regexp, command, packagejson, pnpm, gitignore, node, e18e configs. autoEnable detects installed packages (astro, svelte, lit…

5 1mo ago A 105 tokens original MIT

multipublish

05

stephansama/packages

Skill Claude CodeCodex

Publish monorepo packages simultaneously to npm and JSR via a platforms config array. Integrates with changesets via stdin pipe or --useChangesetStatus flag. Use experimentalGenerateJSR to skip maintaining a jsr.json. Supports pnpm, bun, npm, yarn (jsr and npm); deno (jsr only). Config via cosmiconfig or package.json…

5 1mo ago A 83 tokens original MIT

typed-env

06

stephansama/packages

Skill Claude CodeCodex

Validate and type process.env environment variables at runtime using createEnvironment with a standard-schema-compatible validator. Supports zod, valibot, and arktype only. Use when setting up environment validation, auto-loading .env files via dotenvx, or generating .env.example placeholder files from a schema shape.

5 1mo ago A 64 tokens original MIT

react-typed-events

07

stephansama/packages

Skill Claude CodeCodex

React hooks for @stephansama/typed-events: useListener (single event) and useListeners (event map). Use when registering typed event listeners inside React components that need automatic cleanup on unmount. Import from @stephansama/typed-events/react. Requires react >= 18.

5 1mo ago A 63 tokens original MIT

typed-events

08

stephansama/packages

Skill Claude CodeCodex

Type-safe validated wrappers for browser CustomEvent, BroadcastChannel, and window.postMessage APIs using any standard-schema-compatible validator (zod, valibot, arktype). Use when implementing createEvent, createEventMap, createBroadcastChannel, createBroadcastEvent, or createMessage. For React hooks (useListener…

5 1mo ago A 80 tokens original MIT

typed-templates

09

stephansama/packages

Skill Claude CodeCodex

Validate Handlebars template variables against standard-schema schemas using createHandlebarSchemaMap (per-template schemas) or createHandlebarSchemaSingleton (one schema for multiple templates). Use getFileContext(import.meta.url) for correct path resolution. audit() checks template slots match schema shape.…

5 1mo ago A 83 tokens original MIT