AI Agent Use Cases

Added today

44All 189

Prompt to Prepare a Shopping Cart from a Recipe Photo

The author reports that Grok Bot receives a recipe photo, organizes the ingredients and quantities, and creates a shopping list by excluding ingredients already available at home.

Grok Bot
Life & Hobbies

1–20 of 189

Marketing & DesignWalkthrough

Creating a Tool to Reduce Video File Size in Multiple Steps and Choose the Best Result

Simon Willison asked Claude Code to create a tool that compresses video files in the browser and compares the results at different sizes.

How it works

  1. The author requested that when a video is opened, the tool should show candidates at different file sizes and convert them to MP4 format that can be played on mobile devices.
  2. They instructed the use of a WebAssembly-based method to run FFmpeg in the browser, and asked for an explanation of the implementation plan before coding.
  3. Later, the author requested an option to remove audio from the video. The code and the Claude Code session link were made public.

Results

A video tool was created that allows users to compare and download videos at various compression levels.

Notes

The author checked the production request and implementation files. They did not independently verify processing time for large videos or playback compatibility on all mobile phones.

Source

GitHub Original post ↗

Example prompt · Claude Code

Goal: Create a tool to reduce video file size in multiple steps and choose the best result.

Input & Environment: [short test video], [target file size range], [supported browsers], [project repository].

Reference original: https://github.com/simonw/tools/commit/31769f8f1db9417230f17014f3c7f08d0e17d99e

Using the public video-compressor example as a reference, create a tool that reduces video file size in the browser. When a file is selected, generate multiple MP4s at different quality levels and provide the size, playback preview, and download button for each. Allow users to choose whether to include audio, and distinguish between processing, failure, and cancellation states. Explain the processing structure that does not upload the original video to an external server and describe the necessary libraries.

Do not speculate about account connection methods or achievements not mentioned in the original; first provide the required setup and execution steps. Start from a working copy that preserves existing materials, and indicate if any items are inaccessible and need verification.

Verification: For videos with and without audio, compare the resulting files for length, resolution, and audio presence. Do not assume the smallest file is always best; let users choose via preview. List the browsers actually tested and any limitations.

With the results, organize the inputs used, execution logs, and confirmed outcomes. Clearly separate any failed or unexecuted parts from completed work.