new-adapter

new-adapter is a skill for Claude Code from lbb00/ai-rules-sync. It costs 21 tokens per session (626 once invoked), scanned A, original, Unlicense.

A step-by-step guide for adding support for a new AI coding tool to AIS. An adapter is a small translation layer that maps one tool's configuration files and commands into AIS's format.

In plain words
What is it for?
Use it to collect tool details, create and register an adapter, update project settings, connect CLI commands, and add the required tests.
Why use it?
It reduces the chance of forgetting registration, configuration, command-line completion, or tests when adding an integration.

Skill for Claude Code

Written for Claude Code: installed under .claude/. Also seen: mentions CLAUDE.md.

Not installable on its own: it runs a file from its repository that does not travel with it. Clone the repository, or install whatever ships that file. The line is node dist/index.js <tool> <type> add <name>.

Install

Getting it into your agent

There is no command for this one: it runs only inside a plugin, and the catalogue could not identify which plugin ships it. The source is linked below.

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for new-adapter

README.md
[![agentmods](https://agentmods.dev/badge/skills/lbb00/ai-rules-sync/new-adapter.svg)](https://agentmods.dev/skills/lbb00/ai-rules-sync/new-adapter)
Your own site
<a href="https://agentmods.dev/skills/lbb00/ai-rules-sync/new-adapter"><img src="https://agentmods.dev/badge/skills/lbb00/ai-rules-sync/new-adapter.svg" alt="Measured on agentmods" height="20"></a>
Per session 21 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 626 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00021 $0.00626
Opus 5 $0.00010 $0.00313
Sonnet 5 $0.00004 $0.00125
Haiku 4.5 $0.00002 $0.00063

Measured 6d ago against content hash 66e3a8a4bc72, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

new-adapter scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 6d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/skills/new-adapter/SKILL.md · 111 lines

How it starts

The opening of the file, as written. The whole thing — 111 lines — stays where its author put it; the contents beside it link to each section on GitHub.

New Adapter

Instructions

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

Prerequisites

Before starting, gather this information:

  • Tool name (e.g., "windsurf", "mcp")
  • Rule/config types supported (e.g., rules, commands, skills)
  • Default source directory (e.g., .windsurf/rules/)
  • Target directory (usually same as source)
  • File mode: file or directory

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:

  • Import the new adapter
  • Register in DefaultAdapterRegistry constructor
3. Update Project Config

In src/project-config.ts:

  • Add tool section to ProjectConfig interface
  • Add tool to SourceDirConfig interface if needed
4. Wire CLI Commands

In src/cli/register.ts:

  • Add tool subcommand group
  • Register add/remove/install/import commands
5. Update Completion

In src/completion.ts:

  • Add tool to completion types
  • Add subtype completions

In src/completion/scripts.ts:

  • Update bash/zsh/fish completion scripts
6. Add Tests

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

  • Test adapter properties
  • Test add/remove operations
  • Test config path resolution
7. Update Documentation
  • README.md: Add to supported sync types table
  • README_ZH.md: Sync changes (use /sync-readme)
  • CLAUDE.md: Update if architectural changes
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

  • Adapter file created
  • Adapter registered
  • ProjectConfig updated
  • CLI commands wired
  • Completion updated
  • Tests written and passing
  • README.md updated
  • README_ZH.md synced
  • Manual testing complete

Read the full file on GitHub · 111 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 6d ago First seen · 111 lines · 21 tokens per session scan A 66e3a8a4bc72

Subscribe to this mod's changes

new-adapter is a skill published in the GitHub repository lbb00/ai-rules-sync (37 stars, last pushed 16d ago), licensed Unlicense. It adds 21 tokens to every session and 626 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

authoring-skills-and-rules

Author Skills (SKILL.md) and rules/instructions across Claude Code, Cursor, OpenCode, Codex, and GitHub Copilot. Covers frontmatter, file layout, activation model, cross-platform mirroring, and the universal craft: progressive disclosure, trigger-rich descriptions (context pointers), leading words, token budget…

afaraha8403/balakit · 132 tokens

karpathy-guidelines

Tool-agnostic behavioral guidelines for AI coding assistants. Use when writing, reviewing, debugging, or refactoring code to reduce overengineering, surface ambiguity, make surgical changes, and define verifiable success criteria.

Vincent-A-Yang/karpathy-skills-anycoding · 47 tokens

spec-driven

Structured planning pipeline with 4 adaptive phases (Specify, Design, Tasks, Execute) and persistent knowledge accumulation for development teams. Auto-sizes depth by complexity from quick fixes to multi-component features. Commands: /explore (understand problem + map context), /plan (write spec → design → tasks)…

90sRehem/agent-skills · 241 tokens

skill-memory

Use skill-memory to download, view and edit agent skills in memory. TRIGGER by 'skill', 'memory', 'learn'.

memodb-io/skill-memory · 29 tokens

valyu-best-practices

Complete Valyu API toolkit for AI agents. Use this skill when asked to perform real-time search across web, academic, medical, transportation, financial sources, content extraction from URLs, AI-powered answers with citations, or comprehensive deep research reports.

valyuAI/skills · 55 tokens

idea-refine

Refines raw ideas into sharp, actionable concepts through structured divergent and convergent thinking. Use when an idea is still vague, when you need to stress-test assumptions before committing to a plan, or when you want to expand options before converging on one. Triggers on "ideate", "refine this idea", or…

addyosmani/agent-skills · 75 tokens