https://github.com/ultimatile/lazygit-custom-command-creator
https://github.com/ultimatile/lazygit-custom-command-creator
agent-skills
Last synced: 19 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/ultimatile/lazygit-custom-command-creator
- Owner: ultimatile
- Created: 2026-03-12T07:49:46.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2026-04-08T16:17:23.000Z (about 2 months ago)
- Last Synced: 2026-05-10T22:54:44.362Z (19 days ago)
- Topics: agent-skills
- Homepage:
- Size: 5.86 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# lazygit-custom-command-creator
A [Claude Code](https://docs.anthropic.com/en/docs/claude-code) skill that helps you create [lazygit](https://github.com/jesseduffield/lazygit) custom commands with conflict-aware keybinding selection.
## What it does
When you ask Claude Code to create a lazygit custom command, this skill:
1. **Fetches the latest lazygit docs** directly from the repository — custom command syntax, available keys, default keybindings, and template variable definitions
2. **Reads your existing config** to understand your style and avoid key conflicts
3. **Selects a non-conflicting key** by checking the target context defaults, global keybindings, and your existing custom commands
4. **Designs the command** — decides whether to keep it inline or extract to a shell script based on complexity
5. **Generates the YAML snippet** (and shell script if needed) ready to add to your `config.yml`
## Install
```
claude plugin marketplace add ultimatile/lazygit-custom-command-creator
claude plugin install lazygit-custom-command-creator
```
## Usage
Just ask Claude Code to create a lazygit custom command. The skill triggers on mentions of "lazygit custom command", "lazygit keybinding", or lazygit config editing.
Examples:
```
"Create a lazygit custom command to copy the selected commit's short hash to clipboard"
"Add a keybinding in the submodules context to run git submodule update --remote"
"I want a lazygit command to create a PR with gh, prompting for title and body"
```
## Key features
- **Always up-to-date**: Fetches lazygit documentation on every invocation via `curl`, so it stays accurate even when lazygit updates its keybindings or template API
- **Conflict-aware key selection**: Checks against context-specific defaults, global keybindings, and your existing custom commands — proactively suggests available keys
- **Scope awareness**: Questions whether template variables are actually needed and suggests single-item / bulk variants when appropriate
- **Script extraction**: Automatically determines when command logic should be extracted to a shell script, following best practices (absolute paths, `set -euo pipefail`, executable permissions)