{"id":28268416,"url":"https://github.com/jonmbake/standard-prompts","last_synced_at":"2025-06-12T13:33:07.672Z","repository":{"id":255755704,"uuid":"852772929","full_name":"jonmbake/standard-prompts","owner":"jonmbake","description":"Standard AI prompts for the command line.","archived":false,"fork":false,"pushed_at":"2024-09-20T10:34:02.000Z","size":62,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-20T15:12:46.757Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jonmbake.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-09-05T11:59:35.000Z","updated_at":"2024-12-06T21:24:41.000Z","dependencies_parsed_at":null,"dependency_job_id":"72505dbc-b5a7-44bf-b430-ba0d8ab3a08f","html_url":"https://github.com/jonmbake/standard-prompts","commit_stats":null,"previous_names":["jonmbake/standard-prompts"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/jonmbake/standard-prompts","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonmbake%2Fstandard-prompts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonmbake%2Fstandard-prompts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonmbake%2Fstandard-prompts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonmbake%2Fstandard-prompts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jonmbake","download_url":"https://codeload.github.com/jonmbake/standard-prompts/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonmbake%2Fstandard-prompts/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259473558,"owners_count":22863501,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-05-20T15:12:47.197Z","updated_at":"2025-06-12T13:33:07.658Z","avatar_url":"https://github.com/jonmbake.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# standard-prompts\n\nStandard AI prompts that can be invoked from the command line. To get started, make sure `node.js` is installed and run:\n\n```\nnpm install -g standard-prompts\n```\n\n*Note:* This command will install standard prompts in the NPM `bin` directory; you may need to `source` the .bashrc or .zshrc file in order for the commands to be available in the same terminal session.\n\n_Standard prompts_ uses the [OpenAI API](https://platform.openai.com/docs/api-reference/introduction). Make sure to also set `OPENAI_API_KEY` environment variable (and optionally `OPENAI_API_MODEL`):\n\n```\nexport OPENAI_API_KEY=\u003cinsert-api-key-here\u003e\nexport OPENAI_API_MODEL=gpt-4\n```\n\nIf `OPENAI_API_MODEL` env var is not set, _Standard Prompts_ defaults to the `gpt-4` model.\n\n## Usage\n\nInput can be either passed in as an argument to a _standard prompt_ or piped in. For example, both are valid:\n\n```\nai_code_generate \"Standard gitignore file for a node.js project\"\necho \"Standard gitignore file for a node.js project\" | ai_code_generate\n```\n\n## Philosophy\n\n### Composable\n\n_Standard prompts_ follows the Unix philosophy of being composable. For example, commands can be piped together:\n\n```\ncat email-draft.txt | ai_review_email | pbcopy\n```\n\nThe example commands:\n - Takes an email draft from `email-draft.txt`\n - Pipes it to `ai_review_email` to review the email.\n - Finally, pipes the reviewed email to `pbcopy`, which saves it to the clipboard for pasting into an email.\n\n### Favor Markdown Output\n\nOutput is generally given as Markdown.\n\n## Available Standard Prompts\n\n### Email\n\n| Command             | Description                                      |\n|---------------------|--------------------------------------------------|\n| `ai_email_generate` | Generate an email given passed specifications.   |\n| `ai_email_review`   | Reviews and suggests improvements for an email draft.|\n| `ai_email_revise`   | Reviews and outputs only the contents of the improved email. |\n\n### Code\n\n| Command             | Description                                      |\n|---------------------|--------------------------------------------------|\n| `ai_code_qa`        | Answer questions about code input.               |\n| `ai_code_generate`  | Generate code given description input.           |\n| `ai_code_review`    | Reviews and suggests improvements for code.      |\n| `ai_code_revise`    | Reviews and outputs only the contents of the improved code.      |\n\n### Financial\n\n| Command                | Description                                   |\n|------------------------|-----------------------------------------------|\n| `ai_financial_qa`      | Answers financial related questions.          |\n| `ai_financial_review`  | Reviews financial statements or documents passed as input.|\n\n### Health\n\n| Command              | Description                                     |\n|----------------------|-------------------------------------------------|\n| `ai_health_qa`       | Answers health related questions.               |\n| `ai_health_review`   | Reviews health-related documents passed as input.|\n\n### General \n\n| Command          | Description                                       |\n|------------------|---------------------------------------------------|\n| `ai_generate`    | Generates text based on a given input.            |\n| `ai_review`      | Reviews a given text input.                       |\n| `ai_summarize`   | Summarizes a given text input.                    |\n| `ai_qa`          | Answers general questions.                        |\n\n**Tip**: you can summarize this _Readme_ using _Standard Prompts_: `curl -s https://raw.githubusercontent.com/jonmbake/standard-prompts/main/README.md | ai_summarize`.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonmbake%2Fstandard-prompts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjonmbake%2Fstandard-prompts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonmbake%2Fstandard-prompts/lists"}