@vesviet/agent-skills 5.6.0 → 5.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (113) hide show
  1. package/INDEX.md +1 -1
  2. package/README.md +1 -1
  3. package/VERSION +1 -1
  4. package/adapters/antigravity/a2a-config.template.yaml +1 -1
  5. package/adapters/antigravity/role-skill-index.json +1 -1
  6. package/adapters/claude/CLAUDE_ADAPTER.md +1 -1
  7. package/adapters/cursor/README.md +185 -185
  8. package/bin/agent-skills.mjs +17 -14
  9. package/core/contracts/schemas/api-contract-spec.json +191 -191
  10. package/core/contracts/schemas/feature-ticket.json +1293 -1293
  11. package/core/contracts/schemas/pull-request-spec.json +338 -338
  12. package/core/contracts/schemas/references/detailed/01-solution-and-governance.md +19 -19
  13. package/core/contracts/schemas/references/detailed/02-engineering-delivery.md +93 -93
  14. package/core/contracts/schemas/references/detailed/04-finance-accounting-and-compliance.md +54 -54
  15. package/core/contracts/schemas/references/detailed/05-design-and-content.md +92 -92
  16. package/core/contracts/schemas/references/detailed/06-seo-and-publishing.md +48 -48
  17. package/core/contracts/schemas/references/detailed/07-a2a-protocol.md +85 -85
  18. package/core/contracts/schemas/test-report.json +530 -530
  19. package/core/roles/references/business-analyst-responsibilities.md +207 -207
  20. package/core/roles/references/frontend-developer-responsibilities.md +275 -275
  21. package/core/roles/system-engineer.md +465 -465
  22. package/core/skills/agent/agent-memory-compaction/references/anchored-schema-and-compaction-algorithms.md +141 -141
  23. package/core/skills/backend/build-mcp-server/SKILL.md +100 -100
  24. package/core/skills/backend/implement-structured-outputs/SKILL.md +94 -94
  25. package/core/skills/business/elicit-requirements/SKILL.md +102 -102
  26. package/core/skills/business/elicit-requirements/references/elicitation-techniques-and-babok-criteria.md +60 -60
  27. package/core/skills/business/trace-requirements-impact/SKILL.md +97 -97
  28. package/core/skills/business/trace-requirements-impact/references/rtm-graph-and-prioritization-models.md +109 -109
  29. package/core/skills/business/write-use-cases/SKILL.md +106 -106
  30. package/core/skills/business/write-use-cases/references/cockburn-scoping-and-13-field-template.md +135 -135
  31. package/core/skills/document/pptx/scripts/add_slide.py +0 -0
  32. package/core/skills/document/pptx/scripts/clean.py +0 -0
  33. package/core/skills/document/pptx/scripts/thumbnail.py +0 -0
  34. package/core/skills/document/xlsx/scripts/recalc.py +0 -0
  35. package/core/skills/documentation/write-documentation/SKILL.md +143 -143
  36. package/core/skills/documentation/write-tech-radar/SKILL.md +149 -149
  37. package/core/skills/foundation/accessibility-review/SKILL.md +160 -160
  38. package/core/skills/foundation/release-notes/SKILL.md +192 -192
  39. package/core/skills/foundation/webapp-server-runner/scripts/with_server.py +0 -0
  40. package/core/skills/foundation/write-product-brief/SKILL.md +160 -160
  41. package/core/skills/platform/cloudflare-email-service/SKILL.md +166 -166
  42. package/core/skills/platform/cloudflare-email-service/references/routing.md +199 -199
  43. package/core/skills/platform/debug-workers-edge/SKILL.md +111 -111
  44. package/core/skills/platform/sandbox-sdk/SKILL.md +183 -183
  45. package/core/skills/platform/setup-gpu-finops/SKILL.md +107 -107
  46. package/core/skills/platform/setup-llm-gateway/SKILL.md +108 -108
  47. package/core/skills/platform/turnstile-spin/SKILL.md +118 -118
  48. package/core/skills/platform/turnstile-spin/scripts/auth-probe.sh +0 -0
  49. package/core/skills/platform/turnstile-spin/scripts/fetch-secret.sh +0 -0
  50. package/core/skills/platform/turnstile-spin/scripts/persist-skill.sh +0 -0
  51. package/core/skills/platform/turnstile-spin/scripts/validate.sh +0 -0
  52. package/core/skills/platform/turnstile-spin/scripts/widget-create.sh +0 -0
  53. package/core/skills/platform/turnstile-spin/scripts/worker-deploy.sh +0 -0
  54. package/core/skills/platform/turnstile-spin/templates/worker/src/index.ts +199 -199
  55. package/core/skills/platform/turnstile-spin/templates/worker/wrangler.toml +31 -31
  56. package/core/skills/platform/web-perf/SKILL.md +151 -151
  57. package/core/skills/platform/workers-best-practices/references/rules.md +463 -463
  58. package/core/skills/product/build-story-map/SKILL.md +104 -104
  59. package/core/skills/product/build-story-map/references/story-mapping-and-cpm-scheduling.md +101 -101
  60. package/core/skills/product/define-product-strategy/SKILL.md +105 -105
  61. package/core/skills/product/define-product-strategy/references/strategy-frameworks-and-pr-faq.md +142 -142
  62. package/core/skills/product/model-saas-metrics/SKILL.md +104 -104
  63. package/core/skills/product/model-saas-metrics/references/saas-unit-economics-and-pricing.md +110 -110
  64. package/core/skills/product/prioritize-roadmap/SKILL.md +106 -106
  65. package/core/skills/product/prioritize-roadmap/references/prioritization-scoring-and-kill-criteria.md +105 -105
  66. package/core/skills/repo-ops/commit-code/SKILL.md +190 -190
  67. package/core/skills/repo-ops/commit-code/references/multi-repo-and-deployment.md +21 -21
  68. package/core/skills/repo-ops/navigate-service/SKILL.md +199 -199
  69. package/core/skills/repo-ops/review-code/references/process-and-format.md +100 -100
  70. package/core/skills/repo-ops/review-service/SKILL.md +186 -186
  71. package/core/skills/repo-ops/troubleshoot-service/SKILL.md +127 -127
  72. package/core/skills/repo-ops/troubleshoot-service/references/failure-modes-and-security.md +22 -22
  73. package/core/skills/repo-ops/troubleshoot-service/references/suggested-process.md +110 -110
  74. package/core/skills/security-data/security-audit/SKILL.md +119 -119
  75. package/core/workflows/add-new-feature.md +212 -212
  76. package/core/workflows/agent-a2a-delegation.md +142 -142
  77. package/core/workflows/bug-fix.md +147 -147
  78. package/core/workflows/build-deploy.md +208 -208
  79. package/core/workflows/code-review.md +137 -137
  80. package/core/workflows/dependency-upgrade.md +193 -193
  81. package/core/workflows/feature-delivery.md +149 -149
  82. package/core/workflows/hotfix-production.md +172 -172
  83. package/core/workflows/qa-validation.md +231 -231
  84. package/core/workflows/refactoring.md +154 -154
  85. package/core/workflows/revert-deployment.md +147 -147
  86. package/core/workflows/security-incident-response.md +191 -191
  87. package/core/workflows/seo-content-lifecycle.md +91 -91
  88. package/core/workflows/service-review-release.md +223 -223
  89. package/core/workflows/setup-new-service.md +214 -214
  90. package/core/workflows/tech-repo-review.md +245 -245
  91. package/core/workflows/troubleshooting.md +241 -241
  92. package/overlays/astro-cloudflare/README.md +93 -93
  93. package/overlays/data-analyst-stack/README.md +109 -109
  94. package/overlays/data-analyst-stack/rules/metric-dashboard-templates.md +135 -135
  95. package/overlays/data-analyst-stack/rules/stack-conventions.md +80 -80
  96. package/overlays/ecommerce-microservices/README.md +65 -65
  97. package/overlays/go-microservices/README.md +78 -78
  98. package/overlays/go-microservices/rules/go-conventions.md +223 -223
  99. package/overlays/laravel-filament/README.md +90 -90
  100. package/overlays/laravel-filament/rules/laravel-conventions.md +220 -220
  101. package/overlays/laravel-filament/skills/develop-laravel-feature/SKILL.md +141 -141
  102. package/overlays/laravel-filament/workflows/deploy-laravel.md +133 -133
  103. package/overlays/obj-configurator/rules/obj-project-rules.md +111 -111
  104. package/overlays/obj-configurator/skills/develop-obj-feature/SKILL.md +71 -71
  105. package/overlays/r3f-stack/README.md +89 -89
  106. package/overlays/r3f-stack/rules/stub.md +43 -43
  107. package/overlays/r3f-stack/skills/debug-3d-scene/SKILL.md +166 -166
  108. package/overlays/r3f-stack/skills/integrate-r3f-three-legacy/SKILL.md +159 -159
  109. package/overlays/r3f-stack/skills/optimize-3d-assets/SKILL.md +128 -128
  110. package/overlays/seo-publishing/rules/site-mix-and-cannibalization.md +52 -52
  111. package/overlays/ui-design-system/rules/handoff-conventions.md +73 -73
  112. package/package.json +2 -2
  113. package/core/README.md +0 -53
@@ -1,166 +1,166 @@
1
- ---
2
- name: debug-3d-scene
3
- description: Debug 3D scene behavior by tracing scene graph structure, transforms, raycasting, decals, materials, camera logic, render loops, and WebGL lifecycle issues. Use when a Three.js, React Three Fiber, WebGL, or WebGPU scene has rendering bugs, interaction bugs, clipping problems, context instability, or suspicious visual math.
4
- allowed-tools: [read_file, write_file, edit_file, create_file, search_code, run_build, run_dev_server, run_tests]
5
- ---
6
-
7
- # Debug 3D Scene
8
-
9
- Use this skill when a 3D experience behaves incorrectly and the fix depends on understanding scene state, transforms, asset wiring, or render lifecycle rather than only surface UI symptoms.
10
-
11
- ## When to Use
12
-
13
- - a Three.js / R3F / WebGL / WebGPU scene has rendering bugs
14
- - interaction or raycasting bugs in a 3D scene
15
- - clipping, context loss, or camera math problems
16
- - suspicious material/transform/render-loop behavior
17
-
18
- ## Core Rules
19
-
20
- - capture the exact 3D symptom before changing code
21
- - verify coordinate systems, transforms, and scene hierarchy instead of trusting visual intuition
22
- - isolate whether the bug lives in assets, scene graph, interaction math, materials, or lifecycle
23
- - treat shared materials, shaders, merged geometry, and reused interaction hooks as blast-radius multipliers
24
- - verify the original issue and nearby scene regressions before closing the fix
25
- - Utilize Chrome DevTools Shader Editor tab to inspect WebGPU pipelines and shader compilation errors natively.
26
- - Use Spector.js in development to capture and replay WebGL draw calls frame-by-frame while disabling it in production.
27
- - Leverage R3F DevTools to analyze scene graphs, geometry vertex counts, material types, and render call counts.
28
-
29
- ## Suggested Process
30
-
31
- ### 1. Define The 3D Failure
32
-
33
- Clarify:
34
-
35
- - what the user sees versus what is expected
36
- - whether the issue is visual, interactive, performance-related, or lifecycle-related
37
- - which scene, model, decal, material, camera path, or device profile is affected
38
- - what behavior must stay stable while fixing it
39
-
40
- ### 2. Classify The Failure Layer
41
-
42
- Decide where the failure most likely lives:
43
-
44
- - scene graph or parent-child transform logic
45
- - mesh geometry, normals, UVs, or winding
46
- - material, texture, shader, or decal projection logic
47
- - camera, controls, frustum, or clipping setup
48
- - pointer interaction, raycasting, drag logic, or DOM-to-canvas bridge
49
- - loading lifecycle, async race, disposal, or WebGL context behavior
50
-
51
- ### 3. Trace The Real 3D State
52
-
53
- Inspect only what matters:
54
-
55
- - object hierarchy and local vs world transforms
56
- - scale, rotation, quaternion, and matrix conversion paths
57
- - material reuse, texture assignment, and shader assumptions
58
- - render loop subscriptions and camera/control updates
59
- - asset format differences such as OBJ vs GLTF/GLB
60
-
61
- ### 4. Check Shared-Risk Areas
62
-
63
- Look for common 3D regression sources:
64
-
65
- - reused materials or shaders
66
- - merged geometry or portal-based decal projection
67
- - texture flip, color space, or normal map conventions
68
- - mirrored geometry, negative scale, or winding order
69
- - event listener leaks, RAF duplication, or missing disposal
70
-
71
- ### 5. Form And Test A Narrow Hypothesis
72
-
73
- Test one likely cause at a time:
74
-
75
- - wrong local/world-space conversion
76
- - incorrect mesh target for decal or raycast
77
- - stale texture/material instance
78
- - asset orientation or scale mismatch
79
- - missed cleanup or duplicate render/update path
80
-
81
- ### 6. Verify The Fix
82
-
83
- Re-check:
84
-
85
- - original bug path
86
- - nearby models or scenes using the same logic
87
- - mobile or low-end GPU behavior if relevant
88
- - memory or context stability if lifecycle changed
89
-
90
- ### 2026: Advanced 3D Debugging and Diagnostics Tools
91
-
92
- - **WebGPU Debugging**: Use the native Chrome DevTools Shader Editor tab (available in Chrome 124+). This enables inspection of GPU pipelines, binding groups, and shader compilation errors natively without the need for external tooling.
93
- - **Spector.js for WebGL Diagnostics**: For WebGL-based pipelines, inject Spector.js in development builds. It records and replays draw calls frame-by-frame to identify state and binding issues. Ensure it is entirely disabled in production builds due to the significant performance overhead.
94
- - **React Three Fiber (R3F) DevTools**: Integrate the `@r3f/dev-tools` panel. This provides a real-time visual inspection of the scene graph, geometry vertex counts, material types, active shaders, and render call counts directly in the browser interface.
95
-
96
- ## Output Format
97
-
98
- Outputs must summarize the root cause and mitigation, and if the debug involves performance/memory bottlenecks, output must be accompanied by a `contracts/schemas/performance-audit.json` payload.
99
-
100
- ```markdown
101
- # <Problem> - 3D Scene Debug Brief
102
-
103
- ## Symptom
104
- - Expected behavior:
105
- - Actual behavior:
106
- - Affected scene / model / interaction:
107
-
108
- ## Failure Layer
109
- - Suspected layer:
110
- - Preserved behavior:
111
-
112
- ## Evidence
113
- - Relevant files or systems:
114
- - Transform / material / interaction observations:
115
- - Shared-risk areas:
116
-
117
- ## Hypothesis
118
- - Most likely root cause:
119
- - Why:
120
-
121
- ## Verification
122
- - Original issue re-checked:
123
- - Nearby regressions re-checked:
124
- - Residual risk:
125
- ```
126
-
127
- ## Failure Modes
128
-
129
- - **Symptom misattributed to render layer**: a visual bug is treated as a render problem when the cause is data, layout, or asset format. **Mitigation:** always classify the failure layer (scene graph, geometry, materials, camera, interaction, lifecycle) before changing code; the Suggested Process step 2 enforces this.
130
- - **Shared material or shader edited in isolation**: an edit to a shared material causes regressions in adjacent models. **Mitigation:** run the Shared-Risk Areas check (step 4) and verify neighboring models that reuse the same material; the blast-radius warning is in Core Rules.
131
- - **GPU memory leak from missing dispose**: a debug fix that adds geometry/material/texture without cleanup leaks GPU memory. **Mitigation:** verify disposal paths in the lifecycle review (step 6); reject changes that add resources without matching `dispose()` calls.
132
- - **WebGL context loss misattributed to a render bug**: a context loss is treated as a scene issue when the cause is the platform, not the scene. **Mitigation:** check `WEBGL_lose_context` events and platform limits; treat context loss as platform-side until proven otherwise.
133
- - **R3F DevTools / Spector.js shipped in production**: a debug build accidentally ships with the dev hooks. **Mitigation:** verify the production build excludes Spector.js and R3F DevTools; the Core Rules for these tools call this out explicitly.
134
-
135
- ## Output Contracts
136
-
137
- When this skill produces a structured handoff, emit:
138
-
139
- - **`contracts/schemas/performance-audit.json`** when the debug surfaces a performance or memory bottleneck. The `verdict`, `metrics` (draw call count, GPU memory), and `findings` fields are required.
140
- - For human-readable handoff, use the 3D Scene Debug Brief template in the existing Output Format block.
141
-
142
- Skip structured emission when the debug only produces a single fix that does not cross a role boundary.
143
- ## Security Guardrails (OWASP ASI)
144
-
145
- - **ASI05 RCE Guard**: do not execute dynamic shader code or WebGPU shader strings sourced from external content without strict schema validation; AI-generated shaders must compile in a sandboxed build before production.
146
- - **ASI07 Inter-Agent Communication**: the debug brief is consumed by Frontend and 3D roles; do not include any 3D model paths that point outside the operator's own asset domain.
147
- - **ASI09 Human-Agent Trust Exploitation**: do not present a debug summary as "root cause confirmed" without the actual scene-state evidence; surface unverified hypotheses as `[INFERENCE]`.
148
- ## Checklist
149
-
150
- - [ ] exact 3D symptom captured
151
- - [ ] likely failure layer classified
152
- - [ ] real scene state inspected
153
- - [ ] shared-risk areas checked
154
- - [ ] narrow hypothesis tested
155
- - [ ] original issue and nearby regressions re-checked
156
- - [ ] Native WebGPU pipelines and shaders are inspected via Chrome DevTools Shader Editor when using WebGPU.
157
- - [ ] Spector.js is integrated for dev-mode WebGL frame capture and disabled for production.
158
- - [ ] R3F DevTools is utilized to monitor scene graph, vertex count, and render calls.
159
-
160
- ## Related Skills
161
-
162
- - **optimize-3d-assets**: Improve source assets when geometry or texture quality is the real problem
163
- - **troubleshoot-service**: Debug non-graphics runtime or integration issues around the scene
164
- - **frontend-testing**: Add regression checks around interaction-sensitive fixes
165
- - **review-code**: Review risky transform, shader, or lifecycle changes
166
- - **navigate-service**: Map the 3D code path before debugging
1
+ ---
2
+ name: debug-3d-scene
3
+ description: Debug 3D scene behavior by tracing scene graph structure, transforms, raycasting, decals, materials, camera logic, render loops, and WebGL lifecycle issues. Use when a Three.js, React Three Fiber, WebGL, or WebGPU scene has rendering bugs, interaction bugs, clipping problems, context instability, or suspicious visual math.
4
+ allowed-tools: [read_file, write_file, edit_file, create_file, search_code, run_build, run_dev_server, run_tests]
5
+ ---
6
+
7
+ # Debug 3D Scene
8
+
9
+ Use this skill when a 3D experience behaves incorrectly and the fix depends on understanding scene state, transforms, asset wiring, or render lifecycle rather than only surface UI symptoms.
10
+
11
+ ## When to Use
12
+
13
+ - a Three.js / R3F / WebGL / WebGPU scene has rendering bugs
14
+ - interaction or raycasting bugs in a 3D scene
15
+ - clipping, context loss, or camera math problems
16
+ - suspicious material/transform/render-loop behavior
17
+
18
+ ## Core Rules
19
+
20
+ - capture the exact 3D symptom before changing code
21
+ - verify coordinate systems, transforms, and scene hierarchy instead of trusting visual intuition
22
+ - isolate whether the bug lives in assets, scene graph, interaction math, materials, or lifecycle
23
+ - treat shared materials, shaders, merged geometry, and reused interaction hooks as blast-radius multipliers
24
+ - verify the original issue and nearby scene regressions before closing the fix
25
+ - Utilize Chrome DevTools Shader Editor tab to inspect WebGPU pipelines and shader compilation errors natively.
26
+ - Use Spector.js in development to capture and replay WebGL draw calls frame-by-frame while disabling it in production.
27
+ - Leverage R3F DevTools to analyze scene graphs, geometry vertex counts, material types, and render call counts.
28
+
29
+ ## Suggested Process
30
+
31
+ ### 1. Define The 3D Failure
32
+
33
+ Clarify:
34
+
35
+ - what the user sees versus what is expected
36
+ - whether the issue is visual, interactive, performance-related, or lifecycle-related
37
+ - which scene, model, decal, material, camera path, or device profile is affected
38
+ - what behavior must stay stable while fixing it
39
+
40
+ ### 2. Classify The Failure Layer
41
+
42
+ Decide where the failure most likely lives:
43
+
44
+ - scene graph or parent-child transform logic
45
+ - mesh geometry, normals, UVs, or winding
46
+ - material, texture, shader, or decal projection logic
47
+ - camera, controls, frustum, or clipping setup
48
+ - pointer interaction, raycasting, drag logic, or DOM-to-canvas bridge
49
+ - loading lifecycle, async race, disposal, or WebGL context behavior
50
+
51
+ ### 3. Trace The Real 3D State
52
+
53
+ Inspect only what matters:
54
+
55
+ - object hierarchy and local vs world transforms
56
+ - scale, rotation, quaternion, and matrix conversion paths
57
+ - material reuse, texture assignment, and shader assumptions
58
+ - render loop subscriptions and camera/control updates
59
+ - asset format differences such as OBJ vs GLTF/GLB
60
+
61
+ ### 4. Check Shared-Risk Areas
62
+
63
+ Look for common 3D regression sources:
64
+
65
+ - reused materials or shaders
66
+ - merged geometry or portal-based decal projection
67
+ - texture flip, color space, or normal map conventions
68
+ - mirrored geometry, negative scale, or winding order
69
+ - event listener leaks, RAF duplication, or missing disposal
70
+
71
+ ### 5. Form And Test A Narrow Hypothesis
72
+
73
+ Test one likely cause at a time:
74
+
75
+ - wrong local/world-space conversion
76
+ - incorrect mesh target for decal or raycast
77
+ - stale texture/material instance
78
+ - asset orientation or scale mismatch
79
+ - missed cleanup or duplicate render/update path
80
+
81
+ ### 6. Verify The Fix
82
+
83
+ Re-check:
84
+
85
+ - original bug path
86
+ - nearby models or scenes using the same logic
87
+ - mobile or low-end GPU behavior if relevant
88
+ - memory or context stability if lifecycle changed
89
+
90
+ ### 2026: Advanced 3D Debugging and Diagnostics Tools
91
+
92
+ - **WebGPU Debugging**: Use the native Chrome DevTools Shader Editor tab (available in Chrome 124+). This enables inspection of GPU pipelines, binding groups, and shader compilation errors natively without the need for external tooling.
93
+ - **Spector.js for WebGL Diagnostics**: For WebGL-based pipelines, inject Spector.js in development builds. It records and replays draw calls frame-by-frame to identify state and binding issues. Ensure it is entirely disabled in production builds due to the significant performance overhead.
94
+ - **React Three Fiber (R3F) DevTools**: Integrate the `@r3f/dev-tools` panel. This provides a real-time visual inspection of the scene graph, geometry vertex counts, material types, active shaders, and render call counts directly in the browser interface.
95
+
96
+ ## Output Format
97
+
98
+ Outputs must summarize the root cause and mitigation, and if the debug involves performance/memory bottlenecks, output must be accompanied by a `contracts/schemas/performance-audit.json` payload.
99
+
100
+ ```markdown
101
+ # <Problem> - 3D Scene Debug Brief
102
+
103
+ ## Symptom
104
+ - Expected behavior:
105
+ - Actual behavior:
106
+ - Affected scene / model / interaction:
107
+
108
+ ## Failure Layer
109
+ - Suspected layer:
110
+ - Preserved behavior:
111
+
112
+ ## Evidence
113
+ - Relevant files or systems:
114
+ - Transform / material / interaction observations:
115
+ - Shared-risk areas:
116
+
117
+ ## Hypothesis
118
+ - Most likely root cause:
119
+ - Why:
120
+
121
+ ## Verification
122
+ - Original issue re-checked:
123
+ - Nearby regressions re-checked:
124
+ - Residual risk:
125
+ ```
126
+
127
+ ## Failure Modes
128
+
129
+ - **Symptom misattributed to render layer**: a visual bug is treated as a render problem when the cause is data, layout, or asset format. **Mitigation:** always classify the failure layer (scene graph, geometry, materials, camera, interaction, lifecycle) before changing code; the Suggested Process step 2 enforces this.
130
+ - **Shared material or shader edited in isolation**: an edit to a shared material causes regressions in adjacent models. **Mitigation:** run the Shared-Risk Areas check (step 4) and verify neighboring models that reuse the same material; the blast-radius warning is in Core Rules.
131
+ - **GPU memory leak from missing dispose**: a debug fix that adds geometry/material/texture without cleanup leaks GPU memory. **Mitigation:** verify disposal paths in the lifecycle review (step 6); reject changes that add resources without matching `dispose()` calls.
132
+ - **WebGL context loss misattributed to a render bug**: a context loss is treated as a scene issue when the cause is the platform, not the scene. **Mitigation:** check `WEBGL_lose_context` events and platform limits; treat context loss as platform-side until proven otherwise.
133
+ - **R3F DevTools / Spector.js shipped in production**: a debug build accidentally ships with the dev hooks. **Mitigation:** verify the production build excludes Spector.js and R3F DevTools; the Core Rules for these tools call this out explicitly.
134
+
135
+ ## Output Contracts
136
+
137
+ When this skill produces a structured handoff, emit:
138
+
139
+ - **`contracts/schemas/performance-audit.json`** when the debug surfaces a performance or memory bottleneck. The `verdict`, `metrics` (draw call count, GPU memory), and `findings` fields are required.
140
+ - For human-readable handoff, use the 3D Scene Debug Brief template in the existing Output Format block.
141
+
142
+ Skip structured emission when the debug only produces a single fix that does not cross a role boundary.
143
+ ## Security Guardrails (OWASP ASI)
144
+
145
+ - **ASI05 RCE Guard**: do not execute dynamic shader code or WebGPU shader strings sourced from external content without strict schema validation; AI-generated shaders must compile in a sandboxed build before production.
146
+ - **ASI07 Inter-Agent Communication**: the debug brief is consumed by Frontend and 3D roles; do not include any 3D model paths that point outside the operator's own asset domain.
147
+ - **ASI09 Human-Agent Trust Exploitation**: do not present a debug summary as "root cause confirmed" without the actual scene-state evidence; surface unverified hypotheses as `[INFERENCE]`.
148
+ ## Checklist
149
+
150
+ - [ ] exact 3D symptom captured
151
+ - [ ] likely failure layer classified
152
+ - [ ] real scene state inspected
153
+ - [ ] shared-risk areas checked
154
+ - [ ] narrow hypothesis tested
155
+ - [ ] original issue and nearby regressions re-checked
156
+ - [ ] Native WebGPU pipelines and shaders are inspected via Chrome DevTools Shader Editor when using WebGPU.
157
+ - [ ] Spector.js is integrated for dev-mode WebGL frame capture and disabled for production.
158
+ - [ ] R3F DevTools is utilized to monitor scene graph, vertex count, and render calls.
159
+
160
+ ## Related Skills
161
+
162
+ - **optimize-3d-assets**: Improve source assets when geometry or texture quality is the real problem
163
+ - **troubleshoot-service**: Debug non-graphics runtime or integration issues around the scene
164
+ - **frontend-testing**: Add regression checks around interaction-sensitive fixes
165
+ - **review-code**: Review risky transform, shader, or lifecycle changes
166
+ - **navigate-service**: Map the 3D code path before debugging