**Capture Insight:** Detect trigger phrases or use the `/compound` command.
**Gather Context:** Extract relevant information (domain, insight type, context, key learning, tags).
**Search Existing Knowledge:** Look for similar insights in the `knowledge/` directory.
**Generate Filename:** Create a unique filename based on the insight.
**Validate YAML:** Ensure all required fields are present and valid.
**Create Document:** Generate a markdown file with YAML frontmatter in the appropriate category.
**Present Decision Menu:** Offer options for further actions (e.g., add to critical patterns, link related documents).