[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M773M3RZ45T0EWTV0W7P9KBG":3,"skill-same:01M773M3RZ45T0EWTV0W7P9KBG":44},{"skillNo":4,"name":5,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":20,"frontMatter":21,"refName":22,"commitSha":23,"skillDirectory":24,"forksCount":25,"repositoryHtmlUrl":26,"repositoryHomepageUrl":6,"ownerHtmlUrl":27,"ownerBlogUrl":6,"ownerDescription":28,"updatedAt":29,"install":30,"resources":43},"01M773M3RZ45T0EWTV0W7P9KBG","three-js",null,"davidcoachdev\u002Fdcfiles","davidcoachdev","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F69812733?v=4","01M758C4BR16TAV1N47W319E9V","David H. Caycedo Blum.","01M758C4CCZA2ZYGA0BGMXCDRH",1,"MIT","https:\u002F\u002Fgithub.com\u002Fdavidcoachdev\u002Fdcfiles\u002Fblob\u002Fmain\u002Fconfig\u002F.config\u002Fopencode\u002Fskills\u002Fthree-js\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"# Three.js\n\nGuía rápida de patrones y configuraciones para Three.js visuales en el browser.\n\n## Cuando usar este skill\n\n- Necesitás un objeto 3D en una landing page\n- Querés partículas, fondos animados o visuales con WebGL\n- Estás usando react-three-fiber (R3F) o Three.js vanilla\n\n## Setup Básico\n\n```javascript\nimport * as THREE from 'three';\n\nconst scene = new THREE.Scene();\nconst camera = new THREE.PerspectiveCamera(75, window.innerWidth \u002F window.innerHeight, 0.1, 1000);\nconst renderer = new THREE.WebGLRenderer({ antialias: true, alpha: true });\nrenderer.setSize(window.innerWidth, window.innerHeight);\ndocument.getElementById('container').appendChild(renderer.domElement);\n\n\u002F\u002F Objeto simple\nconst geometry = new THREE.BoxGeometry(1, 1, 1);\nconst material = new THREE.MeshPhysicalMaterial({ color: 0x4488ff, metalness: 0.3, roughness: 0.6 });\nconst mesh = new THREE.Mesh(geometry, material);\nscene.add(mesh);\n\ncamera.position.z = 3;\n\nfunction animate() {\n  requestAnimationFrame(animate);\n  mesh.rotation.x += 0.01;\n  mesh.rotation.y += 0.01;\n  renderer.render(scene, camera);\n}\nanimate();\n```\n\n## Geometrías Comunes\n\n```javascript\nnew THREE.BoxGeometry(1, 1, 1);\nnew THREE.SphereGeometry(1, 32, 32);\nnew THREE.TorusGeometry(1, 0.3, 16, 100);\nnew THREE.TorusKnotGeometry(1, 0.3, 128, 16); \u002F\u002F el más vistoso\nnew THREE.IcosahedronGeometry(1, 0);\nnew THREE.PlaneGeometry(2, 2);\nnew THREE.CylinderGeometry(1, 1, 2, 32);\n```\n\n## Materiales\n\n```javascript\n\u002F\u002F Básico (sin luces)\nnew THREE.MeshBasicMaterial({ color: 0x4488ff, wireframe: true });\n\n\u002F\u002F Estándar (con luces)\nnew THREE.MeshStandardMaterial({ color: 0x4488ff, metalness: 0.3, roughness: 0.6 });\n\n\u002F\u002F Físico (con clearcoat)\nnew THREE.MeshPhysicalMaterial({\n  color: 0x4488ff,\n  metalness: 0.0,\n  roughness: 0.2,\n  clearcoat: 1.0,\n  clearcoatRoughness: 0.1,\n  transparent: true,\n  opacity: 0.9\n});\n```\n\n## Luces Rápidas\n\n```javascript\nconst ambient = new THREE.AmbientLight(0xffffff, 0.5);\nscene.add(ambient);\n\nconst directional = new THREE.DirectionalLight(0xffffff, 1);\ndirectional.position.set(5, 5, 5);\nscene.add(directional);\n\nconst point = new THREE.PointLight(0x4488ff, 2, 10);\npoint.position.set(2, 3, 4);\nscene.add(point);\n```\n\n## OrbitControls\n\n```javascript\nimport { OrbitControls } from 'three\u002Faddons\u002Fcontrols\u002FOrbitControls.js';\nconst controls = new OrbitControls(camera, renderer.domElement);\ncontrols.enableDamping = true;\ncontrols.autoRotate = true;\ncontrols.autoRotateSpeed = 1.0;\n```\n\n## Responsive\n\n```javascript\nwindow.addEventListener('resize', () => {\n  camera.aspect = window.innerWidth \u002F window.innerHeight;\n  camera.updateProjectionMatrix();\n  renderer.setSize(window.innerWidth, window.innerHeight);\n});\n```\n\n## Cleanup\n\n```javascript\nfunction cleanup() {\n  renderer.dispose();\n  scene.traverse(obj => {\n    if (obj.geometry) obj.geometry.dispose();\n    if (obj.material) obj.material.dispose();\n  });\n  cancelAnimationFrame(animationId);\n}\n```\n\n## Patrón: Background de Partículas\n\nVer `canvas-webgl-patterns` para globe-particles.\n\n## Patrón: Post-Processing (Bloom)\n\n```javascript\nimport { EffectComposer } from 'three\u002Faddons\u002Fpostprocessing\u002FEffectComposer.js';\nimport { RenderPass } from 'three\u002Faddons\u002Fpostprocessing\u002FRenderPass.js';\nimport { UnrealBloomPass } from 'three\u002Faddons\u002Fpostprocessing\u002FUnrealBloomPass.js';\n\nconst composer = new EffectComposer(renderer);\ncomposer.addPass(new RenderPass(scene, camera));\nconst bloom = new UnrealBloomPass(new THREE.Vector2(window.innerWidth, window.innerHeight), 0.3, 0.5, 0.1);\ncomposer.addPass(bloom);\n\n\u002F\u002F En el loop, usar composer.render() en vez de renderer.render()\n```\n\n## Errores Comunes\n\n- **No se ve nada**: 90% es la cámara apuntando mal o la escena sin luces\n- **Performance**: Reducir polygon count, limitar draw calls, usar BufferGeometry\n- **Mobile**: Testear sin post-processing, reducir pixel ratio\n- **Memory leaks**: Siempre dispose() al desmontar\n",{},"main","5dc86f90a5cbe45db3acd917825461b3ed6937fb","config\u002F.config\u002Fopencode\u002Fskills\u002Fthree-js",0,"https:\u002F\u002Fgithub.com\u002Fdavidcoachdev\u002Fdcfiles","https:\u002F\u002Fgithub.com\u002Fdavidcoachdev","🌐 Apasionado por crear soluciones web escalables y eficientes. \r\n🧑‍🏫 Coach Dev.\r\n💻 Frontend Dev. \r\n🎚️Backend Dev.\r\n📊 Agile\u002FScrum.\r\n🚀100% remoto.","2026-08-26 07:28:05",{"source":7,"skillName":5,"commands":31,"prompt":41,"zipAvailable":42},[32,35,38],{"tool":33,"command":34},"npx","npx skills add davidcoachdev\u002Fdcfiles --skill three-js",{"tool":36,"command":37},"bunx","bunx skills add davidcoachdev\u002Fdcfiles --skill three-js",{"tool":39,"command":40},"pnpm","pnpm dlx skills add davidcoachdev\u002Fdcfiles --skill three-js","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fdavidcoachdev\u002Fdcfiles\u002Fblob\u002Fmain\u002Fconfig\u002F.config\u002Fopencode\u002Fskills\u002Fthree-js\u002FSKILL.md",true,[],[45,53,60,67,74,81],{"skillNo":46,"name":47,"nameZh":6,"description":48,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":49,"licenseFileUrl":6,"sourceHtmlUrl":50,"categories":51,"keywords":52,"publishedAt":18},"01M7740FETMZY1VTYAEFY1TWY7","zustand-5","Zustand 5 state management patterns. Trigger: When managing React state with Zustand.","Apache-2.0","https:\u002F\u002Fgithub.com\u002Fdavidcoachdev\u002Fdcfiles\u002Fblob\u002Fmain\u002Fconfig\u002F.config\u002Fopencode\u002Fskills\u002Fzustand-5\u002FSKILL.md",[],[],{"skillNo":54,"name":55,"nameZh":6,"description":56,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":49,"licenseFileUrl":6,"sourceHtmlUrl":57,"categories":58,"keywords":59,"publishedAt":18},"01M773ZZM9V68SA1AKP4WF4J29","zod-4","Zod 4 schema validation patterns. Trigger: When using Zod for validation - breaking changes from v3.","https:\u002F\u002Fgithub.com\u002Fdavidcoachdev\u002Fdcfiles\u002Fblob\u002Fmain\u002Fconfig\u002F.config\u002Fopencode\u002Fskills\u002Fzod-4\u002FSKILL.md",[],[],{"skillNo":61,"name":62,"nameZh":6,"description":63,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":49,"licenseFileUrl":6,"sourceHtmlUrl":64,"categories":65,"keywords":66,"publishedAt":18},"01M773ZJFR90CQAY0N9QR40QVP","x-bookmark-quote-posts","Workflow para revisar bookmarks de X\u002FTwitter y convertirlos en drafts de quote posts. Accede a la sección de bookmarks vía browser headless, extrae posts recientes, y genera drafts con voz personal del usuario. No publica ni muta X — solo genera contenido para revisión. Trigger: X bookmarks, Twitter bookmarks, quote posts, bookmark automation, crear quote posts, revisar bookmarks, growth content X.","https:\u002F\u002Fgithub.com\u002Fdavidcoachdev\u002Fdcfiles\u002Fblob\u002Fmain\u002Fconfig\u002F.config\u002Fopencode\u002Fskills\u002Fx-bookmark-quote-posts\u002FSKILL.md",[],[],{"skillNo":68,"name":69,"nameZh":6,"description":70,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":71,"categories":72,"keywords":73,"publishedAt":18},"01M773Z2RGV3786FV310SDB0YD","writing-skills","Use when creating new skills, editing existing skills, or verifying skills work before deployment","https:\u002F\u002Fgithub.com\u002Fdavidcoachdev\u002Fdcfiles\u002Fblob\u002Fmain\u002Fconfig\u002F.config\u002Fopencode\u002Fskills\u002Fwriting-skills\u002FSKILL.md",[],[],{"skillNo":75,"name":76,"nameZh":6,"description":77,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":78,"categories":79,"keywords":80,"publishedAt":18},"01M773YJH3KDSW467CSS63CSRJ","writing-plans","Use when you have a spec or requirements for a multi-step task, before touching code","https:\u002F\u002Fgithub.com\u002Fdavidcoachdev\u002Fdcfiles\u002Fblob\u002Fmain\u002Fconfig\u002F.config\u002Fopencode\u002Fskills\u002Fwriting-plans\u002FSKILL.md",[],[],{"skillNo":82,"name":83,"nameZh":6,"description":84,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":49,"licenseFileUrl":6,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":18},"01M773Y3S3H2CPRK5S8YFHWB5C","work-unit-commits","Plan commits as reviewable work units. Trigger: implementation, commit splitting, chained PRs, or keeping tests and docs with code.","https:\u002F\u002Fgithub.com\u002Fdavidcoachdev\u002Fdcfiles\u002Fblob\u002Fmain\u002Fconfig\u002F.config\u002Fopencode\u002Fskills\u002Fwork-unit-commits\u002FSKILL.md",[],[]]