Files
archie/.okf/codebase/internal/skill/skill_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

777 B

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

Module skill_test.go

Path: internal/skill/skill_test.go
Lines: 164

Snippet Preview

package skill

import (
	"os"
	"path/filepath"
	"testing"
)

func TestParse(t *testing.T) {
	src := []byte(`---
name: tdd-bugfix
description: Fix bugs with TDD
version: 1.0.0
metadata:
  archie:
    tools: [go, golangci-lint]
    engine: any
---

## Stage 1: Analyse

Read the code and find the bug.
`)
	fm, body, err := Parse(src)
	if err != nil {
		t.Fatal(err)
	}
	if fm.Name != "tdd-bugfix" {
		t.Errorf("Name: got %q, want tdd-bugfix", fm.Name)
	}