Aws login
Refresh the short-lived AWS MFA session for the Codepresso plugin. Use when an AWS call (cloud-dev MCP, `aws` CLI, or another AWS MCP) is blocked with MFA_REQUIRED / explicit-deny / ExpiredToken, or when the user asks to "aws login" / "refresh aws session" / "MFA 세션 갱신".From its SKILL.md
npx -y skills add codepresso-dev/codepresso-ai-plugin --skill aws-loginAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
2 things to look at
- no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
- 1 stars1 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
1.8 KB, as published. Nobody here has run it
aws-login
Mint a 4-hour MFA-backed AWS session and cache it so every AWS channel works.
When to invoke
- A tool returned
MFA_REQUIRED, or aawscommand failed withexplicit deny/ExpiredToken/CredentialsProviderError. - The user explicitly asks to refresh / log in.
Procedure
-
Check status:
node "${CLAUDE_PLUGIN_ROOT}/scripts/aws-cli.mjs" status- If
enabledis false → tell the user to run/codepresso:setupfirst (AWS MFA not configured). Stop. - If
sessionValidis true → no refresh needed; tell the user and retry their original action. - If
mfaSerialis null → tell the user to register a virtual TOTP device, then run setup again. Stop.
- If
-
Ask the user for their 6-digit MFA code (use AskUserQuestion or a direct prompt). Do not store it.
-
Refresh:
node "${CLAUDE_PLUGIN_ROOT}/scripts/aws-cli.mjs" refresh --token-code <CODE>ok:true→ session refreshed (report only the expiration, never secret values). Retry the user's original AWS action.error:BAD_OR_DENIED_CODE→ ask for a fresh code and retry (max 2 attempts).error:TEMP_SESSION→ tell the user to run from a normal shell (not inside temporary credentials).error:NO_MFA_SERIAL→ register a virtual TOTP, then/codepresso:setup.
Never
- Never echo
SecretAccessKey/SessionToken/ the MFA code. - Never run
setupautomatically — it edits~/.aws. Only/codepresso:setupdoes that with user intent.