🚀 DAY 3 OF LAUNCH WEEK:Announcing Bun and vlt Support in Socket.Learn more →
Socket
Book a DemoInstallSign in
Socket

@clipboard-health/ai-rules

Package Overview
Dependencies
Maintainers
3
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@clipboard-health/ai-rules

Pre-built AI agent rules for consistent coding standards.

latest
Source
npmnpm
Version
1.2.24
Version published
Maintainers
3
Created
Source

@clipboard-health/ai-rules

Pre-built AI agent rules for consistent coding standards.

Table of contents

  • @clipboard-health/ai-rules

Install

npm install --save-dev @clipboard-health/ai-rules

Usage

Quick Start

  • Choose the profile that matches your project type:

    ProfileIncludesUse For
    commoncommonTypeScript libraries, generic projects
    frontendcommon + frontendReact apps, web apps
    backendcommon + backendNestJS services, APIs
    fullstackcommon + frontend + backendMonorepos, fullstack apps

    Rule categories:

    • common: TypeScript, testing, code style, error handling, key conventions
    • frontend: React patterns, hooks, performance, styling, data fetching, custom hooks
    • backend: NestJS APIs, three-tier architecture, controllers, services
  • Add it to your package.json:

    {
      "scripts": {
        "sync-ai-rules": "node ./node_modules/@clipboard-health/ai-rules/scripts/sync.js [PROFILE_NAME]",
        "postinstall": "npm run sync-ai-rules"
      }
    }
    
  • Run:

    npm install  # Runs postinstall automatically
    
  • Commit the generated files:

    git add .
    git commit -m "feat: add AI coding rules"
    
  • Bonus: For repo-specific rules, create an OVERLAY.md file. The sync script appends its contents in each generated file to load the contents into AI agent context.

Updating Rules

When we release new rules or improvements:

# Update the package
npm update @clipboard-health/ai-rules

# The postinstall script automatically copies the latest files
npm install

# Review the changes
git diff .

# Commit the updates
git add .
git commit -m "chore: update AI coding rules"

Local development commands

See package.json scripts for a list of commands.

Keywords

ai

FAQs

Package last updated on 20 Nov 2025

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