84 lines
3.0 KiB
Plaintext
84 lines
3.0 KiB
Plaintext
{
|
|
"$schema": "https://opencode.ai/config.json",
|
|
"theme": "opencode",
|
|
"model": "anthropic/claude-sonnet-4-5",
|
|
"autoupdate": true,
|
|
"tui": {
|
|
"scroll_speed": 2,
|
|
"scroll_acceleration": {
|
|
"enabled": true
|
|
},
|
|
"diff_style": "auto"
|
|
},
|
|
"formatter": {
|
|
"python": {
|
|
"command": ["black", "-l", "79", "--line-length=100", "$FILE"],
|
|
"extensions": [".py"]
|
|
},
|
|
"python-imports": {
|
|
"command": ["isort", "--profile", "black", "--line-length=100", "$FILE"],
|
|
"extensions": [".py"]
|
|
}
|
|
},
|
|
"agent": {
|
|
"python": {
|
|
"description": "Python expert following Visual Studio coding style",
|
|
"prompt": "You are a Python expert following Visual Studio coding standards:\n- Use 4 spaces for indentation\n- Follow PEP 8 with line length 100 (not 79)\n- Import standard library first, then third-party, then local modules\n- Use descriptive variable names in snake_case\n- Use PascalCase for classes\n- Use UPPER_CASE for constants\n- Include docstrings for functions and classes\n- Use type hints where appropriate\n- Group related imports with blank lines between sections",
|
|
"color": "#3776AB"
|
|
},
|
|
"powershell": {
|
|
"description": "PowerShell scripting expert",
|
|
"prompt": "You are a PowerShell expert following Microsoft best practices and PSScriptAnalyzer standards.",
|
|
"color": "#5E1F9E"
|
|
}
|
|
},
|
|
"command": {
|
|
"python-lint": {
|
|
"template": "Run flake8, black, and isort on Python files to check and fix style issues. Use line length 100 and 4-space indentation.",
|
|
"description": "Lint and format Python code",
|
|
"agent": "python"
|
|
},
|
|
"python-test": {
|
|
"template": "Run pytest on the codebase and show test results with coverage. Focus on failing tests and suggest fixes.",
|
|
"description": "Run Python tests with pytest",
|
|
"agent": "python"
|
|
},
|
|
"python-imports": {
|
|
"template": "Organize imports using isort with black profile and 100 character line length",
|
|
"description": "Organize Python imports",
|
|
"agent": "python"
|
|
},
|
|
"ps-lint": {
|
|
"template": "Run PSScriptAnalyzer on PowerShell files and fix any issues found",
|
|
"description": "Lint PowerShell code",
|
|
"agent": "powershell"
|
|
},
|
|
"ps-test": {
|
|
"template": "Run Pester tests and show results with suggested fixes",
|
|
"description": "Run PowerShell tests",
|
|
"agent": "powershell"
|
|
},
|
|
"ps-format": {
|
|
"template": "Format PowerShell code according to best practices using Invoke-Formatter",
|
|
"description": "Format PowerShell code",
|
|
"agent": "powershell"
|
|
}
|
|
},
|
|
"instructions": ["python-rules.md", "powershell-rules.md"],
|
|
"permission": {
|
|
"edit": "allow",
|
|
"bash": "ask"
|
|
},
|
|
"keybinds": {
|
|
"leader": "ctrl+x",
|
|
"command_list": "ctrl+p",
|
|
"agent_list": "ctrl+shift+a",
|
|
"model_list": "ctrl+shift+m",
|
|
"messages_copy": "ctrl+shift+c",
|
|
"session_share": "ctrl+shift+s",
|
|
"input_submit": "return",
|
|
"input_newline": "shift+return,ctrl+return",
|
|
"input_clear": "ctrl+c",
|
|
"terminal_suspend": "ctrl+z"
|
|
}
|
|
} |