Community라이팅 & 에디팅github.com

9rxu/git

Reusable Codex skill and PowerShell tool for safe Windows C drive cleanup

git란 무엇인가요?

git is a Codex agent skill that reusable Codex skill and PowerShell tool for safe Windows C drive cleanup.

지원 대상~Claude CodeCodex CLI~Cursor
npx skills add 9rxu/git

Installed? Explore more 라이팅 & 에디팅 skills: steipete/notion, affaan-m/seo, affaan-m/brand-voice · View all 6 →

즐겨 사용하는 AI에게 물어보기

이 에이전트 스킬이 미리 로드된 새 채팅을 엽니다.

문서

Clean C Drive

Use scripts/Invoke-CDriveCleanup.ps1 for deterministic scanning and cleanup. Read references/cleanup-experience.md when diagnosing a sudden refill or explaining why a directory was preserved.

Workflow

  1. Run a read-only scan first:

    powershell -NoProfile -ExecutionPolicy Bypass -File scripts\Invoke-CDriveCleanup.ps1 -Mode Scan -DeepScan
    
  2. Report the largest reclaimable cache paths separately from protected application or user data.

  3. Run user-level cleanup only after the user asks to clean:

    powershell -NoProfile -ExecutionPolicy Bypass -File scripts\Invoke-CDriveCleanup.ps1 -Mode Clean
    
  4. Run full cleanup when the user authorizes system cleanup. This cleans user caches, requests UAC, clears locked system caches, and runs DISM component cleanup:

    powershell -NoProfile -ExecutionPolicy Bypass -File scripts\Invoke-CDriveCleanup.ps1 -Mode Full
    
  5. Add -IncludeRecycleBin only when the user explicitly authorizes emptying it. Add -DisableHibernation only when the user explicitly asks to disable hibernation.

  6. Verify final free space, remaining locked paths, hibernation status, and any services temporarily stopped by cleanup.

Safety Rules

  • Never delete personal folders, project directories, browser profiles, installed programs, game libraries, or cloud-sync data automatically.
  • Never manually delete pagefile.sys, restore points, WinSxS, Installer, or System32 content.
  • Do not use DISM /ResetBase; use StartComponentCleanup so installed updates remain serviceable.
  • Preserve package installations such as roaming npm global tools, WinGet packages, Godot export templates, and Feishu version directories unless the user separately confirms removal.
  • Treat failures as locked or permission-protected items. Report them instead of broadening deletion scope.
  • Do not clear Prefetch as routine cleanup; Windows manages it and rebuilding it can slow startup.
  • Do not create junctions or move caches to another drive during cleanup unless the user separately requests migration.

Modes

  • Scan: Read-only known-cache inventory and protected-data summary.
  • Clean: Remove whitelisted user-level caches and temporary files.
  • AdminClean: Run only the elevated system-cleaning stage.
  • Full: Run Clean, then self-elevate for AdminClean.

Use -WhatIf with a cleaning mode to preview deletion targets without changing files.

관련 스킬

steipete/notion

Notion CLI/API for pages, Markdown content, data sources, files, comments, search, Workers, and raw API calls.

community

affaan-m/seo

Audit, plan, and implement SEO improvements across technical SEO, on-page optimization, structured data, Core Web Vitals, and content strategy. Use when the user wants better search visibility, SEO remediation, schema markup, sitemap/robots work, or keyword mapping.

community

affaan-m/brand-voice

Build a source-derived writing style profile from real posts, essays, launch notes, docs, or site copy, then reuse that profile across content, outreach, and social workflows. Use when the user wants voice consistency without generic AI writing tropes.

community

affaan-m/crosspost

Multi-platform content distribution across X, LinkedIn, Threads, and Bluesky. Adapts content per platform using content-engine patterns. Never posts identical content cross-platform. Use when the user wants to distribute content across social platforms.

community

affaan-m/x-api

X/Twitter API integration for posting tweets, threads, reading timelines, search, and analytics. Covers OAuth auth patterns, rate limits, and platform-native content posting. Use when the user wants to interact with X programmatically.

community

affaan-m/content-engine

Create platform-native content systems for X, LinkedIn, TikTok, YouTube, newsletters, and repurposed multi-platform campaigns. Use when the user wants social posts, threads, scripts, content calendars, or one source asset adapted cleanly across platforms.

community