/config_opencode

I want to natively bmad-method with opencode.

Primary LanguageJavaScript

OpenCode Configuration Project Overview

This repository contains the configuration and core components for the OpenCode agentic framework. It includes definitions for various agents, commands, and plugins designed to extend the capabilities of the OpenCode environment.

Development Guidelines

Build/Lint/Test Commands

As there is no package.json or explicit build system defined, standard JavaScript/Node.js practices are assumed.

  • Run a JavaScript file: node <file-path>
  • Linting: If ESLint is configured, typically npx eslint . or npm run lint
  • Testing: If a testing framework like Jest or Mocha is used, npx jest or npm test. To run a single test file: npx jest <path-to-test-file>

Code Style Guidelines

Adherence to consistent code style is crucial for maintainability.

  • Imports: Use absolute paths for internal modules where possible, and relative paths for sibling modules.
  • Formatting: Follow a consistent formatting style (e.g., Prettier). Use 2-space indentation.
  • Types: Utilize JSDoc for type annotations in JavaScript files to improve readability and enable better tooling support.
  • Naming Conventions:
    • Variables and functions: camelCase
    • Classes: PascalCase
    • Constants: UPPER_SNAKE_CASE
  • Error Handling: Implement robust error handling using try...catch blocks for asynchronous operations and explicit error checks for synchronous code.
  • Comments: Add comments to explain complex logic, design decisions, or non-obvious code sections. Avoid commenting on obvious code.

Agentic Rules

This project is designed to be used by agentic coding agents. When making changes, agents should:

  • Adhere to existing patterns: Mimic the style, structure, and architectural patterns of existing code.
  • Prioritize clarity: Ensure code is easily understandable and maintainable by other agents and human developers.
  • Self-verify: Implement and run tests to verify changes.