← 返回 Skills 市场
kklouzal

GLSL Encyclopedia

作者 kklouzal · GitHub ↗ · v0.1.0 · MIT-0
cross-platform ✓ 安全检测通过
120
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install glsl-encyclopedia
功能描述
GLSL language/specification workflow for GLSL-specific questions, shader authoring and review, exact syntax and semantic lookup, built-in and qualifier refer...
使用说明 (SKILL.md)

GLSL Encyclopedia

Overview

Use a docs-first workflow for GLSL work. Prefer the official GLSL language/specification docs at https://docs.vulkan.org/glsl/latest/index.html, consult cached local copies under .GLSL-Encyclopedia/ before re-fetching, and record useful authoritative excerpts plus environment-specific operational learnings so future work gets faster, safer, and more grounded.

This skill is for the GLSL language/spec layer. It should trigger for real GLSL syntax/semantic/interface questions, not for generic rendering talk and not for Vulkan API questions unless the actual issue is specifically about GLSL shader source.

Workflow

  1. Classify the task

    • Decide whether the task is a GLSL language question, shader-authoring task, shader-review task, compiler-error/debugging task, stage-specific behavior question, or cross-language translation/comparison task where GLSL is one side.
    • Use this skill when the task materially depends on GLSL syntax, qualifiers, types, built-ins, interface/layout rules, stage rules, preprocessor/version behavior, or shader authoring semantics.
    • Do not use this skill for generic rendering concepts, generic Vulkan API debugging, or non-GLSL shader languages unless the GLSL language layer is actually in play.
  2. Check local cache first

    • Use .GLSL-Encyclopedia/ as the local knowledge/cache root.
    • Check these locations first when relevant:
      • .GLSL-Encyclopedia/docs/docs.vulkan.org/glsl/latest/...
      • .GLSL-Encyclopedia/notes/components/...
      • .GLSL-Encyclopedia/notes/patterns/...
      • .GLSL-Encyclopedia/inventory/...
    • If a cached page or note already answers the question well enough, use it.
  3. Consult authoritative GLSL docs before answering or acting

    • Before answering direct or indirect GLSL questions that depend on exact syntax, qualifier behavior, type rules, stage restrictions, built-in variable/function semantics, layout/interface rules, or version-sensitive details, consult the official GLSL docs unless the answer is already well-supported by the local cache.
    • Before performing non-trivial GLSL shader review or authoring guidance, consult the relevant docs first when:
      • exact language syntax or legal combinations matter
      • stage-specific behavior or interface matching is easy to misremember
      • the task involves compile errors, layout rules, extension/version behavior, or built-in semantics
    • If the problem is really about Vulkan API object behavior, synchronization, descriptors, swapchains, or VUID-driven valid-usage rules rather than GLSL language semantics, prefer the Vulkan skill instead of stretching this one.
    • Do not improvise fragile GLSL answers from memory when the docs are easy to check.
  4. Cache consulted docs locally

    • When you consult a GLSL docs page, save a normalized cache copy under .GLSL-Encyclopedia/docs/docs.vulkan.org/glsl/latest/....
    • Mirror the official docs path structure as much as practical.
    • Cache only pages actually consulted; do not try to mirror the whole GLSL spec eagerly.
    • Use scripts/cache_doc.py when appropriate.
  5. Separate authoritative documentation from local observations

    • Store official-doc-derived material under .GLSL-Encyclopedia/docs/....
    • Store environment-specific operational knowledge under:
      • .GLSL-Encyclopedia/notes/components/
      • .GLSL-Encyclopedia/notes/patterns/
      • .GLSL-Encyclopedia/inventory/
    • Distinguish clearly between:
      • authoritative documented behavior
      • observed project/environment shader conventions
      • inferred best-practice guidance
  6. Record useful local learnings

    • After useful live work, save durable notes such as:
      • project-specific shader conventions
      • recurring compile/validation-error patterns
      • stage-interface or layout gotchas
      • version/extension adoption decisions
      • safe/unsafe operational boundaries for the codebase or environment
    • Prefer concise durable notes over re-learning the same GLSL details later.

Live Work Rules

  • Treat authoritative GLSL docs lookup as the default preflight for non-trivial GLSL work.
  • Prefer read/inspect first when entering unfamiliar shader code.
  • Treat stage interfaces, layout qualifiers, buffer/image/sampler usage, preprocessor/version behavior, built-in semantics, and compiler-error interpretation as higher-sensitivity areas.
  • When uncertainty remains after checking cache + docs, say so and avoid bluffing.
  • When answering a question, mention when useful whether the answer comes from cached official docs, a fresh official docs lookup, or live observed shader/project state.

Data Root

Use this workspace-local root for cache and notes:

  • .GLSL-Encyclopedia/

Expected structure:

  • .GLSL-Encyclopedia/docs/docs.vulkan.org/glsl/latest/...
  • .GLSL-Encyclopedia/notes/components/...
  • .GLSL-Encyclopedia/notes/patterns/...
  • .GLSL-Encyclopedia/inventory/...

Use scripts/init_workspace.py to create or repair the expected directory structure.

Note Destinations

  • Component-specific observations → .GLSL-Encyclopedia/notes/components/\x3Ccomponent-name>.md
  • Reusable GLSL patterns/gotchas → .GLSL-Encyclopedia/notes/patterns/\x3Ctopic>.md
  • Environment-wide shader/access info → .GLSL-Encyclopedia/inventory/*.md
  • Cached official docs → .GLSL-Encyclopedia/docs/docs.vulkan.org/glsl/latest/...

Secrets / Sensitive Data

  • Do not store plaintext credentials, API keys, session tokens, private URLs, recovery codes, or other secrets in the encyclopedia notes/inventory tree.
  • If a note needs to mention access details, keep it high-level and redact or omit secret material.
  • Treat these workspace notes as operational memory, not as a secrets vault.

Resources

  • scripts/init_workspace.py — create or repair the .GLSL-Encyclopedia/ directory tree.
  • scripts/cache_doc.py — fetch and cache a consulted official GLSL docs page under .GLSL-Encyclopedia/docs/....
  • references/workflow.md — detailed operating workflow and evidence-handling rules.
  • references/cache-layout.md — canonical .GLSL-Encyclopedia/ directory structure.
  • references/topic-map.md — useful GLSL topic groupings for faster authoritative lookup.

Good Outcomes

  • Answer a GLSL question using cached or freshly checked official docs instead of guesswork.
  • Inspect GLSL shader code after checking the relevant docs and record any new project-specific language or convention knowledge.
  • Build a growing local GLSL knowledge cache that makes later work faster, safer, and more grounded.
  • Turn one-off GLSL discoveries into durable notes so future work does not rediscover them from scratch.

Avoid

  • Answering GLSL-specific questions purely from memory when the docs are easy to consult.
  • Treating local project shader conventions as if they were guaranteed authoritative GLSL behavior.
  • Dumping large amounts of low-value docs into the workspace without a reason.
  • Writing project-specific observations into the official-doc cache tree.
  • Confusing generic Vulkan API questions with GLSL language questions when the actual issue is not about GLSL itself.
安全使用建议
This skill appears coherent and limited to caching and consulting the official GLSL docs. Before installing or running: (1) be aware the scripts will write/seed files under a `.GLSL-Encyclopedia/` directory in the chosen working directory (you can set a different root when running the scripts), (2) the caching script makes HTTPS requests but is coded to only accept docs.vulkan.org URLs, and (3) review the two included Python scripts if you want to confirm there are no local-path or symlink edge cases in your environment. No credentials or broad system access are requested, but if you are concerned about network or filesystem side effects, run the scripts in an isolated/project directory or inspect and run them manually rather than allowing autonomous agent execution.
功能分析
Type: OpenClaw Skill Name: glsl-encyclopedia Version: 0.1.0 The skill bundle provides a legitimate workflow for managing GLSL documentation and shader development notes. It includes a script, `scripts/cache_doc.py`, which fetches documentation from a hardcoded whitelist (docs.vulkan.org) and implements robust security checks, including URL validation and path traversal prevention (via `ensure_within`). The instructions in `SKILL.md` are well-aligned with the stated purpose and explicitly warn the agent against storing sensitive data or secrets in the workspace.
能力评估
Purpose & Capability
Name/description (GLSL reference, authoring, review) align with the behavior: consult official GLSL docs, cache consulted pages, and keep local notes. The two included helper scripts (caching and workspace init) are directly relevant.
Instruction Scope
SKILL.md confines actions to consulting docs.vulkan.org, checking and writing a local cache under `.GLSL-Encyclopedia/`, and inspecting local shader state. It does not instruct reading unrelated system files or exfiltrating data to arbitrary endpoints.
Install Mechanism
No install spec; this is instruction-first with two small Python helper scripts. No external downloads or package installs are requested.
Credentials
No environment variables, credentials, or external service tokens are required. Network access is limited by code to docs.vulkan.org (https) only, which matches the stated purpose.
Persistence & Privilege
The skill does not request always:true, does not alter other skills' configs, and only writes to a workspace-local `.GLSL-Encyclopedia/` directory. It does allow normal autonomous invocation (platform default).
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install glsl-encyclopedia
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /glsl-encyclopedia 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v0.1.0
Security hardening: restrict cache fetches to approved docs URLs, block traversal/query writes, tighten cache-path handling, and add explicit guidance not to store plaintext secrets in encyclopedia notes.
元数据
Slug glsl-encyclopedia
版本 0.1.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

GLSL Encyclopedia 是什么?

GLSL language/specification workflow for GLSL-specific questions, shader authoring and review, exact syntax and semantic lookup, built-in and qualifier refer... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 120 次。

如何安装 GLSL Encyclopedia?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install glsl-encyclopedia」即可一键安装,无需额外配置。

GLSL Encyclopedia 是免费的吗?

是的,GLSL Encyclopedia 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

GLSL Encyclopedia 支持哪些平台?

GLSL Encyclopedia 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 GLSL Encyclopedia?

由 kklouzal(@kklouzal)开发并维护,当前版本 v0.1.0。

💬 留言讨论