Agent Skills: Code Style & Discovery

Discovery, typing, and execution standards.

UncategorizedID: joncrangle/.dotfiles/code-style

Install this agent skill to your local

pnpm dlx add-skill https://github.com/joncrangle/.dotfiles/tree/HEAD/dot_config/opencode/skills/code-style

Skill Files

Browse the full folder contents for code-style.

Download Skill

Loading file tree…

dot_config/opencode/skills/code-style/SKILL.md

Skill Metadata

Name
code-style
Description
Discovery, typing, and execution standards.

<skill_doc>

Code Style & Discovery

πŸ” Discovery Phase (Mandatory)

Before writing any code:

  1. Search: Search for existing patterns using the search_files tool.
  2. Read: Read similar files to match style.
  3. Types: Find the TypeScript interfaces/types defined in the project.

πŸ›‘οΈ Coding Standards

  • Strict TypeScript: No any. Define interfaces.
  • Error Handling: Use try/catch with specific error logging. No silent failures.
  • Comments: Comment why, not what.
  • Imports: Use absolute imports if project configured (check tsconfig).

πŸ§ͺ Verification

  • Test-Driven: Create/Update tests for every logic change.
  • Lint: Run linting before reporting success.

πŸ› οΈ Tooling

  • Use bun tools/hotspots.ts to find frequently changed files.
  • Use list_files to explore the directory structure. </skill_doc>