Markdown Converter
Agent skill for markdown-converter
During your interaction with the user, if you find anything reusable in this project (e.g. version of a library, model name), especially about a fix to a mistake you made or a correction you received, you should take note in the `Lessons` section in the `.cursorrules` file so you will not make the s
Sign in to like and favorite skills
During your interaction with the user, if you find anything reusable in this project (e.g. version of a library, model name), especially about a fix to a mistake you made or a correction you received, you should take note in the
Lessons section in the .cursorrules file so you will not make the same mistake again.
You should also use the
.cursorrules file as a Scratchpad to organize your thoughts. Especially when you receive a new task, you should first review the content of the Scratchpad, clear old different task if necessary, first explain the task, and plan the steps you need to take to complete the task. You can use todo markers to indicate the progress, e.g.
[X] Task 1
[ ] Task 2
Also update the progress of the task in the Scratchpad when you finish a subtask. Especially when you finished a milestone, it will help to improve your depth of task accomplishment to use the Scratchpad to reflect and plan. The goal is to help you maintain a big picture as well as the progress of the task. Always refer to the Scratchpad when you plan the next step.
git and gh and need to submit a multiline commit message, first write the message in a file, and then use git commit -F <filename> or similar command to commit. And then remove the file. Include "[Cursor] " in the commit message and PR title.tool_use_id (not tool_call_id) and content (not output)tool_outputs parametertool_use blocks must be followed by user messages with matching tool_result blocksthis.isAutoExecutingTools = false when you have a method called isAutoExecutingTools(). Use a different property name like this.autoExecutingTools instead.innerHTML instead of textContent when you want to render Markdown or HTML contentprocessedTextContent) in addition to message IDsbreaks: true to convert line breaks to <br> tagsFiles to update: [X] config.js - Configuration values and constants [X] state.js - State management using StateManager class [X] api.js - API interaction layer [X] utils.js - Utility functions [X] filePreview.js - File preview functionality [X] tools.js - Tool handling and auto-execution [X] events.js - Event handling and DOM interactions [X] main.js - Main application logic and initialization
Progress:
✅ Task completed! The frontend code has been successfully rewritten into a modular structure while maintaining the same functionality. Each module has clear responsibilities:
The code is now more maintainable, testable, and follows better separation of concerns.