Agent Skills
› wibus-wee/see
› principle-separate-before-serializing-shared-state
principle-separate-before-serializing-shared-state
GitHub指导在考虑并发、锁或共享状态时,优先消除不必要的共享或分区所有权,避免过早引入复杂的协调机制。
Trigger Scenarios
涉及并发处理
需要添加锁或队列
存在共享状态管理
复杂协调逻辑设计
Install
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.
Version History
- b47adae Current 2026-11-26 00:11


