Stage and commit code changes

commitskillsetup L119
Mosaic-agent/Mosaic-fund-agent
What it does

Stage files and create conventional commits automatically

Best for

Rapid multi-file commits with auto-generated messages matching repo conventions

Inputs
  • · working_tree (git status)
  • · hint (optional quoted string)
Outputs
  • · git commit (single, no amend, no co-author, no push)
Requires
  • · git
  • · conventional-commit style
Preconditions

Clean working tree (git status shows changes), recent git log visible for style matching

Failure modes
  • · Pre-commit hook failure (commit not created, must fix + new commit)
  • · Sensitive file in staging (.env, credentials)
  • · No changes to commit (refuses early)
  • · Ambiguous change type (multiple prefixes mixed)
Trust signals
  • · Refuses amend (forces new commits)
  • · Lists files explicitly (no -A)
  • · Checks .env/credentials before proceeding
  • · Matches recent commit style