AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified Unlicense Self-run

New Adapter

skill-lbb00-ai-rules-sync-new-adapter · by lbb00

Add support for a new AI tool with adapters, CLI, completion, and tests.

No reviews yet
0 installs
8 views
0.0% view→install

Install

$ agentstack add skill-lbb00-ai-rules-sync-new-adapter

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-lbb00-ai-rules-sync-new-adapter)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
4mo ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of New Adapter? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

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/-.ts:

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

export const myToolAdapter = createBaseAdapter({
  name: '-',
  tool: '',
  subtype: '',
  configPath: ['', ''],
  defaultSourceDir: './',
  targetDir: './',
  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__/-.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   add 
node dist/index.js   remove 

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

Examples

Request: Add support for a new AI tool with rules and skills Result: Complete adapter implementation with tests passing

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.