- Home
- Skills
- Agents & Orchestration
- Multi-Account Browser Lock: Stop Wrong-Channel Posts
Works with the AI Agents you already use
Multi-Account Browser Lock: Stop Wrong-Channel Posts
Maintain strict account isolation and prevent cross-posting errors using profile-per-account management.
$15
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 Handle | Browser Profile Name | Sign-in Method | Status | Action Required |
|---|---|---|---|---|
| @Company_Mktg | twitter-mktg | Email + Password | Verified | None |
| @Company_Support | twitter-support | OAuth (Google) | High Risk | Convert to Email/Pass |
| @Company_DevRel | twitter-devrel | Email + Password | Verified | None |
Account Conversion Plan: @Company_Support
- Launch Profile: Open
twitter-supportbrowser profile. - Set Credentials: Navigate to Account Settings > Password. Set a unique standalone password.
- Verification: Log out of the Google session. Log in using the new standalone email and password.
- Unlink: Once the standalone login is confirmed, remove the Google OAuth link.
Next steps
- Create the
twitter-supportandtwitter-devrelprofiles in your browser. - Provide the password for @Company_Mktg so I can perform the initial verify-by-re-login check.
- 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.jsonandschemas/launch_task.schema.json(JSON Schema Draft 2020-12).examples/demo_profiles.json(3 isolated channels with distinctuser_data_dirpaths, allowed domains, and channel IDs).examples/demo_profiles_collision.json(FAIL fixture with 2 accounts sharing the sameuser_data_dir).examples/demo_task_mismatch.json(FAIL fixture targetingChannel_Bwhileactive_profile_idisProfile_A).examples/demo_task_pass.json(PASS fixture matchingChannel_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 withexit 2before a wrong-account action runs, and supporting--jsonoutput. - 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
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
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 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