Scheduled-Agent Prompt Diet
by GlowHalo
Turn a long recurring agent prompt into a short pointer prompt plus a procedure file, with a keep/delete table for every sentence.
$5
Works with the AI Agents you already use
Scheduled-Agent Prompt Diet
Example session with this skill installed
Use the Scheduled-Agent Prompt Diet on this recurring prompt (a sample I wrote for a small shop's daily inventory agent).
--- PROMPT ---
[Daily Inventory Check — every day 07:30] You are the inventory agent for our shop. Every morning pull the latest repo, then open inventory/stock.csv and compare each SKU against inventory/reorder-points.csv. For every SKU at or below its reorder point, add a line to reports/low-stock-today.md with SKU, current count, and reorder point. Use the supplier API key sk_live_51Hx9example for the lookups of supplier lead times; do not print it. IMPORTANT: on 2026-09-02 the agent double-counted returns and told us to reorder 400 mugs by mistake, so always subtract rows in returns.csv marked pending before comparing. That incident is resolved and you no longer need to mention it. We switched from the old Sheets export to the CSV on 09-05, the old export is retired, ignore any mention of it. Be friendly and encouraging in the report, our team likes a positive tone. If nothing is at or below its reorder point, reply with a single period and write no file. Never email a supplier directly; draft the order in reports/draft-orders.md and wait for a human. Also, always send the supplier an email with the order the moment a SKU is low so we never run out. Keep the report under 40 lines. If stock.csv is missing, stop and reply "stock.csv missing" and do nothing else. Historically the agent was slow on Mondays because the repo was large, so on Mondays only check SKUs whose names start with A-M. Remember to commit the report at the end with the message "daily stock report".
- Read your context and instructions
- Compiled the scheduled-agent prompt diet
- Generated the data export
Measure
Original: 1478 characters (the prompt text only, counted from "[Daily Inventory Check" to "daily stock report"."), 18 segments. Core job: "Each morning, compare every SKU in inventory/stock.csv against inventory/reorder-points.csv and write the SKUs at or below their reorder point to reports/low-stock-today.md."
Findings
- [secret] S4: The prompt contains a supplier API key (a live-looking secret key). It is NOT copied into any artifact below. Rotate this key now, because it has been pasted into a chat and a scheduler prompt, and store the new one outside the prompt (in your secret store or environment).
- [conflict] S12 vs S13: S12 says "Never email a supplier directly; draft the order in reports/draft-orders.md and wait for a human." S13 says "always send the supplier an email with the order the moment a SKU is low." These are opposite. Not resolved here. Both are marked NEEDS-OWNER and the email behavior is left out of the pointer prompt until you decide.
- [dangling] S4: The prompt uses a supplier API for lead times but never says which tool, endpoint or where the key lives once removed from the prompt. NEEDS-OWNER.
- [dangling] S5:
returns.csvis given without a folder. Kept as written; confirm the full path. NEEDS-OWNER. - [unclear] S11 vs S18: "write no file" when nothing is low, but the prompt also says to commit the report at the end. The prompt does not say whether to skip the commit on a silent run. Kept as written; NEEDS-OWNER.
- [unclear] S17: On Mondays only SKUs starting A-M are checked, so N-Z SKUs are never checked on Mondays. Kept as written (it changes what the agent does); flagged only because the stated reason (slow repo) is history, not a requirement.
- [unclear] S6: S6 uses "returns.csv" rows "marked pending" but not which column or value marks them. Kept as written.
A. Procedure file
Save at a path of your choice (referred to in the pointer prompt as <your-procedure-file>).
# Daily Inventory Check
Schedule: every day 07:30.
Role: you are the inventory agent for our shop.
## Hard rules (these override everything else)
- If nothing is at or below its reorder point: reply with a single `.` and write no file.
- If inventory/stock.csv is missing: stop, reply "stock.csv missing", and do nothing else.
## Steps
1. Pull the latest repository.
2. Open inventory/stock.csv.
3. Subtract the rows in returns.csv that are marked pending from the counts before comparing.
NEEDS-OWNER: full path of returns.csv, and which column/value means "pending".
4. Compare each SKU against inventory/reorder-points.csv.
- On Mondays, only check SKUs whose names start with A-M.
5. For every SKU at or below its reorder point, add a line to reports/low-stock-today.md with: SKU, current count, reorder point.
6. Look up supplier lead times with the supplier API. Do not print the API key.
NEEDS-OWNER: which tool/endpoint to call, and where the key is stored now (the old key must be rotated).
7. Draft the order in reports/draft-orders.md.
NEEDS-OWNER: conflicting instructions. One said "Never email a supplier directly; draft the order and wait for a human." Another said "always send the supplier an email with the order the moment a SKU is low." Decide which one applies (or when each applies).
8. Keep the report under 40 lines.
9. Commit the report at the end with the message "daily stock report".
NEEDS-OWNER: should the commit be skipped on a silent run (nothing low, no file written)?
B. Pointer prompt (394 characters)
[Daily Inventory Check — every day 07:30] Pull the latest repository, then read <your-procedure-file> and follow it exactly. The procedure file is the source of truth (do not paste its contents back into this prompt). If no SKU is at or below its reorder point, reply with a single . and write no file. If inventory/stock.csv is missing, stop, reply "stock.csv missing" and do nothing else.
(The supplier-email rule is not in the pointer prompt because S12/S13 conflict; add it once you decide.)
C. Keep/delete table
| S# | Starts with | Label | Reason |
|---|---|---|---|
| S1 | "[Daily Inventory Check — every day 07:30]" | MOVE | Routine name/schedule go into the pointer prompt; role line goes in the file. |
| S2 | "Every morning pull the latest repo," | MOVE | Procedure steps (pull, open stock.csv, compare to reorder-points.csv). Pull is also in the pointer. |
| S3 | "For every SKU at or below" | MOVE | Report-writing step and format. |
| S4 | "Use the supplier API key ..." | MOVE | Lookup step moves to the file; the key itself is removed (secret) and flagged NEEDS-OWNER. |
| S5 | "IMPORTANT: on 2026-09-02 the agent" | DELETE | Incident history; the rule inside it is carried by S6. |
| S6 | "so always subtract rows in returns.csv" | MOVE | Live rule that changes counts every run; kept in the file as step 3, not deleted. |
| S7 | "That incident is resolved and" | DELETE | Finished decision, no effect on current behavior. |
| S8 | "We switched from the old Sheets" | DELETE | Migration log. |
| S9 | "the old export is retired, ignore" | DELETE | Retired source; the agent only reads the CSV in the steps anyway. |
| S10 | "Be friendly and encouraging in" | DELETE | Tone filler (per Phase 2). Note: if you want the tone, move it back. |
| S11 | "If nothing is at or below" | KEEP | Silent-output rule; changes the reply every run. In pointer and file. |
| S12 | "Never email a supplier directly;" | NEEDS-OWNER | Approval-gate style rule that directly conflicts with S13. |
| S13 | "Also, always send the supplier" | NEEDS-OWNER | Conflicts with S12. |
| S14 | "Keep the report under 40" | MOVE | Format limit. |
| S15 | "If stock.csv is missing, stop" | KEEP | Hard stop condition. In pointer and file. |
| S16 | "Historically the agent was slow on" | DELETE | History/justification. |
| S17 | "so on Mondays only check SKUs" | MOVE | Live rule that changes which SKUs are checked; kept in step 4. |
| S18 | "Remember to commit the report at" | MOVE | Procedure step (commit message). |
Rollout checklist
- Save and push the procedure file BEFORE changing the scheduler. A pointer prompt that references a file that does not exist yet makes the next run fail. Resolve the NEEDS-OWNER items in the file first.
- Rotate the leaked supplier API key and store the new one outside the prompt.
- Change only the prompt text in the scheduler. Leave the schedule and the name alone.
- Read the prompt back from the scheduler and confirm it is under 700 characters and that the path resolves in the pushed commit.
- Check the repeat factor yourself: look at how your scheduler echoes the prompt in its responses and logs. The saving is (1478 − 394) = 1084 characters × the number of times you actually see it.
- After the first real run, compare the output with an earlier run. If the behavior drifted, the cause is a segment labeled DELETE or MOVE that was really KEEP — move it back.
stock.csv
CSV · data export
Example file from a real run - the skill writes it into your workspace.
Connects securely to your tools. The creator never sees your data.
About this skill
Scheduled-Agent Prompt Diet shrinks the long prompt of a recurring agent job (a cron or scheduled routine) aiming to keep what the agent does unchanged.
Paste the full prompt and the Skill:
- Measures it and splits it into numbered sentences, stating the core job in one sentence.
- Labels each sentence KEEP (changes the decision on every run), MOVE (procedure that belongs in a file) or DELETE (incident history, finished decisions, justifications), with a one-line reason and the quoted original text.
- Flags secrets pasted into the prompt, contradicting instructions and unexplained references instead of guessing.
- Writes the procedure file, a pointer prompt under 700 characters, and a safe rollout order (push the file first, then change only the prompt text).
It rewrites the text you paste; it does not touch your scheduler. When it is unsure whether a sentence matters, it keeps it. Tone lines are proposed for deletion, and every DELETE row needs your review before you apply it. Redact secrets and customer data before pasting.
Anthropic, Claude Code, OpenAI, Codex and OpenClaw are trademarks of their respective owners. This Skill is an independent product and is not affiliated with, endorsed by or sponsored by them.
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse All Claude Skills.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed 20 days ago