[Feature Request] Agent v2: skill management APIs for platform automation and external SkillHub integration
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 25/100
- Issue type
- Feature
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- python
- Domain
- backend-api-design
Research direction
Start with the existing workspace skill API operations in PR #44941 and the linked token and personal access policy files in the issue. Map the requested lifecycle across credential scopes, skill import and publication, app skill/version associations, and external provider configuration. Done means meeting the listed API and SkillHub acceptance criteria, including idempotent imports, conflict reporting, and provenance tracking.
Written by the indexing model from the issue text.
Description
Self Checks
- I have read the Contributing Guide and Language Policy.
- I have searched for existing issues search for existing issues, including closed ones.
- I confirm that I am using English to submit this report, otherwise it will be closed.
- Please do not modify this template :) and fill in all the required fields.
1. Is this request related to a challenge you're experiencing? Tell me about your story.
We maintain a separate platform for managing reusable Agent Skills and custom MCP tools. We want to use Dify Agent v2 as an execution environment while continuing to manage our skills in our own SkillHub. For example, our business analytics skills contain instructions and Python scripts for period-over-period analysis and IQR/Z-score anomaly detection, and obtain data through our platform's MCP query tools.
The desired workflow is to publish a versioned skill in our SkillHub, import that version into a Dify workspace through a supported integration, and make the published version available to an Agent v2 app. We need both platform-facing management APIs and an external skill registry integration to automate this lifecycle.
Existing functionality and the remaining request
PR #44941 already added workspace skill OpenAPI operations for listing, describing, listing versions, exporting, importing/overwriting a draft, and publishing. The PR states that these operations accept account callers only, and that import and publish are separate operations.
This request builds on those operations. It asks for a documented and supported integration contract for external-platform automation and a way to connect an external SkillHub. Account-only access does not itself exclude automation: Dify's token infrastructure maps PAT and OAuth tokens to account identities, while PAT access depends on explicit per-route policy. Please clarify the supported credential types and scopes for skill operations. Our search did not find an issue specifically covering an external registry/provider connection; please point us to any existing supported path or roadmap item that already covers it.
Requested capability A: skill management APIs for external platforms
Please provide a documented API contract for the skill lifecycle, reusing the existing operations where possible:
- List/search workspace skills, retrieve metadata, and inspect published versions.
- Import a skill package or directory and update an existing skill's draft with conflict detection.
- Publish a draft and select a specific published version for use by an Agent v2 app.
- Manage the association between an app and its selected skills/versions through a supported API.
- Document the supported removal and rollback lifecycle, including what happens when an app references a skill/version.
For unattended platform integration, document the supported authentication path, including personal access tokens where applicable, required scopes, and workspace permissions. Permissions should distinguish read, import/update, publish, and app configuration. If dedicated service identities are not covered by the current account-based model, please consider supporting them as an extension. We would like a supported automation contract with clear examples rather than having each integration infer behavior from console requests.
Requested capability B: import and synchronize skills from an external SkillHub
Allow a workspace administrator to configure an external skill registry/provider with:
- A base URL and authentication configuration, including support for private enterprise SkillHubs.
- A provider/adapter interface for listing/searching skills, reading metadata and versions, and downloading a selected skill package.
- Import of the selected version into Dify as a draft, followed by explicit publication under the existing permission model.
- Stored provenance: registry identity, upstream skill ID, upstream version, and package digest, so imports can be traced to their source.
- A version policy: pin a version, check for updates, and synchronize an approved update without creating duplicate local skills or silently overwriting local changes.
An initial implementation could support manual refresh and explicit version import; periodic synchronization could follow later. Updates should preserve Dify's draft/publish workflow.
External SkillHub (private or public)
|
| discover -> select version -> download skill package
v
Dify workspace skill import -> draft review -> publish
|
v
Agent v2 app uses the selected published skill/version
Acceptance criteria
- An external platform can use supported scoped credentials to discover skills, import/update a draft, publish it, and configure its use in an Agent v2 app, subject to workspace permissions.
- A workspace can connect a private SkillHub through its configured URL and authentication, browse skills, and import a selected version without a manual download/re-upload step.
- Re-importing the same upstream skill/version is idempotent; updates identify the existing local skill and report local-edit conflicts.
- Import does not silently publish. Published skill changes and app version selection follow the existing permission and publication model.
- Imported skills retain upstream identity/version information, and an administrator can determine which upstream version an app uses.
2. Additional context or comments
The Agent Skills specification defines the SKILL.md format and skill directory structure. In this request, "external SkillHub" means an external registry/provider that distributes those skills; we are not assuming that the Agent Skills package format defines a universal registry discovery/download protocol.
A provider abstraction would let Dify support different registry APIs, including a self-hosted enterprise SkillHub, while reusing its existing skill validation, draft, version, and publication behavior.
For an initial API-only integration, our platform could fetch a package from its own SkillHub and call Dify's import/publish operations. A first-class external provider would also expose discovery and version tracking in Dify and reduce the amount of custom synchronization code each platform has to maintain.
Related implementation: #44941 — workspace skill list, export, import and publish operations. This request extends that foundation with supported external-platform access and external registry integration.
3. Can you help us with this feature?
- I am interested in contributing to this feature.
- Dominant language
- Python
- Stars
- 162k
- Forks
- 25.6k
- Avg merge
- 15h 9m
- Merged PRs (30d)
- 606
Getting set up
Starts the project's dev container in your browser, under your own GitHub account.
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from langgenius/dify
-
OpenSearch: text_exists() queries OpenSearch _id instead of metadata.doc_id, so it always returns False for indexed chunksPossibly taken @SanemIzci claimed this 1 day ago. Open🐞 bug
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
langgenius/dify#47109 · 1 comment · 1 reaction ·
Maintainers usually reply within 1 day
-
Log only execution identifiers when a workflow worker starts a runPossibly taken @kinglegendzzh claimed this 1 day ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
langgenius/dify#47094 · 2 reactions ·
Maintainers usually reply within 1 day
-
Node.js SDK declares a response body for 204 conversation deletionPossibly taken @Wang-Zephyr claimed this 5 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
langgenius/dify#46883 · 1 comment · 1 reaction ·
Maintainers usually reply within 1 day
-
Provider IDs with a trailing newline are silently accepted and propagatedPossibly taken @Batianxieshen1 claimed this 5 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
langgenius/dify#46875 · 1 comment · 1 reaction ·
Maintainers usually reply within 1 day
-
Agent Python SDK polling rejects function-tool results that SSE acceptsPossibly taken @EndlessRoad-max claimed this 5 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
langgenius/dify#46868 · 1 reaction ·
Maintainers usually reply within 1 day
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 79/100
micronaut-projects/micronaut-core#14585 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
langgenius/graphon#443 ·
Maintainers usually reply within 2 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
Maintainers usually reply within 1 day
-
[BUG]: Management endpoints /v1/memory/stats and /v1/memory/counts bypass API key authenticationOpen
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
docling-project/docling-serve#788 ·
Maintainers usually reply within 1 day
-
Mend: dependency security vulnerability untriaged
Difficulty 1/5 Under an hour Newbie friendliness 78/100
opensearch-project/cross-cluster-replication#1805 ·
Maintainers usually reply within 1 day