Add mise run new to scaffold a kata - #5
Open
TimHacker wants to merge 1 commit into
Open
Conversation
TimHacker
force-pushed
the
add-new-kata-task
branch
5 times, most recently
from
August 7, 2026 08:30
9368957 to
57c2d14
Compare
Starting a kata means knowing the directory layout, the file-naming rule and the import convention. This collapses that to one command, and generates a failing test so you start red rather than staring at a blank file. Names are slugified and converted to whatever this language expects, so `mise run new roman-numerals` produces correctly-named files and identifiers. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
TimHacker
force-pushed
the
add-new-kata-task
branch
from
August 7, 2026 08:51
57c2d14 to
f021a97
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Starting a kata currently means knowing three things before you can write a
line: which directory the solution goes in, what the test file must be called,
and how tests import solutions. This turns that into one command.
It creates the solution file and a matching test, and the generated test
fails — so you start red, which is where TDD starts, rather than at a blank
file.
Names are slugified and converted to whatever this language expects, so
roman-numeralsproduces correctly-cased filenames and identifiers.Implementation is
scripts/new-kata.sh(~30 lines) plus one[tasks.new]entry in
mise.toml. It refuses to overwrite existing files, and works bothvia
mise run new <name>and by calling the script directly.Verified: scaffolds correctly, the suite goes red with the generated test
present, and green again once it is removed.
Worth noting the cost: this is the first file in the repo whose content is
genuinely language-specific logic rather than configuration, so it is the one
piece that has to be maintained separately per starter. If that trade is not
worth it, closing this PR loses nothing else.