Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
82 changes: 82 additions & 0 deletions .vscode/cody.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
{
"explain-code-german": {
"description": "Explain a selected code snippet in detail in German",
"prompt": "Explain the selected code snippet in detail, focusing on programming languages like C, C++, Python, Makefile, and others. Analyze the code's functions, values, and properties. Examine the working environment and context, considering variables, functions, data types, and other relevant information. Tasks: Provide a detailed explanation of the code's function, parameters, return values, and side effects. Identify and explain variables, functions, classes, and elements used. Analyze libraries, modules, and external resources. Examine error handling and exception handling. Describe performance and efficiency aspects. Focus exclusively on the selected code snippet. Provide explanations in German, using common technical terms to ensure clarity and precision. Avoid speculation and do not add any details not present in the code.",
"context": {
"selection": true,
"currentDir": true
}
},
"translate-german": {
"description": "Translate English texts within a selected code snippet into German",
"prompt": "Translate English texts within the selected code snippet into German, ensuring the translation reflects how a German software developer would translate it. Use common English technical terms and designations that are widely recognized and used among German developers, instead of literal German translations. Tasks: Translate documents, READMEs, code comments, release descriptions, patch notes, and other text formats like Markdown, HTML, etc., only within the selected code. Use the current directory only for context to improve translation quality. Ensure that in German translations, pronouns are always in the informal 'Du-Form' rather than the formal 'Sie-Form'. Focus on accuracy, clarity, and consistency in the translated text, and maintain the professional tone expected in a developer's environment. Avoid speculation and do not add any details not present in the code.",
"context": {
"selection": true,
"currentDir": true
}
},
"analyze-debug": {
"description": "Analyze, explain, and help solve, troubleshoot, and debug!",
"prompt": "Analyze the selected code snippet or build process log, which contains problems and error messages. Identify and explain the issues, provide solutions, and suggest corrections in the code. Be prepared to handle additional requests related to this analysis. Use the workspace in the current directory for contextual knowledge to ensure more accurate output. Respond to all requests in German only.",
"context": {
"selection": true,
"currentDir": true
}
},
"recent-git-changes": {
"description": "Summarize recent changes",
"prompt": "Summarize the given git changes in 3-5 sentences. Respond to all requests in German only.",
"context": {
"command": "git log -10 --pretty=format:'%h - %an: %s' --stat",
"selection": false
}
},
"explain-current-dir": {
"description": "Explain current directory",
"prompt": "At a high level, explain what this directory is used for. Respond to all requests in German only.",
"context": {
"currentDir": true,
"selection": false
}
},
"readme": {
"description": "Readme for current directory",
"prompt": "Create a detailed `README.md` to document the code in the current directory. Provide an overview of the repository's purpose. Explain the functionality of the code. Describe the key files, functions, classes, and features. Use Markdown/HTML syntax for headings, code blocks, lists, etc., to enhance readability. Keep the content clear and concise. Write the README in a format compatible with GitHub. Include code examples in appropriate code blocks. Avoid speculation and do not invent additional details.",
"context": {
"currentDir": true,
"selection": true
}
},
"compare-tabs": {
"description": "Compare files in opened tabs",
"prompt": "Examine the shared code snippets from my opened tabs. Then explain the relationship between the code samples by answering these questions: 1. What are the main tasks or functions the code is performing? 2. Are there any similarities in functions or logic across the samples? 3. Does one code snippet call or import another? If so, how do they interact? 4. Are there any notable differences in how they approach similar problems? 5. Overall, how are the code snippets related - do they work together as part of a larger program, solve variants of the same problem, or serve entirely different purposes? Respond to all requests in German only.",
"context": {
"openTabs": true,
"selection": false
}
},
"document-code-german": {
"description": "Document and comment on the selected code snippet.",
"prompt": "Add German-language documentation comments to the selected code snippet. Use the appropriate documentation format according to the code syntax. The comments should: Briefly and concisely describe functions/methods. List parameters with their types and purposes. Specify return values. Mention important notes or special considerations. Place the comments according to the conventions of the respective programming language. Ensure that: The existing code syntax remains entirely intact. The code is not shortened or otherwise modified. Only comments are added, without altering the functional code.",
"context": {
"selection": true,
"currentDir": true
}
},
"commit-message": {
"description": "Commit message for current changes",
"prompt": "Suggest an informative commit message by summarizing code changes from the shared command output. The commit message should follow the conventional commit format and provide meaningful context for future readers.",
"context": {
"selection": false,
"command": "git diff --cached"
}
},
"explain-commit-german": {
"description": "Explain all changes in a specific commit in German",
"prompt": "Describe all changes made in the specified commit in detail, providing a side-by-side comparison of the code changes for each affected file, as seen on GitHub when viewing a commit. Summarize the differences, including additions, deletions, and modifications, and explain the impact of these changes. Respond to all requests in German only.",
"context": {
"command": "git show <commit-hash>",
"selection": false
}
}
}
Loading
Loading