swiftzilla
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseSwiftZilla Skill Instructions
SwiftZilla Skill 使用说明
You are equipped with the SwiftZilla CLI, a static analysis and knowledge base tool for Swift/iOS projects.
CRITICAL INSTRUCTION: Do NOT guess command arguments or syntax. You MUST follow the progressive disclosure steps below based on the user's intent.
你已配备SwiftZilla CLI,这是一款面向Swift/iOS项目的静态分析与知识库工具。
重要说明:请勿猜测命令参数或语法。你必须根据用户的意图,遵循以下逐步披露的步骤操作。
Step 1: Determine the User's Intent
步骤1:确定用户意图
Analyze the user's request to choose the appropriate tool:
- IF the user wants to know who calls a function, what breaks if a file changes, the blast radius of a refactor, or symbol dependencies:
- ACTION: You need the tool. Proceed immediately to Step 2A.
depgraph
- ACTION: You need the
- IF the user asks a question about Swift, iOS, tvOS, watchOS, macOS best practices, implementation patterns, or architecture:
- ACTION: You need the tool. Proceed immediately to Step 2B.
ask
- ACTION: You need the
分析用户的请求,选择合适的工具:
- 如果用户想了解谁调用了某个函数、修改文件后会破坏哪些内容、重构的影响范围,或者符号依赖关系:
- 操作:你需要使用****工具。立即进入步骤2A。
depgraph
- 操作:你需要使用**
- 如果用户询问关于Swift、iOS、tvOS、watchOS、macOS的最佳实践、实现模式或架构相关问题:
- 操作:你需要使用****工具。立即进入步骤2B。
ask
- 操作:你需要使用**
Step 2: Read Tool Reference (Progressive Disclosure)
步骤2:阅读工具参考文档(逐步披露)
Before executing any commands, you MUST read the specific reference file to understand the exact syntax and expected outputs.
在执行任何命令之前,你必须阅读特定的参考文件,以了解确切的语法和预期输出。
Step 2A: Using depgraph
depgraph步骤2A:使用depgraph
depgraph- Use your file reading tool to read .
{workspace_or_agent_folder}/swiftzilla/scripts/references/depgraph.md - Understand the required command structure (or
depgraph index).depgraph impact - Ensure the binary at
swiftzillais executable ({workspace_or_agent_folder}/swiftzilla/scripts/swiftzilla).chmod +x - Execute the command as specified in the reference.
- Parse the output exactly as instructed in the reference to answer the user's request.
- 使用你的文件读取工具读取。
{workspace_or_agent_folder}/swiftzilla/scripts/references/depgraph.md - 理解所需的命令结构(或
depgraph index)。depgraph impact - 确保位于的
{workspace_or_agent_folder}/swiftzilla/scripts/swiftzilla二进制文件具有可执行权限(执行swiftzilla)。chmod +x - 按照参考文档中的说明执行命令。
- 严格按照参考文档中的指示解析输出,以回应用户的请求。
Step 2B: Using ask
ask步骤2B:使用ask
ask- Use your file reading tool to read .
{workspace_or_agent_folder}/swiftzilla/scripts/references/ask.md - Understand the required command structure ().
ask "query" - Ensure the binary at
swiftzillais executable ({workspace_or_agent_folder}/swiftzilla/scripts/swiftzilla).chmod +x - Execute the command as specified in the reference.
- Return the exact knowledge base answer to the user.
- 使用你的文件读取工具读取。
{workspace_or_agent_folder}/swiftzilla/scripts/references/ask.md - 理解所需的命令结构()。
ask "query" - 确保位于的
{workspace_or_agent_folder}/swiftzilla/scripts/swiftzilla二进制文件具有可执行权限(执行swiftzilla)。chmod +x - 按照参考文档中的说明执行命令。
- 将知识库的准确答案返回给用户。
execution guidelines
执行准则
- No prose: Do not output conversational filler. Execute commands directly.
- Pathing: The executable is located relative to the workspace at
swiftzilla.swiftzilla/scripts/swiftzilla - Errors: If the CLI returns an error, analyze the error message. If it involves missing files, verify the file paths. If it involves missing API keys, check the reference. Do not ask the user for help unless you cannot resolve the syntax or environment issue.
ask
- 无需冗余表述:不要输出对话式的填充内容。直接执行命令。
- 路径说明:可执行文件位于工作区的相对路径
swiftzilla。swiftzilla/scripts/swiftzilla - 错误处理:如果CLI返回错误,请分析错误消息。如果涉及缺失文件,请验证文件路径。如果涉及缺失API密钥,请查看参考文档。除非你无法解决语法或环境问题,否则不要向用户寻求帮助。
ask