用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/shader-slang/slang-skills --skill slangpy-github命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
Use whenever output will name a specific person: release notes, changelogs, contributor lists, commit or PR attribution, code comments, issue and review replies, docs credits, or any prose referring to a human. Governs where a name may come from and how to choose pronouns, so stale names from git history and gender guesses from model priors never reach the output.
Surface the open shader-slang PRs needing human attention with a bundled gh-only Python script (scripts/pr_report.py): an assignee-grouped escalation report computed entirely from live GitHub state (read-only; no writes; optional Discord/Slack mentions). Use for PR triage, the reviewer-attention report, stale-PR follow-up, or a scheduled report run.
Bridge from /slang-maintain workflow steps to concrete slang-mcp tool calls. Read-only except an optional, user-confirmed post of the generated daily report to Slack. Task recipes live in sibling files.
正在显示 SKILL.md
基于 SOC 职业分类
| name | slangpy-github |
| license | MIT |
| description | GitHub operations for SlangPy. Clone, branch, PR, issues, CI. |
| provides | ["repo.read","repo.write","repo.pr","issues.read","issues.write","ci.rerun"] |
| allowed-tools | Bash(git:*), Bash(gh:*), Read, Grep, Glob |
git clone --recursive --tags https://github.com/shader-slang/slangpy.gitfeature/description)pre-commit run --all-files)shader-slang/slangpy:mainAutonomous PR creation: Create PRs without asking for confirmation. If tests pass and changes are minimal, open the PR immediately via gh pr create. Include: what changed, why, and test results in the PR body. Only stop and notify the user if CI fails after 2 rerun attempts.
gh pr createvs REST — decided by the PR's base repo. Normal PRs (base =shader-slang/slangpy, including a head branch on theslang-coworkers/slangpyfork) → usegh pr create; it routes via GraphQL/App token, which has write on shader-slang. Only a cross-fork PR whose base is a contributor's fork must use REST —gh api -X POST repos/<owner>/slangpy/pulls -f head="slang-coworkers:<branch>" -f base="<their-branch>" …— becausegh pr create(GraphQL) gets the App token there and 403s; REST/repos/*gets thenv-slang-botuser PAT that can open it.
During review, push follow-up commits (don't rebase after PR creation). Sync with upstream via merge, not rebase:
git fetch upstream main
git merge upstream/main
git submodule update --recursive
CI workflows in .github/workflows/:
| Workflow | Purpose |
|---|---|
ci.yml | Main CI: configure, build, test on multiple platforms |
ci-latest-slang.yml | Test against latest Slang compiler build |
ci-benchmark.yml | Performance benchmarks |
wheels.yml / wheels-dev.yml | Python wheel builds |
slangpy_torch.yml | PyTorch integration tests |
claude.yml | Claude-driven CI tasks |
Key CI commands:
gh run list --repo shader-slang/slangpy --workflow=ci.yml --limit 5
gh run view <id> --log-failed
gh run rerun <id> --failed
gh issue list --repo shader-slang/slangpy
gh issue view <number> --repo shader-slang/slangpy
gh issue create --repo shader-slang/slangpy --title "..." --body "..."
On merge conflict:
git diff --name-only --diff-filter=Uours where the file is regenerated by a build stepCONTRIBUTING.md -- fork/clone/branch process, PR requirements, squash merge policy, sync instructionsAGENTS.md -- repository structure, CI system description.github/workflows/ -- CI workflow definitions