Agent skill

Agent Harness Construction

by KartikLabhshetwar in KartikLabhshetwar/mind-mentor

Design and optimize AI agent action spaces, tool definitions, and observation formatting for higher completion rates.

Apache-2.0Auto-check passedAI & LLM Engineering

Install Agent Harness Construction

skills CLI
$ npx skills add KartikLabhshetwar/mind-mentor --skill agent-harness-construction -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install KartikLabhshetwar/mind-mentor agent-harness-construction --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/KartikLabhshetwar/mind-mentor.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/agent-harness-construction .claude/skills/agent-harness-construction && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
agent-harness-construction
GitHub stars
148
Used in
6 other repos
Token cost
~500 tokens
SKILL.md length
234 words
Files
1
Skills in repo
2
Repo updated
First seen
Licence
Apache-2.0

At a glance

Design and optimize AI agent action spaces, tool definitions, and observation formatting for higher completion rates.

  • Works in 4 steps: Action space quality → Observation quality → Recovery quality → …
  • Tasks that involve Structured output and tool calling
  • SKILL.md covers Core Model, Action Space Design, Granularity Rules and Observation Design, plus 5 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Agent Harness Construction is an agent skill from KartikLabhshetwar/mind-mentor. Design and optimize AI agent action spaces, tool definitions, and observation formatting for higher completion rates.

Its SKILL.md is about 500 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in AI & LLM Engineering, covering Structured output and tool calling. The repository describes itself as: Mind Mentor is an innovative AI-powered study assistant designed to revolutionize the way students learn and prepare for exams. The licence is Apache-2.0.

When your agent uses it

  • Tasks that involve Structured output and tool calling

Example prompts

  • “/agent-harness-construction”

Workflow steps

4 steps, taken from the first numbered list in SKILL.md.

  1. Action space quality
  2. Observation quality
  3. Recovery quality
  4. Context budget quality

What it can do on your machine

Read from SKILL.md and the folder at commit 28873de. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Agent Harness Construction loads about 500 tokens when it runs. Until then it costs about 36 tokens; SKILL.md has 234 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~36
When it runs · the whole SKILL.md, loaded when a task matches
~500

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from KartikLabhshetwar/mind-mentor at commit 28873de, republished under its Apache-2.0 licence (© KartikLabhshetwar). 234 words, ~500 tokens.

Download SKILL.mdSave it as .claude/skills/agent-harness-construction/SKILL.md (or your agent's skills folder).
name
agent-harness-construction
description
Design and optimize AI agent action spaces, tool definitions, and observation formatting for higher completion rates.
origin
ECC

Agent Harness Construction

Use this skill when you are improving how an agent plans, calls tools, recovers from errors, and converges on completion.

Core Model

Agent output quality is constrained by:

  1. Action space quality
  2. Observation quality
  3. Recovery quality
  4. Context budget quality

Action Space Design

  1. Use stable, explicit tool names.
  2. Keep inputs schema-first and narrow.
  3. Return deterministic output shapes.
  4. Avoid catch-all tools unless isolation is impossible.

Granularity Rules

  • Use micro-tools for high-risk operations (deploy, migration, permissions).
  • Use medium tools for common edit/read/search loops.
  • Use macro-tools only when round-trip overhead is the dominant cost.

Observation Design

Every tool response should include:

  • status: success|warning|error
  • summary: one-line result
  • next_actions: actionable follow-ups
  • artifacts: file paths / IDs

Error Recovery Contract

For every error path, include:

  • root cause hint
  • safe retry instruction
  • explicit stop condition

Context Budgeting

  1. Keep system prompt minimal and invariant.
  2. Move large guidance into skills loaded on demand.
  3. Prefer references to files over inlining long documents.
  4. Compact at phase boundaries, not arbitrary token thresholds.

Architecture Pattern Guidance

  • ReAct: best for exploratory tasks with uncertain path.
  • Function-calling: best for structured deterministic flows.
  • Hybrid (recommended): ReAct planning + typed tool execution.

Benchmarking

Track:

  • completion rate
  • retries per task
  • pass@1 and pass@3
  • cost per successful task

Anti-Patterns

  • Too many tools with overlapping semantics.
  • Opaque tool output with no recovery hints.
  • Error-only output without next steps.
  • Context overloading with irrelevant references.

© KartikLabhshetwar, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .agents/skills/agent-harness-construction of KartikLabhshetwar/mind-mentor.

Open the folder on GitHubat commit 28873de

Used in 6 other repositories

We found 13 copies of this SKILL.md (exact, near-identical or edited) in other folders, from 6 other GitHub owners. This page covers the copy in KartikLabhshetwar/mind-mentor, which our catalogue first saw on October 7, 2026.

Compare with similar skills

Agent Harness Construction next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Agent Harness Construction compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Agent Harness Construction this skillKartikLabhshetwar/mind-mentor1486 repos~500Automated safety check: PassApache-2.0
Planning With Filesjarrodwatts/claude-code-config1.1k5 repos~967Automated safety check: PassNone
Tool Use Data Synthesissunny-glow/Auto-BenchMax1.3k—~3.3kAutomated safety check: PassNone
Prompt Engineering Patternswshobson/agents40k—~1.3kAutomated safety check: PassMIT
Model Benchmarkstheopenco/llmgateway1.7k—~1.1kAutomated safety check: NotesCustom licence
Agent Prompt Quality Barmastra-ai/mastra29k—~2kAutomated safety check: PassCustom licence

Similar skills

  • Planning With Files

    jarrodwatts/claude-code-config

    Transforms workflow to use Manus-style persistent markdown files for planning, progress tracking, and knowledge storage.

    1.1k GitHub starsUsed in 5 repos~967 tokens
    AI & LLM EngineeringAuto-check passed
  • Tool Use Data Synthesis

    sunny-glow/Auto-BenchMax

    Synthesize training data for ANY tool-use / agentic benchmark, in ANY repo.

    1.3k GitHub stars~3.3k tokensUpdated 2 mo ago
    AI & LLM EngineeringAuto-check passed
  • Reference for designing and tuning production LLM prompts: few-shot examples, chain-of-thought, structured outputs, templates and system prompts.

    40k GitHub stars~1.3k tokensUpdated 4 days ago
    AI & LLM EngineeringAuto-check passed
  • Model Benchmarks

    theopenco/llmgateway

    Run and report repository model or provider-mapping benchmarks.

    1.7k GitHub stars~1.1k tokensUpdated today
    AI & LLM EngineeringAuto-check: notes
  • Agent Prompt Quality Bar

    mastra-ai/mastra

    Universal quality bar and final audit rubric for any agent system prompt.

    29k GitHub stars~2k tokensUpdated today
    AI & LLM EngineeringAuto-check passed
  • Add AI Chat Tool

    ryokun6/ryos

    Add or modify an AI chat tool ("Ask Ryo" capability) in ryOS.

    1.3k GitHub stars~2.2k tokensUpdated today
    AI & LLM EngineeringAuto-check passed

More from KartikLabhshetwar/mind-mentor

  • Coding Standards

    KartikLabhshetwar/mind-mentor

    Baseline cross-project coding conventions for naming, readability, immutability, and code-quality review.

    148 GitHub starsUsed in 4 repos~3.1k tokens
    Auto-check passed

Questions about Agent Harness Construction

What does Agent Harness Construction do?

Design and optimize AI agent action spaces, tool definitions, and observation formatting for higher completion rates. Agent Harness Construction is an agent skill from KartikLabhshetwar/mind-mentor. Design and optimize AI agent action spaces, tool definitions, and observation formatting for higher completion rates.

When should I use Agent Harness Construction?

Agent Harness Construction fits situations like: tasks that involve Structured output and tool calling.

How do I install Agent Harness Construction in Claude Code?

Run `npx skills add KartikLabhshetwar/mind-mentor --skill agent-harness-construction -a claude-code`. Or copy the skill folder (.agents/skills/agent-harness-construction in KartikLabhshetwar/mind-mentor) into .claude/skills/agent-harness-construction in your project. Claude Code loads it when a task matches its description.

How do I install Agent Harness Construction in Codex?

Run `npx skills add KartikLabhshetwar/mind-mentor --skill agent-harness-construction -a codex`. Or copy the skill folder (.agents/skills/agent-harness-construction in KartikLabhshetwar/mind-mentor) into .agents/skills/agent-harness-construction in your project. Codex loads it when a task matches its description.

Can I use Agent Harness Construction in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add KartikLabhshetwar/mind-mentor --skill agent-harness-construction -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/agent-harness-construction, .gemini/skills/agent-harness-construction, .github/skills/agent-harness-construction and .opencode/skills/agent-harness-construction in your project.

What does Agent Harness Construction need to run?

SKILL.md names no scripts, command-line tools or credentials: Agent Harness Construction is instructions for the agent only.

Does Agent Harness Construction access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Agent Harness Construction safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Agent Harness Construction use?

Agent Harness Construction is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Agent Harness Construction use?

About 500 tokens (SKILL.md is roughly 2k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Agent Harness Construction?

Skills that share tags, products or a category with Agent Harness Construction: Planning With Files (jarrodwatts/claude-code-config, 1.1k stars), Tool Use Data Synthesis (sunny-glow/Auto-BenchMax, 1.3k stars), Prompt Engineering Patterns (wshobson/agents, 40k stars) and Model Benchmarks (theopenco/llmgateway, 1.7k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Agent Harness Construction?

KartikLabhshetwar (a GitHub user) maintains it in KartikLabhshetwar/mind-mentor, which has 148 GitHub stars. The repository holds 2 skills in this directory. The repository was last updated on May 18, 2026.

Source: KartikLabhshetwar/mind-mentor on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.