AgentSkillsCN

os-tk-config

通过交互式界面或命令行配置 os-tk-pi 工作流设置。

SKILL.md
--- frontmatter
name: os-tk-config
description: Configure os-tk-pi workflow settings interactively or via commands.

/os-tk-config

Configure os-tk-pi workflow settings without manually editing JSON files.

Usage

code
/os-tk-config <subcommand> [arguments]

Subcommands:
  get <key>                     Get a config value
  set <key> <value>             Set a config value
  enable <feature>              Enable a feature
  disable <feature>             Disable a feature
  mcp <subcommand>              Manage MCP servers
  list                          List all config
  edit                          Open config in editor
  reset [section]               Reset section or entire config
  add-quality <type> <command>  Add quality command
  remove-quality <type> <idx>   Remove quality command
  status                        Show configuration status
  wizard                        Interactive configuration wizard

MCP Management

mcp list

List enabled MCP servers.

bash
/os-tk-config mcp list

🔌 MCP Servers
────────────────────────

1. context7
   Official docs + API signatures
   ⚠️  Requires: CONTEXT7_API_KEY

2. serena
   Symbol-level LSP (requires uv)

mcp add <server>

Add an MCP server.

bash
# Add a specific server
/os-tk-config mcp add serena
/os-tk-config mcp add context7
/os-tk-config mcp add exa

Available servers: context7, exa, grep_app, serena, zai-web-reader, zai-web-search

mcp remove <server|index>

Remove an MCP server by name or index.

bash
# By name
/os-tk-config mcp remove serena

# By index (from mcp list)
/os-tk-config mcp remove 2

mcp status

Show MCP status and which servers need API keys.

mcp reset

Reset MCP configuration to defaults.

Configuration Examples

Quick Setup

bash
# Enable MCP and Serena
/os-tk-config enable mcp
/os-tk-config mcp add serena

# Add custom quality commands
/os-tk-config add-quality format "npm run format -- --write"
/os-tk-config add-quality lint "eslint ."

View Current Config

bash
/os-tk-config status
/os-tk-config get mcp.enabled
/os-tk-config mcp list

Reset and Start Over

bash
/os-tk-config reset quality
/os-tk-config mcp reset

Configuration Keys Reference

KeyTypeDefaultDescription
mainBranchstring"main"Primary branch name
useWorktreesbooleantrueUse git worktrees
worktreeDirstring".worktrees"Worktree directory
autoPushbooleantrueAuto-push after merge
mcp.enabledbooleanfalseEnable MCP servers
mcp.serversarray[...]List of MCP servers
tools.serena.enabledbooleanfalseEnable Serena MCP
tools.astGrep.enabledbooleantrueEnable ast-grep
quality.autodetectbooleantrueAuto-detect quality tools
quality.formatarray["ruff format ."]Format commands
quality.lintarray["ruff check ."]Lint commands
quality.typecheckarray["ty", "pyright ."]Typecheck commands
review.requiredForDonebooleantrueRequire review
review.maxIterationsnumber3Max fix iterations

Available MCP Servers

ServerDescriptionRequires Key
context7Official docs + API signaturesCONTEXT7_API_KEY
exaWeb search for documentationNo
grep_appCross-repo code searchNo
serenaSymbol-level LSP (requires uv)No
zai-web-readerDeep web content extractionZAI_TOKEN
zai-web-searchWeb researchZAI_TOKEN

Examples

Enable Serena MCP

bash
# Method 1: Enable feature
/os-tk-config enable serena

# Method 2: Add to MCP servers
/os-tk-config mcp add serena
/os-tk-config set mcp.enabled true

Configure MCP Servers

bash
# List current servers
/os-tk-config mcp list

# Add context7 for docs
/os-tk-config mcp add context7

# Add serena for code analysis
/os-tk-config mcp add serena

# Remove exa
/os-tk-config mcp remove exa

# Check status
/os-tk-config mcp status

Add Quality Commands

bash
# Add format command
/os-tk-config add-quality format "custom-format ."

# Add lint command
/os-tk-config add-quality lint "custom-lint --config .lintrc"

# Add typecheck command
/os-tk-config add-quality typecheck "mypy ."

Notes

  • All changes are saved to .os-tk/config.json
  • The config is automatically backed up before changes (as .os-tk/config.json.bak)
  • Use /os-tk-config edit for complex changes
  • Use /os-tk-setup for interactive tool installation and subagent setup

Related Commands

  • /os-tk-setup - Verify prerequisites, install tools, install subagent, configure MCP
  • /os-tk-config mcp - Manage MCP servers