Token导航 LogoToken导航

Agent Skill · 前端设计

graphics-troubleshooting(图形故障排除)

用于辅助前端页面、组件、样式和交互逻辑的开发与维护。它适合让 Agent 生成或审查 React、Next.js、Vue、Tailwind、CSS 等相关代码,整理组件结构,或定位布局和性能问题。使用时需要结合项目现有设计系统、路由和构建方式,避免只生成孤立片段;涉及页面改动时,应配合本地预览和构建检查确认视觉效果。

graphics-troubleshooting 是前端设计类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为操作浏览器;许可证为 MIT,第三方扫描有提醒项,按安装量在前端设计类的 10,216 个 Skill 里排第 8,606。

总安装 272周安装 11GitHub Stars 3下载 85核验 2026-05-01

安装说明

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

安装方式

通过对话安装

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

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

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/anthemflynn/ccmp --skill graphics-troubleshooting

这个 Skill 是做什么的

前端设计类 Skill 关注页面结构、视觉规范和组件写法,输出通常是可运行的界面代码。

用于辅助前端页面、组件和样式开发,适合生成或审查 React、Vue 等相关代码。适用于组件结构整理、布局问题定位和性能优化的场景。使用时需结合项目现有设计系统、路由和构建方式,避免生成孤立片段。涉及页面改动时应配合本地预览和构建检查确认视觉效果。

通过 GitHub 安装,支持 Codex、Claude、Cursor 和 Gemini CLI 等宿主环境。

来源仓库内路径:skills/graphics-troubleshooting

上手步骤

4 步
  1. 1

    确认自己的宿主工具

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

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/anthemflynn/ccmp --skill graphics-troubleshoot…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

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

  4. 4

    按最小权限试用

    它需要操作浏览器,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

graphics-troubleshooting 怎么安装?

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

graphics-troubleshooting 支持哪些 AI 工具?

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

graphics-troubleshooting 需要什么权限?

权限级别是操作浏览器。该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

graphics-troubleshooting 是免费的吗?

来源标注的许可证是 MIT。本站不代收任何费用,也不托管安装包;能否商用、要不要署名,以许可证原文为准。

graphics-troubleshooting 用的人多吗?

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

graphics-troubleshooting 安全吗?

第三方扫描有提醒项,说明存在需要人工确认的行为。安装前请打开源码看清它读了什么、联网到哪里。

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

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 3 个目录同时收录,说明这个 Skill 流传比较广。
  • 许可证明确为 MIT,商用和分发边界好判断。

先想清楚的地方

  • 第三方扫描存在提醒项或未通过项,需要人工逐条确认。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

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

不太适合

  • 需要厂商级技术支持和 SLA 的生产系统。

前端设计类 Skill 对比

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

前端设计 · Codex、Claude

8,823,360126,072只读MIT通过
vercel-composition-patterns

Vercel 组合模式 · Codex、Claude

3,858,81625,893需要联网MIT通过
vercel-react-native-skills

Vercel React native skills 前端 · Codex、Claude

2,468,66425,878只读MIT通过
adapt

adapt 搜索 · Codex、Claude

2,027,04023,125操作浏览器未明确通过
bolder

bolder 分析 · Codex、Claude

2,004,28823,130只读未明确通过
graphics-troubleshooting

图形故障排除 · 本页

2723操作浏览器MIT有提醒

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

SKILL.md 原文

Graphics Troubleshooting

Diagnose and fix 3D web graphics issues fast. Organized by symptom (what you see) for rapid diagnosis.

Library Versions (2026) - Three.js: r171+ - React Three Fiber: v9.5+ - @react-three/drei: v9.116+ - @react-three/rapier: v2+

Quick Diagnosis

Nothing Renders (Black/Empty Screen)

CheckCommand/Action
Camera positionIs camera inside object? Move to [0, 0, 5]
Camera targetIs camera looking at scene? Check lookAt
Object scaleIs object too small/large? Check scale isn't 0
LightsAre there any lights? Add <ambientLight />
MaterialUsing MeshStandardMaterial without lights?
Render loopIs animate() being called?
Canvas sizeIs container height 0? Check CSS
WebGPU supportBrowser support? Check console for errors

R3F Minimum Visible Scene:

<Canvas>
  <ambientLight intensity={0.5} />
  <directionalLight position={[5, 5, 5]} />
  <mesh position={[0, 0, 0]}>
    <boxGeometry />
    <meshStandardMaterial color="red" />
  </mesh>
</Canvas>

Vanilla Three.js Minimum Scene:

import * as THREE from 'three/webgpu'

const scene = new THREE.Scene()
const camera = new THREE.PerspectiveCamera(75, window.innerWidth / window.innerHeight, 0.1, 1000)
camera.position.z = 5

const renderer = new THREE.WebGPURenderer({ antialias: true })
await renderer.init()
renderer.setSize(window.innerWidth, window.innerHeight)
document.body.appendChild(renderer.domElement)

// Add light - required for Standard materials
scene.add(new THREE.AmbientLight(0xffffff, 0.5))
scene.add(new THREE.DirectionalLight(0xffffff, 1))

// Add visible object
const mesh = new THREE.Mesh(
  new THREE.BoxGeometry(),
  new THREE.MeshStandardMaterial({ color: 'red' })
)
scene.add(mesh)

function animate() {
  renderer.render(scene, camera)
}
renderer.setAnimationLoop(animate)

Object Renders But Looks Wrong

SymptomCauseFix
All blackNo lightsAdd ambient + directional light
Flickering facesZ-fightingIncrease camera near, offset overlapping geometry
Inside-outInverted normalsmaterial.side = THREE.DoubleSide or fix in Blender
Pixelated edgesLow DPRrenderer.setPixelRatio(Math.min(devicePixelRatio, 2))
Washed out colorsNo tone mappingrenderer.toneMapping = THREE.ACESFilmicToneMapping
Colors look wrongColor spacerenderer.outputColorSpace = THREE.SRGBColorSpace
Texture blurryFilteringtexture.minFilter = THREE.LinearMipmapLinearFilter
Texture stretchedWrong UVsCheck UV mapping in Blender, use texture.repeat

Performance Issues

SymptomDiagnosisTargetFix
Low FPS (<30)Check renderer.info.render.calls<100 draw callsUse InstancedMesh, merge geometries
Stuttering/hitchingGC pausesAvoid allocationsObject pooling, reuse Vector3s
Memory growingCheck renderer.info.memoryStableCall .dispose() on removal
Slow initial loadLarge assets<5MB totalCompress with Meshopt, resize textures
Slow on mobileToo many triangles<100KSimplify geometry, use LOD

Quick Performance Check:

// Add to console or scene
console.log('Draw calls:', renderer.info.render.calls)
console.log('Triangles:', renderer.info.render.triangles)
console.log('Geometries:', renderer.info.memory.geometries)
console.log('Textures:', renderer.info.memory.textures)

See references/performance.md for detailed profiling.

Loading Failures

ErrorCauseFix
404 Not FoundWrong pathCheck file exists, use absolute path from public
CORS errorCross-originServe from same origin or configure CORS headers
"Unexpected token"Wrong file formatEnsure file is valid GLTF/GLB
Draco decode errorMissing decoderSet dracoLoader.setDecoderPath('/draco/')
KTX2 decode errorMissing transcoderSet ktx2Loader.setTranscoderPath('/basis/')
"Invalid glTF"Corrupted fileValidate at https://gltf.report
Model invisibleWrong scaleCheck scale (Blender default: 1 unit = 1 meter)

Loader Setup Pattern:

import { GLTFLoader } from 'three/addons/loaders/GLTFLoader.js'
import { DRACOLoader } from 'three/addons/loaders/DRACOLoader.js'
import { KTX2Loader } from 'three/addons/loaders/KTX2Loader.js'
import { MeshoptDecoder } from 'three/addons/libs/meshopt_decoder.module.js'

const loader = new GLTFLoader()

// Draco (for Draco-compressed models)
const dracoLoader = new DRACOLoader()
dracoLoader.setDecoderPath('https://www.gstatic.com/draco/versioned/decoders/1.5.6/')
loader.setDRACOLoader(dracoLoader)

// Meshopt (for Meshopt-compressed models)
loader.setMeshoptDecoder(MeshoptDecoder)

// KTX2 (for Basis Universal textures)
const ktx2Loader = new KTX2Loader()
ktx2Loader.setTranscoderPath('https://cdn.jsdelivr.net/npm/three@0.171.0/examples/jsm/libs/basis/')
ktx2Loader.detectSupport(renderer)
loader.setKTX2Loader(ktx2Loader)

See references/loading.md for more patterns.

Physics Issues (@react-three/rapier)

SymptomCauseFix
Objects fall through floorMissing colliderAdd <RigidBody type="fixed"> to ground
Objects stuck in airWrong body typeUse type="dynamic" for moving objects
Jittery movementHigh velocity + low massIncrease mass or reduce forces
Tunneling (fast objects pass through)CCD disabledEnable ccd={true} on fast bodies
Collider wrong shapeAuto-collider mismatchUse explicit <CuboidCollider> etc.
Physics not updatingWrong loopCheck updateLoop prop on <Physics>

Minimum Physics Setup:

import { Physics, RigidBody } from '@react-three/rapier'

<Physics gravity={[0, -9.81, 0]} debug>
  {/* Ground - fixed, doesn't move */}
  <RigidBody type="fixed">
    <mesh position={[0, -1, 0]}>
      <boxGeometry args={[10, 0.5, 10]} />
      <meshStandardMaterial />
    </mesh>
  </RigidBody>

  {/* Falling object - dynamic */}
  <RigidBody type="dynamic">
    <mesh>
      <sphereGeometry />
      <meshStandardMaterial />
    </mesh>
  </RigidBody>
</Physics>

Shader/Material Errors

ErrorCauseFix
"X is not defined" in shaderMissing uniform/varyingDeclare all variables
Black materialShader compile errorCheck console for GLSL/WGSL errors
Material not updatingMissing needsUpdateSet material.needsUpdate = true
TSL errorWrong importUse import {x} from 'three/tsl'
NodeMaterial blackMissing colorNodeSet material.colorNode =...

TSL Debug Pattern:

import { color, uniform } from 'three/tsl'

// Start simple, add complexity
const material = new THREE.MeshBasicNodeMaterial()
material.colorNode = color(0xff0000) // Should be red

// If this works, add your custom logic incrementally

Related Skills

When you need...Use skill
Optimize assets before loadingasset-pipeline-3d
Build scenes with vanilla Three.jsthreejs
Build scenes with Reactreact-three-fiber

Reference Files

平台分布

Claude Code

27.96%
按下载量换算24

windsurf

21.8%
按下载量换算19

OpenCode

17.72%
按下载量换算15

Codex

11.4%
按下载量换算10

Antigravity

7.42%
按下载量换算6

Gemini CLI

3.31%
按下载量换算3

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在提醒或未通过项,安装前请自行复核。

继续浏览同类 Skills