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

aws-developmentAWS 开发

Agent Skill

用于辅助云资源、部署、容器、基础设施和运维自动化任务。它适合让 Agent 检查配置、整理部署步骤、分析资源状态、生成排障思路或辅助云服务接入。使用时需要明确目标环境、账号权限、区域和资源组,区分本地测试与生产操作;涉及删除资源、重启服务、修改网络或权限配置时,应先确认影响范围。

总安装

6,072

周安装

253

GitHub Stars

87

下载量

2,024
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/mindrally/skills --skill aws-development

简介

提供 AWS 应用开发的全面最佳实践指南,聚焦无服务器架构与基础设施即代码。

  • 涵盖 Lambda 函数编写规范、IAM 最小权限策略、CloudWatch 日志与指标埋点设计。
  • 推荐使用 TypeScript + CDK/SAM 技术栈提升代码可维护性与部署一致性。
  • 强调本地环境与生产环境的配置分离,避免敏感信息泄露。
  • 所有示例代码均需附带单元测试与集成测试用例,确保上线可靠性。

SKILL.md

AWS Development Best Practices

Overview

This skill provides comprehensive guidelines for developing applications on Amazon Web Services (AWS), focusing on serverless architecture, Infrastructure as Code, and security best practices.

Core Principles

  • Write clean, well-structured code with accurate AWS SDK examples
  • Use Infrastructure as Code (Terraform, CDK, SAM) for all infrastructure
  • Follow the principle of least privilege for all IAM policies
  • Implement comprehensive logging, metrics, and tracing for observability

AWS Lambda Guidelines

Configuration Standards

  • Use TypeScript implementation on ARM64 architecture for better performance and cost
  • Set appropriate memory and timeout values based on workload requirements
  • Use environment variables for configuration, never hardcode values
  • Implement proper error handling and retry logic

Lambda Best Practices

// Use ES modules and typed handlers
import { APIGatewayProxyHandler } from 'aws-lambda';

export const handler: APIGatewayProxyHandler = async (event) => {
  try {
    // Validate input at function start
    if (!event.body) {
      return { statusCode: 400, body: JSON.stringify({ error: 'Missing body' }) };
    }

    // Business logic here

    return { statusCode: 200, body: JSON.stringify({ success: true }) };
  } catch (error) {
    console.error('Lambda error:', error);
    return { statusCode: 500, body: JSON.stringify({ error: 'Internal error' }) };
  }
};

AWS CDK Guidelines

Implementation Standards

  • Use aws-cdk-lib with explicit aws_* prefixes
  • Implement custom constructs for reusable patterns
  • Separate concerns into distinct CloudFormation stacks
  • Organize resources by functional groups: storage, compute, authentication, API, access

Project Structure

aws/
├── constructs/     # CDK custom constructs
├── stacks/         # CloudFormation stack definitions
├── functions/      # Lambda function implementations
└── tests/          # Infrastructure tests

CDK Best Practices

import * as cdk from 'aws-cdk-lib';
import * as lambda from 'aws-cdk-lib/aws_lambda';
import * as dynamodb from 'aws-cdk-lib/aws_dynamodb';

// Use custom constructs for reusable patterns
export class ApiConstruct extends Construct {
  constructor(scope: Construct, id: string, props: ApiProps) {
    super(scope, id);
    // Implementation
  }
}

DynamoDB Patterns

Table Design

  • Design tables around access patterns, not entity relationships
  • Use single-table design when appropriate
  • Implement GSIs for additional access patterns
  • Use on-demand capacity for variable workloads, provisioned for predictable

Best Practices

  • Always use strongly typed item definitions
  • Implement optimistic locking with version attributes
  • Use batch operations for multiple items
  • Enable point-in-time recovery for production tables

IAM Security Best Practices

Principles

  • Apply least privilege: grant only permissions needed
  • Use IAM roles, not access keys, for AWS service access
  • Implement resource-based policies where appropriate
  • Regular audit and rotate credentials

Policy Example

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Effect": "Allow",
      "Action": [
        "dynamodb:GetItem",
        "dynamodb:PutItem",
        "dynamodb:Query"
      ],
      "Resource": "arn:aws:dynamodb:*:*:table/MyTable"
    }
  ]
}

SAM Template Configuration

Template Structure

AWSTemplateFormatVersion: '2010-09-09'
Transform: AWS::Serverless-2016-10-31

Globals:
  Function:
    Timeout: 30
    Runtime: nodejs20.x
    Architectures:
      - arm64
    Tracing: Active

Resources:
  MyFunction:
    Type: AWS::Serverless::Function
    Properties:
      CodeUri: src/
      Handler: index.handler
      Events:
        Api:
          Type: Api
          Properties:
            Path: /items
            Method: GET

API Gateway Configuration

Best Practices

  • Use Cognito or IAM for authentication
  • Implement request validation
  • Enable CORS only when necessary
  • Use usage plans and API keys for rate limiting

Step Functions for Orchestration

  • Use Step Functions for complex workflows
  • Implement error handling with Catch and Retry
  • Use Express workflows for high-volume, short-duration
  • Use Standard workflows for long-running processes

Security Standards

Encryption

  • Enable encryption at rest for all storage services
  • Use AWS KMS for key management
  • Enable encryption in transit (TLS)
  • Use custom KMS keys for sensitive data

Secrets Management

  • Store secrets in AWS Secrets Manager or Parameter Store
  • Never commit secrets to version control
  • Rotate secrets automatically
  • Use IAM roles to access secrets

Observability

Logging

  • Use structured JSON logging
  • Include correlation IDs across services
  • Log at appropriate levels (INFO, WARN, ERROR)
  • Enable CloudWatch Logs Insights for querying

Monitoring

  • Create CloudWatch alarms for critical metrics
  • Use X-Ray for distributed tracing
  • Implement custom metrics for business KPIs
  • Set up dashboards for operational visibility

Testing

Unit Testing

  • Mock AWS SDK calls in unit tests
  • Use localstack or SAM local for integration testing
  • Test IAM policies with policy simulator
  • Validate CloudFormation/CDK with cfn-lint

Integration Testing

import { DynamoDBClient } from '@aws-sdk/client-dynamodb';
import { mockClient } from 'aws-sdk-client-mock';

const ddbMock = mockClient(DynamoDBClient);

beforeEach(() => {
  ddbMock.reset();
});

test('handler returns items', async () => {
  ddbMock.on(QueryCommand).resolves({ Items: [] });
  const result = await handler(event);
  expect(result.statusCode).toBe(200);
});

CI/CD Integration

  • Use AWS CodePipeline or GitHub Actions for CI/CD
  • Run cdk diff or sam validate before deployment
  • Implement staging environments (dev, staging, prod)
  • Use parameter overrides for environment-specific config

Common Pitfalls to Avoid

  1. Hardcoding AWS credentials or secrets
  2. Not setting appropriate Lambda timeouts
  3. Ignoring cold start optimization
  4. Over-provisioning resources
  5. Not implementing proper error handling
  6. Missing CloudWatch alarms
  7. Inadequate IAM policies (too permissive)
  8. Not using VPC when required for compliance

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

04

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

能力 5

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

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

平台分布

OpenCode

29.89%
按下载量换算605

Claude Code

20.73%
按下载量换算420

Antigravity

15.92%
按下载量换算322

Codex

12.21%
按下载量换算247

Gemini CLI

7.22%
按下载量换算146

github-copilot

3.6%
按下载量换算73

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

敏感数据

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

安装前确认

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

来源信息

继续浏览同类 Skills