agentsclimarketplace

Aws login

Skill codepresso-dev/codepresso-ai-plugin/skills/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

Install
npx -y skills add codepresso-dev/codepresso-ai-plugin --skill aws-login

Assembled 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 a aws command failed with explicit deny / ExpiredToken / CredentialsProviderError.
  • The user explicitly asks to refresh / log in.

Procedure

  1. Check status:

    node "${CLAUDE_PLUGIN_ROOT}/scripts/aws-cli.mjs" status
    
    • If enabled is false → tell the user to run /codepresso:setup first (AWS MFA not configured). Stop.
    • If sessionValid is true → no refresh needed; tell the user and retry their original action.
    • If mfaSerial is null → tell the user to register a virtual TOTP device, then run setup again. Stop.
  2. Ask the user for their 6-digit MFA code (use AskUserQuestion or a direct prompt). Do not store it.

  3. 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 setup automatically — it edits ~/.aws. Only /codepresso:setup does that with user intent.

Keep looking

Skills are one crate of 608,475. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.