From f0cad45379fbbe9584a666473731ece8dd521442 Mon Sep 17 00:00:00 2001 From: colinmcneil Date: Tue, 10 Sep 2024 14:53:00 -0400 Subject: [PATCH] New pylint prompts --- README.md | 2 ++ prompts/monologue.md | 19 +++++++++++++++++++ prompts/pylint/010_system_prompt.md | 1 - prompts/pylint/020_user_prompt.md | 4 ---- ...violations.md => 1-generate-violations.md} | 0 .../{db-schema.md => 2-make-db-schema.md} | 0 ...=> 3-4-json-violations->sql-violations.md} | 0 prompts/pylint/5-6-top-level-ranges.md | 19 +++++++++++++++++++ prompts/pylint/README.md | 13 ------------- prompts/pylint/RUNNIT.md | 5 +++++ 10 files changed, 45 insertions(+), 18 deletions(-) create mode 100644 prompts/monologue.md delete mode 100644 prompts/pylint/010_system_prompt.md delete mode 100644 prompts/pylint/020_user_prompt.md rename prompts/pylint/{generate-violations.md => 1-generate-violations.md} (100%) rename prompts/pylint/{db-schema.md => 2-make-db-schema.md} (100%) rename prompts/pylint/{json->insert.md => 3-4-json-violations->sql-violations.md} (100%) create mode 100644 prompts/pylint/5-6-top-level-ranges.md delete mode 100644 prompts/pylint/README.md create mode 100644 prompts/pylint/RUNNIT.md diff --git a/README.md b/README.md index ed06acd..0b9d5e3 100644 --- a/README.md +++ b/README.md @@ -42,7 +42,9 @@ Set OpenAI key ```sh echo $OPENAI_API_KEY > $HOME/.openai-api-key ``` + Run + ```sh docker run --rm \ diff --git a/prompts/monologue.md b/prompts/monologue.md new file mode 100644 index 0000000..9f946b8 --- /dev/null +++ b/prompts/monologue.md @@ -0,0 +1,19 @@ +--- +extractors: + - name: project-facts +--- + +# Example prompt +Use top-level markdown headers to separate your markdown file into blocks. Since this section doesn't\ have a title starting with `prompt`, it doesn't get sent to the LLM. + +# Prompt system +You are an assistant who can write comedic monologues in the style of Stephen Colbert. + +# Prompt user +Tell me about my project. + +My project uses the following languages: +{{project-facts.languages}} + +My project has the following files: +{{project-facts.files}} diff --git a/prompts/pylint/010_system_prompt.md b/prompts/pylint/010_system_prompt.md deleted file mode 100644 index ed2bce5..0000000 --- a/prompts/pylint/010_system_prompt.md +++ /dev/null @@ -1 +0,0 @@ -You are an assistant who specializes in running pylint. \ No newline at end of file diff --git a/prompts/pylint/020_user_prompt.md b/prompts/pylint/020_user_prompt.md deleted file mode 100644 index 9813db1..0000000 --- a/prompts/pylint/020_user_prompt.md +++ /dev/null @@ -1,4 +0,0 @@ - -Lint python files in my project using 'condensed' . - -Report the response. \ No newline at end of file diff --git a/prompts/pylint/generate-violations.md b/prompts/pylint/1-generate-violations.md similarity index 100% rename from prompts/pylint/generate-violations.md rename to prompts/pylint/1-generate-violations.md diff --git a/prompts/pylint/db-schema.md b/prompts/pylint/2-make-db-schema.md similarity index 100% rename from prompts/pylint/db-schema.md rename to prompts/pylint/2-make-db-schema.md diff --git a/prompts/pylint/json->insert.md b/prompts/pylint/3-4-json-violations->sql-violations.md similarity index 100% rename from prompts/pylint/json->insert.md rename to prompts/pylint/3-4-json-violations->sql-violations.md diff --git a/prompts/pylint/5-6-top-level-ranges.md b/prompts/pylint/5-6-top-level-ranges.md new file mode 100644 index 0000000..ae1c1a4 --- /dev/null +++ b/prompts/pylint/5-6-top-level-ranges.md @@ -0,0 +1,19 @@ +--- +tools: + - name: run-javascript-sandbox + description: execute javascript code + parameters: + type: object + properties: + javascript: + type: string + description: the javascript code to run + container: + image: vonwig/javascript-runner + command: + - "{{javascript|safe}}" +--- + +# prompt user +Use tree-sitter + diff --git a/prompts/pylint/README.md b/prompts/pylint/README.md deleted file mode 100644 index 3fc8275..0000000 --- a/prompts/pylint/README.md +++ /dev/null @@ -1,13 +0,0 @@ ---- -functions: - - name: pylint - description: Runs pylint against current project - parameters: - type: object - properties: - output_format: - type: string - description: The output level to use. `summary` | `json` | `condensed` | `complaints` - container: - image: vonwig/pylint:latest ---- diff --git a/prompts/pylint/RUNNIT.md b/prompts/pylint/RUNNIT.md new file mode 100644 index 0000000..cbcdc4d --- /dev/null +++ b/prompts/pylint/RUNNIT.md @@ -0,0 +1,5 @@ +--- +tools: + - name: pylint + ref: +---