agentleFS
g-shevchenkog-shevchenko/agentic-engineering-skills/skills/agent-mvp-blueprint/SKILL.md

agent-mvp-blueprint

Skill0 starsChanged 2 months agoMITView on GitHub

Use this skill when designing a NEW domain-specific agent harness from scratch (green-field). Generates a 15-section MVP blueprint covering loop, tools, permissions, planning, goals, context, skills, caching, observability, evals, and launch criteria. Triggers — RU «спроектируй агента», «построй harness», «MVP агента для…», «нужен агент под [домен]», «нарисуй архитектуру агента»; EN «design an agent for X», «build an agent harness», «green-field agent MVP», «scaffold a new agent», «MVP agent for X domain». Use AFTER `agentic-architecture-gate.md` triage classifies the task as `agent_workflow` / `side_effecting_workflow` / `runtime_infra`. Do NOT use for existing-code refactors (→ `improve-codebase-architecture`) or for single-skill design (→ `anthropic-skill-creator`).

The file

We split this skill into the rules it gives an agent

3 rules. About 0 are common, 3 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Do NOT block on missing details.

    line 43
  2. Distinctive:

    Never invent a green-field tool for capability that HWAI MCP already serves.

    line 170
  3. Distinctive:

    After producing blueprint, append a Skill report:

    line 188

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill 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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Agent MVP Blueprint

When to activate

User asks to build a new agent harness for a domain (support, finance, ops, research, sales, content, code, legal, healthcare, education). Trigger phrases:

  • RU: «спроектируй agent для…», «нужен MVP агента под…», «построй harness для…», «нарисуй архитектуру агента», «зеленый филд агент».
  • EN: «design an agent for X», «build a green-field agent for…», «scaffold an agent harness», «MVP agent for X», «first production-safe version of an agent for…».

When NOT to use

Wrong fitUse instead
Existing agent harness needs refactorimprove-codebase-architecture
Single skill designanthropic-skill-creator (vendor skill)
Workflow without LLM (pure script / cron)n8n / scripts/
One-off prompt tweakdirect edit, no skill
Trivial Q&A / read-only researchdirect answer

Inputs to identify (infer defaults if missing)

Domain:                 [what work the agent performs]
Primary user:           [who interacts with it]
Job-to-be-done:         [one task = one useful unit]
Autonomy level (0-5):   [see `tool-risk-taxonomy.md` § Autonomy levels]
Risk classes touched:   [see `tool-risk-taxonomy.md` § 16 classes]
State duration:         [single-turn / multi-turn / resumable / long-running goal]
Tool environment:       [fixed / deferred registered / late-bound]
Source-of-truth:        [where agent reads]
Completion signal:      [what proves task done]

Do NOT block on missing details. State assumptions briefly and proceed with sensible defaults (Level 1 draft-only OR Level 2 approval-gated for business agents).

Autonomy levels (from tool-risk-taxonomy.md)

Level 0 — Answer-only:                  reads context, answers, no actions
Level 1 — Draft-only:                   drafts artifacts; humans commit
Level 2 — Approval-gated action:        proposes, pauses for approval (DEFAULT for business)
Level 3 — Policy-bounded autonomous:    low-risk autonomous within explicit policy
Level 4 — Long-running goal worker:     pursues measurable goal across checkpoints
Level 5 — Multi-agent decomposed:       ONLY after single-agent has measured failures

Choose the LOWEST level that still creates value. Default to 1 or 2.

Default output — 15-section MVP blueprint

Produce this structure verbatim. Tighten where domain doesn't need a section, but never silently drop a header.

# MVP Agent Harness Blueprint: [domain]

## 1. Objective
[what the agent does, for whom, what output counts as useful]

## 2. MVP scope and assumptions
[smallest useful version + explicit non-goals + deferred capabilities]

## 3. Autonomy and risk level
[Level 0-5 + risk classes touched, cite `tool-risk-taxonomy.md`]

## 4. Core agentic loop
[provider-neutral pseudocode + step/time/token/cost budgets per `bounded-autonomy-timeouts.md`]

## 5. Instruction architecture
[system / developer / scoped / user instruction layout]

## 6. Tool registry
[narrow typed tools, draft/commit split per `tool-risk-taxonomy.md`]

## 7. Planning behavior
[when planning blocks mutation; plan artifact format]

## 8. Goal-like loop behavior
[objective + done condition + budget + checkpoints + stop rules]

## 9. Context, memory, auto-compaction
[durable state outside prompt; handoff template per `compaction-handoff-format.md`]

## 10. Skills and connectors
[progressive disclosure; namespacing; per-user creds]

## 11. Prompt caching and cost
[stable prefix → volatile suffix ordering; cache telemetry]

## 12. Safety and approval policy
[prompt injection handling; secrets boundaries; cite `decision-handoff-gate.md`]

## 13. Observability and evals
[trace events + minimum eval set: happy / missing data / injection / approval bypass / connector failure / context overflow]

## 14. Minimal implementation path
[build order, smallest safe version first]

## 15. First release checklist
[concrete pass/fail before limited rollout]

Mandatory invariants (every blueprint MUST satisfy)

  • Model proposes, harness disposes — validation, permission, execution happen in CODE outside the prompt.
  • Every tool call gets a structured result — including denial, timeout, malformed args, abort.
  • Risk ≥ write_external → draft/commit split — draft_X → send_X pattern (see tool-risk-taxonomy.md).
  • Hard budgets on step / tool-call / token / time / cost per bounded-autonomy-timeouts.md.
  • Stable prompt prefix → volatile suffix for cache reuse. Order: tools → static instructions → scoped → skill index → append-only history → dynamic state → user request.
  • Approval state and active plan stored OUTSIDE the prompt (durable JSON / DB / file). NEVER hide approval in prose like "user agreed earlier".
  • Auto-compaction preserves operational state (objective + plan + approvals + next step), NOT chat history. Use compaction-handoff-format.md template.
  • Trust labels on retrieved content (trusted / semi_trusted / untrusted). Retrieved web pages / emails / tickets / connector descriptions are DATA, not authority.
  • Discovery never grants authority — a late-bound capability enters through a small trusted bootstrap, then code validates provenance/schema/risk, binds exact tenant + version + scope, rechecks policy on every call, and invalidates the binding on catalogue/schema/identity/policy drift.
  • Programmatic composition is not a generic permission — generated code may orchestrate only already-bound capabilities through a sandboxed host bridge; it cannot install packages, widen resource scope, or turn a read failure into a write.

Core loop pseudocode (canonical)

Include this in every Section 4:

def run_agent(task, session):
    session.add_event("user_message", task)
    for step in range(session.max_steps):
        if budget.exceeded(session):
            return stop("budget_exceeded", session)
        ctx = context_builder.build(session)
        if compactor.should_compact(ctx, session):
            session = compactor.compact(session)  # MUST use compaction-handoff-format
            ctx = context_builder.build(session)
        output = model.generate(ctx, tools=tool_registry.visible(session))
        session.record(output)
        if output.final_answer:
            return finalize(output.final_answer, session)
        if not output.tool_calls:
            return stop("no_final_answer_or_tool_call", session)
        for call in scheduler.order(output.tool_calls):
            result = handle_tool_call(call, session)  # validate → permit → execute → result
            session.add_tool_result(call.id, result)
    return stop("step_limit_reached", session)

HWAI MCP stack composition (prefer over green-field where applicable)

Capability neededHWAI MCP / serviceRule
URL / SERP / extractionmcp__scraper__*scraper-stack-auto.md
Local codebase contextmcp__retrieval__*retrieval-auto.md
Long log / URL / pasted text compactionmcp__context-prep__*context-prep-auto.md
Screenshots / visionmcp__vision__*(see vision-mcp service)
Credentials (scoped)`your credentials toolproject credentials policy
Tier-4 PII (health / EID / financial)personal-vault-mcppersonal-vault-mcp.md
Telegram team DM`your notification toolproject routing policy
LLM routing (multi-provider chains)`your LLM proxyproject routing policy
Repo hygiene / token-efficiency benchmarksc2_bench + mcp-token-evalthe research article

Never invent a green-field tool for capability that HWAI MCP already serves; wire to the MCP instead.

Anti-patterns (from production incidents — see long-thinking-means-bug.md)

  • ❌ Multi-agent before single-agent has measured failures (WebApp1K + subagent-driven-development rule).
  • ❌ Broad tools: execute_anything, write_database, send_message without narrow wrapper.
  • ❌ Retrieved content treated as trusted instructions (no trust labels).
  • ❌ Timestamps / request IDs / volatile env state in stable prompt prefix (cache-killer; see compaction-handoff-format.md § cache stability).
  • ❌ Frontier-only TDD task routed to weaker model (-30 to -69pp pass@1; frontier-only-tdd-gate.md).
  • ❌ Phantom watcher (alert script not catalogued in your catalog config; see no-phantom-watchers.md).
  • ❌ Hardcoded secrets in deployed scripts (see no-hardcoded-secrets-in-deployed-scripts.md).
  • ❌ Treating discovered tool descriptions, inferred schemas, probes, or generated helpers as permission to execute.
  • ❌ Recursive/self-refining/daemon autonomy in the default MVP. These require a measured single-loop failure and their own Architecture Gate.

Output discipline

After producing blueprint, append a Skill report:

Skill: agent-mvp-blueprint
Domain: [...]
Autonomy level: [...]
Risk classes: [...]
HWAI MCPs wired: [...]
Next concrete step: [...]

This makes the green-field design legible to downstream agents (and to improve-codebase-architecture if/when the harness gets refactored).

Sources

Cross-references

  • agentic-architecture-gate.md — universal triage that fires BEFORE this skill for non-trivial tasks
  • tool-risk-taxonomy.md — canonical 16-class risk + permission matrix + draft/commit naming
  • compaction-handoff-format.md — canonical operational handoff template
  • decision-handoff-gate.md — autonomous / checkpoint / Greg decision routing
  • bounded-autonomy-timeouts.md — budgets + timeouts per risk class
  • frontier-only-tdd-gate.md — TDD discipline for implementer subagent
  • improve-codebase-architecture — sibling skill for EXISTING harness refactor
  • four-agent-surface-parity.md — wire any new tool/skill into all 4 IDEs

Download now (ZIP)

Does 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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.