composable-svelte-code

Build CodeMirror editors, Prism highlighting, and SvelteFlow node canvases in Svelte apps.

3|Updated Oct 26, 2025
One-click install
npx skills add https://github.com/jonathanbelolo/composable-svelte --skill composable-svelte-code
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: composable-svelte-code
Source: https://github.com/jonathanbelolo/composable-svelte/tree/main/.claude/skills/composable-svelte-code
Command: npx skills add https://github.com/jonathanbelolo/composable-svelte --skill composable-svelte-code

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Code editors and visual programming interfaces are essential for building modern software tooling in Svelte apps, but assembling robust editing, syntax highlighting, and node-based tooling typically requires pulling together multiple libraries. This skill provides a cohesive set of components (CodeEditor, CodeHighlight, and NodeCanvas) that plug into a Composable Architecture store, enabling rapid UI construction for development, documentation, and data workflows.

Core Features & Use Cases

  • CodeEditor (CodeMirror) for immersive editing experiences
  • CodeHighlight (Prism) for read-only syntax highlighting in docs and demos
  • NodeCanvas (SvelteFlow) for visual node-based programming and workflows
  • End-to-end integration with Composable Architecture patterns (store, reducer, effects) for predictable state management
  • Use Case: Build in-app code editors, interactive tutorials, and visual programming tools within a Svelte app

Quick Start

Install the @composable-svelte/code package and create a store that wires CodeEditor, CodeHighlight, and NodeCanvas.

  • Create a store using createStore and initialState via createInitialState from @composable-svelte/code
  • Render CodeEditor with the created store
  • Example (inline, no code fences): import { createStore } from '@composable-svelte/core'; import { CodeEditor, codeEditorReducer, createInitialState } from '@composable-svelte/code'; const editorStore = createStore({ initialState: createInitialState({ value: '// Write code here', language: 'typescript', theme: 'dark', showLineNumbers: true }), reducer: codeEditorReducer, dependencies: {} }); <CodeEditor store={editorStore} />

Frequently Asked Questions about composable-svelte-code

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I integrate a CodeMirror code editor into a Svelte app using Composable Architecture?

You can integrate a CodeMirror code editor into a Svelte app by creating a store using createStore and an initial state via createInitialState, then rendering the CodeEditor component with that store to enable immersive editing experiences.

What is the best way to build node-based visual programming interfaces in Svelte?

The best way to build node-based visual programming interfaces in Svelte is using the NodeCanvas component powered by SvelteFlow, which plugs directly into a Composable Architecture store for predictable state management.

Can I use Prism for read-only syntax highlighting in Svelte documentation components?

Yes, you can use Prism for read-only syntax highlighting in Svelte documentation components by implementing the CodeHighlight component, which is specifically designed for demos and docs within the Composable Architecture pattern.

Does this Svelte code editor skill support type-safe actions and state reducers?

Yes, the Svelte code editor integration supports type-safe actions and state reducers through end-to-end integration with Composable Architecture patterns, ensuring predictable state management across CodeEditor, CodeHighlight, and NodeCanvas components.

How do I set up interactive tutorials and visual programming tools within a Svelte application?

You set up interactive tutorials and visual programming tools within a Svelte application by installing the @composable-svelte/code package and wiring the CodeEditor and NodeCanvas components into a Composable Architecture store.