用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/shader-slang/slang-skills --skill slang-docs命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | slang-docs |
| license | MIT |
| description | Read and write Slang compiler documentation. |
| provides | ["doc.read","doc.write"] |
| allowed-tools | Read, Grep, Glob, Edit, Write, Bash(git add:*), Bash(git commit:*), Bash(python:*), Bash(powershell:*) |
Drawn from: repos/slang/CLAUDE.md (documentation sections), repos/slang/.claude/agents/documentation-accuracy-reviewer.md (doc drift detection, stale comments, proposal status tracking).
docs/user-guide/ -- User-facing documentation (published at shader-slang.com/slang/user-guide/)docs/design/ -- Design decisions, coding conventionsdocs/building.md -- Build instructionsdocs/diagnostics.md -- Diagnostic test documentationinclude/slang.h -- API documentation (inline comments, ABI-critical)prelude/ and *.meta.slang -- Standard library docs via @param, @remarks, @return, @example annotationsexternal/spec/ -- Language specification and proposals (clone from https://github.com/shader-slang/spec.git)Comments must match actual behavior. For experimental interfaces, mark with _Experimental. New virtual methods only at end of interfaces.
/// Description of the function.
/// @param x First parameter.
/// @return The result.
__generic<T : __BuiltinArithmeticType>
T myFunc(T x);
After modifying user guide pages, regenerate the table of contents:
cd docs && powershell ./build_toc.ps1
# Or use /regenerate-toc bot command on the PR
When reviewing or writing docs:
include/slang.h function comments match the current implementation.external/spec/proposals/, update its status to Implemented.docs/ if the change affects a support matrix.powershell ./build_toc.ps1 to regenerate TOC after adding/renaming pagesinclude/slang.h): C-style /** ... */ with @param/@return/@remarks tags.meta.slang): /// ... @param @return triple-slash styleWhen introducing new warnings/errors, update:
docs/language-reference/ -- Language features and restrictionsdocs/user-guide/ -- User-facing guidancedocs/design/ -- Design rationale