Agent skill
libprompt
libprompt - Prompt template management with Mustache. PromptLoader loads .prompt.md files from directories and renders them with variable substitution. Use for managing LLM system prompts, creating reusable prompt templates, and dynamic prompt generation.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/data/libprompt
SKILL.md
libprompt Skill
When to Use
- Managing LLM system prompts as templates
- Loading prompt files from directories
- Rendering prompts with dynamic variables
- Organizing prompts for different agents
Key Concepts
PromptLoader: Loads .prompt.md files from a directory and renders them using Mustache templating syntax.
Mustache templating: Use {{variable}} syntax for dynamic content
insertion.
Usage Patterns
Pattern 1: Load and render prompt
import { PromptLoader } from "@copilot-ld/libprompt";
const loader = new PromptLoader("./prompts");
const systemPrompt = await loader.render("system", {
agentName: "Assistant",
capabilities: ["search", "calculate"],
});
Pattern 2: Prompt file structure
<!-- prompts/system.prompt.md -->
You are {{agentName}}.
Your capabilities: {{#capabilities}}
- {{.}} {{/capabilities}}
Integration
Used by Memory service to load agent system prompts. Prompts stored in config/agents/*/prompts/.
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?