Skip to main content

simplify

Simplify recently changed Open Document implementation code while preserving requested behavior. Use to remove duplicate ownership, redundant conversions, forwarding layers, and superseded implementations in MoonBit and TypeScript.

소스 정보

저장소
elliothux/open-document
최근 소스 활동
2026년 10월 14일 07:41
감지된 SKILL.md 언어
영어
스타
0
포크
0

설치 방법

기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.

소스 파일 검토

설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.

파일 탐색기
2 개 파일

SKILL.md 표시 중

SKILL.md
소스 지침 · 읽기 전용 미리보기
name
simplify
description
Simplify recently changed Open Document implementation code while preserving requested behavior. Use to remove duplicate ownership, redundant conversions, forwarding layers, and superseded implementations in MoonBit and TypeScript.
# Simplify Follow the root [AGENTS.md](../../../AGENTS.md) for scope, authorization, and validation. Review requests produce findings; change requests authorize local edits within the requested scope. ## Inspect the affected path Start with the requested diff and trace its producers, consumers, and existing equivalents. Look for duplicated state, repeated conversions, pass-through modules, and workarounds near a symptom. Expand only far enough to fix the shared cause and remove superseded wiring. ## Preserve the project boundaries - Keep document state, editing, layout, and serialization in MoonBit. Keep platform events, Worker communication, and rendering in TypeScript. See the [SDK contract](../../../docs/references/sdk.md). - Derive host views from core results. Remove independently editable copies of the document model. - Preserve necessary Worker and Wasm ABI boundaries. Simplify redundant forwarding within a layer without removing ordering, revision checks, cancellation, or disposal behavior. - Convert data once at its owning boundary. Reuse source types and existing APIs where they fit. - Replace symptom-level compensation with the shared rule. Preserve format compatibility, error reporting, resource limits, and document recovery. - Update affected callers and remove replaced APIs and implementations together. Root rules govern compatibility and test selection. ## Finish Review the diff for the requested behavior and orphaned callers. Use the smallest sufficient checks from the root rules and [testing guide](../../../docs/references/testing.md). Leave code unchanged when simplification would add complexity or lacks a demonstrated benefit.
GitHub에서 보기