Files
archie/.okf/codebase/internal/workflow/skillbuild/skillbuild.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.2 KiB

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

Module skillbuild.go

Path: internal/workflow/skillbuild/skillbuild.go
Lines: 184

Snippet Preview

// Package skillbuild constructs Workflows from skill catalog entries by
// loading Yaegi-interpreted stage plugins from the skill's plugins/ directory.
package skillbuild

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

	"github.com/traefik/yaegi/interp"
	"github.com/traefik/yaegi/stdlib"

	"github.com/samcharles93/archie-core/internal/skill"
	"github.com/samcharles93/archie-core/internal/workflow"
	"github.com/samcharles93/archie-core/internal/workflow/wfextract"
)

// builtins returns the hardcoded fallback workflows. These are used when
// no skill declares a given workflow name in its metadata.archie.workflow.
func builtins() workflow.Registry {
	return workflow.Registry{
		"bootstrap":   workflow.Bootstrap(),
		"implement":   workflow.Implement(),
		"tdd":         workflow.TDD(),
		"feasibility": workflow.Feasibility(),
		"default":     workflow.Implement(),
	}