[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill-fa0131fb-bf31-4892-8cf7-c27dff00475f":3,"$fH-XstBa4sMMxe5xYU2WwtZIyY0l_qApI-uCbqn98yXo":43},{"id":4,"title":5,"description":6,"categoryId":7,"moduleId":8,"tags":9,"prompt":10,"icon":11,"source":12,"sourceUrl":13,"authorId":14,"authorName":15,"isPublic":16,"stars":17,"runs":18,"createdAt":19,"updatedAt":19,"module":20,"category":27,"packages":34},"fa0131fb-bf31-4892-8cf7-c27dff00475f","vscode-extension-guide-en","VS Code扩展开发指南：从脚手架到Marketplace发布","cat_life_career","mod_other","sickn33,other","---\nname: vscode-extension-guide-en\ndescription: \"Guide for VS Code extension development from scaffolding to Marketplace publication\"\ncategory: core-dev\nrisk: safe\nsource: community\nsource_repo: lewiswigmore\u002Fagent-skills\nsource_type: community\ndate_added: \"2026-04-12\"\nauthor: lewiswigmore\ntags: [vscode, extension, ide, typescript, marketplace]\ntools: [claude, cursor, copilot, codex, gemini]\n---\n\n# VS Code Extension Guide (English)\n\n## Overview\n\nAn English guide for building VS Code extensions, covering the full lifecycle from scaffolding to Marketplace publication. Includes reference material on webview patterns, CSP security, TreeView, testing, packaging and troubleshooting. Updated for VS Code 1.74+ APIs.\n\nAdapted from aktsmm\u002Fagent-skills (CC BY-NC-SA 4.0), translated to English with corrections for current VS Code APIs.\n\n## When to Use This Skill\n\n- Use when creating a new VS Code extension from scratch\n- Use when adding commands, keybindings or settings to an extension\n- Use when building TreeView or Webview UI in an extension\n- Use when publishing an extension to the VS Code Marketplace\n- Use when troubleshooting extension activation or packaging issues\n\n## How It Works\n\n### Quick Start\n\n```bash\nnpm install -g yo generator-code\nyo code\n```\n\n### Project Structure\n\n```\nmy-extension\u002F\n├── package.json          # Extension manifest\n├── src\u002Fextension.ts      # Entry point\n├── out\u002F                  # Compiled JS\n├── images\u002Ficon.png       # 128x128 PNG for Marketplace\n└── .vscodeignore         # Exclude files from VSIX\n```\n\n### Building and Packaging\n\n```bash\nnpm run compile           # Build once\nnpm run watch             # Watch mode (F5 to launch debug)\nnpx @vscode\u002Fvsce package  # Creates .vsix\n```\n\n## Reference Topics\n\nThe full skill includes detailed reference documents on:\n\n- **Webview patterns** with CSP security and message passing\n- **TreeView** data providers and drag-and-drop\n- **Testing** setup with @vscode\u002Ftest-electron\n- **Publishing** to the VS Code Marketplace\n- **AI customization** for extension projects\n- **Code review prompts** for extension code\n- **Troubleshooting** common extension issues\n\n## Install the Full Skill\n\nFor the complete guide with all reference documents:\n\n```bash\nnpx skills add lewiswigmore\u002Fagent-skills --skill vscode-extension-guide-en\n```\n\n## Best Practices\n\n- Unify package name, setting keys, command IDs and view IDs before publishing\n- Keep package size under 5MB using `.vscodeignore`\n- Since VS Code 1.74, `activationEvents` are auto-detected for contributed commands and views\n- Always test with the Extension Development Host (F5) before packaging\n\n## Common Pitfalls\n\n- **Problem:** Extension not loading\n  **Solution:** Check `activationEvents`. Since VS Code 1.74, these are auto-detected for contributed commands\u002Fviews.\n\n- **Problem:** Command not found\n  **Solution:** Match the command ID exactly between package.json and your code.\n\n- **Problem:** Webview content not displaying\n  **Solution:** Check your Content Security Policy. Use the webview's `cspSource` property.\n\n## Related Skills\n\n- `@test-driven-development` - Write tests before implementing extension features\n- `@debugging-strategies` - Systematic troubleshooting for extension issues\n\n## Limitations\n- Use this skill only when the task clearly matches the scope described above.\n- Do not treat the output as a substitute for environment-specific validation, testing, or expert review.\n- Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.\n","","imported","https:\u002F\u002Fgithub.com\u002Fsickn33\u002Fantigravity-awesome-skills","user_system_seed","SkillOPIC",true,186,928,"2026-05-16 13:46:33",{"id":8,"name":21,"slug":22,"icon":23,"description":24,"sort":25,"createdAt":26},"其他","other","mdi-page-next-outline","其他类型Skill",5,"2026-05-16 12:53:40",{"id":7,"name":28,"slug":29,"icon":30,"description":31,"moduleId":8,"sort":32,"skillCount":33,"createdAt":26},"职场发展","career","mdi-briefcase-outline","面试准备、简历优化、职业规划",4,575,[35],{"id":36,"skillId":4,"version":37,"fileName":38,"fileSize":39,"filePath":40,"fileHash":41,"manifest":42,"createdAt":19},"047137cd-6c5b-4ec7-a432-4ef735e75167","1.0.0","vscode-extension-guide-en.zip",1734,"uploads\u002Fskills\u002Ffa0131fb-bf31-4892-8cf7-c27dff00475f\u002Fvscode-extension-guide-en.zip","b1de14c3cbe8805f8f61686bc89cd97d0d3988d444ce3e5d3d304cf4aefcddd1","[{\"path\":\"SKILL.md\",\"isDirectory\":false,\"size\":3589}]",{"code":44,"message":45,"data":46},200,"success",{"items":47,"stats":48,"page":51},[],{"averageRating":49,"totalRatings":49,"ratingCounts":50},0,[49,49,49,49,49],{"limit":52,"offset":49,"hasMore":53,"nextOffset":52,"ratedOnly":16},15,false]