From codepresso
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 세션 갱신".
How this skill is triggered — by the user, by Claude, or both
Slash command
/codepresso:aws-loginThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Mint a 1-hour MFA-backed AWS session and cache it so every AWS channel works.
Mint a 1-hour MFA-backed AWS session and cache it so every AWS channel works.
MFA_REQUIRED, or a aws command failed with explicit deny / ExpiredToken / CredentialsProviderError.Check status:
node "${CLAUDE_PLUGIN_ROOT}/scripts/aws-cli.mjs" status
enabled is false → tell the user to run /codepresso:setup first (AWS MFA not configured). Stop.sessionValid is true → no refresh needed; tell the user and retry their original action.mfaSerial is null → tell the user to register a virtual TOTP device, then run setup again. Stop.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.SecretAccessKey / SessionToken / the MFA code.setup automatically — it edits ~/.aws. Only /codepresso:setup does that with user intent.Guides creation, editing, and verification of skills for AI coding agents using test-driven development with subagent scenarios. Use when authoring or debugging skills.
npx claudepluginhub code-presso/codepresso-ai-plugin --plugin codepresso