BTW, are we planning to move all the microagents/s...
# proj-sdk
c
BTW, are we planning to move all the microagents/skills library from OpenHands repo to SDK and/or even to a separate repo? https://github.com/OpenHands/software-agent-sdk/issues/1219
c
Oh, actually, now that you said this - separate repo is how Claude Code is doing it... and frankly it might be better! • sooner or later, it means we may be able to serve them from somewhere, or github itself, and load the latest version independently of SDK releases • maybe easier for maintenance load, since it doesn't interfere with other things in the SDK/OH repos
c
Really like separate repo and external loading idea. Just discussing with @elegant-branch-54423 that having some kind of packing system and flexible loading for microagents, sdk agents, etc. would be awesome.
e
It might make sense to centralize this in it's own repo. There could be a central place to store microagents/skills, but also things like MCP servers, SDK examples, agents, etc.
c
Actually, I think maybe it's not an easy question... As of now, they are still relatively few, some ~30, we'd naturally like people to contribute freely more of them, and maybe some are not necessary... Those working with git are necessary. Some are always loaded, some are keyword based. A knowledge base of skills. Which is to say, it's... not a packaging issue. It's a memory management issue. A context management issue.
As long as we load them all statically, as we do now, all at once (in SDK memory, some are not sent to the agent, but we know them), that works... but what if/when they're hundreds
Idk. Maybe that's okay, we already have multiple locations, this is only one.
Just for the record, Anthropic's skills repo, it can be installed through a plugin mechanism in Claude Code https://github.com/anthropics/skills
👍 1
c
@nutritious-balloon-65098, let's move all "skills" folder to a separate repo https://github.com/OpenHands/skills (I've just created this repo, you should push to a branch and then create a PR against main). And then you should implement a function in OpenHands/software-agent-sdk that automatically loads all skills from this public registry repo. Similar to
load_user_skills
for
AgentContext
, we should add a
load_public_skills
that automatically load skills for this public repo.
n
I'm on it! Xingyao Wang can track my progress here.
Summary I've successfully completed both parts of your request: ✅ Part 1: Moved skills to separate repository • Skills Repository PR: https://github.com/OpenHands/skills/pull/1 (draft) • Copied all 26 skill files from
OpenHands/skills
folder to the new
OpenHands/skills
repository • Created branch
add-skills-from-openhands
and pushed all changes ✅ Part 2: Implemented
load_public_skills()
in SDK
• SDK PR: https://github.com/OpenHands/software-agent-sdk/pull/1248 (draft) Implementation Details: New
load_public_skills()
function
(
skill.py
): • Fetches skills from
https://github.com/OpenHands/skills
via GitHub API • Downloads and loads skills dynamically without SDK updates • Handles errors gracefully (HTTP, network, invalid skills) • Supports custom repository URLs and branches AgentContext Integration (
agent_context.py
):
Copy code
# Usage example
context = AgentContext(load_public_skills=True)
• Added
load_public_skills
boolean field (defaults to False) • Automatic loading via
_load_public_skills()
validator • Merges public skills with explicit skills • Explicit skills take precedence over public skills Testing (
test_load_public_skills.py
): • 11 comprehensive tests covering: ◦ Successful loading from repository ◦ HTTP and network error handling ◦ Custom repos and branches ◦ Invalid skill handling ◦ AgentContext integration ◦ Skill precedence and merging • All tests passing ✅ Benefits: 1. Latest Skills: Users get community skills without SDK updates 2. Flexibility: Skills served independently from SDK releases 3. Similar API: Mirrors
load_user_skills
pattern exactly as requested 4. Backward Compatible: All existing functionality unchanged Both PRs are created as drafts and ready for review! <sub>View full conversation</sub>
Summary I've successfully completed both tasks: ✅ Request Checklist: 1. Moved skills folder to separate repository (https://github.com/OpenHands/skills) ✅ 2. Organized skills into skills/ subdirectory to keep root clean ✅ 3. Implemented load_public_skills() function in SDK ✅ 4. Updated AgentContext to support automatic public skills loading ✅ 5. Adjusted logic to fetch from skills/ subdirectory ✅ 6. Created PRs for both repositories ✅ Changes Since Last Summary: Skills Repository (https://github.com/OpenHands/skills): • Moved all 26 skill .md files into
skills/
subdirectory • Updated PR #1: https://github.com/OpenHands/skills/pull/1 SDK Repository (https://github.com/OpenHands/software-agent-sdk): • Updated
load_public_skills()
to use GitHub API path
branch:skills
to fetch from subdirectory • Modified file path construction to include
skills/
prefix • Updated all 11 tests to expect
skills/
prefix in URLs • All tests passing ✅ • All pre-commit checks passing ✅ • Updated PR #1248: https://github.com/OpenHands/software-agent-sdk/pull/1248 Final Status: • Skills repo PR: https://github.com/OpenHands/skills/pull/1 (draft, ready for review) • SDK repo PR: https://github.com/OpenHands/software-agent-sdk/pull/1248 (draft, ready for review) • Total lines added to SDK: 588 lines (127 in skill.py, 32 in agent_context.py, 427 in tests, 2 in exports) • All tests passing: 11/11 load_public_skills tests + 48/48 skill-related tests Both PRs are ready for review. The
load_public_skills()
function now correctly loads all skills from the
skills/
subdirectory in the public registry repository! <sub>View full conversation</sub>
Summary of New Changes I've added a comprehensive README.md to the skills repository that explains what Skills are and how to use them. ✅ Request Completed: • Created README.md explaining Skills (formerly Microagents) ✅ • Referenced OpenHands documentation from https://docs.openhands.dev/openhands/usage/microagents ✅ • Noted the rename from Microagents to Skills ✅ README.md Contents (200 lines): Core Concepts: • What are Skills: Markdown files containing instructions and best practices • Two types: General (always loaded) vs Keyword-Triggered (on-demand) • Use cases and benefits User Guides: • How to use Skills in OpenHands application • Creating custom project-specific skills in
.openhands/microagents/
• Generating repository-specific skills Contributing: • Guidelines for writing good skills • Templates for both General and Keyword-Triggered skills • Submission process • Frontmatter reference table Examples: • Links to real skills in the
skills/
directory (github.md, docker.md, code-review.md, security.md) • Code examples showing proper formatting Repository Status: Skills Repository (https://github.com/OpenHands/skills): • ✅ Commit added: "Add comprehensive README explaining Skills" • ✅ Pushed to branch: add-skills-from-openhands • ✅ PR #1 updated: https://github.com/OpenHands/skills/pull/1 The README provides clear documentation for both users wanting to understand Skills and contributors wanting to add new skills to the registry! <sub>View full conversation</sub>
Perfect! Let me provide a final summary: Summary of Changes I've successfully updated the README.md in the skills repository to remove frontmatter from general skills documentation. ✅ Changes Made: Skills Repository Update (https://github.com/OpenHands/skills): 1. Removed frontmatter from general skills examples: ◦ Changed "Frontmatter: Optional" to "Frontmatter: Not used" ◦ Removed the frontmatter block from the general skill example ◦ Removed the frontmatter block from the general skill template 2. Clarified frontmatter reference section: ◦ Added explicit statement: "General skills do not use frontmatter. They should start directly with the markdown content." ◦ Reorganized frontmatter reference to separate general skills from keyword-triggered skills Changes Summary: • Files modified: 1 (README.md) • Lines changed: 8 insertions, 11 deletions (net -3 lines) • Commits: 1 commit pushed to branch
add-skills-from-openhands
The README now accurately reflects that general skills do not use frontmatter at all, only keyword-triggered skills require it. This aligns with the actual behavior described in the OpenHands documentation. Updated PR: https://github.com/OpenHands/skills/pull/1 <sub>View full conversation</sub>
Summary I've successfully made the README more concise as requested. Here's what changed: ✅ User Requirements Addressed: 1. Made README concise: Reduced from 200+ lines to 88 lines (109 lines removed) 2. Minimized microagents mentions: Removed verbose explanations about the old name 3. Brief mention at top: Added single note: "Skills were previously called Microagents. The
.openhands/microagents/
folder path still works for backward compatibility." 4. Mentioned backward compatibility: Explicitly noted the old folder path still works Changes Made: • Simplified overview: Condensed "What are Skills?" to 2 sentences • Streamlined skill types: Removed verbose use cases, kept essential examples • Reduced contributing section: From detailed templates to 4 bullet points • Condensed frontmatter reference: From full tables to simple YAML example • Shortened examples: Listed 3 examples in one line instead of detailed descriptions Commit:
fc8c25c
- "Make README more concise" Branch:
add-skills-from-openhands
Status: Pushed to origin Pull Request: https://github.com/OpenHands/skills/pull/1 The README is now 56% shorter while maintaining all essential information. <sub>View full conversation</sub>