agentleFS
macro-incmacro-inc/macro/.agents/skills/query-writing/SKILL.md

query-writing

Skill6.3k starsChanged 4 days agoAGPL-3.0View on GitHub

Use when you are about to write or change SQL, before the first line and again before you commit it. Applies to any new or changed sqlx `query!`, `query_as!`, or `query_scalar!`, QueryBuilder or other assembled SQL, a Soup or GraphQL filter that becomes SQL, a SQL function, view, or trigger, and code that calls an existing query in a loop, from a new page or job, or with a wider scope (a team instead of a user, a list instead of one id). Covers how to write the query so it stays bounded and index-backed, and the required EXPLAIN (ANALYZE, BUFFERS) on a production-size local database before the commit. Reviewing a finished diff is query-review; macro and cache checks are sqlx-query-validator.

2 other projects use a version of this.

Trending

More talk lately.about the whole repository

Dec 2025: 0 mentionsJan 2026: 0 mentionsFeb 2026: 0 mentionsMar 2026: 0 mentionsApr 2026: 0 mentionsMay 2026: 0 mentionsJun 2026: 1 mentionJul 2026: 1 mentionAug 2026: 15 mentionsSep 2026: 4 mentionsOct 2026: 39 mentionsNov 2026: 1 mention
Dec 2025Jun 2026Nov 2026
Mentions a month of the macro-inc/macro repository that our weekly crawl found. There is no adoption data for this file yet.

Most recently taken up by

Who's talking about macro-inc/macro

The biggest 5 of 61 mentions linking to the repository that our crawl found. Each line is their own headline.

See all 61

Talked about on GitHub, Bluesky and Hacker News (61 times).

On GitHub · 50

45 more on GitHub

On Bluesky · 8

3 more on Bluesky

The file

We split this skill into the rules it gives an agent

7 rules. About 0 are common, 1 is distinctive, and 6 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 6

    Very specific

    Tied to their project's names, files or tools. Probably skip.

Licensed with conditions — read it at the source. We count its rules but don't quote them. Read them on GitHub.

≈ “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.

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.