
AI Skill
CertifiedProvide skills to an AI agent
AI Skill
Provide skills to an AI agent
Exposes langchain4j skills as tools for an AI agent. Skills are structured instructions that the agent can activate on demand. Each skill has a name, description, and content that gets returned when the agent activates it. Skills can also include resources that the agent can read separately.
type: io.kestra.plugin.ai.tool.SkillExamples
Use skills to provide structured instructions to an AI agent
id: agent_with_skills
namespace: company.ai
tasks:
- id: agent
type: io.kestra.plugin.ai.agent.AIAgent
prompt: Translate the following text to French - "Hello, how are you today?"
provider:
type: io.kestra.plugin.ai.provider.GoogleGemini
modelName: gemini-3.5-flash-lite
apiKey: "{{ secret('GEMINI_API_KEY') }}"
tools:
- type: io.kestra.plugin.ai.tool.Skill
skills:
- name: translation_expert
description: Expert translator for multiple languages
content: |
You are an expert translator. When translating text:
1. Preserve the original meaning and tone
2. Use natural phrasing in the target language
3. Keep proper nouns unchangedLoad skill content from Kestra internal storage
id: agent_with_skill_from_storage
namespace: company.ai
tasks:
- id: write_instructions
type: io.kestra.plugin.core.storage.Write
content: |
You are a senior code reviewer. When reviewing code:
1. Check for security vulnerabilities
2. Ensure proper error handling
3. Verify naming conventions are followed
4. Flag any code duplication
- id: agent
type: io.kestra.plugin.ai.agent.AIAgent
prompt: Review this Python function - "def add(a, b): return a + b"
provider:
type: io.kestra.plugin.ai.provider.GoogleGemini
modelName: gemini-3.5-flash-lite
apiKey: "{{ secret('GEMINI_API_KEY') }}"
tools:
- type: io.kestra.plugin.ai.tool.Skill
skills:
- name: code_review_expert
description: Expert code reviewer with strict guidelines
contentUri: "{{ outputs.write_instructions.uri }}"
Properties
skills *array
Skill definitions
Structured instruction sets the agent can activate on demand. Each skill needs a name, a description, and either inline content or a contentUri pointing to Kestra internal storage. No default: this property is required.
A skill definition
Skill description
Natural-language summary of what the skill does, used by the LLM to decide when to activate it. No default: this property is required.
Skill name
Identifier the LLM uses to activate the skill. No default: this property is required.
Inline skill content
Instructions making up the skill, written inline. Mutually exclusive with contentUri; exactly one of the two must be set.
Skill content URI
Kestra internal storage URI of a file holding the skill instructions. Mutually exclusive with content; exactly one of the two must be set.
Skill resources
Extra files attached to the skill, which the agent reads on demand through the read_skill_resource tool rather than receiving them upfront. Not set by default.
A skill resource definition
Resource content
Body of the resource file, returned verbatim when the agent reads it. No default: this property is required.
Resource relative path
Path identifying the resource within the skill, as the agent refers to it when reading the file. No default: this property is required.