Skip to content
Skills Library
Programming · Building & coding

add-platform

/add-platform

Add a new built-in AI chat Platform (e.g. Gemini, Mistral, Meta AI) to the extension, from its config entry and strategy to the Prompts button placement and its tests. Use when asked to add, support or integrate a new AI platform or site, or about extending platform support.

Licence
MIT
Last repository change
12.11.2026

Assessment and security

95/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content30 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
1
Scripts
0
HTML comments
0
URLs in SKILL.md
1
Deprecation

No signals detected. Repository changed on 12.11.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What it does and when to use it

Add a new built-in AI chat Platform (e.g. Gemini, Mistral, Meta AI) to the extension, from its config entry and strategy to the Prompts button placement and its tests. Use when asked to add, support or integrate a new AI platform or site, or about extending platform support.

Original author description

Add a new built-in AI chat Platform (e.g. Gemini, Mistral, Meta AI) to the extension, from its config entry and strategy to the Prompts button placement and its tests. Use when asked to add, support or integrate a new AI platform or site, or about extending platform support.

How it works

  1. Overview
  2. Prerequisites
  3. 10-Step Integration Workflow
  4. Common Pitfalls and Solutions
  5. Advanced Patterns
  6. Quick Reference Checklist
  7. Related Documentation
  8. Success Criteria
Original SKILL.md headings · 646 lines, 2,987 words
SKILL.md preview
---
name: add-platform
description: Add a new built-in AI chat Platform (e.g. Gemini, Mistral, Meta AI) to the extension, from its config entry and strategy to the Prompts button placement and its tests. Use when asked to add, support or integrate a new AI platform or site, or about extending platform support.
---

# Platform Integration Workflow

This skill guides you through adding support for new AI platforms (like Gemini, Mistral.ai, Meta AI, etc.) to the My Prompt Manager Chrome extension.

## Overview

Adding a new platform is a **10-step workflow** built on the centralized configuration in `src/config/platforms.ts`.

**Architecture Pattern:** Strategy Pattern + Centralized Configuration
- Each platform has a strategy class extending `PlatformStrategy`
- All platforms are registered in `src/config/platforms.ts`
- Platform detection, injection, and insertion are handled automatically

## Prerequisites

Before starting, ensure you have:
1. The target platform URL (e.g., `gemini.google.com`)
2. Browser DevTools open on the target platform
3. Understanding of the input element type (textarea vs contenteditable)
4. Preferred Tailwind classes for the platform badge styling (optional but recommended)

## 10-Step Integration Workflow

### Step 1: Inspect the Target Platform

**Action:** Open browser DevTools on the target platform and identify:

```javascript
// In browser console, test selectors:
document.querySelectorAll('textarea[placeholder*="message"]')
document.querySelectorAll('div[contenteditable="true"]')
document.querySelectorAll('[role="textbox"]')
```

**What to find:**
- CSS selector for the text input element
- The composer around the input element, and the elements of its Toolbar the icon can sit next to, by what they are for: a `data-testid`, a custom element, an ARIA label, a button `type`
- Input element type (textarea, contenteditable, or custom)

**Common patterns:**
- ChatGPT: `textarea[data-testid="chat-input"]`
- Claude: `div[contenteditable="true"][role="textbox"]`
- Perplexity: `textarea[placeholder*="Ask"]`

### Step 2: Add Platform Configuration

**File:** `src/config/platforms.ts`

**Action:** Add a new entry to the `SUPPORTED_PLATFORMS` object:

```typescript
export const SUPPORTED_PLATFORMS: Record<string, PlatformDefinition> = {
  // ... existing platforms ...

  yourplatform: {
    id: 'yourplatform',                          // Unique ID (lowercase, no spaces)
    hostname: 'your-ai-platform.com',            // Exact hostname
    displayName: 'Your AI Platform',             // Human-readable name
    priority: 70,                                 // 60-79 for new platforms
    defaultEnabled: true,                         // Include in fresh installs
    selectors: [                                  // CSS selectors (most specific first)
      'textarea[data-testid="chat-input"]',
      'div[contenteditable="true"][role="textbox"]',
      '[role="textbox"]'                         // Generic fallback
    ],
    iconPlacement: {                              // Where the icon goes (optional; see Step 9)
      composer: 'form',                           // Found with editor.closest(): bounds the search
      anchors: [                                  // Tried in order inside the composer; first found wins
        { find: 'button[data-testid="voice-button"]', relation: 'before' },
        { find: 'button[type="submit"]', relation: 'before' }
      ]
    },
    strategyClass: 'YourPlatformStrategy',        // Strategy class name
    hostnamePatterns: ['yourplatform', 'your-ai'], // Additional hostname patterns
    brandColors: {                                // Logo square when on: brand data, so arbitrary hex values
      enabled: 'bg-[#123456] text-[#ffffff] shadow-xs'
    }
  }
};
```

> ℹ️ If you omit `brandColors`, the logo square falls back to the accent (`bg-accent-subtle text-accent`). Switched off, every site shows the same disabled state (`bg-muted text-tertiary`, `src/constants/brandColors.ts`): give the logo component a `disabled` prop that draws it in `currentColor` (see `src/components/icons/SiteIcons.tsx`).

**Priority Guidelines:**
- 100: Claude
- 80-90: Major platforms (ChatGPT 90; Mistral, Gemini 85; Perplexity, Copilot 80)
- 60-79: Secondary platforms (new additions)
- < 60: Experimental/beta platforms

### Step 2.1: Add the Platform's row in Settings (Optional)

Add the platform's row to the AI sites group of Settings, so users can turn the integration on or off.

**When to do this:**
- You're adding a core platform (not just a custom site).
- You want the new platform visible in the Settings UI.

**File:** `src/components/SettingsView.tsx` (`siteConfigs`, in the order the group lists the Platforms)

**Actions:**
1. Add an icon component in `src/components/icons/SiteIcons.tsx` (or reuse an existing one).
2. Add the platform to `siteConfigs` with its name and icon. `src/components/settings/SupportedSitesList.tsx` renders one `SiteRow` (`src/components/settings/SiteRow.tsx`) per entry, with the domain under the name, its linked Platforms' included.
3. The row's logo takes `getBrandColors(hostname)`; adjust `brandColors` if the logo does not read on it.

**Tip:** The label for the platform name comes from `displayName` in `SUPPORTED_PLATFORMS`. Keep them in sync.

### Step 3: Create the Platform Strategy

**File:** `src/content/platforms/yourplatform-strategy.ts`

**Action:** Create a new strategy class:

```typescript
import { getPlatformById } from '../../config/platforms';
import type { InsertionResult } from '../types/index';
import type { UIElementFactory } from '../ui/element-factory';
import { PlatformStrategy } from './base-strategy';

export class YourPlatformStrategy extends PlatformStrategy {
  constructor(hostname?: string) {
    super('yourplatform', 70, {
      selectors: [
        'textarea[placeholder*="Enter your message"]',
        'div[contenteditable="true"][role="textbox"]'
      ],
      priority: 70
    }, hostname);
  }

  /**
   * Determines if this strategy can handle the element
   * Handles any element on your-ai-platform.com
   */
  canHandle(_element: HTMLElement): boolean {
    return this.hostname === getPlatformById('yourplatform')?.hostname;
  }

  /**
   * Inserts content where the caret of the input field is, in place of the text selected there
   * (CONTEXT.md, Insertion). The base strategy does it for both kinds of field: never set the
   * whole value or clear the field here, or the user loses the text around the caret.
   */
  insert(element: HTMLElement, content: string): Promise<InsertionResult> {
    try {
      // A <textarea> or an <input>: through the native value setter, with the page told
      if (element instanceof HTMLTextAreaElement || element instanceof HTMLInputElement) {
        return Promise.resolve(this.insertIntoTextControl(element, content)
          ? { success: true, method: 'yourplatform-textarea' }
          : { success: false, error: 'The input field did not keep the text' });
      }

      // A contenteditable editor: through the browser's editing command, as typing would
      if (element.isContentEditable || element.getAttribute('contenteditable') === 'true') {
        return Promise.resolve(this.insertEditableText(element, content, 'yourplatform'));
      }

      return Promise.resolve({ success: false, error: 'Unsupported element type' });
    } catch (error) {
      this._error('Insertion failed', error as Error);
      return Promise.resolve({ success: false, error: (error as Error).message });
    }
  }

  /**
   * Gets selectors for finding input elements
   */
  getSelectors(): string[] {
    return this.config?.selectors || [];
  }

  /**
   * Creates platform-specific icon using the UI factory
   */
  createIcon(uiFactory: UIElementFactory): HTMLElement | null {
    return uiFactory.createFloatingIcon(); // Use generic icon
    // OR: return uiFactory.createYourPlatformIcon(); // Custom icon
  }
}
```

**Reference Example:** See `src/content/platforms/perplexity-strategy.ts` for a complete implementation with multiple fallback methods.

### Step 4: Register the Strategy

**File:** `src/content/platforms/index.ts`

**Action:** Add export for your strategy:

```typescript
export { YourPlatformStrategy } from './yourplatform-strategy';
```

**File:** `src/content/platforms/platform-manager.ts`

**Action:** Import it and add it to `STRATEGY_CONSTRUCTORS`, under the `strategyClass` name you gave it in `platforms.ts`. The manager builds its registry from that map and the platform config, and adds `DefaultStrategy` as the fallback itself:

```typescript
import { YourPlatformStrategy } from './yourplatform-strategy';

const STRATEGY_CONSTRUCTORS: Record<string, new (hostname?: string) => PlatformStrategy> = {
  // ... existing strategies ...
  'YourPlatformStrategy': YourPlatformStrategy,
  'DefaultStrategy': DefaultStrategy
};
```

### Step 5: Update Manifest Permissions

**File:** `manifest.json`

**Action:** A built-in Platform is listed by origin in two places: add `https://your-ai-platform.com/*` to both `host_permissions` and the `matches` of the `content_scripts` entry. Without them the content script never runs on the Platform.

### Step 6: Create Unit Tests

**File:** `src/content/platforms/__tests__/yourplatform-strategy.test.ts`

**Action:** Create comprehensive tests:

```typescript
import { describe, it, expect, beforeEach } from 'vitest';
import { YourPlatformStrategy } from '../yourplatform-strategy';

describe('YourPlatformStrategy', () => {
  let strategy: YourPlatformStrategy;

  beforeEach(() => {
    strategy = new YourPlatformStrategy('your-ai-platform.com');
  });

  describe('canHandle', () => {
    it('returns true for your-ai-platform.com', () => {
      const element = document.createElement('textarea');
      expect(strategy.canHandle(element)).toBe(true);
    });

    it('returns false for other hostnames', () => {
      const otherStrategy = new YourPlatformStrategy('other-site.com');
      const element = document.createElement('textarea');
      expect(otherStrategy.canHandle(element)).toBe(false);
    });
  });

  describe('insert', () => {
    it('inserts content into textarea element', async () => {
      const textarea = document.createElement('textarea');
      document.body.appendChild(textarea);

      const result = await strategy.insert(textarea, 'Test content');

      expect(result.success).toBe(true);
      expect(textarea.value).toBe('Test content');
      expect(result.method).toBe('yourplatform-textarea');

      document.body.removeChild(textarea);
    });

    it('inserts content into contenteditable element', async () => {
      const div = document.createElement('div');
      div.contentEditable = 'true';
      div.setAttribute('role', 'textbox');
      document.body.appendChild(div);

      const result = await strategy.insert(div, 'Test content');

      expect(result.success).toBe(true);
      expect(div.textContent).toContain('Test content');

      document.body.removeChild(div);
    });

    it('returns error for unsupported elements', async () => {
      const span = document.createElement('span');
      const result = await strategy.insert(span, 'Test content');

      expect(result.success).toBe(false);
      expect(result.error).toBeDefined();
    });
  });

  describe('getSelectors', () => {
    it('returns configured selectors', () => {
      const selectors = strategy.getSelectors();
      expect(selectors).toBeInstanceOf(Array);
      expect(selectors.length).toBeGreaterThan(0);
    });
  });
});
```

### Step 7: Test Locally

**Action:** Build and load the extension:

```bash
# Build the extension
npm run build

# Load in Chrome:
# 1. Open chrome://extensions/
# 2. Enable Developer mode
# 3. Click "Load unpacked"
# 4. Select the dist/ folder
```

**Manual Testing Checklist:**
- [ ] Visit your-ai-platform.com
- [ ] Verify the prompt library icon appears
- [ ] Check icon positioning is correct
- [ ] Click the icon to open prompt selector
- [ ] Select a prompt from the library
- [ ] Verify content is inserted into the input field
- [ ] Confirm the platform recognizes the inserted content
- [ ] Test in both light and dark mode
- [ ] Check browser console for errors

**Debug Mode:**
```javascript
// Enable debug logging in browser console:
localStorage.setItem('prompt-library-debug', 'true');
// Then reload the page

// Check debug interface:
console.log(window.__promptLibraryDebug?.strategies);
console.log(window.__promptLibraryDebug?.activeStrategy);
console.log(window.__promptLibraryDebug?.foundElements);
```

### Step 8: Run Automated Tests

**Action:** Ensure all tests pass:

```bash
# Run unit tests
npm test

# Run specific test file
npm test -- yourplatform-strategy.test.ts

# Run with coverage
npm run test:coverage
```

Before moving on, `npm test && npm run lint && npm run lint:changed && npm run typecheck` passes (`npm run lint:fix` fixes what it can).

### Step 9: Place the Prompts button

The button that opens the Prompt selector is the same on every Platform: a pill with the extension's badge and the label "Prompts", built by the private `createPill()` of `src/content/ui/element-factory.ts` and styled by `src/content/utils/styles.ts`. It follows the extension's theme, not the Platform's. A Platform chooses where the button goes, never how it looks or what wraps it: do not copy the Platform's native button classes onto it, and add no icon or label of your own.

- **In the Platform's Toolbar (recommended for a built-in Platform).** Give the Platform an `iconPlacement` in `platforms.ts`: a `composer` selector, found with `editor.closest()`, and `anchors` tried in order inside it, each with a `relation` (`before`, `after`, `inside-start`, `inside-end`). The first anchor found wins; the icon gets `data-mpm-placement="toolbar"` and `data-mpm-anchor="<index>"`. Name anchors by what the elements are for (`data-testid`, custom elements, ARIA labels, `button[type="submit"]`, semantic class names such as `.input-buttons-wrapper-bottom` or Fluent's `.fai-ChatInput__actions`), never by Tailwind utility chains, hashed CSS-in-JS classes or SVG path data: the guard "Icon placement selectors" in `src/config/__tests__/platforms.test.ts` fails on those. Prefer anchors that do not depend on the language (test ids, custom elements) over ARIA labels, which follow the user's locale. If the Platform needs its own icon method in `UIElementFactory`, it returns `this.createPill('prompt-library-integrated-icon')` (see `createChatGPTIcon()`), with no wrapper. Keep the class `prompt-library-integrated-icon`: the injector and the e2e tests find the button by it.
- **Laid over the page.** `uiFactory.createFloatingIcon()` needs nothing else. Laid over the page, the button is its badge alone, 32px wide, because the place it takes was chosen for a 32px button.

When a Platform's bar has no room for the label, `fitPromptsPill()` shrinks the button to its badge on its own.

Save a sanitized copy of the Platform's live composer in `tests/fixtures/composers/`, named after the Platform id, as `tests/fixtures/composers/claude.html` is (strip user content and tokens), and add `'yourplatform'` to the `it.each` list of `src/content/core/__tests__/icon-placement-chains.test.ts`, which checks that the chain resolves its first anchor on that fixture.

Add a stand-in page for the Platform to `tests/e2e/fixtures/platform-pages.ts` (its input field and its action bar), so `tests/e2e/content/prompt-selector.spec.ts` and `tests/e2e/content/prompt-insertion.spec.ts` (the `//` trigger, the confirmation, Undo) run the whole flow on it. An Insertion goes where the caret is: add the Platform to `PLATFORMS` in `src/content/platforms/__tests__/caret-insertion.test.ts` and its stand-in page to `PLATFORM_FIXTURES`, which `tests/e2e/content/caret-insertion.spec.ts` runs on, to prove the text before and after the caret stays. Undo goes through `restore()` of the base strategy, which replaces the whole field; override it when the Platform's editor does not take `execCommand`, or takes it without putting the whole draft back (Perplexity's Lexical editor drops the line breaks, so `PerplexityStrategy.restore()` pastes the draft instead).

#### The Platform's icon in Settings (React component)

**File:** `src/components/icons/SiteIcons.tsx`

**Action:** Add a React icon component for the settings UI:

```typescript
export const YourPlatformIcon: React.FC<{ className?: string; disabled?: boolean }> = ({
  className = 'h-6 w-6',
  disabled = false
}) => {
  return (
    <svg className={className} viewBox="0 0 24 24" fill="none">
      {/* Your platform's SVG path */}
      <path
        d="M12 2L2 7v10c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V7l-10-5z"
        fill={disabled ? 'currentColor' : '#YOUR_BRAND_COLOR'}
      />
    </svg>
  );
};
```

### Step 10: Update Documentation

**File:** `docs/PLATFORM_INTEGRATION.md`

**Action:** Add your platform to the examples section:

```markdown
### Example: Your Platform

\`\`\`typescript
export class YourPlatformStrategy extends PlatformStrategy {
  constructor() {
    super('yourplatform', 70, {
      selectors: ['textarea[data-testid="input"]'],
      priority: 70
    });
  }

  canHandle(_element: HTMLElement): boolean {
    return this.hostname === 'your-ai-platform.com';
  }

  async insert(element: HTMLElement, content: string): Promise<InsertionResult> {
    // Implementation details...
  }
}
\`\`\`
```

**File:** `README.md`

**Action:** Add to the supported platforms list:

```markdown
- **Your Platform** - Full support for prompt injection
```

## Common Pitfalls and Solutions

### Pitfall 1: Button Doesn't Appear

**Symptoms:** Icon doesn't show up on the platform

**Solutions:**
1. Check `canHandle()` returns true for your domain
2. Verify selectors match actual DOM elements using DevTools
3. Ensure strategy is registered in `platform-manager.ts`
4. Check browser console for injection errors
5. Verify hostname in `platforms.ts` matches exactly

**Debug:**
```javascript
// In browser console:
document.querySelectorAll('your-selector-here')
window.__promptLibraryDebug?.strategies
```

### Pitfall 2: Button Appears in Wrong Location

**Symptoms:** Icon is visible but poorly positioned

**Solutions:**
1. Read `data-mpm-anchor` on the icon: `0` is the anchor the chain was written for; a higher index means the Platform's composer changed and a later anchor took over
2. Update the `iconPlacement` chain in `platforms.ts` (the one source, no strategy keeps a copy), then refresh the Platform's file in `tests/fixtures/composers/` from the live composer
3. When no anchor is found, the icon is anchored inside the editor's bottom-end corner (`src/content/core/anchored-overlay.ts`) and, with debug mode on (`localStorage.setItem('prompt-library-debug', 'true')`, then reload; warnings are silent otherwise), the console warns `No anchor of this Platform found in its composer, the icon is anchored on the editor instead`; when the Platform re-renders its Toolbar, `src/content/core/icon-placement.ts` places the icon again

**Example:**
```typescript
iconPlacement: {
  composer: 'fieldset, input-area-v2',
  anchors: [
    { find: 'speech-dictation-mic-button', relation: 'after' },        // Try first
    { find: '.input-buttons-wrapper-bottom', relation: 'inside-end' }, // Then this
    { find: '.trailing-actions-wrapper', relation: 'inside-end' }      // Last
  ]
}
```

### Pitfall 3: Content Doesn't Insert

**Symptoms:** Icon works, but prompt doesn't appear in input

**Solutions:**
1. Verify correct element type (textarea vs contenteditable)
2. Try multiple insertion methods (execCommand, textContent, value)
3. Add comprehensive event triggering
4. Wait for platform initialization (50-100ms delay)

**Pattern - Multiple Fallback Methods:**
```typescript
async insert(element: HTMLElement, content: string): Promise<InsertionResult> {
  // Method 1: execCommand
  const execResult = await this._tryExecCommand(element, content);
  if (execResult.success) return execResult;

  // Method 2: Direct assignment
  const directResult = this._tryDirectAssignment(element, content);
  if (directResult.success) return directResult;

  // Method 3: DOM manipulation
  return this._tryDOMManipulation(element, content);
}
```

### Pitfall 4: Platform Doesn't Recognize Content

**Symptoms:** Text appears but submit button stays disabled

**Solutions:**
1. Add platform-specific events (input, change, keyup)
2. Trigger composition events (compositionstart, compositionend)
3. Set focus properly before insertion
4. Check if platform uses React/Vue (may need special handling)

**Comprehensive Event Triggering:**
```typescript
private _triggerEvents(element: HTMLElement, content: string): void {
  // Primary input event
  element.dispatchEvent(new InputEvent('input', {
    bubbles: true,
    cancelable: true,
    inputType: 'insertText',
    data: content
  }));

  // Secondary events
  const events = ['change', 'keyup', 'compositionend', 'blur', 'focus'];
  events.forEach(eventType => {
    element.dispatchEvent(new Event(eventType, { bubbles: true }));
  });
}
```

### Pitfall 5: Tests Fail After Implementation

**Symptoms:** Manual testing works but automated tests fail

**Solutions:**
1. Ensure DOM elements are properly created in tests
2. Mock `getPlatformById()` if needed
3. Add elements to `document.body` before testing
4. Clean up DOM elements after each test

**Proper Test Setup:**
```typescript
describe('insert', () => {
  it('inserts into textarea', async () => {
    const textarea = document.createElement('textarea');
    document.body.appendChild(textarea); // Add to DOM

    const result = await strategy.insert(textarea, 'Test');

    expect(result.success).toBe(true);

    document.body.removeChild(textarea); // Clean up
  });
});
```

## Advanced Patterns

### Pattern 1: React-Based Platforms

For platforms using React, you may need to trigger React's internal event system:

```typescript
private _setReactValue(element: HTMLInputElement | HTMLTextAreaElement, value: string): void {
  const nativeInputValueSetter = Object.getOwnPropertyDescriptor(
    window.HTMLTextAreaElement.prototype,
    'value'
  )?.set;

  if (nativeInputValueSetter) {
    nativeInputValueSetter.call(element, value);
    element.dispatchEvent(new Event('input', { bubbles: true }));
  }
}
```

### Pattern 2: Shadow DOM Elements

For platforms using Shadow DOM:

```typescript
getSelectors(): string[] {
  // Check for shadow DOM
  const shadowHost = document.querySelector('your-shadow-host');
  if (shadowHost?.shadowRoot) {
    const shadowInput = shadowHost.shadowRoot.querySelector('textarea');
    if (shadowInput) {
      return []; // Handle separately
    }
  }
  return this.config?.selectors || [];
}
```

### Pattern 3: Dynamic Input Elements

For platforms that create inputs dynamically:

```typescript
async insert(element: HTMLElement, content: string): Promise<InsertionResult> {
  // Wait for element to be fully initialized
  await this._waitForReady(element);

  // Then proceed with insertion
  // ...
}

private async _waitForReady(element: HTMLElement): Promise<void> {
  return new Promise((resolve) => {
    if (element.isConnected && element.offsetParent !== null) {
      resolve();
    } else {
      const observer = new MutationObserver(() => {
        if (element.isConnected && element.offsetParent !== null) {
          observer.disconnect();
          resolve();
        }
      });
      observer.observe(document.body, { childList: true, subtree: true });
    }
  });
}
```

## Quick Reference Checklist

Use this checklist when adding a new platform:

- [ ] **Step 1:** Identified input element selector
- [ ] **Step 2:** Added platform to `src/config/platforms.ts`
- [ ] **Step 2.1:** Added the Platform's row in Settings (optional)
- [ ] **Step 3:** Created strategy class in `src/content/platforms/`
- [ ] **Step 4:** Registered strategy in `platform-manager.ts` and `index.ts`
- [ ] **Step 5:** Added the origin to `host_permissions` and `content_scripts` matches
- [ ] **Step 6:** Created unit tests
- [ ] **Step 7:** Tested manually in browser
- [ ] **Step 8:** `npm test && npm run lint && npm run lint:changed && npm run typecheck` passes
- [ ] **Step 9:** Placed the Prompts button: `iconPlacement` chain, composer fixture, id in `icon-placement-chains.test.ts`
- [ ] **Step 10:** Updated documentation

## Related Documentation

- **Architecture Deep Dive:** `docs/ARCHITECTURE.md`
- **Platform Integration Guide:** `docs/PLATFORM_INTEGRATION.md` (comprehensive examples)
- **Testing Guide:** `docs/TESTING.md`
- **Component Catalog:** `docs/COMPONENTS.md`

## Success Criteria

Your platform integration is complete when:

1. Icon appears on the target platform without errors
2. Icon is positioned correctly and doesn't interfere with UI
3. Clicking icon opens the prompt selector
4. Selected prompts insert correctly into the input field
5. Platform recognizes the inserted content (submit button enabled)
6. `npm test && npm run lint && npm run lint:changed && npm run typecheck` passes
7. Biome reports no warning in the files you changed
8. Works in both light and dark mode
9. No console errors or warnings
10. Code follows existing patterns and style

Versions

The database has no other skills named add-platform.

Database snapshot: 13.11.2026 · package version 33f6da59d10e (SHA-256 digest of the entire package)

Downloads in the last 30 days: 2 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 90add-entry
    Add or correct a Gearlist catalog entry. Use when asked to add a tool, MCP server, skill or platform to this repository, or to promote a row from stars-queue.json.
  • 100add-ci-platform
    Add a new OS platform to RediSearch CI. Use when adding a new distro version, OS, or container target to the build/test matrix.
  • 86add-model
    Add a Django model (in an existing app or a new one) with its migration, admin, form, views, templates and tests. Use when the user asks for a new kind of record, a new page that lists or edits records, or a new app.
  • 95add-command
    Add support for a new CLI command. Use when implementing a handler or adding to SIMPLE_SAFE.
  • 90add-platform-source
    Add, repair, or validate an OpenBiliClaw platform source across fetching, account signals, discovery, and user surfaces. Use for source-specific integration work and its acceptance; exclude unrelated UI, recommendation-algorithm, or release-only work.
  • 100add-extension-settings
    Add a settings page to your Command Palette extension. Use when asked to add settings, preferences, configuration options, toggles, text inputs, dropdowns, or user-customizable behavior. Covers ToggleSetting, TextSetting, ChoiceSetSetting, and persistence.

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.