Token导航 LogoToken导航TokenDH.com
研究检索external-serviceclawhub未标认证来源可访问clear审计通过

fabrik-codek法布里克代码

Agent Skill

fabrik-codek 用于查找、检索和筛选相关信息,适合在 OpenClaw 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

25,661

周安装

1,080

GitHub Stars

公开资料未说明

下载量

8,986
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:fabrik-codek(法布里克代码)
来源仓库:https://github.com/ikchain/fabrik-codek
安装命令:
openclaw skills install fabrik-codek
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install fabrik-codek

简介

用于构建个人认知架构和知识图谱。fabrik-codek 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

  • 适合分析专业领域和调整检索策略。适用宿主包括 OpenClaw,接入前应确认版本、权限和运行环境要求。
  • 根据会话动态优化信息组织和任务适配。
  • 使用时需注意知识更新延迟和准确性边界。
  • 安装前建议确认维护状态和是否会触发数据存储。

SKILL.md

name
fabrik-codek
description
Personal cognitive architecture that learns how you work. Builds a knowledge graph from your sessions, profiles your expertise, adapts retrieval per task, and self-corrects via outcome feedback. Three-tier hybrid RAG (vector + graph + full-text). Runs locally with any Ollama model — no outbound network calls from Fabrik-Codek itself.
version
1.10.0
homepage
https://github.com/ikchain/Fabrik-Codek
user-invocable
true
metadata
clawdbot
requires
bins
[fabrik]
anyBins
[python3, python]
homepage
https://github.com/ikchain/Fabrik-Codek
os
[macos, linux]
emoji
🧠
configPaths

Fabrik-Codek

A 7B model that knows you is worth more than a 400B that doesn't.

Fabrik-Codek is a personal cognitive architecture that runs locally with any Ollama model. It doesn't just retrieve documents — it builds a knowledge graph from how you work, measures your expertise per topic, routes tasks to the right model with the right retrieval strategy, observes whether its responses actually helped, and refines itself over time.

How It Works

  1. You work — Fabrik-Codek captures code changes, session transcripts, decisions, and learnings in a local datalake
  2. Knowledge extraction — An 11-step pipeline extracts entities and relationships into a knowledge graph alongside a vector DB
  3. Personal profiling — Analyzes your datalake to learn your domain, stack, patterns, and tooling preferences
  4. Competence scoring — Measures how deep your knowledge is per topic (Expert / Competent / Novice / Unknown)
  5. Adaptive routing — Classifies each query by task type and topic, selects the right model, adapts retrieval depth, and builds a 3-layer system prompt
  6. Outcome tracking — Infers whether responses were useful from conversational patterns (zero friction, no manual feedback)
  7. Self-correction — Adjusts retrieval parameters for underperforming task/topic combinations

Every interaction feeds back into the system. Fabrik-Codek itself makes zero outbound network requests — it only connects to Ollama and optionally Meilisearch on localhost. Model downloads are handled by Ollama's own CLI (ollama pull), not by Fabrik-Codek.

Setup

Configure as an MCP server in your openclaw.json or ~/.claude/settings.json:

{
  "mcpServers": {
    "fabrik-codek": {
      "command": "fabrik",
      "args": ["mcp"]
    }
  }
}

For network access (SSE transport):

{
  "mcpServers": {
    "fabrik-codek": {
      "command": "fabrik",
      "args": ["mcp", "--transport", "sse", "--port", "8421"]
    }
  }
}

First Run

After installing, initialize and build the knowledge base:

fabrik init                              # Set up config, download models
fabrik graph build --include-transcripts  # Build knowledge graph from sessions
fabrik rag index                         # Index datalake into vector DB
fabrik profile build                     # Build your personal profile
fabrik competence build                  # Build competence map

Available MCP Tools

fabrik_ask

Ask a question to the local LLM with optional context from the knowledge base. The Task Router automatically classifies your query, selects the right model based on your competence, adapts retrieval strategy, and builds a personalized system prompt.

  • use_rag=true — vector search context
  • use_graph=true — hybrid context (vector + graph + full-text)

Example: *"How should I handle database connection pooling?"*

fabrik_search

Semantic vector search across your accumulated knowledge. Returns the most relevant documents, patterns, and examples by meaning — not just keywords.

Example: *"Find examples of retry logic with exponential backoff"*

fabrik_graph_search

Traverse the knowledge graph to find entities (technologies, patterns, strategies) and their relationships. Useful for understanding how concepts connect in your experience.

  • depth — how many hops to traverse (default: 2)

Example: *"What technologies are related to FastAPI in my knowledge graph?"*

fabrik_fulltext_search

Full-text keyword search via Meilisearch. Use this for exact keyword or phrase matching when you know the specific terms. Optional — the system works without Meilisearch installed.

Example: *"Search for 'EXPLAIN ANALYZE' in my knowledge base"*

fabrik_graph_stats

Knowledge graph statistics: entity count, edge count, connected components, type breakdown, and relation types.

fabrik_status

System health check: Ollama availability, RAG engine, knowledge graph, full-text search, and datalake status.

Available MCP Resources

URIDescription
fabrik://statusSystem component status
fabrik://graph/statsKnowledge graph statistics
fabrik://configCurrent configuration (sanitized)

When to Use Each Tool

ScenarioToolWhy
Coding question needing contextfabrik_ask with use_graph=trueGets hybrid retrieval + personalized prompt
Find similar patterns or examplesfabrik_searchSemantic similarity across all knowledge
Understand how concepts relatefabrik_graph_searchGraph traversal shows entity relationships
Find exact terms or phrasesfabrik_fulltext_searchBM25 keyword matching
Check if knowledge base is healthyfabrik_statusComponent health check
Understand knowledge distributionfabrik_graph_statsEntity/edge counts and types

The Cognitive Loop

The system gets smarter the more you use it:

You work → Flywheel captures it → Pipeline extracts knowledge
    ↑                                        ↓
Strategy Optimizer ← Outcome Tracker ← LLM responds with context
    ↓                                        ↑
    └──── adjusts retrieval ──→ Task Router ─┘
                                    ↓
                  Profile + Competence + task-specific prompt
  • Personal Profile learns your domain, stack, and preferences from your datalake
  • Competence Model scores expertise per topic using 4 signals (entry count, graph density, recency, outcome rate)
  • Task Router classifies queries into 7 task types, detects topic, selects model, adapts retrieval
  • Outcome Tracker infers response quality from conversational patterns (topic change = accepted, reformulation = rejected)
  • Strategy Optimizer adjusts retrieval parameters for weak spots
  • Graph Temporal Decay fades stale knowledge, reinforces recent activity
  • Semantic Drift Detection alerts when an entity's context shifts between graph builds
  • Context Gate decides whether to inject RAG context at all (skips for generic queries where context would be noise)
  • Relevance Filter drops retrieved chunks with low query-text token overlap, preventing domain-specific knowledge from contaminating generic answers

Requirements

  • Fabrik-Codek installed from source (git clone + pip install -e ".[dev]")
  • Ollama running locally with any model (e.g., ollama pull qwen2.5-coder:7b)
  • Optional: Meilisearch for full-text search (system works without it)

Note on installation: Fabrik-Codek is an instruction-only skill — there is no automated installer. You install it manually from the GitHub repository via git clone + pip install -e ".[dev]". This lets you audit the full source code before installing. The skill itself contains documentation and MCP server configuration, not executable code.

Security & Privacy

No external network calls

Fabrik-Codek makes zero outbound network requests. It connects only to services running on your own machine:

  • Ollama at localhost:11434 — your locally running LLM server (for inference and embeddings)
  • Meilisearch at localhost:7700 (optional) — your locally running search engine

No telemetry, no analytics, no phone-home. Verify in the source: grep -r "requests\.\|httpx\.\|urllib" src/ — all HTTP calls target localhost only. The only network activity that occurs during setup is ollama pull, which is Ollama's own CLI downloading models from ollama.ai/library — Fabrik-Codek does not initiate or control these downloads.

What fabrik init does

fabrik init performs these local-only operations:

  1. Checks Python version (>= 3.11)
  2. Detects if Ollama is running at localhost:11434
  3. Creates a .env config file in the current directory
  4. Creates local data directories (./data/embeddings/, ./data/graphdb/, ./data/profile/)
  5. Pulls Ollama models via ollama pull — models are downloaded by Ollama itself from ollama.ai/library, not by Fabrik-Codek

Fabrik-Codek does not download any files from any server. Model downloads are handled entirely by Ollama's own CLI.

Data access scope

Reads (all local, all opt-in, never automatic):

PathWhatWhenWhy
~/.claude/projects/*/Session transcript JSONL files (already on disk from Claude Code)Only when you explicitly run fabrik learn process or fabrik graph build --include-transcriptsExtracts entities and reasoning patterns to build the knowledge graph. This path is NOT in configPaths because Fabrik-Codek does not write to it — it is read-only and user-initiated.
./data/ or FABRIK_DATALAKE_PATHYour datalake (training pairs, captures, metadata)During graph build, rag index, profile build, competence buildSource data for building the knowledge base and personal profile

Writes (all local):

PathWhat
./data/embeddings/LanceDB vector index
./data/graphdb/NetworkX knowledge graph (JSON)
./data/profile/Personal profile, competence map, strategy overrides (JSON)
./data/01-raw/outcomes/Outcome tracking records (JSONL)

All paths are declared in the skill metadata configPaths. The skill never writes outside these directories.

Network transport

  • Default: stdio — no network listener, no ports opened, no exposure
  • Optional: sse — starts an HTTP server bound to 127.0.0.1:8421 by default (localhost only, not reachable from other machines)
  • If you change the SSE bind address to 0.0.0.0, your indexed data would be accessible over the network. Do not do this without proper firewall/ACL rules

Session transcript privacy

The fabrik learn command reads Claude Code session transcripts, which may contain sensitive data (code, credentials, conversation history). This command is opt-in — you must run it manually. It does not run in the background or on a schedule unless you explicitly configure fabrik learn watch. Review what's in your ~/.claude/projects/ before indexing.

Source verification

Fully open source at github.com/ikchain/Fabrik-Codek (MIT license). Clone the repo and audit before installing.

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

83.34%
按下载量换算7,489

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

未展示

权限和风险

external-service

该 Skill 可能调用第三方服务、云服务或外部模型 API,使用前需要确认账号、额度、数据发送范围和服务条款。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills