domain-discover
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseDiscover 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
参数
- — Domain name used as the output filename (
$ARGUMENTS[0]){domain}.md - — (optional) Output directory for the domain knowledge file. Defaults to
$ARGUMENTS[1](project root / current working directory).
When invoked by the orchestrator (e.g. ), is provided. When used standalone, it defaults to the project root for backward compatibility.
implement$ARGUMENTS[1]- — 用作输出文件名的领域名称(格式为
$ARGUMENTS[0]){domain}.md - —(可选)领域知识文件的输出目录。默认值为
$ARGUMENTS[1](项目根目录/当前工作目录).
当由编排器调用时(例如命令),会提供。独立使用时,为了向后兼容,默认输出到项目根目录。
implement$ARGUMENTS[1]Output Location
输出位置
- Creates or updates (e.g.
$ARGUMENTS[1]/{$ARGUMENTS[0]}.md)./payments.md - Run before writing to ensure the directory exists.
mkdir -p $ARGUMENTS[1]
- 创建或更新(例如
$ARGUMENTS[1]/{$ARGUMENTS[0]}.md)./payments.md - 写入前需执行以确保目录存在。
mkdir -p $ARGUMENTS[1]
Objective
目标
Analyze the provided codebase and create or update a file containing essential information for productive development.
{DOMAIN}.md分析提供的代码库,创建或更新文件,包含高效开发所需的关键信息。
{DOMAIN}.mdAnalysis Approach
分析方法
- First, scan the repository structure to understand the project type and technology stack
- Read key configuration files (package.json, requirements.txt, Makefile, etc.) to identify build/test commands
- Examine main application files to understand the high-level architecture
- Review existing documentation (README.md, docs/) for important context
- 首先,扫描仓库结构以了解项目类型和技术栈
- 读取关键配置文件(package.json、requirements.txt、Makefile等)以识别构建/测试命令
- 检查主应用文件以理解高层架构
- 查看现有文档(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>