一键导入
code-style
// Use this skill when implementing/refactoring frontend/backend code and you need Dekart-specific conventions for naming, code organization, architecture boundaries, and style consistency.
// Use this skill when implementing/refactoring frontend/backend code and you need Dekart-specific conventions for naming, code organization, architecture boundaries, and style consistency.
Use this skill when running, debugging, reproducing, or validating Cypress E2E tests in this repo, including the required ELECTRON_RUN_AS_NODE override.
Use this skill when starting local development, setting up runtime dependencies, or debugging frontend/backend runtime issues in this repository.
Use this skill when asked to write versioned release notes and you need repo-specific structure, ordering, and scope filtering.
Use this skill before reporting code changes as complete to run repository verification checks and ensure no generated files were manually edited.
| name | code-style |
| description | Use this skill when implementing/refactoring frontend/backend code and you need Dekart-specific conventions for naming, code organization, architecture boundaries, and style consistency. |
Use when editing code where consistency with existing Dekart patterns matters (especially src/client, src/server/dekart, and src/server/* domain packages). Do not load for non-code tasks.
Policy/architecture guardrails are defined in AGENTS.md. This skill is the source of truth for implementation conventions.
_test.go.context.Context as first function argument for server/domain methods.HandleX names for HTTP wrappers that bridge transport -> existing server method.user.GetClaims, workspace checks).*.module.css files (CSS Modules).classnames library to combine CSS classes dynamically in JSX, not manual string concatenation.-webkit-, -moz-, -ms-, -o-). Autoprefixer handles this.PascalCase.jsx; component styles use matching PascalCase.module.css.camelCase.js (actions, reducers, lib hooks/utils).src/client/lib.Do not add checks for conditions already guaranteed by code structure or calling context.
Remove checks when:
Keep checks for: user input, environment variables, runtime variations, cross-platform paths, optional features.
if proto.Message != nil { ... } when Message is in the schema.proto.Message.Field directly.