PromptTemplating
Prompt storage / variable substitution / caching / versioning + operator Filament UI (scope mapping is the SaaS's responsibility)
Statusβ
| Key | Value |
|---|---|
| Layer | foundation |
| Tier | L0 |
| Status | released |
| Version | 1.0.0 |
| Price | Free (free) |
| Category | AI / LLM |
Overviewβ
Overviewβ
PromptTemplating is the Layer 0 Foundation Plugin that standardizes the LLM system prompt storage + variable substitution + caching + versioning + Filament UI for operators to edit prompts without code changes.
β οΈ Boundary Decision (2026-05)β
The 5-tier scope abstraction (school/grade/subject/lesson/worksheet) is intentionally NOT included in the plugin.
Analysis:
- Education SaaS (exam/academy): 5 tiers
- Chatbot SaaS (agent.how): 2 tiers (tenant/agent_definition)
- Commerce SaaS: N tiers (category tree)
- Each SaaS's scope structure differs significantly β abstraction cost > direct implementation cost
Practical boundary:
| Area | Responsibility |
|---|---|
| Plugin (generic) | PromptTemplate Model + substitution + caching + versioning + Filament operator UI |
| SaaS (domain) | scope model + priority resolution + LLM call timing |
Components (Phase 3)β
PromptTemplateModel (tenant_id, key, scope_type, scope_id, content, version)VariableSubstitutor(Pure)CachedPromptResolver(Cache wrapper)PromptTemplateResource(Filament β operator CRUD + diff + preview + rollback)
Value Analysisβ
| Feature | Direct cost | With plugin |
|---|---|---|
| Operator prompt editor UI (Filament + diff + preview + rollback) | 1~2 days | 30 min |
| Substitution / caching / versioning | 0.5 day | instant |
β Plugin ROI core is the "Filament operator UI", not the "Pure logic"
Statusβ
1.0.0 RC complete (2026-05-01) β Migration + Model + Service + Contract + Filament Resource + adapter examples.
Originβ
Derived from exam.how's PromptTemplateResolver (428 LOC, 5-tier hard-coded) + PromptTemplate Model (184 LOC). The 5-tier abstraction is excluded from the plugin; only the Model + operator UI are extracted.
Plugin Relationshipsβ
Optional integration with: AiRelay, QuestionGeneration, StagePipeline, ReviewQueue, AssessmentReport.
Licenseβ
MIT
Demosβ
π View on Plugin Store: store.codebase.how/plugins/prompt-templating