[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7EHWP47E0CDN2AB0BNQZ8M9":3,"skill-same:01M7EHWP47E0CDN2AB0BNQZ8M9":62},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":28,"commitSha":29,"skillDirectory":30,"forksCount":13,"repositoryHtmlUrl":31,"repositoryHomepageUrl":6,"ownerHtmlUrl":32,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":33,"install":34,"resources":47},"01M7EHWP47E0CDN2AB0BNQZ8M9","threejs-core-raycaster",null,"Use when implementing mouse picking, hover detection, object selection, or line-of-sight checks in Three.js. Prevents the common mistake of raycasting every mousemove frame, not using layers for filtering, or missing recursive flag. Covers Raycaster, setFromCamera, intersection format, InstancedMesh picking, layers, performance. Keywords: Raycaster, mouse picking, intersectObjects, click, hover, setFromCamera, intersection, instanceId, object selection, click on 3D object, detect mouse over, pick element.","mhyahya854\u002FAI-Second-Brain_Universal-Rules","mhyahya854","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F194078115?v=4","01M7EGSP2M9T858SDHJMXQ257Y","01M7EGSP3N6HN6879SVDPMD4DZ",0,"MIT","https:\u002F\u002Fgithub.com\u002Fmhyahya854\u002FAI-Second-Brain_Universal-Rules\u002Fblob\u002Fmain\u002Fskills\u002F_intake\u002Fgithub\u002FImpertio-Studio\u002FThree.js-Claude-Skill-Package\u002Fthreejs-core-raycaster\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: threejs-core-raycaster\ndescription: >\n  Use when implementing mouse picking, hover detection, object selection,\n  or line-of-sight checks in Three.js. Prevents the common mistake of\n  raycasting every mousemove frame, not using layers for filtering, or\n  missing recursive flag. Covers Raycaster, setFromCamera, intersection\n  format, InstancedMesh picking, layers, performance.\n  Keywords: Raycaster, mouse picking, intersectObjects, click, hover, setFromCamera, intersection, instanceId, object selection, click on 3D object, detect mouse over, pick element.\nlicense: MIT\ncompatibility: \"Designed for Claude Code. Requires Three.js r160+.\"\nmetadata:\n  author: OpenAEC-Foundation\n  version: \"1.0\"\n---\n\n# threejs-core-raycaster\n\n## Quick Reference\n\n### Raycaster Constructor\n\n```javascript\nimport * as THREE from 'three';\n\nconst raycaster = new THREE.Raycaster(\n  origin,     \u002F\u002F Vector3 — default: (0, 0, 0)\n  direction,  \u002F\u002F Vector3 — MUST be normalized, default: (0, 0, -1)\n  near,       \u002F\u002F number — minimum distance, default: 0\n  far         \u002F\u002F number — maximum distance, default: Infinity\n);\n```\n\n### Properties\n\n| Property | Type | Default | Description |\n|----------|------|---------|-------------|\n| `ray` | `Ray` | -- | Underlying Ray object (origin + direction) |\n| `near` | `number` | `0` | Minimum intersection distance |\n| `far` | `number` | `Infinity` | Maximum intersection distance |\n| `camera` | `Camera` | -- | Required for raycasting against `Sprite` objects |\n| `layers` | `Layers` | layer 0 | Layer mask -- only objects on matching layers are tested |\n| `params` | `object` | see below | Per-type intersection thresholds |\n\n### Params Defaults\n\n```javascript\nraycaster.params = {\n  Mesh: {},\n  Line: { threshold: 1 },    \u002F\u002F world units distance for line hits\n  LOD: {},\n  Points: { threshold: 1 },  \u002F\u002F world units distance for point hits\n  Sprite: {}\n};\n```\n\n### Critical Warnings\n\n**NEVER** raycast on every `mousemove` event without throttling -- this causes severe frame drops on complex scenes. ALWAYS throttle to the render loop via `requestAnimationFrame` or limit to 30-60 checks per second.\n\n**NEVER** pass `recursive: true` on large scene graphs when you have a flat array of target objects -- ALWAYS maintain a flat array of selectable objects and pass `recursive: false` to avoid unnecessary tree traversal.\n\n**NEVER** forget to normalize the direction vector when using `raycaster.set()` -- an unnormalized direction produces incorrect distance values in all intersection results.\n\n**NEVER** allocate a new results array every frame -- ALWAYS reuse an array via the `optionalTarget` parameter and clear it with `array.length = 0` after processing.\n\n**NEVER** raycast against the entire `scene.children` when only a subset of objects is interactive -- ALWAYS maintain a separate array of selectable objects or use layers for filtering.\n\n**NEVER** omit `raycaster.camera` when raycasting against `Sprite` objects -- the raycaster requires the camera reference to compute sprite screen-space bounds.\n\n---\n\n## Core Methods\n\n### set(origin, direction)\n\nManually sets the ray origin and direction. Direction MUST be normalized.\n\n```javascript\nconst origin = new THREE.Vector3(0, 1, 0);\nconst direction = new THREE.Vector3(0, -1, 0); \u002F\u002F already normalized\nraycaster.set(origin, direction);\n```\n\n### setFromCamera(coords, camera)\n\nSets the ray from normalized device coordinates (NDC) and a camera. This is the standard mouse-picking method.\n\n- `coords`: `Vector2` with x and y in range [-1, +1]\n- `camera`: `PerspectiveCamera` produces a ray from the camera through the point; `OrthographicCamera` produces a parallel ray\n\n```javascript\nconst mouse = new THREE.Vector2();\nmouse.x = (event.clientX \u002F window.innerWidth) * 2 - 1;\nmouse.y = -(event.clientY \u002F window.innerHeight) * 2 + 1;\nraycaster.setFromCamera(mouse, camera);\n```\n\n### intersectObject(object, recursive?, optionalTarget?)\n\nTests a single object (and optionally its descendants) for intersections.\n\n- `recursive` (default: `true`): when `true`, tests all descendants\n- `optionalTarget`: reusable array to avoid allocation\n- Returns: `Intersection[]` ALWAYS sorted by distance (nearest first)\n\n### intersectObjects(objects, recursive?, optionalTarget?)\n\nTests an array of objects for intersections.\n\n- `recursive` (default: `true`): when `true`, tests descendants of each object\n- `optionalTarget`: reusable array to avoid allocation\n- Returns: `Intersection[]` ALWAYS sorted by distance (nearest first)\n\n---\n\n## Intersection Object Format\n\nEvery intersection in the returned array has this structure:\n\n```typescript\ninterface Intersection {\n  distance: number;       \u002F\u002F distance from ray origin to hit point\n  point: Vector3;         \u002F\u002F hit point in world space\n  face: Face | null;      \u002F\u002F hit face ({a, b, c} vertex indices + normal)\n  faceIndex: number;      \u002F\u002F index of hit face in the geometry\n  object: Object3D;       \u002F\u002F the intersected object reference\n  uv?: Vector2;           \u002F\u002F UV coordinates at intersection point\n  uv1?: Vector2;          \u002F\u002F second UV set (if available)\n  normal?: Vector3;       \u002F\u002F interpolated surface normal at hit point\n  instanceId?: number;    \u002F\u002F instance index (only for InstancedMesh)\n}\n```\n\nALWAYS check `intersects.length > 0` before accessing `intersects[0]`. The array is empty when no objects are hit.\n\n---\n\n## NDC Conversion (Normalized Device Coordinates)\n\nConverting DOM mouse coordinates to NDC is required for `setFromCamera`. The NDC space ranges from -1 (left\u002Fbottom) to +1 (right\u002Ftop).\n\n```javascript\n\u002F\u002F For fullscreen canvas (canvas fills entire window)\nmouse.x = (event.clientX \u002F window.innerWidth) * 2 - 1;\nmouse.y = -(event.clientY \u002F window.innerHeight) * 2 + 1;\n\n\u002F\u002F For non-fullscreen canvas (canvas has offset within page)\nconst rect = renderer.domElement.getBoundingClientRect();\nmouse.x = ((event.clientX - rect.left) \u002F rect.width) * 2 - 1;\nmouse.y = -((event.clientY - rect.top) \u002F rect.height) * 2 + 1;\n```\n\nALWAYS use `getBoundingClientRect()` when the canvas does NOT fill the entire viewport. Using `window.innerWidth\u002FHeight` on a partial canvas produces incorrect NDC values and misaligned picking.\n\n---\n\n## InstancedMesh Picking\n\nWhen raycasting against `InstancedMesh`, the intersection result includes `instanceId` identifying which instance was hit:\n\n```javascript\nimport * as THREE from 'three';\n\nconst intersects = raycaster.intersectObject(instancedMesh);\nif (intersects.length > 0) {\n  const instanceId = intersects[0].instanceId;\n  \u002F\u002F Retrieve the instance's transform matrix\n  const matrix = new THREE.Matrix4();\n  instancedMesh.getMatrixAt(instanceId, matrix);\n\n  \u002F\u002F Example: change the color of the hit instance\n  const color = new THREE.Color();\n  instancedMesh.getColorAt(instanceId, color);\n  instancedMesh.setColorAt(instanceId, new THREE.Color(0xff0000));\n  instancedMesh.instanceColor.needsUpdate = true;\n}\n```\n\nALWAYS check that `instanceId !== undefined` before using it -- non-InstancedMesh objects do not have this property.\n\n---\n\n## Layer Filtering\n\nRaycaster respects the `Layers` system. Only objects whose layers overlap with `raycaster.layers` are tested.\n\n```javascript\n\u002F\u002F Assign objects to layers\nselectableMesh.layers.set(1);        \u002F\u002F exclusively on layer 1\ndecorationMesh.layers.set(2);        \u002F\u002F exclusively on layer 2\n\n\u002F\u002F Configure raycaster to only test layer 1\nraycaster.layers.set(1);\n\u002F\u002F Now intersectObjects skips all objects NOT on layer 1\n\n\u002F\u002F Enable multiple layers\nraycaster.layers.enable(1);\nraycaster.layers.enable(2);\n\u002F\u002F Now tests objects on layer 1 OR layer 2\n\n\u002F\u002F Reset to default (layer 0 only)\nraycaster.layers.set(0);\n```\n\nUse layers to create picking groups: interactive objects on layer 1, non-interactive decoration on layer 2, helpers\u002Fgizmos on layer 3.\n\n---\n\n## Performance Guidelines\n\n1. **Throttle mousemove raycasting** -- NEVER raycast on every `mousemove` event. Use a flag checked in the render loop:\n   ```javascript\n   let needsRaycast = false;\n   canvas.addEventListener('pointermove', (event) => {\n     mouse.x = (event.clientX \u002F window.innerWidth) * 2 - 1;\n     mouse.y = -(event.clientY \u002F window.innerHeight) * 2 + 1;\n     needsRaycast = true;\n   });\n\n   function animate() {\n     if (needsRaycast) {\n       raycaster.setFromCamera(mouse, camera);\n       \u002F\u002F perform intersection tests\n       needsRaycast = false;\n     }\n     renderer.render(scene, camera);\n     requestAnimationFrame(animate);\n   }\n   ```\n\n2. **Use layers** -- assign interactive objects to a specific layer and set `raycaster.layers` accordingly to skip non-interactive geometry entirely.\n\n3. **Maintain a flat selectable array** -- instead of raycasting against `scene` with `recursive: true`, keep a separate `selectableObjects[]` array and pass `recursive: false`.\n\n4. **Reuse the intersections array** -- pass `optionalTarget` to avoid garbage collection:\n   ```javascript\n   const intersections = [];\n   raycaster.intersectObjects(selectableObjects, false, intersections);\n   \u002F\u002F process results...\n   intersections.length = 0;\n   ```\n\n5. **Bounding sphere pre-check** -- Three.js automatically tests bounding spheres before triangle intersection. Ensure `geometry.computeBoundingSphere()` has been called (it is called automatically on first render, but manual call is needed if raycasting before first render).\n\n6. **Limit `near`\u002F`far`** -- narrow the ray range when you know the expected intersection distance to skip distant objects early.\n\n---\n\n## Reference Links\n\n- [references\u002Fmethods.md](references\u002Fmethods.md) -- Complete Raycaster API signatures\n- [references\u002Fexamples.md](references\u002Fexamples.md) -- Working code examples for picking, hover, and InstancedMesh\n- [references\u002Fanti-patterns.md](references\u002Fanti-patterns.md) -- What NOT to do with raycasting\n\n### Official Sources\n\n- https:\u002F\u002Fthreejs.org\u002Fdocs\u002F#api\u002Fen\u002Fcore\u002FRaycaster\n- https:\u002F\u002Fthreejs.org\u002Fdocs\u002F#api\u002Fen\u002Fcore\u002FLayers\n","# threejs-core-raycaster\n\n## Quick Reference\n\n### Raycaster Constructor\n\n```javascript\nimport * as THREE from 'three';\n\nconst raycaster = new THREE.Raycaster(\n  origin,     \u002F\u002F Vector3 — default: (0, 0, 0)\n  direction,  \u002F\u002F Vector3 — MUST be normalized, default: (0, 0, -1)\n  near,       \u002F\u002F number — minimum distance, default: 0\n  far         \u002F\u002F number — maximum distance, default: Infinity\n);\n```\n\n### Properties\n\n| Property | Type | Default | Description |\n|----------|------|---------|-------------|\n| `ray` | `Ray` | -- | Underlying Ray object (origin + direction) |\n| `near` | `number` | `0` | Minimum intersection distance |\n| `far` | `number` | `Infinity` | Maximum intersection distance |\n| `camera` | `Camera` | -- | Required for raycasting against `Sprite` objects |\n| `layers` | `Layers` | layer 0 | Layer mask -- only objects on matching layers are tested |\n| `params` | `object` | see below | Per-type intersection thresholds |\n\n### Params Defaults\n\n```javascript\nraycaster.params = {\n  Mesh: {},\n  Line: { threshold: 1 },    \u002F\u002F world units distance for line hits\n  LOD: {},\n  Points: { threshold: 1 },  \u002F\u002F world units distance for point hits\n  Sprite: {}\n};\n```\n\n### Critical Warnings\n\n**NEVER** raycast on every `mousemove` event without throttling -- this causes severe frame drops on complex scenes. ALWAYS throttle to the render loop via `requestAnimationFrame` or limit to 30-60 checks per second.\n\n**NEVER** pass `recursive: true` on large scene graphs when you have a flat array of target objects -- ALWAYS maintain a flat array of selectable objects and pass `recursive: false` to avoid unnecessary tree traversal.\n\n**NEVER** forget to normalize the direction vector when using `raycaster.set()` -- an unnormalized direction produces incorrect distance values in all intersection results.\n\n**NEVER** allocate a new results array every frame -- ALWAYS reuse an array via the `optionalTarget` parameter and clear it with `array.length = 0` after processing.\n\n**NEVER** raycast against the entire `scene.children` when only a subset of objects is interactive -- ALWAYS maintain a separate array of selectable objects or use layers for filtering.\n\n**NEVER** omit `raycaster.camera` when raycasting against `Sprite` objects -- the raycaster requires the camera reference to compute sprite screen-space bounds.\n\n---\n\n## Core Methods\n\n### set(origin, direction)\n\nManually sets the ray origin and direction. Direction MUST be normalized.\n\n```javascript\nconst origin = new THREE.Vector3(0, 1, 0);\nconst direction = new THREE.Vector3(0, -1, 0); \u002F\u002F already normalized\nraycaster.set(origin, direction);\n```\n\n### setFromCamera(coords, camera)\n\nSets the ray from normalized device coordinates (NDC) and a camera. This is the standard mouse-picking method.\n\n- `coords`: `Vector2` with x and y in range [-1, +1]\n- `camera`: `PerspectiveCamera` produces a ray from the camera through the point; `OrthographicCamera` produces a parallel ray\n\n```javascript\nconst mouse = new THREE.Vector2();\nmouse.x = (event.clientX \u002F window.innerWidth) * 2 - 1;\nmouse.y = -(event.clientY \u002F window.innerHeight) * 2 + 1;\nraycaster.setFromCamera(mouse, camera);\n```\n\n### intersectObject(object, recursive?, optionalTarget?)\n\nTests a single object (and optionally its descendants) for intersections.\n\n- `recursive` (default: `true`): when `true`, tests all descendants\n- `optionalTarget`: reusable array to avoid allocation\n- Returns: `Intersection[]` ALWAYS sorted by distance (nearest first)\n\n### intersectObjects(objects, recursive?, optionalTarget?)\n\nTests an array of objects for intersections.\n\n- `recursive` (default: `true`): when `true`, tests descendants of each object\n- `optionalTarget`: reusable array to avoid allocation\n- Returns: `Intersection[]` ALWAYS sorted by distance (nearest first)\n\n---\n\n## Intersection Object Format\n\nEvery intersection in the returned array has this structure:\n\n```typescript\ninterface Intersection {\n  distance: number;       \u002F\u002F distance from ray origin to hit point\n  point: Vector3;         \u002F\u002F hit point in world space\n  face: Face | null;      \u002F\u002F hit face ({a, b, c} vertex indices + normal)\n  faceIndex: number;      \u002F\u002F index of hit face in the geometry\n  object: Object3D;       \u002F\u002F the intersected object reference\n  uv?: Vector2;           \u002F\u002F UV coordinates at intersection point\n  uv1?: Vector2;          \u002F\u002F second UV set (if available)\n  normal?: Vector3;       \u002F\u002F interpolated surface normal at hit point\n  instanceId?: number;    \u002F\u002F instance index (only for InstancedMesh)\n}\n```\n\nALWAYS check `intersects.length > 0` before accessing `intersects[0]`. The array is empty when no objects are hit.\n\n---\n\n## NDC Conversion (Normalized Device Coordinates)\n\nConverting DOM mouse coordinates to NDC is required for `setFromCamera`. The NDC space ranges from -1 (left\u002Fbottom) to +1 (right\u002Ftop).\n\n```javascript\n\u002F\u002F For fullscreen canvas (canvas fills entire window)\nmouse.x = (event.clientX \u002F window.innerWidth) * 2 - 1;\nmouse.y = -(event.clientY \u002F window.innerHeight) * 2 + 1;\n\n\u002F\u002F For non-fullscreen canvas (canvas has offset within page)\nconst rect = renderer.domElement.getBoundingClientRect();\nmouse.x = ((event.clientX - rect.left) \u002F rect.width) * 2 - 1;\nmouse.y = -((event.clientY - rect.top) \u002F rect.height) * 2 + 1;\n```\n\nALWAYS use `getBoundingClientRect()` when the canvas does NOT fill the entire viewport. Using `window.innerWidth\u002FHeight` on a partial canvas produces incorrect NDC values and misaligned picking.\n\n---\n\n## InstancedMesh Picking\n\nWhen raycasting against `InstancedMesh`, the intersection result includes `instanceId` identifying which instance was hit:\n\n```javascript\nimport * as THREE from 'three';\n\nconst intersects = raycaster.intersectObject(instancedMesh);\nif (intersects.length > 0) {\n  const instanceId = intersects[0].instanceId;\n  \u002F\u002F Retrieve the instance's transform matrix\n  const matrix = new THREE.Matrix4();\n  instancedMesh.getMatrixAt(instanceId, matrix);\n\n  \u002F\u002F Example: change the color of the hit instance\n  const color = new THREE.Color();\n  instancedMesh.getColorAt(instanceId, color);\n  instancedMesh.setColorAt(instanceId, new THREE.Color(0xff0000));\n  instancedMesh.instanceColor.needsUpdate = true;\n}\n```\n\nALWAYS check that `instanceId !== undefined` before using it -- non-InstancedMesh objects do not have this property.\n\n---\n\n## Layer Filtering\n\nRaycaster respects the `Layers` system. Only objects whose layers overlap with `raycaster.layers` are tested.\n\n```javascript\n\u002F\u002F Assign objects to layers\nselectableMesh.layers.set(1);        \u002F\u002F exclusively on layer 1\ndecorationMesh.layers.set(2);        \u002F\u002F exclusively on layer 2\n\n\u002F\u002F Configure raycaster to only test layer 1\nraycaster.layers.set(1);\n\u002F\u002F Now intersectObjects skips all objects NOT on layer 1\n\n\u002F\u002F Enable multiple layers\nraycaster.layers.enable(1);\nraycaster.layers.enable(2);\n\u002F\u002F Now tests objects on layer 1 OR layer 2\n\n\u002F\u002F Reset to default (layer 0 only)\nraycaster.layers.set(0);\n```\n\nUse layers to create picking groups: interactive objects on layer 1, non-interactive decoration on layer 2, helpers\u002Fgizmos on layer 3.\n\n---\n\n## Performance Guidelines\n\n1. **Throttle mousemove raycasting** -- NEVER raycast on every `mousemove` event. Use a flag checked in the render loop:\n   ```javascript\n   let needsRaycast = false;\n   canvas.addEventListener('pointermove', (event) => {\n     mouse.x = (event.clientX \u002F window.innerWidth) * 2 - 1;\n     mouse.y = -(event.clientY \u002F window.innerHeight) * 2 + 1;\n     needsRaycast = true;\n   });\n\n   function animate() {\n     if (needsRaycast) {\n       raycaster.setFromCamera(mouse, camera);\n       \u002F\u002F perform intersection tests\n       needsRaycast = false;\n     }\n     renderer.render(scene, camera);\n     requestAnimationFrame(animate);\n   }\n   ```\n\n2. **Use layers** -- assign interactive objects to a specific layer and set `raycaster.layers` accordingly to skip non-interactive geometry entirely.\n\n3. **Maintain a flat selectable array** -- instead of raycasting against `scene` with `recursive: true`, keep a separate `selectableObjects[]` array and pass `recursive: false`.\n\n4. **Reuse the intersections array** -- pass `optionalTarget` to avoid garbage collection:\n   ```javascript\n   const intersections = [];\n   raycaster.intersectObjects(selectableObjects, false, intersections);\n   \u002F\u002F process results...\n   intersections.length = 0;\n   ```\n\n5. **Bounding sphere pre-check** -- Three.js automatically tests bounding spheres before triangle intersection. Ensure `geometry.computeBoundingSphere()` has been called (it is called automatically on first render, but manual call is needed if raycasting before first render).\n\n6. **Limit `near`\u002F`far`** -- narrow the ray range when you know the expected intersection distance to skip distant objects early.\n\n---\n\n## Reference Links\n\n- [references\u002Fmethods.md](references\u002Fmethods.md) -- Complete Raycaster API signatures\n- [references\u002Fexamples.md](references\u002Fexamples.md) -- Working code examples for picking, hover, and InstancedMesh\n- [references\u002Fanti-patterns.md](references\u002Fanti-patterns.md) -- What NOT to do with raycasting\n\n### Official Sources\n\n- https:\u002F\u002Fthreejs.org\u002Fdocs\u002F#api\u002Fen\u002Fcore\u002FRaycaster\n- https:\u002F\u002Fthreejs.org\u002Fdocs\u002F#api\u002Fen\u002Fcore\u002FLayers\n",{"name":5,"license":14,"metadata":23,"description":26,"compatibility":27},{"author":24,"version":25},"OpenAEC-Foundation","1.0","Use when implementing mouse picking, hover detection, object selection, or line-of-sight checks in Three.js. Prevents the common mistake of raycasting every mousemove frame, not using layers for filtering, or missing recursive flag. Covers Raycaster, setFromCamera, intersection format, InstancedMesh picking, layers, performance. Keywords: Raycaster, mouse picking, intersectObjects, click, hover, setFromCamera, intersection, instanceId, object selection, click on 3D object, detect mouse over, pick element.\n","Designed for Claude Code. Requires Three.js r160+.","main","4c174e06a831864e98c30f630a7aa6c04738b094","skills\u002F_intake\u002Fgithub\u002FImpertio-Studio\u002FThree.js-Claude-Skill-Package\u002Fthreejs-core-raycaster","https:\u002F\u002Fgithub.com\u002Fmhyahya854\u002FAI-Second-Brain_Universal-Rules","https:\u002F\u002Fgithub.com\u002Fmhyahya854","2026-11-06 02:03:37",{"source":8,"skillName":5,"commands":35,"prompt":45,"zipAvailable":46},[36,39,42],{"tool":37,"command":38},"npx","npx skills add mhyahya854\u002FAI-Second-Brain_Universal-Rules --skill threejs-core-raycaster",{"tool":40,"command":41},"bunx","bunx skills add mhyahya854\u002FAI-Second-Brain_Universal-Rules --skill threejs-core-raycaster",{"tool":43,"command":44},"pnpm","pnpm dlx skills add mhyahya854\u002FAI-Second-Brain_Universal-Rules --skill threejs-core-raycaster","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmhyahya854\u002FAI-Second-Brain_Universal-Rules\u002Fblob\u002Fmain\u002Fskills\u002F_intake\u002Fgithub\u002FImpertio-Studio\u002FThree.js-Claude-Skill-Package\u002Fthreejs-core-raycaster\u002FSKILL.md",true,[48,54,58],{"path":49,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":52,"sourceHtmlUrl":53},"references\u002Fanti-patterns.md","REFERENCE","参考文档",8530,"https:\u002F\u002Fgithub.com\u002Fmhyahya854\u002FAI-Second-Brain_Universal-Rules\u002Fblob\u002Fmain\u002Fskills\u002F_intake\u002Fgithub\u002FImpertio-Studio\u002FThree.js-Claude-Skill-Package\u002Fthreejs-core-raycaster\u002Freferences\u002Fanti-patterns.md",{"path":55,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":56,"sourceHtmlUrl":57},"references\u002Fexamples.md",11667,"https:\u002F\u002Fgithub.com\u002Fmhyahya854\u002FAI-Second-Brain_Universal-Rules\u002Fblob\u002Fmain\u002Fskills\u002F_intake\u002Fgithub\u002FImpertio-Studio\u002FThree.js-Claude-Skill-Package\u002Fthreejs-core-raycaster\u002Freferences\u002Fexamples.md",{"path":59,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":60,"sourceHtmlUrl":61},"references\u002Fmethods.md",6944,"https:\u002F\u002Fgithub.com\u002Fmhyahya854\u002FAI-Second-Brain_Universal-Rules\u002Fblob\u002Fmain\u002Fskills\u002F_intake\u002Fgithub\u002FImpertio-Studio\u002FThree.js-Claude-Skill-Package\u002Fthreejs-core-raycaster\u002Freferences\u002Fmethods.md",[63,71,79,87,94,101],{"skillNo":64,"name":65,"nameZh":6,"description":66,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":67,"sourceHtmlUrl":68,"categories":69,"keywords":70,"publishedAt":18},"01M7EX4T721AAH60R0239P8WBZ","frontend-slides","Create stunning, animation-rich HTML presentations from scratch or by converting PowerPoint files. Use when the user wants to build a presentation, convert a PPT\u002FPPTX to web, or create slides for a talk\u002Fpitch. Helps non-designers discover their aesthetic through visual exploration rather than abstract choices.","https:\u002F\u002Fgithub.com\u002Fmhyahya854\u002FAI-Second-Brain_Universal-Rules\u002Fblob\u002Fmain\u002Fskills\u002F_intake\u002Fgithub\u002Fzarazhangrui\u002Ffrontend-slides\u002Ffrontend-slides\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fmhyahya854\u002FAI-Second-Brain_Universal-Rules\u002Fblob\u002Fmain\u002Fskills\u002F_intake\u002Fgithub\u002Fzarazhangrui\u002Ffrontend-slides\u002Ffrontend-slides\u002FSKILL.md",[],[],{"skillNo":72,"name":73,"nameZh":6,"description":74,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":75,"sourceHtmlUrl":76,"categories":77,"keywords":78,"publishedAt":18},"01M7EX495RSHTTCEJVX7C83FA3","design-dna","Extract, define, and apply design DNA across three dimensions: design system (tokens), design style (qualitative feel), and visual effects (Canvas, WebGL, 3D, particles, shaders, scroll effects, etc.). Use this skill when: (1) a user wants to see the full 3-dimension design structure\u002Fschema, (2) a user provides images, screenshots, or URLs of reference designs and wants them analyzed into a structured JSON profile covering all three dimensions, (3) a user has a Design DNA JSON and content and wants a design generated from it, or (4) any combination of these phases. Triggers on \"design DNA\", \"extract design style\", \"analyze design\", \"design tokens from reference\", \"generate design from JSON\", \"design system from screenshot\", \"design profile\", \"style guide JSON\", \"visual effects analysis\", \"design with effects\", \"3d design analysis\".","https:\u002F\u002Fgithub.com\u002Fmhyahya854\u002FAI-Second-Brain_Universal-Rules\u002Fblob\u002Fmain\u002Fskills\u002F_intake\u002Fgithub\u002Fzanwei\u002Fdesign-dna\u002Fdesign-dna\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fmhyahya854\u002FAI-Second-Brain_Universal-Rules\u002Fblob\u002Fmain\u002Fskills\u002F_intake\u002Fgithub\u002Fzanwei\u002Fdesign-dna\u002Fdesign-dna\u002FSKILL.md",[],[],{"skillNo":80,"name":81,"nameZh":6,"description":82,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":83,"sourceHtmlUrl":84,"categories":85,"keywords":86,"publishedAt":18},"01M7EX45RF2XZKRC3KDJDTT1PH","wireframe","Generate JSON wireframe with HTML preview","https:\u002F\u002Fgithub.com\u002Fmhyahya854\u002FAI-Second-Brain_Universal-Rules\u002Fblob\u002Fmain\u002Fskills\u002F_intake\u002Fgithub\u002Fyhassy\u002Fwireframe-skill\u002Fwireframe-skill\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fmhyahya854\u002FAI-Second-Brain_Universal-Rules\u002Fblob\u002Fmain\u002Fskills\u002F_intake\u002Fgithub\u002Fyhassy\u002Fwireframe-skill\u002Fwireframe-skill\u002FSKILL.md",[],[],{"skillNo":88,"name":89,"nameZh":6,"description":90,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":91,"categories":92,"keywords":93,"publishedAt":18},"01M7EWZEM3MHD48AYSYFR2C9JP","social-publishing","Schedule and publish social media posts across 13 platforms (X, LinkedIn, Instagram, Facebook Pages, TikTok, Discord, Telegram, YouTube, Reddit, WordPress, Pinterest) via the SocialClaw API. Use when the user wants to publish, schedule, or manage social media content programmatically. Requires SOCIALCLAW_API_KEY.","https:\u002F\u002Fgithub.com\u002Fmhyahya854\u002FAI-Second-Brain_Universal-Rules\u002Fblob\u002Fmain\u002Fskills\u002F_intake\u002Fgithub\u002Fwshobson\u002Fagents\u002Fsocial-publishing\u002FSKILL.md",[],[],{"skillNo":95,"name":96,"nameZh":6,"description":97,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":98,"categories":99,"keywords":100,"publishedAt":18},"01M7EWKDEK9840C728VXT78EQ9","hermes-tweet","Install and operate Hermes Tweet, a Hermes Agent plugin for X\u002FTwitter research, timeline reading, tweet analysis, and approval-gated private or state-changing operations. Use this skill when installing Hermes Tweet, researching X\u002FTwitter accounts, monitoring launch signals, investigating mentions, auditing giveaways, or preparing gated X operations. Use proactively when a Hermes Agent workflow needs current X\u002FTwitter context. Requires XQUIK_API_KEY for read and action tools.","https:\u002F\u002Fgithub.com\u002Fmhyahya854\u002FAI-Second-Brain_Universal-Rules\u002Fblob\u002Fmain\u002Fskills\u002F_intake\u002Fgithub\u002Fwshobson\u002Fagents\u002Fhermes-tweet\u002FSKILL.md",[],[],{"skillNo":102,"name":103,"nameZh":6,"description":104,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":105,"categories":106,"keywords":107,"publishedAt":18},"01M7EWASXP3NZWW95CJPT2CRWN","refactoring-ui","Audit and fix visual hierarchy, spacing, color, and depth in web UIs. Use when the user mentions \"my UI looks off\" (or amateur\u002Funprofessional), \"fix the design\", \"Tailwind styling\", \"color palette\", \"visual hierarchy\", \"design system\", \"spacing scale\", or \"component styling\". Also trigger when building consistent design tokens, creating dark mode themes, improving data-visualization clarity, or polishing UI details before launch. Covers grayscale-first workflow, constrained design scales, shadows, and component styling. For typeface selection, see web-typography. For usability audits, see ux-heuristics.","https:\u002F\u002Fgithub.com\u002Fmhyahya854\u002FAI-Second-Brain_Universal-Rules\u002Fblob\u002Fmain\u002Fskills\u002F_intake\u002Fgithub\u002Fwondelai\u002Fskills\u002Frefactoring-ui\u002FSKILL.md",[],[]]