원클릭으로
issue-to-pr
Use when turning a GitHub issue for omeinsum-rs into a scoped implementation plan, branch, and pull request
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Use when turning a GitHub issue for omeinsum-rs into a scoped implementation plan, branch, and pull request
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Use when preparing, versioning, tagging, or publishing an omeinsum-rs crate release
Use when an omeinsum-rs pull request has review comments, local CI failures, or coverage gaps to address
Use when reviewing omeinsum-rs code changes for correctness, DRY, KISS, cohesion/coupling, CLI/HCI quality, and test quality
| name | issue-to-pr |
| description | Use when turning a GitHub issue for omeinsum-rs into a scoped implementation plan, branch, and pull request |
Convert a GitHub issue into a focused omeinsum-rs PR. The default output is a plan-only PR that can be executed with make run-plan; only implement immediately if the user explicitly asks.
/issue-to-pr 42 - plan issue #42, create or resume a PR/issue-to-pr https://github.com/TensorBFS/omeinsum-rs/issues/42 - same, from URLFor Codex, open this SKILL.md directly and treat slash-command forms as aliases. This repo does not have a [action] PR trigger; use make run-plan PLAN_FILE=<path> when execution should be automated.
Receive issue reference
-> fetch issue and comments
-> inspect repo context
-> discuss ambiguities with the user
-> write a concrete plan
-> create or resume a branch and PR
-> report how to execute the plan
Extract issue number and repository:
123 -> issue #123 in the current repoowner/repo#123 -> issue #123 in that repoDefault repo:
gh repo view --json nameWithOwner --jq .nameWithOwner
gh issue view <number> --repo <owner/repo> --json number,title,body,labels,state,url,comments
Stop if the issue is closed unless the user explicitly wants a follow-up PR.
Read the body and all comments. Comments may contain maintainer decisions that refine or override the original issue. Summarize the issue back to the user before planning.
Check the current branch and worktree:
git status --short
git branch --show-current
git merge-base HEAD main
If the worktree is dirty, do not overwrite unrelated changes. Either work around them or ask the user before proceeding if they affect the plan.
Inspect relevant files before choosing an approach. For common change areas:
src/einsum/, tests/suites/binary_rules.rs, tests/suites/unary_ops.rssrc/einsum/backward.rs, docs/src/backpropagation.md, omeinsum-cli/tests/cli.rsomeinsum-cli/src/, omeinsum-cli/tests/cli.rs, docs/src/cli.mdsrc/backend/, tests/suites/backend_contract.rssrc/optimizer/, docs/src/optimization.mdFor ambiguous issues, discuss with the user before writing the plan. Present 2-3 viable approaches only when there is a meaningful trade-off.
Use these repository priorities when shaping the plan:
[] outputs.Write the plan to docs/plans/YYYY-MM-DD-<issue-slug>.md.
Use this structure:
# <Issue title or concise plan title>
Issue: #<number> (<url>)
## Context
<What is broken or missing, including relevant issue comments.>
## Approach
<Chosen design and why it fits existing omeinsum-rs patterns.>
## Tasks
1. Add or adjust the focused regression tests first.
2. Implement the minimal source changes.
3. Update CLI/docs/examples if the public surface changes.
4. Run narrow verification, then the canonical gate.
## Test Plan
- <narrow cargo test command(s)>
- `make check`
- `cargo test --features tropical` if tropical paths changed
- CUDA tests only when CUDA code changed and the environment supports them
## Acceptance Criteria
- <specific observable behavior>
- <value/gradient/backend assertions expected>
Plan details should be concrete enough for make run-plan to execute without rediscovering the issue.
If an open PR for this issue already exists, switch to its branch and update the plan there. Otherwise create a branch from main:
git switch main
git pull --ff-only
git switch -c issue-<number>-<slug>
git add docs/plans/<plan-file>.md
git commit -m "Add plan for #<number>: <title>"
git push -u origin issue-<number>-<slug>
gh pr create --title "Plan #<number>: <title>" --body "## Summary
Adds an implementation plan for #<number>.
## Execution
Run:
\`\`\`bash
make run-plan PLAN_FILE=docs/plans/<plan-file>.md
\`\`\`
Refs #<number>"
If the user asked for immediate implementation, run the plan after the plan commit:
make run-plan PLAN_FILE=docs/plans/<plan-file>.md
Then inspect the resulting changes, run verification, and update the PR body if needed. Do not leave the user guessing whether the PR is plan-only or implemented.
Use the narrowest command that exercises the changed behavior first, then run:
make check
Add extra verification when relevant:
cargo test --features tropical for tropical algebra or argmax-routing changes.cargo test -p omeinsum-cli for CLI JSON, topology, or autodiff changes.| Mistake | Fix |
|---|---|
Using [action] in the PR body | This repo has no [action] trigger; use make run-plan |
| Writing a generic plan | Name exact files, tests, semantics, and acceptance criteria |
| Skipping issue comments | Read comments before planning; they may contain maintainer decisions |
| Testing only shapes | Assert exact values, gradients, scalar shapes, and backend preservation |
| Bundling unrelated cleanup | Keep the PR scoped to the issue |
| Running CUDA tests unconditionally | Only run them when relevant and supported locally |