The rules
38 rules in four skills. Each rule file says how to detect the problem in code (Python, TypeScript and Go), the smallest fix, what the fix must not break, and how to verify it. Your assistant loads a rule only when its skill points at it.
prefill-cache
Makes prompts that the provider's cache can reuse, so the app stops paying full price to prefill the same tokens on every call. Twelve rules, LP-PC-01 to LP-PC-12, each in its own file under rules/, each with a way to detect it in code, the smallest fix, what the fix must not break, and how to verify it.
| Rule | Title | Saves | Severity |
|---|---|---|---|
LP-PC-01 | Put cache marks where the provider needs them | Prefill | high |
LP-PC-02 | Stable content first, without hurting meaning | Prefill | high |
LP-PC-03 | No ids, timestamps, versions or paths at the top of the prompt | Prefill | high |
LP-PC-04 | Fixed tool order and JSON key order | Prefill | high |
LP-PC-05 | Tool lists grow only at the end | Prefill | medium |
LP-PC-06 | Append-only history | Prefill | high |
LP-PC-07 | Shared context before per-user context | Prefill | medium |
LP-PC-08 | Cache-aware compaction | Prefill | medium |
LP-PC-09 | Consistent reasoning handling; thinking fixed per session | Prefill and generation | high |
LP-PC-10 | Stable image and attachment placement | Prefill | medium |
LP-PC-11 | Keep pauses inside the cache lifetime | Prefill | low |
LP-PC-12 | Do not split one prefix across models or keys that do not share a cache | Prefill | medium |
generation-economy
Stops paying to generate, or to prefill again, what one call could have produced. Seventeen rules, LP-GE-01 to LP-GE-17, each in its own file under rules/, each with a way to detect it in code, the smallest fix, what the fix must not break, and how to verify it.
prompt-diet
Cuts dead weight from what each call sends: tools the call cannot use, instructions said twice, reminders sent on every turn, tool results and retrieved context passed whole, old turns that no longer bear on the answer, and data serialised with more characters than it needs. Six rules, LP-PD-01 to LP-PD-06, each in its own file under rules/, each with a way to detect it in code, the smallest fix, what the fix must not break, and how to verify it.
| Rule | Title | Saves | Severity |
|---|---|---|---|
LP-PD-01 | Offer each route only the tools it can use | Prefill | medium |
LP-PD-02 | Say each instruction once | Prefill | low |
LP-PD-03 | Do not resend the same boilerplate on every turn | Prefill | medium |
LP-PD-04 | Trim tool results and retrieved context at the tool boundary | Prefill | high |
LP-PD-05 | Drop stale history on purpose, not by stripping | Prefill | medium |
LP-PD-06 | Compact serialisation for data in the prompt | Prefill | low |
lmwarden
What to do when the model runs on your own hardware: when that is the right choice, which engine settings change prefix-cache reuse, how to keep a conversation on the replica that holds its cache, and how to share one server between apps without mixing their usage or their caches. Three rules, LP-LW-01 to LP-LW-03, each in its own file under rules/.
| Rule | Title | Saves | Severity |
|---|---|---|---|
LP-LW-01 | Turn on prefix caching and set the match unit | Prefill | high |
LP-LW-02 | Keep a conversation on the replica that holds its cache | Prefill | medium |
LP-LW-03 | One key per app or tenant; cache scope is a privacy boundary | Prefill | medium |