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.
This commit is contained in:
sam committed 2026-07-22 04:36:50 +10:00
1 parent 7dbb17a4cb
commit 7c34bdae5a
106 files changed
+3882

No files matched your search

@@ -0,0 +1,4 @@
# Module
* [yaegi.go](yaegi.md) - Source module internal/skillscript/yaegi.go (53 lines).
* [yaegi_test.go](yaegi_test.md) - Source module internal/skillscript/yaegi_test.go (92 lines).
@@ -0,0 +1,50 @@
---
description: Source module internal/skillscript/yaegi.go (53 lines).
resource: internal/skillscript/yaegi.go
tags:
- go
- source
timestamp: "2026-07-21T18:36:22Z"
title: yaegi.go
type: Module
---
# Module yaegi.go
**Path**: `internal/skillscript/yaegi.go`
**Lines**: 53
## Snippet Preview
```
// Package skillscript runs skill-bundled Go scripts (.agents/skills/<skill>/scripts/*.go)
// via Yaegi. Unlike the gate and workflow-stage extension surfaces, these
// scripts only need the Go standard library — they wrap external tools
// (gitleaks, trivy, ...) the way a shell script would — so no
// archie-core-specific symbol table is required here.
package skillscript
import (
"bytes"
"fmt"
"os"
"github.com/traefik/yaegi/interp"
"github.com/traefik/yaegi/stdlib"
"github.com/traefik/yaegi/stdlib/unrestricted"
)
// Run interprets the Go script at path and executes its main function,
// returning everything it wrote to stdout and stderr. The script runs
// in-process (interpreted, not sandboxed) with unrestricted symbols
// (os/exec included — these scripts wrap external tools the way a shell
// script would), so a panic inside it is recovered and returned as an
// error rather than taking down the daemon.
func Run(path string) (output string, err error) {
if _, statErr := os.Stat(path); statErr != nil {
return "", statErr
}
defer func() {
if r := recover(); r != nil {
```
@@ -0,0 +1,50 @@
---
description: Source module internal/skillscript/yaegi_test.go (92 lines).
resource: internal/skillscript/yaegi_test.go
tags:
- go
- source
timestamp: "2026-07-21T18:36:22Z"
title: yaegi_test.go
type: Module
---
# Module yaegi_test.go
**Path**: `internal/skillscript/yaegi_test.go`
**Lines**: 92
## Snippet Preview
```
package skillscript
import (
"os"
"path/filepath"
"testing"
)
func writeScript(t *testing.T, src string) string {
t.Helper()
dir := t.TempDir()
path := filepath.Join(dir, "script.go")
if err := os.WriteFile(path, []byte(src), 0o644); err != nil {
t.Fatal(err)
}
return path
}
func TestRunCapturesStdout(t *testing.T) {
path := writeScript(t, `package main
import "fmt"
func main() {
fmt.Println("hello from a skill script")
}
`)
out, err := Run(path)
if err != nil {
t.Fatalf("Run() error = %v", err)
```