npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

agent-slash-sync

v1.2.0

Published

Bidirectionally convert and sync Custom Slash Commands between Claude Code and Gemini CLI with intuitive visual feedback

Readme

agent-slash-sync

npm version License: MIT

Bidirectionally convert and sync Custom Slash Commands between Claude Code and Gemini CLI with intuitive visual feedback.

Installation

npm install -g agent-slash-sync

Quick Start

# Convert Claude Code → Gemini CLI
agent-slash-sync -c c2g
# or use short form
assync -c c2g

# Convert Gemini CLI → Claude Code
agent-slash-sync -c g2c
# or use short form
assync -c g2c

# Preview changes without applying
agent-slash-sync -d -c c2g
# or use short form
assync -d -c c2g

Screenshots

Usage Example

agent-slash-sync usage

Conversion Example

agent-slash-sync example

Features

  • Colorful Output - Clear visual feedback with color-coded status indicators
  • Fast Conversion - Efficiently sync commands between Claude Code and Gemini CLI
  • Bidirectional - Convert in both directions (Claude ↔ Gemini)
  • Safe by Default - Preview changes with dry-run mode before applying
  • Short Command - Use assync instead of agent-slash-sync
  • Selective Sync - Convert specific files or all commands at once

Options

| Option | Description | | --------------------------- | --------------------------------------------------------------- | | -c, --convert <direction> | Required. Conversion direction: c2g or g2c | | -f, --file <filename> | Convert specific file only (supports .md, .toml extensions) | | -d, --dry-run | Preview changes without applying them | | -v, --verbose | Show detailed debug information | | --claude-dir <path> | Claude base directory (default: ~/.claude) | | --gemini-dir <path> | Gemini base directory (default: ~/.gemini) | | --no-overwrite | Skip existing files in target directory | | --sync-delete | Delete orphaned files in target directory | | --remove-unsupported | Remove fields not supported by target format |

Examples

# Convert all commands with preview
assync -d -c c2g

# Convert specific file
assync -c g2c -f analyze-code

# Full sync with cleanup
assync -c c2g --sync-delete --remove-unsupported

# Use custom directories (base directories, /commands will be added automatically)
assync -c c2g --claude-dir ~/my-claude --gemini-dir ~/my-gemini

# Show verbose output for debugging
assync -c c2g -v

File Locations

  • Claude Code: ~/.claude/commands/*.md
  • Gemini CLI: ~/.gemini/commands/*.toml

Format Conversion

| Claude Code | Gemini CLI | Notes | | ----------------------------------------- | ------------- | -------------------------------------------- | | Markdown content | prompt | Main command content | | Frontmatter description | description | Command description | | $ARGUMENTS | {{args}} | Argument placeholder | | !command | !{command} | Shell command syntax | | allowed-tools, argument-hint, model | - | Claude-specific (use --remove-unsupported) |

Status Indicators

  • [A] Created (Green) - New files created in target directory
  • [M] Modified (Yellow) - Existing files updated
  • [D] Deleted (Red) - Files removed with --sync-delete
  • [-] Skipped (Gray) - Files skipped with --no-overwrite

Requirements

  • Node.js >= 18.0.0
  • npm or compatible package manager

Development

# Install dependencies
npm install

# Build the project
npm run build

# Run tests
npm test

# Run tests with coverage
npm run test:coverage

# Lint and format code
npm run lint
npm run format

# Type check
npm run lint:tsc

# Development mode (watch)
npm run dev

Publishing

# Check package contents
npm run release:dry

# Publish patch version (1.0.0 → 1.0.1)
npm run release:patch

# Publish minor version (1.0.0 → 1.1.0)
npm run release:minor

# Publish major version (1.0.0 → 2.0.0)
npm run release:major

License

MIT