Skip to content
Back to skills

Coordination

ASecurity

Implements advanced AI patterns like Reflection, ReAct, Planning, and Tool Use.

  • 24 stars
  • 0 votes
  • 0 copies
  • 5 views
  • Added October 14, 2026
ai-agentsgoreactrailsapidatabase

Works with

  • api

Security analysis

A100/100

Pro scans all 12 files and shows the line behind each finding

Scanned November 22, 2026

npx -y skills add andreibesleaga/GABBE --skill coordination --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Coordination?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Coordination
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/andreibesleaga-coordination-ebf34840/badge)](https://www.skillsdirectory.com/skills/andreibesleaga-coordination-ebf34840)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: agentic-patterns
description: Implements advanced AI patterns like Reflection, ReAct, Planning, and Tool Use.
triggers: [agentic, reflection, react pattern, planning, memory, tool use]
tags: [coordination]
context_cost: high
---
# Agentic Patterns Skill

## Goal
To build sophisticated AI agents that can think, plan, and correct themselves using 2025-era cognitive architectures.

## Supported Patterns

### 1. Reflection / Self-Correction
**The Problem**: Models make mistakes.
**The Solution**: Ask the model to review its own output *before* finalizing it.
-   **Flow**: `Generate` -> `Critique` -> `Refine`.
-   **Usage**: Critical code generation, complex math, reasoning tasks.

### 2. ReAct (Reason + Act)
**The Problem**: Models need external information.
**The Solution**: Interleave reasoning traces with tool execution.
-   **Flow**: `Thought` -> `Action` -> `Observation` -> `Thought`...
-   **Usage**: Web browsing, database querying, API interaction.

### 3. Planning (Chain of Thought)
**The Problem**: Complex tasks need decomposition.
**The Solution**: Break goal into a sequence of steps.
-   **Flow**: `Goal` -> `Plan` -> `Execute Step 1` -> `Update Plan`.
-   **Usage**: Multi-step workflows, project implementation.

### 4. Memory Augmented
**The Problem**: Context window limits.
**The Solution**: External storage (Vector DB, Knowledge Graph).
-   **Types**:
    -   **Episodic**: Past interactions ("What did we do yesterday?").
    -   **Semantic**: Facts and knowledge ("How does this repo work?").
    -   **Procedural**: How to do things (stored skills/tools).

### 5. Tool Use / Function Calling
**The Problem**: Models can't "do" things.
**The Solution**: Structured output mapped to executable functions.
-   **Best Practice**: Define strict JSON schemas for tools constraints.

## Steps
1.  **Identify Need**: "The user wants a research report."
2.  **Select Pattern**: "This requires **Planning** (to outline the report) and **ReAct** (to search the web)."
3.  **Implement**:
    -   Define the loop (e.g., `while not done:`).
    -   Define the prompt structure (e.g., "You are a researcher...").
    -   Implement the tool execution layer.

## Grounded Self-Critique (avoid the reflection-reinforcement trap)

The Reflection pattern above has a sharp failure mode: **pure self-evaluation without an external anchor is unsafe**. If the critic is the same model (or shares the generator's blind spots), reflection does not correct errors — it *reinforces* them, lending false confidence to a wrong answer and burning tokens to do it. A model that was confidently wrong stays confidently wrong, now with a "reviewed" stamp.

**Hard rule**: any reflection / self-review loop MUST include at least one **externally-grounded signal** — something the model cannot simply assert is true:
- **A deterministic check** — a passing test, a schema/lint/type check, a compile or run. Pass/fail comes from the environment, not the model's opinion.
- **A symbolic constraint check** — verify the output against explicit rules/invariants (units, ranges, logical constraints, a solver) rather than asking the model "is this right?".
- **Per-step (process-level) scoring rather than only final-answer scoring** — score the *trace as it unfolds* and **prune a reasoning path the moment it goes off the rails**, instead of grading only the final answer. Process-level scoring is what catches the "right answer for the wrong reasons" case, where a final-answer check would wave a lucky-but-unsound trace through.

**Always pair grounded critique with strict termination** so the loop cannot spin forever even when it never satisfies the anchor: a **max-iteration** cap, a **token / wall-clock budget**, and a **quality-threshold exit** (stop once the grounded signal clears the bar — do not keep "improving" past good-enough).

For an LLM-based critic used *alongside* (never instead of) these grounded signals — rubric design, bias controls, and calibration — see `llm-as-judge.skill`.

## Constraints
- A reflection loop without an external check, a maximum iteration count and a budget is not allowed (see Grounded Self-Critique above).
- Choose the simplest pattern that meets the task; add another only when the first does not.

## Output Format
A short design note: pattern chosen and why, the loop, the tools and their limits, the exit conditions, and the external check used by any critique step.

## Limits and safety
- Every loop has a maximum iteration count, a token or time budget and a quality exit; stop and report when one is hit.
- Run ReAct tool actions with least privilege: no network or write access unless the task needs it.
- Keep memory per task or tenant; do not retrieve one task's personal data into another.
- A critique step needs an external check (test, linter, schema); the model's opinion alone does not count.
- New observations never overwrite system instructions or the Constitution.

Files in this skill

  • agent-interop.skill.md3.7 KB
  • agent-protocol.skill.md3.1 KB
  • agent-workflow-patterns.skill.md8.1 KB
  • agentic-linter.skill.md5.5 KB
  • agentic-patterns.skill.md5.4 KB
  • meta-optimize.skill.md4 KB
  • meta-prompting.skill.md2.6 KB
  • multi-agent-orch.skill.md7.5 KB
  • persona-selector.skill.md6.2 KB
  • self-optimize.skill.md5.5 KB
  • swarm-consensus.skill.md3.8 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.