Agent skill

Knowledge Ops

by affaan-m in affaan-m/ECC

知识库管理、摄取、同步和跨多个存储层(本地文件、MCP内存、向量存储、Git仓库)的检索。当用户想要保存、组织、同步、去重或搜索其知识系统时使用。

MITAuto-check passedDevelopment

Install Knowledge Ops

skills CLI
$ npx skills add affaan-m/ECC --skill knowledge-ops -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install affaan-m/ECC knowledge-ops --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/affaan-m/ECC.git skills-src && mkdir -p .claude/skills && cp -r skills-src/docs/zh-CN/skills/knowledge-ops .claude/skills/knowledge-ops && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
knowledge-ops
GitHub stars
275k
Token cost
~726 tokens
SKILL.md length
184 words
Files
1
Skills in repo
645
Repo updated
First seen
Licence
MIT

At a glance

知识库管理、摄取、同步和跨多个存储层(本地文件、MCP内存、向量存储、Git仓库)的检索。当用户想要保存、组织、同步、去重或搜索其知识系统时使用。

  • Works in 4 steps: 分类 → 去重 → 存储 → …
  • Development work in your project
  • SKILL.md covers 何时激活, 知识架构, 摄取工作流 and 同步操作, plus 3 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Knowledge Ops is an agent skill from affaan-m/ECC. 知识库管理、摄取、同步和跨多个存储层(本地文件、MCP内存、向量存储、Git仓库)的检索。当用户想要保存、组织、同步、去重或搜索其知识系统时使用。

Its SKILL.md is about 730 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Development. It works with Model Context Protocol, Git and GitHub. The repository describes itself as: The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond. The licence is MIT.

When your agent uses it

  • Development work in your project

Example prompts

  • “/knowledge-ops”

Workflow steps

4 steps, taken from the step headings in SKILL.md.

  1. 分类
  2. 去重
  3. 存储
  4. 索引

What it can do on your machine

Read from SKILL.md and the folder at commit ef648e0. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Knowledge Ops loads about 726 tokens when it runs. Until then it costs about 22 tokens; SKILL.md has 184 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~22
When it runs · the whole SKILL.md, loaded when a task matches
~726

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from affaan-m/ECC at commit ef648e0, republished under its MIT licence (© affaan-m). 184 words, ~726 tokens.

Download SKILL.mdSave it as .claude/skills/knowledge-ops/SKILL.md (or your agent's skills folder).
name
knowledge-ops
description
知识库管理、摄取、同步和跨多个存储层(本地文件、MCP内存、向量存储、Git仓库)的检索。当用户想要保存、组织、同步、去重或搜索其知识系统时使用。
origin
ECC

知识操作

管理一个多层知识系统,用于跨多个存储库进行知识的摄取、组织、同步和检索。

推荐使用实时工作区模型:

  • 代码工作存在于实际克隆的仓库中
  • 活跃执行上下文存在于 GitHub、Linear 和仓库本地的上下文文件中
  • 面向人类更广泛的笔记可以存放在非仓库的上下文/归档文件夹中
  • 跨机器的持久化记忆应属于知识库,而非影子仓库工作区

何时激活

  • 用户希望将信息保存到其知识库
  • 将文档、对话或数据摄取到结构化存储中
  • 跨系统同步知识(本地文件、MCP 记忆、Supabase、Git 仓库)
  • 对现有知识进行去重或整理
  • 用户说“保存到知识库”、“同步知识”、“关于 X 我知道什么”、“摄取这个”、“更新知识库”
  • 任何超出简单记忆回忆的知识管理任务

知识架构

第一层:活跃执行真相
  • 来源: GitHub 议题、PR、讨论、发布说明、Linear 议题/项目/文档
  • 用途: 工作的当前操作状态
  • 规则: 如果某事物影响活跃的工程计划、路线图、发布或版本,优先将其放在此处
第二层:Claude Code 记忆(快速访问)
  • 路径: ~/.claude/projects/*/memory/
  • 格式: 带有前置元数据的 Markdown 文件
  • 类型: 用户偏好、反馈、项目上下文、参考
  • 用途: 跨对话持久化的快速访问上下文
  • 会话启动时自动加载
第三层:MCP 记忆服务器(结构化知识图谱)
  • 访问: MCP 记忆工具(create_entities、create_relations、add_observations、search_nodes)
  • 用途: 对所有存储记忆进行语义搜索、关系映射
  • 跨会话持久化,具有可查询的图谱结构
第四层:知识库仓库 / 持久化文档存储
  • 用途: 精选的持久化笔记、会话导出、综合研究、操作员记忆、长文文档
  • 规则: 当内容不属于仓库拥有的代码时,这是跨机器上下文的首选持久化存储
第五层:外部数据存储(Supabase、PostgreSQL 等)
  • 用途: 结构化数据、大型文档存储、全文搜索
  • 适用场景: 对于记忆文件过大的文档、需要 SQL 查询的数据
第六层:本地上下文/归档文件夹
  • 用途: 面向人类的笔记、归档的游戏计划、本地媒体整理、临时非代码文档
  • 规则: 可写入用于信息存储,但非影子代码工作区
  • 禁止用于: 应存在于上游的活跃代码更改或仓库真相

摄取工作流

当需要捕获新知识时:

1. 分类

这是什么类型的知识?

  • 业务决策 -> 记忆文件(项目类型)+ MCP 记忆
  • 活跃路线图 / 发布 / 实现状态 -> 优先使用 GitHub + Linear
  • 个人偏好 -> 记忆文件(用户/反馈类型)
  • 参考信息 -> 记忆文件(参考类型)+ MCP 记忆
  • 大型文档 -> 外部数据存储 + 记忆中的摘要
  • 对话/会话 -> 知识库仓库 + 记忆中的简短摘要
2. 去重

检查此知识是否已存在:

  • 搜索记忆文件中的现有条目
  • 使用相关术语查询 MCP 记忆
  • 在创建另一个本地笔记之前,检查信息是否已存在于 GitHub 或 Linear 中
  • 不要创建重复项。而是更新现有条目。
3. 存储

写入适当的层级:

  • 始终更新 Claude Code 记忆以便快速访问
  • 使用 MCP 记忆实现语义可搜索性和关系映射
  • 当信息改变实时项目真相时,首先更新 GitHub / Linear
  • 提交到知识库仓库以进行持久的、长格式的添加
4. 索引

更新任何相关的索引或摘要文件。

同步操作

对话同步

定期将会话历史同步到知识库:

  • 来源:Claude 会话文件、Codex 会话、其他代理会话
  • 目标:知识库仓库
  • 生成会话索引以便快速浏览
  • 提交并推送
工作区状态同步

将重要的工作区配置和脚本镜像到知识库:

  • 生成目录映射
  • 在提交前编辑敏感配置
  • 随时间跟踪更改
  • 不要将知识库或归档文件夹视为实时代码工作区
GitHub / Linear 同步

当信息影响活跃执行时:

  • 更新相关的 GitHub 议题、PR、讨论、发布说明或路线图线程
  • 当工作需要持久的规划上下文时,将支持文档附加到 Linear
  • 之后仅当本地笔记仍能增加价值时才进行镜像
跨源知识同步

将来自多个来源的知识汇集到一处:

  • Claude/ChatGPT/Grok 对话导出
  • 浏览器书签
  • GitHub 活动事件
  • 写入状态摘要,提交并推送

记忆模式

# 短期:当前会话上下文
使用 TodoWrite 进行会话内任务追踪

# 中期:项目记忆文件
写入 ~/.claude/projects/*/memory/ 以实现跨会话回溯

# 长期:GitHub / Linear / 知识库
将活跃执行事实置于 GitHub + Linear
将持久化综合上下文置于知识库仓库

# 语义层:MCP 知识图谱
使用 mcp__memory__create_entities 创建永久结构化数据
使用 mcp__memory__create_relations 进行关系映射
使用 mcp__memory__add_observations 添加关于已知实体的新事实
使用 mcp__memory__search_nodes 查找已有知识

最佳实践

  • 保持记忆文件简洁。归档旧数据,而不是让文件无限增长。
  • 在所有知识文件上使用前置元数据(YAML)作为元数据。
  • 存储前进行去重。先搜索,然后创建或更新。
  • 每个事实集优先使用一个权威存放位置。避免在本地笔记、仓库文件和跟踪器文档中并行复制同一计划。
  • 在提交到 Git 之前编辑敏感信息(API 密钥、密码)。
  • 对知识文件使用一致的命名约定(小写-连字符-分隔)。
  • 使用主题/类别标记条目,以便于检索。

质量门控

在完成任何知识操作之前:

  • 没有创建重复条目
  • 任何 Git 跟踪的文件中的敏感数据已被编辑
  • 索引和摘要已更新
  • 为数据类型选择了适当的存储层
  • 在相关处添加了交叉引用

© affaan-m, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in docs/zh-CN/skills/knowledge-ops of affaan-m/ECC.

Open the folder on GitHubat commit ef648e0

Compare with similar skills

Knowledge Ops next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Knowledge Ops compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Knowledge Ops this skillaffaan-m/ECC275k—~726Automated safety check: PassMIT
Git Releasewesammustafa/opencode-primer3971 repos~409Automated safety check: PassMIT
Liveagent Code ReviewStack-Cairn/LiveAgent2.2k—~2kAutomated safety check: PassMIT
Releasetractorjuice/arc-kit2.3k—~3kAutomated safety check: PassCustom licence
PR Review Feedback Handlergittower/git-flow-next458—~2.9kAutomated safety check: NotesCustom licence
GitHubswarmclawai/swarmclaw688—~820Automated safety check: PassMIT

Similar skills

  • Git Release

    wesammustafa/opencode-primer

    Draft release notes from merged PRs, propose a semver bump, and emit a copy-pasteable gh release create command.

    397 GitHub starsUsed in 1 repo~409 tokens
    DevelopmentAuto-check passed
  • Liveagent Code Review

    Stack-Cairn/LiveAgent

    Review an open GitHub pull request or the current local branch and working tree with parallel, independent reviewers and evidence-based validation.

    2.2k GitHub stars~2k tokensUpdated today
    DevelopmentAuto-check passed
  • Release

    tractorjuice/arc-kit

    Cut a new ArcKit release — bump versions in lockstep, regenerate non-Claude formats, validate plugin/marketplace agreement, tag, and push to standalone repos.

    2.3k GitHub stars~3k tokensUpdated yesterday
    DevelopmentAuto-check passed
  • PR Review Feedback Handler

    gittower/git-flow-next

    Fetches review comments on a pull request, judges each one, writes the evaluation to a plan file and implements accepted changes, waiting for approval before anything public.

    458 GitHub stars~2.9k tokensUpdated 1 mo ago
    DevelopmentAuto-check: notes
  • GitHub

    swarmclawai/swarmclaw

    GitHub operations via gh CLI: issues, PRs, CI runs, code review, API queries.

    688 GitHub stars~820 tokensUpdated 3 mo ago
    DevelopmentAuto-check passed
  • Release Crate

    r3bl-org/r3bl-open-core

    Publish a crate release to crates.io with changelog, standalone release notes, git tag, and GitHub release.

    485 GitHub stars~2.4k tokensUpdated today
    DevelopmentAuto-check passed

More from affaan-m/ECC

All 645 skills in this repo
  • Videodb

    affaan-m/ECC

    Ingest, index, search, edit, and monitor video and audio with the VideoDB Python SDK — upload from files, URLs, or RTSP feeds, build spoken and scene indexes with timestamped search and playable…

    275k GitHub starsUsed in 3 repos~3.5k tokens
    Auto-check: notes
  • Rules Distillation

    affaan-m/ECC

    Scans installed skills for principles that recur across them and proposes rule-file changes: append, revise, add a section, create a file or leave as covered.

    275k GitHub starsUsed in 2 repos~2.3k tokens
    Auto-check passed
  • Builds DRAFT counterparty agreements from one markdown template and a small JSON spec per party, with clauses picked by the party's role.

    275k GitHub stars~2.9k tokensUpdated 3 days ago
    Auto-check passed
  • Measures whether agents actually follow a skill, rule or agent definition by generating scenarios at three strictness levels and scoring tool-call traces.

    275k GitHub starsUsed in 1 repo~623 tokens
    Auto-check passed
  • Instinct-based learning system that observes sessions via hooks, creates atomic instincts with confidence scoring, and evolves them into skills/commands/agents.

    275k GitHub stars~3.5k tokensUpdated 3 days ago
    Auto-check passed
  • Adds one optional external Codex critique that tries to break a council's decision draft, sent to OpenAI only after you consent.

    275k GitHub stars~1.5k tokensUpdated 3 days ago
    Auto-check passed

Categories

Questions about Knowledge Ops

What does Knowledge Ops do?

知识库管理、摄取、同步和跨多个存储层(本地文件、MCP内存、向量存储、Git仓库)的检索。当用户想要保存、组织、同步、去重或搜索其知识系统时使用。. Knowledge Ops is an agent skill from affaan-m/ECC.

When should I use Knowledge Ops?

Knowledge Ops fits situations like: development work in your project.

How do I install Knowledge Ops in Claude Code?

Run `npx skills add affaan-m/ECC --skill knowledge-ops -a claude-code`. Or copy the skill folder (docs/zh-CN/skills/knowledge-ops in affaan-m/ECC) into .claude/skills/knowledge-ops in your project. Claude Code loads it when a task matches its description.

How do I install Knowledge Ops in Codex?

Run `npx skills add affaan-m/ECC --skill knowledge-ops -a codex`. Or copy the skill folder (docs/zh-CN/skills/knowledge-ops in affaan-m/ECC) into .agents/skills/knowledge-ops in your project. Codex loads it when a task matches its description.

Can I use Knowledge Ops in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add affaan-m/ECC --skill knowledge-ops -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/knowledge-ops, .gemini/skills/knowledge-ops, .github/skills/knowledge-ops and .opencode/skills/knowledge-ops in your project.

What does Knowledge Ops need to run?

SKILL.md names no scripts, command-line tools or credentials: Knowledge Ops is instructions for the agent only.

Does Knowledge Ops access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Knowledge Ops safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Knowledge Ops use?

Knowledge Ops is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Knowledge Ops use?

About 726 tokens (SKILL.md is roughly 2.9k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Knowledge Ops?

Skills that share tags, products or a category with Knowledge Ops: Git Release (wesammustafa/opencode-primer, 397 stars), Liveagent Code Review (Stack-Cairn/LiveAgent, 2.2k stars), Release (tractorjuice/arc-kit, 2.3k stars) and PR Review Feedback Handler (gittower/git-flow-next, 458 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Knowledge Ops?

affaan-m (a GitHub user) maintains it in affaan-m/ECC, which has 275,023 GitHub stars. The repository holds 645 skills in this directory. The repository was last updated on October 5, 2026.

Source: affaan-m/ECC on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.