{"id":35240207,"url":"https://github.com/upamune/airulesync","last_synced_at":"2026-03-17T22:04:40.302Z","repository":{"id":282567464,"uuid":"949001930","full_name":"upamune/airulesync","owner":"upamune","description":"Synchronize AI coding tool rule files across directories with automatic path adjustments. Perfect for managing consistent AI coding rules in monorepos and multi-project environments.","archived":false,"fork":false,"pushed_at":"2025-04-05T10:03:22.000Z","size":55,"stargazers_count":8,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-24T06:38:05.186Z","etag":null,"topics":["ai","cline","cursor","go","golang","roocode"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/upamune.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","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}},"created_at":"2025-03-15T13:03:58.000Z","updated_at":"2025-07-17T09:14:19.000Z","dependencies_parsed_at":"2025-03-15T14:20:45.340Z","dependency_job_id":"e6b47b58-ccc2-466b-a20a-bc207f8fa0aa","html_url":"https://github.com/upamune/airulesync","commit_stats":null,"previous_names":["upamune/airulesync"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/upamune/airulesync","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/upamune%2Fairulesync","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/upamune%2Fairulesync/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/upamune%2Fairulesync/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/upamune%2Fairulesync/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/upamune","download_url":"https://codeload.github.com/upamune/airulesync/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/upamune%2Fairulesync/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30633240,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-17T17:32:55.572Z","status":"ssl_error","status_checked_at":"2026-03-17T17:32:38.732Z","response_time":56,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["ai","cline","cursor","go","golang","roocode"],"created_at":"2025-12-30T04:58:09.182Z","updated_at":"2026-03-17T22:04:40.295Z","avatar_url":"https://github.com/upamune.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🔄 aisyncrule\n\n[![Go Report Card](https://goreportcard.com/badge/github.com/upamune/airulesync)](https://goreportcard.com/report/github.com/upamune/airulesync)\n[![GitHub Release](https://img.shields.io/github/v/release/upamune/airulesync)](https://github.com/upamune/airulesync/releases)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n\nSynchronize AI coding tool rule files across directories with path adjustments.\n\n## 🌟 Features\n\n- ✅ Sync AI tool rule files between any directories (parent-to-child, child-to-parent, siblings, or cross-repository)\n- ✅ Automatically adjust relative paths in rule files\n- ✅ Flexible configuration with YAML\n- ✅ Auto-detection of rule files\n- ✅ Dry-run simulation mode\n\n## 🚀 Installation\n\n### Using Go\n\n```bash\ngo install github.com/upamune/airulesync@latest\n```\n\n### Using Homebrew\n\n```bash\nbrew install upamune/tap/airulesync\n```\n\n### Binary Releases\n\nDownload the appropriate binary for your platform from the [releases page](https://github.com/upamune/airulesync/releases).\n\n## 📖 Usage\n\n### Quick Start\n\n```bash\n# Auto-generate a config file\nairulesync init .\n\n# Edit .airulesync.yaml if needed\n\n# Run a dry-run simulation\nairulesync sync --dry-run\n\n# Perform the actual synchronization\nairulesync sync\n```\n\n### Commands\n\n- `airulesync sync` - Synchronizes rule files according to configuration\n- `airulesync init [dir]` - Scans directory and generates a configuration file\n- `airulesync version` - Displays version information\n- `airulesync help` - Displays help information\n\n### Flags\n\n#### Global Flags\n- `--config, -c` - Path to config file (default: `.airulesync.yaml`)\n- `--verbose, -v` - Enable verbose output\n- `--help, -h` - Display help information\n\n#### Sync Command Flags\n- `--dry-run, -d` - Simulate execution without applying changes\n\n## ⚙️ Configuration\n\nairulesync uses a YAML configuration file to define source and target directories, files to sync, and sync options. The configuration file includes helpful header comments for editor integration.\n\n### Example Configuration\n\n```yaml\n# yaml-language-server: $schema=https://raw.githubusercontent.com/upamune/airulesync/refs/heads/main/schema.json\n# vim: set ts=2 sw=2 tw=0 fo=cnqoj\n\n# Source directories containing rule files to sync\nsource_dirs:\n  - path: \"./src/main-project\"\n    files:\n      - \".clinerules\"\n      - pattern: \".cursor/rules/**/*.mdc\"\n        adjust_paths: true\n      - pattern: \".roomodes\"\n        adjust_paths: false\n    ignore_files:\n      - \".cursor/rules/private/*.mdc\"\n\n# Target directories to sync to\ntarget_dirs:\n  - path: \"./src/sub-project-a\"\n  - path: \"./src/sub-project-b\"\n  - path: \"../other-repo/src/component\"\n    external: true\n```\n\n### Configuration Reference\n\n#### Source Directories\n\n- `path`: Directory path containing rule files to sync\n- `overwrite`: Whether to overwrite existing files (default: true)\n- `files`: List of files to synchronize\n  - Simple format: `\".clinerules\"` (uses default settings)\n  - Detailed format:\n    - `pattern`: File pattern (supports glob patterns)\n    - `adjust_paths`: Whether to adjust relative paths in file (default: true)\n    - `overwrite`: Whether to overwrite existing files (default: true)\n- `ignore_files`: List of files to ignore (supports glob patterns)\n\n#### Target Directories\n\n- `path`: Directory path to sync files to\n- `external`: Flag for targets outside the current repository (optional)\n- `ignore_files`: List of files to ignore (supports glob patterns)\n\n## 📝 Path Adjustment\n\nairulesync handles path adjustments based on the relationship between source and target directories:\n\n- **Parent to Child**: Adjusts paths for use in subdirectories\n- **Child to Parent**: Adjusts paths for use in parent directories \n- **Sibling to Sibling**: Computes correct relative paths between siblings\n- **Cross-Repository**: Handles external repository targets with appropriate warnings\n\n### Path Detection Patterns\n\nairulesync detects and adjusts various path formats:\n\n- Import/require statements in various languages\n- JSON/YAML path references\n- File path references in configuration files\n- Markdown links and references\n- HTML href and src attributes\n- General file paths with common extensions\n\n### Development Commands\n\nFor developers contributing to the project:\n\n- `make schema` - Generates the JSON Schema for configuration validation\n\n## 🤝 Contributing\n\nContributions are welcome! Please feel free to submit a Pull Request.\n\n## 📜 License\n\nThis project is licensed under the MIT License - see the LICENSE file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fupamune%2Fairulesync","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fupamune%2Fairulesync","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fupamune%2Fairulesync/lists"}