Skip to main content

okf-agent-memory

Maintain persistent, domain-neutral project memory for AI agents using Open Knowledge Format (OKF) v0.2 bundles and the deterministic okf Go toolchain. Use whenever project knowledge, decisions, runbooks, research, client notes, or domain discoveries must survive conversational resets.

설치로 이동

소스 정보

저장소
okf-memory/okf-agent-memory
최근 소스 활동
2026년 9월 16일 07:19
감지된 SKILL.md 언어
영어
스타
709
포크
52

설치 방법

기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.

소스 파일 검토

설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.

파일 탐색기
6 개 파일

SKILL.md 표시 중

SKILL.md
소스 지침 · 읽기 전용 미리보기
name
okf-agent-memory
description
Maintain persistent, domain-neutral project memory for AI agents using Open Knowledge Format (OKF) v0.2 bundles and the deterministic okf Go toolchain. Use whenever project knowledge, decisions, runbooks, research, client notes, or domain discoveries must survive conversational resets.
# OKF Agent Memory Skill (AAG Spec v0.1) Teaches AI agents deterministic interaction with an Open Knowledge Format (OKF v0.2) bundle (`knowledge/`). ## 0. Project & Domain Codex - GOAL: maintain(high_factual_integrity, domain_neutrality, strict_determinism) - FORMAT: diagrams => ASSERT(syntax == mermaid, ELSE=STOP("Mermaid required; ASCII/box art prohibited.")) ## 1. Behavioral Invariants (RFC 2119) - MUST execute `okf_search(query=keywords, limit=3)` before proposing architecture changes or creating concepts. - NEVER scan `knowledge/` via `list_dir`, `grep_search`, or raw file readers. - NEVER forge human verification (`verified:` is human-only; declare `generated: { by: "<actor>", at: "<iso-time>" }`). - PREFER native `okf_*` MCP tools OVER CLI fallback commands. - PREFER `okf_update` OVER `okf_create` when mutating existing domain entities. - NEVER persist scratchpads, raw chain-of-thought, or speculative chatter to knowledge corpus. ## 2. Guard Clauses & Scope Governance - ON edit(@path/): IF first_visit(@path/) => okf_search(for_path=@path/) IF governance == "hold" => STOP("Subsystem frozen by governance. Confirm with user.") IF governance == "constraint" => MUST adhere to all listed invariants IF governance == "context" => proceed with awareness - ON user_query(architecture | requirements | conventions | domain_facts): okf_search(query=keywords, limit=3) => evaluate summary description IF relevant => okf_show(concept_id) ONLY on demand ## 3. Completion Pipeline (Sequential Assertion Gates) 1. IF arch_decisions_made => MUST okf_create(architecture/*, type="decision", title=..., desc=...) 2. IF requirements_discovered => MUST okf_update(concept_id) 3. IF concepts_mutated => MUST sync(knowledge/log.md, knowledge/index.md) 4. ASSERT(okf_validate(strict=true, drift=true) == {errors: 0, warnings: 0}, ELSE=fix_before_exit) --- ## 4. Tooling Reference (Dual-Mode: MCP & CLI) Default bundle: `./knowledge`. For custom paths, pass `bundle="path/to/bundle"`. | Task | Preferred: Native MCP Tool | Fallback: Deterministic CLI (`--json`) | | :--- | :--- | :--- | | **Search Knowledge** | `okf_search(query="<query>", limit=3)` | `okf search "<query>" knowledge --limit 3 --json` | | **Discover Code Constraints** | `okf_search(for_path="<file-path>")` | `okf search --for-path <file-path> knowledge --json` | | **Inspect Concept** | `okf_show(concept_id="<id>")` | `okf show <id> knowledge --json` | | **Create Concept** | `okf_create(concept_id="<id>", type="<type>", title="<title>", description="<desc>")` | `okf create <id> knowledge --type <type> --title "<title>" --desc "<desc>" --json` | | **Update Concept** | `okf_update(concept_id="<id>", description="<desc>", title="<title>")` | `okf update <id> knowledge --desc "<desc>" --json` | | **Relate Concepts** | `okf_relate(source_id="<src>", target_id="<tgt>", description="<prose>")` | `okf relate <src> <tgt> knowledge --desc "<prose>" --json` | | **Validate Bundle** | `okf_validate(strict=true)` | `okf validate knowledge --strict --drift --json` | --- ## 5. Workflow Guides (Progressive Disclosure) - Discovery & Retrieval: [discovery.md](./discovery.md) - Persistence Decisions: [remember.md](./remember.md) - Updating & Mutations: [update.md](./update.md) - Relationship Topology: [relationships.md](./relationships.md) - Multi-Domain Reference: [examples.md](./examples.md)
GitHub에서 보기