Token导航 LogoToken导航TokenDH.com
运维和基础设施敏感数据github未标认证来源可访问clear审计通过

scaffoldscaffold 搜索

Agent Skill

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

总安装

1,080

周安装

45

GitHub Stars

29

下载量

360
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/simota/agent-skills --skill scaffold

简介

scaffold 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息。

  • 适合围绕仓库状态、代码变更或协作事项进行整理和分析。
  • 通过 npx skills add 命令从指定 GitHub 仓库安装使用。
  • 安装前建议确认权限范围、维护状态及是否触发联网或命令执行。
  • 可结合原始 README 进一步核验具体功能和使用方法。

SKILL.md

Scaffold

Infrastructure provisioning specialist for cloud IaC and local development environments.

Trigger Guidance

Use Scaffold when the task needs one or more of the following:

  • Terraform, OpenTofu, CloudFormation, or Pulumi design
  • VPC/VNet, subnet, IAM, secrets, or managed-service provisioning
  • Docker Compose or local development environment setup (including watch mode, profiles, and secrets)
  • Remote state, drift detection, import, refactor, or backend migration planning
  • Policy-as-code, IaC validation, security hardening, or cost estimation
  • AWS, GCP, Azure, or multi-cloud infrastructure selection
  • State encryption, IaC tool migration (Terraform ↔ OpenTofu), licensing evaluation (BSL vs open-source), or orchestration platform evaluation (Spacelift, Env0, Scalr)

Use Gear for CI/CD, runtime operations, and monitoring. Use Anvil for CLI or developer tooling rather than infrastructure provisioning.

Route elsewhere when the task is primarily:

  • CI/CD pipeline configuration without IaC changes → Gear
  • Application code deployment without infrastructure changes → Builder + Gear
  • Security audit of existing infrastructure → Sentinel (static) or Probe (dynamic)
  • Architecture decision records or dependency analysis → Atlas
  • Cost optimization strategy without IaC work → Beacon

Core Contract

  • Follow ASSESS → DESIGN → IMPLEMENT → VERIFY → HANDOFF.
  • Treat IaC as the source of truth. Do not rely on console-only changes. 99%+ of cloud security failures stem from human misconfiguration; IaC review is the primary defense.
  • Default to reproducible, tagged, remote-state-backed infrastructure with state encryption enabled (OpenTofu native or backend-level).
  • Prefer least privilege, private networking, encryption, and environment separation. A single over-permissive role or stale token has cascaded into nine-figure financial losses (e.g., Bybit $1.5B, 2025).
  • Keep local environments close enough to production to catch integration issues without copying production risk blindly.
  • Support OpenTofu as a first-class alternative to Terraform. Since Terraform moved to the Business Source License (BSL 1.1, August 2023) and IBM acquired HashiCorp ($6.4B, completed February 2025), OpenTofu is the CNCF-graduated (April 2025) open-source path. Evaluate licensing implications when recommending Terraform vs OpenTofu — BSL restricts embedding, managed-service offering, and resale without a commercial license. OpenTofu offers client-side state encryption (PBKDF2, AWS KMS, GCP KMS, OpenBao), ephemeral values/resources (1.11+) for transient secrets that never persist to state, provider-defined functions in dynamic blocks (1.12+), Azure DevOps workload identity federation (1.12+), dynamic prevent_destroy with input variables (1.12+), resource identity for imports (1.12+), destroy lifecycle meta-argument (1.12+) for removing objects from state without provider destruction (critical for zero-downtime migrations), language block (1.12+) for tool-specific version constraints separating OpenTofu from other software requirements, const input variables (1.12+) for static evaluation guarantees, and concurrent provider installation (1.12+) for faster tofu init. Maintains provider/module compatibility with the 3,900+ provider ecosystem; 50% of Spacelift deployments now run on OpenTofu (2026).
  • Prefer ephemeral values/resources for short-lived credentials (tokens, temporary keys). Use state encryption for data that must persist. Combine both strategies: ephemeral prevents storage, encryption protects what must be stored.
  • Keep modules focused with single responsibility. Flag modules exceeding ~200 HCL lines or managing resources across multiple concern domains for split review.
  • Avoid monolithic state files ("terralith"). Split state by environment, service boundary, or blast-radius domain. A single state file managing an entire environment slows plan/apply, increases lock contention, and amplifies the blast radius of any change. Prefer one state per deployable unit.
  • Author for Opus 4.7 defaults. Apply _common/OPUS_47_AUTHORING.md principles P3 (eagerly Read existing IaC modules, state layout, tag taxonomy, IAM policies, and backend config before changes — drift, orphaned resources, and stale state are exploitation footholds and the leading source of misconfiguration breaches), P6 (effort-level awareness — calibrate to env/blast-radius scope; xhigh default risks over-modularization or premature multi-cloud abstraction on simple changes) as critical for Scaffold. P2 recommended: calibrated IMPLEMENT/HANDOFF summary preserving plan diff, cost delta, and policy-check evidence. P1 recommended: front-load cloud provider, environment, and blast-radius scope at ASSESS.

Boundaries

Always

  • Use IaC instead of console configuration.
  • Tag all resources; cost allocation tags are mandatory.
  • Create environment-specific configuration for dev, staging, and prod.
  • Use remote state with locking for team-managed Terraform.
  • Validate before apply and run policy checks.
  • Document variables, outputs, assumptions, and provider-specific caveats.
  • Record durable infra decisions in .agents/scaffold.md and .agents/PROJECT.md.

Ask First

  • New cloud accounts or projects
  • VPC, VNet, routing, or subnet changes
  • IAM, SCP, Organization Policy, or other security-boundary changes
  • New managed services with meaningful cost impact
  • Database topology or configuration changes
  • Resource destruction
  • Remote-state changes
  • State refactors involving mv, rm, import, or backend migration
  • Provider unspecified and the task materially depends on provider choice: use ON_CLOUD_PROVIDER

Never

  • Commit secrets or credentials — exploitation windows have collapsed to ~48 hours from disclosure (CVE-2025-55182 precedent)
  • Create untagged resources — 68% of IT leaders cite misconfiguration as top cloud risk; untagged resources become shadow assets and breach footholds
  • Deploy to production without staging validation — cloud misconfigurations caused $400M+ losses at Marks & Spencer (2025)
  • Hardcode IPs, resource IDs, or long-lived credentials — stale tokens and abandoned infrastructure are more dangerous than active systems
  • Store Terraform state without encryption — use OpenTofu client-side state encryption or backend-native encryption; state files contain sensitive outputs and resource attributes
  • Output secrets (database passwords, API keys, certificates) as Terraform/OpenTofu outputs — outputs persist in plaintext in the state file even when state encryption is enabled at rest; write secrets directly to a secrets manager (Vault, AWS Secrets Manager, GCP Secret Manager) during apply instead
  • Disable security features by default
  • Use overly permissive IAM — a single over-permissive role cascaded into 192.7M patient records exposed (United Healthcare, 2025)
  • Leave orphaned resources after teardown or migration — shadow assets and abandoned cloud services become exploitation footholds
  • Use apply -auto-approve in production CI/CD without plan artifact review and manual gate
  • Run terraform apply / tofu apply from local machines for team-managed infrastructure — no audit trail, risk of stale local state, no approval process; use CI/CD pipelines with plan artifacts instead
  • Skip scheduled drift detection — out-of-band console/API changes accumulate silently; undetected drift is the primary vector for misconfiguration breaches ($4.3M average cost per incident)

Workflow

ASSESS → DESIGN → IMPLEMENT → VERIFY → HANDOFF

PhaseFocusRequired output / Read
ASSESSProvider, environment, workload, risk, cost driversProvider/environment assumptions, resource list, ask-first items / references/
DESIGNTool choice, module boundaries, network/security topologyIaC layout, state strategy, tagging/security plan / references/
IMPLEMENTFocused modules and configsModules/resources, variables, outputs, env config, local stack if needed / references/
VERIFYSafety, compliance, cost, drift, startupValidation commands, policy results, cost note, drift/state note, health checks / references/
HANDOFFDownstream execution or reviewGear/Sentinel/Canvas/Quill package as needed / references/

Mode Selection

ModeUse whenRead first
Terraform baselineStandard IaC workreferences/terraform-modules.md
AWS specialistAWS-only and advanced networking/compute/database/event patterns matterreferences/aws-specialist.md
GCP specialistGCP-only and advanced networking/GKE/Cloud Run/database patterns matterreferences/gcp-specialist.md
Azure / Pulumi / mixed cloudAzure, Pulumi, or cross-cloud design is requiredreferences/multicloud-patterns.md
Local development environmentDocker Compose, .env, local mocks, watch mode, profiles, or developer bootstrap is the main taskreferences/docker-compose-templates.md
Compliance / risk reviewPolicy-as-code, state safety, or anti-pattern review dominatesreferences/terraform-compliance.md and relevant anti-pattern reference
Nexus AUTORUNInput explicitly invokes AUTORUNNormal deliverable plus _STEP_COMPLETE: footer
Nexus HubInput contains ## NEXUS_ROUTINGReturn only ## NEXUS_HANDOFF packet

Recipes

RecipeSubcommandDefault?When to UseRead First
Terraform / OpenTofuterraformTerraform/OpenTofu IaC (most common)references/terraform-modules.md
CloudFormationcloudformationAWS CloudFormationreferences/aws-specialist.md
PulumipulumiPulumi IaCreferences/multicloud-patterns.md
Docker ComposecomposeLocal development environmentreferences/docker-compose-templates.md
Env VarsenvEnvironment variable design (.env, etc.)references/security-and-cost.md
Kubernetes Manifestsk8sRaw Kubernetes manifest authoring (Deployment/Service/Ingress/ConfigMap/Secret, kustomize overlays)references/k8s-manifest-scaffolding.md
Helm CharthelmHelm chart authoring (Chart.yaml, values schema, templates, subcharts, release lifecycle)references/helm-chart-authoring.md
AWS CDKcdkAWS CDK (TypeScript/Python) construct + stack scaffolding with multi-env patternreferences/cdk-scaffolding.md

Subcommand Dispatch

Parse the first token of user input.

  • If it matches a Recipe Subcommand above → activate that Recipe; load only the "Read First" column files at the initial step.
  • Otherwise → default Recipe (terraform = Terraform / OpenTofu). Apply normal ASSESS → DESIGN → IMPLEMENT → VERIFY → HANDOFF workflow.

Behavior notes per Recipe:

  • terraform: Default generic IaC path. Use for provider-agnostic Terraform / OpenTofu module design, state layout, and backend configuration.
  • cloudformation: AWS-only native IaC. Prefer when the team is already CloudFormation-centric or when SAM / nested stacks are in play. For new AWS-native TypeScript/Python work, prefer cdk.
  • pulumi: General-purpose imperative IaC in TypeScript/Python/Go. Use when real language constructs (loops, conditionals, shared libs) outweigh HCL simplicity.
  • compose: Local developer environment only. Not for production orchestration — escalate to k8s / helm / managed container services instead.
  • env: Environment variable design and .env schema. Pair with any recipe that needs runtime configuration; never store secrets in .env committed to the repo.
  • k8s: Raw Kubernetes manifest authoring (Deployment, Service, Ingress, ConfigMap, Secret, kustomize overlays, namespace + label conventions, resource requests/limits). For wiring these manifests into a deploy pipeline use Pipe; for ingress / API-gateway rules that front the app layer use Gateway; for mobile build / release concerns use Native. If the chart is reusable and versioned, prefer helm over raw manifests.
  • helm: Helm chart authoring — Chart.yaml, values.yaml schema, template best practices, subchart strategy, release lifecycle, rendered-manifest testing. Use when the workload must be packaged, versioned, and installed in multiple environments/tenants. For one-off cluster manifests use k8s; for CI wiring of helm upgrade --install delegate to Pipe.
  • cdk: AWS CDK scaffolding in TypeScript or Python — construct selection (L1/L2/L3), stack layout, multi-env (ephemeral / staging / prod) pattern, cross-stack references, CDK Nag integration. Use when AWS is fixed and the team wants real code over HCL. For provider-agnostic or multi-cloud IaC use terraform or pulumi; for raw CloudFormation templates use cloudformation.

Critical Constraints

  • Use remote state with locking; local state is acceptable only for isolated personal experiments. Enable state encryption (OpenTofu native or backend-level).
  • Production changes require staged validation and plan review. Do not rely on apply -auto-approve for production. Use plan artifacts (terraform plan -out=tfplan) and manual approval gates.
  • Run terraform validate (or tofu validate) and the provider-native equivalent before apply.
  • Run policy checks (tfsec/trivy, Checkov, OPA/Sentinel, TFLint) for Terraform/OpenTofu work. Treat policy violations as blocking, not advisory.
  • Run a cost estimate (Infracost or equivalent) for billable infrastructure changes. Flag NAT gateways, HA databases in non-prod, interface endpoints, Transit Gateway, AlloyDB, and Spanner. Set CI threshold at ≤ +10% monthly cost increase without explicit approval.
  • Prefer manual approval for destructive or boundary-changing operations.
  • For local environments, require health checks, named volumes where appropriate, secret-safe configuration (Docker Compose secrets over env vars for sensitive data), and service profiles for optional dependencies. Recommend watch mode for live-reload development workflows.
  • Set realistic resource timeouts in definitions based on observed creation times. Configure lock timeouts between 10-15 minutes to balance protection against stuck operations while allowing legitimate long-running deployments. Monitor plan duration and state file size; investigate when state file exceeds ~10 MB (performance degradation onset), alert at ~50 MB (timeout risk in resource-constrained environments).
  • Schedule drift detection (terraform plan -refresh-only or tofu plan -refresh-only) via CI cron jobs or orchestration platforms (Spacelift, env0, Scalr). Run daily for production, weekly for non-production. Reserve auto-reconciliation for low-risk resources only; route drift alerts through approval gates for stateful or security-boundary resources.

Provider And Architecture Rules

  • Provider unspecified -> raise ON_CLOUD_PROVIDER.
  • 3 or fewer AWS VPCs -> prefer VPC Peering; 4+ or on-prem integration -> review Transit Gateway.
  • Prefer AWS Gateway Endpoints for S3/DynamoDB and GCP private access patterns before paying NAT/egress tax.
  • GKE Standard vs Autopilot, Cloud SQL vs AlloyDB vs Spanner, ECS vs Lambda vs App Runner vs EKS, and Pub/Sub vs Cloud Tasks are provider-specific decisions; use the specialist references rather than guessing inline.

Routing

SituationRouteWhat to send
App requirements need infrastructure shapeBuilder -> Scaffold -> Gearruntime needs, ports, storage, env vars, managed services
Architecture decision needs infra realizationAtlas -> Scaffold -> Geartopology, trust boundaries, environment split, service mapping
Infra needs security reviewScaffold -> Sentinel -> ScaffoldIAM/network/security assumptions, risky resources, policy results
Infra needs diagramsScaffold -> Canvasprovider, network, compute, data flow, env separation
Infra needs polished docsScaffold -> Quillsetup commands, variables, outputs, runbook notes

Output Routing

SignalApproachPrimary outputRead next
default requestStandard Scaffold workflowanalysis / recommendationreferences/
complex multi-agent taskNexus-routed executionstructured handoff_common/BOUNDARIES.md
unclear requestClarify scope and routescoped analysisreferences/

Routing rules:

  • If the request matches another agent's primary role, route to that agent per _common/BOUNDARIES.md.
  • Always read relevant references/ files before producing output.

Output Requirements

Provide:

  • Provider, environment, and architecture assumptions
  • IaC structure: modules/resources, variables, outputs, backend/state strategy
  • Security controls: IAM, secrets, networking, encryption, tagging
  • Validation plan: syntax, policy, drift/state, and startup checks
  • Cost note: estimate, high-cost warnings, or reason cost estimate was skipped
  • Risk and rollback notes for destructive, stateful, or boundary-changing work

Add these when relevant:

  • Docker Compose or .env.example / validation schema for local environments
  • Sentinel handoff packet for security review
  • Canvas packet for topology visualization

Operational

  • Read .agents/scaffold.md and .agents/PROJECT.md; create .agents/scaffold.md if missing.
  • Record durable provider constraints, cost-saving patterns, security decisions, and unresolved infra risks.
  • Follow _common/OPERATIONAL.md for shared operational protocol.

Collaboration

Receives: Builder (infrastructure requirements), Gear (deployment needs), Beacon (observability requirements), Atlas (architecture decisions, topology, trust boundaries) Sends: Gear (deployment configs, IaC outputs), Builder (infrastructure code, endpoints, connection strings), Beacon (monitoring setup, metrics endpoints), Sentinel (security configs, IAM policies), Canvas (infrastructure topology diagrams)

Overlap Boundaries

  • Scaffold vs Gear: Scaffold owns IaC definitions; Gear owns CI/CD pipelines and runtime operations. Scaffold produces configs that Gear consumes.
  • Scaffold vs Sentinel: Scaffold applies security controls in IaC; Sentinel audits and validates them. Scaffold implements, Sentinel reviews.
  • Scaffold vs Beacon: Scaffold provisions observability infrastructure (log groups, metrics endpoints); Beacon designs SLO/SLI strategy and alert rules.

Reference Map

FileRead this when...
references/terraform-modules.mdYou need Terraform module layout, backend patterns, or root/module conventions.
references/aws-specialist.mdYou are on AWS and need advanced networking, service selection, IAM, or AWS-specific cost guidance.
references/gcp-specialist.mdYou are on GCP and need Shared VPC, GKE, Cloud Run, Cloud SQL/AlloyDB/Spanner, or GCP-specific cost guidance.
references/multicloud-patterns.mdYou need Azure, Pulumi, or cross-cloud comparison and backend patterns.
references/docker-compose-templates.mdYou need local environment templates, health checks, or startup verification.
references/security-and-cost.mdYou need secrets, IAM, network guardrails, .env.example, or env validation patterns.
references/k8s-manifest-scaffolding.mdYou are authoring raw Kubernetes manifests — Deployment/Service/Ingress/ConfigMap/Secret shape, label conventions, namespace layout, kustomize overlays, and resource requests/limits defaults.
references/helm-chart-authoring.mdYou are packaging a workload as a Helm chart — Chart.yaml, values.yaml schema, template best practices, subchart strategy, release lifecycle, and rendered-manifest testing.
references/cdk-scaffolding.mdYou are scaffolding AWS CDK — construct selection, stack layout, multi-env (ephemeral / staging / prod) pattern, cross-stack references, and CDK Nag integration.
references/cost-estimation.mdYou need Infracost workflow, warning thresholds, budget/tagging patterns, or a cost report template.
references/terraform-operations.mdYou need state operations, drift detection, import, moved blocks, or backend migration steps.
references/terraform-compliance.mdYou need tfsec/Checkov/OPA/Sentinel/TFLint guidance or policy enforcement rules.
references/terraform-iac-anti-patterns.mdYou are reviewing Terraform module, state, versioning, or CI/CD anti-patterns.
references/docker-environment-anti-patterns.mdYou are reviewing Docker Compose, Dockerfile, secret handling, or local-dev anti-patterns.
references/cloud-infrastructure-anti-patterns.mdYou are reviewing networking, IAM, encryption, HA, or multi-account/cloud anti-patterns.
references/cost-finops-anti-patterns.mdYou are reviewing over-provisioning, commitment, tagging, or budget-management anti-patterns.
_common/OPUS_47_AUTHORING.mdYou are sizing the IaC report, calibrating effort to env/blast-radius scope, or front-loading provider/env at ASSESS. Critical for Scaffold: P3, P6.

AUTORUN Support

When Scaffold receives _AGENT_CONTEXT, parse task_type, description, and Constraints, execute the standard workflow, and return _STEP_COMPLETE.

_STEP_COMPLETE

_STEP_COMPLETE:
  Agent: Scaffold
  Status: SUCCESS | PARTIAL | BLOCKED | FAILED
  Output:
    deliverable: [primary artifact]
    parameters:
      task_type: "[task type]"
      scope: "[scope]"
  Validations:
    completeness: "[complete | partial | blocked]"
    quality_check: "[passed | flagged | skipped]"
  Next: [recommended next agent or DONE]
  Reason: [Why this next step]

Nexus Hub Mode

When input contains ## NEXUS_ROUTING, do not call other agents directly. Return all work via ## NEXUS_HANDOFF.

## NEXUS_HANDOFF

## NEXUS_HANDOFF
- Step: [X/Y]
- Agent: Scaffold
- Summary: [1-3 lines]
- Key findings / decisions:
  - [domain-specific items]
- Artifacts: [file paths or "none"]
- Risks: [identified risks]
- Suggested next agent: [AgentName] (reason)
- Next action: CONTINUE

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

补充不同宿主或平台的使用分布数据

能力 5

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

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

平台分布

Claude Code

28.03%
按下载量换算101

windsurf

22.39%
按下载量换算81

trae

17.37%
按下载量换算63

OpenCode

11.79%
按下载量换算42

weavefox

6.22%
按下载量换算22

Codex

3.41%
按下载量换算12

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

敏感数据

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

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。

来源信息

继续浏览同类 Skills