Agent skill

cosmiconfig-setup

Set up cosmiconfig for hierarchical configuration loading from multiple sources and formats.

a5c-aigithub.com/a5c-aiGitHub ↗
claude-codecodexcan modify filesMIT
Install
npx skills add a5c-ai/babysitter --skill cosmiconfig-setup --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 2
SKILL.md size: 2 KB
Bundled scripts: none
Allowed tools: ReadWriteEditBashGlobGrep
Path: library/specializations/cli-mcp-development/skills/cosmiconfig-setup/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 1,642
Language: JavaScript

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# Cosmiconfig Setup Set up cosmiconfig for hierarchical config loading. ## Capabilities - Configure cosmiconfig search paths - Set up format loaders (JSON, YAML, TOML) - Create TypeScript config support - Implement config caching - Handle config validation ## Generated Patterns ```typescript import { cosmiconfig, cosmiconfigSync } from 'cosmiconfig'; import { TypeScriptLoader } from 'cosmiconfig-typescript-loader'; const moduleName = 'myapp'; const explorer = cosmiconfig(moduleName, { searchPlaces: [ 'package.json', `.${moduleName}rc`, `.${moduleName}rc.json`, `.${moduleName}rc.yaml`, `.${moduleName}rc.yml`, `.${moduleName}rc.js`, `.${moduleName}rc.ts`, `.${moduleName}rc.cjs`, `${moduleName}.config.js`, `${moduleName}.config.ts`, `${moduleName}.config.cjs`, ], loaders: { '.ts': TypeScriptLoader(), }, }); export async function loadConfig(searchFrom?: string) { const result = await explorer.search(searchFrom); if (!result || result.isEmpty) { return { config: getDefaultConfig(), filepath: null }; } return { config: { ...getDefaultConfig(), ...result.config }, filepath: result.filepath }; } ``` ## Target Processes - configuration-management-system - cli-application-bootstrap - mcp-ser

What's inside
Steps it walks through
  1. Capabilities
  2. Generated Patterns
  3. Target Processes
Ships with 1 file
  • README.md
More from babysitter
All skills →
About this skill
What does the cosmiconfig-setup skill do?

Set up cosmiconfig for hierarchical configuration loading from multiple sources and formats.

How do I install it?

Run `npx skills add a5c-ai/babysitter --skill cosmiconfig-setup --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From a5c-ai/babysitter, a repository with 1,642 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going