dynamic-resources

Discover and register skill, prompt, and theme resources via the resources_discover event hook.

Updated Feb 18, 2026
One-click install
npx skills add https://github.com/XiongJingzhi/agent-learn --skill dynamic-resources
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: dynamic-resources
Source: https://github.com/XiongJingzhi/agent-learn/tree/main/app/pi-mono/packages/coding-agent/examples/extensions/dynamic-resources
Command: npx skills add https://github.com/XiongJingzhi/agent-learn --skill dynamic-resources

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This skill allows for the dynamic discovery and loading of various resources like skill definitions, prompt templates, and UI themes, enabling a more flexible and extensible agent environment.

Core Features & Use Cases

  • Dynamic Resource Loading: Enables extensions to register new skills, prompts, and themes at runtime.
  • Extensibility: Facilitates adding new capabilities to the agent without modifying its core code.
  • Use Case: An extension could register a new "code generation" skill and a corresponding "code generation prompt" by implementing the resources_discover event.

Quick Start

Implement the resources_discover event to return paths to your skill, prompt, and theme files.

Frequently Asked Questions about dynamic-resources

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I load prompt templates and themes dynamically in an agent framework?

To load prompt templates and themes dynamically, implement the `resources_discover` event hook to specify file paths for runtime registration. This enables extensions to contribute new skills, prompts, and UI configurations without modifying core code.

What is resource discovery for agent framework extensibility?

Resource discovery is a mechanism that allows external modules to dynamically register new skills, prompts, and themes at runtime. By implementing the `resources_discover` event hook, extensions can specify resource file locations to add functionalities without altering the core codebase.

How do I register new skills at runtime without modifying the core agent code?

You can register new skills at runtime by implementing the `resources_discover` event hook to return paths to your skill definition files. This dynamic loading approach allows external modules to contribute new functionalities seamlessly.

Can extensions add new UI themes and prompt templates to an agent environment?

Yes, extensions can add new UI themes and prompt templates by implementing the `resources_discover` event hook. This hook specifies the file locations for the themes and prompts, enabling the agent framework to dynamically load and register them at runtime.

What do I need to implement to specify resource file locations for dynamic loading?

To specify resource file locations for dynamic loading, you need to implement the `resources_discover` event hook. This hook returns the paths to your skill, prompt, and theme files, enabling the agent framework to discover and register them.