CheckIfTwoStringsAreAnagrams
Use when the user wants to quickly determine if two words or phrases are anagrams β essentially, if they can be rearranged to form the same word.
β οΈ Unverified
π Local
π Example Use Cases
"Do 'dormitory' and 'dirty room' have the same letters?"
"Are 'astronomer' and 'moon starer' anagrams?"
"Iβm trying to solve a puzzle. Can you see if 'listen' and 'silent' are anagrams?"
... and 2 more examples
βοΈ Parameters
input_string_1
string (required)
The first string to be checked for anagram status.
input_string_2
string (required)
The second string to be checked for anagram status.
π§ͺ Vibe Test Phrases
- ""Do 'dormitory' and 'dirty room' have the same letters?""
- ""Are 'astronomer' and 'moon starer' anagrams?""
- ""Iβm trying to solve a puzzle. Can you see if 'listen' and 'silent' are anagrams?""
- ... and 2 more phrases
π View Implementation
1 def execute():
2 """
3 Checks if two strings are anagrams.
4 """
5 try:
6 string1 = input_string_1.lower().replace(" ", "")
7 string2 = input_string_2.lower().replace(" ", "")
8
9 if len(string1) != len(string2):
10 log("Strings have different lengths, not anagrams.")
11 return "No, the strings are not anagrams."
12
13 sorted_string1 = sorted(string1)
14 sorted_string2 = sorted(string2)
15
16 if sorted_string1 == sorted_string2:
17 log("Strings are anagrams.")
18 return "Yes, the strings are anagrams."
19 else:
20 log("Strings are not anagrams.")
21 return "No, the strings are not anagrams."
22
23 except Exception as e:
24 log(f"An error occurred: {e}")
25 return "An error occurred while processing the strings."
ExtractFirstSentence
Use when the user needs to quickly grab the opening sentence of a piece of text.
β οΈ Unverified
π Local
π Example Use Cases
βWhatβs the beginning of this article about?β
βCan you just give me the intro to this email?β
βPull out the first sentence from that paragraph.β
... and 2 more examples
π§ͺ Vibe Test Phrases
- "βWhatβs the beginning of this article about?β"
- "βCan you just give me the intro to this email?β"
- "βPull out the first sentence from that paragraph.β"
- ... and 2 more phrases
π View Implementation
1 def execute():
2 """
3 Extracts the first sentence from a given text based on the first period.
4 """
5 try:
6 log("Starting sentence extraction...")
7 text = log("Input text:")
8 if not text:
9 log("No text provided.")
10 return ""
11
12 first_period_index = text.find('.')
13 if first_period_index == -1:
14 log("No period found in the text.")
15 return text
16
17 first_sentence = text[:first_period_index + 1]
18 log("Extracted sentence: " + first_sentence)
19 return first_sentence
20
21 except Exception as e:
22 log("An error occurred: " + str(e))
23 return ""
GenerateARandomPasswordOfASpecifiedLength
Use when the user needs a randomly generated password of a specific length for account security or other applications.
β οΈ Unverified
π Local
π Example Use Cases
βI need a random password, make it 8 characters long, please.β
βCan you generate a random password for my new account? Letβs go with 10 characters.β
βJust give me a random password of about 15 characters, nothing too complicated.β
... and 2 more examples
βοΈ Parameters
length
number (required)
The desired length of the password in characters. A minimum length of 8 is recommended for security.
character_set
string (optional)
Character set for password generation. Options: 'letters', 'numbers', 'symbols', 'all', or custom string. Default: 'all' (letters + numbers + symbols).
π§ͺ Vibe Test Phrases
- "βI need a random password, make it 8 characters long, please.β"
- "βCan you generate a random password for my new account? Letβs go with 10 characters.β"
- "βJust give me a random password of about 15 characters, nothing too complicated.β"
- ... and 2 more phrases
π View Implementation
1 import random
2 import string
3
4 def execute(length=12):
5 """
6 Generates a simple random password of a specified length.
7
8 Args:
9 length (int): The desired length of the password. Defaults to 12.
10
11 Returns:
12 str: The generated random password.
13 """
14 try:
15 if not isinstance(length, int) or length <= 0:
16 raise ValueError("Password length must be a positive integer.")
17 characters = string.ascii_letters + string.digits + string.punctuation
18 password = ''.join(random.choice(characters) for i in range(length))
19 log(f"Generated password of length {length} with characters: {characters}")
20 log(f"Password: {password}")
21 return password
22 except ValueError as e:
23 log(f"Error: {e}")
24 return None
GenerateaSimpleHaiku
Use when the user wants a short, evocative poem following a 5-7-5 syllable structure β a simple haiku.
β οΈ Unverified
π Local
π Example Use Cases
βCould you write a short poem for me?β
βIβm feeling creative β give me a haiku.β
βJust a quick verse, please.β
... and 2 more examples
π§ͺ Vibe Test Phrases
- "βCould you write a short poem for me?β"
- "βIβm feeling creative β give me a haiku.β"
- "βJust a quick verse, please.β"
- ... and 2 more phrases
π View Implementation
1 import random
2
3 def execute():
4 """
5 Generates a simple haiku following a 5-7-5 syllable structure.
6 """
7 try:
8
9 syllable_5_words = ["Winter's grace", "Silent snow falls", "Empty blue sky", "Darkness descends", "Gentle breeze sighs"]
10 syllable_7_words = ["Snowflakes dance upon the breeze", "Whispers carried on the air", "Golden sunlight, warm and bright", "Shadows lengthen, softly deep", "Lost in contemplation's dream"]
11 syllable_5_words_alt = ["Moonlight shining down", "Stars are twinkling bright", "Rivers flowing free", "Natureβs sweet delight", "Peaceful harmony"]
12
13
14 line1 = random.choice(syllable_5_words)
15 line2 = random.choice(syllable_7_words)
16 line3 = random.choice(syllable_5_words)
17
18
19 haiku = f"{line1}\n{line2}\n{line3}"
20
21 log(f"Generated haiku: {haiku}")
22 return haiku
23
24 except Exception as e:
25 log(f"Error generating haiku: {e}")
26 return "Could not generate haiku at this time."
Generatesimple
Use when the user wants a short, rhyming poem consisting of two lines.
β οΈ Unverified
π Local
π Example Use Cases
βCould you write a little rhyme for me?β
βI need a couple of lines that rhyme, please.β
βGive me a short poem, rhyming!β
... and 2 more examples
π§ͺ Vibe Test Phrases
- "βCould you write a little rhyme for me?β"
- "βI need a couple of lines that rhyme, please.β"
- "βGive me a short poem, rhyming!β"
- ... and 2 more phrases
π View Implementation
1 import re
2 import logging
3
4 logging.basicConfig(level=logging.INFO, format='%(asctime)s - %(levelname)s - %(message)s')
5
6 def execute():
7 """
8 Generates a simple rhyming couplet.
9 """
10 try:
11
12 line1 = "The stars above, a silent love,"
13 line2 = "Sent from the heavens, from up above."
14
15 logging.info("Generated rhyming couplet: {}".format(line1 + "\n" + line2))
16 return line1 + "\n" + line2
17 except Exception as e:
18 logging.error("An error occurred: {}".format(e))
19 return "An error occurred while generating the couplet."
SummarizeLegalContractsIntoPlainLanguage
Use this skill to understand complex legal contracts β like rental agreements or terms of service β by receiving a simplified, plain-language summary of key clauses, obligations, and potential risks.
β οΈ Unverified
π Local
π Example Use Cases
"Can you explain this rental agreement to me in simple terms? I donβt understand half of whatβs written here."
"I need help understanding this service contract. Could you break down the key points and what I'm actually agreeing to?"
"This loan document is so confusing. Could you summarize it for me in plain language, highlighting what my responsibilities are?"
... and 2 more examples
βοΈ Parameters
contract_text
string (required)
The complete text of the legal contract to be summarized. This can be pasted directly, or the content of a file.
file_upload
string (optional)
Optional URL or file path containing contract text. Supports PDF, DOCX, TXT files (text extraction required for non-TXT formats).
π§ͺ Vibe Test Phrases
- ""Can you explain this rental agreement to me in simple terms? I donβt understand half of whatβs written here.""
- ""I need help understanding this service contract. Could you break down the key points and what I'm actually agreeing to?""
- ""This loan document is so confusing. Could you summarize it for me in plain language, highlighting what my responsibilities are?""
- ... and 2 more phrases
π View Implementation
1 import math
2 import json
3 import datetime
4 import os
5 import re
6 import random
7
8 def execute(contract_text: str = None, file_upload: str = None) -> None:
9 """
10 Summarizes a legal contract into plain language.
11
12 Args:
13 contract_text (str): The text of the contract.
14 file_upload (str): Path to a file containing the contract text. Not implemented in this simple version.
15
16 Returns:
17 None. Prints results to the log.
18 """
19
20 log("Starting contract summarization...")
21
22 try:
23 if file_upload:
24 try:
25 with open(file_upload, 'r') as f:
26 contract_text = f.read()
27 except FileNotFoundError:
28 log(f"Error: File not found: {file_upload}")
29 return
30 except Exception as e:
31 log(f"Error reading file: {e}")
32 return
33 elif not contract_text:
34 log("Error: No contract text provided.")
35 return
36
37 log("Contract text received.")
38
39
40 jargon_map = {
41 "notwithstanding": "even if",
42 "hereby": "now",
43 "pursuant to": "according to",
44 "shall": "will",
45 "agreeing to": "accepting",
46 "obligations": "responsibilities"
47 }
48
49
50 for jargon, plain_lang in jargon_map.items():
51 contract_text = contract_text.replace(jargon, plain_lang)
52
53
54 if "governed by the laws of" in contract_text:
55 clause_start = contract_text.find("governed by the laws of")
56 clause_end = contract_text.find(".", clause_start)
57 clause = contract_text[clause_start:clause_end + 1]
58 summary = f"This agreement is interpreted under the laws of {contract_text[contract_text.find('laws of ')+len('laws of '):contract_text.find(' ', contract_text.find('laws of ')+len('laws of '))]}."
59 log(f"Original clause: {clause}")
60 log(f"Plain language summary: {summary}")
61
62
63 log("Generating plain language summary...")
64
65 summary = f"Disclaimer: This is a simplified summary for informational purposes only and is NOT legal advice. Consult with a qualified legal professional for specific guidance.\n\n"
66 summary += f"Plain Language Summary: {contract_text[:500]}... (truncated)" #Show first few hundred chars as a demonstration
67
68 log(f"Summary generated: {summary}")
69
70 log("Contract summarization complete.")
71
72 except Exception as e:
73 log(f"An error occurred: {e}")
TranslateSingleWordIntoRandomSynonym
Use when the user wants a quick alternative word for a single word, instantly expanding their vocabulary or offering a different phrasing option.
β οΈ Unverified
π Local
π Example Use Cases
"What's another word for 'tired'?"
"Can you give me a different word for 'sad'?"
"I need a synonym for 'difficult'."
... and 2 more examples
π§ͺ Vibe Test Phrases
- ""What's another word for 'tired'?""
- ""Can you give me a different word for 'sad'?""
- ""I need a synonym for 'difficult'.""
- ... and 2 more phrases
π View Implementation
1 import json
2 import random
3
4 def execute():
5 """
6 Translates a single word into a random synonym from a predefined dictionary.
7 """
8 try:
9 with open("synonym_dictionary.json", "r") as f:
10 synonym_data = json.load(f)
11 synonyms = list(synonyms.keys())
12 if not synonyms:
13 log("Error: Synonym dictionary is empty.")
14 return "No synonyms found."
15 random_synonym = random.choice(synonyms)
16 log(f"Selected synonym: {random_synonym}")
17 log(f"Returning synonym: {random_synonym}")
18 return random_synonym
19 except FileNotFoundError:
20 log("Error: Synonym dictionary file not found.")
21 return "Error: Synonym dictionary not found."
22 except json.JSONDecodeError:
23 log("Error: Invalid JSON format in synonym dictionary.")
24 return "Error: Invalid JSON format."
25 except Exception as e:
26 log(f"An unexpected error occurred: {e}")
27 return f"An unexpected error occurred: {e}"