Token导航 LogoToken导航TokenDH.com
开发操作浏览器github未标认证来源可访问许可证需确认审计异常

knowledge-manager-setup知识管理器设置

Agent Skill

knowledge-manager-setup 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

8,097

周安装

318

GitHub Stars

132

下载量

2,963
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

请帮我安装这个 Agent Skill:knowledge-manager-setup(知识管理器设置)
来源仓库:https://github.com/treylom/knowledge-manager
仓库路径:skills/knowledge-manager-setup
安装命令:
npx skills add https://github.com/treylom/knowledge-manager --skill 'Knowledge Manager Setup'
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/treylom/knowledge-manager --skill 'Knowledge Manager Setup'

简介

knowledge-manager-setup 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合围绕仓库状态和代码变更进行整理。

  • 适用于开发场景,可在 Codex、Claude、Cursor、Gemini CLI 中使用。
  • 通过 npx skills add 命令从指定 GitHub 仓库安装并使用该技能。
  • 安装前建议确认权限范围和维护状态,注意是否会触发联网或文件读写操作。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

Knowledge Manager Setup

Automated setup wizard that configures MCP servers and creates configuration files

Overview

This skill automates the Knowledge Manager setup process:

  1. Detects your environment (Antigravity, Claude Code, etc.)
  2. Asks for your preferences (Obsidian vault path, etc.)
  3. Automatically configures MCP servers
  4. Creates km-config.json
  5. Verifies the setup

Setup Flow

Step 1: Environment Detection

function detect_environment() {
  // Check for Antigravity
  if (file_exists("~/.gemini/antigravity/mcp_config.json")) {
    return "antigravity"
  }

  // Check for Claude Code
  if (command_exists("claude")) {
    return "claude-code"
  }

  return "unknown"
}

Step 2: User Preferences

Ask the user:

=================================================
  Knowledge Manager Setup Wizard
=================================================

Where would you like to save your notes?

  [1] Obsidian (Recommended for personal knowledge management)
  [2] Local Markdown files only
  [3] Both Obsidian and local backup

Selection: _

If Obsidian selected:

Please provide your Obsidian vault path:

Examples:
  Windows: C:/Users/YourName/Documents/MyVault
  Mac: /Users/YourName/Documents/MyVault
  Linux: /home/yourname/Documents/MyVault

Vault path: _

Step 3: MCP Server Configuration

For Antigravity (Simplified!)

Antigravity has a built-in browser agent, so playwright MCP is optional. Only Obsidian MCP is required if you want to save to Obsidian.

Config file location: ~/.gemini/antigravity/mcp_config.json

function configure_antigravity_mcp(vaultPath, options = {}) {
  // 1. Read existing config
  configPath = expand_path("~/.gemini/antigravity/mcp_config.json")
  existingConfig = Read(configPath) || { "mcpServers": {} }

  // 2. Add required servers (Obsidian only for Antigravity)
  newServers = {
    "obsidian": {
      "command": "npx",
      "args": ["-y", "@huangyihe/obsidian-mcp"],
      "env": {
        "OBSIDIAN_VAULT_PATH": vaultPath
      }
    }
  }

  // 3. Optionally add Playwright (for screenshots, batch processing, etc.)
  if (options.includePlaywright) {
    newServers["playwright"] = {
      "command": "npx",
      "args": ["-y", "@modelcontextprotocol/server-playwright"]
    }
  }

  // 4. Merge with existing
  existingConfig.mcpServers = {
    ...existingConfig.mcpServers,
    ...newServers
  }

  // 5. Write back
  Write(configPath, JSON.stringify(existingConfig, null, 2))

  return true
}

Antigravity Browser Options

Ask the user (only in Antigravity):

=================================================
  Browser Configuration
=================================================

Antigravity has a powerful built-in browser agent.
For most use cases, you don't need additional browser tools.

Do you want to add Playwright MCP? (optional)

  [1] No, use Antigravity's built-in browser (Recommended)
  [2] Yes, add Playwright for advanced features
      (screenshots, batch processing, DOM manipulation)

Selection: _

For Claude Code

Claude Code doesn't have a built-in browser, so Playwright is required.

function configure_claude_mcp(vaultPath) {
  // Use claude mcp add command
  Bash(`claude mcp add playwright -s user -- npx -y @modelcontextprotocol/server-playwright`)

  Bash(`claude mcp add obsidian -s user -e OBSIDIAN_VAULT_PATH="${vaultPath}" -- npx -y @huangyihe/obsidian-mcp`)

  return true
}

Step 4: Create km-config.json

function create_km_config(options) {
  config = {
    "storage": {
      "primary": options.storage || "obsidian",
      "obsidian": {
        "enabled": options.obsidianEnabled || true,
        "vaultPath": options.vaultPath,
        "defaultFolder": "Zettelkasten"
      },
      "local": {
        "enabled": options.localEnabled || true,
        "outputPath": "./km-notes"
      }
    },
    "browser": {
      // Antigravity uses native browser by default
      "provider": options.environment === "antigravity" ? "antigravity" : "playwright"
    },
    "defaults": {
      "detailLevel": 2
    }
  }

  Write("km-config.json", JSON.stringify(config, null, 2))
}

Step 5: Verification & Next Steps

For Antigravity

=================================================
  Setup Complete!
=================================================

Configuration files created:
  [OK] ~/.gemini/antigravity/mcp_config.json (updated)
  [OK] ./km-config.json (created)

MCP servers configured:
  [OK] obsidian - For saving notes to your vault

Browser configuration:
  [OK] Using Antigravity's built-in browser agent
       (No additional MCP needed!)

IMPORTANT: To activate the MCP servers:

  1. Open Antigravity
  2. Click the Agent panel
  3. Click [...] (three dots) > MCP Servers
  4. Click "Manage MCP Servers"
  5. Click "Refresh"
  6. Verify that "obsidian" appears in the list

You can now use Knowledge Manager:

  "이 페이지를 정리해줘: https://example.com/article"
  "Process this article: https://example.com/article"

=================================================

For Claude Code

=================================================
  Setup Complete!
=================================================

Configuration:
  [OK] MCP servers added (playwright, obsidian)
  [OK] ./km-config.json created

You can now use Knowledge Manager:

  /knowledge-manager https://example.com/article

=================================================

Troubleshooting

MCP Server Not Appearing (Antigravity)

  1. Check config file syntax: cat ~/.gemini/antigravity/mcp_config.json | python -m json.tool
  2. Restart Antigravity completely (not just refresh)
  3. Check for conflicting server names

Permission Errors

If you see permission errors when writing to config:

The setup wizard couldn't write to the config file automatically.

Please manually add this to your mcp_config.json:

{config content here}

File location: ~/.gemini/antigravity/mcp_config.json

Environment-Specific Notes

Windows Paths

Use forward slashes in config files:

"vaultPath": "C:/Users/YourName/Documents/MyVault"

Mac/Linux Paths

Standard Unix paths work:

"vaultPath": "/Users/yourname/Documents/MyVault"

OneDrive/Cloud Sync

Cloud-synced vaults work fine:

"vaultPath": "C:/Users/YourName/OneDrive/Documents/MyVault"

Summary: MCP Requirements by Environment

EnvironmentObsidian MCPPlaywright MCPBrowser
AntigravityRequired (if using Obsidian)OptionalBuilt-in
Claude CodeRequired (if using Obsidian)RequiredMCP
Claude DesktopRequired (if using Obsidian)RequiredMCP

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

36.34%
按下载量换算1,077

Claude

31.58%
按下载量换算936

Cursor

16.79%
按下载量换算497

Gemini CLI

9.01%
按下载量换算267

安全审计

Gen Agent Trust Hub

未通过

Socket

通过

Snyk

可疑

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

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

来源信息

继续浏览同类 Skills