Works with the AI Agents you already use

    Claude CodeClaude CodeCursorCursorCodex CLICodex CLIDeepSeekDeepSeekMuseMuse+22 more

    Multi-Account Browser Lock: Stop Wrong-Channel Posts

    1

    Maintain strict account isolation and prevent cross-posting errors using profile-per-account management.

    $15

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    Security scanned

    Multi-Account Browser Lock: Stop Wrong-Channel Posts

    Example session with this skill installed

    I have three accounts on the same platform and my agent keeps mixing them up. Set up a profile system so each account stays separate.

    • Read your context and instructions
    • Compiled the multi-account browser lock

    I have mapped the required browser profiles and verified the authentication methods for each account. I found that the Support account is currently linked to a shared Google account, which carries a lockout risk if used across multiple profiles.

    Account Profile Map & Audit

    Account HandleBrowser Profile NameSign-in MethodStatusAction Required
    @Company_Mktgtwitter-mktgEmail + PasswordVerifiedNone
    @Company_Supporttwitter-supportOAuth (Google)High RiskConvert to Email/Pass
    @Company_DevReltwitter-devrelEmail + PasswordVerifiedNone

    Account Conversion Plan: @Company_Support

    1. Launch Profile: Open twitter-support browser profile.
    2. Set Credentials: Navigate to Account Settings > Password. Set a unique standalone password.
    3. Verification: Log out of the Google session. Log in using the new standalone email and password.
    4. Unlink: Once the standalone login is confirmed, remove the Google OAuth link.

    Next steps

    1. Create the twitter-support and twitter-devrel profiles in your browser.
    2. Provide the password for @Company_Mktg so I can perform the initial verify-by-re-login check.
    3. Confirm when you are ready to receive the 2FA code for the DevRel account transition.

    Connects securely to your tools. The creator never sees your data.

    About this skill

    Stop Browser Automation From Uploading to the Wrong Channel or Mixing Session Cookies

    When you manage multiple YouTube channels, TikTok accounts, or client studios, one mismatched browser profile means publishing a video to the wrong brand or cross-contaminating session cookies. This 3-layer skill enforces a strict Bind -> Verify -> Act pre-launch gate that detects shared or nested user_data_dir paths, active browser lock files, disallowed domains, and target_channel vs. active_profile_id mismatches — aborting with exit code 2 before the browser ever opens.

    Pure Python 3 standard library (pathlib, json, hashlib, urllib.parse, argparse) — zero external dependencies, ready to test in under 60 seconds.

    Profile Isolation Architecture

    +-----------------------------------------------------------------------------+
    |                MULTI-ACCOUNT BROWSER PROFILE ISOLATION GATE                 |
    +-----------------------------------------------------------------------------+
    |  [launch_task.json]                      [profile_registry.json]            |
    |   - active_profile_id: "Profile_A"        - Profile_A <-> Channel_A         |
    |   - target_channel   : "Channel_A"          dir: ./profiles/profile_a_tech  |
    |   - target_url       : studio.youtube.com   domains: studio.youtube.com     |
    |                                           - Profile_B <-> Channel_B         |
    |                   \                         dir: ./profiles/profile_b_fin   |
    |                    \                      - Profile_C <-> Channel_C         |
    |                     v                                                       |
    |          +-------------------------------------------------------+          |
    |          |           profile_isolation_gate.py (stdlib)          |          |
    |          |  1. Registry Uniqueness: 0 duplicate/nested dirs      |          |
    |          |  2. Lock-File Scan     : 0 active SingletonLock files |          |
    |          |  3. Channel Binding    : active_profile == target     |          |
    |          |  4. Domain Allowlist   : host in allowed_domains      |          |
    |          +-------------------------------------------------------+          |
    |                     |                                                       |
    |            [PASS: exit 0]                        [ABORTED: exit 2]          |
    |                     v                                     v                 |
    |     Launch isolated browser using        HARD STOP BEFORE LAUNCH            |
    |     --user-data-dir=profile_a_tech       - Wrong channel?  BLOCKED          |
    |     SHA-256 binding fingerprint          - Shared dir?     BLOCKED          |
    |                                          - Active lock?    BLOCKED          |
    |                                          - Bad domain?     BLOCKED          |
    |                                                                             |
    |  ISOLATED STORAGE LAYOUT (ZERO SHARED COOKIES / ZERO SHARED SESSIONS)       |
    |   profiles/                                                                 |
    |     |-- profile_a_tech/     <-- ONLY Channel_A cookies, tokens, cache       |
    |     |-- profile_b_finance/  <-- ONLY Channel_B cookies, tokens, cache       |
    |     +-- profile_c_history/  <-- ONLY Channel_C cookies, tokens, cache       |
    +-----------------------------------------------------------------------------+
    

    What's Inside

    • Profile Isolation SOP (SKILL.md): Enforces strict 1-profile-per-account separation (Bind -> Verify -> Act) and mandatory target verification before any browser automation or studio upload opens.
    • Channel-to-Profile Registry & Task Contracts (schemas/ + examples/):
      • schemas/profile_registry.schema.json and schemas/launch_task.schema.json (JSON Schema Draft 2020-12).
      • examples/demo_profiles.json (3 isolated channels with distinct user_data_dir paths, allowed domains, and channel IDs).
      • examples/demo_profiles_collision.json (FAIL fixture with 2 accounts sharing the same user_data_dir).
      • examples/demo_task_mismatch.json (FAIL fixture targeting Channel_B while active_profile_id is Profile_A).
      • examples/demo_task_pass.json (PASS fixture matching Channel_A + Profile_A + allowed upload domain).
    • Pre-Launch Isolation Gate (scripts/profile_isolation_gate.py): Zero-dependency Python 3 stdlib checker that catches duplicate/nested profile paths, active browser lock files (SingletonLock, parent.lock, etc.), disallowed domains, and channel mismatches — aborting with exit 2 before a wrong-account action runs, and supporting --json output.
    • Quick-Start & Proof Pack: Real terminal outputs of caught collisions, channel mismatches, and verified launches below.

    Who This Is For & Prerequisites

    Best fit for:

    • Multi-channel YouTube/TikTok creators and agencies automating uploads or studio workflows across separate brand accounts.
    • Developers running Playwright, Chromium, or browser-use agents who need deterministic pre-launch account isolation checks.

    Prerequisites:

    • Python 3.10+ (standard library only, works on Windows, macOS, and Linux).
    • Zero third-party packages required.

    60-Second Quick-Start

    Run directly from the skill folder:

    # 1. Shared user_data_dir collision across 2 accounts -> ABORTED (exit 2)
    python scripts/profile_isolation_gate.py --profiles examples/demo_profiles_collision.json --task examples/demo_task_pass.json
    
    # 2. Target channel mismatch (Channel_B vs Profile_A) -> ABORTED (exit 2)
    python scripts/profile_isolation_gate.py --profiles examples/demo_profiles.json --task examples/demo_task_mismatch.json
    
    # 3. Verified matching channel, profile & allowed upload domain -> PASS (exit 0)
    python scripts/profile_isolation_gate.py --profiles examples/demo_profiles.json --task examples/demo_task_pass.json
    

    Real Terminal Proof

    1. ABORTED (exit 2) — Shared user_data_dir Collision Caught

    $ python scripts/profile_isolation_gate.py --profiles examples/demo_profiles_collision.json --task examples/demo_task_pass.json
    === MULTI-ACCOUNT BROWSER PROFILE ISOLATION GATE ===
    Check (registry_uniqueness): PASS
    Check (directory_isolation): FAIL
    Check (lock_file_check    ): PENDING
    Check (channel_binding    ): PENDING
    Check (domain_allowlist   ): PENDING
    --------------------------------------------------------------------
    [FAIL] Directory collision (identical): 'Profile_A' (Channel_A) and 'Profile_B' (Channel_B) collide on the same user_data_dir 'shared_studio_profile'
    --------------------------------------------------------------------
    [ABORTED] Browser launch blocked (exit 2) -- 1 isolation violation(s).
    EXIT=2
    

    2. ABORTED (exit 2) — Wrong-Channel Upload Mismatch Caught Before Launch

    $ python scripts/profile_isolation_gate.py --profiles examples/demo_profiles.json --task examples/demo_task_mismatch.json
    === MULTI-ACCOUNT BROWSER PROFILE ISOLATION GATE ===
    Check (registry_uniqueness): PASS
    Check (directory_isolation): PASS
    Check (lock_file_check    ): PASS
    Check (channel_binding    ): FAIL
    Check (domain_allowlist   ): PENDING
    --------------------------------------------------------------------
    [FAIL] Target 'Channel_B' does not match active profile 'Profile_A' (bound to 'Channel_A')
    --------------------------------------------------------------------
    [ABORTED] Browser launch blocked (exit 2) -- 1 isolation violation(s).
    EXIT=2
    

    3. PASS (exit 0) — Isolated Profile, Channel & Allowed Domain Verified

    $ python scripts/profile_isolation_gate.py --profiles examples/demo_profiles.json --task examples/demo_task_pass.json
    === MULTI-ACCOUNT BROWSER PROFILE ISOLATION GATE ===
    Check (registry_uniqueness): PASS
    Check (directory_isolation): PASS
    Check (lock_file_check    ): PASS
    Check (channel_binding    ): PASS
    Check (domain_allowlist   ): PASS
    --------------------------------------------------------------------
    Task       : upload_ep24_tech (upload_video)
    Binding    : Profile_A <-> Channel_A (Apex Tech Breakdowns)
    Target Host: studio.youtube.com (allowed)
    Fingerprint: e0f6fd84c69f02b158513224edf2213699ed4855f8d185af2fdd039efe2e26fe
    --------------------------------------------------------------------
    [PASS] Profile isolation verified (exit 0) -- safe to launch browser.
    EXIT=0
    

    MCP Search Keywords

    multi-account browser profiles, browser profile isolation, stop wrong-channel posts, user_data_dir collision check, singletonlock detector, channel profile binding, browser automation preflight, domain allowlist gate, youtube studio upload guard, python stdlib, zero dependencies, json schema, claude code skill, cursor skill, codex cli

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Agents & Orchestration.

    Requires manual browser profile creation. Does not bypass 2FA; requires user availability for verification codes within a 2-minute window.

    How to use

    1. 1

      Connect your agent to the Agensi MCP

      Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup

    2. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 3

      Ask for what you need

      Your agent loads this skill and uses it on your task. It always asks before buying a skill.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill goes through the trust checks below.

    Security scanned

    Checked by our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    Money-back guarantee

    Doesn't do what its page promises? You get your money back.

    Trust & safety

    Security scan

    Security scan passed today

    Software
    Python

    Permissions

    Terminal / Shell
    Browser
    Read Files
    Write Files
    Network Access
    Listed2 days ago
    Updatedtoday

    What's inside

    Frequently Asked Questions

    This skill eliminates the risk of cross-account contamination by enforcing a 'one-profile-per-handle' rule and a strict re-login verification step that standard AI prompts often ignore.

    The skill is framework-agnostic and works with any AI agent or automation tool that supports persistent browser contexts, such as Playwright, Puppeteer, or Selenium.

    No, the skill provides the logic and framework for managing profiles, but you must manually create the initial browser profiles and be present to handle the initial 2FA or password entry for security purposes.

    You will receive the operational logic, mapping protocols, and verification workflows needed to integrate multi-account isolation into your existing AI agent's codebase.

    Yes, the framework includes specific workflows for identifying and managing the transition from OAuth (like 'Continue with Google') to native credentials without losing session data.

    New in Agents & Orchestration