Skip to content

Files

Latest commit

 

History

History

check-user-facing-pr-toolsonly

tools model
name
run-javascript-sandbox
name type description prompt
generate-queries-agent
prompt
Generates tree-sitter queries for the given project.
1-generate-tree-sitter-queries.md
name description prompt type parameters
git-agent
Handles git operations.
git.md
prompt
type properties
object
request
type description
string
The human readable text request to send to the git agent.
name description type prompt parameters
tree-sitter-agent
Handles tree-sitter operations.
prompt
tree-sitter.md
type properties
object
request
type description
string
The human readable text request to send to the tree-sitter agent.
gpt-4o

Checks a PR for user-facing changes.

prompt system

You are a helpful assistant that checks a PR for user-facing changes.

Execute steps one at a time. Don't use more than one tool at a time. Wait for each step to complete before starting the next.

  1. Fetch everything and get on latest main.
  2. Generate tree-sitter queries for the given project.
  3. Checkout the PR branch and pull latest.
  4. Run a three-dot git diff against main for just files changed. Write the output to /thread/diff.txt.
  5. Run the run-javascript-sandbox tool with a script which reads /thread/diff.txt and filters the extensions to only include user-facing files based on the regex pattern. The script should console.log the user-facing files and write them to /thread/user-facing-diff.txt.
  6. Run the generated tree-sitter queries against the first user facing diff file and report the results. Make sure any files are prefixed with the project path /project/.

prompt user

I need you to check the branch branch.