Skip to content

Conversation

@jumski
Copy link
Contributor

@jumski jumski commented Nov 11, 2025

Add Restack Skill for Guided Conflict Resolution

This PR adds a new Claude skill for handling "gt restack" operations and resolving conflicts. The skill provides a structured workflow to:

  1. Detect whether a restack is already in progress or needs to be initiated
  2. Intelligently diagnose conflict types (simple lockfile-only vs. complex multi-file)
  3. Guide users through appropriate resolution strategies with clear explanations
  4. Handle broken lockfile scenarios with targeted remediation
  5. Provide contextual recommendations for when to use --ours vs --theirs

The skill includes a comprehensive workflow that loops until restack completes successfully, with specific commands and diagnostics for each step. It uses AskUserQuestion for confirmations and resolution choices, making the experience interactive and educational.

@changeset-bot
Copy link

changeset-bot bot commented Nov 11, 2025

⚠️ No Changeset found

Latest commit: fda0a23

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@graphite-app
Copy link
Contributor

graphite-app bot commented Nov 11, 2025

Merge activity

  • Nov 11, 2:18 PM UTC: jumski added this pull request to the Graphite merge queue.
  • Nov 11, 2:19 PM UTC: CI is running for this pull request on a draft pull request (#355) due to your merge queue CI optimization settings.
  • Nov 11, 2:19 PM UTC: Merged by the Graphite merge queue via draft PR: #355.

Copy link
Contributor Author

jumski commented Nov 11, 2025


How to use the Graphite Merge Queue

Add either label to this PR to merge it via the merge queue:

  • merge:queue - adds this PR to the back of the merge queue
  • hotfix:queue - for urgent hot fixes, skip the queue and merge this PR next

You must have a Graphite account in order to use the merge queue. Sign up using this link.

An organization admin has enabled the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

This stack of pull requests is managed by Graphite. Learn more about stacking.

graphite-app bot pushed a commit that referenced this pull request Nov 11, 2025
# Add Restack Skill for Guided Conflict Resolution

This PR adds a new Claude skill for handling "gt restack" operations and resolving conflicts. The skill provides a structured workflow to:

1. Detect whether a restack is already in progress or needs to be initiated
2. Intelligently diagnose conflict types (simple lockfile-only vs. complex multi-file)
3. Guide users through appropriate resolution strategies with clear explanations
4. Handle broken lockfile scenarios with targeted remediation
5. Provide contextual recommendations for when to use `--ours` vs `--theirs`

The skill includes a comprehensive workflow that loops until restack completes successfully, with specific commands and diagnostics for each step. It uses AskUserQuestion for confirmations and resolution choices, making the experience interactive and educational.
@nx-cloud
Copy link

nx-cloud bot commented Nov 11, 2025

View your CI Pipeline Execution ↗ for commit fda0a23

Command Status Duration Result
nx affected -t build --configuration=production... ✅ Succeeded <1s View ↗
nx affected -t lint typecheck test --parallel -... ✅ Succeeded <1s View ↗

☁️ Nx Cloud last updated this comment at 2025-11-11 14:20:00 UTC

@github-actions
Copy link
Contributor

🔍 Preview Deployment: Website

Deployment successful!

🔗 Preview URL: https://pr-354.pgflow.pages.dev

📝 Details:

  • Branch: 11-11-chore_create_restack_claude_skill
  • Commit: 2724978a60e4366a150b5cd18ae65417f62e9bdd
  • View Logs

_Last updated: _

git diff <file>
```

### 3. Explain Conflict Type
Copy link
Contributor

Choose a reason for hiding this comment

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

Duplicate step number causes workflow confusion. This is labeled as "3. Explain Conflict Type" but should be "4. Explain Conflict Type". The workflow already has "3. Gather Diagnostics" at line 43. This numbering error cascades through the rest of the document:

### 4. Explain Conflict Type  (currently shows as 3)
### 5. Resolve Based on Type  (currently shows as 4) 
### 6. Handle Broken Lockfile  (currently shows as 5)
### 7. Success & Reminder      (currently correct as 6)

This breaks the internal references at lines 30, 41, 89, 133, 152 which correctly refer to "step 3 (Gather Diagnostics)" and lines 90, 134, 153 which correctly refer to "step 6 (Success & Reminder)" - but the actual step headers are misnumbered.

Spotted by Graphite Agent

Fix in Graphite


Is this helpful? React 👍 or 👎 to let us know.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants