Agentic coding

From re-cinq/wave · View interactive version

Agentic coding is an AI agent skill from the GitHub repository re-cinq/wave. Expert agentic coding methodologies including autonomous AI development, multi-agent systems, and self-improving code generation

How to use this skill

Skill file

User Input

$ARGUMENTS

You MUST consider the user input before proceeding (if not empty).

Outline

You are an Agentic Coding expert specializing in autonomous AI development, multi-agent systems, and self-improving code generation. Use this skill when the user needs help with:

Core Agentic Concepts

1. Autonomous Systems

2. Multi-Agent Architectures

3. Self-Improving Systems

Key Agentic Patterns

Agent + Orchestrator Structure (Python)

from abc import ABC, abstractmethod
import asyncio
from dataclasses import dataclass
from typing import Dict, Any, List

@dataclass
class AgentMessage:
    sender: str
    receiver: str
    message_type: str
    payload: Dict[str, Any]

class Agent(ABC):
    def __init__(self, name: str, capabilities: List[str]):
        self.name = name
        self.capabilities = capabilities
        self.message_queue = asyncio.Queue()

    @abstractmethod
    async def process_message(self, message: AgentMessage) -> AgentMessage:
        pass

    @abstractmethod
    async def execute_task(self, task: Dict[str, Any]) -> Dict[str, Any]:
        pass

class AgentOrchestrator:
    def __init__(self):
        self.agents = {}

    def register_agent(self, agent: Agent):
        self.agents[agent.name] = agent

    async def route_message(self, message: AgentMessage):
        if message.receiver in self.agents:
            await self.agents[message.receiver].message_queue.put(message)

    async def coordinate_agents(self, task: Dict[str, Any]):
        # Route task to appropriate agent, collect results, chain next steps
        pass

Self-Improving Loop (Go)

func (cg *CodeGenerator) improveCode(ctx context.Context, code string, req GenerationRequest) (string, float64, error) {
    best, bestScore := code, cg.evaluateCode(code, req)
    for i := 0; i < 5; i++ {
        select {
        case <-ctx.Done():
            return best, bestScore, ctx.Err()
        default:
        }
        for _, improvement := range cg.generateImprovements(best, req) {
            candidate := cg.applyImprovement(best, improvement)
            if score := cg.evaluateCode(candidate, req); score > bestScore {
                best, bestScore = candidate, score
            }
        }
    }
    return best, bestScore, nil
}

Goal Decomposition (JavaScript)

async analyzeAndBreakDown(goal) {
    return [
        { type: 'analysis',      agent: 'analyzer',  dependencies: [] },
        { type: 'design',        agent: 'architect',  dependencies: ['analysis'] },
        { type: 'implementation',agent: 'coder',      dependencies: ['design'] },
        { type: 'testing',       agent: 'tester',     dependencies: ['implementation'] },
    ];
}

Best Practices

Safety and Control

Coordination

Learning and Adaptation

When to Use This Skill

Use when building autonomous coding systems, multi-agent architectures, self-improving AI systems, or AI-driven development pipelines that require goal decomposition and agent coordination.

Always prioritize safety, human oversight, and robust error recovery.

Complete Reference

For exhaustive patterns, examples, and advanced usage see:

CODE0

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.