AGENT_QUICK_REF.txt
╔══════════════════════════════════════════════════════════════════════════════╗
║ DISK CLEANER - UNIVERSAL AGENT QUICK REFERENCE CARD ║
║ (Works with ALL AI IDEs on ALL platforms) ║
╚══════════════════════════════════════════════════════════════════════════════╝
┌─ UNIVERSAL REQUIREMENTS ────────────────────────────────────────────────────┐
│ │
│ ✅ Python 3.7+ (ONLY requirement) │
│ ✅ Works on: Windows, macOS, Linux │
│ ✅ Works with: Cursor, Windsurf, Continue, Aider, Claude Code, etc. │
│ ✅ Works at: Global, Project, or User level │
│ ✅ NO pip install needed (self-contained) │
│ │
└──────────────────────────────────────────────────────────────────────────────┘
┌─ STEP 1: DETECT PYTHON (PLATFORM AGNOSTIC) ───────────────────────────────┐
│ │
│ import subprocess, os │
│ │
│ # Use 'python' on Windows, 'python3' on Unix │
│ python_cmd = 'python' if os.name == 'nt' else 'python3' │
│ │
│ result = subprocess.run([python_cmd, '--version'], │
│ capture_output=True, text=True) │
│ if result.returncode != 0: │
│ print("ERROR: Python 3.7+ required") │
│ print("Install: https://www.python.org/downloads/") │
│ return False │
│ │
│ print(f"OK: Python {result.stderr.strip()}") │
│ │
└──────────────────────────────────────────────────────────────────────────────┘
┌─ STEP 2: FIND SKILL PACKAGE (LOCATION INDEPENDENT) ───────────────────────┐
│ │
│ from pathlib import Path │
│ │
│ # Search in order of priority (works everywhere) │
│ search_paths = [ │
│ # Current directory │
│ Path.cwd() / 'disk-cleaner', │
│ Path.cwd() / 'skills' / 'disk-cleaner', │
│ Path.cwd() / '.skills' / 'disk-cleaner', │
│ # Project root (up to 3 levels) │
│ *[p / 'skills' / 'disk-cleaner' │
│ for p in [Path.cwd(), *Path.cwd().parents][:3]], │
│ # User home (universal) │
│ Path.home() / 'skills' / 'disk-cleaner', │
│ Path.home() / '.skills' / 'disk-cleaner', │
│ ] │
│ │
│ # Find valid skill package │
│ skill_path = None │
│ for path in search_paths: │
│ if (path / 'scripts' / 'analyze_disk.py').exists(): │
│ skill_path = path │
│ break │
│ │
│ if not skill_path: │
│ print("ERROR: Skill package not found") │
│ print("Extract to: skills/disk-cleaner/ or ~/.skills/disk-cleaner/") │
│ return False │
│ │
│ print(f"OK: Found at {skill_path}") │
│ │
└──────────────────────────────────────────────────────────────────────────────┘
┌─ STEP 3: VERIFY SKILL (OPTIONAL BUT RECOMMENDED) ──────────────────────────┐
│ │
│ result = subprocess.run( │
│ [python_cmd, 'scripts/check_skill.py'], │
│ cwd=str(skill_path), │
│ capture_output=True, text=True │
│ ) │
│ │
│ if result.returncode != 0: │
│ print("ERROR: Skill verification failed") │
│ print(result.stdout) │
│ return False │
│ │
│ print("OK: Skill verified") │
│ │
└──────────────────────────────────────────────────────────────────────────────┘
┌─ STEP 4: EXECUTE OPERATION ─────────────────────────────────────────────────┐
│ │
│ operations = { │
│ 'analyze': 'analyze_disk.py', │
│ 'clean': 'clean_disk.py', │
│ 'monitor': 'monitor_disk.py', │
│ } │
│ │
│ script = skill_path / 'scripts' / operations[operation] │
│ cmd = [python_cmd, str(script)] │
│ │
│ # Add operation-specific args │
│ if operation == 'analyze' and target_path: │
│ cmd.extend(['--path', str(target_path)]) │
│ elif operation == 'clean': │
│ cmd.append('--dry-run') # ALWAYS use dry-run first! │
│ │
│ result = subprocess.run(cmd, cwd=str(skill_path), │
│ capture_output=True, text=True) │
│ │
│ print(result.stdout) │
│ │
└──────────────────────────────────────────────────────────────────────────────┘
┌─ USER INTENT MAPPING ──────────────────────────────────────────────────────┐
│ │
│ User says any of: → Execute: │
│ ───────────────────────────────────────────────── │
│ "analyze disk" analyze_disk.py │
│ "check disk space" analyze_disk.py --top 50 │
│ "what's using space" analyze_disk.py │
│ "disk usage" analyze_disk.py │
│ │
│ "clean temp files" clean_disk.py --temp --dry-run │
│ "preview cleanup" clean_disk.py --dry-run │
│ "remove junk files" clean_disk.py --dry-run │
│ │
│ "monitor disk" monitor_disk.py │
│ "check disk health" monitor_disk.py │
│ "disk space alert" monitor_disk.py │
│ │
└──────────────────────────────────────────────────────────────────────────────┘
┌─ CROSS-PLATFORM COMMANDS ──────────────────────────────────────────────────┐
│ │
│ Platform Python Command Check Command │
│ ──────────────────────────────────────────────────── │
│ Windows python python --version │
│ macOS python3 python3 --version │
│ Linux python3 python3 --version │
│ │
│ Universal: │
│ python_cmd = 'python' if os.name == 'nt' else 'python3' │
│ │
└──────────────────────────────────────────────────────────────────────────────┘
┌─ INSTALLATION LOCATIONS (ALL WORK) ────────────────────────────────────────┐
│ │
│ User Level (Recommended): │
│ ~/.skills/disk-cleaner/ # Unix-like (macOS, Linux) │
│ ~/agent-skills/disk-cleaner/ # Alternative │
│ C:\Users\You\skills\disk-cleaner\ # Windows │
│ │
│ Project Level: │
│ project/skills/disk-cleaner/ # Any project │
│ project/.skills/disk-cleaner/ # Hidden │
│ │
│ Global/System Level: │
│ /usr/local/share/skills/disk-cleaner/ # Linux (system-wide) │
│ C:\ProgramData\skills\disk-cleaner\ # Windows (system-wide) │
│ │
│ ANY location works! The skill includes intelligent auto-detection. │
│ │
└──────────────────────────────────────────────────────────────────────────────┘
┌─ AI IDE COMPATIBILITY ─────────────────────────────────────────────────────┐
│ │
│ ✅ Cursor - Extract to ~/.cursor/skills/ or project/skills/ │
│ ✅ Windsurf - Extract to ~/.windsurf/skills/ or project/skills/ │
│ ✅ Continue - Extract to ~/.continue/skills/ or project/skills/ │
│ ✅ Aider - Use via subprocess: !python skills/.../analyze_disk.py │
│ ✅ Claude Code - Extract to ~/.claude/skills/ or project/skills/ │
│ ✅ Any IDE - Works via subprocess, just extract and use │
│ │
│ NO IDE-specific configuration needed! │
│ │
└──────────────────────────────────────────────────────────────────────────────┘
┌─ SAFETY RULES (CRITICAL) ─────────────────────────────────────────────────┐
│ │
│ ⚠️ NEVER run clean_disk.py without --dry-run first │
│ ⚠️ ALWAYS preview before actual cleaning │
│ ⚠️ ALWAYS use absolute paths to skill package │
│ ⚠️ ALWAYS check subprocess returncode │
│ ⚠️ ALWAYS capture and show output to user │
│ ⚠️ ALWAYS handle exceptions gracefully │
│ │
└──────────────────────────────────────────────────────────────────────────────┘
┌─ COPY-PASTE UNIVERSAL TEMPLATE ───────────────────────────────────────────┐
│ │
│ import subprocess, os │
│ from pathlib import Path │
│ │
│ # 1. Detect Python │
│ python_cmd = 'python' if os.name == 'nt' else 'python3' │
│ result = subprocess.run([python_cmd, '--version'], │
│ capture_output=True, text=True) │
│ if result.returncode != 0: │
│ print("ERROR: Python required") │
│ return │
│ │
│ # 2. Find skill package │
│ skill_path = None │
│ for candidate in [ │
│ Path.cwd() / 'skills' / 'disk-cleaner', │
│ Path.home() / 'skills' / 'disk-cleaner', │
│ ]: │
│ if (candidate / 'scripts' / 'analyze_disk.py').exists(): │
│ skill_path = candidate │
│ break │
│ │
│ if not skill_path: │
│ print("ERROR: Skill not found") │
│ return │
│ │
│ # 3. Execute operation │
│ result = subprocess.run( │
│ [python_cmd, 'scripts/analyze_disk.py'], │
│ cwd=str(skill_path), │
│ capture_output=True, text=True │
│ ) │
│ │
│ print(result.stdout) │
│ │
└──────────────────────────────────────────────────────────────────────────────┘
┌─ ERROR HANDLING (UNIVERSAL) ───────────────────────────────────────────────┐
│ │
│ Python not found → Install: https://www.python.org/downloads/ │
│ Skill not found → Extract to: skills/disk-cleaner/ or │
│ ~/.skills/disk-cleaner/ │
│ Permission denied → Use appropriate permissions for your platform │
│ Timeout → Large directory scanning takes time │
│ Module error → Run: python scripts/check_skill.py │
│ │
└──────────────────────────────────────────────────────────────────────────────┘
╔══════════════════════════════════════════════════════════════════════════════╗
║ SUMMARY: Works EVERYWHERE - All platforms, All IDEs, All locations ║
║ Just Python 3.7+ required. Extract and use. No special setup needed. ║
╚══════════════════════════════════════════════════════════════════════════════╝
disk-cleaner.skill
PK ��h\:T Y AGENT_QUICK_REF.txt�\�n���~����� �jIw��N�/:˒J�I
����bL���Ҋ\q(��T��C���c�y�}��.)��)��(;�� ��~��ο����7z4�?>�����!2��C�7�ZKӡǭ�KM�֚P�Vk��wǍ�!�ځ�k�������x�@�Q|�K#K��D�4�5����l"�.��?��r����ߟ����7~�̃�����F��'|�$��s�l�10D���_�s-(>{���
��V���o1:��H��L����N^Y���.����B�r�wk�J�B�g�e�
����u�Nw�f�/�m�ϛx�
�<��*|k���ޅs�RC����S6���R����YXĶ��Ԥ&9��%�$�C��ܝ��9B��-�wy�3� �=�_Ua_�i�tNz/�-(v���A[?B=�jw{��<��
��s� �{�5(�E��Qs�m�Ҡ�)mT�m�8{��c����wo�� ϧ�V�PvȐ�s<�P{zo���?=�ܷR9��2�������e�8�]�9c�>�o\_x�x�cRa
�.�����"�i-3�0����=�/�k<��Q��t��WcF)4G����2�lJ�
!<^�TF�Q9`l�e�2�v��+i�H`�
D���c�<z�}8a��p�@���?fyŝ����m�}]��Fk��
t�;��!FPl��^-^�:����f�6lr���G����������R��K 3褡��kܾ\7.��5G�-DǏ]���k�$&W�o$8j��\E,��=r0Q�e��ʉ)#��(��,6%e�Y�eIL~i�6/,?���-��^>0�P�=.��~j���So�C�� σ$�tʆ]�b�G�#R0��iu�,�1���*���}ǒ^����R0=q�������G0ϖ{��揺
����-�s�V5.�ŲNGT9I��P5�\gu�%��xJH�Ш�[�DG��p�0誈`�C��?�7R Љ+��;�^�I�c�<Ÿ�`�R0�%���,D�a�=w��P9�{7&��}�w:�30� FPE��+х_� �?U�i��
��~ yD���-��������Uᥦ7NB���H��քo�{�k��ё�����!m���XU�x2#T�c@��7J��>���H�D�9F����������"YtI�*;����Q�'0�xZ}� �r��^��I�&6p�V��C��LD��)Qv��>n;��*h����=
�M�:�Me�a��z��u.�"��B�c�������GJH�a�4С�X�e6����/E����{�VL�xh7����Ǵ�=����
�(Нe��;�k�9}���!mv�ܞ\�XO�f�x) ��A 4�b��441��1���RIB�F@wβuԾE�x�-;RH%�'IEJMv]Bo���8�|U;邏f<<}�q�l!hN#�[��v)/v1�+l�m���j ��cwW����VO���:�F�[�o���[T���k�*��~B_���3h������o����
�H�e+� �++�T@A��A��I�RI���˹�����r.�`W�T��srq���As1�J�:�ɳ)O�j%K�7'�s���EG��}�����R@�W���e*����8���>�L�O���@#�?����J���ĦL$�]4���mm]ow��I��L�Z��n-�ml',[W��j��;� G]��ȉL��ͳy������|�F���fc����C�%1���F0c��9a�8�^ܸ�a�M�t܇Qa�h�l���՚� �:.��BQ�ʼj�/�s�E��T}E��<�cR3�J"3(��m�~{[Uh�l�B1��3]jG�f"oC��9D�2�Jj��Z2��>q����(�k�S�@sQ����ZSAň����C�bT~o9��r�
/,Ӥ�S4�A
�y*�k���z̍�Z�9�خ��|@�����<�"�4��x�-)�(��� 3�5"��P7��Z��ë4���}�
k�,ǰ}�r� �m[rY�[2�@���S@�'�њ��#T��v�4��� �7��
Cّ��J0�,�&�P��YV�%T�,�q�a�(��6Ii�ǘJix-� T� ���VW��FT�YY�8�r���h%)�6XަT][���"I
�3���[����dT�'J56�[mI�t'�o]���V��44R���4�|�qSC���7z�z�y���c������C��^j:��i<�*�]_D��j�43n��:N�Ӿ�(����Jf�&7�}Kιk��B�Y�&kM�l� �:�*)x[��c�`�U�%>pGl�J�}>Q�K�Ϧ���u4�-���v�V�'%����;'�N���"o��iG2���}S��j0��>�¯ʰ�"�q�z}�M����S�˗h-O
+��w �_��~�u:���&3��Y&Ac/��@�cc}�9�<��;�J�즛�u���Q������*�SC]�S"s#�������z�H��z�w�є\OZ��OM9�>�~zG4�Rz^�Z�MYsZ�DR�\�f�e0�S:Q���?C����&�Gx]��.n��Ik�X�;���
-�jEL�Xt���&*o\�һ�&_��g�v}6y��-؞5�2��-�6e3C�*����r��9���/32�E8%auߩ��t��\��8�fy�������j�i"��'�^h�%�ɸo�z�]��|sl�i��;��L�@���iI{[y�@���2F���C�
�M/�)�0��g�PK ��h\9�-h � ENCODING_FIX_SUMMARY.md�X�O[�����0��"��C�n�V���"ZV%���F��7�7ƶ��
�?�c�"�y��&8�d�aC����ן��3�{}
a> Ϝǜלߙ{)�����˭�����$XW�����[�Z���ٝ�Ѐ�%�OLX<�����^E��HV�Q��$��J�,����}a�:$�S� 2T��8���I6Fr3�|��6��8In��!N�qk�doN�չ�T��[\���i�?kĕ�1��'+���Zw� ��~�_!]%��蛇��H�G���;a���^ؕ�u���Çr=�ʽ�������0�G?�r�D���4����[f�]S��H�G����C`����b ��rp�r�KxwY�����[��g��]��sֈ�s���]�v��8&�-�ј�ݓ�Ȅ��!e}Ggț4?��북��q=�H^��{IH�jZ=]Ǎ��'��&t�X���I5��g4��˄�i��<&��C�5�ϩ���Ř����<je�dv�Q����~<n������Eb�6����l~�����M��;��.��cO\.��籸n,�J��
8���K�OIb��'\��ETMP�� ���k���1"�z���|a���ٚ&�-G��:����Z����;� �F�0�����3�w�������J�4��;��z聶3�y�b�����%v�w����чbk}�o�>�Zl��:=X<�\oέ7
1���7:48<l��!��K��x6/�fx���nFY*��o&�f��-�A�u 2����)<��c=m4��ԓ���[�z�5c�zT������JSr����!���k5e�N�#d��H��&�B�(�(I�q"�S�R'�m���'��'�
Kz�!]V%hm��|2�㿅K����]�E�� ��aF�V�Y]n��lB������CO�ɋ�Nt�y%��i�vw]�b��Nm��Z�Y<�;�����i����<��?xl�%N���
h��ϋW�V�o�䞞�q��)�Xv����q�#M�D�jdϖ��4�"�R��j�������|586px���_��Ӝ�pĴ��b��u%��������1����!u���rjeI-�@uj(��J>�{�볹��1I`#�'�c�a��j
"�E�Q�Jd:��]]m*Ӈ���:@�ܜ��5('�����~���Z�<���b���,~�� ���\k'�VB ��MVK�����'�s� ��*��S ezUww=�r&��l�����ѷ�@�����g?�80��
�Z=v��{�������\��>��^��� �ez��C���v���xl�� O�=��@����x/��0^�.alE���N�q��/�����L�FA'7�>
\�����1 6����?)��M�D�p%'