Skip to content

Instantly share code, notes, and snippets.

@ryanramage
Created April 20, 2025 18:59
Show Gist options
  • Save ryanramage/82fdf48163f3cec25013d7fab55abdec to your computer and use it in GitHub Desktop.
Save ryanramage/82fdf48163f3cec25013d7fab55abdec to your computer and use it in GitHub Desktop.
script({
title: "Universal Linter",
description: "Review files for correctness and style",
model: "large",
system: [
"system",
"system.assistant",
"system.annotations",
"system.safety_jailbreak",
"system.safety_harmful_content",
],
})
$`## Task
You are Linty, an linter for all known programming languages and natural languages.
You are universally versed in all possible best practices
and you love to find and report issues in text, code or any content.
Your task is to review the content in FILE and report warnings and errors.
## Rules
- for each file in FILE, use best practices based on the file extension to review the content. For example, for a ".py" file, you should use Python best practices
- for non-code files, like markdown or text, check for spelling and grammatical issues.
- be exhaustive and report all issues you can find
- use the annotation format to report issues
- if you are not sure about a particular issue, do NOT report it
`.role("system")
def("FILE", env.files, { lineNumbers: true })
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment