Skip to content

docs: fix load_skills_from_dir import path#615

Merged
enyst merged 1 commit into
OpenHands:mainfrom
luciobaiocchi:fix/skills-import-path
Jul 10, 2026
Merged

docs: fix load_skills_from_dir import path#615
enyst merged 1 commit into
OpenHands:mainfrom
luciobaiocchi:fix/skills-import-path

Conversation

@luciobaiocchi

Copy link
Copy Markdown
Contributor

Summary

The SDK skills guide imports several functions (load_skills_from_dir, load_project_skills, load_public_skills, discover_skill_resources) from openhands.sdk.context.skills, which does not exist:

ModuleNotFoundError: No module named 'openhands.sdk.context.skills'

The correct module is openhands.sdk.skills (see openhands-sdk/openhands/sdk/skills/__init__.py in software-agent-sdk, which exports all of these). This fixes all 7 occurrences of the wrong import path in sdk/guides/skill.mdx; 4 other spots in the same file already used the correct path.

Verified on OpenHands SDK v1.33.0.

Test plan

  • Confirmed openhands.sdk.context.skills does not exist in software-agent-sdk
  • Confirmed all replaced functions are exported from openhands.sdk.skills
  • grep -n "openhands.sdk.context.skills" sdk/guides/skill.mdx returns no matches after the fix

@luciobaiocchi luciobaiocchi requested a review from enyst as a code owner July 9, 2026 17:53

@enyst enyst left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thank you!

@enyst enyst merged commit 6802727 into OpenHands:main Jul 10, 2026
2 checks passed
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.

2 participants