Code review and design assistance based on the "Parse, don't validate" principle. It converts validate patterns (check and discard results) into parse patterns (keep validation results as types), encouraging designs that enforce invariants via the type system. Used when validation functions need improvement during code review, new implementation, or refactoring. Target languages: Rust, Haskell, TypeScript, Scala, Java, Go, Python. Triggers: activated by type-safety related requests such as "improve validation", "I want guarantees via types", "fix shotgun parsing", "prevent invalid states with types", or "reduce Maybe".
Code review and design assistance based on the "Parse, don't validate" principle. It converts validate patterns (check and discard results) into parse patterns (keep validation results as types), encouraging designs that enforce invariants via the type system. Used when validation functions need improvement during code review, new implementation, or refactoring. Target languages: Rust, Haskell, TypeScript, Scala, Java, Go, Python. Triggers: activated by type-safety related requests such as "improve validation", "I want guarantees via types", "fix shotgun parsing", "prevent invalid states with types", or "reduce Maybe".
基于“Parse, don't validate”原则的代码审查与设计支持。将 validate 模式(检查后丢弃结果)转换为 parse 模式(将检查结果保存在类型中),促进通过类型系统强制不变式的设计。在代码审查、新功能实现或重构时需要改进验证函数时使用。目标语言:Rust、Haskell、TypeScript、Scala、Java、Go、Python。触发条件:遇到“改进验证”“希望用类型保证”“修复 shotgun parsing”“希望用类型防止非法状态”“减少 Maybe”等与类型安全相关的请求时启动。
Category: developer (开发工具) · Author: j5ik2o · Version: @main · License: MIT
Search for places (restaurants, cafes, etc.) via Google Places API proxy on localhost.
Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and advanced queries.
Create or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, references, and assets.
Start voice calls via the OpenClaw voice-call plugin.
Notion API for creating and managing pages, databases, and blocks.
Gemini CLI for one-shot Q&A, summaries, and generation.
Category:developer