Skip to content
Back to skills

Add Agent Definition

ASecurity

Procedural workflow for adding support for a new coding agent to agenteq.

  • 7 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 19, 2026
ai-agentstypescript

Works with

  • cli
  • mcp

Security analysis

A100/100

Scanned November 9, 2026

npx -y skills add sunchayn/agenteq --skill add-agent-definition --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Add Agent Definition?

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

Security grade badge for Add Agent Definition
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/sunchayn-add-agent-definition/badge)](https://www.skillsdirectory.com/skills/sunchayn-add-agent-definition)

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: add-agent-definition
description: Procedural workflow for adding support for a new coding agent to agenteq.
---

# Adding an Agent Definition

## 1. What a definition is

One file in `src/modules/agents/definitions/`, exporting one `new Agent({...})`.

- Capability needing only a path (`guidelinesPath`, `commandsDir`, `skillsDir`): plain string field.
- Capability needing more shape (`mcp`): own configuration object, built with a `create{Name}Configuration` factory.
- Reference: `definitions/claude-code.ts`.

## 2. Steps

1. Create `src/modules/agents/definitions/{name}.ts`, default-exporting one `new Agent({...})`. Why default export: [write-typescript-code](../write-typescript-code/SKILL.md) section 4.
2. Set `name` (snake_case, machine-readable) and `displayName`.
3. Set `detectSystemPathUsing`: closure returning a `DetectionConfiguration` for CLI detection on the system, usually a `command` check.
4. Set `detectProjectPathUsing`: closure returning a `DetectionConfiguration` for detecting the agent in the current project, usually `files` or `paths` checks.
5. Set only capabilities the agent supports: `guidelinesPath`, `commandsDir`, `skillsDir` (string paths), `mcp` (`McpConfiguration` from `createMcpConfiguration`, with `configPath` and `entryMappers`).
6. Register in `src/modules/agents/registry.ts`: one import, one entry in `agentDefinitions`.

No other source file should change. If a sync stage needs touching, a capability abstraction leaks agent-specific logic. Fix the capability configuration, not the stage.

Two files outside the source tree need updating. [refactor-to-agenteq](../refactor-to-agenteq/SKILL.md) and [add-agenteq-to-boost-project](../add-agenteq-to-boost-project/SKILL.md) each hold an identical table of every agent's native guidelines path, skills/commands directory, command file extension, and MCP config path, key path, and entry shape. They run in other repos and cannot read `definitions/{name}.ts`. When adding an agent, or changing any of those fields, update the row in both tables.

## 3. Related Skills

- General TypeScript conventions: [write-typescript-code](../write-typescript-code/SKILL.md)
- Adding a sync capability: [add-capability-stage](../add-capability-stage/SKILL.md)
- Verifying definition output: [e2e-test-agents](../e2e-test-agents/SKILL.md)
- Reverse-engineering tables: [refactor-to-agenteq](../refactor-to-agenteq/SKILL.md), [add-agenteq-to-boost-project](../add-agenteq-to-boost-project/SKILL.md)

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.