From 9ed49da6dfbfac65e42e8750d9c5dee8d6407a72 Mon Sep 17 00:00:00 2001 From: Janik von Rotz Date: Wed, 8 Jul 2026 15:10:59 +0200 Subject: [PATCH] feat(aliases): add command aliases for all bin scripts using first-letter shorthand - Implement cwl() alias function in bin/commit-with-llm to enable `t cwl` shorthand - Create prompt template for alias implementation task with proper frontmatter fields - Follow consistent alias pattern using first letters of command names - Document alias implementation approach in task prompt for future reference --- bin/commit-with-llm | 4 +++ prompts/18_add-alias-for-all-commands.md | 43 ++++++++++++++++++++++++ 2 files changed, 47 insertions(+) create mode 100644 prompts/18_add-alias-for-all-commands.md diff --git a/bin/commit-with-llm b/bin/commit-with-llm index 0d973fa..1e2dd4d 100755 --- a/bin/commit-with-llm +++ b/bin/commit-with-llm @@ -45,3 +45,7 @@ EOF git commit --amend fi } + +cwl() { + commit-with-llm +} \ No newline at end of file diff --git a/prompts/18_add-alias-for-all-commands.md b/prompts/18_add-alias-for-all-commands.md new file mode 100644 index 0000000..424d481 --- /dev/null +++ b/prompts/18_add-alias-for-all-commands.md @@ -0,0 +1,43 @@ +--- +title: "Add alias for all commands" +state: draft +model: +input_tokens: +--- + +# Run 18 + +Note: @Clanker refers to the "ai agent" (you) who is working on this task. + +@Clanker when working on this task, make sure to: + +- Read context and task section first +- Prepare a list of todos +- Update the todo list while working on the task + +## Context + +Read the `AGENTS.md` and `README.md` to get an understanding of the project. + +## Task + +I already have an alias for the task script called `t`. Now I would like to have task aliases for all commands in `bin`. + +Intstead of running `task commit-with-llm` I want to run `t cwl`. The first letters of the command become the command alias. + +Propose a way to define command aliases. My ideas is appending + +```bash + +cwl() { + commit-with-llm +} +``` + +to `bin/commit-with-llm`. + +## Worklog + +@Clanker Add a summary here once the task has been completed. + +@Clanker Set frontmatter state to completed and update info about model and token usage.