Communitygithub.com

Pascal 에디터 통합

React Three Fiber와 WebGPU 기반의 오픈소스 3D 건물 에디터인 Pascal Editor의 핵심 API를 활용하여 3D 건축 도구, BIM 편집기, 평면도 생성기를 구축하고 확장합니다.

Pascal 에디터 통합란 무엇인가요?

Pascal Editor Integration 스킬은 React Three Fiber와 WebGPU를 기반으로 한 오픈소스 3D 건물 에디터인 Pascal Editor (pascalorg/editor)의 핵심 API를 다룹니다. 이 스킬을 통해 노드 기반 씬 그래프, Zustand 상태 관리, 시스템 아키텍처를 활용하여 AI 기반 건축 생성 애플리케이션을 개발할 수 있습니다. 지원되는 주요 플랫폼은 Pascal Editor이며, TypeScript와 React 생태계에서 동작합니다. 이 스킬은 벽, 문, 창문, 레벨, 슬래브, 존과 같은 건축 요소를 생성하고 조작하는 방법을 제공하며, 사용자 정의 검증 시스템을 등록하거나 씬을 JSON으로 내보내는 기능도 포함합니다. @pascal-app/core, @pascal-app/ui, @react-three/fiber, zustand 등 주요 패키지를 설치하고, 노드 계층 구조를 이해한 후 제공된 예제를 따라 3D 건축 도구를 빠르게 구축할 수 있습니다.

지원 대상~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/TerminalSkills/skills/tree/HEAD/skills/pascal-editor

즐겨 사용하는 AI에게 물어보기

이 에이전트 스킬이 미리 로드된 새 채팅을 엽니다.

문서

Pascal 에디터 통합은(는) 무엇을 하나요?

개요

Pascal 에디터 (pascalorg/editor)는 React Three Fiber와 WebGPU로 구축된 오픈소스 3D 건물 에디터입니다. 노드 기반 씬 그래프, Zustand 상태 관리, 그리고 AI 기반 건축 생성에 이상적인 시스템 아키텍처를 제공합니다. 이 스킬은 건축 지오메트리를 생성, 조작 및 내보내기 위한 핵심 API를 다룹니다.

지침

빠른 시작

npx create-next-app@latest my-building-app
cd my-building-app
npm install @pascal-app/core @pascal-app/ui @react-three/fiber @react-three/drei three zustand

노드 계층 구조

Pascal은 타입이 지정된 노드 트리를 사용합니다:

사이트(Site) -> 건물(Building) -> 레벨(Level) -> 벽(Wall) -> 개구부(Opening) (문/창)
                          -> 슬래브(Slab) (바닥/천장)
                          -> 존(Zone) (방 경계)
                          -> 아이템(Item) (가구, 설비)

모든 노드는 다음을 가집니다: id (UUID), type, parentId, children (자식 ID 목록), props (타입별 속성), dirty (재구축 표시).

Zustand 스토어

import { useScene, useViewer, useEditor } from '@pascal-app/core'

// useScene -- 씬 그래프 (노드, 관계)
const { nodes, createNode, updateNode, deleteNode } = useScene()

// useViewer -- 뷰포트 상태 (카메라, 선택)
const { selectedIds, camera, setSelection } = useViewer()

// useEditor -- 도구 모드 및 UI 상태
const { activeTool, setTool, history } = useEditor()

개구부가 있는 벽 생성

const scene = useScene.getState()

// 외벽: 길이 4.5m, 두께 200mm, 천장 높이 2.7m
const wall = await scene.createNode({
  type: 'wall',
  props: {
    start: { x: 0, y: 0 }, end: { x: 4.5, y: 0 },
    thickness: 0.20, height: 2.7,
    isExterior: true, material: 'masonry',
  }
}, levelId)

// 창문 추가: 너비 1.2m, 창대 높이 900mm
await scene.createNode({
  type: 'item',
  props: {
    itemType: 'window', wallId: wall.id,
    offsetFromStart: 1.5, width: 1.2, height: 1.2, sillHeight: 0.9,
  }
}, wall.id)

// 문 추가: 너비 900mm
await scene.createNode({
  type: 'item',
  props: {
    itemType: 'door', wallId: wall.id,
    offsetFromStart: 3.0, width: 0.9, height: 2.1, sillHeight: 0,
  }
}, wall.id)

레벨 및 방 생성

const level = await scene.createNode({
  type: 'level',
  props: { name: '1층', elevation: 0, height: 2.7, index: 0 }
}, buildingId)

// 바닥 슬래브
await scene.createNode({
  type: 'slab',
  props: {
    polygon: [{ x: 0, y: 0 }, { x: 10, y: 0 }, { x: 10, y: 8 }, { x: 0, y: 8 }],
    thickness: 0.25, isRoof: false,
  }
}, level.id)

// 라벨링 및 면적 계산을 위한 방 존
await scene.createNode({
  type: 'zone',
  props: {
    name: '거실', roomType: 'living',
    polygon: [{ x: 0.1, y: 0.1 }, { x: 5.4, y: 0.1 }, { x: 5.4, y: 7.9 }, { x: 0.1, y: 7.9 }],
  }
}, level.id)

씬을 JSON으로 내보내기

function exportScene(): BuildingExport {
  const { nodes } = useScene.getState()
  const allNodes = Object.values(nodes)
  const site = allNodes.find(n => n.type === 'site')
  const building = allNodes.find(n => n.type === 'building')
  const levels = allNodes
    .filter(n => n.type === 'level' && n.parentId === building.id)
    .sort((a, b) => a.props.elevation - b.props.elevation)

  return {
    units: 'meters',
    site: { width: site.props.width, depth: site.props.depth },
    building: {
      levels: levels.map(level => ({
        name: level.props.name,
        elevation: level.props.elevation,
        height: level.props.height,
        walls: getChildrenByType(level.id, 'wall', allNodes),
        rooms: getChildrenByType(level.id, 'zone', allNodes),
      }))
    }
  }
}

React Three Fiber로 렌더링

import { Canvas } from '@react-three/fiber'
import { PascalScene, PascalCamera, PascalControls } from '@pascal-app/ui'

export function BuildingViewer() {
  return (
    <Canvas camera={{ position: [0, 20, 20], fov: 45 }}>
      <PascalScene />
      <PascalCamera />
      <PascalControls />
      <ambientLight intensity={0.5} />
      <directionalLight position={[10, 20, 10]} castShadow />
    </Canvas>
  )
}

그리드 스냅

Pascal은 기본적으로 100mm(0.1m) 그리드를 사용합니다:

const snapToGrid = (value: number, gridSize = 0.1) =>
  Math.round(value / gridSize) * gridSize

예제

예제 1: 10m x 8m 1층 건물 구축

외벽, 거실과 침실을 구분하는 내부 칸막이, 적절한 개구부를 갖춘 완전한 1층을 생성합니다:

  1. elevation 0, 높이 2.7m의 레벨 노드 생성
  2. 바닥 슬래브 생성: 10m x 8m 다각형, 두께 0.25m
  3. 4개의 외벽 생성 (두께 0.20m, 석재): 북쪽(10m), 동쪽(8m), 남쪽(10m), 서쪽(8m)
  4. x=5.5 위치에 내부 칸막이 추가 (두께 0.10m, 목재), 전체 깊이
  5. 북쪽 벽에 출입문 추가: 1.0m x 2.1m, 오프셋 3.5m
  6. 동쪽 벽에 창문 추가: 1.2m x 1.2m 창문 2개, 창대 높이 0.9m, 오프셋 1.2m 및 4.5m
  7. 존 생성: 거실(5.3m x 7.8m = 41.3m2), 침실 영역(4.3m x 7.8m = 33.5m2)
  8. architectural-dimensions 규칙에 대한 검증을 위해 JSON으로 내보내기

예제 2: 사용자 정의 검증 시스템 등록

벽 노드가 변경될 때마다 벽 두께를 확인하는 시스템을 생성합니다:

import { registerSystem, useScene } from '@pascal-app/core'

registerSystem({
  name: 'wall-validator',
  nodeTypes: ['wall'],
  priority: 100,
  process(dirtyNodes) {
    for (const node of dirtyNodes) {
      const { thickness, isExterior, height } = node.props
      if (isExterior && thickness < 0.14)
        console.warn(`벽 ${node.id}: 외벽 두께 ${thickness}m가 최소 0.14m 미만`)
      if (height < 2.1)
        console.warn(`벽 ${node.id}: 높이 ${height}m가 최소 2.1m 미만`)
    }
  }
})

이 시스템은 벽 노드가 더티(dirty)로 표시될 때마다, 지오메트리 시스템이 메시를 재구축하기 전에 자동으로 실행됩니다.

지침

  • 모든 치수는 미터 단위입니다 -- Pascal은 내부적으로 미터법을 사용합니다
  • 모든 노드 CRUD 작업에는 useScene, 선택/카메라에는 useViewer, 도구에는 useEditor를 사용하세요
  • 깔끔한 지오메트리를 위해 좌표를 0.1m 그리드에 스냅하세요
  • 벽 두께: 외벽 0.20m, 내부 칸막이 0.10m
  • 문 창대 높이는 항상 0입니다 (바닥 레벨); 창문 창대 높이는 기본값 0.9m
  • 지오메트리 재구축(0-50) 전에 실행하려면 우선순위 > 50으로 사용자 정의 시스템을 등록하세요
  • 실제 측정값 검증을 위해 architectural-dimensions 스킬과 결합하세요
  • 주요 패키지: @pascal-app/core, @pascal-app/ui, @react-three/fiber, three, zustand
  • GitHub: github.com/pascalorg/editor

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

TerminalSkills/skills

>- Run GitHub Actions locally with act. Use when a user asks to test GitHub Actions workflows locally, debug CI pipelines without pushing, or run workflows offline.

TerminalSkills/skills

>- You are an expert in AG2 (formerly AutoGen), the open-source multi-agent conversation framework. You help developers build systems where multiple AI agents collaborate through structured conversations — with tool use, human-in-the-loop, code execution, group chat orchestration, and nested conversations — for complex tasks like software development, research, and data analysis.

TerminalSkills/skills

>- Generate short-form videos with AI — script writing, text-to-speech narration, stock footage selection, subtitle generation, and video assembly. Use when: creating TikTok/YouTube Shorts/Reels content, automating video production, building content pipelines.

TerminalSkills/skills

>- Animate 3D objects and characters in Blender with Python. Use when the user wants to keyframe properties, create armatures and rigs, set up IK/FK chains, animate shape keys for facial animation, edit F-Curves, use the NLA editor to blend actions, add drivers for expression-based animation, or script any animation workflow in Blender.

TerminalSkills/skills

>- Automate motion capture and tracking workflows in Blender with Python. Use when the user wants to import BVH or FBX mocap data, retarget motion to armatures, track camera or object motion from video, solve camera motion, clean up motion capture data, or script any tracking pipeline in Blender.

TerminalSkills/skills

>- You are an expert in Bolt.new by StackBlitz, the AI-powered full-stack development environment that runs entirely in the browser. You help developers go from idea to deployed app in minutes using natural language prompts — Bolt generates complete applications with frontend, backend, database, and deployment, all running in a WebContainer without local setup.

TerminalSkills/skills

>- Assists with using Bun as an all-in-one JavaScript/TypeScript runtime, package manager, bundler, and test runner. Use when building HTTP servers, managing packages, running tests, or migrating from Node.js. Trigger words: bun, bun serve, bun install, bun test, bun build, javascript runtime, bun runtime.

TerminalSkills/skills

>- Self-host customer support with Chatwoot. Use when a user asks to set up open-source customer support, add live chat without SaaS costs, build a multi-channel inbox, or deploy a free Intercom alternative.

TerminalSkills/skills

>- You are an expert in Chi, the lightweight, idiomatic Go HTTP router built on `net/http`. You help developers build composable HTTP services using Chi's middleware stack, route groups, URL parameters, sub-routers, and context-based request scoping — providing Express-like ergonomics while staying 100% compatible with Go's standard library.

TerminalSkills/skills

When the user wants to edit, review, or improve existing marketing copy. Also use when the user mentions 'edit this copy,' 'review my copy,' 'copy feedback,' 'proofread,' 'polish this,' 'make this better,' or 'copy sweep.' This skill provides a systematic approach to editing marketing copy through multiple focused passes.

TerminalSkills/skills

>- Add live chat and customer support with Crisp. Use when a user asks to add a chat widget, implement live customer support, set up a help desk, create a knowledge base, or add a chatbot to a website.

TerminalSkills/skills

>- Assists with building custom interactive data visualizations using D3.js. Use when creating charts, graphs, maps, force layouts, or hierarchical diagrams that require fine-grained control beyond what charting libraries provide. Trigger words: d3, data visualization, chart, svg, scales, force graph, treemap, choropleth.

TerminalSkills/skills

dbt (data build tool) transforms data in your warehouse using SQL SELECT statements. Learn project setup, models, tests, documentation, incremental materializations, and integration with data warehouses like PostgreSQL, BigQuery, and Snowflake.

TerminalSkills/skills

>- You are an expert in dlt, the open-source Python library for building data pipelines. You help developers load data from any API, file, or database into warehouses and lakes using simple Python decorators — with automatic schema inference, incremental loading, and built-in data contracts. dlt is the "requests library for data pipelines.

TerminalSkills/skills

Data Version Control for ML projects. Track large datasets and models alongside Git, build reproducible ML pipelines, and run experiments with metric comparison. Works with any storage backend including S3, GCS, Azure, and local filesystems.

TerminalSkills/skills

>- You are an expert in E2B, the cloud platform for running AI-generated code in secure sandboxes. You help developers give AI agents the ability to execute code, install packages, read/write files, and run long processes in isolated cloud environments — each sandbox is a lightweight VM that boots in ~150ms with full Linux, filesystem, and networking.

TerminalSkills/skills

>- Transcode, convert, edit, and process audio and video with FFmpeg. Use when a user asks to convert video formats (webm to mp4, mkv to mp4), extract audio from video, compress video files, trim or cut clips, concatenate videos, add subtitles, create thumbnails, apply filters, change resolution or bitrate, re-encode media, create GIFs from video, add watermarks, normalize audio, stream media, or build automated media processing pipelines.

TerminalSkills/skills

>- Create advanced animations with GSAP. Use when building complex timelines, scroll-driven animations, SVG morphing, text animations, or high-performance web animations beyond CSS capabilities.

TerminalSkills/skills

>- Generate deterministic MP4 videos from HTML, CSS, media, and seekable animations using HeyGen's HyperFrames framework. Use when someone asks to "render HTML to video", "make a video with HyperFrames", "create a programmatic video", "turn an animation into MP4", "build a launch/product video from HTML", "render GSAP/Lottie/Three.js to video", or set up an agent-driven video pipeline. Covers init/preview/render/add/lint/inspect commands, data-* timing attributes, animation adapters, and the component catalog.

TerminalSkills/skills

When the user wants to perform load testing, stress testing, or performance testing of APIs and websites using k6. Also use when the user mentions "k6," "load test," "performance test," "stress test," "spike test," "soak test," "thresholds," "virtual users," or "VUs." For browser-based testing, see selenium.

관련 스킬