Fragno Commit
Overview
Create conventional commit message(s) and optional description(s) for the current changes in this agent session. Decide between a single commit or multiple atomic commits, propose a plan, get user approval, then run git add/commit and show the final log.
Always
- •Read
specs/README.mdbefore anything else. - •Consider the current chat context for what changes belong together.
- •Run
git statusandgit diff(or read changed files) to understand changes. - •Do not run destructive commands (including
git reset,git clean) and do not push.
Commit Workflow (Single or Multiple Commits)
- •Analyze and group changes into logical, atomic commits based on intent, dependency order, and file relationships. If everything belongs together, plan a single commit.
- •Ensure each commit leaves the codebase working and keeps tests/types/docs with their code.
- •Build a commit plan that includes, for each commit:
- •Commit order (numbered; use one item for a single-commit plan)
- •Conventional commit message
- •Brief description
- •Files/changes included (use globs to keep it brief)
- •Changeset info (include type and default to patch unless asked otherwise)
- •Present the plan in a markdown code block.
- •Ask: "If this looks good, say 'yes'. If you'd like to adjust the grouping or order, let me know what to change."
- •Iterate until approved.
- •Create changeset files for commits that need them.
- •Execute commits in order using
git add(usegit add -pwhen splitting within a file) andgit commit. - •After all commits, run
git log --oneline -n [number]. - •Respond with: "✓ Created [N] commits" and mention changesets if created.
References
- •Commit rules: Read
references/rules.mdfor conventional commit rules and atomic grouping guidelines. - •Changesets: Read
references/changesets.mdwhen deciding if a changeset is needed or when writing one. - •Scopes: Read
references/scopes.mdwhen choosing or validating commit scopes.
Pre-commit Hooks
- •
lefthookruns on commit; fix any errors before committing. - •If formatting fails,
prettierwill autoformat; re-add files and re-commit.