cfn-lintcloudformation
安装方式
先用 Prompt 核对来源与依赖。也可下载安装包。
用 AI 助手安装
复制提示词,让助手先核对固定版本和依赖。
查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "cfn-lintcloudformation":https://skillpi.com/zh/skills/deepskill-773268fc9b9da7e580c469b1dfdaa427241f4ba56691460ad723b04fc24b4bd5。安装前核对上游来源和版本:https://skillhub.cn/skills/user_3c6cb52e/validate-cloudformation-templates-before-deploy-with-cfn-lint。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。
来源与配置
skillhub.cn
配置方式待核实
请查看原始来源中的适用工具、依赖和权限要求。
安装实测待补充
在堆栈更新进入审查或部署前,捕获 CloudFormation 模板中的模式、区域和内置函数错误。
介绍来源: third_party · user_3c6cb52e · 1.0.0 参考来源
SkillPi 解读
- 能完成的任务
- 在堆栈更新在审查或部署中失败之前,捕获CloudFormation模式、区域和内置函数错误。
- 软件、账号及付费要求
- 翻译待完成,请参阅来源文档。
- 实测状态
- 未测试
文件浏览
Frontmatter
name: "在部署前使用 cfn-lint 验证 CloudFormation 模板"
slug: "validate-cloudformation-templates-before-deploy-with-cfn-lint"
version: "1.0.0"
displayName: "在部署前使用 cfn-lint 验证 CloudFormation 模板"
summary: "在堆栈更新在审查或部署中失败之前,捕获CloudFormation模式、区域和内置函数错误。"
license: "MIT"
description: "在堆栈更新在审查或部署中失败之前,捕获CloudFormation模式、区域和内置函数错误。"
github_stars: 2608
verification: "security_reviewed"
source: "https://github.com/1991513ccie-png/skills"
author: "1991513ccie-png"
publisher_type: "individual"
category: "Code Quality & Review"
framework: "Multi-Framework"
tool_ecosystem:
github_repo: "1991513ccie-png/skills"
github_stars: 2608在部署前使用 cfn-lint 验证 CloudFormation 模板
Catch CloudFormation schema, region, and intrinsic-function mistakes before a stack update fails in review or deployment.
Prerequisites
Python or cfn-lint binary, CloudFormation templates
Installation
Use the upstream install or setup path that matches your environment:
- pip install cfn-lint. If pip is not available, run
- brew install cfn-lint
- docker build --tag cfn-lint:latest .
- docker run --rm -v pwd:/data cfn-lint:latest /data/template.yaml
Requirements and caveats from upstream:
- <img alt="[cfn-lint logo]" src="https://github.com/1991513ccie-png/skills" width="150" align="right">
- Python 3.10 to 3.14 are supported.
Basic usage or getting-started notes:
-
To get information about the SAM Transformation, run the linter with --info
-
Pip
-
Optional dependencies
-
Extracted from upstream docs: https://raw.githubusercontent.com/aws-cloudformation/cfn-lint/HEAD/README.md
Documentation
当前收录版本
1.0.0
质量评测
满分100 · 来自 SkillPi LAB 实验室的评测报告。
亮点
- 解决 AWS CloudFormation 用户在部署前验证模板的核心痛点,避免部署失败
- 提供多种安装方式,适配不同用户环境
待提升项
-
触发词不全 原报告严重程度:轻微
description 描述了功能但未显式定义用户应如何触发该 Skill
改进建议:建议在 description 或新增 When to Use 章节中明确触发指令,如'validate my cloudformation template'或'run cfn-lint on'
亮点
- 功能描述清晰,用户能理解其用途
待提升项
-
缺少 When to Use/示例章节 原报告严重程度:轻微
文档缺少明确的 When to Use 说明和端到端使用示例
改进建议:建议增加 When to Use 章节说明适用场景,并提供完整的使用示例
亮点
- 文档结构基本完整,包含 Prerequisites、Installation 等必要章节
- frontmatter 信息完整,包含版本、作者、许可证等
待提升项
-
缺少异常处理说明 原报告严重程度:重大
未说明如何处理常见异常情况,如模板路径错误、网络问题、权限不足等
改进建议:建议增加异常处理说明和错误排查指南
-
缺少平台集成说明 原报告严重程度:重大
未说明如何在 OpenClaw 平台中调用该工具,缺少具体的执行流程
改进建议:建议补充在 OpenClaw 平台中的具体使用方法和参数传递说明
亮点
- 提供了多种安装方式(pip/brew/docker),提高可用性
- 工具来源明确,来自官方 cfn-lint 项目
取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。
正文静态检测
100 / 100 · skillpi-20261123-no-r3-v1
正文未命中当前规则。
分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。
权限与使用前检查
根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。
-
安装或获取外部依赖
使用官方来源并锁定版本,在隔离环境检查安装脚本。当前文档检查不覆盖后续下载的代码。
主文档提及 · 第 32, 33 行
文档引用的域名或地址
这些地址可能用于文档链接或示例,不是已批准的联网清单。使用前核对实际目的地及发送的数据。
- codecov.io
- docs.aws.amazon.com
- github.com
- raw.githubusercontent.com
安全评级与访问范围
safe · 静态证据核验,不代表运行安全保证。
翻译待完成,请参阅来源文档。
使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。
用户讨论
还没有已核实的点评。