OpenParable
Skip to content
← Back to skills

Provider Naming

Development
provider-naming

Provider Naming is an Agent Skill for development published in the microlinkhq/unavatar repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.

Enforces consistent naming for provider auxiliary functions in src/providers/. Use when creating, renaming, or reviewing provider modules or their tests.

View on GitHub ↗
QUICK START

How to use this skill

Bring this guide into your coding agent with a prompt tailored to the tool you use.

  1. Open your project in Codex.
  2. Copy and paste the prompt below.
  3. Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/microlinkhq/unavatar/blob/HEAD/.agents/skills/provider-naming/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/provider-naming, but wait for my approval before writing files or running scripts.

Copying this prompt does not install or run the skill. Review third-party files before use.

Provider Naming

All provider auxiliary functions in src/providers/ must use consistent names:

  • getAvatarUrl(input) — builds the URL to visit/scrape from user input (input → URL string). Passed as url to createHtmlProvider.
  • getAvatar($) — extracts the avatar URL from fetched HTML markup (cheerio $ → URL string). Passed as getter to createHtmlProvider.
  • parseInput(input) — parses input when multiple formats are supported (e.g. "type:id"). Never prefix with provider name.

Exports should be module.exports.getAvatarUrl, module.exports.getAvatar, module.exports.parseInput. Update corresponding test files in test/unit/providers/ when renaming.