SwiftZilla Skill Instructions
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.
Step 1: Determine the User's Intent
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
depgraphtool. Proceed immediately to Step 2A.
- 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
asktool. Proceed immediately to Step 2B.
- ACTION: You need the
Step 2: Read Tool Reference (Progressive Disclosure)
Before executing any commands, you MUST read the specific reference file to understand the exact syntax and expected outputs.
Step 2A: Using depgraph
- Use your file reading tool to read
{workspace_or_agent_folder}/swiftzilla/scripts/references/depgraph.md. - Understand the required command structure (
depgraph indexordepgraph impact). - Ensure the
swiftzillabinary at{workspace_or_agent_folder}/swiftzilla/scripts/swiftzillais executable (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.
Step 2B: Using 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
swiftzillabinary at{workspace_or_agent_folder}/swiftzilla/scripts/swiftzillais executable (chmod +x). - Execute the command as specified in the reference.
- Return the exact knowledge base answer to the user.
execution guidelines
- No prose: Do not output conversational filler. Execute commands directly.
- Pathing: The
swiftzillaexecutable is located relative to the workspace atswiftzilla/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
askreference. Do not ask the user for help unless you cannot resolve the syntax or environment issue.