kbSeeds returns the five canonical KB files. Kept as a function (not a package-level var) so tests can call it directly without sharing state. The skill is the authoritative source of how these files are appended to; this stub text is only visible to a human opening the file before any entries have
()
| 138 | // to; this stub text is only visible to a human opening the file before |
| 139 | // any entries have been written. |
| 140 | func kbSeeds() []kbSeed { |
| 141 | return []kbSeed{ |
| 142 | {"user.md", `# User |
| 143 | |
| 144 | Durable facts about the person using flow — role, preferences, working |
| 145 | style, constraints, availability. The flow skill appends entries here |
| 146 | automatically when the user shares something in conversation. |
| 147 | |
| 148 | <!-- Entries are appended as: "- YYYY-MM-DD — <short quote or paraphrase>" --> |
| 149 | `}, |
| 150 | {"org.md", `# Organization |
| 151 | |
| 152 | The user's company, team, structure, stakeholders, reporting lines, and |
| 153 | people the user interacts with. Appended by the flow skill on the fly. |
| 154 | |
| 155 | <!-- Entries are appended as: "- YYYY-MM-DD — <short quote or paraphrase>" --> |
| 156 | `}, |
| 157 | {"products.md", `# Products |
| 158 | |
| 159 | What the org ships — product lines, modules, features, release cadence, |
| 160 | major capabilities. Appended by the flow skill on the fly. |
| 161 | |
| 162 | <!-- Entries are appended as: "- YYYY-MM-DD — <short quote or paraphrase>" --> |
| 163 | `}, |
| 164 | {"processes.md", `# Processes |
| 165 | |
| 166 | How the org works — tools, conventions, rituals, review rules, on-call, |
| 167 | deploy flows, meeting cadences. Appended by the flow skill on the fly. |
| 168 | |
| 169 | <!-- Entries are appended as: "- YYYY-MM-DD — <short quote or paraphrase>" --> |
| 170 | `}, |
| 171 | {"business.md", `# Business |
| 172 | |
| 173 | Customers, business model, revenue, deals, market positioning, contract |
| 174 | structure, pricing. Appended by the flow skill on the fly. |
| 175 | |
| 176 | <!-- Entries are appended as: "- YYYY-MM-DD — <short quote or paraphrase>" --> |
| 177 | `}, |
| 178 | } |
| 179 | } |
| 180 | |
| 181 | // kbFiles returns the absolute paths of all existing KB files under the |
| 182 | // given flow root, in the canonical order (user, org, products, processes, |