sst

协助使用 SST 在 AWS 上构建和部署全栈无服务器应用。适用于定义 Lambda 函数、API Gateway 路由、DynamoDB 表、S3 存储桶,或在 AWS 上部署支持 SSR 的 Next.js/Remix/Astro 应用。触发词示例:sst、serverless stack、sst dev、sst deploy、aws lambda、sst ion、resource linking。

仓库最近推送
GitHub Stars
219
Forks
38
Issues / PRs
7

安装方式

先用 Prompt 核对来源与依赖。也可下载安装包。

用 AI 助手安装

复制提示词,让助手先核对固定版本和依赖。

查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "sst":https://skillpi.com/zh/skills/deepskill-7d2ad1df67befae4719225247eee664500ae333da848e89887b025e03e0b707c。安装前核对上游来源和版本:https://github.com/TerminalSkills/skills。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。

来源与配置

github.com

配置方式待核实

请查看原始来源中的适用工具、依赖和权限要求。

安装实测待补充

协助使用 SST 在 AWS 上构建和部署全栈无服务器应用。适用于定义 Lambda 函数、API Gateway 路由、DynamoDB 表、S3 存储桶,或在 AWS 上部署支持 SSR 的 Next.js/Remix/Astro 应用。触发词示例:sst、serverless stack、sst dev、sst deploy、aws lambda、sst ion、resource linking。

0 下载

介绍来源: third_party · TerminalSkills · 1.0.0 参考来源

SkillPi 解读

实测状态
未测试

文件浏览

在原站浏览文件 ↗

原始 SKILL.md

打开原文 ↗
Frontmatter
name: sst
description: >-
  Assists with building and deploying full-stack serverless applications on AWS using SST.
  Use when defining Lambda functions, API Gateway routes, DynamoDB tables, S3 buckets, or
  deploying Next.js/Remix/Astro with SSR on AWS. Trigger words: sst, serverless stack, sst dev,
  sst deploy, aws lambda, sst ion, resource linking.
license: Apache-2.0
compatibility: "Requires Node.js 18+ and AWS credentials"
metadata:
  author: terminal-skills
  version: "1.0.0"
  category: devops
  tags: ["sst", "serverless", "aws", "lambda", "full-stack"]

SST

Overview

SST (Serverless Stack) is a framework for building and deploying full-stack applications on AWS with high-level constructs for Lambda, API Gateway, DynamoDB, S3, and frontend frameworks. It features live local development connected to real AWS services, type-safe resource linking, and zero-config TypeScript support.

Instructions

  • When defining infrastructure, use sst.config.ts with typed components like sst.aws.Function, sst.aws.Api, sst.aws.Bucket, and sst.aws.Dynamo.
  • When connecting resources, use the link property on Functions to automatically grant IAM permissions and inject environment variables, and access linked resources via Resource.Name in handlers.
  • When developing locally, use sst dev which runs Lambda locally with hot reload while connected to real AWS services (DynamoDB, S3, SQS), with support for VS Code breakpoint debugging.
  • When deploying, use sst deploy --stage prod for named stages, sst deploy --stage pr-${PR_NUMBER} for preview environments, and sst remove --stage dev for teardown.
  • When deploying frontends, use sst.aws.Nextjs, sst.aws.Remix, or sst.aws.Astro components for SSR on Lambda with static assets on S3 + CloudFront.
  • When managing secrets, use sst secret set KEY value for encrypted, stage-specific secret storage.
  • When organizing code, keep handlers thin in packages/functions/ as orchestrators, and place business logic in packages/core/.

Examples

Example 1: Build a serverless API with DynamoDB

User request: "Create a REST API on AWS with DynamoDB using SST"

Actions:

  1. Define DynamoDB table and API Gateway in sst.config.ts
  2. Link the table to API handler functions for automatic permissions
  3. Implement CRUD handlers accessing Resource.MyTable.name
  4. Run sst dev for live local development against real AWS services

Output: A serverless REST API with type-safe resource access and live debugging.

Example 2: Deploy a Next.js app with preview environments

User request: "Deploy my Next.js app on AWS with per-PR preview environments"

Actions:

  1. Configure sst.aws.Nextjs component with custom domain and linked resources
  2. Set up CI to run sst deploy --stage pr-${PR_NUMBER} for each pull request
  3. Link backend resources (API, database) to the Next.js deployment
  4. Add cleanup step with sst remove when PR is closed

Output: A production Next.js deployment on AWS with isolated preview environments for each PR.

Guidelines

  • Use link instead of manual IAM policies; SST generates least-privilege permissions automatically.
  • Access linked resources via Resource.Name in handlers; never hardcode table names or bucket ARNs.
  • Use sst dev for daily development; it is faster than deploying to AWS on every change.
  • Create per-developer stages (sst dev --stage alice) so each developer gets isolated AWS resources.
  • Keep handlers thin: business logic in packages/core/, handlers in packages/functions/.
  • Use sst secret for API keys and credentials; they are encrypted and stage-specific.
  • Set up sst deploy --stage pr-${PR_NUMBER} in CI for preview environments on every pull request.

当前收录版本

1.0.0

核对来源版本 ↗

安全与评测信息

质量评测

满分100 · 来自 SkillPi LAB 实验室的评测报告。

场景价值85/100

亮点

  • SST 是 AWS 无服务器开发的高频刚需工具,覆盖 Lambda、API Gateway、DynamoDB、S3 及 Next.js/Remix/Astro SSR 部署等核心场景
  • 提供 live local development、type-safe resource linking、per-PR preview environments 等高价值特性
触发精准90/100

亮点

  • 触发词覆盖全面:sst、serverless stack、sst dev、sst deploy、aws lambda、sst ion、resource linking
  • 边界清晰,能有效区分 SST 相关需求与其他 AWS 工具
结构规范90/100

亮点

  • 文档结构完整:Overview、Instructions、Examples、Guidelines 层次清晰
  • 提供两个端到端示例(REST API with DynamoDB、Next.js with preview environments)
  • frontmatter 包含 name、description、license、compatibility、metadata 等完整信息
执行可靠90/100

亮点

  • 工具来源明确:基于官方 SST 框架
  • 参数使用正确:sst dev、sst deploy --stage、sst remove、sst secret set 等命令准确
  • 覆盖主要异常场景:per-developer stages、preview environments、secret management
证据可验 (前四项均值)89/100

取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。

正文静态检测

100 / 100 · skillpi-20261123-no-r3-v1

正文未命中当前规则。

分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。

权限与使用前检查

根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。

  • 账号、密钥或授权

    使用专用、最小权限账号,不把密钥粘贴到公开内容或命令日志;核对接收数据的服务与租户。

    主文档提及 · 第 9, 66 行

本站展示提示不会授予权限。涉及文件改动、密钥、外部发送或费用时,仍由你使用的工具按需确认。

安全评级与访问范围

safe · 静态证据核验,不代表运行安全保证。

使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。