Skip to main content

conventions

Apply repository design and testing conventions when writing, refactoring, or reviewing TypeScript packages, services, state, tests, or runtime hosts. Includes package-level E2Es and fixture design.

跳到安装

来源信息

仓库
cashew-labs/halo
最近来源活动
2026年9月24日 04:36
检测到的 SKILL.md 语言
英语
星标
2
分支
1

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。

文件资源管理器
9 个文件

正在显示 SKILL.md

SKILL.md
来源说明 · 只读预览
name
conventions
description
Apply repository design and testing conventions when writing, refactoring, or reviewing TypeScript packages, services, state, tests, or runtime hosts. Includes package-level E2Es and fixture design.
# Repository conventions Keep behavior reusable across clients and environments. Give state, dependencies, and lifecycle explicit owners. Prefer composition and direct consumer flows over layers that send work back and forth. ## Find the relevant page Read the pages relevant to the change before editing: | When changing | Read | | --------------------------------------------------------------------- | ------------------------------------------------------------ | | Workspace topology, package boundaries, exports, or file organization | [Monorepo](references/monorepo.md) | | Services, host interfaces, startup, cleanup, or client access | [Services](references/services.md) | | Mutable state, streams, derived views, or operation ordering | [State](references/state.md) | | TypeScript implementation or error handling | [TypeScript](references/typescript.md) | | Tests, fixtures, or test review | [Testing](references/testing.md) | | Development hosts, environment setup, CI, or deployment | [Environments](references/environments.md) | | Adding, integrating, or upgrading external dependencies | [Dependency management](references/dependency-management.md) | Read multiple pages when the change crosses boundaries, not the entire handbook for every task. Testing guidance applies to Vitest and Playwright alike. Examples use simplified TypeScript adapted from real code, not complete implementations. Imports and unrelated setup are omitted; “avoid” shows the counterexample, “prefer” shows the intended shape. ## Apply it to the change at hand Apply these principles practically. Improve the changed area without turning a small task into a full migration. Do not add wrappers, packages, or tests merely to satisfy a diagram. Garden locally: fix small stale guidance, misleading comments, dead code, and confusing APIs exposed by the work, but leave larger or separate improvements as a scoped follow-up. Keep project commands and agent-specific instructions in `AGENTS.md`, and current architecture and migration progress in the implementation spec. Update that spec as work lands; do not describe planned APIs as available. Validate changed behavior through the consumer-facing boundary before handoff. Use the running application when it is the relevant boundary, in addition to focused automated checks.
在 GitHub 查看