agentcore-samples / 01-payments-skills-and-cli
AGENTS.md3.4k starsChanged 6 months agoApache-2.0View on GitHub
This file is for the coding assistant (Claude Code, Codex, Cursor, Kiro). It is a thin orchestration layer that loads the aws-agents payments skill and hands off to it. Do not reinvent the skill's content -- load it and follow it. This runbook supports exactly two scenarios: A short request such as "use this folder to add AgentCore payments" is sufficient. If the scenario (existing vs new) cannot be determined from the prompt or workspace, ask one routing question before…
- Reads credentials
Trending
Less talk lately.thin dataabout the whole repository
Who's talking about awslabs/agentcore-samples
- hashicorp/terraform-provider-aws“Add support for VPC configuration on `aws_bedrockagentcore_gateway_target`”GitHub · Apr 23, 2026 · 18 reactions
- sudosubin/agents.nix“kiro-powers.github.awslabs.agentcore-samples: init at 0-unstable-2026-10-02”GitHub · Oct 4, 2026
- sebastianmarines/awesome-aws“Add weekly AWS resources - 2026-07-06”GitHub · Jul 6, 2026
- hashicorp/terraform-provider-aws“[Enhancement] aws_bedrockagentcore_harness should support api_format for harness model configs”GitHub · Jun 22, 2026
- nagagaddamu/agentcore-samples-websearch“Usecase restructure”GitHub · Jun 18, 2026
The biggest 5 of 9 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 9
Talked about on GitHub (9 times).
On GitHub · 9
- Apr 23, 2026Add support for VPC configuration on `aws_bedrockagentcore_gateway_target` — hashicorp/terraform-provider-aws18 reactions · 4 comments
- Oct 4, 2026kiro-powers.github.awslabs.agentcore-samples: init at 0-unstable-2026-10-02 — sudosubin/agents.nix0 reactions
- Jul 6, 2026Add weekly AWS resources - 2026-07-06 — sebastianmarines/awesome-aws0 reactions
- Jun 22, 2026[Enhancement] aws_bedrockagentcore_harness should support api_format for harness model configs — hashicorp/terraform-provider-aws0 reactions · 3 comments
- Jun 18, 2026Usecase restructure — nagagaddamu/agentcore-samples-websearch0 reactions
4 more on GitHub
- May 27, 2026fix: Patch CVE-2026-42010 GnuTLS auth bypass in Python Dockerfile — aws/agentcore-cli0 reactions · 12 comments
- May 3, 2026[jiafenglu0623] Refresh enterprise control planes with Bedrock Managed Agents — Prompthon-IO/agent-systems-handbook0 reactions · 1 comment
- May 2, 202620260502 jungeu1509 — ysy-mogagko/WIL0 reactions
- Apr 25, 2026AgentCore CLI Harness Skill Support — aws/agentcore-cli0 reactions
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.
Of the AGENTS.md files we read, the 11,736 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository22 other files it gives its agents.
- 01-features/02-host-your-agent/01-runtime/04-coding-agents/03-code-agents-competition-e2e/coding_agents/codex/AGENTS.mdAGENTS.md
- 01-features/02-host-your-agent/01-runtime/04-coding-agents/03-code-agents-competition-e2e/coding_agents/open-code/AGENTS.mdAGENTS.md
- 01-features/05-authenticate-and-authorize/01-inbound-auth/04-inbound-auth-pingfederate/agent/private-idp-ping-agent/AGENTS.mdAGENTS.md
- 01-features/07-centralize-and-govern-your-ai-infrastructure/02-policy/03-temporal-policies/bankingassistant/AGENTS.mdAGENTS.md
- 02-use-cases/02-workflow-automation-agents/event-driven-claims-agent/AGENTS.mdAGENTS.md
- 02-use-cases/02-workflow-automation-agents/receipts-intelligent-document-processing-agent/AGENTS.mdAGENTS.md
- 06-workshops/03-AgentCore-identity/08-IDP-examples/PingFederate/agent/private-idp-ping-agent/AGENTS.mdAGENTS.md
- 01-features/02-host-your-agent/01-runtime/04-coding-agents/03-code-agents-competition-e2e/coding_agents/claude-code/CLAUDE.mdCLAUDE.md
- benefits-advisorSkill
- pto-planningSkill
- pdfSkill
- cost-efficiency-analyzerSkill
- executive-financial-briefingSkill
- multi-quarter-trend-analysisSkill
- quarterly-kpi-calculatorSkill
- revenue-growth-analystSkill
- earnings-snapshotSkill
- portfolio-riskSkill
- sector-rotationSkill
- trend-analysisSkill
- weather-reporterSkill
- persistent-notesSkill
The file
We split this AGENTS.md into the rules it gives an agent
9 rules. About 0 are common, 8 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈8
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 15
If the scenario (existing vs new) cannot be determined from the prompt or workspace, ask one routing question before taking action.
- Distinctive: line 42
If the plugin is not installed or not visible in the current session, stop and tell the developer:
- Distinctive: line 50
Do not use the cloned fallback for plugin-capable assistants unless the developer explicitly requests it.
- Distinctive: line 55
Read the skill directly from the local clone:
- Distinctive: line 67
If neither route is available, stop and direct the developer to README.md -> "Prerequisites." Do not proceed from memory.
- Distinctive: line 72
If the plugin is not available, attempt to install it automatically:
- Very specific: line 76
Cursor: Import aws/agent-toolkit-for-aws as a team marketplace, install aws-agents
- Distinctive: line 78
If the install succeeds, tell the developer:
- Distinctive: line 87
If the install fails (timeout, network error, or unsupported tool), stop and direct the developer to the README prerequisites for manual …
≈ “Common” is an estimate: at least 1 in 5 of the 16,597 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
AGENTS.md -- Assistant Runbook
This file is for the coding assistant (Claude Code, Codex, Cursor, Kiro). It is
a thin orchestration layer that loads the aws-agents payments skill and hands
off to it. Do not reinvent the skill's content -- load it and follow it.
Developer prompt contract
This runbook supports exactly two scenarios:
- Existing agent -- add AgentCore x402 payments to an agent project.
- New agent -- scaffold a new agent, then add AgentCore x402 payments to it.
A short request such as "use this folder to add AgentCore payments" is sufficient. If the scenario (existing vs new) cannot be determined from the prompt or workspace, ask one routing question before taking action.
Good minimal prompts:
Use this folder to add AgentCore payments to my existing agent.Use this folder to create a new AgentCore payments agent.0. Load the skill
The skill must be loaded before any provisioning or payment steps. This is the one thing only the orchestration handles -- the skill cannot verify its own loading.
Plugin-capable tools (Claude Code, Codex, Cursor)
Invoke the payments capability under the agents-build skill via the
assistant's native plugin route. After loading, state which route is being used:
Using aws-agents <AssistantName> plugin payments skill.If the plugin is not installed or not visible in the current session, stop and tell the developer:
The aws-agents plugin is not installed or not visible in this session.
Install it per the README prerequisites and start a fresh session.Do not use the cloned fallback for plugin-capable assistants unless the developer explicitly requests it.
Fallback (tools without plugin support, e.g. Kiro)
Read the skill directly from the local clone:
agent-toolkit-for-aws/plugins/aws-agents/skills/agents-build/references/payments.mdState that the fallback is being used:
Using cloned payments.md fallback because <AssistantName> has no aws-agents plugin route.If neither route is available, stop and direct the developer to
README.md -> "Prerequisites." Do not proceed from memory.
Plugin not available
If the plugin is not available, attempt to install it automatically:
- Claude Code:
/plugin install aws-agents@claude-plugins-officialthen/reload-plugins - Codex:
codex plugin marketplace add aws/agent-toolkit-for-awsthen installaws-agents - Cursor: Import
aws/agent-toolkit-for-awsas a team marketplace, installaws-agents
If the install succeeds, tell the developer:
Plugin installed. Start a new session in this folder to continue -- the plugin
loads at session startup and is not visible until then.Then stop. Do not continue the payment flow in the same session.
If the install fails (timeout, network error, or unsupported tool), stop and direct the developer to the README prerequisites for manual installation.
1. Run the skill
Hand the developer's request to the skill's Process section and run it from Step 0 through Step 8. Do not skip steps. The skill handles:
- CLI verification (Step 0)
- Project detection or scaffolding (Step 1)
- Situation routing -- detecting existing managers, deciding what to create vs reuse (Step 2)
- Provisioning manager and connector (Step 3)
- Deploy (Step 4)
- Wiring the agent -- native plugin or generic tool (Step 5)
- Instrument and session creation (Step 6)
- Delegation and funding (Step 7)
- Env vars and test (Step 8)
Trust the skill's routing logic. If a manager already exists, the skill detects it and skips creation. Do not force creation of new resources.
2. Human checkpoints -- pause and wait
The skill defines two points where you must hand control to the developer. Never
handle credentials, never assume funding happened, never read agentcore/.env.local.
Checkpoint A -- provider credentials (skill Step 3b).
The developer runs agentcore add payment-connector (no flags -> interactive
wizard). Present the prerequisites, then wait for confirmation. After they
confirm, collect the user id and email for the first wallet, then continue.
Checkpoint B -- delegation and funding (skill Step 7).
Surface the wallet_address / redirect_url from the setup script output. Wait
until the developer confirms the instrument is active and funded.
3. Cleanup
agentcore remove payment-connector --manager <ManagerName> --name <ConnectorName> -y
agentcore remove payment-manager --name <ManagerName> -y
agentcore deploy -yDoes it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

