Latest Threat Research:SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains.Details
Socket
Book a DemoInstallSign in
Socket

@ngxtm/skill-rule

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ngxtm/skill-rule

CLI to manage and sync coding rules across AI agents

latest
Source
npmnpm
Version
1.1.2
Version published
Maintainers
1
Created
Source

@ngxtm/skill-rule

CLI to sync coding rules across AI coding agents (Cursor, Claude Code, Copilot, etc.).

Install

npm install -g @ngxtm/skill-rule
# or
bun install -g @ngxtm/skill-rule

Usage

# Initialize in your project
sr init

# Sync rules from registry
sr sync

# Sync from local directory
sr sync --local /path/to/rules

# List available categories
sr list

# Show supported agents
sr agents

Config

sr init creates .rules.json:

{
  "registry": {
    "type": "github",
    "url": "https://github.com/ngxtm/skill-rule",
    "branch": "main"
  },
  "agents": ["cursor", "claude"],
  "categories": {
    "react": { "enabled": true },
    "typescript": { "enabled": true }
  }
}

Options

  • registry.type: github, local, or http
  • agents: Array of agent IDs
  • categories[id].enabled: Enable/disable category
  • categories[id].exclude: Skip specific rules
  • categories[id].include: Only sync these rules
  • overrides: Rules to skip (overridden locally)

Rule Format

Rules are markdown files with YAML frontmatter:

---
id: react-hooks
version: 1.0.0
triggers: [hooks, useEffect, useState]
---

# React Hooks

Content here...

Supported Agents

AgentRules Path
Cursor.cursor/rules/
Claude Code.claude/rules/
GitHub Copilot.github/rules/
OpenCode.opencode/rules/
Gemini.gemini/rules/

License

MIT

Keywords

ai

FAQs

Package last updated on 22 Jan 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts