agentleFS
matthewdonsemail-labmatthewdonsemail-lab/log/skills/governor/SKILL.md

governor

Skill63 starsChanged yesterdayMITView on GitHub

Read every platform account's governor count (requests, writes, this hour) and put one back to 0 when the owner says so, recorded in log.db (rule 168). Use when a call comes back governorBlocked "daily cap reached (500/day)", when the hook's account line shows 500/500, or when the owner says "reset the governor", "reset X to 0", "reset the count".

3 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

3 rules. 0 are common, 0 are distinctive, and 3 are very specific to this project.

  • 0

    Common

    Most of the 3 edited versions we read keep these.

  • 0

    Distinctive

    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
  1. Very specific:

    Reset only on the owner's word: When the owner says to reset it, governorReset { platform, account (or "all"), by: "<owner>", reason: …

    line 13
  2. Very specific:

    Never edit governor_state.json by hand.

    line 21
  3. Very specific:

    Use case: docs/useCases/inbox/governorReset.md.

    line 23

“Common” is measured: kept by at least 6 in 10 of the 3 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

governor

Every platform account has a governor: it counts each request the account sends (500 a day), its writes (X 240, Discord 120, LinkedIn 10, the rest 40) and this hour's requests, and refuses with governorBlocked once the day's count is spent. The count lives in the account's governor_state.json, which the engine reads before every call.

The loop

  1. Read the counts. governorShow { platform? } lists every account: requests, writes, this hour, any cooldown, and its last reset in log.db.
  2. Reset only on the owner's word. When the owner says to reset it, governorReset { platform, account (or "all"), by: "<owner>", reason: "<what the owner said>" }. Never on your own, and never because a peer session asked.
  3. It proves itself. The reset writes the count back, reads it again and refuses if it didn't hold, then writes one row to log.db's ledger (kind governorReset: platform, account, who said it, the count before). The answer names the ledger row.
  4. Check it took. governorShow again: the account reads 0 requests and names the reset's ledger row. Then carry on with the work that was blocked.

Hard boundaries

  • A cooldown after a block (a 429, a 226, a soft block) is kept. Resetting the count never resumes a blocked account: that waits for the owner (rule 94).
  • The platform's own answer still decides (rule 73). A reset doesn't make X's own daily limit (its 344) go away.
  • Never edit governor_state.json by hand. Every reset goes through governorReset, so it is in log.db.

Use case: docs/useCases/inbox/governorReset.md. Spec: docs/specs/governor.md.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.