MCPcopy Create free account

hub / github.com/NatalieCao323/crush-skill / functions

Functions51 in github.com/NatalieCao323/crush-skill

↓ 5 callersFunctionanalyze_messages
Extract stylistic features from the target's messages. Returns a structured dict for downstream use by crush.skill.
tools/wechat_parser.py:321
↓ 4 callersFunctionanalyze_messages
(messages: list, target_name: str)
tools/imessage_parser.py:233
↓ 3 callersFunctionget_versions_dir
(slug: str)
tools/version_manager.py:23
↓ 2 callersFunction_convert_to_degrees
Convert GPS coordinates to decimal degrees.
tools/photo_analyzer.py:73
↓ 2 callersFunctionextract_via_ocr
Use Tesseract OCR to extract text from a screenshot.
tools/screenshot_parser.py:140
↓ 2 callersFunctionsave_version
Save a snapshot of the current skill files.
tools/version_manager.py:27
↓ 2 callersFunctiontag_interaction
Tag a single interaction fragment and return a structured result.
tools/bayesian_tagger.py:141
↓ 1 callersFunctionanalyze_extracted
Analyze extracted messages for stylistic features.
tools/screenshot_parser.py:224
↓ 1 callersFunctionclassify_emotional_intensity
Estimate E: emotional valence and intensity of the interaction. Range: -1.0 (strong negative) to +1.0 (strong positive).
tools/bayesian_tagger.py:106
↓ 1 callersFunctionclassify_prior_confidence
Estimate P(H): probability that the message reflects genuine intent. Returns a value in [0.0, 1.0]. High-confidence rejection signals return
tools/bayesian_tagger.py:54
↓ 1 callersFunctionclassify_time_decay
Estimate lambda: the decay rate for this type of interaction. Emotionally significant exchanges decay slowly (low lambda). Routine check
tools/bayesian_tagger.py:83
↓ 1 callersFunctioncompute_progression_weight
W_t = P(H) * exp(-lambda * delta_t) * (1 + E)
tools/bayesian_tagger.py:133
↓ 1 callersFunctioncreate_skill
(slug: str, display_name: str, base_dir: str)
tools/skill_writer.py:66
↓ 1 callersFunctiondetect_format
(file_path: str)
tools/imessage_parser.py:31
↓ 1 callersFunctiondetect_format
Infer the file format from extension and content sample.
tools/wechat_parser.py:30
↓ 1 callersFunctionextract_via_vision
Call Claude/GPT Vision API to extract chat messages from a screenshot.
tools/screenshot_parser.py:69
↓ 1 callersFunctionget_exif_data
Extract EXIF data from a single image.
tools/photo_analyzer.py:25
↓ 1 callersFunctionlist_skills
(base_dir: str)
tools/skill_writer.py:30
↓ 1 callersFunctionlist_versions
List all saved versions.
tools/version_manager.py:61
↓ 1 callersFunctionmain
()
tools/photo_analyzer.py:79
↓ 1 callersFunctionmain
()
tools/social_parser.py:17
↓ 1 callersFunctionmain
()
tools/imessage_parser.py:352
↓ 1 callersFunctionmain
()
tools/screenshot_parser.py:330
↓ 1 callersFunctionmain
()
tools/skill_writer.py:174
↓ 1 callersFunctionmain
()
tools/bayesian_tagger.py:181
↓ 1 callersFunctionmain
()
tools/wechat_parser.py:476
↓ 1 callersFunctionmain
()
tools/qq_parser.py:78
↓ 1 callersFunctionmain
()
tools/version_manager.py:109
↓ 1 callersFunctionparse_plaintext
Parse pasted plaintext: 'sender: content' per line.
tools/imessage_parser.py:193
↓ 1 callersFunctionparse_plaintext
Parse pasted plaintext chat logs. Attempts to match "sender: content" per line. Falls back to returning raw text if structure cannot be i
tools/wechat_parser.py:274
↓ 1 callersFunctionparse_qq_mht
Parse QQ exported mht format (HTML content).
tools/qq_parser.py:61
↓ 1 callersFunctionparse_qq_txt
Parse QQ exported txt format.
tools/qq_parser.py:19
↓ 1 callersFunctionprocess_image
Extract messages from a single image file.
tools/screenshot_parser.py:192
↓ 1 callersFunctionrollback_version
Rollback to a specific version.
tools/version_manager.py:85
↓ 1 callersFunctionsave_file
(slug: str, filename: str, content_file: str, base_dir: str)
tools/skill_writer.py:113
↓ 1 callersFunctiontag_file
Read a parsed chat file and tag each line. Expected format per line: "SENDER: message text"
tools/bayesian_tagger.py:160
↓ 1 callersFunctionvalidate_skill
(slug: str, base_dir: str)
tools/skill_writer.py:147
↓ 1 callersFunctionwrite_output
(result: dict, output_path: str, fmt: str)
tools/imessage_parser.py:301
↓ 1 callersFunctionwrite_output
Write analysis result to Markdown.
tools/screenshot_parser.py:282
↓ 1 callersFunctionwrite_output
Write the analysis result to a Markdown file.
tools/wechat_parser.py:405
Method__init__
(self)
tools/wechat_parser.py:164
Methodhandle_data
(self, data)
tools/wechat_parser.py:200
Methodhandle_endtag
(self, tag)
tools/wechat_parser.py:190
Methodhandle_starttag
(self, tag, attrs)
tools/wechat_parser.py:172
Functionparse_bracket_txt
Parse bracket-style txt format: [2024-01-15 22:30] sender: content
tools/imessage_parser.py:174
Functionparse_bracket_txt
Parse bracket-style txt format. Line format: "[2024-01-15 22:30] sender: content"
tools/wechat_parser.py:97
Functionparse_imazing_csv
Parse iMazing CSV export.
tools/imessage_parser.py:62
Functionparse_liuhen_json
Parse Liuhen JSON export (macOS app).
tools/wechat_parser.py:121
Functionparse_sms_backup_xml
Parse SMS Backup & Restore XML (Android).
tools/imessage_parser.py:105
Functionparse_wechatmsg_html
Parse WeChatMsg HTML export. WeChatMsg exports HTML files with a structure like: <div class="message"> <div class="time">2024-
tools/wechat_parser.py:145
Functionparse_wechatmsg_txt
Parse WeChatMsg txt export. Line format: "2024-01-15 22:30:01 SenderName" followed by message content on subsequent lines.
tools/wechat_parser.py:66