Token导航 LogoToken导航

Agent Skill · 研究检索

cts-triage(cts 分诊)

cts-triage 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

cts-triage 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为需要联网;许可证信息还不明确,第三方扫描已通过,按安装量在研究检索类的 73,675 个 Skill 里排第 57,864。

总安装 423周安装 18GitHub Stars 16,927下载 148核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:cts-triage(cts 分诊)
来源仓库:https://github.com/gfx-rs/wgpu
仓库路径:skills/cts-triage
安装命令:
npx skills add https://github.com/gfx-rs/wgpu --skill cts-triage
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/gfx-rs/wgpu --skill cts-triage

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

cts-triage 系统化分类与优先级排序 CTS 测试用例,辅助定位图形 API 兼容性问题。适用于 WebGPU 或 Vulkan 驱动开发中的回归测试管理与缺陷跟踪。采用分块处理策略,结合 cargo xtask 工具链实现高效筛选与报告生成。

通过 npx skills add 安装,要求 Rust 工具链与项目 justfile 配置就绪。处理大量测试时建议分批执行,避免内存溢出或超时中断。

来源仓库内路径:skills/cts-triage

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/gfx-rs/wgpu --skill cts-triage;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要需要联网,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

cts-triage 怎么安装?

在终端执行 npx skills add https://github.com/gfx-rs/wgpu --skill cts-triage。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

cts-triage 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

cts-triage 需要什么权限?

权限级别是需要联网。该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

cts-triage 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

cts-triage 用的人多吗?

公开数据是累计安装 423 次,近一周安装 18 次,下载 148 次,GitHub 16,927 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

cts-triage 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 第三方扫描已通过,常见的高风险行为没有命中。
  • 来源仓库有 16,927 星,维护活跃度相对可查。

先想清楚的地方

  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。

不太适合

  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
cts-triage

cts 分诊 · 本页

42316,927需要联网未明确通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Triage Process

When working on a category of CTS tests, follow this systematic process to identify issues, prioritize fixes, and document findings.

Step 0: Divide Into Manageable Chunks

List all the tests matching a selector:

cargo xtask cts -- --list 'webgpu:api,validation,*' 2>&1 | wc -l

If there is a reasonable number of tests matching the selector (less than a couple hundred or so, but this isn't a hard cutoff), then you can proceed with triage. Otherwise, make a list of more detailed wildcards that match fewer tests, verify that each wildcard matches a reasonable number of tests, and triage each wildcard separately.

Step 1: Get Overall Statistics

Run the full test suite for the category to understand the scope:

cargo xtask cts 'webgpu:api,validation,category:*' 2>&1 | grep -E "(Summary|Passed|Failed)" | tail -5

This gives you the pass rate and number of failures. Document this as your baseline.

Step 2: Identify Test Subcategories

Review the output from the running the CTS (with or without --list) to identify any subcategories that may exist within the suite being analyzed. Subcategories typically have an additional :- or ,-delimited word in the test name. Running tests by subcategory may be more manageable than running with the entire suite at once or running individual tests.

Step 3: Run Each Subcategory

Test each subcategory individually to identify which ones are passing vs failing:

cargo xtask cts 'webgpu:api,validation,category:subcategory:*' 2>&1 | grep -E "(Passed|Failed|Skipped)" | tail -3

Track the pass rate for each subcategory. This helps you identify:

  • What's already working (don't break it!)
  • Where the failures are concentrated
  • Which issues affect multiple categories

Step 4: Analyze Failure Patterns

For failing subcategories, look at what tests are failing:

cargo xtask cts 'webgpu:api,validation,category:subcategory:*' 2>&1 | grep "\[fail\]" | head -20

Look for patterns:

  • Format-specific failures: May indicate missing format capability checks
  • Parameter-specific failures: Validation missing for specific parameter combinations

Step 5: Examine Specific Failures

Pick a representative failing test and run it individually to see the error:

cargo xtask cts 'webgpu:api,validation,category:subcategory:specific_test' 2>&1 | tail -30

Look for:

  • "EXPECTATION FAILED: DID NOT REJECT": wgpu is accepting invalid input (validation gap)
  • "Validation succeeded unexpectedly": Similar to above
  • "Unexpected validation error occurred": wgpu is rejecting valid input
  • Error message content: Tells you what validation is triggering or missing

Step 6: Check CTS Test Source

To understand what the test expects, read the TypeScript source:

grep -A 40 "test_name" cts/src/webgpu/api/validation/path/file.spec.ts

The test source shows:

  • What configurations are being tested
  • What the expected behavior is (pass/fail)
  • The validation rules from the WebGPU spec
  • Comments explaining the rationale

Step 7: Categorize Issues

Group failures into categories:

High Priority - Validation Gaps:

  • wgpu accepts invalid configurations that should fail
  • Security or correctness implications
  • Example: Accepting wrong texture formats, missing aspect checks

Medium Priority - Spec Compliance:

  • Edge cases not handled correctly
  • Optional field validation issues
  • Example: depthCompare optional field handling

Low Priority - Minor Gaps:

  • Less common scenarios
  • Limited real-world impact
  • Example: Depth bias with non-triangle topologies

Known Issues - Skip:

  • Known failure patterns (documented in AGENTS.md)
  • Track count but don't try to fix

Step 8: Identify Root Causes

For validation gaps, find where validation should happen:

  1. Search for existing validation: grep -n "relevant_keyword" wgpu-core/src/device/resource.rs
  2. Look for render/compute pipeline creation:

- Render pipeline: wgpu-core/src/device/resource.rs around create_render_pipeline - Compute pipeline: Similar location - Look for existing validation patterns you can follow

  1. Check for helper functions: grep "fn is_" wgpu-types/src/texture/format.rs
  2. Find error enums: grep "pub enum.*Error" wgpu-core/src/pipeline.rs

Step 9: Implement Fixes

When implementing fixes:

  1. Add error variants if needed (in wgpu-core/src/pipeline.rs)
  2. Add helper methods (in wgpu-types if checking properties)
  3. Add validation checks (in wgpu-core/src/device/resource.rs)
  4. Test the fix with specific failing tests
  5. Run full subcategory to verify all related tests pass
  6. Check you didn't break passing tests

Step 10: Document Findings

Create or update a triage document (e.g., category_triage.md).

Do not write information about changes you have made to the triage document. Only capture the state of the tests and any investigation into open issues.

# Category CTS Tests - Triage Report

**Overall Status:** XP/YF/ZS (%/%/%)

## Passing Sub-suites ✅

[List sub-suites that have no failures (all pass or skip)]

## Remaining Issues ⚠️

[List sub-suites that have failures and if it can be stated concisely, a summary of the issue]

## Issue Detail

[List detail of any investigation into failures. Do not go into detail about passed suites, just list the failures.]

### 1. title, e.g. a distinguishing word from the test selector

**Test selector:** `webgpu:api,validation,render_pipeline,depth_stencil_state:format:*`
**What it tests:** [Description]
**Example failure:**
[a selector for a single failing test, e.g.:]

webgpu:api,validation,render_pipeline,depth_stencil_state:depthCompare_optional:isAsync=false;format="stencil8"


**Error:**
[error message from the failing tests, e.g.:]

Unexpected validation error occurred: Depth/stencil state is invalid: Format Stencil8 does not have a depth aspect, but depth test/write is enabled


**Root cause:**
[Your analysis of the root cause. Do not speculate. Only include the results of specific investigation you have done.]
The validation is triggering incorrectly. When `depthCompare` is undefined/missing in JavaScript, it's getting translated to a default value that makes `is_depth_enabled()` return true, even for stencil-only formats.

**Fix needed:**
[Your proposed fix. Again, do not speculate. Only state the fix if it is obvious from the root cause analysis, or if you have done specific investigation into how to fix it.]

### 2. title

[repeat as needed for additional issues]

Step 11: Update test.lst

For fixed tests that are now passing, add them to cts_runner/test.lst:

  1. Use wildcards to minimize lines: webgpu:api,validation,category:subcategory:isAsync=false;*
  2. Group related tests when possible:

- If multiple subcategories all pass, use a higher-level wildcard - Example: webgpu:api,validation,category:* if all subcategories pass

  1. Maintain alphabetical order roughly in the file

Step 12: Verify and Build

Before finishing:

# Format code
cargo fmt

# Check for errors
cargo clippy --tests

# Build to ensure no compilation errors
cargo build

# Run the tests you added to test.lst
cargo xtask cts 'webgpu:api,validation,category:subcategory:isAsync=false;*'

Common Patterns

If the user asked to investigate a failure, and the cause of the failure is noted here with "do not attempt to fix", then stop and ask the user before attempting to fix.

Pattern: Format-specific failures

  • Check if format validation is missing
  • Look for is_depth_stencil_format(), is_color_format() etc.
  • May need to add format capability checks

Pattern: Aspect-related failures

  • Check if code validates format aspects (DEPTH, STENCIL, COLOR)
  • Use hal::FormatAspects::from(format) to check
  • Validate operations match available aspects

Pattern: Optional field failures

  • May be WebGPU optional field semantics issue
  • Check if undefined in JS becomes a default value in Rust
  • May need to distinguish "not set" from "set to default"

Pattern: Atomics accepted incorrectly

  • Naga allows referencing an atomic directly in an expression
  • Should only allow accessing via atomicLoad, atomicStore, etc.
  • Only investigate as necessary to confirm this is the issue. Do not attempt to fix. Refer user to https://github.com/gfx-rs/wgpu/issues/5474.

Pattern: Error reporting for destroyed resources

  • Tests that check for validation errors when a destroyed resource is used. wgpu often reports these errors later than WebGPU requires, causing the tests to fail.
  • wgpu may report these errors earlier than it should, causing the test to fail with an unexpected validation error.
  • Look for:

- Tests with state="destroyed" parameter - Tests checking that operations on destroyed buffers or textures should fail

  • Example failing tests:

- webgpu:api,validation,encoding,cmds,compute_pass:indirect_dispatch_buffer_state: with state="destroyed" subcases

Tips

  • Start with high-impact fixes: Validation gaps with security implications
  • Look for existing patterns: Other validation code shows the style
  • Test incrementally: Fix one category at a time, verify it works
  • Document as you go: Don't wait until the end to write the triage
  • Ask for clarification: If test expectations are unclear, check the WebGPU spec or test source
  • Track your progress: Update pass rates as you fix issues

平台分布

Codex

35.41%
按下载量换算52

Claude

30.92%
按下载量换算46

Cursor

18.69%
按下载量换算28

Gemini CLI

9.44%
按下载量换算14

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills