A minimal Markdown editor built for Claude Code workflows. Write prompts, skills, and drafts with live preview, skill autocomplete, and a direct bridge back to Claude Code.
- Markdown editor with live split-pane preview
- Skill & agent autocomplete — type
#skillor/agentto fuzzy-search your indexed skills, with descriptions shown inline - Contextual skill suggestions — as you type, the editor proactively surfaces relevant skills and agents as chips below the prompt (no trigger syntax required)
- Skill preview pane — hover over an autocomplete item to see the skill description without leaving the editor
- Real-time token counter — live token count for your current draft powered by
@anthropic-ai/tokenizer - Scratchpad — persistent scratch space for notes, snippets, and ideas separate from your main draft
- Claude Code bridge — open files directly from Claude Code, edit them, and send the result back in one click
- Light / dark theme toggle
- Recent files panel
- Configurable scan paths for skills and agents
brew install --cask sameera207/draftflow/draftflow
First launch: macOS may block the app. Go to System Settings → Privacy & Security → click "Open Anyway", or run
xattr -cr /Applications/Draftflow.appin terminal.
- Node.js 18+
- macOS (primary target; Linux/Windows may work)
git clone https://github.com/sameera207/draftflow.git
cd draftflow
npm install
npm startDraftflow integrates with Claude Code via a custom URL scheme and a shared file bridge, letting you round-trip content between Claude and the editor.
/df in Claude Code
→ writes content to ~/.claude/editor-bridge/request.md
→ opens Draftflow via draftflow://?file=~/.claude/editor-bridge/request.md
→ you edit the draft in Draftflow
→ click "send back"
→ Draftflow writes ~/.claude/editor-bridge/response.md
→ Claude reads the result
- Open Draftflow settings and click Install /df command
(copies
commands/df.md→~/.claude/commands/df.md) - In any Claude Code session, type
/dfto start a bridge session.
Draftflow can proactively suggest relevant skills and agents as you type — no trigger character needed.
Suggestions appear as chips below the editor after a short pause. Each chip shows the skill or agent name and a brief reason. Click the × to dismiss a chip for the current session.
Add your Anthropic API key to Draftflow settings:
{
"anthropic": {
"apiKey": "sk-ant-..."
},
"suggestions": {
"confidenceThreshold": 0.6,
"maxSuggestions": 3
}
}- If
anthropic.apiKeyis absent, suggestions are silently disabled — no API calls are made. - Suggestions use
claude-haiku-4-5-20251001(fast and inexpensive). - Results are cached per prompt within a session to avoid redundant calls.
Draftflow scans directories you configure for Claude Code skill (.md) and agent files and indexes them for autocomplete.
| Trigger | Matches |
|---|---|
#foo |
Skills |
/foo |
Agents |
Default scan path: ~/.claude
Add more paths in Settings → Skill & Agent Paths.
npm run dev # run with Node inspector enabledMIT