# Skill Discovery

> Skill: skill-discovery

- Skill: `layeddie/skill-discovery` (Agent Skill)
- Install (CLI): `npx skillmds@latest add layeddie/skill-discovery`
- Raw SKILL.md: https://api.skillmd.com/api/skills/layeddie/skill-discovery/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Product & Planning
- Author: layeddie (https://skillmd.com/u/layeddie)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/layeddie/skill-discovery

---

# Skill: skill-discovery

**INVOKE BEFORE** working on Elixir/BEAM files. Determines which skills to load based on file patterns and task hints.

## Use when
- You open a file and are unsure which skill applies.
- The request spans multiple areas (OTP + LiveView + Ash).

## How it works
- Scan current file path/name and pick matching skills:
  - `lib/**/live/**/*.ex` or `lib/**/live_view/**/*.ex`: load `liveview-lifecycle`.
  - `lib/**/ash/**` or `*_ash/**`: load `ash-guardrails`.
  - `lib/**/ecto/**` or `priv/repo/migrations/*.exs`: load `ecto-query-analysis`.
  - `lib/**/otp/**` or modules ending with `Supervisor|Server|Worker`: load `otp-patterns`.
- If multiple match, list all; start with the most specific (Ash > LiveView > Ecto > OTP).

## Response pattern
- Summarize matched skills and why (1–2 bullets).
- Ask before loading heavy checklists if context is large.

## Notes
- Keep outputs concise; point to `tools/claude/README.md` for deeper docs when asked.

