원클릭으로
raise-pr
// Step-by-step workflow for committing staged changes and opening a pull request for lightspeed-agentic-sandbox.
// Step-by-step workflow for committing staged changes and opening a pull request for lightspeed-agentic-sandbox.
Update Python dependencies with uv, regenerate lock and Konflux requirements files, then verify lint, types, and tests. Fix breakage from API changes in bumped packages. Use when the user says "deps update", "bump dependencies", or "update deps".
Find functions with high cyclomatic complexity, length, or parameter count. Use when the user asks for complexity hotspots or refactor candidates.
Find unused functions, classes, imports, and unreachable code paths. Use when the user asks for dead code or cleanup candidates.
Find code duplication in the codebase. Supports branch-scoped or full sweep. Use when the user asks to find duplicated code or repeated patterns before a PR.
Investigate CI job failures on a GitHub pull request (checks, Prow, or GitHub Actions). Use when the user pastes a PR URL and asks about CI failures or red checks.
Performs a strict clean rebase of a feature branch onto main with minimal conflict resolution and full validation. Use when the user asks to rebase carefully and run tests + verify until green.
| name | raise-pr |
| description | Step-by-step workflow for committing staged changes and opening a pull request for lightspeed-agentic-sandbox. |
| disable-model-invocation | true |
git fetch upstream # or origin, depending on fork setup
git branch --show-current
git log --oneline upstream/main..HEAD # adjust main ref if needed
git diff upstream/main --stat
gh pr list --head "$(git branch --show-current)" --state open
Present a short summary and ask before proceeding when ambiguous:
You are on branch
<branch>,<N>commit(s) ahead of main touching: … [If an open PR exists]: Pushing would update<url>.
Do not continue until the user answers when creating a new branch vs using the current one is unclear.
If creating a new branch from main:
git fetch upstream
git checkout -b <type>/<short-description> upstream/main
# cherry-pick from old branch if needed
Prefer rebasing onto the canonical main (upstream/main for forks of
openshift/lightspeed-agentic-sandbox) so the PR does not include stale fork
commits.
Run in order and fix failures:
make testmake verifyOptional if the change touches container/eval assumptions: make eval (slow,
needs credentials — only when requested).
Commit message: short imperative description. Use conventional prefixes if the
team prefers (fix:, chore:, feat:).
git add -A # or only relevant files
git commit -m "<message>"
git push -u origin HEAD
If .github/PULL_REQUEST_TEMPLATE.md exists, follow it. Otherwise use a clear
title and body:
make test, make verify, evals if run).ai/spec/...)gh pr create --title "<title>" --body "$(cat <<'EOF'
## Summary
...
## Testing
- [ ] make test
- [ ] make verify
EOF
)"
Return the PR URL when done.