| name | clean_temp_links |
| description | Removes timestamps and decodes URLs in the specified markdown file. |
Clean Temp Links
This skill cleans up a markdown file (specifically designed for TempLinks.md or similar "quick capture" lists).
It performs two main operations:
- Remove Timestamp: Strips the
- **HH:MM** [[quick capture]]: prefix from lines.
- Decode URLs: Converts formatting like
%E5%... back to readable Unicode characters (e.g., Chinese).
Execution Instructions for AI
- Read Source: Read the target file (usually
TempLinks.md).
- Remove Timestamp: For each line, strip the
- **HH:MM** [[quick capture]]: prefix and replace it with - .
- Decode URLs: Identify links
[Title](URL) and decode percent-encoded characters in the URL (e.g., %E5%... -> 測試).
Usage
AI Execution (Preferred)
The AI should perform the cleaning directly as per the logic above.
Command Line
Run the following command in the terminal:
python3 .agent/skills/clean_temp_links/clean_links.py "{file_path}"
Example
Input:
- **17:25** [[quick capture]]: [Example](https://example.com/%E6%B8%AC%E8%A9%A6)
Output:
- [Example](https://example.com/測試)