cosmiconfig-setup
Set up cosmiconfig for hierarchical configuration loading from multiple sources and formats.
npx skills add a5c-ai/babysitter --skill cosmiconfig-setup --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# 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
- Capabilities
- Generated Patterns
- Target Processes
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.
