Zum Hauptinhalt springen
Echtzeit-Radar & Feeds
Alle RSS Feeds ➔
👥 Community & Social
•
IT NachrichtenSamsung Galaxy S26 FE review: false economy(24.09.2026 um 22:07 Uhr)
••••••••••
IT NachrichtenSamsung Galaxy S26 FE review: false economy(24.09.2026 um 22:07 Uhr)
•••••••••
Intelligence View
⚡ tsecurity.de Intelligence

rulesync: Published a tool to unify management of rules for Claude Code, Gemini CLI, and Cursor

This article is based on the following article I wrote in Japanese, with some additional content. https://dev.classmethod.jp/articles/rulesync/ I'm @dyoshikawa. A developer in Japan. I created a tool called rulesync that allows you to…

0
↗ Quelle (dev.to)
Reagiere als Erste:r — dein Feedback zählt!

This article is based on the following article I wrote in Japanese, with some additional content.



https://dev.classmethod.jp/articles/rulesync/



I'm @dyoshikawa. A developer in Japan.



I created a tool called rulesync that allows you to manage rule files for various AI coding tools from a single group of markdown files, so I'd like to introduce it.



https://github.com/dyoshikawa/rulesync



By creating .rulesync/*.md files, it generates files according to each tool's specifications.



Currently, it supports the following tools:




































Tool Name Generated Files
Claude Code
CLAUDE.md .claude/memories/*.md
Gemini CLI
GEMINI.md .gemini/memories/*.md
GitHub Copilot .github/instructions/*.instructions.md
Cursor .cursor/rules/*.mdc
Cline .clinerules/*.md
Roo Code .roo/rules/*.md


For Claude Code, since the location of files other than CLAUDE.md is arbitrary (referenced with @{path}), I decided to generate them in .claude/memories/*.md based on my judgment (Gemini CLI was just released so I'm not very familiar with it, but I made it have a similar structure).



https://docs.anthropic.com/ja/docs/claude-code/memory






Motivation



Various AI coding tools have emerged, each defining their own rule file specifications (and Gemini CLI just joined them).



Managing these files individually is quite tedious. You have to write rules in different locations and formats for each tool: .github/instructions/*.instructions.md, .cursor/rules/*.mdc, CLAUDE.md, GEMINI.md, etc.



Also, it's difficult to stick to just one tool. The evolution of AI tools is fast, and the tool considered to have the highest performance changes every few months. Furthermore, different team members may prefer different tools. This creates the need to manually "synchronize" rule files between tools every time rule content is changed.



So I thought "wouldn't it be convenient if we could automatically generate rule files for each tool from a single rule file?" and developed rulesync.



The concept is as follows:




  • By managing and generating rule files in bulk, you can freely choose AI coding tools.

  • By managing and generating rule files in bulk, you can develop using different AI coding tools in hybrid combinations.

  • Since the same rule content can be applied to all AI coding tools, you can maintain consistency in code quality and conventions regardless of which tool you use.


  • There is absolutely no lock-in to rulesync.


    • You can abandon rulesync anytime. The generated rule files (.github/instructions/, .cursor/rules/, .clinerules/, CLAUDE.md, etc.) will remain as they are, so you can just transition to manual management.











How to use rulesync






Getting Started



Since it's published as an npm package, you can start using it immediately with npx rulesync if you have Node.js installed.




# Generate sample rule files
npx rulesync init

# Or import existing rules to create `.rulesync/*.md`
# (Example with Cursor Project Rules)
npx rulesync import --cursor






Bulk generation of rule files and adding rulesync files can be done with the following commands:




# Generate rule files for all supported tools
npx rulesync generate

# Generate rule files for specific tools only (example with Cursor and Claude Code)
npx rulesync --cursor --claudecode

# Add rulesync rule files
npx rulesync add new-rule.md









How to write .rulesync/*.md



I designed it to write Markdown files with Frontmatter, similar to Cursor Project Rules.



Here's an example from the rulesync repository's .rulesync/overview.md:




---
root: true # Only one file can be designated as Root. Root files are always applied in principle (output as Cursor's `ruletype: always` or Claude Code's `CLAUDE.md`).
targets: ["*"] # Specify target tools for this file output as an array like `copilot`, `cursor`, `claudecode`. `*` targets all tools.
description: "rulesync project overview and architecture guide" # Description used by AI to determine whether to apply this rule.
globs: ["*"] # Specify file paths to apply rules using Glob. `*` targets all files. Example: `src/**/*.ts`
---

# rulesync Project Overview

rulesync is a unified AI configuration management CLI tool that supports multiple AI development tools (GitHub Copilot, Cursor, Cline, Claude Code, Roo Code).

## Core Architecture

...









Add generated files to gitignore



If you don't want to manage generated files with git, you can run the gitignore command to add various generation destination paths to the .gitignore file.




# Add generated files to .gitignore
npx rulesync gitignore









Import existing rule files to generate rulesync files



By running the import command, you can do the reverse of the generate command - convert existing rule files to .rulesync/*.md and import them.




# Import existing Cursor Project Rules to create `.rulesync/*.md`
npx rulesync import --cursor









Implementation used Claude Code



I used Claude Code for implementing rulesync. I didn't write a single line of code myself.



The development process was simple - just repeating the cycle of "communicate specifications" → "manually test functionality" → "provide feedback". I had Claude Code write all the test code too, achieving over 90% coverage.



Small-scale CLI tools like rulesync seem to be easy for AI to implement. Since the execution environment is self-contained locally and there's no complex integration with external systems, it behaves as expected just by communicating the specifications.



On the other hand, when I tried having Claude Code create a Rails application and deploy it to Cloud Run on another occasion, this required quite a bit of intervention from a human developer (myself) to work properly1. I've seen articles from others who had similar experiences.



https://numb86-tech.hatenablog.com/entry/2025/05/29/220514



When it comes to work that involves coordinating multiple systems across networks, the complexity and difficulty of problem isolation seem to jump up significantly for AI. When errors occur, it might be difficult to determine whether it's a local problem, network problem, or cloud-side configuration problem.






Summary



I published a tool called rulesync for using multiple AI coding tools across different platforms.



Considering how quickly AI tool trends change, I think having a mechanism that allows flexible switching without being locked into specific tools will continue to be useful. I hope this can help those who are troubled by managing rule files.



If you're interested, please give it a try. PRs and Issues are also welcome.









  1. The deployment itself was successful, but I couldn't get the health check to pass. ↩




CTI Threat Relationship Graph2 Knoten / 1 Relationen
CVE / Incident Software MITRE ATT&CK CWE Weakness IoC
SOC Incident Playbook: Vulnerability Remediation & Verification
Syntax validiert (0 Fehler)
title: Detect Exploitation - rulesync: Published a tool to unify management of rules for Claude Code, Gemini CLI, and Cursor
id: 8146de63-005f-4ca3-a320-6ee59c5af52d
status: experimental
description: Automatisch generierte SIEM-Erkennungsregel basierend auf CTI Intelligence
references:
  - https://tsecurity.de/
author: iShareStuff CTI Automated Detection Engine
date: 2026-09-24
logsource:
  category: network_connection
  product: any
detection:
  selection:
      CommandLine|contains:
        - 'exploit'
  condition: selection
falsepositives:
  - Legitime administrative Zugriffe oder Penetrationstests
level: high
tags:
  - attack.initial_access
Syntax validiert (0 Fehler)
rule CTI_Threat_Indicator {
    meta:
        author = "iShareStuff CTI Automated Detection Engine"
        date = "2026-09-24"
        description = "YARA Signature for "
    strings:
        $str = "rulesync: Published a tool to " ascii wide
    condition:
        any of them
}
Syntax validiert (0 Fehler)
index=security sourcetype IN ("cisco:asa", "pan:traffic", "zeek_conn", "suricata", "WinEventLog:Security")
("rulesync Published a tool to unify manag")
| stats count earliest(_time) as first_seen latest(_time) as last_seen by src_ip, dest_ip, dest_host, signature
| eval first_seen=strftime(first_seen, "%Y-%m-%d %H:%M:%S"), last_seen=strftime(last_seen, "%Y-%m-%d %H:%M:%S")
| sort - count
Syntax validiert (0 Fehler)
message: "*rulesync Published a tool to unify manag*"
Syntax validiert (0 Fehler)
CommonSecurityLog
| where Message has "rulesync Published a tool to unify manag"
| summarize EventCount = count(), FirstSeen = min(TimeGenerated), LastSeen = max(TimeGenerated) by SourceIP, DestinationIP, DestinationPort, Activity
| extend DetectionRule = "iShareStuff-CTI-Compiled"
| sort by EventCount desc
🎯
MITRE ATT&CK Matrix Navigator 14 Taktiken
Reconnaissance
-
Resource Development
-
Initial Access
Execution
Persistence
-
Privilege Escalation
Defense Evasion
Credential Access
-
Discovery
-
Lateral Movement
-
Collection
-
Command and Control
Exfiltration
-
Impact
tsecurity.de Cognitive Threat RAG
Fokus-Vektor:

Kognitive Analyse für identifizierte Bedrohung: Erhöhte Bedrohungslage im Bereich rulesync: Published a tool to unify mana.... Basierend auf 368k Vektor-Korrelationen werden sofortige Isolationsmaßnahmen für betroffene Endpunkte empfohlen.

🛡️ Angriffsfläche & Exposure

Netzwerk/Remote-Zugriff ohne Vorauthentifizierung möglich.

⚡ Empfohlene Sofortmaßnahmen
  • 1. Perimeter-Inspektion: Relevante Portfreigaben und exponierte Endpunkte unverzüglich scannen.
  • 2. Patch-Applikation: Hersteller-Hotfix einspielen oder betroffene Daemons in isolierte DMZ-Segmente überführen.
  • 3. Telemetrie & EDR-Alerts: Prozessaufrufe und Child-Processes auf anomale Shell-Spawns überwachen.
🔗 Semantisch verwandte Zero-Days MariaDB 11.7 VEC
Ähnliche Beiträge
🔍 Verwandte News

Auch interessante Nachrichten rulesync: Published a tool to unify management of rules for Claude Code, Gemini CLI, and Cursor

Thematisch verwandte Begriffe: rulesync, Published, tool, unify · 6 Treffer

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Zum Aktualisieren ziehen
ZERO-DAY CVE-2026-61823 | code16 Sharp is a Laravel-based framework for building content-managemen…
Advisory →
tsecurity.de Icon
Offline-Lesen, Eilmeldungen & 0ms Ladezeit

Installiere tsecurity.de direkt auf deinen Home-Bildschirm für das ultimative Vollbild-Magazinerlebnis ohne Browser-Leisten.

Nächster Beitrag
Themen-Radar & Intelligence Matrix
Echtzeit-Taxonomie nach Angriffsvektoren & Plattformen

tsecurity.de Live Threat Radar

🔴 LIVE RADAR
MONITORING
AKTIV
CVE-DATENBANK
LIVE
🔍
Community Radar & Live Chat
Sentinel Bot online • Live-Stream
Dein Cluster: Security Explorer
Match:
lädt…
Verbindung zum Community-Stream wird aufgebaut...
Bearbeitungsmodus — Senden überschreibt deine Nachricht
Community-Puls — was gerade passiert
lädt…
Aktivitäten deiner Analysten
lädt…
Neues Thema oder Eilmeldung einreichen

Reiche interessante Links, Zero-Days oder Debatten ein. Die Community entscheidet per Upvote über die Veröffentlichung.

Heiß diskutierte Einreichungen
📂 Keine gespeicherten Artikel vorhanden.
Zurück Ziehen Vor
Links: vorheriger Artikel • Rechts: nächster Artikel • unten: schließen
News NIS-2 Frühwarnung Tier-1 Intel TTP ⏱️ 3 Min vor 10 Min
Artikeldaten werden geladen...
↗ Original-Quelle