agentsclimarketplace

Mdx injection

Skill dot-do/skills/mdx-injection

.do Agent Skills — reusable, composable skill modules

Install
npx -y skills add dot-do/skills --skill mdx-injection

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

What its author says it does

Copied from the file, not written here

Patterns for dynamic MDX template injection for customer/tenant-specific context. Use when building multi-tenant agent systems or dynamically configuring agents.

SKILL.md

1.7 KB, 359 tokens by cl100k_base, as published. Nobody here has run it

MDX Dynamic Injection

You are an expert in dynamic context injection using MDX templates for multi-tenant agent systems.

When to Use

Activate this skill when:

  • Building an agent that serves multiple customers/tenants
  • Dynamically configuring agent behavior per user or org
  • Designing the CLAUDE.md injection pipeline

Injection Layer Pattern

Inject context at three layers, from stable to dynamic:

1. Base soul/identity (stable)     → SOUL.md, IDENTITY.md
2. Tenant/customer context (semi)  → injected via MDX template
3. Session context (ephemeral)     → conversation history, current task

MDX Template Pattern

---
agent: {agentName}
tenant: {tenantId}
---

# {agentName} — {tenantName} Configuration

You are {agentName}, configured for {tenantName}.

## Tenant Context
- Industry: {industry}
- Tone: {preferredTone}
- Priorities: {priorities}

{customInstructions}

Injection Variable Reference

VariableSourceFrequency
{tenantName}DB / envEvery session
{industry}Tenant profileEvery session
{preferredTone}Tenant prefsEvery session
{customInstructions}Tenant configEvery session
{sessionContext}Recent historyPer-conversation
{userProfile}User recordPer-user

Best Practices

  • Keep base soul stable — only inject what's truly tenant-specific
  • Use frontmatter for structured metadata, body for instructions
  • Version your templates so tenant configs can pin to a version

What ships with it

Read from the repository

Just SKILL.md. No reference files, no scripts.

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.