screen-logger
Screen Logger Skill
When the user asks you to run the "screen-logger" skill, you must perform the following actions in order:
-
Take a Screenshot: Use the
run_commandtool to execute the macOS screen capture command silently (-x). Save the screenshot to a temporary file in the current working directory, for example./capture_temp.png.screencapture -x ./capture_temp.png -
Read the Screenshot: Use the
view_filetool to open./capture_temp.png(you may need to resolve this to an absolute path first). Your vision capabilities will process the image so you can analyze the screen's contents. -
Analyze Current Activity: Based on the contents of the screenshot, formulate a brief summary (about 1-2 sentences) of what the user is currently doing. Identify the main application in focus, any visible code/design context, and what tasks appear to be underway.
-
Append to Log File: Use the
run_commandtool to append your analysis along with the current timestamp toactivity_log.txtin the current directory. Example command:echo "$(date '+%Y-%m-%d %H:%M:%S') - [Your short activity summary here]" >> ./activity_log.txtNote: Do not literally output the brackets, replace them with your actual summarized text.
-
Cleanup: Use the
run_commandtool to delete the temporary screenshot so it doesn't clutter the project.rm ./capture_temp.png
Once the log is appended and the temporary file is deleted, you have successfully completed this workflow.