Skip to content

fix(skill): add conflict detection to github-pr#74

Merged
yishuiliunian merged 2 commits intomainfrom
worktree-glittery-wiggling-pine
Apr 4, 2026
Merged

fix(skill): add conflict detection to github-pr#74
yishuiliunian merged 2 commits intomainfrom
worktree-glittery-wiggling-pine

Conversation

@yishuiliunian
Copy link
Copy Markdown
Contributor

Summary

  • Add Phase 2.5 (conflict detection) to github-pr skill — checks mergeable status immediately after PR creation
  • Add cherry-pick and rebase resolution strategies for when branch diverges from main
  • Add gh api fallback for merging in worktree environments where gh pr merge fails
  • Expand allowed-tools to include git fetch, git rebase, git cherry-pick, bazel, rustfmt

Test plan

  • CI passes

…pt quality improvements

Sub-agent prompts were crippled: agent_type never reached PromptContext,
so agent-specific fragments (explore, plan) never matched. Tool schemas
were also duplicated in both the system prompt and the API tools parameter.

Changes:
- Thread agent_type through the full IPC spawn pipeline (6 crates)
- Add Condition::Agent variant so fragments can target specific agent types
- Registry excludes Agents category for root agent; falls back to default
  fragment for unknown types; uses specific fragment when matched
- Remove redundant tool schema section from system prompt (saves ~3-5K tokens)
- Reorder assembly: fragments (identity-first) → instructions → skills → memory
- Enhance explore/plan/default-subagent prompt content with behavioral
  constraints, search strategies, and structured output formats
- Remove dead build_agent_prompt() superseded by fragment selection
- Derive is_subagent() from agent_type.is_some() instead of separate field
…hub-pr

The github-pr skill failed silently when PR had merge conflicts (CI
never triggered) and when merging from a worktree (gh pr merge can't
checkout main). Add Phase 2.5 for conflict detection with cherry-pick
and rebase resolution strategies, plus gh api fallback for merging.
@yishuiliunian yishuiliunian merged commit 1e6fdf2 into main Apr 4, 2026
3 checks passed
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.

1 participant