ecto-n1-check SKILL.md skillA

This file is byte-identical to the first copy the registry indexed. Same content hash, so the same checks give both the same grade.

ecto-n1-check from oliver-kriska/claude-elixir-phoenix is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.

Install it, pinned
mdr add oliver-kriska/claude-elixir-phoenix/ecto-n1-check@git:20260929.c08ad14

Pins git:20260929.c08ad14 in mdr.lock. Pin the fingerprint instead.

Audit grade
A, 17 of 17 checks passed
Kind
SKILL.md skill
Repository
oliver-kriska/claude-elixir-phoenix
Path
targets/dsh/skills/ecto-n1-check/SKILL.md
Versions recorded
2
Latest version
git:20260929.c08ad14, committed Sep 29, 2026
First version recorded
Aug 27, 2026
Size
2,102 bytes
Repository stars
573
License
MIT

Detect N+1 query anti-patterns specifically — Repo calls inside Enum/for.

Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.

What the file says

# N+1 Query Detection

Identify and fix N+1 query anti-patterns in Ecto/Phoenix applications.

## Iron Laws - Never Violate These

1. **Never access associations without preload** - Always preload before `Enum.map`
2. **No Repo calls inside loops** - Restructure to batch queries
3. **Preload at context boundary** - Load associations in context, not controllers/views
4. **Use joins for filtering** - Use `join` + `preload` when filtering by association

## Detection Patterns

### Pattern 1: Enum.map with Repo

```elixir
# BAD: N+1 queries
users
|> Enum.map(fn user -> Repo.get(Order, user.order_id) end)

# GOOD: Single query with preload
users
|> Repo.preload(:orders)
```

### Pattern 2: Association Access Without Preload

```elixir
# BAD: Lazy loading triggers N queries
for user <- users do
  user.posts  # Triggers query for each user!
end

# GOOD: Eager load first
users = Repo.all(User) |> Repo.preload(:posts)
for user <- users do
  user.posts  # Already loaded
end
```

### Pattern 3: Nested Association Access

```elixir
# BAD: N+1 for nested associations
user.posts |> Enum.map(fn post -> post.comments end)

# GOOD: Nested preload
Repo.preload(user, posts: :comments)
```
…

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add oliver-kriska/claude-elixir-phoenix/ecto-n1-check@sha256:6c6b6671033c3ced

The line at the top of this page pins the label git:20260929.c08ad14, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_r33g6azqmct7opqo.svg)](https://markdownregistry.com/a/art_r33g6azqmct7opqo)

3 badge image fetches in 30 days. What the badge shows.

Versions

The registry has recorded 2 versions of this file, between Aug 27, 2026 and Sep 29, 2026, about one every 33 days.

versioncommittedcommitsizeaudit
git:20260929.c08ad14 latest2026-09-29 c08ad14 2,102 BA view · diff
git:20260827.608d3222026-08-27 608d322 2,176 BA view

Audit of the latest version

A  17 of 17 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • pass: Frontmatter block present
  • pass: Frontmatter declares a name
  • pass: Frontmatter declares a description
  • pass: Size between 200 bytes and 200 KB (2102 bytes)
  • pass: No zero-width or bidi control characters
  • pass: No instruction hidden inside an HTML comment
  • pass: No link to an exfiltration or paste host
  • pass: No credential-shaped string
  • pass: No instruction to send local credentials anywhere
  • pass: No text hidden with inline styles
  • pass: No prompt-injection phrasing
  • pass: No curl or wget piped into a shell
  • pass: No recursive delete of root, home or parent
  • pass: No instruction to read or print local credentials
  • pass: No base64 blob over 200 characters
  • pass: No link to a raw IP address
  • pass: No script tag

Source

GitHub

oliver-kriska/claude-elixir-phoenix · 573 stars · license MIT · pushed 2026-11-06 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_r33g6azqmct7opqo
GET https://markdownregistry.com/api/v1/resolve?ref=oliver-kriska/claude-elixir-phoenix/ecto-n1-check
GET https://markdownregistry.com/api/v1/blob/6c6b6671033c3ced9937abb6d0e9aeedded872ac27818f29320fbff6171ee03c

Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.

Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.

More from oliver-kriska/claude-elixir-phoenix

cc-changelog SKILL.md skill
oliver-kriska/claude-elixir-phoenix · .claude/skills/cc-changelog/SKILL.md · CONTRIBUTOR TOOL - Track CC changelog, extract new versions since last check, analyze impact on plugin (breaking…
git:20260611.6992d66 · audit A · 573 stars
codex-ab SKILL.md skill
oliver-kriska/claude-elixir-phoenix · .claude/skills/codex-ab/SKILL.md · Run an A/B codex review experiment — holistic codex review vs 3 focused dimension passes (security, ecto, liveview) on…
git:20260710.9a61290 · audit A · 573 stars
docs-check SKILL.md skill
oliver-kriska/claude-elixir-phoenix · .claude/skills/docs-check/SKILL.md · CONTRIBUTOR TOOL - Validate plugin against latest Claude Code documentation. Catches breaking changes, deprecations…
git:20260217.1cf0144 · audit A · 573 stars
plugin-dev-workflow SKILL.md skill
oliver-kriska/claude-elixir-phoenix · .claude/skills/plugin-dev-workflow/SKILL.md · Guide plugin development workflow — editing skills, agents, hooks, or eval framework in this repo. Use when modifying…
git:20261001.8fc26af · audit A · 573 stars
promote SKILL.md skill
oliver-kriska/claude-elixir-phoenix · .claude/skills/promote/SKILL.md · Generate X/Twitter release promotion posts with ASCII tables and CodeSnap rendering. Use when writing release posts…
git:20260403.784ba36 · audit A · 573 stars
release SKILL.md skill
oliver-kriska/claude-elixir-phoenix · .claude/skills/release/SKILL.md · CONTRIBUTOR TOOL - Cut a plugin release: bump plugin.json version, finalize CHANGELOG, update README if needed, gate on…
git:20260929.978317b · audit A · 573 stars
session-deep-dive SKILL.md skill
oliver-kriska/claude-elixir-phoenix · .claude/skills/session-deep-dive/SKILL.md · Deep qualitative analysis of high-signal sessions. Spawns subagents with v2 template, synthesizes patterns, compares…
git:20260303.db45ce1 · audit A · 573 stars
session-scan SKILL.md skill
oliver-kriska/claude-elixir-phoenix · .claude/skills/session-scan/SKILL.md · Compute metrics for Claude Code sessions. Discovers via ccrider, filters trivial, computes…
git:20260303.db45ce1 · audit A · 573 stars
session-trends SKILL.md skill
oliver-kriska/claude-elixir-phoenix · .claude/skills/session-trends/SKILL.md · Analyze trends across session metrics. Computes windowed aggregates, deltas, and compares against MEMORY.md findings…
git:20260508.18aaa0f · audit A · 573 stars
skill-monitor SKILL.md skill
oliver-kriska/claude-elixir-phoenix · .claude/skills/skill-monitor/SKILL.md · Analyze skill effectiveness across sessions. Computes per-skill metrics (action rate, friction, outcomes), identifies…
git:20260508.9272353 · audit A · 573 stars
CLAUDE.md CLAUDE.md file
oliver-kriska/claude-elixir-phoenix · CLAUDE.md
git:20261102.4621ae4 · audit A · 573 stars
lab:autoresearch SKILL.md skill
oliver-kriska/claude-elixir-phoenix · lab/autoresearch/SKILL.md · Self-improving loop for plugin skills. Reads program.md, proposes one mutation per iteration, evaluates against…
git:20260325.91f9837 · audit A · 573 stars

Every file in oliver-kriska/claude-elixir-phoenix

Other files named ecto-n1-check

ecto-n1-check SKILL.md skill
oliver-kriska/claude-elixir-phoenix · targets/codex/skills/ecto-n1-check/SKILL.md · Find Ecto N+1 queries and missing preloads. Use only when N+1 is suspected;
git:20260929.c08ad14 · audit A · 573 stars
ecto-n1-check SKILL.md skill
oliver-kriska/claude-elixir-phoenix · targets/amp/skills/ecto-n1-check/SKILL.md · Detect N+1 query anti-patterns specifically — Repo calls inside Enum/for
git:20260929.c08ad14 · audit A · 573 stars

Browse by kind, by grade A, or by owner.