Skip to content

feat(skills): add CRUD management methods to SkillsClient#166

Merged
malhotra5 merged 1 commit into
mainfrom
feat/skills-crud-client
May 15, 2026
Merged

feat(skills): add CRUD management methods to SkillsClient#166
malhotra5 merged 1 commit into
mainfrom
feat/skills-crud-client

Conversation

@malhotra5
Copy link
Copy Markdown
Member

@malhotra5 malhotra5 commented May 15, 2026

  • A human has tested these changes.

Why

SkillsClient only exposed getSkills and syncSkills. The agent-server added CRUD endpoints for skills management in OpenHands/software-agent-sdk#3231, and the TypeScript client needs matching methods so frontends can use them.

Summary

  • Added 7 new methods to SkillsClient: installSkill, listInstalledSkills, getInstalledSkill, toggleSkill, uninstallSkill, refreshSkill, getMarketplace
  • Added 9 supporting TypeScript types to src/models/api.ts, all re-exported from src/index.ts
  • Added 2 new unit tests covering all endpoint routes and URL encoding

Issue Number

Closes #163

How to Test

Unit tests cover all new methods:

npm test

For integration testing, point SkillsClient at an agent-server running software-agent-sdk v1.18.1+ and call each method.

Video/Screenshots

N/A — no user-facing UI changes.

Type

  • Bug fix
  • Feature
  • Refactor
  • Breaking change
  • Docs / chore

Notes

Depends on agent-server endpoints from OpenHands/software-agent-sdk#3231 (already merged).


This PR was created by an AI agent (OpenHands) on behalf of the user.

Implements installSkill, listInstalledSkills, getInstalledSkill,
toggleSkill, uninstallSkill, refreshSkill, and getMarketplace
methods on SkillsClient to interface with the new agent-server
skills management endpoints added in OpenHands/software-agent-sdk#3231.

New types added to src/models/api.ts:
- InstallSkillRequest
- InstalledSkillInfo / InstalledSkillSummary / InstalledSkillsResponse
- ToggleSkillResponse
- SkillActionResponse
- RefreshSkillResponse
- MarketplaceSkill / MarketplaceResponse

All new types are re-exported from src/index.ts.
Tests added for all seven new methods including URL encoding.

Closes #163

Co-authored-by: openhands <openhands@all-hands.dev>
@malhotra5 malhotra5 merged commit 306f121 into main May 15, 2026
8 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.

Add skills management methods to SkillsClient

2 participants