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

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

Module skill.go

Path: internal/skill/skill.go
Lines: 193

Snippet Preview

// Package skill parses agentskills.io SKILL.md files and discovers skills
// from the .agents/skills/ directory convention. It follows the same discovery
// pattern as internal/workflow/wfeval (missing directory is not an error).
package skill

import (
	"fmt"
	"os"
	"path/filepath"
	"sort"
	"strings"

	"gopkg.in/yaml.v3"
)

// Frontmatter is the parsed YAML frontmatter of a SKILL.md file.
type Frontmatter struct {
	Name        string `yaml:"name"`
	Description string `yaml:"description"`
	Version     string `yaml:"version"`
	Metadata    struct {
		Archie *struct {
			Tools    []string `yaml:"tools"`
			Engine   string   `yaml:"engine"`
			Plugins  []string `yaml:"plugins,omitempty"`
			Workflow string   `yaml:"workflow,omitempty"`
		} `yaml:"archie"`
	} `yaml:"metadata"`
}