/workflow-skills:grantedfrom workflow-skills
AWS role assumption with Granted CLI. Use when running AWS commands, assuming AWS profiles, switching accounts, or authenticating to AWS. Triggers on: assume, granted, AWS profile, AWS role, AWS SSO, switch AWS account, AWS console, AWS authentication, aws cli.
Ships in workflow-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
All AWS profiles use credential_process = granted credential-process --profile <name> in ~/.aws/config. This means every aws CLI command should use --profile to automatically authenticate via Granted without interactive assume.
--profile Flag# ALWAYS use --profile for AWS commands
aws --profile <profile-name> s3 ls
aws --profile <profile-name> sts get-caller-identity
aws --profile <profile-name> ec2 describe-instances --region us-east-2
The credential_process in each profile automatically calls granted credential-process to obtain temporary credentials. No manual assume or environment variable setup needed.
# List all configured profiles
grep -E '^\[profile ' ~/.aws/config | sed 's/\[profile //;s/\]//' | sort
| Task | Command |
|---|---|
| List profiles | grep -E '^\[profile ' ~/.aws/config | sed 's/\[profile //;s/\]//' | sort |
| Verify identity | aws --profile <name> sts get-caller-identity |
| Run any command | aws --profile <name> <service> <command> |
| Open AWS console | assume -c <profile> |
| Interactive assume | assume <profile> (sets env vars for current shell) |
Profiles follow <account-name>/<role-name> format:
audit/AdministratorAccess
blocks-dev/AdministratorAccess
blocks-staging/AdministratorAccess
management/AdministratorAccess
management/Billing
networking-prod/AdministratorAccess
platform-prod/AdministratorAccess
shared-services/AdministratorAccess
workloads-prod/AdministratorAccess
| Scenario | Approach |
|---|---|
| AI agent running AWS commands | aws --profile <name> ... |
| Scripts / automation | aws --profile <name> ... |
| Human interactive session | assume <profile> then aws ... |
| Open AWS console in browser | assume -c <profile> |
| Multiple accounts in one script | Use different --profile per command |
# No need to switch contexts - just use different profiles per command
aws --profile blocks-dev/AdministratorAccess s3 ls
aws --profile workloads-prod/AdministratorAccess ec2 describe-instances
aws --profile management/Billing ce get-cost-and-usage --time-period Start=2025-01-01,End=2025-02-01 --granularity MONTHLY --metrics BlendedCost
If credential_process fails with an auth error, the SSO token may have expired:
# Clear and re-authenticate (requires browser)
granted sso-tokens clear
assume <profile> # Triggers browser SSO login
# Then resume using --profile
aws --profile <profile> sts get-caller-identity
Always verify before performing operations:
aws --profile <name> sts get-caller-identity
Expected output:
{
"UserId": "AROAXXXXXXXXXX:session-name",
"Account": "123456789012",
"Arn": "arn:aws:sts::123456789012:assumed-role/RoleName/session-name"
}
Profiles are managed in ~/dotfiles/nix/home/ztaylor/features/cli/aws.nix and merged into ~/.aws/config via aws-config-merge. Each profile includes:
[profile account/Role]
granted_sso_start_url = https://d-9a67794288.awsapps.com/start
granted_sso_region = us-east-2
granted_sso_account_id = 123456789012
granted_sso_role_name = Role
credential_process = granted credential-process --profile account/Role
The credential_process line is what makes aws --profile work without manual assume.
What SKILL.md sets; muted values are Claude Code's defaults
4 skills in this plugin
/1password1Password CLI (op) usage in this dotfiles setup: desktop-app integration (biometric unlock) locally, optional service-account token (OP_SERVICE_ACCOUNT_TOKEN) for headless/non-interactive use. Key gotcha: op auth-status probes are meaningless under desktop integration (a read may still succeed); status only works with a service-account token. Use when reading secrets with op, writing passwordCommand entries, debugging 'is 1Password signed in?', or when an op read/run fails. Triggers on: op read, op run, op whoami, op signin, 1password, passwordCommand, secret fetch, mcp-secret-cache, biometric unlock, service account./herdrControl herdr from inside it. Manage workspaces and tabs, split panes, spawn agents, read output, and wait for state changes — all via CLI commands that talk to the running herdr instance over a local unix socket. Use when running inside herdr (HERDR_ENV=1).Other plugins' skills for the same job
/herdr-claude-loopFan out autonomous Claude /loop sessions across git worktrees, one per epic/task, using herdr. Use when you have a set of independent work items (beads epics, issues, PRs) and want each driven by its own self-paced Claude session in an isolated worktree + herdr workspace. Triggers on: launch subsessions per epic, parallelize epics, one worktree per task, herdr claude loop, fan out agents on worktrees.npx claudepluginhub zach-source/claude-marketplace --plugin workflow-skills