Agent skill
code-style
Discovery, typing, and execution standards.
Install this agent skill to your Project
npx add-skill https://github.com/joncrangle/.dotfiles/tree/main/dot_config/opencode/skills/code-style
SKILL.md
<skill_doc>
Code Style & Discovery
🔍 Discovery Phase (Mandatory)
Before writing any code:
- Search: Search for existing patterns using the
search_filestool. - Read: Read similar files to match style.
- Types: Find the TypeScript interfaces/types defined in the project.
🛡️ Coding Standards
- Strict TypeScript: No
any. Define interfaces. - Error Handling: Use
try/catchwith 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.tsto find frequently changed files. - Use
list_filesto explore the directory structure. </skill_doc>
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
lang-javascript
This skill should be used when the user asks to "write JavaScript", "debug a Node.js/Bun app", "create a Hono server", "configure Biome", "run tests with bun test", or mentions .js/.mjs files. Covers ES2024+, Bun, and Hono patterns.
opentui
Comprehensive OpenTUI skill for building terminal user interfaces. Covers the core imperative API, React reconciler, and Solid reconciler. Use for any TUI development task including components, layout, keyboard handling, animations, and testing.
vitest
Specialist in Vitest, a blazing fast unit test framework powered by Vite. Focuses on Jest compatibility, in-source testing, and native ESM support.
PreventionPatterns
Known bug patterns and their fixes to prevent regression.
lang-typescript
This skill should be used when the user asks to "write TypeScript", "debug TypeScript", "create a SolidJS component", "configure TanStack Start", "validate data with Valibot", or mentions .ts/.tsx files. Covers TypeScript 5.9+, SolidJS, and TanStack patterns.
just-cli
This skill should be used when the user asks to "create a justfile", "write just recipes", "configure just settings", "add just modules", "use just attributes", "set up task automation", mentions justfile, just command runner, or task automation with just.
Didn't find tool you were looking for?