[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6FCN0ZBMEZ0DXVH5XZYSFKZ":3,"skill-same:01M6FCN0ZBMEZ0DXVH5XZYSFKZ":48},{"skillNo":4,"name":5,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":21,"linkOnly":22,"markdownContent":23,"markdownBody":23,"frontMatter":24,"refName":25,"commitSha":26,"skillDirectory":27,"forksCount":28,"repositoryHtmlUrl":29,"repositoryHomepageUrl":30,"ownerHtmlUrl":31,"ownerBlogUrl":6,"ownerDescription":32,"updatedAt":33,"install":34,"resources":47},"01M6FCN0ZBMEZ0DXVH5XZYSFKZ","vscode-sftp-config",null,"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\u002Flibukai\u002Fawesome-agent-skills\u002Fvscode-sftp-config\u002FSKILL.md",[],[18,19,20],"vscode","config","vscode sftp config","2026-11-10 10:12:30",false,"# VSCode SFTP Configuration\n\nConfigure VSCode SFTP for deploying static websites to production servers. Provides complete workflow including production-ready Nginx configuration templates with security headers, caching strategies, and performance optimizations.\n\n## Core Workflow\n\n### Step 1: Analyze Project Structure\n\nIdentify the static files to deploy:\n- **Pure static projects**: HTML, CSS, JS in root directory\n- **Build-based projects**: Look for `dist\u002F`, `build\u002F`, or `public\u002F` output directories\n- **Static generators**: Check for build commands in `package.json` or documentation\n\nAsk the user for deployment details:\n1. Remote server address (IP or hostname)\n2. Remote path (e.g., `\u002Fvar\u002Fwww\u002Fsitename`)\n3. SSH authentication method (password or SSH key path)\n4. Domain name(s) for Nginx configuration\n5. Whether this is a main domain or subdomain\n\n### Step 2: Generate SFTP Configuration\n\n**VSCode Extension**: This skill uses the [code-sftp](https:\u002F\u002Fmarketplace.visualstudio.com\u002Fitems?itemName=satiromarra.code-sftp) extension by Satiro Marra.\n\n#### Step 2A: Configure SSH Config (Recommended Best Practice)\n\nBefore creating `sftp.json`, set up SSH host alias in `~\u002F.ssh\u002Fconfig` for better management:\n\n```ssh-config\nHost project-prod\n    HostName 82.157.29.215\n    User root\n    Port 22\n    IdentityFile ~\u002F.ssh\u002Fid_rsa\n    IdentitiesOnly yes\n    ServerAliveInterval 60\n    ServerAliveCountMax 3\n```\n\n**Benefits of SSH config**:\n- ✅ Eliminates SFTP extension warnings (`Section for 'IP' not found`)\n- ✅ Use host alias in terminal: `ssh project-prod`\n- ✅ Centralized SSH settings (connection keep-alive, compression, etc.)\n- ✅ Easier to manage multiple environments (dev, staging, prod)\n\nCheck if `~\u002F.ssh\u002Fconfig` already has the server:\n```bash\ncat ~\u002F.ssh\u002Fconfig | grep -A 5 \"82.157.29.215\"\n```\n\nIf found, use that existing host alias. If not, add a new entry.\n\n#### Step 2B: Create SFTP Configuration\n\nCreate `.vscode\u002Fsftp.json` using the template from `assets\u002Fsftp.json.template`.\n\n**Essential configuration fields**:\n- `name`: Profile name for easy identification\n- `host`: **SSH host alias** (e.g., `\"Tencent_Pro\"`) or IP address\n- `protocol`: \"sftp\" for SFTP (secure) or \"ftp\" for FTP\n- `port`: 22 for SFTP, 21 for FTP\n- `username`: SSH\u002FFTP username\n- `privateKeyPath`: Path to SSH private key (e.g., `\u002FUsers\u002Fusername\u002F.ssh\u002Fid_rsa`)\n- `remotePath`: Remote directory path (e.g., `\u002Fvar\u002Fwww\u002Fsitename`)\n- `uploadOnSave`: `false` recommended (manual sync is safer)\n\n**Optional advanced fields**:\n- `ignore`: Array of files\u002Ffolders to exclude from upload\n- `watcher`: File watching configuration for auto-upload\n- `syncOption`: Sync behavior (delete, update, skip existing files)\n- `useTempFile`: Use temporary files during upload\n- `downloadOnOpen`: Auto-download files when opened\n\nCustomize for the project:\n- Replace `{{HOST_ALIAS}}` with SSH config alias (recommended) or IP address\n- Replace other `{{PLACEHOLDERS}}` with actual values\n- Add project-specific files to `ignore` array (`.claude`, `nginx.conf`, build artifacts, etc.)\n- For build-based projects: Keep `uploadOnSave: false`, sync manually after build\n- For pure static projects: Optionally enable `uploadOnSave: true` for instant deployment\n\n### Step 3: Generate Nginx Configuration\n\nChoose the appropriate template:\n- **Main domain**: Use `assets\u002Fnginx-static.conf.template` for primary website\n- **Subdomain**: Use `assets\u002Fnginx-subdomain.conf.template` for subdomains like `slides.example.com`\n\nCustomize the configuration:\n1. Replace `{{DOMAIN}}` with actual domain name\n2. Replace `{{DOCUMENT_ROOT}}` with remote path (e.g., `\u002Fvar\u002Fwww\u002Faiseed`)\n3. Adjust SSL certificate paths if using custom certificates\n4. Configure subdomain-specific settings if needed\n\nInclude essential features from `references\u002Fnginx-best-practices.md`:\n- HTTP → HTTPS redirect\n- HTTP\u002F2 support\n- Gzip compression\n- Static resource caching (1 year for JS\u002FCSS\u002Fimages, 1 hour for HTML)\n- Security headers (HSTS, X-Frame-Options, CSP, etc.)\n- Access and error logs\n\n### Step 4: Provide Deployment Instructions\n\nGenerate a deployment checklist based on `assets\u002Fdeploy-checklist.md`:\n\n1. **Initial setup** (one-time):\n   - Install VSCode extension: [code-sftp by Satiro Marra](https:\u002F\u002Fmarketplace.visualstudio.com\u002Fitems?itemName=satiromarra.code-sftp)\n   - Open Command Palette (Cmd\u002FCtrl+Shift+P) → `SFTP: Config` to create `.vscode\u002Fsftp.json`\n   - Verify SSH access to server: `ssh user@host`\n   - Ensure remote directory exists: `ssh user@host \"mkdir -p \u002Fvar\u002Fwww\u002Fsitename\"`\n   - Set proper permissions: `ssh user@host \"chmod 755 \u002Fvar\u002Fwww\u002Fsitename\"`\n\n2. **File deployment**:\n   - For build projects: Run build command first (e.g., `npm run build`)\n   - Open VSCode Command Palette → `SFTP: Sync Local → Remote` to upload all files\n   - Or right-click folder in Explorer → \"Upload Folder\"\n   - Monitor upload progress in VSCode Output panel (View → Output → SFTP)\n   - Verify files uploaded: `ssh user@host \"ls -la \u002Fvar\u002Fwww\u002Fsitename\"`\n\n3. **Nginx configuration**:\n   - Upload generated config to `\u002Fetc\u002Fnginx\u002Fsites-available\u002F`\n   - Create symlink: `ln -s \u002Fetc\u002Fnginx\u002Fsites-available\u002Fsite.conf \u002Fetc\u002Fnginx\u002Fsites-enabled\u002F`\n   - Test config: `sudo nginx -t`\n   - Reload: `sudo systemctl reload nginx`\n\n4. **SSL\u002FTLS setup** (if not configured):\n   - Refer to `references\u002Fssl-security.md` for certificate setup\n   - Use Let's Encrypt for free certificates: `certbot --nginx -d example.com`\n\n5. **Verification**:\n   - Test HTTPS: `curl -I https:\u002F\u002Fexample.com`\n   - Check security headers: Use securityheaders.com\n   - Test performance: Use PageSpeed Insights\n\n### Step 5: Document the Setup\n\nUpdate project documentation (README.md or CLAUDE.md) with:\n- Deployment method (SFTP to `\u002Fvar\u002Fwww\u002Fpath`)\n- SFTP configuration location (`.vscode\u002Fsftp.json`)\n- Nginx configuration reference\n- Build commands (if applicable)\n- Deployment workflow for future updates\n\n## Benefits of This Architecture\n\nExplain to users why static + SFTP deployment is advantageous:\n\n1. **Simplicity**: Edit → Upload → Live (no build pipelines, no containers)\n2. **Performance**: Nginx serves static files faster than Node.js\u002FPython backends\n3. **Reliability**: No backend processes to crash or hang\n4. **Resource efficiency**: Lower server memory and CPU usage\n5. **Cost effective**: Can host on minimal VPS or shared hosting\n6. **Easy rollback**: Copy previous version from backup directory\n\n## When NOT to Use This Architecture\n\nStatic + SFTP deployment is not appropriate when:\n- Backend API endpoints are required\n- Server-side form processing is needed (unless using external services like n8n, FormSpree)\n- User authentication\u002Fsessions are required\n- Database interactions are needed\n- Server-side rendering (SSR) is required\n\n## Resources\n\n### references\u002F\n- `ssh-config.md` - SSH config file setup and best practices (host aliases, jump hosts, security)\n- `nginx-best-practices.md` - Comprehensive Nginx optimization guide for static sites\n- `ssl-security.md` - SSL\u002FTLS certificate setup and security configuration\n\n### assets\u002F\n- `sftp.json.template` - VSCode SFTP configuration template (array format, uses SSH host alias)\n- `nginx-static.conf.template` - Main domain Nginx configuration template\n- `nginx-subdomain.conf.template` - Subdomain Nginx configuration template\n- `deploy-checklist.md` - Step-by-step deployment verification checklist\n",{},"main","def8531e65114c0fca8fb8551c1871ee0eed705c","skills\u002Flibukai\u002Fawesome-agent-skills\u002Fvscode-sftp-config",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":7,"skillName":5,"commands":35,"prompt":45,"zipAvailable":46},[36,39,42],{"tool":37,"command":38},"npx","npx skills add ComeOnOliver\u002Fskillshub --skill vscode-sftp-config",{"tool":40,"command":41},"bunx","bunx skills add ComeOnOliver\u002Fskillshub --skill vscode-sftp-config",{"tool":43,"command":44},"pnpm","pnpm dlx skills add ComeOnOliver\u002Fskillshub --skill vscode-sftp-config","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Flibukai\u002Fawesome-agent-skills\u002Fvscode-sftp-config\u002FSKILL.md",true,[],[49,58,67,76,82,88],{"skillNo":50,"name":51,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":52,"categories":53,"keywords":54,"publishedAt":21},"01M6FKJN13GMG4KY57J3QD8GY5","model-hierarchy-skill","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzscole\u002Fmodel-hierarchy-skill\u002Fmodel-hierarchy-skill\u002FSKILL.md",[],[55,56,57],"model","model hierarchy","model hierarchy skill",{"skillNo":59,"name":60,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":61,"categories":62,"keywords":63,"publishedAt":21},"01M6FKJJJ6GCAMR4PPPRD12M5X","zoom-mcp","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-mcp\u002FSKILL.md",[],[64,65,66],"MCP","zoom","zoom mcp",{"skillNo":68,"name":69,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":70,"categories":71,"keywords":72,"publishedAt":21},"01M6FKJE3KYT3KPEZMEEHYKA6K","zoom-apps-sdk","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-apps-sdk\u002FSKILL.md",[],[73,74,75,65],"sdk","zoom apps sdk","apps",{"skillNo":77,"name":78,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":21},"01M6FKJ9EDH9Q5VWDF8HAJRSP0","windows","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwindows\u002FSKILL.md",[],[78],{"skillNo":83,"name":84,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":21},"01M6FKJ666BEEFC3AE9GJ72Q93","whiteboard","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwhiteboard\u002FSKILL.md",[],[84],{"skillNo":89,"name":90,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":91,"categories":92,"keywords":93,"publishedAt":21},"01M6FKJ21WFCDGTJQ2Q91T9DVW","websockets","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwebsockets\u002FSKILL.md",[],[90]]