文件预览

skill-card.md

查看 Swiftui View Refactor 技能包中的文件内容。

文件内容

skill-card.md

## Description: <br>
Refactor and review SwiftUI view files for consistent structure, dependency injection, and Observation usage. <br>

This skill is ready for commercial/non-commercial use. <br>

## Publisher: <br>
[steipete](https://clawhub.ai/user/steipete) <br>

### License/Terms of Use: <br>


## Use Case: <br>
Developers and engineers use this skill to refactor SwiftUI views into consistent, maintainable structure while preserving behavior and applying MV-first, dependency injection, and Observation guidance. <br>

### Deployment Geography for Use: <br>
Global <br>

## Known Risks and Mitigations: <br>
Risk: Proposed SwiftUI refactors could introduce incorrect behavior or misleading guidance if applied without review. <br>
Mitigation: Review proposed code changes before applying them and verify behavior remains intact. <br>
Risk: Examples or refactors that touch app data operations, including SwiftData deletes, could affect application data if copied directly. <br>
Mitigation: Check data-operation changes carefully against the app's intended behavior before deployment. <br>


## Reference(s): <br>
- [SwiftUI View Refactor on ClawHub](https://clawhub.ai/steipete/swiftui-view-refactor) <br>
- [MV Patterns Reference](references/mv-patterns.md) <br>


## Skill Output: <br>
**Output Type(s):** [Analysis, Code, Guidance] <br>
**Output Format:** [Markdown with Swift code examples and refactoring guidance] <br>
**Output Parameters:** [1D] <br>
**Other Properties Related to Output:** [Instruction-only guidance; proposed code changes should be reviewed before applying.] <br>

## Skill Version(s): <br>
1.0.0 (source: server release evidence) <br>

## Ethical Considerations: <br>
Users should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment. <br>