Agent Skills
› wibus-wee/see
› principle-separate-before-serializing-shared-state
principle-separate-before-serializing-shared-state
GitHub指导在涉及并发、锁或共享状态时,优先消除不必要的共享而非直接添加协调机制。用于优化系统设计决策,避免过度同步。
触发场景
考虑并发处理时
设计锁或队列机制时
处理共享状态冲突时
安装
npx skills add wibus-wee/see --skill principle-separate-before-serializing-shared-state -g -y
SKILL.md
Frontmatter
{
"name": "principle-separate-before-serializing-shared-state",
"description": "Eliminate unnecessary sharing or partition ownership before adding locks, queues, or coordination. Use when concurrency, locks, queues, shared state, or complex coordination are being considered."
}
Separate Before Serializing Shared State
Trigger
When concurrency, locks, queues, shared state, or complex coordination are being considered.
Rule
Eliminate unnecessary sharing or partition ownership before adding locks, queues, or coordination.
Application
- Name the concrete decision this principle changes.
- Apply the rule to that decision, not as a decorative citation.
- Prefer evidence from the current repository/runtime over generic preference.
- If the principle conflicts with an explicit user constraint, keep the constraint and state the tradeoff.
版本历史
- b47adae 当前 2026-11-26 00:11


