log-log-tool-from-one-off
Skill103 starsChanged 7 days agoMITView on GitHub
Turning a hand-rolled one-off into a log tool. A log play (docs/useCases/log/toolFromOneOff.md): When the agent reaches for a one-off to get or change data (a scratch script over log.db, a raw `sqlite3` query, a `curl` to a platform or a link, a `python -c` or `bun -e`), log has no tool for that job yet. The hook labels the call `readsData` or `actsOnData` with what it touched, counts it in log.db, and says so before or right after it runs. It never blocks: the agent may finish the one-off, then makes it a real command and MCP tool so it routes from then on. The owner isn't asked; the guide below is the whole procedure.
- Commits and pushes
In this repository104 other files it gives its agents.
- AGENTS.mdAGENTS.md
- llms.txtllms.txt
- log-discord-channel-replySkill
- log-discord-cold-outboundSkill
- log-discord-forum-postsSkill
- log-discord-group-chat-readSkill
- log-discord-meme-replySkill
- log-discord-server-replySkill
- log-discord-server-searchSkill
- log-facebook-groupsSkill
- log-facebook-marketplace-listingsSkill
- log-inbox-agent-to-agentSkill
- log-inbox-boss-maxxingSkill
- log-inbox-governor-resetSkill
- log-inbox-ignore-serverSkill
- log-inbox-label-queueSkill
- log-inbox-outcomesSkill
- log-inbox-quiet-pushSkill
- log-inbox-reactionsSkill
- log-inbox-rea-looksmaxxingSkill
- log-inbox-said-bySkill
- log-inbox-scope-ajobSkill
- log-inbox-show-meSkill
- log-inbox-sign-inSkill
- log-inbox-triageSkill
- log-inbox-voice-noteSkill
- log-inbox-warm-peopleSkill
- log-instagram-dm-replySkill
- log-instagram-new-platformSkill
- log-linkedin-networkSkill
- log-linkedin-postsSkill
- log-log-agent-setupSkill
- log-log-browser-moveSkill
- log-log-local-modelsSkill
- log-log-secret-storeSkill
- log-log-tool-healthSkill
- log-log-update-logSkill
- log-network-relationship-machineSkill
- log-network-who-to-talk-toSkill
- log-people-botsSkill
- log-people-factsSkill
- log-reddit-contributor-maxxingSkill
- log-slack-dm-replySkill
- log-tiktok-postSkill
- log-tiktok-video-researchSkill
- log-twitter-affiliate-marketingSkill
- log-twitter-collab-maxxingSkill
- log-twitter-dm-inboxSkill
- log-twitter-engagement-repliesSkill
- log-twitter-engager-dmsSkill
- log-twitter-followersSkill
- log-twitter-follow-upsSkill
- log-twitter-get-the-actionSkill
- log-twitter-manager-maxxingSkill
- log-twitter-network-maxingSkill
- log-twitter-niche-map-regionSkill
- log-twitter-notificationsSkill
- log-twitter-recruitingSkill
- log-twitter-reply-guy-funnelSkill
- log-twitter-topic-repliesSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 32
Not labelled: git, gh, bun test, tsc, log itself, a VACUUM INTO copy of log.db, the devlog, ~/.logCli/mcp logs, files written inside the …
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 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
Turning a hand-rolled one-off into a log tool
This is the log play log/toolFromOneOff. Before anything else, call the log MCP tool getGuide({ useCase: "log/toolFromOneOff" }): it returns this page and makes it the session's play, so every log tool's answer says which step you are on and a send with no play loaded is refused (rules 157, 158). Then follow the steps in order.
Draft every message from that person's own thread and the owner's real replies (voice with no text, search), never from memory, and never send two that read alike (sameAsSent).
When the agent reaches for a one-off to get or change data (a scratch script over log.db, a raw sqlite3 query, a curl to a platform or a link, a python -c or bun -e), log has no tool for that job yet. The hook labels the call readsData or actsOnData with what it touched, counts it in log.db, and says so before or right after it runs. It never blocks: the agent may finish the one-off, then makes it a real command and MCP tool so it routes from then on. The owner isn't asked; the guide below is the whole procedure.
How the owner asks for it: "turn that one-off into a tool", "make that script a log command", "stop hand-rolling that", "vendor that query into log"
Run it from a fresh context
Say: "go on docs/useCases/log/toolFromOneOff.md for <the one-off>". The agent reads this page and runs the steps.
What the hook labels
Every host's tool call is first unwrapped into the commands it really runs, the files it writes and the code it executes: a shell heredoc that writes a script and runs it, Hermes execute_code with terminal(), write_file(), subprocess, sqlite3.connect or requests inside, a write tool making a scratch script that a later call runs, browser_exec code fetching a platform's API, and tool_call wrappers (a real mcp__log__* tool inside one is never labelled). Then:
| Label | When | Target |
readsData | a SELECT or a read-only open of log.db, reading ~/.logCli files, a GET to a platform, resolving a link | log.db (<tables>), ~/.logCli/<folder>, <platform> API, a link (<host>) |
actsOnData | INSERT, UPDATE, DELETE on log.db, writing ~/.logCli files, a POST, PUT or DELETE to a platform | the same |
Not labelled: git, gh, bun test, tsc, log itself, a VACUUM INTO copy of log.db, the devlog, ~/.logCli/mcp logs, files written inside the repo's src, scripts or docs, every log MCP tool, and delegate_task.
The steps
| # | Step | Tool | Done when |
| 1 | See the one-offs the hook counted, most frequent first | toolScaffold with no name | the one-off is listed with its label and target |
| 2 | Name it and say what it does, a dry run | toolScaffold { name, summary, flags, asks } (acts: true when it changes data) | the planned files and syntax-tree edits are listed |
| 3 | Write it: the command, its test, its rules, its guide group and its use case, then the docs and skills builds | toolScaffoldLive { the same, confirmLive: true } | every edit landed and both builds passed |
| 4 | Move the one-off's logic into the command's rows function, and its real case into the test | src/cli/<name>/index.ts, bun test src/cli/<name> | the test passes on synthetic data |
| 5 | Reload the MCP so the tool exists in this session | touch src/mcp/server/index.ts (the reload proxy restarts the server; toolScaffoldLive does it) | the tool shows up |
| 6 | Call the new tool's dry run with the one-off's inputs and compare the answers | the new tool | it answers what the one-off answered |
| 7 | Commit it with the devlog, then open or extend the PR | git commit, gh pr create | the remote branch equals HEAD; the router offers the tool from now on |
What the runs taught
- A scratch script over log.db is the usual one. Finding a person's messages across platforms by name was a
bunscript withbun:sqlite,messages JOIN chatsandsenderLabel LIKE; it becamesaidBy. - Hermes has no hook that can advise before a tool runs. Its
pre_tool_callcan only block, ask the owner or rewrite the arguments, so on Hermes the advice comes with the call's result (transform_tool_result); Claude Code, Codex, OpenCode and Antigravity get it before the call. - Name it by the job, not the query. The name and summary are the tool's description, so the router models find it by what the owner asks for.
Related
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.

