amitkarpe/agent-skills/ami-validation-ssm
Claude Code and agent skill by amitkarpe/agent-skills
- community
Checking that the SKILL.md file is still in the repository.
Launch or reuse an EC2 instance for AMI validation, wait for EC2 and SSM readiness, run a repo-owned validation script through SSM, and save durable evidence. Use when the repo owns the validation checks and you need a reusable instance-plus-SSM harness instead of lane-specific bash.
Install
npx vskill@latest install amitkarpe/agent-skills/ami-validation-ssmSKILL.md
The same SKILL.md was published earlier as amitkarpe/agent-skills/ami-validation-ssm.
AMI Validation SSM
Use this skill for the repeated AMI validation harness around EC2 and SSM.
Use when
- launching a temporary EC2 instance from an AMI for validation
- reusing a retained debug or builder instance for read-only validation replay
- waiting for EC2 checks and SSM readiness before running repo-owned checks
- saving durable validation evidence outside chat context
Do not use when
- you are publishing or versioning an SSM document
- you only need generic EC2 creation without validation
- the real work is defining repo-specific validation commands or ECS exception
policy
Rules
- keep repo-specific validation scripts in the real repo or under
~/.AGENTS-temp/<repo>/
- prefer read-only validation first
- default to terminating launched instances unless the workflow explicitly needs
a retained debug host
- save outputs under
~/.AGENTS-temp/<repo>/...when working inside a repo - use
--instance-idreuse mode for retained builder instances when narrowing a
failing Image Builder step
Main script
Launch or reuse an instance and run validation
The script writes:
instance-id.txtinstance-status.jsonssm-instance-info.jsonsend-command.jsoncommand-invocation.jsonsummary.json
On non-zero exits, it also keeps failure-oriented artifacts when the instance id is known:
instance-description.jsoninstance-status-final.jsonssm-instance-info-final.jsonconsole-output.jsonconsole-output-tail.txt
Launch an instance only
This script writes:
<prefix>-launch.json<prefix>-instance-id.txt
It prints the launched instance id to stdout.
Wait for EC2 instance health only
This script writes:
<prefix>-instance-status.json
It exits:
0onrunning/ok/ok3on stall
Wait for SSM online only
This script writes:
<prefix>-ssm-instance-info.json
It exits:
0when SSM reachesOnline4on stall
Send an SSM command and wait for terminal status
This script writes:
<prefix>-send-command.json<prefix>-command-invocation.json<prefix>-command-id.txt
It exits:
0on success5on failed terminal command status6on stall
Recommended workflow
- Keep the validation logic in a repo-owned shell script.
- Use
--instance-idwhen replaying checks on a retained Image Builder host. - Use
--ami-idfor fresh candidate AMI validation. - Keep instances only when the failing result needs inspection.
- Feed the resulting outputs back into repo-native publish or rollout steps.
Related skills
- use
imagebuilder-bake-validatefor the Image Builder build and retained
builder lookup workflow
- use
cis-ssm-apply-validatefor SSM document publish and apply workflows - use
ec2-quick-createonly when you need disposable instance creation without
a validation harness
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/ami-validation-ssm/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/amitkarpe/agent-skills/ami-validation-ssm)