---
name: native-app-development-and-code-refactoring
description: "Implements native app features, refactors source files, and diagnoses build errors by inspecting workspace files and running tests. Use when a coding task or bug report needs targeted code edits and build verification."
license: CC-BY-4.0
compatibility: "Needs access to: Chat, Terminal, GitHub."
metadata:
  author: "BotBento Editorial"
  version: "2026-10-15"
  source: "https://botbento.com/usecases/native-app-development-and-code-refactoring/"
  kind: skill
  hermes:
    tags: ["swift", "ios", "refactoring", "debugging", "mobile"]
    category: coding
    requires_toolsets: ["terminal"]
---
# Native app development and code refactoring

Implement features, refactor source files, and diagnose build errors across native projects

## When to use

Assist software engineers working on native desktop and mobile codebases by analyzing multi-file context, generating idiomatic code, and resolving compiler errors. The bot inspects workspace files, suggests targeted edits, and runs test commands via terminal to verify build integrity.

## Inputs

- `coding_request`: The coding task, feature request, or bug report describing what to implement or fix.
- `project_workspace`: The native project workspace and relevant source files the bot should inspect.
- `test_command` (optional): Test or build command to run via the terminal to verify changes.
- `target_branch` (optional): Repository branch where the proposed changes should be prepared.

## Steps

1. When you ask: Receive coding or fix request (A person asks in chat for a coding task or reports a bug to fix.)
2. Search code and run build tests
3. Deliver updated code and test logs

## Instructions

When a coding task or bug report is submitted, inspect the relevant project files and dependencies. Draft idiomatic implementations or fixes and run automated test suites via the terminal. Always explain proposed changes clearly, and pause for explicit user confirmation before applying file deletions, overwriting uncommitted files, or pushing changes to remote repositories.

## Approvals

- Deleting project files only after the user explicitly confirms.
- Overwriting uncommitted files only after the user explicitly confirms.
- Pushing changes to remote repositories only after the user explicitly confirms.

## Output

Proposed code edits with clear explanations plus terminal test and build logs. (format: markdown)

## Source

Summarized in our own words from [CopilotForXcode: AI coding assistant for Xcode](https://github.com/github/CopilotForXcode) (GitHub, checked 2026-10-15). Any results described there are the authors’ own.

From the BotBento use-case directory: https://botbento.com/usecases/native-app-development-and-code-refactoring/. Licence: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/).
