Skip to content

Instantly share code, notes, and snippets.

@vimota
vimota / gist:6a4ed159c57d288c3d6778287fe6e29f
Last active July 18, 2024 05:20
Shell command to get a txt dump of your NextJS codebase for prompting
bash -c '
print_directory_content() {
local dir="$1"
local prefix="$2"
echo "${prefix}${dir##*/}/"
for item in "$dir"/*; do
base_name=$(basename "$item")
if [[ "$base_name" == ".next" ||
"$base_name" == "node_modules" ||
"$base_name" == "data" ||
Simplify: Code Review and Cleanup
Review all changed files for reuse, quality, and efficiency. Fix any issues found.
Phase 1: Identify Changes
Run git diff (or git diff HEAD if there are staged changes) to see what changed. If there are no git changes, review the most recently modified files that the user mentioned or that you edited earlier in this
conversation.
Phase 2: Launch Three Review Agents in Parallel