{
  "schemaVersion": "1.0",
  "item": {
    "slug": "obsidian-plugin-dev",
    "name": "Obsidian Plugin Development",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/davidvkimball/obsidian-plugin-dev",
    "canonicalUrl": "https://clawhub.ai/davidvkimball/obsidian-plugin-dev",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/obsidian-plugin-dev",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=obsidian-plugin-dev",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "references/patterns.md",
      "references/settings.md",
      "SKILL.md"
    ],
    "primaryDoc": "SKILL.md",
    "quickSetup": [
      "Download the package from Yavira.",
      "Extract the archive and review SKILL.md first.",
      "Import or place the package into your OpenClaw setup."
    ],
    "agentAssist": {
      "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
      "steps": [
        "Download the package from Yavira.",
        "Extract it into a folder your agent can access.",
        "Paste one of the prompts below and point your agent at the extracted folder."
      ],
      "prompts": [
        {
          "label": "New install",
          "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete."
        },
        {
          "label": "Upgrade existing",
          "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run."
        }
      ]
    },
    "sourceHealth": {
      "source": "tencent",
      "slug": "obsidian-plugin-dev",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-05-06T08:17:57.502Z",
      "expiresAt": "2026-05-13T08:17:57.502Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=obsidian-plugin-dev",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=obsidian-plugin-dev",
        "contentDisposition": "attachment; filename=\"obsidian-plugin-dev-1.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null,
        "slug": "obsidian-plugin-dev"
      },
      "scope": "item",
      "summary": "Item download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this item.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/obsidian-plugin-dev"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    },
    "downloadPageUrl": "https://openagent3.xyz/downloads/obsidian-plugin-dev",
    "agentPageUrl": "https://openagent3.xyz/skills/obsidian-plugin-dev/agent",
    "manifestUrl": "https://openagent3.xyz/skills/obsidian-plugin-dev/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/obsidian-plugin-dev/agent.md"
  },
  "agentAssist": {
    "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
    "steps": [
      "Download the package from Yavira.",
      "Extract it into a folder your agent can access.",
      "Paste one of the prompts below and point your agent at the extracted folder."
    ],
    "prompts": [
      {
        "label": "New install",
        "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete."
      },
      {
        "label": "Upgrade existing",
        "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run."
      }
    ]
  },
  "documentation": {
    "source": "clawhub",
    "primaryDoc": "SKILL.md",
    "sections": [
      {
        "title": "Obsidian Plugin Development",
        "body": "Build production-ready Obsidian plugins using the obsidian-sample-plugin-plus template."
      },
      {
        "title": "1. Create from Template",
        "body": "# Clone the template (or use GitHub's \"Use this template\" button)\ngh repo create my-plugin --template davidvkimball/obsidian-sample-plugin-plus --public --clone\ncd my-plugin\n\n# Or clone directly\ngit clone https://github.com/davidvkimball/obsidian-sample-plugin-plus.git my-plugin\ncd my-plugin\nrm -rf .git && git init"
      },
      {
        "title": "2. Configure Plugin Identity",
        "body": "Update these files with your plugin's info:\n\nmanifest.json:\n\n{\n  \"id\": \"my-plugin\",\n  \"name\": \"My Plugin\",\n  \"version\": \"0.0.1\",\n  \"minAppVersion\": \"1.5.0\",\n  \"description\": \"What your plugin does\",\n  \"author\": \"Your Name\",\n  \"authorUrl\": \"https://yoursite.com\",\n  \"isDesktopOnly\": false\n}\n\npackage.json: Update name, description, author, license.\n\nREADME.md: Replace template content with your plugin's documentation."
      },
      {
        "title": "3. Initialize Development Environment",
        "body": "pnpm install\npnpm obsidian-dev-skills          # Initialize AI skills\n./scripts/setup-ref-links.sh      # Unix\n# or: scripts\\setup-ref-links.bat  # Windows"
      },
      {
        "title": "4. Clean Boilerplate",
        "body": "In src/main.ts:\n\nRemove sample ribbon icon, status bar, commands, modal, and DOM event\nKeep the settings tab if needed, or remove it\nRename MyPlugin class to your plugin name\n\nDelete styles.css if your plugin doesn't need custom styles."
      },
      {
        "title": "Build & Test",
        "body": "pnpm dev      # Watch mode — rebuilds on changes\npnpm build    # Production build\npnpm lint     # Check for issues\npnpm lint:fix # Auto-fix issues\npnpm test     # Run unit tests"
      },
      {
        "title": "Install in Obsidian",
        "body": "Copy build output to your vault:\n\n# Unix\ncp main.js manifest.json styles.css ~/.obsidian/plugins/my-plugin/\n\n# Or create a symlink for development\nln -s $(pwd) ~/.obsidian/plugins/my-plugin\n\nEnable the plugin in Obsidian Settings → Community Plugins.\n\nUse Hot Reload plugin for automatic reloading during development."
      },
      {
        "title": "Entry Point (src/main.ts)",
        "body": "import { Plugin } from 'obsidian';\n\nexport default class MyPlugin extends Plugin {\n  settings: MyPluginSettings;\n\n  async onload() {\n    await this.loadSettings();\n    // Register commands, ribbons, events, views\n  }\n\n  onunload() {\n    // Cleanup: remove event listeners, views, DOM elements\n  }\n\n  async loadSettings() {\n    this.settings = Object.assign({}, DEFAULT_SETTINGS, await this.loadData());\n  }\n\n  async saveSettings() {\n    await this.saveData(this.settings);\n  }\n}"
      },
      {
        "title": "Settings Pattern",
        "body": "See references/settings.md for the complete settings UI pattern."
      },
      {
        "title": "Common Patterns",
        "body": "See references/patterns.md for:\n\nCommands (simple, editor, check callbacks)\nRibbon icons\nModals\nEvents and lifecycle\nFile operations\nEditor manipulation"
      },
      {
        "title": "Constraints",
        "body": "No auto-git: Never run git commit or git push without explicit approval\nNo eslint-disable: Fix lint issues properly, don't suppress them\nNo any types: Use proper TypeScript types\nSentence case: UI text uses sentence case (ESLint may false-positive on this — ignore if so)"
      },
      {
        "title": "Release Checklist",
        "body": "Update version in manifest.json and package.json\nUpdate versions.json with \"version\": \"minAppVersion\"\nRun pnpm build — zero errors\nRun pnpm lint — zero issues\nCreate GitHub release with tag matching version (no v prefix)\nUpload: main.js, manifest.json, styles.css (if used)"
      },
      {
        "title": "References",
        "body": "Settings UI — Complete settings tab implementation\nCommon Patterns — Commands, modals, events, file operations\nObsidian API Docs — Official documentation"
      }
    ],
    "body": "Obsidian Plugin Development\n\nBuild production-ready Obsidian plugins using the obsidian-sample-plugin-plus template.\n\nQuick Start: New Plugin\n1. Create from Template\n# Clone the template (or use GitHub's \"Use this template\" button)\ngh repo create my-plugin --template davidvkimball/obsidian-sample-plugin-plus --public --clone\ncd my-plugin\n\n# Or clone directly\ngit clone https://github.com/davidvkimball/obsidian-sample-plugin-plus.git my-plugin\ncd my-plugin\nrm -rf .git && git init\n\n2. Configure Plugin Identity\n\nUpdate these files with your plugin's info:\n\nmanifest.json:\n\n{\n  \"id\": \"my-plugin\",\n  \"name\": \"My Plugin\",\n  \"version\": \"0.0.1\",\n  \"minAppVersion\": \"1.5.0\",\n  \"description\": \"What your plugin does\",\n  \"author\": \"Your Name\",\n  \"authorUrl\": \"https://yoursite.com\",\n  \"isDesktopOnly\": false\n}\n\n\npackage.json: Update name, description, author, license.\n\nREADME.md: Replace template content with your plugin's documentation.\n\n3. Initialize Development Environment\npnpm install\npnpm obsidian-dev-skills          # Initialize AI skills\n./scripts/setup-ref-links.sh      # Unix\n# or: scripts\\setup-ref-links.bat  # Windows\n\n4. Clean Boilerplate\n\nIn src/main.ts:\n\nRemove sample ribbon icon, status bar, commands, modal, and DOM event\nKeep the settings tab if needed, or remove it\nRename MyPlugin class to your plugin name\n\nDelete styles.css if your plugin doesn't need custom styles.\n\nDevelopment Workflow\nBuild & Test\npnpm dev      # Watch mode — rebuilds on changes\npnpm build    # Production build\npnpm lint     # Check for issues\npnpm lint:fix # Auto-fix issues\npnpm test     # Run unit tests\n\nInstall in Obsidian\n\nCopy build output to your vault:\n\n# Unix\ncp main.js manifest.json styles.css ~/.obsidian/plugins/my-plugin/\n\n# Or create a symlink for development\nln -s $(pwd) ~/.obsidian/plugins/my-plugin\n\n\nEnable the plugin in Obsidian Settings → Community Plugins.\n\nUse Hot Reload plugin for automatic reloading during development.\n\nPlugin Architecture\nEntry Point (src/main.ts)\nimport { Plugin } from 'obsidian';\n\nexport default class MyPlugin extends Plugin {\n  settings: MyPluginSettings;\n\n  async onload() {\n    await this.loadSettings();\n    // Register commands, ribbons, events, views\n  }\n\n  onunload() {\n    // Cleanup: remove event listeners, views, DOM elements\n  }\n\n  async loadSettings() {\n    this.settings = Object.assign({}, DEFAULT_SETTINGS, await this.loadData());\n  }\n\n  async saveSettings() {\n    await this.saveData(this.settings);\n  }\n}\n\nSettings Pattern\n\nSee references/settings.md for the complete settings UI pattern.\n\nCommon Patterns\n\nSee references/patterns.md for:\n\nCommands (simple, editor, check callbacks)\nRibbon icons\nModals\nEvents and lifecycle\nFile operations\nEditor manipulation\nConstraints\nNo auto-git: Never run git commit or git push without explicit approval\nNo eslint-disable: Fix lint issues properly, don't suppress them\nNo any types: Use proper TypeScript types\nSentence case: UI text uses sentence case (ESLint may false-positive on this — ignore if so)\nRelease Checklist\nUpdate version in manifest.json and package.json\nUpdate versions.json with \"version\": \"minAppVersion\"\nRun pnpm build — zero errors\nRun pnpm lint — zero issues\nCreate GitHub release with tag matching version (no v prefix)\nUpload: main.js, manifest.json, styles.css (if used)\nReferences\nSettings UI — Complete settings tab implementation\nCommon Patterns — Commands, modals, events, file operations\nObsidian API Docs — Official documentation"
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/davidvkimball/obsidian-plugin-dev",
    "publisherUrl": "https://clawhub.ai/davidvkimball/obsidian-plugin-dev",
    "owner": "davidvkimball",
    "version": "1.0.0",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/obsidian-plugin-dev",
    "downloadUrl": "https://openagent3.xyz/downloads/obsidian-plugin-dev",
    "agentUrl": "https://openagent3.xyz/skills/obsidian-plugin-dev/agent",
    "manifestUrl": "https://openagent3.xyz/skills/obsidian-plugin-dev/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/obsidian-plugin-dev/agent.md"
  }
}