Logo: Ai Agents

Ai Agents

Communautéit
vasilyu1983
ai-agents

Architektur vun KI-Agenten, Zesummesetze vu Graphen a Loopen, Protokollwahl, Evaluatioun an Observabilitéit. Benotzt dëse Skill, wann Dir Systemer virun der Implementéierung ofgrenzt oder iwwerpréift.

Iwwersiicht

Editeurvasilyu1983
RepositoryAI-Agents-public
Skill-Nummai-agents
Stären
87
Forks
19
Matgeliwwert Dateien
65
LizenzMIT
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • 65 matgeliwwert Dateien

    Skripten, Virlagen a Referenzen, déi de Modell beim Schaffe liese kann. D'Dateie kënnen nëmme gelies ginn a ginn ni ausgeféiert.

  • Open Source

    vasilyu1983 huet de Skill op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Ai Agents an TypingMind, fir e mat all LLM ze benotzen, oder setzt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vu GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier, déi hei drënner steet, an a bestätegt d'Installatioun.
    https://github.com/vasilyu1983/AI-Agents-public/tree/main/frameworks/shared-skills/skills/ai-agents
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill derbäisetzen → Iwwer eng GitHub-URL. Pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an d'Skill-Verzeechnes vun deem KI-Agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/vasilyu1983/AI-Agents-public.git /tmp/AI-Agents-public
mkdir -p .claude/skills
cp -r /tmp/AI-Agents-public/frameworks/shared-skills/skills/ai-agents .claude/skills/ai-agents
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Ai Agents an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Ai Agents automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Ai Agents net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Schlësselen.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

AI Agents Development — Architecture Hub

Use this skill to decide whether a workflow should be an agent, which agent shape fits, which protocol boundary to use, and what production controls must exist before rollout.

Default posture: explicit control flow, bounded tools, typed contracts, auditable state, human approval for high-risk actions, and telemetry from day one.

Keep this file lean. Load detail from references/index.md, assets/, and sibling skills only when needed.

When to Use This Skill

Use this skill when the user asks for:

  • agent architecture or operating-model decisions
  • build-vs-not-agent assessment
  • MCP vs A2A protocol choice
  • production readiness review for an existing agent system
  • evaluation, observability, rollout, or safety planning
  • framework selection after requirements are already clear
  • a starting template for a new agent spec
  • graph engineering, agent/workflow graphs, state-machine orchestration, cyclic graphs, or DAG-versus-loop design
  • loop engineering, run-until-done coding agents, self-improving workflows, evaluator feedback loops, or bounded autonomous iteration
  • uncertainty over whether a "graph" means execution control flow, an improvement network, or a knowledge/context graph

Use Other Skills for Depth

Default Workflow

  1. Run the build-vs-not decision gate.
  2. Define the task environment: performance measure, environment, percepts/sensors, actions/tools, observability, determinism, time horizon, and single-agent vs multi-agent interaction.
  3. Choose control flow; default to workflow/FSM/DAG for production.
  4. Choose protocol boundaries: MCP for tools/data, A2A for agent handoffs.
  5. Define contracts: tool schemas, handoff payloads, state model, success criteria.
  6. Add evaluation and telemetry before shipping.
  7. Add human approval, rollback, and kill-switches for irreversible actions.
  8. Start from templates, then route to specialized skills for implementation depth.

ASCII Flow

text
Agent-system request
  -> Build-vs-not gate
     +-- simpler workflow/form/tool fits -> do not build an agent
     +-- autonomy justified              -> continue
  -> Define task environment and performance measure
  -> Choose control flow: workflow, FSM, DAG, or agent loop
  -> Set boundaries: MCP for tools/data, A2A for handoffs
  -> Define state, schemas, success criteria, and approvals
  -> Add evals, telemetry, rollback, and kill switches
  -> Route implementation depth to specialized skills

Known Traps

  • treating "agent" as the default interaction pattern when a workflow, form, or plain tool call would be simpler
  • using MCP as the overall agent architecture instead of the tool and resource integration layer
  • adding long-term memory without provenance (A13), retention policy, correction flow (A11 — forget path), and user-value proof. Use ai-context-layer/patterns-catalog.md to pick a named pattern and ai-context-layer/anti-patterns-catalog.md for the sweep
  • letting planner loops recurse without explicit step, budget, and escalation limits
  • shipping autonomous actions before evaluator coverage, rollback controls, and human approval paths exist
  • defaulting to a multi-agent topology for reasoning-heavy work when a single strong model at an equal token budget matches or beats it — under a fixed reasoning-token budget, message-passing between agents loses mutual information vs. full-context conditioning (Data Processing Inequality). Confirm the task is genuinely parallelizable or tool/role-diverse before fanning out. (arXiv:2604.02460, Apr 2026 preprint — not peer-reviewed; scope: text-only multi-hop reasoning; verify before relying.)

Common Anti-Patterns

  • chat-first agent design with no state model, contract, or action boundary
  • multi-agent topologies introduced before single-agent failure modes are understood
  • tool surfaces defined by convenience rather than least privilege
  • evaluation added after launch as observability theater instead of a release gate
  • provider or framework selection driven by hype, benchmark screenshots, or marketing taxonomy alone

Quick Reference

QuestionDefault
Should this be an agent?Start with references/build-vs-not-decision.md; default answer is "no" until volume, ambiguity, and value justify autonomy.
What is the task environment?State the performance measure, environment, percepts/sensors, actions/tools, observability, determinism, horizon, and other agents before choosing a framework.
Which control flow fits?Prefer workflow/FSM/DAG; use planner/executor only when branching cannot be modeled explicitly.
MCP or A2A?MCP for external tools/data, A2A for agent-to-agent coordination, both when a multi-agent system also needs tools.
When to use multi-agent?Only when roles, handoff contracts, and verifier responsibilities are explicit.
When to add long-term memory?Only with provenance, retention rules, user consent, and clear value. Pick a named pattern from ai-context-layer/patterns-catalog.md (P2 for app-orchestrated, P3 for self-editing, P4 for temporal, P6 for conversational). Run the anti-pattern sweep — A1 (no raw transcripts), A11 (forget path required), A13 (provenance mandatory).
What must exist before rollout?Eval suite, telemetry, action limits, human escalation, rollback path, and kill switch.
Is this "graph engineering" or "loop engineering"?Start with references/graph-and-loop-engineering.md; identify the graph's purpose before selecting a runtime or datastore.

Autonomy Shapes — How to Host an Agent 24/7

Three deployment shapes for running agents continuously. Pick by the trigger model, not by the framework.

ShapeTriggerWhen to usePrimary guide
A — Triggered / hosted runWebhook, queue, schedule, /firePer-event agent work, scheduled jobs, fan-out from external sources../ai-coding-agents-tasks/references/webhook-and-queue-triggers.md + ../ai-coding-agents-tasks/references/durable-trigger-integration.md
B — Always-on bot / voice serverSessions, WebSocket, SIP callSupport / sales / voice bots with conversational state../ai-bot-builder/references/production-deployment.md + ../ai-bot-builder/references/stateful-rollout-and-blue-green.md + ../ai-voice-bots/references/production-deployment.md
C — Autonomous loopPRD + loop driver until acceptance metLong-horizon work: refactors, migrations, research, Ralph-Loop classreferences/autonomous-loop-patterns.md

Cross-shape requirements:

Architecture Selection

NeedDefault Agent ShapeNotes
Deterministic business processWorkflow agentBest default for auditable production behavior.
Bounded external actionsTool-using agentKeep tools narrow, typed, and permission-scoped.
Knowledge-grounded answersRAG agentRequire citations, ACL-aware retrieval, and refusal on missing evidence.
Long multi-step work with branchingPlanner/executorUse strict step budgets, checkpoints, and replanning limits.
Specialized roles with explicit ownershipMulti-agent orchestratorHandoffs are APIs; add verifier/evaluator roles early. Score the design against the MAST failure taxonomy — do not re-derive it: ../agents-subagents/references/mast-failure-taxonomy.md (14 modes; original Cemri et al. distribution ≈ Specification/System Design 41.8% / Inter-Agent Misalignment 36.9% / Task Verification 21.3% — figures vary across secondary write-ups, verify against the primary paper before quoting; NeurIPS 2025 Datasets & Benchmarks track — arXiv:2503.13657).
Desktop or browser controlOS agentRequire sandboxing, UI verification, and action gating.
Code changes and CI feedbackSWE agentRequire repo isolation, tests, review gates, and rollback.
Autonomous improvement of code, prompts, or artifactsResearch / experiment agentFixed eval metric, bounded modification surface, keep/revert loop

Autonomous Improvement Loops

A research/experiment agent iterates autonomously: suggest a change → apply it → evaluate → keep or revert → repeat. The pattern works on anything with a measurable evaluation function.

ComponentPurposeExample
Modification surfaceWhat the agent can changeOne file (train.py), one prompt, one config
Eval functionHow to score the resultval_bpb, yes/no checklist (3-6 questions), latency measurement
Keep/revert ruleWhen to keep a changeScore improves; revert if it regresses
TerminationWhen to stopN rounds, target score reached, or manual stop
LedgerExperiment historyGit commits, results.tsv, changelog with reasoning

Design constraints:

  • Keep the modification surface small (one file, one prompt). Broader surfaces compound silent regressions.
  • Use binary or scalar metrics, not subjective ratings. "Does the headline include a specific number?" beats "rate the headline quality 1-10."
  • 3-6 eval criteria is the sweet spot. More causes gaming; fewer misses failure modes.
  • Preserve the changelog — future models pick up where the last agent left off.

See: autoresearch (ML training), Lehmann's skill-optimization adaptation (prompt/skill improvement).

Protocol Choice

If the system needs...Use
tool calls, database access, file access, prompts, resourcesMCP
task handoffs, agent cards, multi-agent routingA2A
both tools and collaborating agentsMCP + A2A

Protocol defaults:

  • Treat MCP as the tool/data integration layer, not as the agent architecture itself.
  • Treat A2A handoffs as versioned APIs with schema validation and trace_id propagation.
  • Prefer stdio or Streamable HTTP for MCP transports; treat older SSE-only guidance as compatibility material, not the default.
  • For remote MCP, scope authorization and identity explicitly; do not rely on network trust alone.
  • Known footgun: the official MCP SDK stdio interface has a by-design config→OS-command execution path (CVE-2026-30623; ~7k public servers exposed; Anthropic confirmed by-design and declined a protocol-level fix — input sanitization is the integrator's responsibility). Never pass untrusted server config into an stdio MCP launch; sandbox the MCP host process. Verified multi-source, April 2026.

Agent-as-Code Pattern

Define agent personas as structured, versioned artifacts with explicit expertise, constraints, and expected outputs. This pattern treats agent definitions as reviewable code rather than ad-hoc prompt strings.

A well-defined agent spec includes:

FieldPurpose
RoleWhat the agent is responsible for (e.g., "Architect", "QA reviewer")
ExpertiseDomain knowledge and capabilities
ConstraintsWhat it must not do, boundaries of authority
Expected outputsArtifacts it produces (specs, reviews, plans, code)
Interaction rulesHow it communicates with other agents or the human

Benefits: agents can be reviewed in PRs, diffed between versions, and composed into teams with explicit role boundaries.

For current delivery methods and when to borrow from GSD, BMAD, Spec Kit, OpenSpec, MADD, or AI-SDLC, see references/agent-delivery-methods.md.

Scale-Adaptive Agent Complexity

Match agent sophistication to task complexity. Do not use a full multi-agent orchestration for a bug fix, and do not use a single prompt for a platform migration.

Task ComplexityAgent Approach
Config change, typoDirect prompt, no agent infrastructure
Bug fix, small featureSingle agent with bounded tools
Multi-module featureLead + 2-3 specialized workers
Cross-service migrationFull orchestration with persona definitions, debate, and verification

The decision to scale up should be driven by observed ambiguity, not assumed complexity.

Production Defaults

  • Keep state explicit, serializable, and replayable.
  • Externalize all state to files — plan, progress, decisions, and dependency outputs persist in structured files so any agent session can resume without context inheritance.
  • Keep tool surfaces narrow; publish tasks, not raw backend complexity.
  • Bound retries, budgets, context size, and recursion depth.
  • Treat retrieved/tool content as untrusted input.
  • Instrument LLM calls, retrieval, memory ops, and tool calls with consistent tracing.
  • Gate database writes, financial actions, legal/compliance actions, and destructive operations behind human approval.
  • Prefer refusal or degraded mode over hidden unsafe fallbacks.

For fresh-context workers, durable state, and session-vs-project boundaries, see references/context-rotation-and-state.md.

Templates And Entry Points

Scripts

ScriptPurpose
scripts/agent_eval_runner.pyRead JSONL task/expected/actual triples and report pass rates (offline). For adversarial suites and multi-turn harnesses, delegate to ../qa-agent-testing/SKILL.md.
scripts/claude-usage.pyParse Claude Code usage logs
scripts/codex-usage.pyParse Codex usage logs

Navigation

Related Skills

Fact-Checking

  • Known bugs, regressions, framework/compiler/runtime footguns, and version-specific crash or workaround guidance must be verified against current primary web sources before being treated as current fact.
  • Verify current protocol specs, framework capabilities, release status, and vendor behavior before final answers.
  • Prefer official docs, primary specifications, and first-party repos for fast-moving agent infrastructure claims.
  • If a volatile claim cannot be checked, label it as unverified instead of presenting it as settled guidance.

Trend Awareness Protocol

When users ask for:

  • "best framework for X"
  • "is X still relevant"
  • "latest AI agent stack"
  • pricing, version, or support-matrix questions
  • MCP transport/auth guidance
  • A2A ecosystem or vendor SDK recommendations

verify with web search and primary sources before answering.

Volatile areas to re-check every time:

  • framework language support and lifecycle status
  • MCP transport and authorization guidance
  • OpenAI/Anthropic/Google pricing
  • A2A ecosystem maturity and official docs
  • vendor-specific tool, tracing, and handoff capabilities

If browsing is unavailable, use data/sources.json, say what is assumed, and avoid strong ranking claims.

Usage Notes

  • Start here for architecture and production posture, not for deep implementation walkthroughs.
  • Prefer stable capability guidance over dated framework rankings.
  • Load detailed references only after the user’s direction is clear.
  • Keep recommendations operational: contracts, failure modes, gates, telemetry, and rollback.

Learnings Loop

Before applying this skill on a non-trivial task, read learnings.consolidated.md in this directory (and learnings.md if present).

After applying it, if you encountered a pattern worth remembering, a mistake worth preventing, or a domain fact that surprised you, append one dated bullet to learnings.md via agents-skills-feedback-loop/scripts/append_learning.py. Do not modify SKILL.md itself.

Matgeliwwert Dateien

De Modell liest dës Dateie bei Bedarf, wärend de Skill gelueden ass. Si ginn als liesbar Dateie bereetgestallt a ginn ni ausgeféiert.

An nach 5 weider Dateien.

Heefeg gestallte Froen

Wat mécht de KI-Skill Ai Agents?

Architektur vun KI-Agenten, Zesummesetze vu Graphen a Loopen, Protokollwahl, Evaluatioun an Observabilitéit. Benotzt dëse Skill, wann Dir Systemer virun der Implementéierung ofgrenzt oder iwwerpréift.

Firwat Ai Agents op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Ai Agents besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt, amplaz en Abonnement pro Benotzerplaz ze bezuelen. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Ai Agents an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/vasilyu1983/AI-Agents-public/tree/main/frameworks/shared-skills/skills/ai-agents an. TypingMind liest d'Datei SKILL.md, bëndelt déi zougehéiereg Dateien an installéiert dat Ganzt als Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Ai Agents benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Ai Agents benotzen?

Esou vill wéi Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Ai Agents domat benotzen – zum Beispill mat GPT, Claude, Gemini, Grok, DeepSeek, Mistral oder Llama – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Ai Agents gratis?

Jo. vasilyu1983 huet de Skill ënner der Lizenz MIT op GitHub publizéiert. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbare Pak vun Instruktiounen, deen engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt e maache soll a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a kee Lafzäitëmfeld a funktionéiere mat all Modell.

Alleguer weisen

Elo Ären eegene KI-Aarbechtsberäich ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇