Use when AWS CLI commands fail with SSO token expiration errors like "Token has expired", "SSO session has expired", or "Error when retrieving credentials".
This skill handles AWS SSO token expiration. Use it when AWS commands fail with authentication errors.
Trigger this skill when you see errors like:
Token has expired and refresh failedThe SSO session has expiredError when retrieving credentialsThe SSO access token has expiredRun the login command in a tmux session with --no-browser to capture the URL:
tmux new-session -d -s aws-sso 'aws sso login --profile <profile-name> --no-browser > /tmp/pi-tmux-aws-sso.log 2>&1'
sleep 1
cat /tmp/pi-tmux-aws-sso.log
The output will contain:
Browser will not be automatically opened.
Please visit the following URL:
https://oidc.<region>.amazonaws.com/authorize?...
Show the user the URL and ask them to complete authentication:
⚠️ AWS SSO token expired for profile `<profile-name>`.
Please open this URL in your browser to authenticate:
<url>
Let me know when you've completed the login.
After user confirms, check if login succeeded:
cat /tmp/pi-tmux-aws-sso.log
Look for Successfully logged into Start URL: in the output.
Then verify credentials work:
aws sts get-caller-identity --profile <profile-name>
tmux kill-session -t aws-sso 2>/dev/null
rm -f /tmp/pi-tmux-aws-sso.log
grep '^\[profile' ~/.aws/config | sed 's/\[profile \(.*\)\]/\1/'
aws sts get-caller-identity --profile <profile-name> 2>&1
--no-browser - lets us capture and show the URLSearch for places (restaurants, cafes, etc.) via Google Places API proxy on localhost.
Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and advanced queries.
Create or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, references, and assets.
Start voice calls via the OpenClaw voice-call plugin.
Notion API for creating and managing pages, databases, and blocks.
Gemini CLI for one-shot Q&A, summaries, and generation.
Category:developer