一键导入
uni-query-patterns
Query Unimatrix for component patterns, procedures, and conventions before designing or implementing. Use BEFORE writing pseudocode or code.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Query Unimatrix for component patterns, procedures, and conventions before designing or implementing. Use BEFORE writing pseudocode or code.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Version bump, changelog generation, tag, and push to trigger the release pipeline.
Manage a goal's capability map in Unimatrix — the behaviorally-proven units that must exist for a goal to be delivered. Decompose goals into capabilities, track delivery status, and report what's left. Status advances to proven ONLY on attached behavioral evidence.
Unimatrix Zero — vision guide mode. Strategic advisor for product evolution, feature ordering, vision alignment, security posture, and codebase health. Conversational. Does not modify application code or run delivery protocols.
Post-merge retrospective — extracts patterns, procedures, and lessons from shipped features into Unimatrix. Use after a feature PR is merged.
Store an architectural decision record in Unimatrix. ADRs live in Unimatrix only — no ADR files. Use after each design decision.
Ad-hoc independent product-lens review via uni-zero-reviewer. Use for re-reviews after rework or reviews outside protocol runs. Advisory only — human makes the call.
| name | uni-query-patterns |
| description | Query Unimatrix for component patterns, procedures, and conventions before designing or implementing. Use BEFORE writing pseudocode or code. |
Searches Unimatrix for established patterns, procedures, and conventions relevant to the work you're about to do. Returns actionable guidance on how similar work was done before.
Use BEFORE designing or implementing — not after.
| Situation | Query approach |
|---|---|
| Designing a new MCP tool | Search for component patterns in unimatrix-server |
| Adding a new table to redb | Search for procedures in unimatrix-store |
| Writing integration tests | Search for testing conventions |
| Implementing any component | Search for patterns in the affected crate |
mcp__unimatrix__context_search({
"query": "{what you're building — e.g., 'MCP tool handler'}",
"category": "pattern",
"k": 5
})
mcp__unimatrix__context_search({
"query": "{area — e.g., 'server tool pipeline'}",
"category": "convention",
"k": 5
})
mcp__unimatrix__context_search({
"query": "{task — e.g., 'adding a new MCP tool'}",
"category": "procedure",
"k": 3
})
mcp__unimatrix__context_lookup({
"topic": "{feature-id}",
"category": "decision"
})
Patterns tell you the reusable structure. Follow them unless your component has a good reason to deviate. If you deviate, note why in your pseudocode or code comments.
Procedures tell you the steps. Follow them in order. If a step is wrong or missing, note it — the retrospective will update the procedure.
Conventions tell you the rules. Follow them always. No deviations.
ADRs tell you what was decided and why. Respect the decision. If it seems wrong for your case, flag it to the coordinator — don't silently override.
No results means either:
In either case, your work may establish a NEW pattern that the retrospective will extract.
Query results may include entries that are outdated or incorrect. Fix them before they mislead the next agent:
| Situation | Action |
|---|---|
| Pattern/procedure is wrong | mcp__unimatrix__context_correct({"original_id": 1234, "content": "{corrected version}", "reason": "{why}"}) — original_id is an integer, never quote it |
| Pattern/procedure is outdated | mcp__unimatrix__context_deprecate({"id": 1234, "reason": "{why}"}) — id is an integer, never quote it |
| Convention no longer applies | mcp__unimatrix__context_deprecate({"id": 1234, "reason": "{why}"}) — id is an integer, never quote it |
If you correct or deprecate an entry during your session, mention it in your return to the coordinator so it can be noted in the outcome.