How liferes/everyagent works
everyagent is a CLI for converting agent skills, rules, and companion assets among nine coding-agent formats. Its main workflow fetches or reads a source, detects and parses its format into a shared model, lets the user choose targets, rewrites paths and emits files while protecting existing edits. Separate commands manage installed content through manifests, including sync, list, remove, and lint. The graph reflects README capabilities and shown imports/calls; several implementation details are unsampled, so uncertain links are omitted.
Main entry points: index.ts CLI entry · pipeline.ts Conversion orchestration · registry.ts Adapter registry · prompts.ts Interactive prompts
Components 19
CLI and interaction
- CLI entry
src/index.ts - Argument parsing
src/cli/args.ts - Interactive prompts
src/cli/prompts.ts - Conflict diffs
src/cli/diff.ts - CLI output
src/cli/logger.ts
Conversion pipeline
- Source fetching
src/core/fetcher.ts - Format detection
src/core/detector.ts - Conversion orchestration
src/core/pipeline.ts - Shared format model
src/core/ir.ts - Path rewriting
src/core/rewriter.ts - Safe file writing
src/core/writer.ts - Name matching
src/core/fuzzy.ts
Format support
- Adapter registry
src/adapters/registry.ts - Cursor adapter
src/adapters/cursor.ts - Other format adapters
src/adapters
Install management
- Install manifest
src/core/manifest.ts - Sync and removal
src/core/sync.ts - Installed content lint
src/core/lint.ts
Other components
- User
Connections 22
- User → CLI entry: runs commands
README.md - CLI entry → Argument parsing: parses options
src/index.ts - CLI entry → Interactive prompts: requests choices
src/index.ts - Interactive prompts → Conflict diffs: shows differences
src/cli/prompts.ts - CLI entry → CLI output: reports results
src/index.ts - CLI entry → Conversion orchestration: converts source
src/index.ts - Interactive prompts → Conversion orchestration: previews conversion
src/cli/prompts.ts - Conversion orchestration → Source fetching: fetches files
src/core/pipeline.ts - Conversion orchestration → Adapter registry: selects adapter
src/core/pipeline.ts - Conversion orchestration → Name matching: matches skills
src/core/pipeline.ts - Conversion orchestration → Path rewriting: rewrites paths
src/core/pipeline.ts - Conversion orchestration → Safe file writing: writes output
src/core/pipeline.ts - Conversion orchestration → Shared format model: uses model
src/core/pipeline.ts - Adapter registry → Cursor adapter: registers adapter
src/adapters/registry.ts - Adapter registry → Other format adapters: registers adapters
src/adapters/registry.ts - CLI entry → Format detection: detects formats
src/index.ts - Format detection → Adapter registry: queries adapters
src/core/detector.ts - CLI entry → Install manifest: tracks installs
src/index.ts - CLI entry → Sync and removal: manages installs
src/index.ts - CLI entry → Installed content lint: checks content
src/index.ts - Sync and removal → Install manifest: checks recorded files
src/core/sync.ts - CLI entry → Safe file writing: writes managed files
src/index.ts