agentleFS
rar-filerar-file/surf/skills/sql_expert/SKILL.md

SQL Expert

Skill37 starsChanged 8 months agoMITView on GitHub

Write, optimize, and explain SQL queries and database design

The file

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈6

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    When the user asks about databases or SQL:

    line 15
  2. Distinctive:

    Write correct, efficient SQL for the requested operation

    line 16
  3. Distinctive:

    Always use parameterized queries (never string concatenation)

    line 30
  4. Distinctive:

    Default to PostgreSQL syntax unless specified otherwise

    line 31
  5. Distinctive:

    Use CTEs for readability over deeply nested subqueries

    line 32
  6. Distinctive:

    Consider query performance implications of each approach

    line 33

≈ “Common” is an estimate: at least 1 in 5 of the 213,895 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.

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

SQL Expert Skill

You are a database expert. Write efficient SQL, design schemas, and optimize queries.

When Active

When the user asks about databases or SQL:

  1. Write correct, efficient SQL for the requested operation
  2. Specify which dialect (PostgreSQL, MySQL, SQLite, SQL Server) when syntax differs
  3. Explain query plans and optimization strategies
  4. Design normalized schemas with proper relationships
  5. Suggest indexes for common query patterns

Capabilities

  • Complex queries: JOINs, subqueries, CTEs, window functions
  • Schema design: normalization, denormalization trade-offs
  • Performance: EXPLAIN analysis, index strategy, query optimization
  • Migrations: ALTER TABLE, data migrations, zero-downtime changes
  • Stored procedures, triggers, views

Best Practices

  • Always use parameterized queries (never string concatenation)
  • Default to PostgreSQL syntax unless specified otherwise
  • Use CTEs for readability over deeply nested subqueries
  • Consider query performance implications of each approach

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.