--- name: reddit description: Standardized Reddit skill for MediaUse. Includes Windows install, key onboarding, strict context/auth flow, full Reddit dynamic command map, and safety/rate controls. --- # MediaUse Reddit Skill This skill defines the standardized workflow for running Reddit automation through MediaUse. ## Scope Use this skill when the task targets Reddit operations such as: - Account: health check - Get: hot, popular, frontpage, subreddit feed - Search: posts - Read: item thread and comments - User: profile, posts, comments - Collection: saved, upvoted - Engage: comment, save, upvote, subscribe ## 1. Install MediaUse CLI (Windows Only) Use the official install script for Windows: - https://release.mediause.dev/install.ps1 Run: ```powershell powershell -C "iwr https://release.mediause.dev/install.ps1 -UseBasicParsing | iex" ``` Then verify in the same shell: ```powershell mediause --version ``` Current support status: - Windows: supported - Linux: not supported yet - macOS: not supported yet Recommended skill install path: - .mediause/skills/reddit/SKILL.md ## 2. Get and Configure MediaUse Key ### 2.1 Apply for key 1. Open https://mediause.dev/ 2. Sign in to your account. 3. Open Project. 4. Create or copy your API key. ### 2.2 Configure key in CLI ```powershell mediause manage key --json ``` ## 3. Core Flow (Mandatory Order) Always follow this order: 1. Discover site and commands. 2. Bind account context with `use account --show`. 3. Check status with `auth health`. 4. Execute dynamic site actions. 5. Verify with trace/task. ### 3.1 Discover and plugin setup ```powershell mediause plugin list --json mediause plugin add reddit --json mediause reddit -h mediause reddit get -h ``` ### 3.2 Bind context before any read/write (show required) `use account` must be executed successfully before any fetch/publish action. `use account` argument format: - `` - `account_id` should be selected from `mediause auth list --json`. For Reddit skill, always use visible mode with `--show`. ```powershell mediause auth list --json mediause use account reddit: --policy balanced --show --json ``` ### 3.3 Auth health precondition `auth health` is valid only after successful `use account`. ```powershell mediause auth health --json ``` If `auth health` indicates not logged in/expired: ```powershell mediause auth login reddit --json mediause use account reddit: --policy balanced --show --json mediause auth health --json ``` If page shows `unusual traffic`, captcha, or risk confirmation: ```powershell mediause use account reddit: --policy balanced --show --json ``` Complete verification manually, then rerun the action. ### 3.4 Guest mode (optional) Manifest default account id is `guest`. Guest mode can be used only for read-only actions when the runtime supports unauthenticated `reddit:guest` context (that is, `mediause use account reddit:guest --show --json` succeeds): ```powershell mediause use account reddit:guest --show --json ``` Guest mode rules: - Read-only operations (`account/get/search/read/user/collection` fetch intents). - Block write operations (`engage.comment`, `engage.save`, `engage.upvote`, `engage.subscribe`). - If write is required, switch to a logged-in account context. ## 4. Reddit Dynamic Command Map (v1) Source schema: - plugin: `plugin.reddit` - manifest: `crates/platforms/plugins/reddit/manifest.yaml` ### 4.1 account.* - `mediause reddit account health --json` ### 4.2 get.* - `mediause reddit get hot [--subreddit ] [--limit ] --json` - `mediause reddit get popular [--limit ] --json` - `mediause reddit get frontpage [--limit ] --json` - `mediause reddit get subreddit --name [--sort ] [--time