### Sample Prompt for Repository Query Source: https://docs.askthecode.ai/usage/custom-branches This sample demonstrates how to structure a prompt to query a specific repository and ask for an example of its usage. ```text https://github.com/langchain-ai/langchainjs please give me an example of how it can be used ``` -------------------------------- ### Commit URL Example Source: https://docs.askthecode.ai/features/commits/commit-details Provide the URL of the GitHub commit you want to analyze. ```text https://github.com/dotnet/runtime/commit/b09e18e8b6092e35611c2567bd55e8909ea78d7d ``` -------------------------------- ### Create New Branch and HTML File Source: https://docs.askthecode.ai/features/files/file-creation This example demonstrates creating a new branch and then creating an HTML file within that branch in a GitHub repository using AskTheCode. ```markdown https://github.com/askthecode/test-repo Please do the following: 1. Create new branch 2048-game 2. In this newly created branch create html file with simple board for the 2048 game 3. Save this html to the "2048-game" directory ``` -------------------------------- ### Langchain and ChatGPT Plugins Integration Prompt Source: https://docs.askthecode.ai/samples This prompt is used to find details about integrating ChatGPT plugins into the Langchain pipeline. It specifies the repository path and asks for an example of using the relevant tool. ```text https://github.com/langchain-ai/langchain/tree/master/docs Langchain is capable of integrating ChatGPT Plugins into the pipeline. For this it uses the specific tool. Please give me an example of using this tool ``` -------------------------------- ### Analyze GitHub Repository with AskTheCode Source: https://docs.askthecode.ai/usage/basic-usage Provide a GitHub repository URL and ask a question to get insights. Ensure the repository URL is correct and accessible. ```text https://github.com/langchain-ai/langchain What is LangChain? ``` -------------------------------- ### Delete File Prompt Example Source: https://docs.askthecode.ai/features/files/file-deletion Use this prompt to instruct AskTheCode to delete a specific file from a specified branch in a GitHub repository. Ensure the repository URL, branch name, and file path are accurate. ```prompt Please delete the file named "old_version.txt" in the branch "feature/update" of the repository https://github.com/username/repository. ``` -------------------------------- ### Prompt for Small Commit Analysis Source: https://docs.askthecode.ai/features/commits/commit-details This prompt guides ChatGPT to analyze a specific GitHub commit, detailing changes, line counts, and code reviews. ```text Act as a proficient C# .NET developer. Please give me an overview of the commit and then iterate over the changes in this commit, analyze files one by one. For each file output: 1. How many lines were added, updated, and deleted (in one line) 2. Describe what have been changed. Do not use some general reviews like code cleanup etc but describe the actual change. If code is added, say what new code does. If updated, analyze what was before and how the new code improves the previous one. If deleted, say what has been deleted and try to elaborate why. 3. Map changes to the commit description and how it correlates. 4. Please make a review of the changes and say if some fixes are required. Pay attention both to coding style and the meaning of changes. Especially this goes to removal - highlight which code has been removed and why. Respond only with "passed the review" or "failed." 5. Highlight areas that should be reviewed by a human. Do that only when you spot some issues with the changes or when you cannot be sure that the change is needed and solves any issue. Otherwise, say that no review is needed. ``` -------------------------------- ### Find Qdrant Vectorstore File and Extract Definitions Source: https://docs.askthecode.ai/usage/large-files Use this prompt to locate the file defining the Qdrant vectorstore and then search for all defined classes and functions within that file. ```prompt https://github.com/langchain-ai/langchain/ Please find path to the file that defines the qdrant vectorstore. Once you know the file path, search for all defined classes and functions in this file. ``` -------------------------------- ### Initial Prompt for Endpoint Analysis Source: https://docs.askthecode.ai/usage/iterative This prompt instructs AskTheCode to locate, analyze, and fetch dependencies for a specific API endpoint within a given GitHub repository. ```text You are a technical documentation writer for the eShopOnWeb repository. Your task is to provide a clear and detailed description of the full handling flow for the endpoint 'GET api/catalog-items' in the given GitHub repository: https://github.com/dotnet-architecture/eShopOnWeb Follow these steps: 1. Locate the file that handles the specified endpoint in the repository. Make sure that it is the correct file and it indeed contains the logic for the endpoint handling. 2. Analyze the code of the handler to understand its functionality. 3. Fetch the code of all dependencies related to the route handler and data retrieval logic. 4. Analyze the dependencies, including their code and further dependencies if needed. 5. Describe the main components involved in handling the 'GET api/catalog-items' endpoint and explain their interaction. Ensure your description includes any abstract classes or interface implementations as well as explanations of any external library usage. Make sure to provide a structured and easy-to-understand response that demonstrates a deep understanding of the codebase. ``` -------------------------------- ### Prompt to Summarize and Continue Analysis Source: https://docs.askthecode.ai/usage/iterative This prompt asks AskTheCode to summarize its findings so far and then continue with the dependency analysis, ensuring context is maintained. ```text Please summarize what you've learned so far and then continue with the dependencies analysis ``` -------------------------------- ### Prompt to Continue Dependency Analysis Source: https://docs.askthecode.ai/usage/iterative A follow-up prompt to instruct AskTheCode to proceed with the dependency analysis after the initial handler identification. ```text Please continue with the dependencies analysis ``` -------------------------------- ### List Branches in a Repository Source: https://docs.askthecode.ai/features/branches/list-branches Use this prompt to request a list of all branches for a given GitHub repository URL. Ensure the URL is correctly formatted. ```text Please list all branches in https://github.com/huggingface/pytorch-image-models ``` -------------------------------- ### Request Pull Request Overview Source: https://docs.askthecode.ai/features/pull-requests/pullrequest-overview Provide the GitHub pull request URL and ask for an overview, including a description of each change and a summary of the conversation. ```text https://github.com/huggingface/pytorch-image-models/pull/2048 Please give me an overview of the pull request, describe each change and summarize the conversation ``` -------------------------------- ### List Pull Requests in a Repository Source: https://docs.askthecode.ai/features/pull-requests/pullrequests-list Use this prompt to request a list of all open pull requests in a given GitHub repository. The response will include the pull request name and URL. ```text Please list pull requests in https://github.com/huggingface/pytorch-image-models Respond with the pull request name and URL ``` -------------------------------- ### Create a New Branch from a Specific Source Branch Source: https://docs.askthecode.ai/features/branches/create-branch Use this prompt to create a new branch from a specified source branch in a GitHub repository. Ensure you provide the repository URL, the new branch name, and the source branch name. ```natural language Please create a new branch named "feature-x" in https://github.com/username/repository from the "development" branch. ``` -------------------------------- ### Retrieve Specific Function Body Source: https://docs.askthecode.ai/usage/large-files After identifying a function, use this prompt to retrieve its body, specifying a line limit to ensure completeness. This is useful for analyzing functions in large files. ```prompt Please search for the definition of the _asearch_with_score_by_vector function. Grab first 300 lines. Respond with the body of this function. ``` -------------------------------- ### Requesting Pull Request File Changes Analysis Source: https://docs.askthecode.ai/features/pull-requests/pullrequest-changes Use this prompt to request a detailed analysis of all changes within a specified GitHub pull request. It's particularly useful for large PRs where the overview might be limited. ```text https://github.com/dotnet/efcore/pull/33302 Please iterate over all changes and respond in the format: - ``` -------------------------------- ### Prompt for Mermaid Flowchart Generation Source: https://docs.askthecode.ai/usage/iterative This prompt instructs AskTheCode to generate a Mermaid flowchart diagram based on the research conducted, organizing related entities into subgraphs and using specific node shapes for databases. ```text Please build a detailed mermaid flowchart diagram based on this research. Group related entities into subgraphs, use cylindrical shaped nodes only for the database ``` -------------------------------- ### Querying a Specific Branch URL Source: https://docs.askthecode.ai/usage/custom-branches Append the branch name to the repository URL after /tree/ to query a specific branch. ```text https://github.com///tree/ ``` -------------------------------- ### Querying a Specific Commit SHA URL Source: https://docs.askthecode.ai/usage/custom-branches Append the commit SHA to the repository URL after /tree/ to query a specific commit. ```text https://github.com/owner/repo/tree/ ``` -------------------------------- ### Requesting Pull Request Comment Analysis Source: https://docs.askthecode.ai/features/pull-requests/pullrequest-comments Provide the GitHub pull request URL and specify the need to analyze comments and discussions for a summary. This is particularly useful for large PRs with extensive conversations. ```text https://github.com/dotnet/efcore/pull/10264 Please iterate over the conversation and provide me a summary of each comment and the discussion under it. ``` -------------------------------- ### Delete a GitHub Branch Source: https://docs.askthecode.ai/features/branches/delete-branch Use this prompt to delete a specified branch from a GitHub repository. Ensure you provide the correct repository URL and branch name. This feature requires GitHub OAuth authentication. ```text Please delete the "feature-x" branch in https://github.com/username/repository. ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.