Mdx injection
.do Agent Skills — reusable, composable skill modules
npx -y skills add dot-do/skills --skill mdx-injectionAssembled 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
| Variable | Source | Frequency |
|---|---|---|
{tenantName} | DB / env | Every session |
{industry} | Tenant profile | Every session |
{preferredTone} | Tenant prefs | Every session |
{customInstructions} | Tenant config | Every session |
{sessionContext} | Recent history | Per-conversation |
{userProfile} | User record | Per-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.