add-agent-definition
Procedural workflow for adding support for a new coding agent to agenteq.
- License 许可
- MIT
- 所属仓库
- sunchayn/agenteq
- 最近更新
- 2026-10-29
- Stars
- ★ 7
- Forks
- 0
01 前言 Front Matter
- name
- add-agent-definition
- description
- Procedural workflow for adding support for a new coding agent to agenteq.
03 SKILL.md 正文
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 acreate{Name}Configurationfactory. - Reference:
definitions/claude-code.ts.
2. Steps
- Create
src/modules/agents/definitions/{name}.ts, default-exporting onenew Agent({...}). Why default export: write-typescript-code section 4. - Set
name(snake_case, machine-readable) anddisplayName. - Set
detectSystemPathUsing: closure returning aDetectionConfigurationfor CLI detection on the system, usually acommandcheck. - Set
detectProjectPathUsing: closure returning aDetectionConfigurationfor detecting the agent in the current project, usuallyfilesorpathschecks. - Set only capabilities the agent supports:
guidelinesPath,commandsDir,skillsDir(string paths),mcp(McpConfigurationfromcreateMcpConfiguration, withconfigPathandentryMappers). - Register in
src/modules/agents/registry.ts: one import, one entry inagentDefinitions.
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 and add-agenteq-to-boost-project 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
- Adding a sync capability: add-capability-stage
- Verifying definition output: e2e-test-agents
- Reverse-engineering tables: refactor-to-agenteq, add-agenteq-to-boost-project
04 同仓库更多 Skills
writing-commit-messages
Conventions for writing commit messages in this repo.
review-checklist
Checklist to run through before approving a pull request.
writing-commit-messages
Conventions for writing commit messages in this repo.
laravel-pint
Formats PHP code with Laravel Pint before a commit.
laravel-pint
Formats PHP code with Laravel Pint before a commit.
example-skill
Example skill synced by agenteq