Skip to main content

PromptTemplating

Prompt storage / variable substitution / caching / versioning + operator Filament UI (scope mapping is the SaaS's responsibility)

Status​

KeyValue
Layerfoundation
TierL0
Statusreleased
Version1.0.0
PriceFree (free)
CategoryAI / 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:

AreaResponsibility
Plugin (generic)PromptTemplate Model + substitution + caching + versioning + Filament operator UI
SaaS (domain)scope model + priority resolution + LLM call timing

Components (Phase 3)​

  • PromptTemplate Model (tenant_id, key, scope_type, scope_id, content, version)
  • VariableSubstitutor (Pure)
  • CachedPromptResolver (Cache wrapper)
  • PromptTemplateResource (Filament β€” operator CRUD + diff + preview + rollback)

Value Analysis​

FeatureDirect costWith plugin
Operator prompt editor UI (Filament + diff + preview + rollback)1~2 days30 min
Substitution / caching / versioning0.5 dayinstant

β†’ 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