name: double-review description: Perform a comprehensive code review using two independent parallel agents (native Claude and Gemini) focused on simplicity and correctness. Use when reviewing code changes, PRs, or when quality validation is needed. tools: Task, Bash, Write, Read, Grep, Glob model: inherit permissions: allow: - Read - Grep - Glob
| #!/usr/bin/env -S uv run --script | |
| # /// script | |
| # requires-python = ">=3.11" | |
| # dependencies = [ | |
| # "pyjsoncanvas>=1.0.2", | |
| # ] | |
| # /// | |
| """ | |
| Validate JSON Canvas files against the spec. |
The memory bank concept tells the GenAI Agent to track the context of it's current task. Generally this helps it to stay more focused and produce better results while also encapsulating important contextual and technical infomration that is required for larger tasks. It also make it easier for the agent to identify new or future tasks without becoming sidetraked.
The iniital text init_memory_bank.md is a simple prompt to tell the agent to create the required memory bacnk content. THis can of course be adjusted so that it tracks additional information or is stored in a different location.
I generally include the memory bank folder in the .gitignore because I view it as hyper specific to my work on a project. But for personal projects, you might also commit it.
The how_to_use.md is also included into .memory folder. I actually asked it ot generate this as a "minimal prompt that tells you how to use the memory bank"
| -- Create the extension if it doesn't exist | |
| CREATE EXTENSION IF NOT EXISTS log_fdw; | |
| -- Create the server if it doesn't exist | |
| DO $$ | |
| BEGIN | |
| IF NOT EXISTS ( | |
| SELECT 1 FROM pg_foreign_server WHERE srvname = 'log_fdw_server' | |
| ) THEN |
| FROM python:3.12.0-slim-bullseye AS build | |
| RUN apt-get update && apt-get install -y gcc | |
| ENV POETRY_VIRTUALENVS_IN_PROJECT=true \ | |
| POETRY_NO_INTERACTION=1 \ | |
| POETRY_VIRTUALENVS_OPTIONS_NO_SETUPTOOLS=1 | |
| RUN pip install "poetry>=1.8" | |
| WORKDIR /app |
- It retrieves the name of the default branch from the remote repository using the
git ls-remotecommand. - It checks out the
defaultbranch locally. - It lists all local branches using the
git for-each-refcommand. - For each local branch, it finds the merge base between the default branch and the current branch using the
git merge-basecommand. - It creates a temporary commit tree for the current branch using the
git commit-treecommand. - It checks if the temporary commit is a descendant of the default branch using the
git cherrycommand. - If the temporary commit is not a descendant (i.e., the branch has been merged into the default branch), it prints a message indicating that the branch can be deleted.
| #!/bin/bash | |
| # source: https://gist.github.com/LucasRoesler/c7b245bcd9f33bc989e279ba9cdb9828 | |
| # usage: | |
| # create-repo name [owner] | |
| # create-repo name # owner defaults to contiamo | |
| # name is the first arg, fallback to the the current directory name | |
| NAME="$1" | |
| OWNER=${2:-contiamo} |
| import { S3Client } from "@aws-sdk/client-s3"; | |
| import { streamingWrite, Upload } from "./writer"; | |
| const sleep = (ms: number) => { | |
| return new Promise(resolve => setTimeout(resolve, ms)); | |
| }; | |
| // skip because it requires a real s3 bucket, this is still useful for testing locally. | |
| describe.skip("streamingWriter", () => { |
| kubectl create namespace openfaas-fn | |
| kubectl create namespace openfaas | |
| kubectl -n openfaas create secret generic basic-auth \ | |
| --from-literal=basic-auth-user=admin \ | |
| --from-literal=basic-auth-password=localdev | |
| helm upgrade lucas-of openfaas/openfaas \ | |
| --install \ | |
| --namespace openfaas \ | |
| --set basic_auth=true \ | |
| --set functionNamespace=openfaas-fn \ |