agent/claude/code/scripts
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
..
auto-approve.sh refactor: restructure as plugin monorepo 2026-02-01 19:44:26 +00:00
block-docs.sh refactor: restructure as plugin monorepo 2026-02-01 19:44:26 +00:00
capture-context.sh refactor: restructure as plugin monorepo 2026-02-01 19:44:26 +00:00
check-debug.sh refactor: restructure as plugin monorepo 2026-02-01 19:44:26 +00:00
detect-secrets.sh feat(code): add secret detection hook (#67) 2026-02-02 07:13:28 +00:00
ensure-commit.sh refactor: restructure as plugin monorepo 2026-02-01 19:44:26 +00:00
env.sh feat: Add /core:env for environment management (#70) 2026-02-02 07:14:37 +00:00
extract-actionables.sh refactor: restructure as plugin monorepo 2026-02-01 19:44:26 +00:00
go-format.sh refactor: restructure as plugin monorepo 2026-02-01 19:44:26 +00:00
php-format.sh refactor: restructure as plugin monorepo 2026-02-01 19:44:26 +00:00
post-commit-check.sh refactor: restructure as plugin monorepo 2026-02-01 19:44:26 +00:00
pr-created.sh refactor: restructure as plugin monorepo 2026-02-01 19:44:26 +00:00
pre-compact.sh refactor: restructure as plugin monorepo 2026-02-01 19:44:26 +00:00
qa-filter.sh refactor: restructure as plugin monorepo 2026-02-01 19:44:26 +00:00
qa-verify.sh refactor: restructure as plugin monorepo 2026-02-01 19:44:26 +00:00
session-start.sh refactor: restructure as plugin monorepo 2026-02-01 19:44:26 +00:00
smart-commit.sh feat(code): implement /core:commit smart commit command (#73) 2026-02-02 07:16:29 +00:00
status.sh feat(core): Add /core:status command for multi-repo status (#72) 2026-02-02 07:15:08 +00:00
suggest-compact.sh refactor: restructure as plugin monorepo 2026-02-01 19:44:26 +00:00