usage-rules

Extract package usage rules for Elixir and Erlang libraries from local caches.

176|8|Updated Jul 25, 2025
One-click install
npx skills add https://github.com/bradleygolden/claude-marketplace-elixir --skill usage-rules
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: usage-rules
Source: https://github.com/bradleygolden/claude-marketplace-elixir/tree/main/plugins/core/skills/usage-rules
Command: npx skills add https://github.com/bradleygolden/claude-marketplace-elixir --skill usage-rules

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill automates the process of discovering and applying package usage conventions for Elixir projects. It searches local dependencies for usage rules, consults a cached repository of previously fetched rules, and automatically fetches new rules when needed. It then extracts the most relevant sections based on the coding context and offers fallback guidance when rules aren’t available.

Core Features & Use Cases

  • Local dependencies search: Look up usage-rules.md in deps/ to match the project's version.
  • Fetched cache search: Retrieve rules from .usage-rules/ for offline access.
  • Progressive fetch: Automatically download and cache rules for future use.
  • Context-aware extraction: Pulls relevant sections like Querying, Error Handling, or Relationships.
  • Fallback guidance: Suggests alternatives when rules are missing.

Quick Start

Example: User asks for Ash best practices for querying. Claude will locate the rules, extract the relevant section (e.g., 'Querying Data'), and present concise guidance.

Frequently Asked Questions about usage-rules

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I find usage rules and best practices for Elixir packages?

Usage rules for Elixir and Erlang libraries are surfaced by searching local dependencies, consulting cached rules, and automatically fetching missing ones. The Skill extracts relevant sections like Querying, Error Handling, Actions, Relationships, and Testing to provide context-aware guidance for your project's exact versions.

Can I access Elixir package usage rules offline?

Yes. The Skill caches fetched rules in .usage-rules/ for offline access after the first fetch. It prioritizes local deps/ and cached rules before attempting to download, ensuring you can reference usage conventions without internet connectivity.

How do I get Ash framework best practices for querying and error handling?

The Skill locates Ash usage rules from your project's locked version in mix.lock, extracts sections specific to Querying or Error Handling, and presents concise guidance. It automatically detects your installed version and retrieves the matching rules.

What happens if usage rules aren't available for a package?

When rules are missing, the Skill provides fallback guidance based on general best practices. It also attempts progressive fetching to download and cache rules for future use, building your offline reference library over time.

Does this work with all Hex packages and Erlang libraries?

The Skill applies to any Elixir or Erlang library in your hex.pm dependencies. It detects versions from mix.lock and mix.exs, then searches for and extracts usage conventions. Coverage depends on whether usage-rules.md exists in the package documentation.

Can I use this Skill with custom or private packages?

Yes. The Skill searches local deps/ for usage-rules.md in any dependency, including custom or private packages. As long as the package is in your project's deps directory, its rules can be discovered and cached.