Skip to content

Instantly share code, notes, and snippets.

@maddada
Created August 4, 2025 18:25
Show Gist options
  • Select an option

  • Save maddada/865364f5be840a20311f88ba43d84fd2 to your computer and use it in GitHub Desktop.

Select an option

Save maddada/865364f5be840a20311f88ba43d84fd2 to your computer and use it in GitHub Desktop.
Goal: Organize my tabs into groups
Goal: Organize my tabs into groups
Here is a list of ungrouped tabs provided in the following format:
id ||| title ||| url
<tabs_list>
${tabs.map((t) => `${t.id} ||| ${t.title} ||| ${t.url}`).join("\n")}
</tabs_list>
Please adhere strictly to the following rules:
<User's custom prompt goes here>
Group these tabs into logical groups
Max length of the group name should be around 14 characters
Max number of tabs in a group should be 14
You should split related tabs into different groups if there are too many in 1 group: for example Youtube Gaming, Youtube Programming, etc.
Please make sure that each tab id is only in 1 group. There should be no duplicate tab ids in the response
If any tab ids cannot be grouped with the others then create a new group called "Other", IT HAS TO BE THE LAST GROUP IN THE RESPONSE
Sort the groups you return alphabetically by the group name but always put the "Other" group at the end
IMPORTANT: Make absolutely sure that ALL THE GIVEN TAB IDS ARE GROUPED in the end
IMPORTANT: Make absolutely sure that ONLY the given tab ids are in the response. The program will crash if any tab ids are added or not there in the response!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment