Skip to content
Agentmart
Submit a tool

ai-agent

Build AI agents with OpenAI API, chat interfaces (CLI/Web/API), A2A registry, MCP registry, and inter-agent communication.

Skill by x1chg956

IndexedApache-2.0
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/x1chg956-ai-agent

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Build AI agents with OpenAI API, chat interfaces (CLI/Web/API), A2A registry, MCP registry, and inter-agent communication. Use when creating conversational agents, multi-agent systems, agent registries, or when the user mentions OpenAI agents, A2A, MCP servers, or agent orchestration.

Use cases: backend, agent-building

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/ai-agent

What's inside

Skill name
ai-agent
Description
Build AI agents with OpenAI API, chat interfaces (CLI/Web/API), A2A registry, MCP registry, and inter-agent communication. Use when creating conversational agents, multi-agent systems, agent registries, or when the user mentions OpenAI agents, A2A, MCP servers, or agent orchestration.
License
Apache-2.0
Metadata
owner: engineering · domain: develop · version: 1.0.0
Instructions
185 lines in SKILL.md · view on GitHub

Files (5)

  • SKILL.md
  • agent-communication.md
  • chat-interfaces.md
  • openai-patterns.md
  • advanced-patterns.md · references/

SKILL.md (first lines)

# AI Agent Development

Build multi-agent systems with OpenAI API, chat interfaces, and agent registries.

## Quick Start

### Project Structure

```
my-agent-project/
├── agents/
│   ├── base_agent.py          # Base agent class
│   ├── chat_agent.py          # Conversational agent
│   └── specialist_agent.py    # Domain-specific agent
├── registry/
│   ├── a2a_registry.py        # Agent-to-Agent registry
│   └── mcp_registry.py        # MCP server registry
├── interfaces/
│   ├── cli.py                 # CLI chat interface
│   ├── api.py                 # REST/WebSocket API
│   └── web/                   # React frontend
├── communication/
│   └── message_bus.py         # Inter-agent messaging
├── config/
│   └── settings.py            # Configuration
└── docker-compose.yml         # PostgreSQL + Redis
```

## Core Components

### 1. Base Agent (Python)

```python
from openai import OpenAI
from abc import ABC, abstractmethod
from typing import AsyncIterator
import json

class BaseAgent(ABC):
    def __init__(self, agent_id: str, name: str, model: str = "gpt-4o"):
        self.agent_id = agent_id
        self.name = name
        self.model = model
        self.client = OpenAI()
        self.system_prompt = self._build_system_prompt()
        self.conversation_history = []
    
    @abstractmethod
    def _build_system_prompt(self) -> str:
        """Define agent's personality and capabilities."""
        pass
    
    @abstractmethod
    def get_tools(self) -> list[dict]:
        """Define agent's available tools/functions."""
        pass
    
    async def chat(self, message: str) -> str:
        self.conversation_history.append({"role": "user", "content": message})
        
        response = self.client.chat.completions.create(
            model=self.model,
            messages=[
                {"role": "system", "content": self.system_prompt},
                *self.conversation_history
            ],
            tools=self.get_tools() or None
        )
        
        assistant_message = response.choices[0].message
        
        # Handle tool calls
        if assistant_message.tool_calls:
            return await self._handle_tool_calls(assistant_message)
        
        self.conversation_history.append({
            "role": "assistant", 
            "content": assistant_message.content
        })
        return assistant_message.content
    
    async def stream_chat(self, message: str) -> AsyncIterator[str]:
        """Stream responses for real-time chat."""
        self.conversation_history.append({"role": "user", "content": message})
        
        stream = self.client.chat.completions.create(
            model=self.model,
            messages=[
                {"role": "system", "content": self.system_prompt},
                *self.conversation_history
            ],
            stream=True
        )
        
        full_response = ""
        for chunk in stream:
            if chunk.choices[0].delta.content:
                content = chunk.choices[0].delta.content
                full_response += content
                yield content
        
        self.conversation_history.append({
            "role": "assistant",
            "content": full_response
        })
```

### 2. Base Agent (TypeScript)

```typescript
import OpenAI from 'openai';
import { ChatCompletionMessageParam, ChatCompletionTool } from 'openai/resources';

export abstract class BaseAgent {
  protected client: OpenAI;
  protected conversationHistory: ChatCompletionMessageParam[] = [];
  
  constructor(
    public readonly agentId: string,

From x1chg956/sdlc-skills, Apache-2.0.

More from x1chg956/sdlc-skills

Signals

Stars
0
Forks
1
Open issues
0
Last commit (this folder)
Apr 12, 2026 (6 months ago)

From GitHub (fetched Oct 24, 2026).

Details

Version
1.0.0
License
Apache-2.0
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from x1chg956

Cite this page

ai-agent skill. Agent Mart. https://agentmart.dev/skills/x1chg956-ai-agent (last updated 2026-10-24)