用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/shader-slang/slang-skills --skill slang-github命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | slang-github |
| license | MIT |
| description | GitHub operations for the Slang compiler. 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 |
Drawn from: repos/slang/CLAUDE.md (PR workflow), repos/slang/CONTRIBUTING.md (contribution process, fork model, code review, labeling).
git clone --recursive --tags https://github.com/shader-slang/slang.gitTags are required for the build system. After cloning, add upstream and fetch tags:
git remote add upstream https://github.com/shader-slang/slang.git
git fetch --tags upstream
git push --tags origin
feature/description)./extras/formatting.sh)shader-slang/slang:masterpr: non-breaking (default) or pr: breaking (ABI/language breaking)Autonomous PR creation: Create PRs without asking for confirmation. If tests pass and formatting is clean, 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/slang, including a head branch on theslang-coworkers/slangfork) → 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 (e.g.zangold-nv/slang) must use REST —gh api -X POST repos/<owner>/slang/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 (do not rebase after PR creation). Sync with upstream via merge:
git fetch upstream master
git merge upstream/master
git submodule update --recursive
Formatting bot: Comment /format on the PR to auto-fix formatting via bot PR. Comment /regenerate-toc for user-guide table of contents.
On merge conflict:
git diff --name-only --diff-filter=Uours where the file is regenerated by a build stepgit fetch upstream master
git merge upstream/master
git submodule update --recursive
# resolve conflicts, then:
git add <resolved-files>
git merge --continue
Runs on self-hosted GPU runners (Windows, Linux, macOS). Key commands:
gh run list --repo shader-slang/slang --workflow=ci.yml --limit 5
gh run view <id> --log-failed
gh run rerun <id> --failed
gh issue list --repo shader-slang/slang
gh issue view <number> --repo shader-slang/slang
gh issue create --repo shader-slang/slang --title "..." --body "..."
CMake configure fetches from GitHub REST API. If rate-limited, pass -DSLANG_GITHUB_TOKEN=<token> to cmake.