@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.
- package/INDEX.md +1 -1
- package/README.md +1 -1
- package/VERSION +1 -1
- package/adapters/antigravity/a2a-config.template.yaml +1 -1
- package/adapters/antigravity/role-skill-index.json +1 -1
- package/adapters/claude/CLAUDE_ADAPTER.md +1 -1
- package/adapters/cursor/README.md +185 -185
- package/bin/agent-skills.mjs +17 -14
- package/core/contracts/schemas/api-contract-spec.json +191 -191
- package/core/contracts/schemas/feature-ticket.json +1293 -1293
- package/core/contracts/schemas/pull-request-spec.json +338 -338
- package/core/contracts/schemas/references/detailed/01-solution-and-governance.md +19 -19
- package/core/contracts/schemas/references/detailed/02-engineering-delivery.md +93 -93
- package/core/contracts/schemas/references/detailed/04-finance-accounting-and-compliance.md +54 -54
- package/core/contracts/schemas/references/detailed/05-design-and-content.md +92 -92
- package/core/contracts/schemas/references/detailed/06-seo-and-publishing.md +48 -48
- package/core/contracts/schemas/references/detailed/07-a2a-protocol.md +85 -85
- package/core/contracts/schemas/test-report.json +530 -530
- package/core/roles/references/business-analyst-responsibilities.md +207 -207
- package/core/roles/references/frontend-developer-responsibilities.md +275 -275
- package/core/roles/system-engineer.md +465 -465
- package/core/skills/agent/agent-memory-compaction/references/anchored-schema-and-compaction-algorithms.md +141 -141
- package/core/skills/backend/build-mcp-server/SKILL.md +100 -100
- package/core/skills/backend/implement-structured-outputs/SKILL.md +94 -94
- package/core/skills/business/elicit-requirements/SKILL.md +102 -102
- package/core/skills/business/elicit-requirements/references/elicitation-techniques-and-babok-criteria.md +60 -60
- package/core/skills/business/trace-requirements-impact/SKILL.md +97 -97
- package/core/skills/business/trace-requirements-impact/references/rtm-graph-and-prioritization-models.md +109 -109
- package/core/skills/business/write-use-cases/SKILL.md +106 -106
- package/core/skills/business/write-use-cases/references/cockburn-scoping-and-13-field-template.md +135 -135
- package/core/skills/document/pptx/scripts/add_slide.py +0 -0
- package/core/skills/document/pptx/scripts/clean.py +0 -0
- package/core/skills/document/pptx/scripts/thumbnail.py +0 -0
- package/core/skills/document/xlsx/scripts/recalc.py +0 -0
- package/core/skills/documentation/write-documentation/SKILL.md +143 -143
- package/core/skills/documentation/write-tech-radar/SKILL.md +149 -149
- package/core/skills/foundation/accessibility-review/SKILL.md +160 -160
- package/core/skills/foundation/release-notes/SKILL.md +192 -192
- package/core/skills/foundation/webapp-server-runner/scripts/with_server.py +0 -0
- package/core/skills/foundation/write-product-brief/SKILL.md +160 -160
- package/core/skills/platform/cloudflare-email-service/SKILL.md +166 -166
- package/core/skills/platform/cloudflare-email-service/references/routing.md +199 -199
- package/core/skills/platform/debug-workers-edge/SKILL.md +111 -111
- package/core/skills/platform/sandbox-sdk/SKILL.md +183 -183
- package/core/skills/platform/setup-gpu-finops/SKILL.md +107 -107
- package/core/skills/platform/setup-llm-gateway/SKILL.md +108 -108
- package/core/skills/platform/turnstile-spin/SKILL.md +118 -118
- package/core/skills/platform/turnstile-spin/scripts/auth-probe.sh +0 -0
- package/core/skills/platform/turnstile-spin/scripts/fetch-secret.sh +0 -0
- package/core/skills/platform/turnstile-spin/scripts/persist-skill.sh +0 -0
- package/core/skills/platform/turnstile-spin/scripts/validate.sh +0 -0
- package/core/skills/platform/turnstile-spin/scripts/widget-create.sh +0 -0
- package/core/skills/platform/turnstile-spin/scripts/worker-deploy.sh +0 -0
- package/core/skills/platform/turnstile-spin/templates/worker/src/index.ts +199 -199
- package/core/skills/platform/turnstile-spin/templates/worker/wrangler.toml +31 -31
- package/core/skills/platform/web-perf/SKILL.md +151 -151
- package/core/skills/platform/workers-best-practices/references/rules.md +463 -463
- package/core/skills/product/build-story-map/SKILL.md +104 -104
- package/core/skills/product/build-story-map/references/story-mapping-and-cpm-scheduling.md +101 -101
- package/core/skills/product/define-product-strategy/SKILL.md +105 -105
- package/core/skills/product/define-product-strategy/references/strategy-frameworks-and-pr-faq.md +142 -142
- package/core/skills/product/model-saas-metrics/SKILL.md +104 -104
- package/core/skills/product/model-saas-metrics/references/saas-unit-economics-and-pricing.md +110 -110
- package/core/skills/product/prioritize-roadmap/SKILL.md +106 -106
- package/core/skills/product/prioritize-roadmap/references/prioritization-scoring-and-kill-criteria.md +105 -105
- package/core/skills/repo-ops/commit-code/SKILL.md +190 -190
- package/core/skills/repo-ops/commit-code/references/multi-repo-and-deployment.md +21 -21
- package/core/skills/repo-ops/navigate-service/SKILL.md +199 -199
- package/core/skills/repo-ops/review-code/references/process-and-format.md +100 -100
- package/core/skills/repo-ops/review-service/SKILL.md +186 -186
- package/core/skills/repo-ops/troubleshoot-service/SKILL.md +127 -127
- package/core/skills/repo-ops/troubleshoot-service/references/failure-modes-and-security.md +22 -22
- package/core/skills/repo-ops/troubleshoot-service/references/suggested-process.md +110 -110
- package/core/skills/security-data/security-audit/SKILL.md +119 -119
- package/core/workflows/add-new-feature.md +212 -212
- package/core/workflows/agent-a2a-delegation.md +142 -142
- package/core/workflows/bug-fix.md +147 -147
- package/core/workflows/build-deploy.md +208 -208
- package/core/workflows/code-review.md +137 -137
- package/core/workflows/dependency-upgrade.md +193 -193
- package/core/workflows/feature-delivery.md +149 -149
- package/core/workflows/hotfix-production.md +172 -172
- package/core/workflows/qa-validation.md +231 -231
- package/core/workflows/refactoring.md +154 -154
- package/core/workflows/revert-deployment.md +147 -147
- package/core/workflows/security-incident-response.md +191 -191
- package/core/workflows/seo-content-lifecycle.md +91 -91
- package/core/workflows/service-review-release.md +223 -223
- package/core/workflows/setup-new-service.md +214 -214
- package/core/workflows/tech-repo-review.md +245 -245
- package/core/workflows/troubleshooting.md +241 -241
- package/overlays/astro-cloudflare/README.md +93 -93
- package/overlays/data-analyst-stack/README.md +109 -109
- package/overlays/data-analyst-stack/rules/metric-dashboard-templates.md +135 -135
- package/overlays/data-analyst-stack/rules/stack-conventions.md +80 -80
- package/overlays/ecommerce-microservices/README.md +65 -65
- package/overlays/go-microservices/README.md +78 -78
- package/overlays/go-microservices/rules/go-conventions.md +223 -223
- package/overlays/laravel-filament/README.md +90 -90
- package/overlays/laravel-filament/rules/laravel-conventions.md +220 -220
- package/overlays/laravel-filament/skills/develop-laravel-feature/SKILL.md +141 -141
- package/overlays/laravel-filament/workflows/deploy-laravel.md +133 -133
- package/overlays/obj-configurator/rules/obj-project-rules.md +111 -111
- package/overlays/obj-configurator/skills/develop-obj-feature/SKILL.md +71 -71
- package/overlays/r3f-stack/README.md +89 -89
- package/overlays/r3f-stack/rules/stub.md +43 -43
- package/overlays/r3f-stack/skills/debug-3d-scene/SKILL.md +166 -166
- package/overlays/r3f-stack/skills/integrate-r3f-three-legacy/SKILL.md +159 -159
- package/overlays/r3f-stack/skills/optimize-3d-assets/SKILL.md +128 -128
- package/overlays/seo-publishing/rules/site-mix-and-cannibalization.md +52 -52
- package/overlays/ui-design-system/rules/handoff-conventions.md +73 -73
- package/package.json +2 -2
- package/core/README.md +0 -53
|
@@ -1,111 +1,111 @@
|
|
|
1
|
-
# OBJ 3D Configurator — Project Rules
|
|
2
|
-
|
|
3
|
-
Project-specific conventions for the 3D Product Configurator.
|
|
4
|
-
|
|
5
|
-
## Architecture
|
|
6
|
-
|
|
7
|
-
```
|
|
8
|
-
src/
|
|
9
|
-
├── components/ ← Astro host + React entry (ConfiguratorApp.tsx, ProductSelector.tsx)
|
|
10
|
-
├── design-hub/ ← Legacy 3D engine (being migrated to R3F)
|
|
11
|
-
│ ├── App.jsx ← Main React app shell
|
|
12
|
-
│ ├── engine/ ← Three.js scene, loaders, renderers
|
|
13
|
-
│ ├── components/ ← UI panels (toolbar, color picker, text editor)
|
|
14
|
-
│ ├── redux-tool/ ← Redux Toolkit slices (product, decal, text, camera)
|
|
15
|
-
│ ├── store/ ← Zustand stores (migrating from Redux)
|
|
16
|
-
│ ├── hooks/ ← Custom React hooks
|
|
17
|
-
│ ├── common/ ← Shared utilities
|
|
18
|
-
│ └── constants/ ← Configuration constants
|
|
19
|
-
├── layouts/ ← Astro page layouts
|
|
20
|
-
├── lib/ ← Shared TypeScript utilities
|
|
21
|
-
└── pages/ ← Astro routing
|
|
22
|
-
```
|
|
23
|
-
|
|
24
|
-
## 3D Engine Rules (Three.js r171+ / R3F v9)
|
|
25
|
-
|
|
26
|
-
- GLB format for all 3D models — no legacy OBJ/MTL in new work.
|
|
27
|
-
- Materials must use sRGB color space for consistency.
|
|
28
|
-
- Sprite-based preview during drag operations — never recalculate DecalGeometry per frame.
|
|
29
|
-
- Dispose Three.js resources (geometries, materials, textures) on component unmount.
|
|
30
|
-
- Cap canvas resolution with `devicePixelRatio` max of 2 on mobile.
|
|
31
|
-
|
|
32
|
-
### R3F v9 Breaking Change
|
|
33
|
-
```jsx
|
|
34
|
-
// ❌ v8 (old)
|
|
35
|
-
const { gl } = useThree() // WebGLRenderer
|
|
36
|
-
|
|
37
|
-
// ✅ v9 (current)
|
|
38
|
-
const { renderer } = useThree() // unified WebGL/WebGPU renderer
|
|
39
|
-
```
|
|
40
|
-
|
|
41
|
-
### WebGPU Adoption (2026)
|
|
42
|
-
```jsx
|
|
43
|
-
import { WebGPURenderer } from 'three/webgpu'
|
|
44
|
-
|
|
45
|
-
// Zero-config upgrade with automatic WebGL 2 fallback
|
|
46
|
-
<Canvas gl={(canvas) => new WebGPURenderer({ canvas, antialias: true })}>
|
|
47
|
-
```
|
|
48
|
-
|
|
49
|
-
For new 3D work in this project, prefer `WebGPURenderer` with built-in WebGL 2 fallback.
|
|
50
|
-
|
|
51
|
-
## State Management
|
|
52
|
-
|
|
53
|
-
- **Redux Toolkit** for product configuration state (slices in `src/design-hub/redux-tool/`).
|
|
54
|
-
- **Zustand** for new features — gradual migration from Redux.
|
|
55
|
-
- Debounce continuous transforms (scale/rotate) to 100ms before dispatching to store.
|
|
56
|
-
- Never mutate Three.js objects directly from React render — use `useFrame` or refs.
|
|
57
|
-
- High-frequency physics updates: sync via `useFrame` + refs, NOT React state.
|
|
58
|
-
|
|
59
|
-
## Database (Prisma + SQLite)
|
|
60
|
-
|
|
61
|
-
- Schema in `prisma/schema.prisma`.
|
|
62
|
-
- Local dev DB at `prisma/dev.db`.
|
|
63
|
-
- Migrations in `prisma/migrations/`.
|
|
64
|
-
- Express.js API (`server.js`) for design CRUD during local dev.
|
|
65
|
-
|
|
66
|
-
## Performance
|
|
67
|
-
|
|
68
|
-
- Memoize React sub-components (`React.memo`) to prevent re-renders during 3D interaction.
|
|
69
|
-
- Use `Suspense` boundaries for lazy-loaded 3D assets.
|
|
70
|
-
- Target 60fps during interaction — profile with Chrome DevTools Performance panel.
|
|
71
|
-
- Use **Spector.js** in development to capture/replay WebGL draw calls (disable in production).
|
|
72
|
-
- Use **Chrome DevTools Shader Editor** (Chrome 124+) for WebGPU pipeline inspection.
|
|
73
|
-
|
|
74
|
-
## Build & Deploy
|
|
75
|
-
|
|
76
|
-
- `npm run dev` — concurrent Astro frontend + Express backend.
|
|
77
|
-
- `npm run build` — Astro build only (backend not bundled).
|
|
78
|
-
- `npm run deploy` — build + Wrangler Workers deploy.
|
|
79
|
-
|
|
80
|
-
## Standard 2026 Alignment
|
|
81
|
-
|
|
82
|
-
This overlay rule file is part of the agent-skills engineering pack. The 2026
|
|
83
|
-
upgrade pass added the following Standard 2026 alignment footer to every
|
|
84
|
-
overlay rule file in the pack.
|
|
85
|
-
|
|
86
|
-
- **OWASP ASI**: applied as described in the core pack — see
|
|
87
|
-
`core/roles/role-standard.md` (ASI01-ASI10) and the per-skill
|
|
88
|
-
`## Security Guardrails (OWASP ASI)` section in each skill. The rules in this
|
|
89
|
-
file are applied by the role that owns the affected action; the runtime
|
|
90
|
-
gate is `core/scripts/hooks/check-policy.py` with
|
|
91
|
-
`core/policies/action-boundaries.yaml`.
|
|
92
|
-
- **Failure Modes** (overlay-specific): the rules in this file can be violated
|
|
93
|
-
by drift, missing context, or untracked exceptions. The owning role is
|
|
94
|
-
expected to surface concrete failure scenarios in the workflow's
|
|
95
|
-
`### Failure Modes` section and to capture remediations via
|
|
96
|
-
`contracts/schemas/incident-report.json` when the rule is bypassed.
|
|
97
|
-
- **Output Contracts**: when a rule in this file produces a structured
|
|
98
|
-
artifact (brief, plan, config, content handoff, audit event), the artifact
|
|
99
|
-
must conform to the corresponding schema in `core/contracts/schemas/`.
|
|
100
|
-
See `See `core/skills/agent/integrate-webmcp/SKILL.md` and the `implementation-result.json` schema.` for the related skill output contract reference.
|
|
101
|
-
- **Skill Toolbox Lock**: a rule in this file is enforced by the role whose
|
|
102
|
-
Skill Toolbox lists the related skill as Primary. Roles that hold the
|
|
103
|
-
skill as Supporting must delegate rather than execute directly (per
|
|
104
|
-
`core/workflows/README.md`).
|
|
105
|
-
- **Commit / publish gate**: rule changes that affect user-visible behavior
|
|
106
|
-
must follow the META-RULE in `core/rules/code.md` — no commit, no push,
|
|
107
|
-
no publish without explicit user confirmation.
|
|
108
|
-
|
|
109
|
-
See `core/skills/agent/integrate-webmcp/SKILL.md` and the `implementation-result.json` schema.
|
|
110
|
-
|
|
111
|
-
Last updated: 2026-09-01
|
|
1
|
+
# OBJ 3D Configurator — Project Rules
|
|
2
|
+
|
|
3
|
+
Project-specific conventions for the 3D Product Configurator.
|
|
4
|
+
|
|
5
|
+
## Architecture
|
|
6
|
+
|
|
7
|
+
```
|
|
8
|
+
src/
|
|
9
|
+
├── components/ ← Astro host + React entry (ConfiguratorApp.tsx, ProductSelector.tsx)
|
|
10
|
+
├── design-hub/ ← Legacy 3D engine (being migrated to R3F)
|
|
11
|
+
│ ├── App.jsx ← Main React app shell
|
|
12
|
+
│ ├── engine/ ← Three.js scene, loaders, renderers
|
|
13
|
+
│ ├── components/ ← UI panels (toolbar, color picker, text editor)
|
|
14
|
+
│ ├── redux-tool/ ← Redux Toolkit slices (product, decal, text, camera)
|
|
15
|
+
│ ├── store/ ← Zustand stores (migrating from Redux)
|
|
16
|
+
│ ├── hooks/ ← Custom React hooks
|
|
17
|
+
│ ├── common/ ← Shared utilities
|
|
18
|
+
│ └── constants/ ← Configuration constants
|
|
19
|
+
├── layouts/ ← Astro page layouts
|
|
20
|
+
├── lib/ ← Shared TypeScript utilities
|
|
21
|
+
└── pages/ ← Astro routing
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
## 3D Engine Rules (Three.js r171+ / R3F v9)
|
|
25
|
+
|
|
26
|
+
- GLB format for all 3D models — no legacy OBJ/MTL in new work.
|
|
27
|
+
- Materials must use sRGB color space for consistency.
|
|
28
|
+
- Sprite-based preview during drag operations — never recalculate DecalGeometry per frame.
|
|
29
|
+
- Dispose Three.js resources (geometries, materials, textures) on component unmount.
|
|
30
|
+
- Cap canvas resolution with `devicePixelRatio` max of 2 on mobile.
|
|
31
|
+
|
|
32
|
+
### R3F v9 Breaking Change
|
|
33
|
+
```jsx
|
|
34
|
+
// ❌ v8 (old)
|
|
35
|
+
const { gl } = useThree() // WebGLRenderer
|
|
36
|
+
|
|
37
|
+
// ✅ v9 (current)
|
|
38
|
+
const { renderer } = useThree() // unified WebGL/WebGPU renderer
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
### WebGPU Adoption (2026)
|
|
42
|
+
```jsx
|
|
43
|
+
import { WebGPURenderer } from 'three/webgpu'
|
|
44
|
+
|
|
45
|
+
// Zero-config upgrade with automatic WebGL 2 fallback
|
|
46
|
+
<Canvas gl={(canvas) => new WebGPURenderer({ canvas, antialias: true })}>
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
For new 3D work in this project, prefer `WebGPURenderer` with built-in WebGL 2 fallback.
|
|
50
|
+
|
|
51
|
+
## State Management
|
|
52
|
+
|
|
53
|
+
- **Redux Toolkit** for product configuration state (slices in `src/design-hub/redux-tool/`).
|
|
54
|
+
- **Zustand** for new features — gradual migration from Redux.
|
|
55
|
+
- Debounce continuous transforms (scale/rotate) to 100ms before dispatching to store.
|
|
56
|
+
- Never mutate Three.js objects directly from React render — use `useFrame` or refs.
|
|
57
|
+
- High-frequency physics updates: sync via `useFrame` + refs, NOT React state.
|
|
58
|
+
|
|
59
|
+
## Database (Prisma + SQLite)
|
|
60
|
+
|
|
61
|
+
- Schema in `prisma/schema.prisma`.
|
|
62
|
+
- Local dev DB at `prisma/dev.db`.
|
|
63
|
+
- Migrations in `prisma/migrations/`.
|
|
64
|
+
- Express.js API (`server.js`) for design CRUD during local dev.
|
|
65
|
+
|
|
66
|
+
## Performance
|
|
67
|
+
|
|
68
|
+
- Memoize React sub-components (`React.memo`) to prevent re-renders during 3D interaction.
|
|
69
|
+
- Use `Suspense` boundaries for lazy-loaded 3D assets.
|
|
70
|
+
- Target 60fps during interaction — profile with Chrome DevTools Performance panel.
|
|
71
|
+
- Use **Spector.js** in development to capture/replay WebGL draw calls (disable in production).
|
|
72
|
+
- Use **Chrome DevTools Shader Editor** (Chrome 124+) for WebGPU pipeline inspection.
|
|
73
|
+
|
|
74
|
+
## Build & Deploy
|
|
75
|
+
|
|
76
|
+
- `npm run dev` — concurrent Astro frontend + Express backend.
|
|
77
|
+
- `npm run build` — Astro build only (backend not bundled).
|
|
78
|
+
- `npm run deploy` — build + Wrangler Workers deploy.
|
|
79
|
+
|
|
80
|
+
## Standard 2026 Alignment
|
|
81
|
+
|
|
82
|
+
This overlay rule file is part of the agent-skills engineering pack. The 2026
|
|
83
|
+
upgrade pass added the following Standard 2026 alignment footer to every
|
|
84
|
+
overlay rule file in the pack.
|
|
85
|
+
|
|
86
|
+
- **OWASP ASI**: applied as described in the core pack — see
|
|
87
|
+
`core/roles/role-standard.md` (ASI01-ASI10) and the per-skill
|
|
88
|
+
`## Security Guardrails (OWASP ASI)` section in each skill. The rules in this
|
|
89
|
+
file are applied by the role that owns the affected action; the runtime
|
|
90
|
+
gate is `core/scripts/hooks/check-policy.py` with
|
|
91
|
+
`core/policies/action-boundaries.yaml`.
|
|
92
|
+
- **Failure Modes** (overlay-specific): the rules in this file can be violated
|
|
93
|
+
by drift, missing context, or untracked exceptions. The owning role is
|
|
94
|
+
expected to surface concrete failure scenarios in the workflow's
|
|
95
|
+
`### Failure Modes` section and to capture remediations via
|
|
96
|
+
`contracts/schemas/incident-report.json` when the rule is bypassed.
|
|
97
|
+
- **Output Contracts**: when a rule in this file produces a structured
|
|
98
|
+
artifact (brief, plan, config, content handoff, audit event), the artifact
|
|
99
|
+
must conform to the corresponding schema in `core/contracts/schemas/`.
|
|
100
|
+
See `See `core/skills/agent/integrate-webmcp/SKILL.md` and the `implementation-result.json` schema.` for the related skill output contract reference.
|
|
101
|
+
- **Skill Toolbox Lock**: a rule in this file is enforced by the role whose
|
|
102
|
+
Skill Toolbox lists the related skill as Primary. Roles that hold the
|
|
103
|
+
skill as Supporting must delegate rather than execute directly (per
|
|
104
|
+
`core/workflows/README.md`).
|
|
105
|
+
- **Commit / publish gate**: rule changes that affect user-visible behavior
|
|
106
|
+
must follow the META-RULE in `core/rules/code.md` — no commit, no push,
|
|
107
|
+
no publish without explicit user confirmation.
|
|
108
|
+
|
|
109
|
+
See `core/skills/agent/integrate-webmcp/SKILL.md` and the `implementation-result.json` schema.
|
|
110
|
+
|
|
111
|
+
Last updated: 2026-09-01
|
|
@@ -1,71 +1,71 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: develop-obj-feature
|
|
3
|
-
description: Develop features for the OBJ 3D Product Configurator — an Astro + React Three Fiber app with Three.js engine, Redux/Zustand state, and Prisma backend. Use when modifying 3D scenes, decals, UI panels, or design persistence.
|
|
4
|
-
allowed-tools: [read_file, write_file, edit_file, create_file, search_code, run_build, run_dev_server, run_tests]
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
# Develop OBJ Feature
|
|
8
|
-
|
|
9
|
-
Use this skill when building or modifying features in the OBJ 3D Product Configurator.
|
|
10
|
-
|
|
11
|
-
**Prerequisites:** Read `overlays/astro-cloudflare/rules/astro-cloudflare-conventions.md` for generic Astro patterns.
|
|
12
|
-
|
|
13
|
-
## Core Rules
|
|
14
|
-
|
|
15
|
-
- Follow all rules from `overlays/astro-cloudflare/rules/astro-cloudflare-conventions.md`
|
|
16
|
-
- Follow all rules from `overlays/obj-configurator/rules/obj-project-rules.md`
|
|
17
|
-
- GLB format only for 3D models — no OBJ/MTL in new work
|
|
18
|
-
- Sprite-based preview during drag — never recalculate DecalGeometry per frame
|
|
19
|
-
- Memoize React components to prevent re-renders during 3D interaction
|
|
20
|
-
- Dispose Three.js resources on unmount (geometries, materials, textures)
|
|
21
|
-
- Debounce continuous transforms to 100ms before dispatching to Redux/Zustand
|
|
22
|
-
|
|
23
|
-
## Suggested Process
|
|
24
|
-
|
|
25
|
-
### 1. Identify layer — 3D engine, UI panel, state slice, Prisma schema, or Astro page
|
|
26
|
-
### 2. Read existing code in `src/design-hub/` for the relevant subsystem
|
|
27
|
-
### 3. Implement following engine rules and performance constraints
|
|
28
|
-
### 4. Test at 60fps — profile with Chrome DevTools if needed
|
|
29
|
-
### 5. Run `npm run check` before commit
|
|
30
|
-
|
|
31
|
-
## Failure Modes
|
|
32
|
-
|
|
33
|
-
- **Format regression to OBJ/MTL**: a 3D model is added in OBJ/MTL instead of the mandated GLB. **Mitigation:** the Core Rules forbid OBJ/MTL in new work; reject the change at code review.
|
|
34
|
-
- **DecalGeometry recomputed per frame**: a drag operation recalculates the decal geometry every frame. **Mitigation:** the Core Rules require sprite-based preview during drag; reject the change and refactor to a sprite.
|
|
35
|
-
- **Missing dispose on unmount**: a 3D component leaves geometries, materials, or textures in memory. **Mitigation:** the Core Rules require dispose on unmount; verify every effect that allocates 3D resources has a matching cleanup.
|
|
36
|
-
- **Continuous transform flood**: a drag dispatches to Redux/Zustand on every frame. **Mitigation:** the Core Rules require 100ms debounce; reject un-debounced transforms.
|
|
37
|
-
- **DPR uncapped on mobile**: a 3D canvas runs at native DPR on mobile, tanking performance. **Mitigation:** the Core Rules require DPR ≤ 2 on mobile; reject the change.
|
|
38
|
-
|
|
39
|
-
## Output Contracts
|
|
40
|
-
|
|
41
|
-
When this skill produces a structured handoff, emit:
|
|
42
|
-
|
|
43
|
-
- **`contracts/schemas/implementation-result.json`** — Required fields: `change_summary`, `files_touched[]`, and `validation_run` output proving the build and test pipeline passes.
|
|
44
|
-
- For the 3D subsystem changes, also emit **`contracts/schemas/performance-audit.json`** when frame rate or memory budget is touched.
|
|
45
|
-
|
|
46
|
-
Skip structured emission for trivial edits that do not cross a role boundary.
|
|
47
|
-
## Security Guardrails (OWASP ASI)
|
|
48
|
-
|
|
49
|
-
- **ASI03 Identity & Privilege Abuse**: Prisma schema changes must be reviewed for row-level access; the OBJ configurator stores user designs and must not expose other users' rows.
|
|
50
|
-
- **ASI04 Supply Chain**: every Three.js, R3F, and Astro dependency must be schema-validated against the expected manifest; treat unknown versions as untrusted.
|
|
51
|
-
- **ASI05 RCE Guard**: do not construct GLB/MTL loader configs from external or user-supplied content without strict schema validation.
|
|
52
|
-
- **ASI07 Inter-Agent Communication**: the implementation result is consumed by 3D Engineer, Frontend, and Backend roles; emit a structured contract so each role can validate.
|
|
53
|
-
- **ASI09 Human-Agent Trust Exploitation**: do not present a 3D feature as "performance-validated" without the actual FPS evidence; surface the unverified checks.
|
|
54
|
-
## Checklist
|
|
55
|
-
|
|
56
|
-
- [ ] GLB format used for all new 3D models
|
|
57
|
-
- [ ] Three.js resources properly disposed on unmount
|
|
58
|
-
- [ ] React components memoized where appropriate
|
|
59
|
-
- [ ] Continuous transforms debounced before store dispatch
|
|
60
|
-
- [ ] Sprite-based preview used during drag operations
|
|
61
|
-
- [ ] Canvas DPR capped at 2 on mobile
|
|
62
|
-
- [ ] Prisma schema changes include migration
|
|
63
|
-
- [ ] `npm run check` passes
|
|
64
|
-
|
|
65
|
-
## Related Skills
|
|
66
|
-
|
|
67
|
-
- **debug-3d-scene**: debug Three.js rendering and material issues
|
|
68
|
-
- **optimize-3d-assets**: optimize models and textures for performance
|
|
69
|
-
- **integrate-r3f-three-legacy**: bridge R3F and legacy Three.js code
|
|
70
|
-
- **review-code**: review against project conventions
|
|
71
|
-
- **commit-code**: commit with proper conventions
|
|
1
|
+
---
|
|
2
|
+
name: develop-obj-feature
|
|
3
|
+
description: Develop features for the OBJ 3D Product Configurator — an Astro + React Three Fiber app with Three.js engine, Redux/Zustand state, and Prisma backend. Use when modifying 3D scenes, decals, UI panels, or design persistence.
|
|
4
|
+
allowed-tools: [read_file, write_file, edit_file, create_file, search_code, run_build, run_dev_server, run_tests]
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Develop OBJ Feature
|
|
8
|
+
|
|
9
|
+
Use this skill when building or modifying features in the OBJ 3D Product Configurator.
|
|
10
|
+
|
|
11
|
+
**Prerequisites:** Read `overlays/astro-cloudflare/rules/astro-cloudflare-conventions.md` for generic Astro patterns.
|
|
12
|
+
|
|
13
|
+
## Core Rules
|
|
14
|
+
|
|
15
|
+
- Follow all rules from `overlays/astro-cloudflare/rules/astro-cloudflare-conventions.md`
|
|
16
|
+
- Follow all rules from `overlays/obj-configurator/rules/obj-project-rules.md`
|
|
17
|
+
- GLB format only for 3D models — no OBJ/MTL in new work
|
|
18
|
+
- Sprite-based preview during drag — never recalculate DecalGeometry per frame
|
|
19
|
+
- Memoize React components to prevent re-renders during 3D interaction
|
|
20
|
+
- Dispose Three.js resources on unmount (geometries, materials, textures)
|
|
21
|
+
- Debounce continuous transforms to 100ms before dispatching to Redux/Zustand
|
|
22
|
+
|
|
23
|
+
## Suggested Process
|
|
24
|
+
|
|
25
|
+
### 1. Identify layer — 3D engine, UI panel, state slice, Prisma schema, or Astro page
|
|
26
|
+
### 2. Read existing code in `src/design-hub/` for the relevant subsystem
|
|
27
|
+
### 3. Implement following engine rules and performance constraints
|
|
28
|
+
### 4. Test at 60fps — profile with Chrome DevTools if needed
|
|
29
|
+
### 5. Run `npm run check` before commit
|
|
30
|
+
|
|
31
|
+
## Failure Modes
|
|
32
|
+
|
|
33
|
+
- **Format regression to OBJ/MTL**: a 3D model is added in OBJ/MTL instead of the mandated GLB. **Mitigation:** the Core Rules forbid OBJ/MTL in new work; reject the change at code review.
|
|
34
|
+
- **DecalGeometry recomputed per frame**: a drag operation recalculates the decal geometry every frame. **Mitigation:** the Core Rules require sprite-based preview during drag; reject the change and refactor to a sprite.
|
|
35
|
+
- **Missing dispose on unmount**: a 3D component leaves geometries, materials, or textures in memory. **Mitigation:** the Core Rules require dispose on unmount; verify every effect that allocates 3D resources has a matching cleanup.
|
|
36
|
+
- **Continuous transform flood**: a drag dispatches to Redux/Zustand on every frame. **Mitigation:** the Core Rules require 100ms debounce; reject un-debounced transforms.
|
|
37
|
+
- **DPR uncapped on mobile**: a 3D canvas runs at native DPR on mobile, tanking performance. **Mitigation:** the Core Rules require DPR ≤ 2 on mobile; reject the change.
|
|
38
|
+
|
|
39
|
+
## Output Contracts
|
|
40
|
+
|
|
41
|
+
When this skill produces a structured handoff, emit:
|
|
42
|
+
|
|
43
|
+
- **`contracts/schemas/implementation-result.json`** — Required fields: `change_summary`, `files_touched[]`, and `validation_run` output proving the build and test pipeline passes.
|
|
44
|
+
- For the 3D subsystem changes, also emit **`contracts/schemas/performance-audit.json`** when frame rate or memory budget is touched.
|
|
45
|
+
|
|
46
|
+
Skip structured emission for trivial edits that do not cross a role boundary.
|
|
47
|
+
## Security Guardrails (OWASP ASI)
|
|
48
|
+
|
|
49
|
+
- **ASI03 Identity & Privilege Abuse**: Prisma schema changes must be reviewed for row-level access; the OBJ configurator stores user designs and must not expose other users' rows.
|
|
50
|
+
- **ASI04 Supply Chain**: every Three.js, R3F, and Astro dependency must be schema-validated against the expected manifest; treat unknown versions as untrusted.
|
|
51
|
+
- **ASI05 RCE Guard**: do not construct GLB/MTL loader configs from external or user-supplied content without strict schema validation.
|
|
52
|
+
- **ASI07 Inter-Agent Communication**: the implementation result is consumed by 3D Engineer, Frontend, and Backend roles; emit a structured contract so each role can validate.
|
|
53
|
+
- **ASI09 Human-Agent Trust Exploitation**: do not present a 3D feature as "performance-validated" without the actual FPS evidence; surface the unverified checks.
|
|
54
|
+
## Checklist
|
|
55
|
+
|
|
56
|
+
- [ ] GLB format used for all new 3D models
|
|
57
|
+
- [ ] Three.js resources properly disposed on unmount
|
|
58
|
+
- [ ] React components memoized where appropriate
|
|
59
|
+
- [ ] Continuous transforms debounced before store dispatch
|
|
60
|
+
- [ ] Sprite-based preview used during drag operations
|
|
61
|
+
- [ ] Canvas DPR capped at 2 on mobile
|
|
62
|
+
- [ ] Prisma schema changes include migration
|
|
63
|
+
- [ ] `npm run check` passes
|
|
64
|
+
|
|
65
|
+
## Related Skills
|
|
66
|
+
|
|
67
|
+
- **debug-3d-scene**: debug Three.js rendering and material issues
|
|
68
|
+
- **optimize-3d-assets**: optimize models and textures for performance
|
|
69
|
+
- **integrate-r3f-three-legacy**: bridge R3F and legacy Three.js code
|
|
70
|
+
- **review-code**: review against project conventions
|
|
71
|
+
- **commit-code**: commit with proper conventions
|
|
@@ -1,89 +1,89 @@
|
|
|
1
|
-
# R3F Stack Overlay
|
|
2
|
-
|
|
3
|
-
React Three Fiber / Three.js / WebGL+WebGPU skill cluster. Provides 3D rendering skills for projects using the R3F ecosystem.
|
|
4
|
-
|
|
5
|
-
## Tech Stack (2026)
|
|
6
|
-
|
|
7
|
-
- **Three.js**: r171+ — `WebGPURenderer` production-ready with automatic WebGL 2 fallback
|
|
8
|
-
- **React Three Fiber**: **v9** — React 19 compatible; `state.gl` → `state.renderer`
|
|
9
|
-
- **@react-three/drei**: **v10** (v11 alpha) — `OrbitControls`, `Environment`, `useGLTF`, `useTexture` stable
|
|
10
|
-
- **WebGPU**: ✅ **Production-ready** — all major browsers (Chrome, Edge, Firefox, Safari)
|
|
11
|
-
- **TSL (Three Shader Language)**: Write shaders once → compiles to WGSL (WebGPU) + GLSL (WebGL)
|
|
12
|
-
- **Physics**: `@react-three/rapier v2` — R3F v9 + React 19 compatible
|
|
13
|
-
- **Postprocessing**: `@react-three/postprocessing` — TSL-based effects for WebGPU
|
|
14
|
-
|
|
15
|
-
## 2026: WebGPU Adoption Strategy
|
|
16
|
-
|
|
17
|
-
```jsx
|
|
18
|
-
// ✅ Zero-config WebGPU with automatic WebGL 2 fallback
|
|
19
|
-
import { Canvas } from '@react-three/fiber'
|
|
20
|
-
import { WebGPURenderer } from 'three/webgpu'
|
|
21
|
-
|
|
22
|
-
<Canvas
|
|
23
|
-
gl={(canvas) => new WebGPURenderer({ canvas, antialias: true })}
|
|
24
|
-
>
|
|
25
|
-
{/* Scene renders via WebGPU where available, WebGL 2 elsewhere */}
|
|
26
|
-
</Canvas>
|
|
27
|
-
```
|
|
28
|
-
|
|
29
|
-
Deploy WebGPU for all new projects — the built-in fallback ensures production safety across all browsers.
|
|
30
|
-
|
|
31
|
-
## R3F v9 Breaking Change
|
|
32
|
-
|
|
33
|
-
```jsx
|
|
34
|
-
// ❌ v8 pattern
|
|
35
|
-
const { gl } = useThree() // WebGLRenderer
|
|
36
|
-
|
|
37
|
-
// ✅ v9 pattern
|
|
38
|
-
const { renderer } = useThree() // unified WebGL/WebGPU renderer
|
|
39
|
-
```
|
|
40
|
-
|
|
41
|
-
## TSL Shader Language (Three.js r171+)
|
|
42
|
-
|
|
43
|
-
```js
|
|
44
|
-
import { positionLocal, vec4, sin, time } from 'three/tsl'
|
|
45
|
-
|
|
46
|
-
// Write once → WGSL (WebGPU) + GLSL (WebGL) compilation
|
|
47
|
-
const material = new MeshStandardNodeMaterial()
|
|
48
|
-
material.colorNode = vec4(sin(positionLocal.x.add(time)), 0.5, 0.8, 1.0)
|
|
49
|
-
```
|
|
50
|
-
|
|
51
|
-
## Skills
|
|
52
|
-
|
|
53
|
-
- `debug-3d-scene` — debug R3F/Three.js scene graph, rendering, WebGPU pipelines, Spector.js
|
|
54
|
-
- `integrate-r3f-three-legacy` — integrate legacy Three.js code with R3F idioms
|
|
55
|
-
- `optimize-3d-assets` — compress, decimate, and bundle 3D models for web delivery
|
|
56
|
-
|
|
57
|
-
## Consumers
|
|
58
|
-
|
|
59
|
-
- `core/roles/3d-graphics-engineer.md` — sole Primary owner of these skills
|
|
60
|
-
- `overlays/obj-configurator/` — Astro + R3F/Three.js product configurator
|
|
61
|
-
- Any future R3F/Three.js project overlay should declare `r3f-stack` as a stack dependency
|
|
62
|
-
|
|
63
|
-
## Migration History
|
|
64
|
-
|
|
65
|
-
- **v4.0.0**: Skills moved from `core/skills/frontend/<name>/` to `overlays/r3f-stack/skills/<name>/`.
|
|
66
|
-
Core frontend taxonomy reduced from 8 to 5 skills.
|
|
67
|
-
3d-graphics-engineer role toolbox paths now resolve via overlay.
|
|
68
|
-
|
|
69
|
-
## Standard 2026 Alignment
|
|
70
|
-
|
|
71
|
-
This file is part of the agent-skills engineering pack. The 2026 upgrade
|
|
72
|
-
pass added this footer so every prose file in the pack carries a
|
|
73
|
-
consistent Standard 2026 pointer.
|
|
74
|
-
|
|
75
|
-
- **OWASP ASI**: applied as described in `core/roles/role-standard.md`
|
|
76
|
-
(ASI01-ASI10) and the per-skill `## Security Guardrails (OWASP ASI)` sections.
|
|
77
|
-
- **Failure Modes**: the rule in this file can be violated by drift, missing
|
|
78
|
-
context, or untracked exceptions. Concrete failure scenarios belong in the
|
|
79
|
-
related skill or workflow's `### Failure Modes` section.
|
|
80
|
-
- **Output Contracts**: structured artifacts produced under this file must
|
|
81
|
-
conform to schemas in `core/contracts/schemas/`.
|
|
82
|
-
- **Skill Toolbox Lock**: this file's rules are enforced by the role that
|
|
83
|
-
owns the affected action; the runtime gate is
|
|
84
|
-
`core/scripts/hooks/check-policy.py`.
|
|
85
|
-
- **Commit / publish gate**: changes that affect user-visible behavior
|
|
86
|
-
follow the META-RULE in `core/rules/code.md` — no commit, no push, no
|
|
87
|
-
publish without explicit user confirmation.
|
|
88
|
-
|
|
89
|
-
Last updated: 2026-09-01
|
|
1
|
+
# R3F Stack Overlay
|
|
2
|
+
|
|
3
|
+
React Three Fiber / Three.js / WebGL+WebGPU skill cluster. Provides 3D rendering skills for projects using the R3F ecosystem.
|
|
4
|
+
|
|
5
|
+
## Tech Stack (2026)
|
|
6
|
+
|
|
7
|
+
- **Three.js**: r171+ — `WebGPURenderer` production-ready with automatic WebGL 2 fallback
|
|
8
|
+
- **React Three Fiber**: **v9** — React 19 compatible; `state.gl` → `state.renderer`
|
|
9
|
+
- **@react-three/drei**: **v10** (v11 alpha) — `OrbitControls`, `Environment`, `useGLTF`, `useTexture` stable
|
|
10
|
+
- **WebGPU**: ✅ **Production-ready** — all major browsers (Chrome, Edge, Firefox, Safari)
|
|
11
|
+
- **TSL (Three Shader Language)**: Write shaders once → compiles to WGSL (WebGPU) + GLSL (WebGL)
|
|
12
|
+
- **Physics**: `@react-three/rapier v2` — R3F v9 + React 19 compatible
|
|
13
|
+
- **Postprocessing**: `@react-three/postprocessing` — TSL-based effects for WebGPU
|
|
14
|
+
|
|
15
|
+
## 2026: WebGPU Adoption Strategy
|
|
16
|
+
|
|
17
|
+
```jsx
|
|
18
|
+
// ✅ Zero-config WebGPU with automatic WebGL 2 fallback
|
|
19
|
+
import { Canvas } from '@react-three/fiber'
|
|
20
|
+
import { WebGPURenderer } from 'three/webgpu'
|
|
21
|
+
|
|
22
|
+
<Canvas
|
|
23
|
+
gl={(canvas) => new WebGPURenderer({ canvas, antialias: true })}
|
|
24
|
+
>
|
|
25
|
+
{/* Scene renders via WebGPU where available, WebGL 2 elsewhere */}
|
|
26
|
+
</Canvas>
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
Deploy WebGPU for all new projects — the built-in fallback ensures production safety across all browsers.
|
|
30
|
+
|
|
31
|
+
## R3F v9 Breaking Change
|
|
32
|
+
|
|
33
|
+
```jsx
|
|
34
|
+
// ❌ v8 pattern
|
|
35
|
+
const { gl } = useThree() // WebGLRenderer
|
|
36
|
+
|
|
37
|
+
// ✅ v9 pattern
|
|
38
|
+
const { renderer } = useThree() // unified WebGL/WebGPU renderer
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
## TSL Shader Language (Three.js r171+)
|
|
42
|
+
|
|
43
|
+
```js
|
|
44
|
+
import { positionLocal, vec4, sin, time } from 'three/tsl'
|
|
45
|
+
|
|
46
|
+
// Write once → WGSL (WebGPU) + GLSL (WebGL) compilation
|
|
47
|
+
const material = new MeshStandardNodeMaterial()
|
|
48
|
+
material.colorNode = vec4(sin(positionLocal.x.add(time)), 0.5, 0.8, 1.0)
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
## Skills
|
|
52
|
+
|
|
53
|
+
- `debug-3d-scene` — debug R3F/Three.js scene graph, rendering, WebGPU pipelines, Spector.js
|
|
54
|
+
- `integrate-r3f-three-legacy` — integrate legacy Three.js code with R3F idioms
|
|
55
|
+
- `optimize-3d-assets` — compress, decimate, and bundle 3D models for web delivery
|
|
56
|
+
|
|
57
|
+
## Consumers
|
|
58
|
+
|
|
59
|
+
- `core/roles/3d-graphics-engineer.md` — sole Primary owner of these skills
|
|
60
|
+
- `overlays/obj-configurator/` — Astro + R3F/Three.js product configurator
|
|
61
|
+
- Any future R3F/Three.js project overlay should declare `r3f-stack` as a stack dependency
|
|
62
|
+
|
|
63
|
+
## Migration History
|
|
64
|
+
|
|
65
|
+
- **v4.0.0**: Skills moved from `core/skills/frontend/<name>/` to `overlays/r3f-stack/skills/<name>/`.
|
|
66
|
+
Core frontend taxonomy reduced from 8 to 5 skills.
|
|
67
|
+
3d-graphics-engineer role toolbox paths now resolve via overlay.
|
|
68
|
+
|
|
69
|
+
## Standard 2026 Alignment
|
|
70
|
+
|
|
71
|
+
This file is part of the agent-skills engineering pack. The 2026 upgrade
|
|
72
|
+
pass added this footer so every prose file in the pack carries a
|
|
73
|
+
consistent Standard 2026 pointer.
|
|
74
|
+
|
|
75
|
+
- **OWASP ASI**: applied as described in `core/roles/role-standard.md`
|
|
76
|
+
(ASI01-ASI10) and the per-skill `## Security Guardrails (OWASP ASI)` sections.
|
|
77
|
+
- **Failure Modes**: the rule in this file can be violated by drift, missing
|
|
78
|
+
context, or untracked exceptions. Concrete failure scenarios belong in the
|
|
79
|
+
related skill or workflow's `### Failure Modes` section.
|
|
80
|
+
- **Output Contracts**: structured artifacts produced under this file must
|
|
81
|
+
conform to schemas in `core/contracts/schemas/`.
|
|
82
|
+
- **Skill Toolbox Lock**: this file's rules are enforced by the role that
|
|
83
|
+
owns the affected action; the runtime gate is
|
|
84
|
+
`core/scripts/hooks/check-policy.py`.
|
|
85
|
+
- **Commit / publish gate**: changes that affect user-visible behavior
|
|
86
|
+
follow the META-RULE in `core/rules/code.md` — no commit, no push, no
|
|
87
|
+
publish without explicit user confirmation.
|
|
88
|
+
|
|
89
|
+
Last updated: 2026-09-01
|
|
@@ -1,43 +1,43 @@
|
|
|
1
|
-
---
|
|
2
|
-
description: "Active rules for the r3f-stack overlay after the v4.0.0 migration moved the three R3F skills out of core."
|
|
3
|
-
---
|
|
4
|
-
|
|
5
|
-
# R3F Stack Conventions
|
|
6
|
-
|
|
7
|
-
- Skills under this overlay assume a React + R3F/Three.js target. Do not load them for vanilla Three.js, Babylon.js, or non-React projects.
|
|
8
|
-
- 3D performance budgets (60fps / 1M triangles / 4MB gzipped) are defaults; tighten per project.
|
|
9
|
-
- When adding a new R3F skill, keep the naming pattern `<verb>-<noun>` and stick to R3F-idiomatic guidance (declarative scene graph, useFrame, drei helpers).
|
|
10
|
-
- Coordinate with `overlays/obj-configurator` for product-configurator specifics.
|
|
11
|
-
|
|
12
|
-
## Standard 2026 Alignment
|
|
13
|
-
|
|
14
|
-
This overlay rule file is part of the agent-skills engineering pack. The 2026
|
|
15
|
-
upgrade pass added the following Standard 2026 alignment footer to every
|
|
16
|
-
overlay rule file in the pack.
|
|
17
|
-
|
|
18
|
-
- **OWASP ASI**: applied as described in the core pack — see
|
|
19
|
-
`core/roles/role-standard.md` (ASI01-ASI10) and the per-skill
|
|
20
|
-
`## Security Guardrails (OWASP ASI)` section in each skill. The rules in this
|
|
21
|
-
file are applied by the role that owns the affected action; the runtime
|
|
22
|
-
gate is `core/scripts/hooks/check-policy.py` with
|
|
23
|
-
`core/policies/action-boundaries.yaml`.
|
|
24
|
-
- **Failure Modes** (overlay-specific): the rules in this file can be violated
|
|
25
|
-
by drift, missing context, or untracked exceptions. The owning role is
|
|
26
|
-
expected to surface concrete failure scenarios in the workflow's
|
|
27
|
-
`### Failure Modes` section and to capture remediations via
|
|
28
|
-
`contracts/schemas/incident-report.json` when the rule is bypassed.
|
|
29
|
-
- **Output Contracts**: when a rule in this file produces a structured
|
|
30
|
-
artifact (brief, plan, config, content handoff, audit event), the artifact
|
|
31
|
-
must conform to the corresponding schema in `core/contracts/schemas/`.
|
|
32
|
-
See `See `core/skills/agent/integrate-webmcp/SKILL.md` and the `implementation-result.json` schema.` for the related skill output contract reference.
|
|
33
|
-
- **Skill Toolbox Lock**: a rule in this file is enforced by the role whose
|
|
34
|
-
Skill Toolbox lists the related skill as Primary. Roles that hold the
|
|
35
|
-
skill as Supporting must delegate rather than execute directly (per
|
|
36
|
-
`core/workflows/README.md`).
|
|
37
|
-
- **Commit / publish gate**: rule changes that affect user-visible behavior
|
|
38
|
-
must follow the META-RULE in `core/rules/code.md` — no commit, no push,
|
|
39
|
-
no publish without explicit user confirmation.
|
|
40
|
-
|
|
41
|
-
See `core/skills/agent/integrate-webmcp/SKILL.md` and the `implementation-result.json` schema.
|
|
42
|
-
|
|
43
|
-
Last updated: 2026-09-01
|
|
1
|
+
---
|
|
2
|
+
description: "Active rules for the r3f-stack overlay after the v4.0.0 migration moved the three R3F skills out of core."
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# R3F Stack Conventions
|
|
6
|
+
|
|
7
|
+
- Skills under this overlay assume a React + R3F/Three.js target. Do not load them for vanilla Three.js, Babylon.js, or non-React projects.
|
|
8
|
+
- 3D performance budgets (60fps / 1M triangles / 4MB gzipped) are defaults; tighten per project.
|
|
9
|
+
- When adding a new R3F skill, keep the naming pattern `<verb>-<noun>` and stick to R3F-idiomatic guidance (declarative scene graph, useFrame, drei helpers).
|
|
10
|
+
- Coordinate with `overlays/obj-configurator` for product-configurator specifics.
|
|
11
|
+
|
|
12
|
+
## Standard 2026 Alignment
|
|
13
|
+
|
|
14
|
+
This overlay rule file is part of the agent-skills engineering pack. The 2026
|
|
15
|
+
upgrade pass added the following Standard 2026 alignment footer to every
|
|
16
|
+
overlay rule file in the pack.
|
|
17
|
+
|
|
18
|
+
- **OWASP ASI**: applied as described in the core pack — see
|
|
19
|
+
`core/roles/role-standard.md` (ASI01-ASI10) and the per-skill
|
|
20
|
+
`## Security Guardrails (OWASP ASI)` section in each skill. The rules in this
|
|
21
|
+
file are applied by the role that owns the affected action; the runtime
|
|
22
|
+
gate is `core/scripts/hooks/check-policy.py` with
|
|
23
|
+
`core/policies/action-boundaries.yaml`.
|
|
24
|
+
- **Failure Modes** (overlay-specific): the rules in this file can be violated
|
|
25
|
+
by drift, missing context, or untracked exceptions. The owning role is
|
|
26
|
+
expected to surface concrete failure scenarios in the workflow's
|
|
27
|
+
`### Failure Modes` section and to capture remediations via
|
|
28
|
+
`contracts/schemas/incident-report.json` when the rule is bypassed.
|
|
29
|
+
- **Output Contracts**: when a rule in this file produces a structured
|
|
30
|
+
artifact (brief, plan, config, content handoff, audit event), the artifact
|
|
31
|
+
must conform to the corresponding schema in `core/contracts/schemas/`.
|
|
32
|
+
See `See `core/skills/agent/integrate-webmcp/SKILL.md` and the `implementation-result.json` schema.` for the related skill output contract reference.
|
|
33
|
+
- **Skill Toolbox Lock**: a rule in this file is enforced by the role whose
|
|
34
|
+
Skill Toolbox lists the related skill as Primary. Roles that hold the
|
|
35
|
+
skill as Supporting must delegate rather than execute directly (per
|
|
36
|
+
`core/workflows/README.md`).
|
|
37
|
+
- **Commit / publish gate**: rule changes that affect user-visible behavior
|
|
38
|
+
must follow the META-RULE in `core/rules/code.md` — no commit, no push,
|
|
39
|
+
no publish without explicit user confirmation.
|
|
40
|
+
|
|
41
|
+
See `core/skills/agent/integrate-webmcp/SKILL.md` and the `implementation-result.json` schema.
|
|
42
|
+
|
|
43
|
+
Last updated: 2026-09-01
|