llm-prompt-template-override
CommunityInject sources without breaking context
Software Engineering#dependencies#llm#orchestration#context injection#prompt injection#prompt templating#stringreplace
Authortransreal
Version1.0.0
Installs0
System Documentation
What problem does it solve?
It prevents prompt-template injection from causing the LLM to wrongly treat provided documents as non-dependency reference material, which can lead to missing or hallucinated answers.
Core Features & Use Cases
- Dependency-aligned document injection: Wraps injected content in XML tags that align with the host template’s notion of dependencies/artifacts.
- Template-aware placeholder replacement: Uses StringReplace-style substitution to replace the host template’s empty-dependency literal (including Japanese/English variants) with the injected attached-documents section.
- Two-step fallback behavior: Falls back to safe prepend injection when placeholder replacement is unavailable or when dependency artifacts are already present.
- Instruction/intent signaling: Embeds explicit intent via HTML comments and structured document indexing to improve citation-like referencing and reduce response distortion.
Quick Start
Ask your system to inject external notes into the worker prompt by replacing the host template’s dependency placeholder with an <attached-documents> block, using a prepend-only fallback if the placeholder literal cannot be found.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: llm-prompt-template-override Download link: https://github.com/transreal/claudecode/archive/main.zip#llm-prompt-template-override Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.