Files
archie/.okf/codebase/internal/skill/frontmatter_test.md
T
sam 7c34bdae5a okf: scaffold knowledge bundle and MCP server config
Adds a harvested .okf/ knowledge bundle (codebase concepts + starter
architecture/services/rules scaffolding) and .mcp.json pointing at the
shared okf MCP service (http://localhost:8765/archie-core/), which
serves multiple projects' bundles from a single process.
2026-07-22 04:36:50 +10:00

1.0 KiB

description, resource, tags, timestamp, title, type
description resource tags timestamp title type
Source module internal/skill/frontmatter_test.go (40 lines). internal/skill/frontmatter_test.go
go
source
2026-07-21T18:36:22Z frontmatter_test.go Module

Module frontmatter_test.go

Path: internal/skill/frontmatter_test.go
Lines: 40

Snippet Preview

package skill

import "testing"

// ── regression: Gap 8 — frontmatter missing plugins key ─────────────

func TestFrontmatterMetadataArchieHasPluginsField(t *testing.T) {
	// Gap 8: Frontmatter.Metadata.Archie has Tools and Engine only.
	// PRD section 5 shows a plugins array in metadata.archie:
	//   plugins: [plugins/custom-gate.go, plugins/gosec-check.go]

	fm, _, err := Parse([]byte(`---
name: test-skill
description: desc
version: 1.0.0
metadata:
  archie:
    tools: [go]
    engine: any
    plugins:
      - plugins/custom-gate.go
      - plugins/gosec-check.go
---
Body.
`))
	if err != nil {
		t.Fatal(err)
	}
	if fm.Metadata.Archie == nil {
		t.Fatal("Metadata.Archie is nil")