dynamic-resources

Load skill, prompt, and theme paths dynamically via extension resource discovery hooks.

484|76|Updated Oct 23, 2025
One-click install
npx skills add https://github.com/bastani-inc/atomic --skill dynamic-resources-bastani-inc
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: dynamic-resources
Source: https://github.com/bastani-inc/atomic/tree/main/packages/coding-agent/examples/extensions/dynamic-resources
Command: npx skills add https://github.com/bastani-inc/atomic --skill dynamic-resources-bastani-inc

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill shows how an extension can expose reusable agent resources without hardcoding them into the main workflow, making it easier to package examples, prompts, and visual themes together.

Core Features & Use Cases

  • Runtime Resource Discovery: Demonstrates how a coding agent can discover skill, prompt, and theme files dynamically through an extension hook.
  • Example Skill Packaging: Provides a minimal reference implementation for shipping a skill alongside supporting prompt and theme assets.
  • Use Case: A developer building an Atomic extension can use this Skill as a template for loading external resources only when they are needed.

Quick Start

Use the dynamic-resources skill to inspect how an extension discovers a skill, prompt template, and theme file at runtime.

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 a coding agent extension?

Dynamic resource discovery loads prompt templates and themes at runtime using extension hooks. An extension hook returns skillPaths, promptPaths, and themePaths to fetch assets only when needed.

Why do I need a SKILL.md frontmatter entry for runtime resource discovery?

A SKILL.md frontmatter entry is required for runtime resource discovery to map and validate available skills. It allows the coding agent to correctly identify and load extension resources dynamically.

How to package a skill with supporting prompt and theme assets without hardcoding them?

Package a skill with supporting assets by using an extension hook to discover skill entries, prompt templates, and theme definitions at runtime. This separates resources from the main workflow.

Can I use this dynamic resource discovery approach for an Atomic extension?

Yes, this approach serves as a minimal reference template for an Atomic extension. Developers can use it to load external skill, prompt, and theme resources dynamically when required.

What is the best way to expose reusable agent resources in an extension?

The best way to expose reusable agent resources is through runtime discovery hooks. This method allows an extension to dynamically supply skills, prompts, and themes without hardcoding them into workflows.