mcpbeat Sign in

Vscode Sftp Config Skill for Claude

This skill should be used when setting up SFTP deployment for static websites to production servers, including converting projects from Docker/Express to static hosting, deploying Vue/React/Angular builds, setting up Slidev presentations, or configuring Hugo/Jekyll/Gatsby sites. Use this when the user asks to "setup SFTP deployment", "deploy static site to server", "configure Nginx for static files", "convert from Docker to static hosting", "deploy Vue build to production", "setup subdomain hosting", or "configure SFTP in VS Code". Provides SFTP configuration templates and production-ready Nginx configurations with security headers and caching.

11k tokens
context cost
the whole folder, loaded on every use
8
files
instructions only
0
copies elsewhere
how many repositories repackaged it
4908
stars on the repo
on the repository, not the skill itself

Install

one command, takes just this skill from the repository
npx skills add https://github.com/libukai/awesome-agent-skills --skill vscode-sftp-config

The instruction itself

14 sections, as written by the author

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:

  • Remote server address (IP or hostname)
  • Remote path (e.g., /var/www/sitename)
  • SSH authentication method (password or SSH key path)
  • Domain name(s) for Nginx configuration
  • 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.

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:

  • Replace {{DOMAIN}} with actual domain name
  • Replace {{DOCUMENT_ROOT}} with remote path (e.g., /var/www/aiseed)
  • Adjust SSL certificate paths if using custom certificates
  • 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:

  • 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"
  • 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"
  • 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
  • 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
  • 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:

  • Simplicity: Edit → Upload → Live (no build pipelines, no containers)
  • Performance: Nginx serves static files faster than Node.js/Python backends
  • Reliability: No backend processes to crash or hang
  • Resource efficiency: Lower server memory and CPU usage
  • Cost effective: Can host on minimal VPS or shared hosting
  • 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

Other skills for the same job

different authors, same section of the catalogue
Azure Kubernetes Automatic Readiness
by microsoft
vendor ×3

Assess Kubernetes workloads and cluster configuration for AKS Automatic compatibility. Identifies incompatibilities, generates fixes, and guides migration from AKS Standard to AKS Automatic. WHEN: migrate to AKS Automatic, check AKS Automatic readiness, validate manifests for Automatic, assess cluster for Automatic compatibility, fix deployment for Automatic compatibility, identify AKS Automatic migration blockers, is my cluster ready for AKS Automatic.

13k tokens
Capacity
by microsoft
vendor ×3

Discovers available Azure OpenAI model capacity across regions and projects. Analyzes quota limits, compares availability, and recommends optimal deployment locations based on capacity requirements. USE FOR: find capacity, check quota, where can I deploy, capacity discovery, best region for capacity, multi-project capacity search, quota analysis, model availability, region comparison, check TPM availability. DO NOT USE FOR: actual deployment (hand off to preset or customize after discovery), quota increase requests (direct user to Azure Portal), listing existing deployments.

6k tokens scripts
Customize
by microsoft
vendor ×3

Interactive guided deployment flow for Azure OpenAI models with full customization control. Step-by-step selection of model version, SKU (GlobalStandard/Standard/ProvisionedManaged), capacity, RAI policy (content filter), and advanced options (dynamic quota, priority processing, spillover). USE FOR: custom deployment, customize model deployment, choose version, select SKU, set capacity, configure content filter, RAI policy, deployment options, detailed deployment, advanced deployment, PTU deployment, provisioned throughput. DO NOT USE FOR: quick deployment to optimal region (use preset).

8k tokens
Deploy Model
by microsoft
vendor ×3

Unified Azure OpenAI model deployment skill with intelligent intent-based routing. Handles quick preset deployments, fully customized deployments (version/SKU/capacity/RAI policy), and capacity discovery across regions and projects. USE FOR: deploy model, deploy gpt, create deployment, model deployment, deploy openai model, set up model, provision model, find capacity, check model availability, where can I deploy, best region for model, capacity analysis. DO NOT USE FOR: listing existing deployments (use foundry_models_deployments_list MCP tool), deleting deployments, agent creation (use agent/create), project creation (use project/create).

26k tokens scripts
Preset
by microsoft
vendor ×3

Intelligently deploys Azure OpenAI models to optimal regions by analyzing capacity across all available regions. Automatically checks current region first and shows alternatives if needed. USE FOR: quick deployment, optimal region, best region, automatic region selection, fast setup, multi-region capacity check, high availability deployment, deploy to best location. DO NOT USE FOR: custom SKU selection (use customize), specific version selection (use customize), custom capacity configuration (use customize), PTU deployments (use customize).

9k tokens
Lamindb
by christophacham
×3

This skill should be used when working with LaminDB, an open-source data framework for biology that makes data queryable, traceable, reproducible, and FAIR. Use when managing biological datasets (scRNA-seq, spatial, flow cytometry, etc.), tracking computational workflows, curating and validating data with biological ontologies, building data lakehouses, or ensuring data lineage and reproducibility in biological research. Covers data management, annotation, ontologies (genes, cell types, diseases, tissues), schema validation, integrations with workflow managers (Nextflow, Snakemake) and MLOps platforms (W&B, MLflow), and deployment strategies.

22k tokens
Latchbio Integration
by christophacham
×3

Latch platform for bioinformatics workflows. Build pipelines with Latch SDK, @workflow/@task decorators, deploy serverless workflows, LatchFile/LatchDir, Nextflow/Snakemake integration.

12k tokens
Modal
by christophacham
×3

Run Python code in the cloud with serverless containers, GPUs, and autoscaling. Use when deploying ML models, running batch processing jobs, scheduling compute-intensive tasks, or serving APIs that require GPU acceleration or dynamic scaling.

17k tokens

How to use it

Copy the folder

Take libukai/vscode-sftp-config from the repository into ~/.claude/skills for personal use, or into .claude/skills inside a project.

Check the name does not clash

The agent identifies a skill by the name field in its header. Two skills with the same name cannot sit side by side — one of them will be ignored.