Skip to content

docs(sdk): sync plugin and skill lifecycle examples#386

Open
enyst wants to merge 3 commits intomainfrom
openhands/issue-2339-skill-plugin-lifecycle-docs
Open

docs(sdk): sync plugin and skill lifecycle examples#386
enyst wants to merge 3 commits intomainfrom
openhands/issue-2339-skill-plugin-lifecycle-docs

Conversation

@enyst
Copy link
Collaborator

@enyst enyst commented Mar 9, 2026

  • I have read and reviewed the documentation changes to the best of my ability.
  • If the change is significant, I have run the documentation site locally and confirmed it renders as expected.

Summary of changes

  • sync the SDK plugin guide to the consolidated 02_loading_plugins example, including the installed plugin lifecycle (enabled flag, enable/disable, uninstall)
  • replace the split skill enable/disable + uninstall docs with one expandable auto-synced block for 03_managing_installed_skills
  • run .github/scripts/sync_code_blocks.py on the matching openhands/issue-2339-skill-plugin-lifecycle-docs branch

Related SDK issue: OpenHands/software-agent-sdk#2339
Companion SDK PR: OpenHands/software-agent-sdk#2362
Related CLI tracking: OpenHands/OpenHands-CLI#405 and OpenHands/OpenHands-CLI#582

Co-authored-by: openhands <openhands@all-hands.dev>
Copy link
Contributor

@all-hands-bot all-hands-bot left a comment

Choose a reason for hiding this comment

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

🟢 Good taste - Clean documentation sync that accurately reflects SDK lifecycle APIs.

Verification completed:

  • ✅ Cloned SDK repo (openhands/issue-2339-skill-plugin-lifecycle-docs branch)
  • ✅ All referenced example files exist and match documented content
  • ✅ API imports verified against SDK source (openhands.sdk.plugin, openhands.sdk.skills)
  • ✅ Auto-sync format correct for all code blocks
  • ✅ Examples include assertions that prove behavior (not just mocks)

Observations:

  • The sync script detected drift in 4 unrelated files (agent-delegation, agent-file-based, agent-acp, browser-session-recording) but did NOT modify plugins.mdx or skill.mdx, confirming this PR is properly synced
  • The unrelated drift should be addressed in a separate PR

Why this is good:

  1. Solves real problem: Documents lifecycle APIs needed by CLI for /plugin enable, /plugin disable, /skill enable, /skill disable, /skill uninstall
  2. Simple and complete: Each example is self-contained, runnable, and includes verification assertions
  3. Maintainable: Auto-sync setup ensures docs stay current with SDK changes
  4. No breaking changes: Pure documentation enhancement

Ship it. 🚢

- document the plugin lifecycle in the consolidated loading example
- replace split skill lifecycle docs with one installed-skills example

Co-authored-by: openhands <openhands@all-hands.dev>
- document the mixed marketplace skills example in the skill guide
- satisfy the documented-examples check for existing SDK examples

Co-authored-by: openhands <openhands@all-hands.dev>
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.

3 participants