Back to Skills

craft-docs

majiayu000
Updated Today
58
9
58
View on GitHub
Otherwordaitestingmcp

About

This skill enables Claude to create and manage documents in Craft using Playwright MCP for browser automation. It's ideal for developers who want to automate document creation, organization, and collaboration directly from their IDE. Key features include block-based editing and secure authentication via manual browser login or environment variables.

Quick Install

Claude Code

Recommended
Plugin CommandRecommended
/plugin add https://github.com/majiayu000/claude-skill-registry
Git CloneAlternative
git clone https://github.com/majiayu000/claude-skill-registry.git ~/.claude/skills/craft-docs

Copy and paste this command in Claude Code to install this skill

Documentation

Craft Docs Skill

Overview

Claude can manage your Craft documents to create beautiful documents, organize content, and collaborate with others. A native document editor with powerful block-based editing.

Quick Install

curl -sSL https://canifi.com/skills/craft-docs/install.sh | bash

Or manually:

cp -r skills/craft-docs ~/.canifi/skills/

Setup

Configure via canifi-env:

# First, ensure canifi-env is installed:
# curl -sSL https://canifi.com/install.sh | bash

canifi-env set CRAFT_EMAIL "your-email@example.com"

Privacy & Authentication

Your credentials, your choice. Canifi LifeOS respects your privacy.

Option 1: Manual Browser Login (Recommended)

If you prefer not to share credentials with Claude Code:

  1. Complete the Browser Automation Setup using CDP mode
  2. Login to the service manually in the Playwright-controlled Chrome window
  3. Claude will use your authenticated session without ever seeing your password

Option 2: Environment Variables

If you're comfortable sharing credentials, you can store them locally:

canifi-env set SERVICE_EMAIL "your-email"
canifi-env set SERVICE_PASSWORD "your-password"

Note: Credentials stored in canifi-env are only accessible locally on your machine and are never transmitted.

Capabilities

  • Create and edit documents
  • Organize with folders and spaces
  • Apply block styling
  • Add images and media
  • Create links between documents
  • Share and collaborate
  • Export in multiple formats
  • Use templates
  • Create tables and cards
  • Toggle blocks for organization
  • Add code blocks
  • Create backlinks

Usage Examples

Example 1: Create Document

User: "Create a new Craft doc for meeting notes"
Claude: Creates document "Meeting Notes" with date.
        Confirms: "Document created in default space"

Example 2: Organize Content

User: "Move my project docs to the Work folder"
Claude: Finds project documents, moves to Work folder.
        Confirms: "Moved 6 documents to Work folder"

Example 3: Share Document

User: "Share the proposal document with the team"
Claude: Opens sharing settings, generates share link.
        Returns: "Share link created: [link]"

Example 4: Search Docs

User: "Find my docs about the marketing campaign"
Claude: Searches for "marketing campaign".
        Reports: "Found 3 documents: Campaign Strategy, Q4 Plan..."

Authentication Flow

  1. Claude navigates to craft.do via Playwright MCP
  2. Enters CRAFT_EMAIL for authentication
  3. Handles 2FA if required (notifies user via iMessage)
  4. Maintains session for document operations

Selectors Reference

// Document list
'.documents-list'

// Document item
'.document-item'

// Editor
'.craft-editor'

// Block
'.block-container'

// Title
'.document-title'

// Folder sidebar
'.folders-sidebar'

// New document
'.new-document-button'

// Share button
'.share-button'

// Export menu
'.export-menu'

// Search
'.search-input'

Error Handling

  • Login Failed: Retry 3 times, notify user via iMessage
  • Session Expired: Re-authenticate automatically
  • Document Not Found: Search with variations, ask user
  • Share Failed: Check permissions, retry
  • Export Failed: Try alternative format
  • Sync Failed: Wait and retry

Self-Improvement Instructions

When you learn a better way to accomplish a task with Craft:

  1. Document the improvement in your response
  2. Suggest updating this skill file with the new approach
  3. Include specific document organization strategies
  4. Note useful block types

Notes

  • Native Apple experience
  • Block-based editing
  • Beautiful typography
  • Markdown import/export
  • Real-time collaboration
  • Offline support
  • Backlinks for connections
  • Spaces for organization
  • Web version available

GitHub Repository

majiayu000/claude-skill-registry
Path: skills/craft-docs

Related Skills

content-collections

Meta

This skill provides a production-tested setup for Content Collections, a TypeScript-first tool that transforms Markdown/MDX files into type-safe data collections with Zod validation. Use it when building blogs, documentation sites, or content-heavy Vite + React applications to ensure type safety and automatic content validation. It covers everything from Vite plugin configuration and MDX compilation to deployment optimization and schema validation.

View skill

sglang

Meta

SGLang is a high-performance LLM serving framework that specializes in fast, structured generation for JSON, regex, and agentic workflows using its RadixAttention prefix caching. It delivers significantly faster inference, especially for tasks with repeated prefixes, making it ideal for complex, structured outputs and multi-turn conversations. Choose SGLang over alternatives like vLLM when you need constrained decoding or are building applications with extensive prefix sharing.

View skill

evaluating-llms-harness

Testing

This Claude Skill runs the lm-evaluation-harness to benchmark LLMs across 60+ standardized academic tasks like MMLU and GSM8K. It's designed for developers to compare model quality, track training progress, or report academic results. The tool supports various backends including HuggingFace and vLLM models.

View skill

langchain

Meta

LangChain is a framework for building LLM applications using agents, chains, and RAG pipelines. It supports multiple LLM providers, offers 500+ integrations, and includes features like tool calling and memory management. Use it for rapid prototyping and deploying production systems like chatbots, autonomous agents, and question-answering services.

View skill