# Openclaw-Embedded Prompts

LLM prompt templates used by Flow C sub-agents and consolidation.

## Files

- `profile_extraction.md` — extract durable user facts from a transcript
- `playbook_extraction.md` — extract procedural rules from correction+confirmation patterns
- `full_consolidation.md` — consolidate a cluster of similar items into individual facts

## Format

Each file is a `.prompt.md` with YAML frontmatter (matches Reflexio's
`server/prompt/prompt_bank/` convention). Unlike upstream's versioned layout
(`<name>/v<ver>.prompt.md`), we store prompts flat (`<name>.md`) since the
plugin ships atomically with one active version at a time.

```yaml
---
active: true
description: "one-line description"
changelog: "what changed in this version"
variables:
  - var1
  - var2
---

prompt body, with {var1} and {var2} substitution points
```

## Upstream sync

`profile_extraction.md` and `playbook_extraction.md` are ports of Reflexio's
prompt_bank entries. On upstream bumps, review the prompt diff against our
adapted versions. Porting notes will be maintained in
`../references/porting-notes.md` (added in a later phase).
