editor-core — community editor-core, kheMessage, community, ide skills, Claude Code, Cursor, Windsurf

v1.0.0
GitHub

About this Skill

Perfect for Frontend Agents needing advanced in-browser text editing capabilities with contenteditable elements. In-browser editor that stores content in the URL. Block editor, share by link, QR, local version history. No backend, PWA.

HKTITAN HKTITAN
[0]
[0]
Updated: 3/5/2026

Agent Capability Analysis

The editor-core skill by HKTITAN is an open-source community AI agent skill for Claude Code and other IDE workflows, helping agents execute tasks with better context, repeatability, and domain-specific guidance.

Ideal Agent Persona

Perfect for Frontend Agents needing advanced in-browser text editing capabilities with contenteditable elements.

Core Value

Empowers agents to modify text input behavior, fix cursor and selection issues, and enhance undo/redo functionality using JavaScript and contenteditable elements, with features like debounced highlighting and local version history.

Capabilities Granted for editor-core

Modifying text input behavior for custom user interfaces
Fixing cursor and selection issues in contenteditable elements
Enhancing undo/redo functionality for improved user experience

! Prerequisites & Limits

  • No backend support
  • Limited to in-browser editing with contenteditable elements
  • Requires PWA compatibility for offline functionality
Labs Demo

Browser Sandbox Environment

⚡️ Ready to unleash?

Experience this Agent in a zero-setup browser environment powered by WebContainers. No installation required.

Boot Container Sandbox

editor-core

Install editor-core, an AI agent skill for AI agent workflows and automation. Works with Claude Code, Cursor, and Windsurf with one-command setup.

SKILL.md
Readonly

Editor Core Skill

Work with the contenteditable editor in kheMessage.

When to Use

  • Modifying text input behavior
  • Fixing cursor/selection issues
  • Enhancing undo/redo functionality
  • Adding keyboard shortcuts

Editor Implementation

The Editor class manages the contenteditable element:

javascript
1function Editor(element, highlight) { 2 const listeners = [] 3 const history = [] 4 let at = -1, prev 5 6 // Debounced highlighting 7 const debounceHighlight = debounce(30, () => { 8 const pos = save() 9 highlight(element) 10 restore(pos) 11 }) 12 13 // Event handlers 14 on('keydown', event => { /* ... */ }) 15 on('keyup', event => { /* ... */ }) 16 on('paste', () => setTimeout(recordHistory, 10)) 17 on('cut', () => setTimeout(recordHistory, 10)) 18 19 return { 20 set(content) { /* ... */ }, 21 undo() { /* ... */ }, 22 redo() { /* ... */ }, 23 destroy() { /* ... */ } 24 } 25}

Key Functions

save() / restore()

Saves and restores cursor position across DOM changes:

  • Handles text nodes and element nodes
  • Preserves selection direction
  • Works with normalized DOM

recordHistory()

Records editor state for undo/redo:

  • Stores HTML and cursor position
  • Debounced to avoid excessive entries
  • Limited to 10,000 entries

highlight()

Applies Markdown formatting:

  • Called via parseMarkdown function
  • Replaces text nodes with styled spans
  • Preserves cursor position

Keyboard Shortcuts

ShortcutAction
Ctrl+ZUndo
Ctrl+Y / Ctrl+Shift+ZRedo
Ctrl+SSave
Ctrl+NNew note
Ctrl+OImport file

ContentEditable Quirks

  • Use plaintext-only mode to avoid HTML injection
  • Normalize DOM after changes
  • Handle composition events for IME
  • Watch for beforeinput events

Adding Features

When extending the editor:

  1. Add event listener via on()
  2. Save position before DOM changes
  3. Restore position after changes
  4. Record history for undoable actions

FAQ & Installation Steps

These questions and steps mirror the structured data on this page for better search understanding.

? Frequently Asked Questions

What is editor-core?

Perfect for Frontend Agents needing advanced in-browser text editing capabilities with contenteditable elements. In-browser editor that stores content in the URL. Block editor, share by link, QR, local version history. No backend, PWA.

How do I install editor-core?

Run the command: npx killer-skills add HKTITAN/kheMessage/editor-core. It works with Cursor, Windsurf, VS Code, Claude Code, and 19+ other IDEs.

What are the use cases for editor-core?

Key use cases include: Modifying text input behavior for custom user interfaces, Fixing cursor and selection issues in contenteditable elements, Enhancing undo/redo functionality for improved user experience.

Which IDEs are compatible with editor-core?

This skill is compatible with Cursor, Windsurf, VS Code, Trae, Claude Code, OpenClaw, Aider, Codex, OpenCode, Goose, Cline, Roo Code, Kiro, Augment Code, Continue, GitHub Copilot, Sourcegraph Cody, and Amazon Q Developer. Use the Killer-Skills CLI for universal one-command installation.

Are there any limitations for editor-core?

No backend support. Limited to in-browser editing with contenteditable elements. Requires PWA compatibility for offline functionality.

How To Install

  1. 1. Open your terminal

    Open the terminal or command line in your project directory.

  2. 2. Run the install command

    Run: npx killer-skills add HKTITAN/kheMessage/editor-core. The CLI will automatically detect your IDE or AI agent and configure the skill.

  3. 3. Start using the skill

    The skill is now active. Your AI agent can use editor-core immediately in the current project.

Related Skills

Looking for an alternative to editor-core or another community skill for your workflow? Explore these related open-source skills.

View All

widget-generator

Logo of f
f

f.k.a. Awesome ChatGPT Prompts. Share, discover, and collect prompts from the community. Free and open source — self-host for your organization with complete privacy.

149.6k
0
AI

flags

Logo of vercel
vercel

flags is a Next.js feature management skill that enables developers to efficiently add or modify framework feature flags, streamlining React application development.

138.4k
0
Browser

zustand

Logo of lobehub
lobehub

The ultimate space for work and life — to find, build, and collaborate with agent teammates that grow with you. We are taking agent harness to the next level — enabling multi-agent collaboration, effortless agent team design, and introducing agents as the unit of work interaction.

72.8k
0
AI

data-fetching

Logo of lobehub
lobehub

The ultimate space for work and life — to find, build, and collaborate with agent teammates that grow with you. We are taking agent harness to the next level — enabling multi-agent collaboration, effortless agent team design, and introducing agents as the unit of work interaction.

72.8k
0
AI