help

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

/help - Workspace Discovery

/help - 工作区探索

Guide users through the capabilities of this workspace setup.
引导用户了解此工作区配置的各项功能。

Usage

使用方法

/help                    # Interactive guided discovery
/help workflows          # Workflow orchestration skills
/help agents             # Specialist agents catalog
/help tools              # CLI tools (tldr, prove, recall)
/help hooks              # Active hooks and what they do
/help advanced           # MCP, frontmatter, customization
/help <name>             # Deep dive on specific skill/agent
/help                    # 交互式引导探索
/help workflows          # 工作流编排技能
/help agents             # 专业Agent目录
/help tools              # CLI工具(tldr, prove, recall)
/help hooks              # 激活的钩子及其作用
/help advanced           # MCP、前置元数据、自定义配置
/help <name>             # 深入了解特定Skill/Agent

Behavior Based on Arguments

基于参数的行为

No Arguments: Interactive Discovery

无参数:交互式探索

Use AskUserQuestion to guide the user:
question: "What are you trying to do?"
header: "Goal"
options:
  - label: "Explore/understand a codebase"
    description: "Find patterns, architecture, conventions"
  - label: "Fix a bug"
    description: "Investigate, diagnose, implement fix"
  - label: "Build a feature"
    description: "Plan, implement, test new functionality"
  - label: "Prove something mathematically"
    description: "Formal verification with Lean 4"
Based on response, show relevant tools:
GoalShow
Explore codebasescout agent, tldr CLI, /explore workflow
Fix a bug/fix workflow, sleuth agent, debug-agent
Build feature/build workflow, architect agent, kraken agent
Prove math/prove skill, lean4 skill, Godel-Prover
Research docsoracle agent, nia-docs, perplexity
Configure workspacehooks, rules, settings, frontmatter
使用AskUserQuestion引导用户:
question: "你想要完成什么任务?"
header: "目标"
options:
  - label: "探索/理解代码库"
    description: "查找模式、架构、约定"
  - label: "修复Bug"
    description: "排查、诊断、实现修复"
  - label: "开发新功能"
    description: "规划、实现、测试新功能"
  - label: "数学形式化证明"
    description: "使用Lean 4进行形式化验证"
根据用户回复,展示相关工具:
目标展示内容
探索代码库scout agent、tldr CLI、/explore工作流
修复Bug/fix工作流、sleuth agent、debug-agent
开发功能/build工作流、architect agent、kraken agent
数学证明/prove技能、lean4技能、Godel-Prover
研究文档oracle agent、nia-docs、perplexity
配置工作区钩子、规则、设置、前置元数据

/help workflows

/help workflows

Display workflow meta-skills:
markdown
undefined
展示工作流元技能:
markdown
undefined

Workflow Skills

工作流技能

Orchestrate multi-agent pipelines for complex tasks.
WorkflowPurposeAgents Used
/fixBug investigation → diagnosis → implementationsleuth → kraken → arbiter
/buildFeature planning → implementation → testingarchitect → kraken → arbiter
/debugDeep investigation of issuesdebug-agent, sleuth
/tddTest-driven development cyclearbiter → kraken → arbiter
/refactorCode transformation with safetyphoenix → kraken → judge
/reviewCode review and feedbackcritic, judge
/securityVulnerability analysisaegis
/exploreCodebase discoveryscout
/testTest execution and validationarbiter, atlas
/releaseVersion bumps, changelogherald
/migrateFramework/infrastructure changespioneer, phoenix
Usage: Just describe your goal. Claude routes to the right workflow.
undefined
为复杂任务编排多Agent流水线。
工作流用途使用的Agent
/fixBug排查 → 诊断 → 修复实现sleuth → kraken → arbiter
/build功能规划 → 实现 → 测试architect → kraken → arbiter
/debug问题深度排查debug-agent、sleuth
/tdd测试驱动开发周期arbiter → kraken → arbiter
/refactor安全的代码重构phoenix → kraken → judge
/review代码评审与反馈critic、judge
/security漏洞分析aegis
/explore代码库探索scout
/test测试执行与验证arbiter、atlas
/release版本升级、变更日志herald
/migrate框架/基础设施变更pioneer、phoenix
使用方式:只需描述你的目标,Claude会自动路由到对应的工作流。
undefined

/help agents

/help agents

Display agent catalog:
markdown
undefined
展示Agent目录:
markdown
undefined

Specialist Agents

专业Agent

Spawn via Task tool with subagent_type.
通过Task工具,指定subagent_type来启动。

Exploration & Research

探索与研究

AgentPurposeModel
scoutCodebase exploration, pattern findingsonnet
oracleExternal research (web, docs, APIs)sonnet
pathfinderExternal repository analysissonnet
Agent用途模型
scout代码库探索、模式查找sonnet
oracle外部研究(网页、文档、API)sonnet
pathfinder外部仓库分析sonnet

Planning & Architecture

规划与架构

AgentPurposeModel
architectFeature planning, design docssonnet
plan-agentCreate implementation planssonnet
phoenixRefactoring & migration planningsonnet
Agent用途模型
architect功能规划、设计文档sonnet
plan-agent创建实现方案sonnet
phoenix重构与迁移规划sonnet

Implementation

开发实现

AgentPurposeModel
krakenTDD implementation, refactoringsonnet
sparkQuick fixes, lightweight changeshaiku
Agent用途模型
krakenTDD开发实现、代码重构sonnet
spark快速修复、轻量级变更haiku

Review & Validation

评审与验证

AgentPurposeModel
arbiterTest execution, validationsonnet
criticCode reviewsonnet
judgeRefactoring reviewsonnet
Agent用途模型
arbiter测试执行、验证sonnet
critic代码评审sonnet
judge重构评审sonnet

Investigation

问题排查

AgentPurposeModel
sleuthBug investigation, root causesonnet
debug-agentIssue investigation with logssonnet
profilerPerformance, race conditionssonnet
Agent用途模型
sleuthBug排查、根因分析sonnet
debug-agent日志分析、状态检查sonnet
profiler性能分析、竞态条件检测sonnet

Documentation & Handoff

文档与交接

AgentPurposeModel
scribeDocumentation, session summariessonnet
chroniclerSession analysis, learning extractionsonnet
undefined
Agent用途模型
scribe文档编写、会话总结sonnet
chronicler会话分析、知识提取sonnet
undefined

/help tools

/help tools

Display CLI tools and capabilities:
markdown
undefined
展示CLI工具及其功能:
markdown
undefined

Built-in Tools

内置工具

TLDR Code Analysis

TLDR代码分析

Token-efficient code exploration (95% savings vs reading raw files).
bash
tldr tree src/              # File tree
tldr structure src/ --lang python  # Code structure (codemaps)
tldr search "pattern" src/  # Search files
tldr cfg file.py func       # Control flow graph
tldr dfg file.py func       # Data flow graph
tldr impact func src/       # Reverse call graph (who calls this?)
tldr dead src/              # Find dead code
tldr arch src/              # Detect architectural layers
高效的代码探索(相比直接阅读原始文件,节省95%的token消耗)。
bash
tldr tree src/              # 文件树
tldr structure src/ --lang python  # 代码结构(代码映射)
tldr search "pattern" src/  # 搜索文件
tldr cfg file.py func       # 控制流图
tldr dfg file.py func       # 数据流图
tldr impact func src/       # 反向调用图(哪些函数调用了此函数?)
tldr dead src/              # 查找死代码
tldr arch src/              # 检测架构分层

/prove - Formal Verification

/prove - 形式化验证

Machine-verified proofs without learning Lean syntax.
/prove every group homomorphism preserves identity
/prove continuous functions on compact sets are uniformly continuous
Requires: LM Studio running Godel-Prover model locally.
无需学习Lean语法即可进行机器验证的证明。
/prove every group homomorphism preserves identity
/prove continuous functions on compact sets are uniformly continuous
要求:本地运行LM Studio的Godel-Prover模型。

Memory System

记忆系统

Store and recall learnings across sessions.
bash
undefined
跨会话存储和召回知识。
bash
undefined

Recall past learnings

召回过往知识

(cd opc && uv run python scripts/core/recall_learnings.py --query "hook patterns")
(cd opc && uv run python scripts/core/recall_learnings.py --query "hook patterns")

Store new learning (via /remember skill)

存储新知识(通过/remember技能)

/remember "Hook X works by..."
undefined
/remember "Hook X works by..."
undefined

Premortem Risk Analysis

事前风险分析

Identify failure modes before they occur.
/premortem [plan-file]     # Analyze implementation plan for risks
undefined
在问题发生前识别潜在失败模式。
/premortem [plan-file]     # 分析实现方案的风险
undefined

/help hooks

/help hooks

Display active hooks:
markdown
undefined
展示激活的钩子:
markdown
undefined

Active Hooks

激活的钩子

Hooks extend Claude's behavior at key lifecycle points.
钩子用于在关键生命周期节点扩展Claude的行为。

Session Lifecycle

会话生命周期

HookEventPurpose
session-registerSessionStartRegister session in coordination DB
session-start-recallSessionStartAuto-inject relevant learnings
session-end-cleanupSessionEndCleanup temp files
session-outcomeSessionEndPrompt for session outcome
钩子事件用途
session-registerSessionStart在协调数据库中注册会话
session-start-recallSessionStart自动注入相关知识
session-end-cleanupSessionEnd清理临时文件
session-outcomeSessionEnd提示用户反馈会话结果

User Prompt Processing

用户提示处理

HookEventPurpose
skill-activation-promptUserPromptSubmitSuggest relevant skills
premortem-suggestUserPromptSubmitSuggest risk analysis for implementations
钩子事件用途
skill-activation-promptUserPromptSubmit推荐相关技能
premortem-suggestUserPromptSubmit为实现方案推荐风险分析

Tool Interception

工具拦截

HookEventPurpose
tldr-read-enforcerPreToolUse:ReadSuggest tldr for large files
smart-search-routerPreToolUse:GrepRoute to ast-grep for structural search
file-claimsPreToolUse:EditTrack which sessions edit which files
signature-helperPreToolUse:EditInject function signatures
import-validatorPostToolUse:EditValidate imports after edits
钩子事件用途
tldr-read-enforcerPreToolUse:Read为大文件推荐使用tldr
smart-search-routerPreToolUse:Grep将搜索路由到ast-grep进行结构化搜索
file-claimsPreToolUse:Edit跟踪哪些会话编辑了哪些文件
signature-helperPreToolUse:Edit注入函数签名
import-validatorPostToolUse:Edit编辑后验证导入语句

Validation

验证

HookEventPurpose
typescript-preflightPreToolUse:BashType-check before running
compiler-in-the-loopStopRun Lean compiler for /prove
钩子事件用途
typescript-preflightPreToolUse:Bash运行前进行类型检查
compiler-in-the-loopStop为/prove运行Lean编译器

Subagent Coordination

子Agent协调

HookEventPurpose
subagent-startSubagentStartInitialize agent context
subagent-stopSubagentStopExtract learnings from agents
undefined
钩子事件用途
subagent-startSubagentStart初始化Agent上下文
subagent-stopSubagentStop从Agent中提取知识
undefined

/help advanced

/help advanced

Display advanced customization:
markdown
undefined
展示高级自定义功能:
markdown
undefined

Advanced: Customization & Extension

高级:自定义与扩展

Skill Frontmatter

Skill前置元数据

Skills use YAML frontmatter for metadata and tool restrictions:
yaml
---
name: my-skill
description: What it does
triggers: ["keyword1", "keyword2"]
allowed-tools: [Bash, Read, Edit]
priority: high
skills: [other-skill]  # Auto-load dependencies
---
Skill使用YAML前置元数据来定义元数据和工具限制:
yaml
---
name: my-skill
description: What it does
triggers: ["keyword1", "keyword2"]
allowed-tools: [Bash, Read, Edit]
priority: high
skills: [other-skill]  # 自动加载依赖项
---

Agent Frontmatter

Agent前置元数据

Agents declare their capabilities:
yaml
---
name: my-agent
description: Specialist for X
model: sonnet|haiku|claude-opus-4-5-20251101
tools: [Read, Grep, Glob, Bash]
---
Agent声明其能力:
yaml
---
name: my-agent
description: Specialist for X
model: sonnet|haiku|claude-opus-4-5-20251101
tools: [Read, Grep, Glob, Bash]
---

MCP Servers

MCP服务器

External tool integrations:
ServerPurpose
ast-grepStructural code search/refactoring
firecrawlWeb scraping
github-searchSearch GitHub code/issues
morphFast file editing (10k tokens/sec)
niaDocumentation search
perplexityAI-powered web research
外部工具集成:
服务器用途
ast-grep结构化代码搜索/重构
firecrawl网页抓取
github-search搜索GitHub代码/问题
morph快速文件编辑(10k tokens/秒)
nia文档搜索
perplexityAI驱动的网页研究

Rules (.claude/rules/*.md)

规则(.claude/rules/*.md)

Always-on instructions injected into context:
  • claim-verification.md
    - Verify before asserting
  • dynamic-recall.md
    - How to use memory system
  • tldr-cli.md
    - TLDR usage reference
会自动注入上下文的常驻指令:
  • claim-verification.md
    - 断言前先验证
  • dynamic-recall.md
    - 如何使用记忆系统
  • tldr-cli.md
    - TLDR使用参考

Creating Custom Skills

创建自定义Skill

bash
mkdir -p .claude/skills/my-skill
bash
mkdir -p .claude/skills/my-skill

Create .claude/skills/my-skill/SKILL.md with frontmatter

创建包含前置元数据的.claude/skills/my-skill/SKILL.md文件

undefined
undefined

Creating Custom Agents

创建自定义Agent

bash
undefined
bash
undefined

Create .claude/agents/my-agent.md with frontmatter

创建包含前置元数据的.claude/agents/my-agent.md文件

undefined
undefined

/help <specific-name>

/help <特定名称>

For specific skill/agent lookup:
  1. Search for matching skill:
    .claude/skills/<name>/SKILL.md
  2. Search for matching agent:
    .claude/agents/<name>.md
  3. Read the file and display:
    • Description
    • Usage examples
    • When to use
    • Related skills/agents
查找特定Skill/Agent:
  1. 搜索匹配的Skill:
    .claude/skills/<name>/SKILL.md
  2. 搜索匹配的Agent:
    .claude/agents/<name>.md
  3. 读取文件并展示:
    • 描述
    • 使用示例
    • 使用场景
    • 相关技能/Agent

Dynamic Discovery

动态探索

To keep help current, dynamically read frontmatter:
bash
undefined
为保持帮助内容的时效性,动态读取前置元数据:
bash
undefined

List all skills with descriptions

列出所有Skill及其描述

for f in .claude/skills/*/SKILL.md; do head -10 "$f" | grep -E "^(name|description):" done
for f in .claude/skills/*/SKILL.md; do head -10 "$f" | grep -E "^(name|description):" done

List all agents

列出所有Agent

for f in .claude/agents/*.md; do head -10 "$f" | grep -E "^(name|description):" done
undefined
for f in .claude/agents/*.md; do head -10 "$f" | grep -E "^(name|description):" done
undefined

Example Interaction

交互示例

User:
/help
Claude:
What are you trying to do?

[ ] Explore/understand a codebase
    Find patterns, architecture, conventions

[ ] Fix a bug
    Investigate, diagnose, implement fix

[ ] Build a feature
    Plan, implement, test new functionality

[ ] Prove something mathematically
    Formal verification with Lean 4

[Other: describe your goal]
User selects: "Fix a bug"
Claude:
undefined
用户
/help
Claude:
你想要完成什么任务?

[ ] 探索/理解代码库
    查找模式、架构、约定

[ ] 修复Bug
    排查、诊断、实现修复

[ ] 开发新功能
    规划、实现、测试新功能

[ ] 数学形式化证明
    使用Lean 4进行形式化验证

[其他:描述你的目标]
用户选择:“修复Bug”
Claude:
undefined

Bug Fixing Tools

Bug修复工具

Quick Path

快捷方式

Just describe the bug. I'll use the /fix workflow automatically.
只需描述Bug,我会自动使用/fix工作流。

Manual Control

手动控制

  • sleuth agent: Deep investigation, root cause analysis
  • debug-agent: Log analysis, state inspection
  • kraken agent: TDD implementation of fix
  • sleuth agent:深度排查、根因分析
  • debug-agent:日志分析、状态检查
  • kraken agent:TDD模式的Bug修复实现

Commands

命令

  • /fix
    - Full workflow (investigate → diagnose → implement → test)
  • /debug
    - Investigation only
  • /fix
    - 完整工作流(排查→诊断→实现→测试)
  • /debug
    - 仅排查环节

Tips

提示

  • Provide error messages, logs, reproduction steps
  • The premortem hook will suggest risk analysis before implementation
undefined
  • 提供错误信息、日志、复现步骤
  • 事前风险分析钩子会在实现前推荐风险评估
undefined