Skill: drumrobot/dotfile (version 0.1.2)

--- name: dotfile metadata: author: es6kr version: "0.1.2" description: Synchronization management with external tools. chezmoi - dotfile template management [chezmoi.md], knowledge - session knowledge → Serena memory [knowledge.md], mcp - MCP server synchronization [mcp.md], syncthing - chezmoi Syncthing sync and diagnostics [syncthing.md]. Use when "knowledge sync", "chezmoi add", "dotfile management", "syncthing", "MCP server add", "MCP sync", "external sync", "(?d)", ".stignore", "ignored files", "stignore settings", "sync incomplete", "sync status", "DB reset", "stale cache", "syncthing diagnostics", "index reset", "rescan", "encryption consistency", "Failed to verify encryption", "receive-encrypted mismatch", "garbage encryptionPassword", "Antigravity Syncthing", "Gemini Syncthing re-register". For ClawHub-related tasks → delegate to /clawhub skill. depends-on: [chezmoi] --- # Sync Manages data synchronization with external tools (Serena, chezmoi, Syncthing, etc.). ## Topics | Topic | Description | Guide | |-------|-------------|-------| | chezmoi | dotfile chezmoi template management | [chezmoi.md](./chezmoi.md) | | knowledge | Session knowledge → Serena memory sync | [knowledge.md](./knowledge.md) | | mcp | MCP server sync (delegated to chezmoi) | [mcp.md](./mcp.md) | | syncthing | chezmoi source Syncthing sync and diagnostics | [syncthing.md](./syncthing.md) | ## Quick Reference ### Knowledge Sync ``` "knowledge sync" → Current project session → Serena memory ``` ### Chezmoi ``` "chezmoi add" → Add a dotfile to chezmoi "dotfile management" → chezmoi template operations ``` **Configurations managed by chezmoi:** - `~/.utcp_config.json` - UTCP global config - `~/.claude.json`, `~/.cursor/mcp.json` - MCP server config - `~/Library/.../Syncthing/config.xml` - Syncthing default config **MCP server sharing:** - Single source: `.chezmoitemplates/mcp-servers.json` - `chezmoi apply` → Automatically applied to all apps ### MCP ``` "MCP server add" → Edit mcp-servers.json → chezmoi apply "MCP sync" → Apply MCP config to all apps ``` ### Syncthing ``` "syncthing setup" → chezmoi source sync configuration ".stignore" → Ignore pattern configuration "sync incomplete" → Per-folder status/need item diagnostics "encryption consistency"→ Garbage encryptionPassword diagnosis & API PUT cleanup "DB reset" → Stale index reset (delete index-v2) ``` **Auto-generated `.stignore`:** - `.git` - `(?d).DS_Store` — Prevents orphaned `.DS_Store` on remote deletion - `*.bak`

path: chezmoi.md
content: # chezmoi Template Management

> **Detailed guide**: See [chezmoi skill](../chezmoi/SKILL.md)

Converts dotfiles into chezmoi modify templates and sets permissions correctly.

## chezmoi Directories

- Source: `~/.local/share/chezmoi/`
- Target: `~/` (home directory)

## Quick Reference

| Task | Trigger | Skill |
|------|---------|-------|
| Template consolidation | "chezmoi dedup check" | `chezmoi:consolidate` |
| MCP sync | "MCP server add" | `chezmoi:mcp-sync` |
| Commit splitting | "commit split" | `commit-splitter` |

## Template Creation Basics

### private_ Prefix Rules

| Original Permission | chezmoi Prefix |
|---------------------|----------------|
| `drwx------` (700) | `private_` |
| `drwxr-xr-x` (755) | None |
| `-rw-------` (600) | `private_` |
| `-rw-r--r--` (644) | None |

### modify Template Basic Format

```bash
#!/bin/bash
cat | jq --argjson data '{"key": "value"}' '. * $data'
```

## MCP Server Sharing

**Single source:** `.chezmoitemplates/mcp-servers.json`

**How to apply:**
```bash
chezmoi apply  # Automatically applied to all apps
```

**Related apps:**
- `~/.claude.json`
- `~/.cursor/mcp.json`
- `~/.gemini/antigravity/mcp_config.json`
- `~/.utcp_config.json`


path: mcp.md
content: # MCP Server Synchronization

Maintains the same MCP server list across multiple apps (Claude, Cursor, Antigravity, UTCP).

> Detailed implementation: See [chezmoi/mcp-sync.md](../chezmoi/mcp-sync.md)

## Quick Reference

| Task | Command |
|------|---------|
| Add MCP server | Edit `mcp-servers.json` → `chezmoi apply` |
| Reverse migration | Move from UTCP manual → `mcp-servers.json` single source |
| Verify application | `jq '.mcpServers \| keys' ~/.claude.json` |

## Single Source

```
~/.local/share/chezmoi/.chezmoitemplates/mcp-servers.json
```

After editing, `chezmoi apply` → Automatically applied to all apps:
- `~/.claude.json` (mcpServers)
- `~/.cursor/mcp.json` (mcpServers)
- `~/.gemini/antigravity/mcp_config.json` (mcpServers)
- `~/.utcp_config.json` (manual_call_templates)

## Triggers

- "MCP server add", "MCP sync"
- "utcp to mcp", "move to global mcp"
- "chezmoi mcp migration"


Security scan verdicts — ClawScan: suspicious | static analysis: clean | VirusTotal:  | SkillSpector: suspicious (HIGH)