Create, Evaluate, and Connect AI Skills
Python ai-agentsai-skillsartificial-intelligenceknowledge-graphlarge-language-modelsnatural-language-processingopenkgskillnetskills
Usage Examples & Patterns
Example 1: Basic Focus & Move (from Trajectory)
Task: "Find a living thing. First, focus on the thing. Then, move it to the orange box in the workshop."
Agent Execution:
- Explore (
look around) multiple rooms (living room, outside). - Identify Target: In
outside, observea dove egg. - Apply Skill:
focus on dove egg - Result: Observation confirms focus.
- Next Action:
pick up dove egg, thenmove dove egg to orange box.
Key Takeaway: The skill is applied immediately after identifying the task-relevant object.
Example 2: Focus as a Prerequisite
Task: "Create a circuit. Connect the battery to the light bulb."
Potential Execution:
- Locate
batteryandlight bulbviaexamine. - The task may require focusing on components before
connect. - Apply Skill:
focus on battery - Next Action:
connect battery to light bulb
Key Takeaway: focus can be a required step before specific interaction verbs like connect.
Common Patterns
- Exploration -> Identification -> Focus -> Manipulation: The standard workflow.
- Re-focusing: If you switch targets mid-task, you may need to
focus onthe new object. - Implicit Focus: Some objects may not require explicit focus. Use the skill when the task explicitly states it, or if a manipulation action fails without it.
Anti-Patterns to Avoid
- Focusing on Non-Objects: Do not
focus onsubstances (e.g.,air,water) or rooms. - Incorrect Name:
focus on dove(incorrect) vs.focus on dove egg(correct). Always use the full name from the observation. - Premature Focus: Do not focus before confirming the object meets the task criteria.