post-scheduler
Skill2 starsChanged 4 months agoMITView on GitHub
Schedule a finished social post to one or more platforms via the Blotato REST API (direct, not MCP). Handles single- and multi-platform scheduling, resolves accounts from the brand's accounts.md, applies a final pre-publish check, and returns scheduled time + post IDs. Triggers on "schedule this," "post this to [platform]," or as the final step in content-coach, post-writer and repurpose flows. Falls back to saving a copy-paste file if the API key isn't set.
- Reads credentials
In this repository10 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- brand-briefSkill
- content-coachSkill
- post-graderSkill
- post-writerSkill
- repurposeSkill
- social-managerSkill
- viral-hooksSkill
- visual-producerSkill
The file
We split this skill into the rules it gives an agent
10 rules. About 0 are common, 7 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈7
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 32
If the platform or brand is missing, ask.
- Distinctive: line 35
Before touching the API, review the post one more time:
- Distinctive: line 44
If anything fails, stop and report.
- Very specific: line 47
Read _base/accounts.md. For example:
- Very specific: line 81
If python scripts/blotato.py whoami fails or there's no .env at the root:
- Distinctive: line 94
If multi-platform, one block per platform.
- Distinctive: line 105
Don't auto-fix voice issues: just flag and ask (that's post-grader/post-writer's job).
- Distinctive: line 106
Don't skip the pre-check: it's the last line of defense.
- Distinctive: line 107
Don't publish instantly by default.
- Very specific: line 108
Don't report "done" without the postSubmissionId.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Post Scheduler (direct API)
You take an approved post and ship it to the Blotato calendar via the direct REST API
(scripts/blotato.py), NOT via MCP. You do NOT write or revise the post — that's post-writer's
job. By the time a post reaches you, it's been graded and approved. Nothing publishes
immediately: everything is scheduled.
Why direct API: this project uses
scripts/blotato.py(requiresBLOTATO_API_KEYin.envat the project root) to be faster and work the same in Claude Code, Desktop, and Cowork, without depending on MCP.
When to Activate
- "Schedule this post" / "Schedule this to your brand's LinkedIn"
- Auto-called as the final step of
content-coach,post-writer, orrepurposeafter approval.
Workflow
Step 1: Get inputs
- Post text — inline, or path to a file (ideally
posts/....md). - Platform(s) — one or more from: instagram, facebook, twitter, linkedin.
- Account — to resolve the correct
accountId/pageId(read_base/accounts.md). - Media — the
mediaUrlsthatvisual-producerreturned (or empty if text-only). - Time — defaults to
--next-free-slot; or an ISO timestamp if the user specified one.
If the platform or brand is missing, ask. Don't guess.
Step 2: Final pre-publish check
Before touching the API, review the post one more time:
- Zero em dashes
- No banned filler ("really", "very", "just", "basically", "literally", "actually")
- No filler openers ("in today's world", "let me tell you")
- Active voice; contractions used
- Correct number of hashtags (0 on Twitter/LinkedIn/Facebook; 3-5 on Instagram)
- Instagram:
mediaUrlsare attached - LinkedIn: no external links in the body
If anything fails, stop and report. Wait for an explicit response from the user. Don't auto-fix.
Step 3: Resolve the account
Read _base/accounts.md. For example:
- LinkedIn →
--account <ACCOUNT_ID> --page <PAGE_ID> - X →
--account <ACCOUNT_ID>
Facebook requires --page (pageId) as mandatory. If a platform has several possible accounts, ask which one.
Step 4: Schedule (one call per platform)
python scripts/blotato.py post \
--account <accountId> --platform <linkedin|twitter|instagram|facebook> \
[--page <pageId>] \
--text-file <path> \
[--media "<url1,url2,...>"] \
--next-free-slot # or: --schedule "2026-07-20T13:00:00Z"Rules:
- Always
--next-free-slotor--schedule. The script refuses to publish without one of the two. - The script guarantees
content.platform == target.targetType. - Multi-platform: one call per platform. If the copy exceeds a platform's limit, ask how to handle it (shorten / skip / override). Don't truncate on your own.
Step 5: Report
Show a confirmation table:
## Scheduled
| Platform | Brand | Account | Time | Status | postSubmissionId |
|---|---|---|---|---|---|
| LinkedIn | your brand | <PAGE_ID> | Next free slot | scheduled | abc-123 |
| Twitter | your brand | <PLATFORM_HANDLE> | Next free slot | scheduled | def-456 |
View and edit at https://my.blotato.com/schedulerFor partial failures (3 of 5 ok), report success and failure separately. Don't roll back.
Step 6: Fallback (no API key)
If python scripts/blotato.py whoami fails or there's no .env at the root:
Blotato is not connected (missing the API key in .env). Saving the post to paste manually.Save to posts/<slug>-ready-to-paste.txt:
=== POST FOR [PLATFORM] ===
Schedule for: [time or "manual post"]
[POST TEXT]
=== END ===If multi-platform, one block per platform. Tell the user the path. Never fail the flow.
Error handling
- 401/403 → the API key is failing or expired. Tell the user to check
.env(root) or regenerate the key. - 429 → rate limit; wait the number of seconds the message says and retry once.
--next-free-slotwith no slots → there are no slots for that platform/account. Tell the user to create slots (python scripts/blotato.py slots-create ...) or use--schedulewith an exact time.- Post over the char limit → don't truncate; ask.
- Network failure → retry once; if it fails again, save to the fallback and report.
What NOT to Do
- Don't auto-fix voice issues: just flag and ask (that's post-grader/post-writer's job).
- Don't skip the pre-check: it's the last line of defense.
- Don't publish instantly by default. Only publish now if the user explicitly says "post now".
- Don't report "done" without the
postSubmissionId.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

