splitleaseteam/splitlease_monorepo
Overview
This skill standardizes git commit messages for the Split Lease app by enforcing a prefixed format: [hostname][type] commit message. It ensures every commit includes the actual device hostname (run via hostname) for traceability across the team. The result is consistent, searchable commit history and clearer ownership of changes.
How this skill works
Before creating any commit, the skill requires running the hostname command and using its exact output as the <HOSTNAME> prefix. You then pick a conventional commit type (feat, fix, docs, chore, refactor, test, style, perf, revert) and write a concise imperative message. For multi-line commits or co-authored commits, use a heredoc and include the hostname in the first line.
When to use it
- Every git commit operation in the Split Lease repo
- When asked to "commit changes" or automating commit hooks
- For single-file commits and multi-file changes with body text
- When adding co-authors or detailed commit bodies (use heredoc)
- During CI jobs that create commits, after retrieving the runtime hostname
Best practices
- Always run hostname first and copy the exact output — never hardcode or guess it
- Choose the correct conventional type (feat, fix, docs, chore, refactor, test, style, perf, revert)
- Write short, imperative summaries (use present tense: add, fix, update)
- Use heredoc for multi-line commit bodies and to append Co-Authored-By lines
- Include only one clear purpose per commit when possible to simplify history and review
Example use cases
- Local feature work: run hostname then git commit -m "[HOST-123][feat] add proposal submission workflow"
- Bug fix: run hostname then git commit -m "[HOST-123][fix] resolve FK constraint error in listing updates"
- Documentation change: hostname + git commit -m "[HOST-123][docs] update CONTRIBUTING and CLAUDE notes"
- Multi-file feature with details: use hostname and heredoc to include a bullet list of changed components
- Automated commit in CI: retrieve container/runner hostname programmatically then format commit message accordingly
FAQ
Do not commit. Run hostname, copy its exact output, then recreate the commit message using that value. Never use guessed hostnames.
How do I include co-authors or a multi-line body?
Run hostname, then use a heredoc in git commit -m "$(cat <<'EOF' ... EOF)" with the first line containing [<HOSTNAME>][<type>] and Co-Authored-By lines in the body.
6 skills
This skill standardizes git commits by prefixing messages with the current hostname and type, ensuring traceable history across the project.
This skill routes tasks through authoritative documentation before code changes to prevent regressions and ensure correct context.
This skill captures a webpage screenshot via Playwright and uploads it to Slack with an optional comment for context.
This skill analyzes reference websites to reproduce Split Lease visual design across public pages, preserving content while applying matched styling.
This skill analyzes JavaScript and TypeScript projects to build dependency graphs and identify barrels, hubs, cycles, and orphaned files.
This skill helps you enforce pure functions, immutable data, and explicit dependencies while auditing code for FP violations and actionable refactoring.