Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions sdk/guides/skill.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -173,14 +173,14 @@ tools = [
agent_context = AgentContext(
skills=[
Skill(
name="repo.md",
name="grumpy-cat",
content="When you see this message, you should reply like "
"you are a grumpy cat forced to use the internet.",
# source is optional - identifies where the skill came from
# You can set it to be the path of a file that contains the skill content
source=None,
# trigger determines when the skill is active
# trigger=None means always active (repo skill)
# trigger=None means always active (permanent/repo context)
trigger=None,
),
Skill(
Expand Down Expand Up @@ -514,8 +514,8 @@ from openhands.sdk.context.skills import load_skills_from_dir
repo_skills, knowledge_skills, agent_skills = load_skills_from_dir(skills_dir)
```

- **repo_skills**: Skills from `repo.md` files (always active)
- **knowledge_skills**: Skills from `knowledge/` subdirectories
- **repo_skills**: Skills with `trigger=None` (always active). These typically come from `.openhands/skills/*.md` files without triggers (some legacy examples used a file named `repo.md`).
- **knowledge_skills**: Skills with a trigger (e.g., `KeywordTrigger` or `TaskTrigger`) that are injected when triggered
- **agent_skills**: Skills from `SKILL.md` files (AgentSkills standard)

#### `discover_skill_resources()`
Expand Down