New adapter

From lbb00/ai-rules-sync · View interactive version

New adapter is an AI agent skill from the GitHub repository lbb00/ai-rules-sync. Add support for a new AI tool with adapters, CLI, completion, and tests.

How to use this skill

Skill file

New Adapter

Instructions

Complete workflow for adding support for a new AI tool to AIS.

Prerequisites

Before starting, gather this information:

Steps

1. Create Adapter File

Create src/adapters/<tool>-<type>.ts:

import { createBaseAdapter } from './base.js';

export const myToolAdapter = createBaseAdapter({
  name: '<tool>-<type>',
  tool: '<tool>',
  subtype: '<type>',
  configPath: ['<tool>', '<type>'],
  defaultSourceDir: '.<tool>/<type>',
  targetDir: '.<tool>/<type>',
  mode: 'directory', // or 'file'
});
2. Register Adapter

In src/adapters/index.ts:

3. Update Project Config

In src/project-config.ts:

4. Wire CLI Commands

In src/cli/register.ts:

5. Update Completion

In src/completion.ts:

In src/completion/scripts.ts:

6. Add Tests

Create src/__tests__/<tool>-<type>.test.ts:

7. Update Documentation
8. Verify
# Build
npm run build

# Run tests
npm test

# Test manually
node dist/index.js <tool> <type> add <name>
node dist/index.js <tool> <type> remove <name>

Checklist

Examples

Request: Add support for a new AI tool with rules and skills

Result: Complete adapter implementation with tests passing

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.