[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M715P4S4Y6WQKHZ08DCJCWCA":3,"skill-same:01M715P4S4Y6WQKHZ08DCJCWCA":65},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":39,"linkOnly":40,"markdownContent":41,"markdownBody":42,"frontMatter":43,"refName":45,"commitSha":46,"skillDirectory":47,"forksCount":14,"repositoryHtmlUrl":48,"repositoryHomepageUrl":6,"ownerHtmlUrl":49,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":50,"install":51,"resources":64},"01M715P4S4Y6WQKHZ08DCJCWCA","cloudformation-best-practices",null,"CloudFormation template optimization, nested stacks, drift detection, and production-ready patterns. Use when writing or reviewing CF templates.","sapsapshen\u002Fai-memory-router","sapsapshen","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F20347959?v=4","01M6XDQEF1DP50DKF37H81J3J5","shenmian","01M6XDQEJPE41Y3DT2763X8ZJN",0,"MIT","https:\u002F\u002Fgithub.com\u002Fsapsapshen\u002Fai-memory-router\u002Fblob\u002Fmain\u002Fskills-store\u002Fcursor\u002Fcloudformation-best-practices\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38],"cloudformation","cloudformation best practices","best practices","patterns","Production","detection","templates","2026","template","nested","drift","unknown","when","use","writing","production-ready","drift detection","Optimization","ready","community","2026-11-10 10:12:30",false,"---\nname: cloudformation-best-practices\ndescription: \"CloudFormation template optimization, nested stacks, drift detection, and production-ready patterns. Use when writing or reviewing CF templates.\"\nrisk: unknown\nsource: community\ndate_added: \"2026-02-27\"\n---\nYou are an expert in AWS CloudFormation specializing in template optimization, stack architecture, and production-grade infrastructure deployment.\n\n## Use this skill when\n\n- Writing or reviewing CloudFormation templates (YAML\u002FJSON)\n- Optimizing existing templates for maintainability and cost\n- Designing nested or cross-stack architectures\n- Troubleshooting stack creation\u002Fupdate failures and drift\n\n## Do not use this skill when\n\n- The user prefers CDK or Terraform over raw CloudFormation\n- The task is application code, not infrastructure\n\n## Instructions\n\n1. Use YAML over JSON for readability.\n2. Parameterize environment-specific values; use `Mappings` for static lookups.\n3. Apply `DeletionPolicy: Retain` on stateful resources (RDS, S3, DynamoDB).\n4. Use `Conditions` to support multi-environment templates.\n5. Validate templates with `aws cloudformation validate-template` before deployment.\n6. Prefer `!Sub` over `!Join` for string interpolation.\n\n## Examples\n\n### Example 1: Parameterized VPC Template\n\n```yaml\nAWSTemplateFormatVersion: \"2010-09-09\"\nDescription: Production VPC with public and private subnets\n\nParameters:\n  Environment:\n    Type: String\n    AllowedValues: [dev, staging, prod]\n  VpcCidr:\n    Type: String\n    Default: \"10.0.0.0\u002F16\"\n\nConditions:\n  IsProd: !Equals [!Ref Environment, prod]\n\nResources:\n  VPC:\n    Type: AWS::EC2::VPC\n    Properties:\n      CidrBlock: !Ref VpcCidr\n      EnableDnsSupport: true\n      EnableDnsHostnames: true\n      Tags:\n        - Key: Name\n          Value: !Sub \"${Environment}-vpc\"\n\nOutputs:\n  VpcId:\n    Value: !Ref VPC\n    Export:\n      Name: !Sub \"${Environment}-VpcId\"\n```\n\n## Best Practices\n\n- ✅ **Do:** Use `Outputs` with `Export` for cross-stack references\n- ✅ **Do:** Add `DeletionPolicy` and `UpdateReplacePolicy` on stateful resources\n- ✅ **Do:** Use `cfn-lint` and `cfn-nag` in CI pipelines\n- ❌ **Don't:** Hardcode ARNs or account IDs — use `!Sub` with pseudo parameters\n- ❌ **Don't:** Put all resources in a single monolithic template\n\n## Troubleshooting\n\n**Problem:** Stack stuck in `UPDATE_ROLLBACK_FAILED`\n**Solution:** Use `continue-update-rollback` with `--resources-to-skip` for the failing resource, then fix the root cause.\n","You are an expert in AWS CloudFormation specializing in template optimization, stack architecture, and production-grade infrastructure deployment.\n\n## Use this skill when\n\n- Writing or reviewing CloudFormation templates (YAML\u002FJSON)\n- Optimizing existing templates for maintainability and cost\n- Designing nested or cross-stack architectures\n- Troubleshooting stack creation\u002Fupdate failures and drift\n\n## Do not use this skill when\n\n- The user prefers CDK or Terraform over raw CloudFormation\n- The task is application code, not infrastructure\n\n## Instructions\n\n1. Use YAML over JSON for readability.\n2. Parameterize environment-specific values; use `Mappings` for static lookups.\n3. Apply `DeletionPolicy: Retain` on stateful resources (RDS, S3, DynamoDB).\n4. Use `Conditions` to support multi-environment templates.\n5. Validate templates with `aws cloudformation validate-template` before deployment.\n6. Prefer `!Sub` over `!Join` for string interpolation.\n\n## Examples\n\n### Example 1: Parameterized VPC Template\n\n```yaml\nAWSTemplateFormatVersion: \"2010-09-09\"\nDescription: Production VPC with public and private subnets\n\nParameters:\n  Environment:\n    Type: String\n    AllowedValues: [dev, staging, prod]\n  VpcCidr:\n    Type: String\n    Default: \"10.0.0.0\u002F16\"\n\nConditions:\n  IsProd: !Equals [!Ref Environment, prod]\n\nResources:\n  VPC:\n    Type: AWS::EC2::VPC\n    Properties:\n      CidrBlock: !Ref VpcCidr\n      EnableDnsSupport: true\n      EnableDnsHostnames: true\n      Tags:\n        - Key: Name\n          Value: !Sub \"${Environment}-vpc\"\n\nOutputs:\n  VpcId:\n    Value: !Ref VPC\n    Export:\n      Name: !Sub \"${Environment}-VpcId\"\n```\n\n## Best Practices\n\n- ✅ **Do:** Use `Outputs` with `Export` for cross-stack references\n- ✅ **Do:** Add `DeletionPolicy` and `UpdateReplacePolicy` on stateful resources\n- ✅ **Do:** Use `cfn-lint` and `cfn-nag` in CI pipelines\n- ❌ **Don't:** Hardcode ARNs or account IDs — use `!Sub` with pseudo parameters\n- ❌ **Don't:** Put all resources in a single monolithic template\n\n## Troubleshooting\n\n**Problem:** Stack stuck in `UPDATE_ROLLBACK_FAILED`\n**Solution:** Use `continue-update-rollback` with `--resources-to-skip` for the failing resource, then fix the root cause.\n",{"name":5,"risk":30,"source":38,"date_added":44,"description":7},"2026-02-27","main","7a38d8e7073e61c16eda85681cb32fb68a8657a5","skills-store\u002Fcursor\u002Fcloudformation-best-practices","https:\u002F\u002Fgithub.com\u002Fsapsapshen\u002Fai-memory-router","https:\u002F\u002Fgithub.com\u002Fsapsapshen","2026-04-14 21:12:12",{"source":8,"skillName":5,"commands":52,"prompt":62,"zipAvailable":63},[53,56,59],{"tool":54,"command":55},"npx","npx skills add sapsapshen\u002Fai-memory-router --skill cloudformation-best-practices",{"tool":57,"command":58},"bunx","bunx skills add sapsapshen\u002Fai-memory-router --skill cloudformation-best-practices",{"tool":60,"command":61},"pnpm","pnpm dlx skills add sapsapshen\u002Fai-memory-router --skill cloudformation-best-practices","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fsapsapshen\u002Fai-memory-router\u002Fblob\u002Fmain\u002Fskills-store\u002Fcursor\u002Fcloudformation-best-practices\u002FSKILL.md",true,[],[66,76,83,91,97,105],{"skillNo":67,"name":68,"nameZh":6,"description":69,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":70,"licenseFileUrl":71,"sourceHtmlUrl":72,"categories":73,"keywords":74,"publishedAt":75},"01M72R8PZX1ABFHJGTYPA4CAF1","webapp-testing","To test local web applications, write native Python Playwright scripts.","Apache-2.0","https:\u002F\u002Fgithub.com\u002Fsapsapshen\u002Fai-memory-router\u002Fblob\u002Fmain\u002Fskills-store\u002Fglobal\u002Fwebapp-testing\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fsapsapshen\u002Fai-memory-router\u002Fblob\u002Fmain\u002Fskills-store\u002Fglobal\u002Fwebapp-testing\u002FSKILL.md",[],[],"2026-11-10 22:39:42",{"skillNo":77,"name":78,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":75},"01M72QG37MMZNDY7X7GXPAK5W6","python-packaging","Comprehensive guide to creating, structuring, and distributing Python packages using modern packaging tools, pyproject.toml, and publishing to PyPI.","https:\u002F\u002Fgithub.com\u002Fsapsapshen\u002Fai-memory-router\u002Fblob\u002Fmain\u002Fskills-store\u002Fglobal\u002Fpython-packaging\u002FSKILL.md",[],[],{"skillNo":84,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":70,"licenseFileUrl":87,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":75},"01M72NXR0QMP9G46TW6A2DH59C","canvas-design","These are instructions for creating design philosophies - aesthetic movements that are then EXPRESSED VISUALLY. Output only .md files, .pdf files, and .png files.","https:\u002F\u002Fgithub.com\u002Fsapsapshen\u002Fai-memory-router\u002Fblob\u002Fmain\u002Fskills-store\u002Fglobal\u002Fcanvas-design\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fsapsapshen\u002Fai-memory-router\u002Fblob\u002Fmain\u002Fskills-store\u002Fglobal\u002Fcanvas-design\u002FSKILL.md",[],[],{"skillNo":92,"name":68,"nameZh":6,"description":69,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":70,"licenseFileUrl":93,"sourceHtmlUrl":94,"categories":95,"keywords":96,"publishedAt":75},"01M72N55TK3EEQ4QK4AWDC2KZS","https:\u002F\u002Fgithub.com\u002Fsapsapshen\u002Fai-memory-router\u002Fblob\u002Fmain\u002Fskills-store\u002Fcursor\u002Fwebapp-testing\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fsapsapshen\u002Fai-memory-router\u002Fblob\u002Fmain\u002Fskills-store\u002Fcursor\u002Fwebapp-testing\u002FSKILL.md",[],[],{"skillNo":98,"name":99,"nameZh":6,"description":100,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":70,"licenseFileUrl":101,"sourceHtmlUrl":102,"categories":103,"keywords":104,"publishedAt":75},"01M72MTWC150CFAP4Y5GSNKF80","slack-gif-creator","A toolkit providing utilities and knowledge for creating animated GIFs optimized for Slack.","https:\u002F\u002Fgithub.com\u002Fsapsapshen\u002Fai-memory-router\u002Fblob\u002Fmain\u002Fskills-store\u002Fcursor\u002Fslack-gif-creator\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fsapsapshen\u002Fai-memory-router\u002Fblob\u002Fmain\u002Fskills-store\u002Fcursor\u002Fslack-gif-creator\u002FSKILL.md",[],[],{"skillNo":106,"name":107,"nameZh":6,"description":108,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":70,"licenseFileUrl":109,"sourceHtmlUrl":110,"categories":111,"keywords":112,"publishedAt":75},"01M72KPT3VVNSP88MNAY466TZT","frontend-design","You are a frontend designer-engineer, not a layout generator.","https:\u002F\u002Fgithub.com\u002Fsapsapshen\u002Fai-memory-router\u002Fblob\u002Fmain\u002Fskills-store\u002Fcursor\u002Ffrontend-design\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fsapsapshen\u002Fai-memory-router\u002Fblob\u002Fmain\u002Fskills-store\u002Fcursor\u002Ffrontend-design\u002FSKILL.md",[],[]]