knowledgeBundleInstructions static method

String knowledgeBundleInstructions({
  1. String bundle = KnowledgeSeeds.bundle,
  2. List<String> lines = const [],
})

The ### Knowledge bundle block for AGENTS.md, ending with lines, the lines the Profile's adoption guidance adds, as one paragraph. Adoption never writes it; a host or agent places it under ## Agent skills.

Implementation

static String knowledgeBundleInstructions({
  String bundle = KnowledgeSeeds.bundle,
  List<String> lines = const [],
}) {
  final root = _bundle(bundle);
  return '### Knowledge bundle\n'
      '\n'
      'Durable project documentation and knowledge live in the OKF bundle at\n'
      '`$root/`. `wayfinder.json` binds it to a Profile, and `wayfinder get`\n'
      "installs each Profile's skill under `.claude/skills/` and `.agents/skills/`.\n"
      'Start at `$root/index.md`, then the area index, then the concept.\n'
      '\n'
      'Follow the `author-knowledge-bundle` skill before writing anything under\n'
      '`$root/`, including before creating a directory there. It loads the\n'
      "skill of each Profile in the bundle's chain.\n"
      '${lines.isEmpty ? '' : '\n${lines.map((line) => '$line\n').join()}'}';
}