一键导入
raven-dev
Raven development workflow for building, serving, testing, and debugging Swift WASM apps and Raven runtime changes.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Raven development workflow for building, serving, testing, and debugging Swift WASM apps and Raven runtime changes.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Implement and verify SwiftUI API parity for Raven UI components. Use when asked to audit missing or mismatched SwiftUI views/modifiers, add parity components, wire examples into `Examples/TodoApp`, validate rendering in a browser (including dark mode), and prepare branch/PR deliverables.
Create or extend Raven UI components and modifiers (rendering to VNode/DOM, wiring events, managing state), including JavaScriptKit interop guidelines (DOMBridge, JSClosure, @MainActor).
Generate and maintain deterministic SwiftUI-vs-Raven API parity reports and automation. Use when users ask to audit missing SwiftUI components/APIs, refresh coverage reports, reduce report noise, tune matching logic (owner-qualified names, constructors, operators), or update the weekly GitHub Actions PR workflow that publishes Reports/swiftui-api-gap/gap_report.md.
Swift WASM development for setup, build, optimize, debug, and test workflows in Raven and related apps.
Swift WASM development with Swift 6.2 APIs. Use for setting up WASM toolchains, building for WebAssembly, optimizing bundles, debugging WASM apps, or troubleshooting Swift WASM issues.
| name | raven-dev |
| description | Raven development workflow for building, serving, testing, and debugging Swift WASM apps and Raven runtime changes. |
Use this skill when working on Raven examples, runtime rendering behavior, DOMBridge event handling, or WASM dev loops.
cd Examples/TodoApp
swift build --swift-sdk swift-6.2.3-RELEASE_wasm
cd Examples/TodoApp
raven dev
http://localhost:8000/python3 raven-dev.py in Examples/TodoApp for automatic rebuild/reload loops.JSClosure storage in Swift dictionaries keyed by stable IDsprivate var eventClosures: [UUID: JSClosure] = [:]
public func addEventListener(
element: JSObject,
event: String,
handlerID: UUID,
handler: @escaping @Sendable @MainActor () -> Void
) {
let jsClosure = JSClosure { _ in
Task { @MainActor in handler() }
return .undefined
}
eventClosures[handlerID] = jsClosure
_ = element.addEventListener!(event, jsClosure)
}