domain-discover

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Discover Domain Knowledge

发现领域知识

You are tasked with creating a comprehensive domain knowledge file for a codebase that will help future Claude Code instances work effectively with this repository.
你的任务是为代码库创建一份全面的领域知识文件,帮助未来的Claude Code实例高效处理该代码仓库。

Arguments

参数

  • $ARGUMENTS[0]
    — Domain name used as the output filename (
    {domain}.md
    )
  • $ARGUMENTS[1]
    — (optional) Output directory for the domain knowledge file. Defaults to
    .
    (project root / current working directory)
When invoked by the orchestrator (e.g.
implement
),
$ARGUMENTS[1]
is provided. When used standalone, it defaults to the project root for backward compatibility.
  • $ARGUMENTS[0]
    — 用作输出文件名的领域名称(格式为
    {domain}.md
  • $ARGUMENTS[1]
    —(可选)领域知识文件的输出目录。默认值为
    .
    (项目根目录/当前工作目录)
当由编排器调用时(例如
implement
命令),会提供
$ARGUMENTS[1]
。独立使用时,为了向后兼容,默认输出到项目根目录。

Output Location

输出位置

  • Creates or updates
    $ARGUMENTS[1]/{$ARGUMENTS[0]}.md
    (e.g.
    ./payments.md
    )
  • Run
    mkdir -p $ARGUMENTS[1]
    before writing to ensure the directory exists.
  • 创建或更新
    $ARGUMENTS[1]/{$ARGUMENTS[0]}.md
    (例如
    ./payments.md
  • 写入前需执行
    mkdir -p $ARGUMENTS[1]
    以确保目录存在。

Objective

目标

Analyze the provided codebase and create or update a
{DOMAIN}.md
file containing essential information for productive development.
分析提供的代码库,创建或更新
{DOMAIN}.md
文件,包含高效开发所需的关键信息。

Analysis Approach

分析方法

  1. First, scan the repository structure to understand the project type and technology stack
  2. Read key configuration files (package.json, requirements.txt, Makefile, etc.) to identify build/test commands
  3. Examine main application files to understand the high-level architecture
  4. Review existing documentation (README.md, docs/) for important context
  1. 首先,扫描仓库结构以了解项目类型和技术栈
  2. 读取关键配置文件(package.json、requirements.txt、Makefile等)以识别构建/测试命令
  3. 检查主应用文件以理解高层架构
  4. 查看现有文档(README.md、docs/目录)以获取重要上下文

Execution

执行

Follow references/rules.md for content requirements, guidelines, and safety rules. Use references/output-format.md for the output template and validation criteria.
<tags> <mode>standard</mode> <custom>yes</custom> </tags>
请遵循references/rules.md中的内容要求、指南和安全规则。 使用references/output-format.md作为输出模板和验证标准。
<tags> <mode>standard</mode> <custom>yes</custom> </tags>