agent/claude/code/commands
Snider c9391635eb
feat(code): implement /core:commit smart commit command (#73)
Implements a new `/core:commit` command that analyzes staged changes to generate a conventional commit message.

The command supports three main modes of operation:
- `/core:commit`: Automatically generates a commit message based on the content of the staged files.
- `/core:commit "custom message"`: Uses the provided string as the full commit message.
- `/core:commit --amend`: Amends the last commit with the new message.

Message generation includes several heuristics:
- **Commit Type:** Determined by file paths (e.g., `_test.go` -> `test`) and diff content (e.g., keywords like `fix` or `refactor`).
- **Scope:** Inferred from the most common directory name among the staged files.
- **Summary:** Extracted from function or class names in the diff, or defaults to a file-based summary.
- **Co-Author:** A `Co-Authored-By` trailer is automatically appended.

This feature streamlines the development workflow by automating the creation of descriptive and conventional commit messages.
2026-02-02 07:16:29 +00:00
..
commit.md feat(code): implement /core:commit smart commit command (#73) 2026-02-02 07:16:29 +00:00
core:env.md feat: Add /core:env for environment management (#70) 2026-02-02 07:14:37 +00:00
debug.md feat: Add /core:debug skill for systematic debugging (#62) 2026-02-02 07:11:33 +00:00
explain.md feat: /core:explain explain code or errors (#66) 2026-02-02 07:13:13 +00:00
onboard.md feat: Add interactive onboarding command (#63) 2026-02-02 07:12:28 +00:00
qa.md refactor: restructure as plugin monorepo 2026-02-01 19:44:26 +00:00
remember.md refactor: restructure as plugin monorepo 2026-02-01 19:44:26 +00:00
status.md feat(core): Add /core:status command for multi-repo status (#72) 2026-02-02 07:15:08 +00:00
yes.md refactor: restructure as plugin monorepo 2026-02-01 19:44:26 +00:00