agentcore-harness-builder

agentcore-harness-builder is a skill for Claude Code, Codex from timwukp/agent-skills-best-practice. It costs 233 tokens per session (5,699 once invoked), scanned A, original, MIT.

A builder for AWS Bedrock AgentCore Harness agents. A Harness is an AWS configuration that tells a managed agent which model, instructions, tools, memory, limits, and related services to use.

In plain words
What is it for?
Use it to set up AgentCore agents with prompts, memory, browser or code tools, web search, knowledge bases, Gateway or MCP tools, functions, skills, versions, and endpoints.
Why use it?
It helps create the configuration and connections needed to run an agent without writing the agent loop or building a container by default. It also accounts for the differences between documented and actual AWS interface details described by the skill.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to set up AgentCore agents with prompts, memory, browser or code tools, web search, knowledge bases, Gateway or MCP tools, functions, skills, versions, and endpoints.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/timwukp/agent-skills-best-practice/agentcore-harness-builder
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add timwukp/agent-skills-best-practice --skill agentcore-harness-builder
Clone the repo
git clone --depth 1 https://github.com/timwukp/agent-skills-best-practice

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for agentcore-harness-builder

README.md
[![agentmods](https://agentmods.dev/badge/skills/timwukp/agent-skills-best-practice/agentcore-harness-builder/github.svg)](https://agentmods.dev/skills/timwukp/agent-skills-best-practice/agentcore-harness-builder)
Your own site
<a href="https://agentmods.dev/skills/timwukp/agent-skills-best-practice/agentcore-harness-builder"><img src="https://agentmods.dev/badge/skills/timwukp/agent-skills-best-practice/agentcore-harness-builder/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for agentcore-harness-builder

Your own site · 80×15
<a href="https://agentmods.dev/skills/timwukp/agent-skills-best-practice/agentcore-harness-builder"><img src="https://agentmods.dev/badge/skills/timwukp/agent-skills-best-practice/agentcore-harness-builder.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 233 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 5,699 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00233 $0.05699
Opus 5 $0.00117 $0.02849
Sonnet 5 $0.00047 $0.01140
Haiku 4.5 $0.00023 $0.00570

Measured 10d ago against content hash d98e3df0d49e, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

agentcore-harness-builder scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.

The scan reads SKILL.md. This mod also ships 8 executable files (scripts/create_harness.py, scripts/invoke_harness.py, scripts/preflight.py, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/skills/agentcore-harness-builder/SKILL.md · 299 lines

How it starts

The opening of the file, as written. The whole thing — 299 lines — stays where its author put it; the contents beside it link to each section on GitHub.

AWS Bedrock AgentCore Harness Builder

Overview

A Harness is AWS Bedrock AgentCore's declarative, fully-managed way to run an agent. You hand AWS a JSON configuration — model, system prompt, tools, memory, skills, limits — and AWS runs the agent loop (Strands under the hood) inside a per-session Firecracker microVM with its own filesystem and shell. No container to build by default (a custom image via environmentArtifact is an advanced option), no agent loop to write. You change behavior by changing config, not redeploying code, and you can override model/prompt per invocation.

This skill builds a complete, best-practice Harness use case that exercises every AgentCore capability the user needs, wired correctly the first time. Harness is generally available (GA 2026-06-17, all AWS Commercial Regions where AgentCore is available, plus GovCloud US-West since 2026-08; only Payments remains preview), but it is still fast-moving and the real API shapes often differ from the published docs — this skill encodes the hard-won facts so you don't rediscover them through validation errors.

The two-plane mental model (internalize this first)

AgentCore has two distinct API surfaces. Confusing them is the #1 source of wasted time.

Plane What it is How you call it
Control plane Create/configure/inspect resources (harness, memory, runtimes) boto3.client("bedrock-agentcore-control")create_harness, update_harness, create_memory, …
Data plane Invoke a running harness boto3.client("bedrock-agentcore")invoke_harness

The agent-side SDK (pip install bedrock-agentcore) is a third thing: it's the library that runs inside a custom Runtime container (BedrockAgentCoreApp, BrowserClient, MemorySessionManager). A Harness does not need it — the managed harness loader image already wires the tools. You only touch the agent-side SDK if you drop down to Runtime mode. See references/decision-guide.md.

Read the full file on GitHub · 299 lines

Files

What ships with it

39 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 10d ago First seen · 299 lines · 233 tokens per session scan A d98e3df0d49e

Subscribe to this mod's changes

agentcore-harness-builder is a skill published in the GitHub repository timwukp/agent-skills-best-practice (10 stars, last pushed 3d ago), licensed MIT. It adds 233 tokens to every session and 5,699 once invoked, about $0.0012 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

bedrock

AWS Bedrock foundation models for generative AI. Use when invoking foundation models, building AI applications, creating embeddings, configuring model access, or implementing RAG patterns.

itsmostafa/aws-agent-skills · 36 tokens

markitdown

Convert heterogeneous documents and selected URIs to Markdown with Microsoft MarkItDown for text analysis, search, and LLM/RAG ingestion. Covers safe local conversion, streams, Office/PDF/data formats, batch workflows, plugins, vision OCR, Azure extraction, and the official MCP server.

K-Dense-AI/scientific-agent-skills · 61 tokens

rag-architect

Designs and implements production-grade RAG systems by chunking documents, generating embeddings, configuring vector stores, building hybrid search pipelines, applying reranking, and evaluating retrieval quality. Use when building RAG systems, vector databases, or knowledge-grounded AI applications requiring semantic…

Jeffallan/claude-skills · 73 tokens

pgvector-semantic-search

Use this skill for setting up vector similarity search with pgvector for AI/ML embeddings, RAG applications, or semantic search. Trigger when user asks to: Store or search vector embeddings in PostgreSQL Set up semantic search, similarity search, or nearest neighbor search Create HNSW or IVFFlat indexes for vectors…

timescale/pg-aiguide · 190 tokens

postgres-hybrid-text-search

Use this skill to implement hybrid search combining BM25 keyword search with semantic vector search using Reciprocal Rank Fusion (RRF). Trigger when user asks to: Combine keyword and semantic search Implement hybrid search or multi-modal retrieval Use BM25/pgtextsearch with pgvector together Implement RRF (Reciprocal…

timescale/pg-aiguide · 162 tokens

rag-construction

Build RAG systems for construction knowledge bases. Create searchable AI-powered construction document systems.

datadrivenconstruction/DDC_Skills_for_AI_Agents_in_Construction · 20 tokens