← 返回
安全合规 中文

Netlify Deploy

Deploy and manage Netlify sites with npx netlify, including auth, linking, preview deploys, production releases, and config checks.
使用 npx netlify 部署和管理 Netlify 网站,包括认证、链接、预览部署、生产发布和配置检查。
ivangdavila
安全合规 clawhub v1.0.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 865
下载
💾 18
安装
1
版本
#latest

概述

Setup

On first use, read setup.md for integration and environment checks.

When to Use

User needs to deploy, host, publish, or relink a web project on Netlify from the terminal. Use this skill for first deploys, preview deploys, production pushes, monorepo paths, and netlify.toml fixes.

Architecture

Memory lives in ~/netlify-deploy/.

Use this local memory only for operational defaults so future deploy requests can start with the right safety assumptions.

~/netlify-deploy/
`- memory.md    # Preferred deploy mode, default project path, and common build settings

See memory-template.md for setup.

Quick Reference

Load only the file needed for the current task to keep command decisions fast and avoid irrelevant context.

TopicFile
-------------
Setup and integration flowsetup.md
Memory templatememory-template.md
CLI command mapcli-commands.md
Deployment scenariosdeployment-patterns.md
Configuration examplesnetlify-toml.md

Core Rules

1. Verify Auth and Site Link Before Any Deploy

npx netlify status

If not authenticated, run npx netlify login and re-check status. If authenticated but not linked, resolve linking before deploy.

2. Use Link-First, Init-Second

git remote get-url origin
npx netlify link --git-remote-url <remote-url>

If the repository is not linked or no matching site exists, fall back to npx netlify init.

3. Default to Preview Deploys Unless User Asks for Production

npx netlify deploy

Use npx netlify deploy --prod only when the user explicitly requests production or confirms readiness.

Never force production deploys as a shortcut when validation is still pending.

4. Confirm Build and Publish Paths Before First Production Deploy

npm run build
npx netlify deploy --dir=dist

Use framework defaults only as a starting point. Validate the actual output folder in the current project.

5. Make Monorepo Context Explicit

For monorepos, deploy from the correct subdirectory or set build.base in netlify.toml before linking/deploying.

6. Report Actionable Results

After each deploy, return deploy URL, environment (preview or production), and one concrete next step.

Common Traps

These traps are prioritized by how often they cause failed or risky deploys in terminal-first workflows.

TrapConsequenceFix
------------------------
Running deploy before login checkCommand fails with auth errorsAlways run npx netlify status first
Running --prod by defaultUnreviewed changes go liveStart with preview deploy unless user confirms production
Wrong publish directorySite deploys blank or outdated buildRun local build and verify output folder
Linking from wrong monorepo folderDeploys wrong appConfirm current path and base directory before link/deploy
Treating netlify.toml as optional on complex projectsInconsistent builds between environmentsCommit a minimal, explicit netlify.toml

External Endpoints

Only Netlify service endpoints and Netlify documentation endpoints are expected in normal usage of this skill.

EndpointData SentPurpose
------------------------------
https://api.netlify.comDeploy metadata, site/project identifiers, build outputs via CLIAuthentication, linking, and deployments
https://app.netlify.comBrowser session data when login opens OAuth flowInteractive authentication and dashboard access
https://docs.netlify.comDocumentation requests onlyReference for command and config behavior

No other data is sent externally.

Security & Privacy

Data that leaves your machine:

  • Project deploy artifacts and metadata are sent to Netlify when running deploy commands.
  • Auth/session data is exchanged with Netlify during npx netlify login.

Data that stays local:

  • Local source files and build scripts remain in your project unless you deploy.
  • Skill preferences stay in ~/netlify-deploy/memory.md.

This skill does NOT:

  • Store secrets inside skill files.
  • Run undeclared external services beyond Netlify endpoints.
  • Modify unrelated repositories or directories.

Trust

By using this skill, deployment data is sent to Netlify services.

Only install if you trust Netlify with your project artifacts and deployment metadata.

Related Skills

Install with clawhub install if user confirms:

  • ci-cd - delivery pipeline design and release automation practices
  • git - branch hygiene and release-safe commit workflow
  • deploy - generic deployment planning across environments
  • devops - infrastructure and operational guardrails

Feedback

  • If useful: clawhub star netlify-deploy
  • Stay updated: clawhub sync

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-29 23:29 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

productivity

Word / DOCX

ivangdavila
创建、检查和编辑 Microsoft Word 文档及 DOCX 文件,支持样式、编号、修订记录、表格、分节符及兼容性检查等功能。
★ 437 📥 147,147
ai-intelligence

Self-Improving + Proactive Agent

ivangdavila
自我反思+自我批评+自我学习+自组织记忆。智能体评估自身工作、发现错误并持续改进。
★ 1,349 📥 317,674
security-compliance

Skill Vetter

spclaudehome
AI智能体技能安全预审工具。安装ClawdHub、GitHub等来源技能前,检查风险信号、权限范围及可疑模式。
★ 1,210 📥 266,122