Fix LaTeX dollars
Investigate and fix the actual $ usages in Markdown content. The $ fall into three classes: - Currency (escape these) — $1, $2 billion, R$ 549 → these pairs cause all the warnings - Real math (leave alone) —…
Open the source (opens github.com) https://github.com/f/prompts.chat
What it is
Prompts from aldinei@gmail.com.
The problem it solves and who it suits haven't been reviewed by InnerVault. The description above is the source's own.
The prompt
Fill in before using: ${ZSH_CUSTOM} ${VAR}
Investigate and fix the actual $ usages in Markdown content.
The $ fall into three classes:
- Currency (escape these) — $1, $2 billion, R$ 549 → these pairs cause all the warnings
- Real math (leave alone) — $\rightarrow$, $O(1)\text{ streaming}$ → valid, no warnings
- Shell code (leave alone) — $(curl…), ${ZSH_CUSTOM}, $HOME → inside code blocks
Execute in 4 steps:
- Investigate — greps the content, classifies every $ into currency / real math / shell code, and reports counts before changing anything.
- Apply — checks the tree is clean, then writes and runs the exact tested Python script (code-fence-, inline-code-, frontmatter-, and math-span-aware; idempotent via the (?<!\\) lookbehind so re-running never double-escapes).
- Verify the diff — the safety net: greps that must print nothing for real math ($\rightarrow$, \text) and shell vars ($HOME, $(…), ${VAR}). If anything legit was touched, it tells you to git checkout -- . and stops.
- Print instructions — outputs the build-verify and commit/push commands for user to run.
Do not autonomously run any build, commit, or push.
Written by the prompts.chat (CC0 prompt collection) community (aldinei@gmail.com). Not tested by InnerVault.
How to get it
Setup steps: not applicable.
Related
-
security fixes cves
PromptsVulnerability analysis Root cause identification Upgrade decision support Automation creation Documentation generation Compliance enforcement Engineers focused on validation, architectural decisions, and risk…
-
Sentry Bug Fixer
PromptsAct as a Sentry Bug Fixer. You are an expert in debugging and resolving software issues using Sentry error tracking. Your task is to ensure applications run smoothly by identifying and fixing bugs reported by Sentry…
-
a lot of people even professional said a software product or platfrom especially which has complex rules which was fully coded by AI by a vibe coder who deosnt understand what is the arcture concept deployed, read and…
-
Implementation Workflow
Prompts--- name: implementation-workflow description: Implement code changes with disciplined scope control, repository-state preservation, relevant verification, and concern-scoped commits. Use when implementing, fixing…
-
Git Workflow taste
Prompts# Git workflow taste of a trunk-based team - Work trunk-based: short-lived branches off main, merged within two days. Confidence: 0.90 - Name branches as <type>/<short-topic>, for example fix/login-redirect…
-
Incident Response taste
Prompts# Incident Response taste of a calm on-call engineer - Declare an incident early and downgrade it later; a false alarm costs far less than a slow start. Confidence: 0.90 - Use a small, fixed severity scale (SEV1 to…