diegosouzapw/awesome-omni-skill/coding-style

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Coding style, testing, and PR guidelines for the Kubb ecosystem. Use when writing or reviewing code for the Kubb ecosystem.

Install

npx vskill@latest install diegosouzapw/awesome-omni-skill/coding-style

SKILL.md

Code Style and Testing Skill

When to Use

  • When creating or reviewing a PR that changes code
  • When adding a new package or feature to the monorepo
  • When updating CI, linting, or formatting configuration
  • When onboarding new contributors and sharing repository conventions

What It Does

This skill documents the repository's coding conventions, testing guidelines, and PR checklist so contributors and automation can produce consistent, high-quality changes.

  • Defines formatting, linting, and TypeScript conventions
  • Describes testing workflow and CI expectations
  • Outlines PR requirements, changelog updates, and release-related steps
  • Provides common troubleshooting and recovery commands

How to Use

Run the basic developer checks and fixes locally before committing or opening a PR:

bash
# Format code and attempt autofixes
pnpm run format
# Lint the repository
pnpm run lint
# Run unit tests
pnpm test
# Create a changeset for versioning
pnpm changeset
# Typecheck whole repo
pnpm typecheck

Follow the PR checklist and run the commands above in the same order: format → lint → typecheck → test → changeset.

Repository Facts

  • Monorepo: Managed by pnpm workspaces and Turborepo
  • Module system: ESM-only (type: "module" across repo)
  • Node version: 20
  • Testing Library: Vitest
  • Versioning: Changesets for versioning and publishing
  • CI/CD: GitHub Actions

Coding Style Guidelines

Basic Rules
  • Quotes: Single quotes, no semicolons (see biome.json)
  • Patterns: Prefer functional patterns
  • Ternary operators: Keep ternary operators to one level deep for readability. For nested conditions, use if/else statements or extract to a helper function.
Naming Conventions
Element / ContextNaming convention
File / directory namescamelCase
Variables / functionscamelCase
Types / InterfacesPascalCase
React componentsPascalCase
TypeScript Conventions
  • Module resolution: "bundler"; ESM only
  • Strict typing: NEVER use any type or as any casts. Always use proper types, generics, or unknown/never when appropriate.
  • Files: .ts for libraries, .tsx for React components, .vue for Vue components
  • DTS output: Managed by tsdown
  • Importing: Always use proper import statements at the module level instead of inline type imports
  • Exporting: use "exports" map and typesVersions as needed. Keep public API stable
  • Root level types: Define types at the root level of the file, not inside functions
  • Function syntax in Objects: Use function syntax (not arrow functions) in object methods to enable use of this keyword

Testing

  • Test location: *.test.ts or *.test.tsx in src folders
  • Focus on specific tests: pnpm test "<test name>"
  • Always add or update tests for code changes and when needed update snapshots with the -u flag
  • Fix all test and type errors until suite is green
  • After moving files or changing imports: Run pnpm lint && pnpm typecheck
Writing Conventions
  • Focused: Test one thing at a time
  • Isolated: Don't depend on other tests
  • Repeatable: Same results every time
  • Fast: Keep tests quick
  • Clear: Easy to understand what's being tested

PR Instructions

Follow these steps when creating a PR:

  1. Make sure that the following commands pass locally:
  • pnpm format && pnpm lint
  • pnpm typecheck
  • pnpm test
  1. Create a git commit with Title format: [<plugin-name>] <Title>
  2. Push your branch and open a PR against main
  3. Fill out the PR template completely
  4. Add a changeset using pnpm changeset
  5. Request reviews from relevant maintainers
  6. Address feedback and make any requested changes
  7. Once approved, wait for CI to pass and merge the PR

Related Skills

SkillUse For
[../changelog/SKILL.md](../changelog/SKILL.md)Update changelogs, Mandatory for all PRs that include code changes

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
0

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/diegosouzapw/awesome-omni-skill/coding-style/badge)](https://verified-skill.com/skills/diegosouzapw/awesome-omni-skill/coding-style)

Something wrong with this skill or its page? Tell us.