Skip to content

Fix add-skill limbo when SKILL.md is manually deleted#10395

Open
AndrewAsseily wants to merge 2 commits into
v2from
nyandrew/skill-install-recovery
Open

Fix add-skill limbo when SKILL.md is manually deleted#10395
AndrewAsseily wants to merge 2 commits into
v2from
nyandrew/skill-install-recovery

Conversation

@AndrewAsseily

@AndrewAsseily AndrewAsseily commented Jun 10, 2026

Copy link
Copy Markdown
Contributor

Description of changes:

add-skill previously got stuck when a previous install had its SKILL.md deleted by hand but its .aws-skill-metadata marker left behind. The marker made the toolkit treat the skill as already installed, but the skill was actually unusable. This change detects the corrupted state (marker present, SKILL.md missing) and reinstalls the skill.

Testing:

aws-cli % rm -rf /Users/.../.claude/skills/aws-cdk/SKILL.md
aws-cli % aws agent-toolkit add-skill --skill-name  aws-cdk --region us-east-1
  Reinstalling aws-cdk at /Users/.../.claude/skills/aws-cdk: previous install appears incomplete.
  Installed aws-cdk (v1) to Claude Code — ~/.claude/skills.
  aws-cdk is already installed (v1) at /Users/.../.kiro/skills/aws-cdk. Run "aws agent-toolkit update-skill --skill-name aws-cdk" to update, or remove it first to reinstall.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@AndrewAsseily AndrewAsseily requested a review from a team as a code owner June 10, 2026 19:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant