Skip to content

feat(ai): replace agent search with skills system#16513

Merged
FelixMalfait merged 2 commits intomainfrom
feat/replace-agents-with-skills
Dec 12, 2025
Merged

feat(ai): replace agent search with skills system#16513
FelixMalfait merged 2 commits intomainfrom
feat/replace-agents-with-skills

Conversation

@FelixMalfait
Copy link
Copy Markdown
Member

Summary

  • Replace the agent search mechanism with a new skills-based system
  • Add a skills module with predefined skill definitions that the AI can load on demand
  • Remove specialized agents (workflow-builder, data-manipulator, dashboard-builder, metadata-builder, researcher), keeping only the helper agent
  • Add recordReferences to workflow creation tool for chip linking in the UI

Changes

New Skills Module

  • skill-definitions.ts - Contains 5 skill definitions with detailed instructions
  • skills.service.ts - Service to get skills by name
  • load-skill.tool.ts - Tool for AI to load skills explicitly

Removed

  • agent-search.tool.ts - Replaced by skill loading
  • Specialized agent definitions (converted to skills)

Updated

  • Chat execution now shows skill catalog in system prompt
  • Workflow creation returns recordReferences for UI linking

Test plan

  • Verify AI can load skills using load_skill tool
  • Verify skill content is returned correctly
  • Verify workflow creation shows clickable chip in chat
  • Verify helper agent still works

Copy link
Copy Markdown
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Your free trial has ended. If you'd like to continue receiving code reviews, you can add a payment method here.

Copy link
Copy Markdown
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1 issue found across 21 files

Prompt for AI agents (all 1 issues)

Check if these issues are valid — if so, understand the root cause of each and fix them.


<file name="packages/twenty-server/src/engine/core-modules/skills/skills.service.ts">

<violation number="1" location="packages/twenty-server/src/engine/core-modules/skills/skills.service.ts:5">
P2: The `Skill` type duplicates `SkillDefinition` from `./skill-definitions`. Consider reusing the existing type to avoid maintenance issues if the shape changes.</violation>
</file>

Reply to cubic to teach it or ask questions. Re-run a review with @cubic-dev-ai review this PR


import { SKILL_DEFINITIONS } from './skill-definitions';

export type Skill = {
Copy link
Copy Markdown
Contributor

@cubic-dev-ai cubic-dev-ai bot Dec 11, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2: The Skill type duplicates SkillDefinition from ./skill-definitions. Consider reusing the existing type to avoid maintenance issues if the shape changes.

Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At packages/twenty-server/src/engine/core-modules/skills/skills.service.ts, line 5:

<comment>The `Skill` type duplicates `SkillDefinition` from `./skill-definitions`. Consider reusing the existing type to avoid maintenance issues if the shape changes.</comment>

<file context>
@@ -0,0 +1,43 @@
+
+import { SKILL_DEFINITIONS } from &#39;./skill-definitions&#39;;
+
+export type Skill = {
+  name: string;
+  label: string;
</file context>
Fix with Cubic

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Dec 11, 2025

🚀 Preview Environment Ready!

Your preview environment is available at: http://bore.pub:4386

This environment will automatically shut down when the PR is closed or after 5 hours.

- Add skills module with predefined skill definitions (workflow-building, data-manipulation, dashboard-building, metadata-building, research)
- Replace agent_search tool with load_skill tool for explicit skill loading
- Remove specialized agents, keep only helper agent
- Add skill catalog to system prompt with names and descriptions
- Add recordReferences to workflow creation for chip linking
@FelixMalfait FelixMalfait force-pushed the feat/replace-agents-with-skills branch 2 times, most recently from fa6b5ae to c7744d2 Compare December 11, 2025 22:35
@FelixMalfait FelixMalfait force-pushed the feat/replace-agents-with-skills branch from c7744d2 to 737ccf9 Compare December 11, 2025 22:39
@FelixMalfait FelixMalfait merged commit 70a78aa into main Dec 12, 2025
54 checks passed
@FelixMalfait FelixMalfait deleted the feat/replace-agents-with-skills branch December 12, 2025 05:51
@twenty-eng-sync
Copy link
Copy Markdown

Hey @FelixMalfait! After you've done the QA of your Pull Request, you can mark it as done here. Thank you!

prastoin added a commit that referenced this pull request Dec 16, 2025
# Introduction
In this pullrequest have been migrated to the flat standard entities:
Role, Agent and RoleTargets.

## What happens
- Removed createStandardMorph tool util in favor of dynamic typing of
`createMorphOrRelationStandardField`
- Implemented a command to remove standard agents and their role that
has been removed in #16513 also
added a default role target to data manipulator role to the only
remaining agent
- Implemented an agent deleteMany service handler
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant