Token导航 LogoToken导航TokenDH.com
开发敏感数据github未标认证来源可访问许可证需确认审计提醒

vscode-sftp-configVS Code sftp 配置

Agent Skill

vscode-sftp-config 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

1,126

周安装

46

GitHub Stars

4,213

下载量

364
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:vscode-sftp-config(VS Code sftp 配置)
来源仓库:https://github.com/libukai/awesome-agent-skills
仓库路径:skills/vscode-sftp-config
安装命令:
npx skills add https://github.com/libukai/awesome-agent-skills --skill vscode-sftp-config
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/libukai/awesome-agent-skills --skill vscode-sftp-config

简介

用于处理 GitHub 仓库、Issue、Pull Request 等协作信息。

  • 适合在远程部署场景中管理 SFTP 配置与相关议题。
  • 支持对 Issue 和 PR 进行归类与上下文提取。
  • 安装前应确认是否会触发文件传输或路径写入操作。vscode-sftp-config 属于开发类 Skill,可作为该场景下的辅助能力补充。
  • 建议参考原始 README 了解具体集成方式与安全边界。

SKILL.md

VSCode SFTP Configuration

Configure 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.

Core Workflow

Step 1: Analyze Project Structure

Identify the static files to deploy:

  • Pure static projects: HTML, CSS, JS in root directory
  • Build-based projects: Look for dist/, build/, or public/ output directories
  • Static generators: Check for build commands in package.json or documentation

Ask the user for deployment details:

  1. Remote server address (IP or hostname)
  2. Remote path (e.g., /var/www/sitename)
  3. SSH authentication method (password or SSH key path)
  4. Domain name(s) for Nginx configuration
  5. Whether this is a main domain or subdomain

Step 2: Generate SFTP Configuration

VSCode Extension: This skill uses the code-sftp extension by Satiro Marra.

Step 2A: Configure SSH Config (Recommended Best Practice)

Before creating sftp.json, set up SSH host alias in ~/.ssh/config for better management:

Host project-prod
    HostName 82.157.29.215
    User root
    Port 22
    IdentityFile ~/.ssh/id_rsa
    IdentitiesOnly yes
    ServerAliveInterval 60
    ServerAliveCountMax 3

Benefits of SSH config:

  • ✅ Eliminates SFTP extension warnings (Section for 'IP' not found)
  • ✅ Use host alias in terminal: ssh project-prod
  • ✅ Centralized SSH settings (connection keep-alive, compression, etc.)
  • ✅ Easier to manage multiple environments (dev, staging, prod)

Check if ~/.ssh/config already has the server:

cat ~/.ssh/config | grep -A 5 "82.157.29.215"

If found, use that existing host alias. If not, add a new entry.

Step 2B: Create SFTP Configuration

Create .vscode/sftp.json using the template from assets/sftp.json.template.

Essential configuration fields:

  • name: Profile name for easy identification
  • host: SSH host alias (e.g., "Tencent_Pro") or IP address
  • protocol: "sftp" for SFTP (secure) or "ftp" for FTP
  • port: 22 for SFTP, 21 for FTP
  • username: SSH/FTP username
  • privateKeyPath: Path to SSH private key (e.g., /Users/username/.ssh/id_rsa)
  • remotePath: Remote directory path (e.g., /var/www/sitename)
  • uploadOnSave: false recommended (manual sync is safer)

Optional advanced fields:

  • ignore: Array of files/folders to exclude from upload
  • watcher: File watching configuration for auto-upload
  • syncOption: Sync behavior (delete, update, skip existing files)
  • useTempFile: Use temporary files during upload
  • downloadOnOpen: Auto-download files when opened

Customize for the project:

  • Replace {{HOST_ALIAS}} with SSH config alias (recommended) or IP address
  • Replace other {{PLACEHOLDERS}} with actual values
  • Add project-specific files to ignore array (.claude, nginx.conf, build artifacts, etc.)
  • For build-based projects: Keep uploadOnSave: false, sync manually after build
  • For pure static projects: Optionally enable uploadOnSave: true for instant deployment

Step 3: Generate Nginx Configuration

Choose the appropriate template:

  • Main domain: Use assets/nginx-static.conf.template for primary website
  • Subdomain: Use assets/nginx-subdomain.conf.template for subdomains like slides.example.com

Customize the configuration:

  1. Replace {{DOMAIN}} with actual domain name
  2. Replace {{DOCUMENT_ROOT}} with remote path (e.g., /var/www/aiseed)
  3. Adjust SSL certificate paths if using custom certificates
  4. Configure subdomain-specific settings if needed

Include essential features from references/nginx-best-practices.md:

  • HTTP → HTTPS redirect
  • HTTP/2 support
  • Gzip compression
  • Static resource caching (1 year for JS/CSS/images, 1 hour for HTML)
  • Security headers (HSTS, X-Frame-Options, CSP, etc.)
  • Access and error logs

Step 4: Provide Deployment Instructions

Generate a deployment checklist based on assets/deploy-checklist.md:

  1. Initial setup (one-time):

- Install VSCode extension: code-sftp by Satiro Marra - Open Command Palette (Cmd/Ctrl+Shift+P) → SFTP: Config to create .vscode/sftp.json - Verify SSH access to server: ssh user@host - Ensure remote directory exists: ssh user@host "mkdir -p /var/www/sitename" - Set proper permissions: ssh user@host "chmod 755 /var/www/sitename"

  1. File deployment:

- For build projects: Run build command first (e.g., npm run build) - Open VSCode Command Palette → SFTP: Sync Local → Remote to upload all files - Or right-click folder in Explorer → "Upload Folder" - Monitor upload progress in VSCode Output panel (View → Output → SFTP) - Verify files uploaded: ssh user@host "ls -la /var/www/sitename"

  1. Nginx configuration:

- Upload generated config to /etc/nginx/sites-available/ - Create symlink: ln -s /etc/nginx/sites-available/site.conf /etc/nginx/sites-enabled/ - Test config: sudo nginx -t - Reload: sudo systemctl reload nginx

  1. SSL/TLS setup (if not configured):

- Refer to references/ssl-security.md for certificate setup - Use Let's Encrypt for free certificates: certbot --nginx -d example.com

  1. Verification:

- Test HTTPS: curl -I https://example.com - Check security headers: Use securityheaders.com - Test performance: Use PageSpeed Insights

Step 5: Document the Setup

Update project documentation (README.md or CLAUDE.md) with:

  • Deployment method (SFTP to /var/www/path)
  • SFTP configuration location (.vscode/sftp.json)
  • Nginx configuration reference
  • Build commands (if applicable)
  • Deployment workflow for future updates

Benefits of This Architecture

Explain to users why static + SFTP deployment is advantageous:

  1. Simplicity: Edit → Upload → Live (no build pipelines, no containers)
  2. Performance: Nginx serves static files faster than Node.js/Python backends
  3. Reliability: No backend processes to crash or hang
  4. Resource efficiency: Lower server memory and CPU usage
  5. Cost effective: Can host on minimal VPS or shared hosting
  6. Easy rollback: Copy previous version from backup directory

When NOT to Use This Architecture

Static + SFTP deployment is not appropriate when:

  • Backend API endpoints are required
  • Server-side form processing is needed (unless using external services like n8n, FormSpree)
  • User authentication/sessions are required
  • Database interactions are needed
  • Server-side rendering (SSR) is required

Resources

references/

  • ssh-config.md - SSH config file setup and best practices (host aliases, jump hosts, security)
  • nginx-best-practices.md - Comprehensive Nginx optimization guide for static sites
  • ssl-security.md - SSL/TLS certificate setup and security configuration

assets/

  • sftp.json.template - VSCode SFTP configuration template (array format, uses SSH host alias)
  • nginx-static.conf.template - Main domain Nginx configuration template
  • nginx-subdomain.conf.template - Subdomain Nginx configuration template
  • deploy-checklist.md - Step-by-step deployment verification checklist

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

39.18%
按下载量换算143

Claude

28.06%
按下载量换算102

Cursor

20.57%
按下载量换算75

Gemini CLI

9.59%
按下载量换算35

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills