[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6ENEVHPF5JPRQHSHGK6HYCP":3,"skill-same:01M6ENEVHPF5JPRQHSHGK6HYCP":94},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":39,"linkOnly":40,"markdownContent":41,"markdownBody":42,"frontMatter":43,"refName":47,"commitSha":48,"skillDirectory":49,"forksCount":50,"repositoryHtmlUrl":51,"repositoryHomepageUrl":52,"ownerHtmlUrl":53,"ownerBlogUrl":6,"ownerDescription":54,"updatedAt":55,"install":56,"resources":69},"01M6ENEVHPF5JPRQHSHGK6HYCP","writing-to-logseq",null,"Expert in writing data to Logseq DB graphs via HTTP API. Auto-invokes when users want to create pages, add blocks, update content, set properties, or sync conversation notes to their Logseq graph. Provides CRUD operations with safety guidelines.","ComeOnOliver\u002Fskillshub","ComeOnOliver","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F43215937?v=4","01M6E5JNFECJAAVFE0W7SMWWD2","Haoran Shu","01M6E5JNNDQS7AJZDYFQ8TPZCK",67,"MIT","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Faiskillstore\u002Fmarketplace\u002Fc0ntr0lledcha0s\u002Fwriting-to-logseq\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38],"writing to logseq","writing","api","add","db","conversation","expert","auto","read","crud","Bash","Safety","SET","data","graph","update","create","guidelines","notes","sync","2026-11-10 10:12:30",false,"---\nname: writing-to-logseq\nversion: 1.0.0\ndescription: >\n  Expert in writing data to Logseq DB graphs via HTTP API.\n  Auto-invokes when users want to create pages, add blocks, update content,\n  set properties, or sync conversation notes to their Logseq graph.\n  Provides CRUD operations with safety guidelines.\nallowed-tools: Read, Bash, Grep, Glob\n---\n\n# Writing to Logseq\n\n## When to Use This Skill\n\nThis skill auto-invokes when:\n- User wants to create new pages or blocks in Logseq\n- Updating existing content in the graph\n- Setting or modifying properties on entities\n- Adding tags\u002Fclasses to blocks\n- Syncing conversation notes to Logseq\n- User mentions \"add to logseq\", \"create page\", \"update block\"\n\n**Write Operations**: See `{baseDir}\u002Fscripts\u002Fwrite-operations.py` for the API.\n\n## Available Operations\n\n| Operation | Description |\n|-----------|-------------|\n| `create_page(title, content)` | Create new page |\n| `create_block(parent, content)` | Add block under parent |\n| `update_block(uuid, content)` | Modify block content |\n| `delete_block(uuid)` | Remove block |\n| `set_property(uuid, key, value)` | Set property value |\n| `add_tag(uuid, tag)` | Add tag\u002Fclass to block |\n| `append_to_page(title, content)` | Add content to existing page |\n\n## Quick Examples\n\n### Create a Page\n\n```python\nfrom write_operations import LogseqWriter\n\nwriter = LogseqWriter()\n\n# Create simple page\npage = writer.create_page(\"Meeting Notes 2024-01-15\")\n\n# Create page with initial content\npage = writer.create_page(\n    \"Project Alpha\",\n    content=\"Project overview and tasks\",\n    properties={\"status\": \"Active\", \"priority\": \"High\"}\n)\n```\n\n### Add Blocks\n\n```python\n# Add block to a page\nblock = writer.create_block(\n    parent=\"page-uuid-or-title\",\n    content=\"New task item\"\n)\n\n# Add nested block\nchild = writer.create_block(\n    parent=block[\"uuid\"],\n    content=\"Sub-task details\"\n)\n```\n\n### Update Content\n\n```python\n# Update block content\nwriter.update_block(\n    uuid=\"block-uuid\",\n    content=\"Updated content here\"\n)\n\n# Append to existing page\nwriter.append_to_page(\n    title=\"Daily Notes\",\n    content=\"- New item added via API\"\n)\n```\n\n### Set Properties\n\n```python\n# Set single property\nwriter.set_property(\n    uuid=\"block-uuid\",\n    key=\"status\",\n    value=\"Complete\"\n)\n\n# Set typed property\nwriter.set_property(\n    uuid=\"block-uuid\",\n    key=\"rating\",\n    value=5,\n    type=\"number\"\n)\n\n# Set multiple properties\nwriter.set_properties(\n    uuid=\"block-uuid\",\n    properties={\n        \"author\": \"John Doe\",\n        \"rating\": 5,\n        \"published\": \"2024-01-15\"\n    }\n)\n```\n\n### Add Tags\n\n```python\n# Add tag to block\nwriter.add_tag(uuid=\"block-uuid\", tag=\"Book\")\n\n# Add multiple tags\nwriter.add_tags(uuid=\"block-uuid\", tags=[\"Important\", \"Review\"])\n```\n\n## HTTP API Methods\n\n### Create Page\n\n```json\n{\n  \"method\": \"logseq.Editor.createPage\",\n  \"args\": [\"PageTitle\", {\"property\": \"value\"}, {\"createFirstBlock\": true}]\n}\n```\n\n### Insert Block\n\n```json\n{\n  \"method\": \"logseq.Editor.insertBlock\",\n  \"args\": [\"parent-uuid\", \"Block content\", {\"sibling\": false}]\n}\n```\n\n### Update Block\n\n```json\n{\n  \"method\": \"logseq.Editor.updateBlock\",\n  \"args\": [\"block-uuid\", \"New content\"]\n}\n```\n\n### Set Property\n\n```json\n{\n  \"method\": \"logseq.Editor.upsertBlockProperty\",\n  \"args\": [\"block-uuid\", \"property-name\", \"value\"]\n}\n```\n\n### Delete Block\n\n```json\n{\n  \"method\": \"logseq.Editor.removeBlock\",\n  \"args\": [\"block-uuid\"]\n}\n```\n\n## Safety Guidelines\n\n### Best Practices\n\n1. **Verify before delete** - Always confirm block exists before removal\n2. **Use unique titles** - Avoid creating duplicate pages\n3. **Validate properties** - Ensure property types match schema\n4. **Handle errors** - Catch and handle API failures gracefully\n\n### Common Pitfalls\n\n- **Duplicate pages**: Check if page exists before creating\n- **Invalid UUIDs**: Verify UUID format before operations\n- **Property types**: Number properties need numeric values\n- **Rate limiting**: Don't spam API with rapid requests\n\n## Content Formatting\n\n### Markdown Support\n\n```python\n# Logseq supports markdown in blocks\nwriter.create_block(\n    parent=page_uuid,\n    content=\"\"\"\n## Section Header\n\n- Bullet point\n- Another point\n  - Nested item\n\n**Bold** and *italic* work too.\n\n[[Link to Page]] and #tags\n\"\"\"\n)\n```\n\n### Property Syntax\n\n```python\n# Properties can be set in content\nwriter.create_block(\n    parent=page_uuid,\n    content=\"\"\"\n- Task item\n  status:: In Progress\n  priority:: High\n  due:: [[2024-01-20]]\n\"\"\"\n)\n\n# Or via API (preferred for typed values)\nwriter.set_property(uuid, \"rating\", 5)  # number\nwriter.set_property(uuid, \"done\", True)  # checkbox\n```\n\n## Sync Conversation to Logseq\n\n### Pattern for Saving Notes\n\n```python\ndef sync_conversation_to_logseq(title, notes):\n    \"\"\"Sync conversation notes to Logseq page.\"\"\"\n    writer = LogseqWriter()\n\n    # Create or get page\n    page = writer.get_or_create_page(f\"Claude Notes\u002F{title}\")\n\n    # Add timestamp header\n    from datetime import datetime\n    timestamp = datetime.now().strftime(\"%Y-%m-%d %H:%M\")\n\n    writer.append_to_page(\n        title=f\"Claude Notes\u002F{title}\",\n        content=f\"\"\"\n## {timestamp}\n\n{notes}\n\n---\n\"\"\"\n    )\n\n    return page\n```\n\n## Error Handling\n\n```python\ntry:\n    page = writer.create_page(\"My Page\")\nexcept writer.ConnectionError:\n    print(\"Cannot connect to Logseq\")\nexcept writer.DuplicateError:\n    print(\"Page already exists\")\nexcept writer.ValidationError as e:\n    print(f\"Invalid data: {e}\")\n```\n\n## Reference Materials\n\n- See `{baseDir}\u002Freferences\u002Fwrite-operations.md` for all operations\n- See `{baseDir}\u002Freferences\u002Fsafety-guidelines.md` for safety practices\n- See `{baseDir}\u002Ftemplates\u002Fpage-template.md` for page templates\n","# Writing to Logseq\n\n## When to Use This Skill\n\nThis skill auto-invokes when:\n- User wants to create new pages or blocks in Logseq\n- Updating existing content in the graph\n- Setting or modifying properties on entities\n- Adding tags\u002Fclasses to blocks\n- Syncing conversation notes to Logseq\n- User mentions \"add to logseq\", \"create page\", \"update block\"\n\n**Write Operations**: See `{baseDir}\u002Fscripts\u002Fwrite-operations.py` for the API.\n\n## Available Operations\n\n| Operation | Description |\n|-----------|-------------|\n| `create_page(title, content)` | Create new page |\n| `create_block(parent, content)` | Add block under parent |\n| `update_block(uuid, content)` | Modify block content |\n| `delete_block(uuid)` | Remove block |\n| `set_property(uuid, key, value)` | Set property value |\n| `add_tag(uuid, tag)` | Add tag\u002Fclass to block |\n| `append_to_page(title, content)` | Add content to existing page |\n\n## Quick Examples\n\n### Create a Page\n\n```python\nfrom write_operations import LogseqWriter\n\nwriter = LogseqWriter()\n\n# Create simple page\npage = writer.create_page(\"Meeting Notes 2024-01-15\")\n\n# Create page with initial content\npage = writer.create_page(\n    \"Project Alpha\",\n    content=\"Project overview and tasks\",\n    properties={\"status\": \"Active\", \"priority\": \"High\"}\n)\n```\n\n### Add Blocks\n\n```python\n# Add block to a page\nblock = writer.create_block(\n    parent=\"page-uuid-or-title\",\n    content=\"New task item\"\n)\n\n# Add nested block\nchild = writer.create_block(\n    parent=block[\"uuid\"],\n    content=\"Sub-task details\"\n)\n```\n\n### Update Content\n\n```python\n# Update block content\nwriter.update_block(\n    uuid=\"block-uuid\",\n    content=\"Updated content here\"\n)\n\n# Append to existing page\nwriter.append_to_page(\n    title=\"Daily Notes\",\n    content=\"- New item added via API\"\n)\n```\n\n### Set Properties\n\n```python\n# Set single property\nwriter.set_property(\n    uuid=\"block-uuid\",\n    key=\"status\",\n    value=\"Complete\"\n)\n\n# Set typed property\nwriter.set_property(\n    uuid=\"block-uuid\",\n    key=\"rating\",\n    value=5,\n    type=\"number\"\n)\n\n# Set multiple properties\nwriter.set_properties(\n    uuid=\"block-uuid\",\n    properties={\n        \"author\": \"John Doe\",\n        \"rating\": 5,\n        \"published\": \"2024-01-15\"\n    }\n)\n```\n\n### Add Tags\n\n```python\n# Add tag to block\nwriter.add_tag(uuid=\"block-uuid\", tag=\"Book\")\n\n# Add multiple tags\nwriter.add_tags(uuid=\"block-uuid\", tags=[\"Important\", \"Review\"])\n```\n\n## HTTP API Methods\n\n### Create Page\n\n```json\n{\n  \"method\": \"logseq.Editor.createPage\",\n  \"args\": [\"PageTitle\", {\"property\": \"value\"}, {\"createFirstBlock\": true}]\n}\n```\n\n### Insert Block\n\n```json\n{\n  \"method\": \"logseq.Editor.insertBlock\",\n  \"args\": [\"parent-uuid\", \"Block content\", {\"sibling\": false}]\n}\n```\n\n### Update Block\n\n```json\n{\n  \"method\": \"logseq.Editor.updateBlock\",\n  \"args\": [\"block-uuid\", \"New content\"]\n}\n```\n\n### Set Property\n\n```json\n{\n  \"method\": \"logseq.Editor.upsertBlockProperty\",\n  \"args\": [\"block-uuid\", \"property-name\", \"value\"]\n}\n```\n\n### Delete Block\n\n```json\n{\n  \"method\": \"logseq.Editor.removeBlock\",\n  \"args\": [\"block-uuid\"]\n}\n```\n\n## Safety Guidelines\n\n### Best Practices\n\n1. **Verify before delete** - Always confirm block exists before removal\n2. **Use unique titles** - Avoid creating duplicate pages\n3. **Validate properties** - Ensure property types match schema\n4. **Handle errors** - Catch and handle API failures gracefully\n\n### Common Pitfalls\n\n- **Duplicate pages**: Check if page exists before creating\n- **Invalid UUIDs**: Verify UUID format before operations\n- **Property types**: Number properties need numeric values\n- **Rate limiting**: Don't spam API with rapid requests\n\n## Content Formatting\n\n### Markdown Support\n\n```python\n# Logseq supports markdown in blocks\nwriter.create_block(\n    parent=page_uuid,\n    content=\"\"\"\n## Section Header\n\n- Bullet point\n- Another point\n  - Nested item\n\n**Bold** and *italic* work too.\n\n[[Link to Page]] and #tags\n\"\"\"\n)\n```\n\n### Property Syntax\n\n```python\n# Properties can be set in content\nwriter.create_block(\n    parent=page_uuid,\n    content=\"\"\"\n- Task item\n  status:: In Progress\n  priority:: High\n  due:: [[2024-01-20]]\n\"\"\"\n)\n\n# Or via API (preferred for typed values)\nwriter.set_property(uuid, \"rating\", 5)  # number\nwriter.set_property(uuid, \"done\", True)  # checkbox\n```\n\n## Sync Conversation to Logseq\n\n### Pattern for Saving Notes\n\n```python\ndef sync_conversation_to_logseq(title, notes):\n    \"\"\"Sync conversation notes to Logseq page.\"\"\"\n    writer = LogseqWriter()\n\n    # Create or get page\n    page = writer.get_or_create_page(f\"Claude Notes\u002F{title}\")\n\n    # Add timestamp header\n    from datetime import datetime\n    timestamp = datetime.now().strftime(\"%Y-%m-%d %H:%M\")\n\n    writer.append_to_page(\n        title=f\"Claude Notes\u002F{title}\",\n        content=f\"\"\"\n## {timestamp}\n\n{notes}\n\n---\n\"\"\"\n    )\n\n    return page\n```\n\n## Error Handling\n\n```python\ntry:\n    page = writer.create_page(\"My Page\")\nexcept writer.ConnectionError:\n    print(\"Cannot connect to Logseq\")\nexcept writer.DuplicateError:\n    print(\"Page already exists\")\nexcept writer.ValidationError as e:\n    print(f\"Invalid data: {e}\")\n```\n\n## Reference Materials\n\n- See `{baseDir}\u002Freferences\u002Fwrite-operations.md` for all operations\n- See `{baseDir}\u002Freferences\u002Fsafety-guidelines.md` for safety practices\n- See `{baseDir}\u002Ftemplates\u002Fpage-template.md` for page templates\n",{"name":5,"version":44,"description":45,"allowed-tools":46},"1.0.0","Expert in writing data to Logseq DB graphs via HTTP API. Auto-invokes when users want to create pages, add blocks, update content, set properties, or sync conversation notes to their Logseq graph. Provides CRUD operations with safety guidelines.\n","Read, Bash, Grep, Glob","main","def8531e65114c0fca8fb8551c1871ee0eed705c","skills\u002Faiskillstore\u002Fmarketplace\u002Fc0ntr0lledcha0s\u002Fwriting-to-logseq",24,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub","https:\u002F\u002Fskillshub.wtf","https:\u002F\u002Fgithub.com\u002FComeOnOliver","AI & Blockchain Engineer\r\n","2026-06-24 22:07:19",{"source":8,"skillName":5,"commands":57,"prompt":67,"zipAvailable":68},[58,61,64],{"tool":59,"command":60},"npx","npx skills add ComeOnOliver\u002Fskillshub --skill writing-to-logseq",{"tool":62,"command":63},"bunx","bunx skills add ComeOnOliver\u002Fskillshub --skill writing-to-logseq",{"tool":65,"command":66},"pnpm","pnpm dlx skills add ComeOnOliver\u002Fskillshub --skill writing-to-logseq","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Faiskillstore\u002Fmarketplace\u002Fc0ntr0lledcha0s\u002Fwriting-to-logseq\u002FSKILL.md",true,[70,76,80,86,90],{"path":71,"resourceType":72,"resourceTypeDesc":73,"sizeBytes":74,"sourceHtmlUrl":75},"references\u002Fsafety-guidelines.md","REFERENCE","参考文档",7197,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Faiskillstore\u002Fmarketplace\u002Fc0ntr0lledcha0s\u002Fwriting-to-logseq\u002Freferences\u002Fsafety-guidelines.md",{"path":77,"resourceType":72,"resourceTypeDesc":73,"sizeBytes":78,"sourceHtmlUrl":79},"references\u002Fwrite-operations.md",7411,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Faiskillstore\u002Fmarketplace\u002Fc0ntr0lledcha0s\u002Fwriting-to-logseq\u002Freferences\u002Fwrite-operations.md",{"path":81,"resourceType":82,"resourceTypeDesc":83,"sizeBytes":84,"sourceHtmlUrl":85},"scripts\u002Fwrite-operations.py","SCRIPT","脚本",14596,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Faiskillstore\u002Fmarketplace\u002Fc0ntr0lledcha0s\u002Fwriting-to-logseq\u002Fscripts\u002Fwrite-operations.py",{"path":87,"resourceType":72,"resourceTypeDesc":73,"sizeBytes":88,"sourceHtmlUrl":89},"skill-report.json",9597,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Faiskillstore\u002Fmarketplace\u002Fc0ntr0lledcha0s\u002Fwriting-to-logseq\u002Fskill-report.json",{"path":91,"resourceType":72,"resourceTypeDesc":73,"sizeBytes":92,"sourceHtmlUrl":93},"templates\u002Fpage-template.md",3757,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Faiskillstore\u002Fmarketplace\u002Fc0ntr0lledcha0s\u002Fwriting-to-logseq\u002Ftemplates\u002Fpage-template.md",[95,104,113,122,128,134],{"skillNo":96,"name":97,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":98,"categories":99,"keywords":100,"publishedAt":39},"01M6FKJN13GMG4KY57J3QD8GY5","model-hierarchy-skill","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzscole\u002Fmodel-hierarchy-skill\u002Fmodel-hierarchy-skill\u002FSKILL.md",[],[101,102,103],"model","model hierarchy","model hierarchy skill",{"skillNo":105,"name":106,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":107,"categories":108,"keywords":109,"publishedAt":39},"01M6FKJJJ6GCAMR4PPPRD12M5X","zoom-mcp","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-mcp\u002FSKILL.md",[],[110,111,112],"MCP","zoom","zoom mcp",{"skillNo":114,"name":115,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":116,"categories":117,"keywords":118,"publishedAt":39},"01M6FKJE3KYT3KPEZMEEHYKA6K","zoom-apps-sdk","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-apps-sdk\u002FSKILL.md",[],[119,120,121,111],"sdk","zoom apps sdk","apps",{"skillNo":123,"name":124,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":125,"categories":126,"keywords":127,"publishedAt":39},"01M6FKJ9EDH9Q5VWDF8HAJRSP0","windows","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwindows\u002FSKILL.md",[],[124],{"skillNo":129,"name":130,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":131,"categories":132,"keywords":133,"publishedAt":39},"01M6FKJ666BEEFC3AE9GJ72Q93","whiteboard","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwhiteboard\u002FSKILL.md",[],[130],{"skillNo":135,"name":136,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":137,"categories":138,"keywords":139,"publishedAt":39},"01M6FKJ21WFCDGTJQ2Q91T9DVW","websockets","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwebsockets\u002FSKILL.md",[],[136]]