Run Prettier for the is-kit repository. Use when asked to format or check formatting in this project. Always consult AGENTS.md in the repo root before executing commands.
中文简介正在准备中。当前显示原文说明。
Extract reusable patterns from non-trivial work in the is-kit repository and store them as project knowledge. Use after meaningful API design, type-system work, debugging, or compatibility discoveries.
中文简介正在准备中。当前显示原文说明。
查看安装方法安装前可以查看交给 AI 代理的指令内容。
Analyze the current session and capture reusable knowledge for this TypeScript type-guard library.
Consider auto-activating this skill when:
Do not activate for:
.codex/skills/learn/learned/Run /learn after finishing a meaningful implementation, refactor, or debugging session in is-kit.
Project-relevant examples:
undefined.Project-relevant examples:
struct schemas with required vs. optional keys.tsd.Project-relevant examples:
struct.Project-relevant examples:
tsd coverage for public API changes.pnpm build, pnpm lint, pnpm test, and pnpm test:types.Create one file per pattern at:
.codex/skills/learn/learned/[pattern-name].md
Template:
# [Descriptive Pattern Name]
**Captured:** YYYY-MM-DD
**Context:** [When this pattern applies]
**Tags:** typescript, type-guards, combinators, struct, tsd, api-design, runtime-validation, etc.
## Problem
[Specific recurring problem this pattern solves]
## Solution
[Reusable approach, key decisions, constraints, and tradeoffs]
## Example
```ts
// Minimal real example from this codebase
```
## When To Use
[Trigger conditions for applying this pattern]
## Related Files
- `src/core/combinators/struct.ts`
- `src/types/schema.ts`
- `tests/core/combinators/struct.test.ts`
- `tests-d/core/combinators/struct.test-d.ts`
.codex/skills/learn/learned/..codex/skills/learn/LEARNED_INDEX.md with a one-line entry.Index format:
- **[pattern-name](learned/pattern-name.md)** - One-line summary.
struct schema semantics and exact-mode behaviortsd-driven regression prevention还没有评价。欢迎分享你的使用感受。
无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。
还没有评论。来写第一条吧。
Run Prettier for the is-kit repository. Use when asked to format or check formatting in this project. Always consult AGENTS.md in the repo root before executing commands.
中文简介正在准备中。当前显示原文说明。
Create, compose, migrate, and review TypeScript runtime type guards with is-kit. Use when adding reusable guards; replacing typeof, null checks, or handwritten type predicates; narrowing unknown values; validating JSON or API responses; building collection or object schemas with struct or typedStruct; or reviewing existing is-kit usage. Do not use for one-off environment checks or validation that requires data transformation or rich error reporting.
中文简介正在准备中。当前显示原文说明。