sase-hg-commit

star 5

Commit changes using sase commit for Google's fig VCS. This skill is the ONLY way that you should EVER commit to fig repos. NEVER invoke this skill unless the user explicitly asks you to commit or a post-completion finalizer triggers it.

bbugyi200 By bbugyi200 schedule Updated 6/15/2026

name: sase_hg_commit description: | Commit changes using sase commit for Google's fig VCS. This skill is the ONLY way that you should EVER commit to fig repos. NEVER invoke this skill unless the user explicitly asks you to commit or a post-completion finalizer triggers it.

Commit changes via the sase commit command.

Instructions

  1. Examine uncommitted changes — Run hg status or hg diff to understand what files have changed and why.

  2. Write a commit message file — Create a file (e.g., commit_message.md) containing a good commit message.

  3. Run the commit — Execute:

    sase commit -M commit_message.md -f file1.py -f file2.py
    

    Flags:

    • -M: Path to file containing the commit message. The file is deleted after reading.
    • -m: Inline commit message string (alternative to -M). -m and -M are mutually exclusive.
    • -f: File to include (repeat for multiple files). Omit to include all changes.
    • --name: CL name (only needed for create_pull_request method).

    The $SASE_COMMIT_METHOD environment variable is read automatically to determine the dispatch method (create_commit, create_proposal, or create_pull_request). Do NOT pass --type unless you need to override.

Example

sase commit -M commit_message.md -f auth.py -f login.py

On Merge Conflict

If sase commit exits with code 2 and prints a "merge conflict" message, the local repository is in a paused evolve/rebase state and the post-commit bookkeeping has been deferred. Do NOT re-run the original sase commit command. Instead, resolve the conflict and finalize:

  1. Find conflicted files: Run hg resolve --list (lines starting with U are unresolved).
  2. Read each file and resolve conflict markers. Prefer the INCOMING version when uncertain.
  3. Mark resolved: Run hg resolve --mark <file> for each.
  4. Continue the rebase/evolve: Run hg rebase --continue (or hg evolve --continue). Repeat steps 1–4 until clean.
  5. Verify the working tree is clean: hg status should be empty.
  6. Finalize the sase commit: Run sase commit --resume.
Install via CLI
npx skills add https://github.com/bbugyi200/dotfiles --skill sase-hg-commit
Repository Details
star Stars 5
call_split Forks 0
navigation Branch main
article Path SKILL.md
More from Creator