[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6C498CMK5M0KNB19DJMQZA8":3,"skill-same:01M6C498CMK5M0KNB19DJMQZA8":76},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":18,"categories":19,"keywords":30,"publishedAt":47,"linkOnly":48,"markdownContent":49,"markdownBody":50,"frontMatter":51,"refName":52,"commitSha":53,"skillDirectory":54,"forksCount":55,"repositoryHtmlUrl":56,"repositoryHomepageUrl":57,"ownerHtmlUrl":58,"ownerBlogUrl":59,"ownerDescription":60,"updatedAt":61,"install":62,"resources":75},"01M6C498CMK5M0KNB19DJMQZA8","deploy-and-test-agent","AgentCore 智能体部署与测试","Deploy repository example agents to Bedrock AgentCore Runtime or validate their changes locally and in the cloud. Use for example deployment and integration tests, including testing unpublished agentcore-rl-toolkit code.","将仓库中的示例智能体部署到 Bedrock AgentCore Runtime，或在本地和云端验证其更改。用于示例部署和集成测试，包括测试尚未发布的 agentcore-rl-toolkit 代码。","awslabs\u002Fagentcore-rl-toolkit","awslabs","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F3299148?v=4","01M6C492Y04993BB819PCDFE00","Amazon Web Services - Labs","01M6C4931Y4NTEF99J70Y6DXXR",120,"Apache-2.0",null,"https:\u002F\u002Fgithub.com\u002Fawslabs\u002Fagentcore-rl-toolkit\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fdeploy-and-test-agent\u002FSKILL.md",[20,25],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BRZZF9D7PVFN5MXSPWWD61","AI 工程师","PROFESSION","适用职业",{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BSAA4FBTWZP6X98STEHG99","智能体开发","SCENARIO","使用场景",[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],"test","deploy","deploy and test agent","testing","integration tests","validate","deployment","toolkit","code","integration","repository","cloud","use","example","agentcore","rl","2026-11-10 10:12:30",false,"---\nname: deploy-and-test-agent\ndescription: Deploy repository example agents to Bedrock AgentCore Runtime or validate their changes locally and in the cloud. Use for example deployment and integration tests, including testing unpublished agentcore-rl-toolkit code.\n---\n\n# Deploy and test example agents\n\nRead the selected example's README, Dockerfile, and dependencies. Use its\nentrypoint, deployment commands, task payload, and evaluator. Follow the\nmachine's instructions for temporary directories, caches, and environments.\n\n## Choose the validation\n\n- Agent logic or request handling: run the app locally with a representative\n  request from its README.\n- Image or dependency changes: build and invoke the container.\n- Deployment, IAM, networking, or CodeBuild changes: deploy and invoke a real\n  Runtime when cloud testing is authorized.\n\nRespect the requested test scope. A cloud test can cover image validation\nwithout a separate local build. Documentation-only changes need no deployment.\nExamples that deploy existing ECR images through an SDK script should keep that\nworkflow.\n\n## Select the toolkit source\n\nExample dependencies normally install a released toolkit. For local testing of\nunpublished changes, install the example's dependencies in its environment,\nthen run `uv pip install -e '.[core]'` from the repository root in that same\nenvironment. Check the imported `agentcore_rl_toolkit.__file__` to confirm the\ncheckout is being used.\n\nFor a container or cloud test of unpublished changes:\n\n1. Stage the agent source and its Dockerfile in a temporary build directory.\n   Build the checkout with `uv build --wheel`, setting `--out-dir` to that\n   directory. Keep only the wheel for the revision being tested.\n2. Install the wheel explicitly in the staged Dockerfile after the example's\n   dependencies. For these examples' system-Python images, use\n   `RUN uv pip install --system --reinstall .\u002Fagentcore_rl_toolkit-*.whl`\n   after copying the wheel into the image, before switching to a non-root user.\n   Ensure the wheel is included in the build context after applying `.dockerignore`.\n3. Verify the installed package came from that wheel; the version alone cannot\n   distinguish it from a PyPI release with the same version. Retain the wheel\n   digest and build log with the test result.\n\nRun the CLI from the staged directory. Keep this test override out of the\nexample's release dependencies. The\n[Runtime test agents](..\u002F..\u002F..\u002Ftests\u002Fruntime\u002Fagents\u002Fmath\u002FREADME.md) already\nprovide a Dockerfile that installs a toolkit wheel.\n\n## Run locally\n\nUse the Python version and environment required by the example. Keep a local\nmodel server's dependencies in a separate environment, and use the README's\nmodel settings and request payload.\n\nFor container debugging, use the example directory as the build context, or\nthe staged directory when testing a wheel. Use `--platform linux\u002Farm64` when\nchecking the Runtime image; running that image locally needs an ARM64 host or\nworking emulation.\n\nSelect the Dockerfile for the entrypoint being tested. Math keeps separate\nfiles under `.bedrock_agentcore\u002F\u003Cagent_name>\u002FDockerfile`; pass that path with\n`docker buildx build -f`. Other container examples use their root Dockerfile.\n\n```bash\ndocker buildx build --platform linux\u002Farm64 -f Dockerfile -t agent-test --load .\ndocker run --rm -p 8080:8080 agent-test\n```\n\nPass required environment variables or AWS credentials\nat runtime using an untracked env file or an appropriate credential mount.\nKeep credential files out of the build context.\n\nContainer `localhost` refers to the container. For a model running on the host,\nuse a reachable host address, or Linux host networking. Check `\u002Fping`, then send\nthe example's `\u002Finvocations` payload and inspect its result. Exercise `start\u002Fget`\nwhen testing the background invocation lifecycle.\n\n## Deploy to AWS\n\nUse the Python `bedrock-agentcore-starter-toolkit` CLI, installed separately\nfrom agent dependencies, and the example's deployment commands. Both Python\nand npm CLIs use the command name `agentcore`; check which one is on PATH.\nConfirm the AWS account with `aws sts get-caller-identity` and inspect\n`.bedrock_agentcore.yaml` before updating an existing deployment.\n\nRun `agentcore configure` and `agentcore deploy` from the example or staged\nsource directory. Keep `.bedrock_agentcore.yaml` for redeployment; it records\nthe source path, account, region, and created resources.\n\nThe CLI reuses an existing source-root `Dockerfile` first, otherwise\n`.bedrock_agentcore\u002F\u003Cagent_name>\u002FDockerfile`. It generates one only when\nneither exists. The Dockerfile's CMD controls startup, even if `--entrypoint`\nnames another file. Preserve the selected Dockerfile when staging a test;\nif changing Math's agent name, place its Dockerfile under that name too.\n\nFor Sandbox Quickstart, compile `sandboxd` first and pass the resulting binary\nas `--entrypoint`. The CLI accepts it without a Python placeholder, but still\nrequires the example's `pyproject.toml` as `--requirements-file`.\n\nContainer deployment builds on ARM64 CodeBuild by default; `--local-build`\nbuilds locally before pushing and deploying. The CLI creates ECR and execution\nroles automatically. The caller needs deployment permissions, and the Runtime\nrole needs the example's data and model permissions. For a private model or\ngateway, configure VPC subnets and security groups that allow the Runtime to\nreach it. Build dependencies must also be accessible from CodeBuild.\n\n## Verify and finish\n\nWait for the Runtime and endpoint to be ready, then run a small real task with\nthe example's evaluator or HTTP client, preserving the full task payload and\n`_config`. Use `SandboxClient` for Sandbox commands.\n\nCheck the task result and expected reward, not just deployment status or HTTP\n200. For SDK scripts that create and update a Runtime, exercise both paths and\nconfirm the DEFAULT endpoint serves the returned version after an update.\nFor failures, inspect build logs or the failing Runtime session before retrying.\nRetain the tested source or wheel, Runtime ARN, invocation result, and cleanup\nstatus locally.\n\nStop the test sessions and local processes. Keep deployments requested for\nreuse. For a disposable CLI deployment, preview `agentcore destroy --agent \u003Cname>\n--delete-ecr-repo --dry-run`, then use `--force` instead of `--dry-run` to\nremove its resources and verify removal.\nClean up separately created test fixtures and SDK-managed test resources too.\nLimit cleanup to resources created for the test; shared source buckets and\npre-existing deployments stay in place. Delete temporary project state only\nafter its cloud resources have been removed.\n","# Deploy and test example agents\n\nRead the selected example's README, Dockerfile, and dependencies. Use its\nentrypoint, deployment commands, task payload, and evaluator. Follow the\nmachine's instructions for temporary directories, caches, and environments.\n\n## Choose the validation\n\n- Agent logic or request handling: run the app locally with a representative\n  request from its README.\n- Image or dependency changes: build and invoke the container.\n- Deployment, IAM, networking, or CodeBuild changes: deploy and invoke a real\n  Runtime when cloud testing is authorized.\n\nRespect the requested test scope. A cloud test can cover image validation\nwithout a separate local build. Documentation-only changes need no deployment.\nExamples that deploy existing ECR images through an SDK script should keep that\nworkflow.\n\n## Select the toolkit source\n\nExample dependencies normally install a released toolkit. For local testing of\nunpublished changes, install the example's dependencies in its environment,\nthen run `uv pip install -e '.[core]'` from the repository root in that same\nenvironment. Check the imported `agentcore_rl_toolkit.__file__` to confirm the\ncheckout is being used.\n\nFor a container or cloud test of unpublished changes:\n\n1. Stage the agent source and its Dockerfile in a temporary build directory.\n   Build the checkout with `uv build --wheel`, setting `--out-dir` to that\n   directory. Keep only the wheel for the revision being tested.\n2. Install the wheel explicitly in the staged Dockerfile after the example's\n   dependencies. For these examples' system-Python images, use\n   `RUN uv pip install --system --reinstall .\u002Fagentcore_rl_toolkit-*.whl`\n   after copying the wheel into the image, before switching to a non-root user.\n   Ensure the wheel is included in the build context after applying `.dockerignore`.\n3. Verify the installed package came from that wheel; the version alone cannot\n   distinguish it from a PyPI release with the same version. Retain the wheel\n   digest and build log with the test result.\n\nRun the CLI from the staged directory. Keep this test override out of the\nexample's release dependencies. The\n[Runtime test agents](..\u002F..\u002F..\u002Ftests\u002Fruntime\u002Fagents\u002Fmath\u002FREADME.md) already\nprovide a Dockerfile that installs a toolkit wheel.\n\n## Run locally\n\nUse the Python version and environment required by the example. Keep a local\nmodel server's dependencies in a separate environment, and use the README's\nmodel settings and request payload.\n\nFor container debugging, use the example directory as the build context, or\nthe staged directory when testing a wheel. Use `--platform linux\u002Farm64` when\nchecking the Runtime image; running that image locally needs an ARM64 host or\nworking emulation.\n\nSelect the Dockerfile for the entrypoint being tested. Math keeps separate\nfiles under `.bedrock_agentcore\u002F\u003Cagent_name>\u002FDockerfile`; pass that path with\n`docker buildx build -f`. Other container examples use their root Dockerfile.\n\n```bash\ndocker buildx build --platform linux\u002Farm64 -f Dockerfile -t agent-test --load .\ndocker run --rm -p 8080:8080 agent-test\n```\n\nPass required environment variables or AWS credentials\nat runtime using an untracked env file or an appropriate credential mount.\nKeep credential files out of the build context.\n\nContainer `localhost` refers to the container. For a model running on the host,\nuse a reachable host address, or Linux host networking. Check `\u002Fping`, then send\nthe example's `\u002Finvocations` payload and inspect its result. Exercise `start\u002Fget`\nwhen testing the background invocation lifecycle.\n\n## Deploy to AWS\n\nUse the Python `bedrock-agentcore-starter-toolkit` CLI, installed separately\nfrom agent dependencies, and the example's deployment commands. Both Python\nand npm CLIs use the command name `agentcore`; check which one is on PATH.\nConfirm the AWS account with `aws sts get-caller-identity` and inspect\n`.bedrock_agentcore.yaml` before updating an existing deployment.\n\nRun `agentcore configure` and `agentcore deploy` from the example or staged\nsource directory. Keep `.bedrock_agentcore.yaml` for redeployment; it records\nthe source path, account, region, and created resources.\n\nThe CLI reuses an existing source-root `Dockerfile` first, otherwise\n`.bedrock_agentcore\u002F\u003Cagent_name>\u002FDockerfile`. It generates one only when\nneither exists. The Dockerfile's CMD controls startup, even if `--entrypoint`\nnames another file. Preserve the selected Dockerfile when staging a test;\nif changing Math's agent name, place its Dockerfile under that name too.\n\nFor Sandbox Quickstart, compile `sandboxd` first and pass the resulting binary\nas `--entrypoint`. The CLI accepts it without a Python placeholder, but still\nrequires the example's `pyproject.toml` as `--requirements-file`.\n\nContainer deployment builds on ARM64 CodeBuild by default; `--local-build`\nbuilds locally before pushing and deploying. The CLI creates ECR and execution\nroles automatically. The caller needs deployment permissions, and the Runtime\nrole needs the example's data and model permissions. For a private model or\ngateway, configure VPC subnets and security groups that allow the Runtime to\nreach it. Build dependencies must also be accessible from CodeBuild.\n\n## Verify and finish\n\nWait for the Runtime and endpoint to be ready, then run a small real task with\nthe example's evaluator or HTTP client, preserving the full task payload and\n`_config`. Use `SandboxClient` for Sandbox commands.\n\nCheck the task result and expected reward, not just deployment status or HTTP\n200. For SDK scripts that create and update a Runtime, exercise both paths and\nconfirm the DEFAULT endpoint serves the returned version after an update.\nFor failures, inspect build logs or the failing Runtime session before retrying.\nRetain the tested source or wheel, Runtime ARN, invocation result, and cleanup\nstatus locally.\n\nStop the test sessions and local processes. Keep deployments requested for\nreuse. For a disposable CLI deployment, preview `agentcore destroy --agent \u003Cname>\n--delete-ecr-repo --dry-run`, then use `--force` instead of `--dry-run` to\nremove its resources and verify removal.\nClean up separately created test fixtures and SDK-managed test resources too.\nLimit cleanup to resources created for the test; shared source buckets and\npre-existing deployments stay in place. Delete temporary project state only\nafter its cloud resources have been removed.\n",{"name":5,"description":7},"main","55d173c93915a0e0fb445130c86555c4fb3d54e8",".agents\u002Fskills\u002Fdeploy-and-test-agent",22,"https:\u002F\u002Fgithub.com\u002Fawslabs\u002Fagentcore-rl-toolkit","https:\u002F\u002Fawslabs.github.io\u002Fagentcore-rl-toolkit\u002F","https:\u002F\u002Fgithub.com\u002Fawslabs","http:\u002F\u002Famazon.com\u002Faws\u002F","AWS Labs","2026-11-14 09:06:20",{"source":9,"skillName":5,"commands":63,"prompt":73,"zipAvailable":74},[64,67,70],{"tool":65,"command":66},"npx","npx skills add awslabs\u002Fagentcore-rl-toolkit --skill deploy-and-test-agent",{"tool":68,"command":69},"bunx","bunx skills add awslabs\u002Fagentcore-rl-toolkit --skill deploy-and-test-agent",{"tool":71,"command":72},"pnpm","pnpm dlx skills add awslabs\u002Fagentcore-rl-toolkit --skill deploy-and-test-agent","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fawslabs\u002Fagentcore-rl-toolkit\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fdeploy-and-test-agent\u002FSKILL.md",true,[],[77,85,102],{"skillNo":78,"name":5,"nameZh":6,"description":17,"descriptionZh":79,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":80,"categories":81,"keywords":84,"publishedAt":47},"01M6C49CP1P2XJJW8NZYAQ05FD","","https:\u002F\u002Fgithub.com\u002Fawslabs\u002Fagentcore-rl-toolkit\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fdeploy-and-test-agent\u002FSKILL.md",[82,83],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},[33,32,31],{"skillNo":86,"name":87,"nameZh":88,"description":17,"descriptionZh":79,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":89,"categories":90,"keywords":97,"publishedAt":47},"01M6C49AZFPTM3FCTG4GDMJGMQ","check-cloudwatch-session-logs","CloudWatch 会话日志分析","https:\u002F\u002Fgithub.com\u002Fawslabs\u002Fagentcore-rl-toolkit\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fcheck-cloudwatch-session-logs\u002FSKILL.md",[91,94],{"categoryNo":92,"categoryName":93,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BQGD3B3T8FK02S5JVCZA1M","运维监控与告警",{"categoryNo":95,"categoryName":96,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQGD4WETX0HM3SM9QKQ15B","SRE 工程师",[98,99,100,101],"check cloudwatch session logs","session","check","logs",{"skillNo":103,"name":87,"nameZh":88,"description":104,"descriptionZh":105,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":106,"categories":107,"keywords":110,"publishedAt":47},"01M6C495P3KKK1WAHKM3PBTR6A","Query and analyze AWS CloudWatch logs\u002Ftraces for Bedrock AgentCore runtime sessions. Use when the user asks about a specific AgentCore session — why it failed, why it hung, what tools it called, how long each step took, or wants to pull the full trace for a given session_id.","查询并分析 Bedrock AgentCore 运行时会话的 AWS CloudWatch 日志\u002F追踪。当用户询问某个特定 AgentCore 会话时使用——例如它为何失败、为何挂起、调用了哪些工具、每个步骤耗时多久，或希望获取给定 session_id 的完整追踪记录。","https:\u002F\u002Fgithub.com\u002Fawslabs\u002Fagentcore-rl-toolkit\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fcheck-cloudwatch-session-logs\u002FSKILL.md",[108,109],{"categoryNo":92,"categoryName":93,"taxonomyType":28,"taxonomyTypeDesc":29},{"categoryNo":95,"categoryName":96,"taxonomyType":23,"taxonomyTypeDesc":24},[101,100,98,99,111,43,112,113,114,115,116,117,118,119],"user","sessions","trace","analyze","why","how","Tools","aws","pull"]