[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6HBSVHXPH95TJ071B96DC78":3,"skill-same:01M6HBSVHXPH95TJ071B96DC78":46},{"skillNo":4,"name":5,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":6,"repositoryNo":11,"starsCount":12,"licenseSpdxId":13,"licenseFileUrl":6,"sourceHtmlUrl":14,"categories":15,"keywords":16,"publishedAt":17,"linkOnly":18,"markdownContent":19,"markdownBody":19,"frontMatter":20,"refName":21,"commitSha":22,"skillDirectory":5,"forksCount":12,"repositoryHtmlUrl":23,"repositoryHomepageUrl":6,"ownerHtmlUrl":24,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":25,"install":26,"resources":39},"01M6HBSVHXPH95TJ071B96DC78","resources",null,"sedimentarian\u002Fgroundwork","sedimentarian","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F270186362?v=4","01M6HBSHQ4GEPGDMM28WE387WJ","01M6HBSHVN0JXDKZNF696WW2NX",0,"GPL-3.0","https:\u002F\u002Fgithub.com\u002Fsedimentarian\u002Fgroundwork\u002Fblob\u002Fmain\u002Fresources\u002FSKILL.md",[],[5],"2026-11-10 10:12:30",false,"# Groundwork Vault Integration\n\nGroundwork is a personal task and knowledge management system. The vault is plain\nmarkdown files with YAML frontmatter, organized in a folder structure. You have\nfull read\u002Fwrite access to the vault — no VS Code extension needed.\n\n## Integration path\n\n**Check for the MCP server first.** If `mcp__groundwork__list_tasks` is\navailable, use MCP tools — they are faster, structured, and always in sync.\n\nAvailable MCP tools: `list_tasks`, `get_note`, `create_task`, `create_note`,\n`update_note`, `move_note`, `search`, `daily_briefing`, `weekly_review`,\n`archive_note`, `delete_note`.\n\nAll MCP tools accept an optional `workspace_path` parameter — pass the absolute\npath to the current project's `.groundwork` directory (e.g.\n`\u002FUsers\u002Fyou\u002Fprojects\u002Fmyapp\u002F.groundwork`) to include workspace-scoped tasks\nalongside global ones.\n\n**Fall back to this skill** when MCP tools are unavailable (VS Code not running).\nThe skill bootstraps the SQLite index and provides equivalent read\u002Fwrite access.\n\n## Vault Locations\n\n- **Global vault**: `~\u002F.groundwork\u002F` — available everywhere\n- **Workspace vault**: `.groundwork\u002F` in the current project root — project-specific\n\nBoth vaults are indexed in a single SQLite DB at `~\u002F.groundwork\u002F.index.db`. Queries\nautomatically cover both; use the `scope` column (`global` \u002F `workspace`) to label results.\n\n## Directory Structure\n\n```\n.groundwork\u002F\n├── inbox\u002F        # New captures, untriaged tasks\n├── decisions\u002F    # Architecture decisions, trade-offs, ADRs\n├── notes\u002F        # General notes\n├── projects\u002F     # Project-level docs\n├── reference\u002F    # Reference material\n├── logs\u002F         # Activity logs\n└── .sessions\u002F    # Session tracking (JSONL, one file per day)\n```\n\nTasks live as individual `.md` files. The filename is a slug of the title\n(lowercase, hyphens, no special chars). Example: `write-test-suite.md`\n\n## File Format\n\nEvery markdown file has YAML frontmatter between `---` fences:\n\n```markdown\n---\ntitle: Write test suite\ntype: task\nstatus: inbox\npriority: medium\nproject: Groundwork\ntags:\n  - testing\n  - quality\ncreated: 2026-03-17T12:00:00.000Z\n---\n\nThe body is free-form markdown. Use headings, lists, code blocks — whatever\nhelps describe the task or note.\n```\n\n### Frontmatter Fields\n\n| Field | Required | Values |\n|-------|----------|--------|\n| `title` | yes | Human-readable title |\n| `type` | yes | `task`, `note`, `decision`, `project`, `reference`, `log` |\n| `status` | for tasks | `inbox`, `next`, `active`, `waiting`, `someday`, `done`, `cancelled` |\n| `priority` | no | `high`, `medium`, `low` |\n| `project` | no | Parent project name |\n| `tags` | no | YAML list of strings |\n| `created` | yes | ISO 8601 timestamp |\n| `modified` | no | ISO 8601 timestamp (update on changes) |\n| `due` | no | ISO date |\n| `context` | no | GTD contexts like `@computer`, `@phone` |\n| `recurrence` | no | Recurrence pattern (e.g., `daily`, `every monday`, `every 2 weeks`, `monthly`, `quarterly`) |\n| `recurrence-anchor` | no | ISO date — anchor point for interval calculation |\n| `sort-order` | no | Numeric sort key for custom ordering within GTD groups |\n\n### GTD Status Flow\n\n```\ninbox → next → active → done\n                  ↕        ↑\n              waiting ─────┘\ninbox → someday → next → ...\nany → cancelled\n```\n\n- **inbox**: Captured but not yet triaged\n- **next**: Triaged and ready to work on\n- **active**: Currently being worked on\n- **waiting**: Blocked on something external\n- **someday**: Interesting but not now\n- **done**: Completed\n- **cancelled**: Won't do\n\n## SQLite Index\n\n`~\u002F.groundwork\u002F.index.db` is the query layer. It mirrors all vault frontmatter and\nsupports full-text search via FTS4. The VS Code extension keeps it live (write-through\n+ file watcher). When VS Code is not running, use the **Ensure DB** script below to\ninitialize or sync it before querying.\n\n### Ensure DB\n\nRun this **before any read operation**. It creates the DB if missing, applies the\nschema, and incrementally indexes any new or changed vault files (unchanged files are\nskipped via body hash comparison, so this is fast on a warm DB).\n\n```bash\npython3 \u003C\u003C 'PYEOF'\nimport sqlite3, os, re, json, hashlib\nfrom pathlib import Path\nfrom datetime import datetime, timezone\n\nDB_PATH = os.path.expanduser('~\u002F.groundwork\u002F.index.db')\nSCHEMA_VERSION = 1\n\ndef parse_frontmatter(text):\n    if not text.startswith('---'):\n        return {}, text\n    end = text.find('\\n---', 3)\n    if end == -1:\n        return {}, text\n    fm_text = text[4:end]\n    body = text[end+4:].lstrip('\\n')\n    fm = {}\n    current_key = None\n    current_list = None\n    for line in fm_text.split('\\n'):\n        if line.startswith('  - ') and current_list is not None:\n            current_list.append(line[4:].strip())\n            continue\n        if current_list is not None:\n            fm[current_key] = current_list\n            current_list = None\n        if ': ' in line:\n            key, _, val = line.partition(': ')\n            key = key.strip(); val = val.strip()\n            if not val:\n                current_key = key; current_list = []\n            else:\n                fm[key] = val\n        elif line.rstrip().endswith(':') and line[:1].isalpha():\n            current_key = line.rstrip().rstrip(':')\n            current_list = []\n    if current_list is not None:\n        fm[current_key] = current_list\n    return fm, body\n\ndef init_schema(conn):\n    conn.executescript(\"\"\"\n        CREATE TABLE IF NOT EXISTS notes (\n            path TEXT PRIMARY KEY, scope TEXT NOT NULL,\n            title TEXT, type TEXT, status TEXT, priority TEXT,\n            sort_order INTEGER, due TEXT, project TEXT,\n            context TEXT, tags TEXT, recurrence TEXT,\n            created TEXT, modified TEXT, body_hash TEXT,\n            indexed_at TEXT, schema_version INTEGER DEFAULT 1\n        );\n        CREATE INDEX IF NOT EXISTS idx_type_status ON notes(type, status);\n        CREATE INDEX IF NOT EXISTS idx_due ON notes(due);\n        CREATE INDEX IF NOT EXISTS idx_project ON notes(project);\n        CREATE INDEX IF NOT EXISTS idx_scope ON notes(scope);\n        CREATE VIRTUAL TABLE IF NOT EXISTS notes_fts USING fts4(path, title, body);\n        CREATE TABLE IF NOT EXISTS meta (key TEXT PRIMARY KEY, value TEXT);\n        INSERT OR REPLACE INTO meta VALUES ('schema_version', '1');\n    \"\"\")\n    conn.commit()\n\ndef schema_ok(conn):\n    try:\n        row = conn.execute(\"SELECT value FROM meta WHERE key='schema_version'\").fetchone()\n        return row and int(row[0]) == SCHEMA_VERSION\n    except:\n        return False\n\ndef upsert_file(conn, md_file, scope):\n    try:\n        text = Path(md_file).read_text(encoding='utf-8', errors='replace')\n    except:\n        return\n    fm, body = parse_frontmatter(text)\n    body_hash = hashlib.sha256(text.encode()).hexdigest()[:16]\n    existing = conn.execute(\"SELECT body_hash FROM notes WHERE path=?\", (str(md_file),)).fetchone()\n    if existing and existing[0] == body_hash:\n        return\n    tags = fm.get('tags'); context = fm.get('context'); so = fm.get('sort-order')\n    conn.execute(\"\"\"\n        INSERT OR REPLACE INTO notes\n        (path, scope, title, type, status, priority, sort_order, due, project,\n         context, tags, recurrence, created, modified, body_hash, indexed_at, schema_version)\n        VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,1)\n    \"\"\", (\n        str(md_file), scope,\n        fm.get('title'), fm.get('type'), fm.get('status'), fm.get('priority'),\n        int(so) if so and str(so).isdigit() else None,\n        (fm.get('due') or '')[:10] or None,\n        fm.get('project'),\n        json.dumps(context) if isinstance(context, list) else (context or None),\n        json.dumps(tags) if isinstance(tags, list) else (tags or None),\n        fm.get('recurrence'),\n        (fm.get('created') or '')[:10] or None,\n        (fm.get('modified') or '')[:10] or None,\n        body_hash, datetime.now(timezone.utc).isoformat()\n    ))\n    conn.execute(\"DELETE FROM notes_fts WHERE path=?\", (str(md_file),))\n    conn.execute(\"INSERT INTO notes_fts (path, title, body) VALUES (?,?,?)\",\n                 (str(md_file), fm.get('title') or '', body))\n\ndef index_vault(conn, vault_dir, scope):\n    vault_path = Path(vault_dir)\n    if not vault_path.exists():\n        return\n    for md_file in vault_path.rglob('*.md'):\n        parts = md_file.relative_to(vault_path).parts\n        if any(p.startswith('.') for p in parts):\n            continue\n        upsert_file(conn, md_file, scope)\n    conn.commit()\n\nos.makedirs(os.path.expanduser('~\u002F.groundwork'), exist_ok=True)\nconn = sqlite3.connect(DB_PATH)\nif not schema_ok(conn):\n    init_schema(conn)\nindex_vault(conn, os.path.expanduser('~\u002F.groundwork'), 'global')\nindex_vault(conn, os.path.join(os.getcwd(), '.groundwork'), 'workspace')\nconn.close()\nprint('DB ready')\nPYEOF\n```\n\n### Sync a file to the DB after writing\n\nAfter creating or updating any vault file, re-run **Ensure DB** — it detects the\nchanged body hash and upserts just that file. No separate sync step needed.\n\n## Common Operations\n\n### List tasks\n\n1. Run **Ensure DB**\n2. Query all tasks:\n\n```bash\nsqlite3 -json ~\u002F.groundwork\u002F.index.db \\\n  \"SELECT path, title, status, priority, sort_order, due, project, tags, scope\n   FROM notes WHERE type='task'\n   ORDER BY\n     CASE WHEN sort_order IS NULL THEN 1 ELSE 0 END, sort_order ASC,\n     CASE priority WHEN 'high' THEN 1 WHEN 'medium' THEN 2 WHEN 'low' THEN 3 ELSE 4 END,\n     title COLLATE NOCASE\"\n```\n\n3. Group the JSON results by `status`, assign shorthand IDs, and display.\n   Label each task with ? (scope=global) or ? (scope=workspace).\n\n### Task shorthand references\n\nWhen listing tasks, **always** assign shorthand IDs using a status prefix + number:\n\n| Prefix | Status |\n|--------|--------|\n| `I` | inbox |\n| `N` | next |\n| `A` | active |\n| `W` | waiting |\n| `S` | someday |\n| `D` | done |\n| `C` | cancelled |\n\n**Sort order within each group** (must match the sidebar tree view):\n1. `sort_order` (ascending; NULL = last)\n2. `priority` (high → medium → low)\n3. `title` alphabetically\n\n**Output format:**\n```\n## Next Actions\nN1. Fix login bug [high, due: 2026-03-20] ?\nN2. Quick reference shorthand [medium] ?\nN3. Update API docs [medium] ?\n```\n\n**Usage rules:**\n- Always output shorthand numbers when listing tasks\n- Accept user references like \"mark N1 done\", \"what's I3?\", \"move S2 to next\"\n- Numbers are ephemeral — recalculate on each listing, don't persist them\n- When a user references a shorthand, resolve it against the most recent listing in the conversation\n- **Numbers are always based on the full unfiltered list** — if the user has a filter active, numbers may skip (e.g., N1, N3, N7) but N3 always refers to the same task regardless of filters\n\n### Create a task\n\nBefore creating, ask the user: \"Would you like to add any details or context to this task? (press Enter to skip)\"\n- If the user provides context, generate a well-structured markdown body from it and include it as the file body.\n- If the user says no, none, or just presses Enter, create with an empty body.\n- Exception: if the user said \"just capture it\", \"quick note\", or similar, skip the question and create immediately.\n\n1. Generate a filename slug from the title: lowercase, replace spaces with hyphens,\n   remove special characters. Example: \"Fix login bug\" → `fix-login-bug.md`\n2. Write to `~\u002F.groundwork\u002Finbox\u002F` (default) or the appropriate status directory\n3. Use the current ISO timestamp for `created`\n4. Run **Ensure DB** to sync the new file into the index\n\n**Example — creating a task:**\n```markdown\n---\ntitle: Fix login bug\ntype: task\nstatus: inbox\npriority: high\nproject: MyApp\ntags:\n  - bug\n  - auth\ncreated: 2026-03-17T14:30:00.000Z\n---\n\nThe login form throws a 500 error when the email contains a plus sign.\nLikely an encoding issue in the auth middleware.\n```\n\n### Create a note\n\nBefore creating, ask the user: \"Would you like to add any details or context to this note? (press Enter to skip)\"\n- If the user provides context, generate a well-structured markdown body from it and include it as the file body.\n- If the user says no, none, or just presses Enter, create with an empty body.\n- Exception: if the user said \"just capture it\", \"quick note\", or similar, skip the question and create immediately.\n\n1. Generate a filename slug from the title: lowercase, replace spaces with hyphens, remove special characters\n2. Write to the appropriate directory (`notes\u002F`, `decisions\u002F`, `projects\u002F`, `reference\u002F`, `logs\u002F`)\n3. Use the current ISO timestamp for `created`\n4. Run **Ensure DB** to sync the new file into the index\n\n### Update a task\n\nRead the file, modify the frontmatter field(s), write it back. Always update\nthe `modified` timestamp. Then run **Ensure DB** to sync the change into the index.\n\nIf changing status, consider whether the file should move to a different directory\n(the extension manages this automatically, but for CLI use the file can stay in its\ncurrent directory — status is determined by frontmatter, not folder location).\n\n### Rename a task or note\n\nTo rename, update both the frontmatter `title` and the filename:\n\n1. Read the file and update `title` in frontmatter\n2. Update `modified` timestamp\n3. Derive the new filename slug: lowercase, replace non-alphanum with hyphens, trim, append `.md`\n4. If the slug changed, write the updated content to the new filename (same directory) and delete the old file\n5. If the slug is the same (e.g., just a casing change), overwrite in place\n6. Run **Ensure DB** to sync\n\n### Capture a quick idea\n\nWhen the user says something like \"remind me to...\" or \"I should...\", create an\ninbox task immediately. Keep the bar low — capturing fast matters more than\nperfect formatting.\n\n### Daily Briefing\n\n1. Run **Ensure DB**\n2. Query:\n\n```bash\nsqlite3 -json ~\u002F.groundwork\u002F.index.db \\\n  \"SELECT title, status, priority, due, project, scope, path FROM notes\n   WHERE type='task' AND status IN ('active','next','waiting','inbox','done')\n   ORDER BY due ASC NULLS LAST, CASE priority WHEN 'high' THEN 1 WHEN 'medium' THEN 2 ELSE 3 END\"\n```\n\n3. Present as a clean, scannable summary:\n   1. **Overdue** — `due \u003C today` and status not done\u002Fcancelled\n   2. **Active** — `status = 'active'`\n   3. **Next Actions** — `status = 'next'`\n   4. **Waiting For** — `status = 'waiting'`\n   5. **Inbox count** — count of `status = 'inbox'`\n   6. **Recently completed** — `status = 'done'` and `modified >= today - 7 days`\n\n### Weekly Review\n\nWalk the user through a guided GTD weekly review. Go through each phase in order:\n\n1. **Waiting For** — anything unblocked? Move to Next\u002FActive\n2. **Active** — still working on these? Complete or pause?\n3. **Someday \u002F Maybe** — promote, kill, or keep?\n4. **Inbox** — triage each untriaged item\n5. **Recently Completed** — celebrate, identify follow-ups\n6. **Capture** — anything new to add?\n\nFor each task in phases 1-4, present the task and ask what to do with it.\nLog a session entry when the review completes.\n\n### Context Compilation\n\nWhen the user needs to share context with another AI tool or document what\nthey're working on, compile relevant vault content:\n\n1. Query active\u002Fnext tasks from the DB\n2. Read the body of relevant task and project files\n3. Format as a structured block (markdown or XML)\n\n### Search and Filter\n\nUse SQL for structured queries, FTS4 for full-text search.\n\n```bash\n# By status\nsqlite3 -json ~\u002F.groundwork\u002F.index.db \"SELECT * FROM notes WHERE type='task' AND status='next'\"\n\n# By project\nsqlite3 -json ~\u002F.groundwork\u002F.index.db \"SELECT * FROM notes WHERE project='MyApp'\"\n\n# By tag (tags stored as JSON array string)\nsqlite3 -json ~\u002F.groundwork\u002F.index.db \"SELECT * FROM notes WHERE tags LIKE '%\\\"bug\\\"%'\"\n\n# Full-text search across title and body\nsqlite3 -json ~\u002F.groundwork\u002F.index.db \\\n  \"SELECT n.path, n.title, n.status FROM notes n\n   JOIN notes_fts f ON n.path = f.path\n   WHERE notes_fts MATCH 'login error'\n   ORDER BY n.status\"\n```\n\nMultiple filters can be combined with AND\u002FOR in the WHERE clause.\n\n## Session Tracking\n\nThe `.sessions\u002F` directory contains daily JSONL files (one JSON object per line):\n\n```jsonl\n{\"action\":\"create\",\"file\":\"inbox\u002Ffix-login-bug.md\",\"timestamp\":\"2026-03-17T14:30:00.000Z\"}\n{\"action\":\"status_change\",\"file\":\"inbox\u002Ffix-login-bug.md\",\"detail\":\"inbox → active\",\"timestamp\":\"2026-03-17T15:00:00.000Z\"}\n```\n\nYou don't need to write session entries — the VS Code extension handles that.\nBut you can read them to understand recent activity.\n\n## Archive and Delete\n\n### Vault files (notes, references, projects)\n- **Archive**: Move the file to `archive\u002F` in the same vault. Do not delete vault\n  files directly — archive first.\n- **Unarchive**: Move the file from `archive\u002F` back to `notes\u002F`.\n- **Delete**: Only delete vault files that are already in `archive\u002F`.\n- Archived files are excluded from search, filter, and context compilation.\n\n### Tasks\n- Tasks do not use archive. They follow the GTD status flow.\n- **Delete**: Only delete tasks with status `done` or `cancelled`.\n  To remove an unwanted task, set its status to `cancelled` first, then delete.\n- After deleting a file, remove it from the DB:\n  ```bash\n  sqlite3 ~\u002F.groundwork\u002F.index.db \\\n    \"DELETE FROM notes WHERE path='\u002Ffull\u002Fpath\u002Fto\u002Ffile.md';\n     DELETE FROM notes_fts WHERE path='\u002Ffull\u002Fpath\u002Fto\u002Ffile.md';\"\n  ```\n\n## Tips\n\n- Always run **Ensure DB** before read operations — it's idempotent and fast on a warm DB\n- When listing tasks, always group by status and sort by priority within groups\n- Use `high`\u002F`medium`\u002F`low` priority — don't invent new levels\n- Tags are freeform but keep them lowercase and consistent\n- The vault is designed to work with Obsidian too — don't add non-standard syntax\n- If the user asks \"what should I work on?\", look at `next` and `active` tasks,\n  prioritize by `priority` and `due` date\n- When creating multiple tasks at once, write them all in parallel for speed, then run Ensure DB once\n\n## MCP Setup\n\nTrigger this flow when the user says \"groundwork setup\", \"setup mcp\", \"configure\ngroundwork\", or when MCP tools are missing and the user wants to fix it.\n\n### Step 1 — Find the installed extension\n\n```bash\nls -d ~\u002F.vscode\u002Fextensions\u002Fsedimentarian.groundwork-* 2>\u002Fdev\u002Fnull | sort -V | tail -1\n```\n\nIf nothing is found: tell the user the Groundwork VS Code extension isn't installed\nand stop. They can install it from the marketplace or via `code --install-extension`.\n\n### Step 2 — Create the version-stable wrapper script\n\nWrite `~\u002F.groundwork\u002Fmcp-server.sh`. This script always resolves the latest\ninstalled extension at runtime, so config files never need updating after an\nextension upgrade.\n\n```bash\n#!\u002Fbin\u002Fbash\n# Auto-managed by Groundwork setup. Do not edit manually.\nEXT_DIR=$(ls -d \"$HOME\u002F.vscode\u002Fextensions\u002Fsedimentarian.groundwork-\"* 2>\u002Fdev\u002Fnull | sort -V | tail -1)\nif [ -z \"$EXT_DIR\" ]; then\n  echo \"[Groundwork MCP] Extension not found in ~\u002F.vscode\u002Fextensions\u002F\" >&2\n  exit 1\nfi\nexec node \"$EXT_DIR\u002Fout\u002Fmcp\u002Fserver.js\" \"$@\"\n```\n\nMake it executable:\n```bash\nchmod +x ~\u002F.groundwork\u002Fmcp-server.sh\n```\n\n### Step 3 — Detect which harnesses are present\n\nCheck each config file and report what was found:\n\n| Harness | Config file |\n|---------|-------------|\n| Claude Desktop | `~\u002FLibrary\u002FApplication Support\u002FClaude\u002Fclaude_desktop_config.json` |\n| Claude Code CLI | `~\u002F.claude\u002Fsettings.json` |\n| Copilot (VS Code) | `~\u002F.vscode\u002Fsettings.json` |\n\nFor each file that exists, read its current `mcpServers` (or `mcp.servers` for\nCopilot) and check whether a `groundwork` entry is already present and correct.\n\nAsk the user: \"I found these harnesses: [list]. Which ones should I configure?\n(all \u002F select \u002F skip)\"\n\n### Step 4 — Show the proposed config block\n\nThe MCP entry is identical for Claude Desktop and Claude Code:\n\n```json\n\"groundwork\": {\n  \"command\": \"\u002FUsers\u002F\u003Cyou>\u002F.groundwork\u002Fmcp-server.sh\",\n  \"args\": [\"--global-path\", \"\u002FUsers\u002F\u003Cyou>\u002F.groundwork\"]\n}\n```\n\nReplace `\u003Cyou>` with the actual home directory (use `os.path.expanduser('~')` or\n`$HOME`).\n\nFor **Copilot in VS Code**, the entry goes under `\"mcp.servers\"` in\n`~\u002F.vscode\u002Fsettings.json` (VS Code 1.99+):\n\n```json\n\"mcp.servers\": {\n  \"groundwork\": {\n    \"command\": \"\u002FUsers\u002F\u003Cyou>\u002F.groundwork\u002Fmcp-server.sh\",\n    \"args\": [\"--global-path\", \"\u002FUsers\u002F\u003Cyou>\u002F.groundwork\"]\n  }\n}\n```\n\nIf unsure about the Copilot config key, show the user the block and ask them to\nconfirm the key name before writing.\n\nShow a clear before\u002Fafter diff for each file that will change. Ask:\n\"Apply these changes? (yes \u002F no)\"\n\n### Step 5 — Write the configs\n\nFor each confirmed file, read the current JSON, merge in the `groundwork` entry\nunder the appropriate key, and write it back. Preserve all other keys.\n\nUse Python for safe JSON read\u002Fwrite:\n\n```bash\npython3 \u003C\u003C 'PYEOF'\nimport json, os\n\nHOME = os.path.expanduser('~')\nWRAPPER = os.path.join(HOME, '.groundwork', 'mcp-server.sh')\nENTRY = {\n    \"command\": WRAPPER,\n    \"args\": [\"--global-path\", os.path.join(HOME, '.groundwork')]\n}\n\nconfigs = {\n    \"claude_desktop\": os.path.join(HOME, 'Library', 'Application Support', 'Claude', 'claude_desktop_config.json'),\n    \"claude_code\":    os.path.join(HOME, '.claude', 'settings.json'),\n}\n\nfor name, path in configs.items():\n    if not os.path.exists(path):\n        continue\n    with open(path) as f:\n        data = json.load(f)\n    data.setdefault('mcpServers', {})['groundwork'] = ENTRY\n    with open(path, 'w') as f:\n        json.dump(data, f, indent=2)\n    print(f'Updated {name}: {path}')\nPYEOF\n```\n\nFor Copilot's `~\u002F.vscode\u002Fsettings.json`, use key `\"mcp.servers\"` instead of\n`\"mcpServers\"`.\n\n### Step 6 — Confirm and instruct restart\n\nAfter writing, tell the user:\n- Which files were updated\n- \"Restart Claude (quit and reopen) and reload VS Code for changes to take effect.\"\n- \"After restarting, run `\u002Fgroundwork` — if MCP tools connect, you'll see tasks\n  without the SQLite fallback being used.\"\n",{},"main","ffe794fa9b0aba4a82f0b29a26a1ee646c5e8f0d","https:\u002F\u002Fgithub.com\u002Fsedimentarian\u002Fgroundwork","https:\u002F\u002Fgithub.com\u002Fsedimentarian","2026-05-11 18:15:25",{"source":7,"skillName":5,"commands":27,"prompt":37,"zipAvailable":38},[28,31,34],{"tool":29,"command":30},"npx","npx skills add sedimentarian\u002Fgroundwork --skill resources",{"tool":32,"command":33},"bunx","bunx skills add sedimentarian\u002Fgroundwork --skill resources",{"tool":35,"command":36},"pnpm","pnpm dlx skills add sedimentarian\u002Fgroundwork --skill resources","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fsedimentarian\u002Fgroundwork\u002Fblob\u002Fmain\u002Fresources\u002FSKILL.md",true,[40],{"path":41,"resourceType":42,"resourceTypeDesc":43,"sizeBytes":44,"sourceHtmlUrl":45},"claude-skill.md","REFERENCE","参考文档",18255,"https:\u002F\u002Fgithub.com\u002Fsedimentarian\u002Fgroundwork\u002Fblob\u002Fmain\u002Fresources\u002Fclaude-skill.md",[47,53],{"skillNo":48,"name":49,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":6,"repositoryNo":11,"starsCount":12,"licenseSpdxId":13,"licenseFileUrl":6,"sourceHtmlUrl":50,"categories":51,"keywords":52,"publishedAt":17},"01M6HBST3CTVA584K50VMBS9CC","groundwork","https:\u002F\u002Fgithub.com\u002Fsedimentarian\u002Fgroundwork\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fgroundwork\u002FSKILL.md",[],[49],{"skillNo":54,"name":49,"nameZh":6,"description":55,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":6,"repositoryNo":11,"starsCount":12,"licenseSpdxId":13,"licenseFileUrl":6,"sourceHtmlUrl":56,"categories":57,"keywords":58,"publishedAt":17},"01M6HBSKQ2JB1PZDZDCEX1M1AW","Interact with the Groundwork task and knowledge vault — a GTD-style system stored as markdown files with YAML frontmatter. Use this skill whenever the user mentions tasks, todos, backlog, inbox, daily briefing, capturing ideas, triaging work, checking what's next, reviewing progress, or anything related to their Groundwork vault. Also trigger when the user says \"groundwork\", \"\u002Fbrief\", \"\u002Ftasks\", \"\u002Fcapture\", or asks about what they're working on, what's overdue, or what to do next.","https:\u002F\u002Fgithub.com\u002Fsedimentarian\u002Fgroundwork\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fgroundwork\u002FSKILL.md",[],[49,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77],"next","frontmatter","briefing","re","gtd","progress","as","ideas","backlog","daily briefing","do","files","work","system","knowledge","markdown","brief","inbox","tasks"]