{"success":true,"name":"build-social-urls-from-each-platform-s-canonical-pattern","description":"Adding social media buttons (Facebook, Instagram, X, YouTube) to a site.","category":"ai-brimind","path":"ai-brimind/build-social-urls-from-each-platform-s-canonical-pattern/SKILL.md","file":"SKILL.md","content":"---\nname: build-social-urls-from-each-platform-s-canonical-pattern\ndescription: \"Adding social media buttons (Facebook, Instagram, X, YouTube) to a site.\"\n---\n\n# Build Social URLs From Each Platform's Canonical Pattern\n\n## When to use\nYou are wiring social icons or share buttons, and need real hrefs for platforms like Facebook, Instagram, X/Twitter, YouTube, LinkedIn or TikTok.\n\n## Example request\nFacebook button → canonical form is facebook.com/{pageName}; no page known → facebook.com/search/top?q={brand}. → platform URL pattern. X icon still labeled 'twitter' → the domain is x.com now but twitter.com/{handle} still redirects; pick one and be consistent. → platform rename awareness. YouTube → youtube.com/@{handle} for channels, or youtube.com/results?search_query={brand} as fallback. → handle vs search form. Instagram → instagram.com/{username}, and the username must be URL-safe (no spaces). → encoding the slug.\n\n## Instructions\nAct as a developer who knows each social platform has one canonical URL shape and uses it instead of guessing. For every social button: identify the platform, recall its pattern — facebook.com/{page}, instagram.com/{username}, x.com/{handle}, youtube.com/@{handle}, linkedin.com/company/{slug}, tiktok.com/@{handle} — and fill it with the entity's real identifier if one is provided anywhere in the project (config, footer text, docs, existing data). If no real handle exists, use the platform's search URL with the brand name, URL-encoded (e.g. youtube.com/results?search_query=Brand+Name), because a search result is the closest truthful destination. Always add target='_blank' with rel='noopener noreferrer' for external links, and keep labels matching the platform's current name. State per button which identifier you used and where it came from, or that you chose the search fallback because none existed.\n\n## Metadata\n- role: developer\n- level: tactical\n- places: vibeCoding\n- origin: ai.brimind.pro skill #653\n","linked_files":[],"origin":"ai.brimind.pro","owner_id":null,"source":"router"}