Promote to Pattern¶
Explicit gate from work-thinking (or a public source) into the personal patterns corpus. Never auto-sweep.
When to use¶
- "Promote this design" / "file this as a pattern".
- Capturing AWS Well-Architected / opea.dev / similar public prior art into the same schema.
What you produce¶
- A draft using
knowledge/patterns/TEMPLATE.md. - After approval:
knowledge/patterns/<slug>.mdand an optional AnyType Pattern pointer in Agent space. - Audit-log row.
Procedure¶
- Point at the source (workspace file, chat excerpt, or public URL).
- Draft the template sections. For internal/work sources:
- Names → roles; accounts/VPC/IP → placeholders; strip customer nouns and screenshots.
- Note remaining-risk (what might still identify a tenant).
- Public sources skip IP strip; still use the same headings.
- Topics from
topic-tags.json. Unknown → ask. - Show the draft. Do not write until the user approves.
- Write
knowledge/patterns/<slug>.md. Do not overwrite an existing slug without asking. - Optional: create an AnyType Pattern pointer in Agent (not Work space) per
object-types.md. Body stays in markdown. - Offer
cd patterns && uv run patterns indexso the MCP sees it. - Audit log: action
write, rationalepromote-to-pattern.
Anti-patterns¶
- Don't index Work-space dumps or
data_root/lab/**. - Don't skip the approval step.
- Don't put the pattern body only in AnyType.