Skip to content

docs(agents): add Jujutsu (jj) workflow skill - #901

Merged
kyasbal merged 1 commit into
GoogleCloudPlatform:mainfrom
kyasbal:push-mkpqnpzrnxkl
Aug 25, 2026
Merged

kyasbal merged 1 commit into
GoogleCloudPlatform:mainfrom
kyasbal:push-mkpqnpzrnxkl

Conversation

@kyasbal

@kyasbal kyasbal commented Aug 25, 2026

Copy link
Copy Markdown
Member

Summary

This PR introduces a dedicated Jujutsu (jj) version control workflow skill for the KHI project under .agents/skills/jj_workflow/SKILL.md.

Background & Motivation

When working with Jujutsu in the KHI codebase, developers and AI agents need consistent operating procedures for common VCS actions, including conflict resolution, handling PR review feedback without squashing, and pushing changes without having to manually invent remote branch names.

Key Guidelines Documented

  • Conflict Resolution (conflicts()):
    • Resolving conflicts incrementally starting from the oldest conflicted commit to the newest.
    • Using jj new <conflicted-rev> to work in a clean working copy, verifying with tests (make test-go, make test-web), and squashing the resolution back with jj squash.
  • Addressing PR Review Comments:
    • Creating a new child commit (jj new) rather than modifying or squashing existing commits (jj squash is forbidden here) so reviewers can inspect incremental diffs across review rounds.
    • Advancing or moving the PR bookmark forward (jj bookmark advance or jj bookmark move) to point to the newest commit.
  • Pushing Changes:
    • Using jj git push -c @ to let jj automatically generate bookmark names (e.g. push-<change_id>) rather than inventing arbitrary branch names.
  • Compliance with KHI Standards:
    • Requires make pre-commit, linters, and tests before finalizing changes.
    • Re-emphasizes user approval requirements before pushing to remotes.

Verification

  • Linting & Formatting: make lint-md, make format-md, and make pre-commit passed with 0 issues.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces a new Jujutsu (jj) workflow guide (SKILL.md) for the KHI project, outlining change management, pushing commits, addressing PR feedback, and resolving conflicts. The review feedback correctly identifies several incorrect Jujutsu commands and assumptions in the guide, specifically pointing out that 'jj git push -c @' does not auto-generate bookmarks and that 'jj bookmark advance' is a non-existent command. The reviewer suggests using 'jj bookmark create' and 'jj bookmark set' instead, and updating the pre-flight checklist to reflect these corrections.

Comment thread .agents/skills/jj_workflow/SKILL.md Resolved
Comment thread .agents/skills/jj_workflow/SKILL.md Resolved
Comment thread .agents/skills/jj_workflow/SKILL.md Resolved
@kyasbal
kyasbal merged commit 0c64fa9 into GoogleCloudPlatform:main Aug 25, 2026
16 checks passed
@kyasbal
kyasbal deleted the push-mkpqnpzrnxkl branch August 25, 2026 09:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant