{"id":30350900,"url":"https://github.com/hatappo/agent-slash-sync","last_synced_at":"2025-08-18T22:10:24.791Z","repository":{"id":308452083,"uuid":"1032848486","full_name":"hatappo/agent-slash-sync","owner":"hatappo","description":"A CLI tool to convert and sync custom slash commands between Google Gemini and Anthropic Claude.","archived":false,"fork":false,"pushed_at":"2025-08-08T14:56:30.000Z","size":338,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-08-17T23:42:17.895Z","etag":null,"topics":["claude-code","cli","gemini-cli"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/agent-slash-sync","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hatappo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-08-05T23:38:37.000Z","updated_at":"2025-08-15T15:43:47.000Z","dependencies_parsed_at":"2025-08-06T02:40:34.891Z","dependency_job_id":"33aba2f0-2698-4b7e-a75d-9a63d89ad54d","html_url":"https://github.com/hatappo/agent-slash-sync","commit_stats":null,"previous_names":["hatappo/agent-slash-sync"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/hatappo/agent-slash-sync","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hatappo%2Fagent-slash-sync","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hatappo%2Fagent-slash-sync/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hatappo%2Fagent-slash-sync/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hatappo%2Fagent-slash-sync/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hatappo","download_url":"https://codeload.github.com/hatappo/agent-slash-sync/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hatappo%2Fagent-slash-sync/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271068208,"owners_count":24693651,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-18T02:00:08.743Z","response_time":89,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["claude-code","cli","gemini-cli"],"created_at":"2025-08-18T22:10:20.913Z","updated_at":"2025-08-18T22:10:24.764Z","avatar_url":"https://github.com/hatappo.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# agent-slash-sync\n\n[![npm version](https://badge.fury.io/js/agent-slash-sync.svg)](https://www.npmjs.com/package/agent-slash-sync)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n\nBidirectionally convert and sync Custom Slash Commands between Claude Code and Gemini CLI with intuitive visual feedback.\n\n## Installation\n\n```bash\nnpm install -g agent-slash-sync\n```\n\n## Quick Start\n\n```bash\n# Convert Claude Code → Gemini CLI\nagent-slash-sync -c c2g\n# or use short form\nassync -c c2g\n\n# Convert Gemini CLI → Claude Code\nagent-slash-sync -c g2c\n# or use short form\nassync -c g2c\n\n# Preview changes without applying\nagent-slash-sync -d -c c2g\n# or use short form\nassync -d -c c2g\n```\n\n## Screenshots\n\n### Usage Example\n![agent-slash-sync usage](docs/assync-usage.png)\n\n### Conversion Example\n![agent-slash-sync example](docs/assync-example.png)\n\n## Features\n\n- **Colorful Output** - Clear visual feedback with color-coded status indicators\n- **Fast Conversion** - Efficiently sync commands between Claude Code and Gemini CLI\n- **Bidirectional** - Convert in both directions (Claude ↔ Gemini)\n- **Safe by Default** - Preview changes with dry-run mode before applying\n- **Short Command** - Use `assync` instead of `agent-slash-sync`\n- **Selective Sync** - Convert specific files or all commands at once\n\n## Options\n\n| Option                      | Description                                                     |\n| --------------------------- | --------------------------------------------------------------- |\n| `-c, --convert \u003cdirection\u003e` | **Required.** Conversion direction: `c2g` or `g2c`              |\n| `-f, --file \u003cfilename\u003e`     | Convert specific file only (supports `.md`, `.toml` extensions) |\n| `-d, --dry-run`             | Preview changes without applying them                           |\n| `-v, --verbose`             | Show detailed debug information                                 |\n| `--claude-dir \u003cpath\u003e`       | Claude base directory (default: ~/.claude)                      |\n| `--gemini-dir \u003cpath\u003e`       | Gemini base directory (default: ~/.gemini)                      |\n| `--no-overwrite`            | Skip existing files in target directory                         |\n| `--sync-delete`             | Delete orphaned files in target directory                       |\n| `--remove-unsupported`      | Remove fields not supported by target format                    |\n\n## Examples\n\n```bash\n# Convert all commands with preview\nassync -d -c c2g\n\n# Convert specific file\nassync -c g2c -f analyze-code\n\n# Full sync with cleanup\nassync -c c2g --sync-delete --remove-unsupported\n\n# Use custom directories (base directories, /commands will be added automatically)\nassync -c c2g --claude-dir ~/my-claude --gemini-dir ~/my-gemini\n\n# Show verbose output for debugging\nassync -c c2g -v\n```\n\n## File Locations\n\n- **Claude Code**: `~/.claude/commands/*.md`\n- **Gemini CLI**: `~/.gemini/commands/*.toml`\n\n## Format Conversion\n\n| Claude Code                               | Gemini CLI    | Notes                                        |\n| ----------------------------------------- | ------------- | -------------------------------------------- |\n| Markdown content                          | `prompt`      | Main command content                         |\n| Frontmatter `description`                 | `description` | Command description                          |\n| `$ARGUMENTS`                              | `{{args}}`    | Argument placeholder                         |\n| `!command`                                | `!{command}`  | Shell command syntax                         |\n| `allowed-tools`, `argument-hint`, `model` | -             | Claude-specific (use `--remove-unsupported`) |\n\n## Status Indicators\n\n- `[A]` Created (Green) - New files created in target directory\n- `[M]` Modified (Yellow) - Existing files updated\n- `[D]` Deleted (Red) - Files removed with `--sync-delete`\n- `[-]` Skipped (Gray) - Files skipped with `--no-overwrite`\n\n## Requirements\n\n- Node.js \u003e= 18.0.0\n- npm or compatible package manager\n\n## Development\n\n```bash\n# Install dependencies\nnpm install\n\n# Build the project\nnpm run build\n\n# Run tests\nnpm test\n\n# Run tests with coverage\nnpm run test:coverage\n\n# Lint and format code\nnpm run lint\nnpm run format\n\n# Type check\nnpm run lint:tsc\n\n# Development mode (watch)\nnpm run dev\n```\n\n### Publishing\n\n```bash\n# Check package contents\nnpm run release:dry\n\n# Publish patch version (1.0.0 → 1.0.1)\nnpm run release:patch\n\n# Publish minor version (1.0.0 → 1.1.0)\nnpm run release:minor\n\n# Publish major version (1.0.0 → 2.0.0)\nnpm run release:major\n```\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhatappo%2Fagent-slash-sync","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhatappo%2Fagent-slash-sync","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhatappo%2Fagent-slash-sync/lists"}