MCPcopy Create free account
hub / github.com/Facets-cloud/flow / kbSeeds

Function kbSeeds

internal/app/init.go:140–179  ·  view source on GitHub ↗

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

()

Source from the content-addressed store, hash-verified

138// to; this stub text is only visible to a human opening the file before
139// any entries have been written.
140func kbSeeds() []kbSeed {
141 return []kbSeed{
142 {"user.md", `# User
143
144Durable facts about the person using flow — role, preferences, working
145style, constraints, availability. The flow skill appends entries here
146automatically 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
152The user's company, team, structure, stakeholders, reporting lines, and
153people 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
159What the org ships — product lines, modules, features, release cadence,
160major 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
166How the org works — tools, conventions, rituals, review rules, on-call,
167deploy 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
173Customers, business model, revenue, deals, market positioning, contract
174structure, 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,

Callers 2

cmdInitFunction · 0.85
kbFilesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected