ttb-skill-refactor

ttb-skill-refactor is a skill for Claude Code, Codex from tqtuan1201/TTBaseUIKit. It costs 40 tokens per session (1,421 once invoked), scanned A, original, MIT.

A code-cleanup and restructuring workflow for TTBaseUIKit projects. It moves code toward TTViewCodable, TTBaseUIKit, TTBaseSUI, and separate MVVM-C responsibilities without changing behavior.

In plain words
What is it for?
Use it to separate view-model responsibilities, replace raw UIKit code with framework components, and adopt TTBaseSUI where appropriate.
Why use it?
It helps improve structure and framework consistency while keeping the app's existing behavior unchanged.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to separate view-model responsibilities, replace raw UIKit code with framework components, and adopt TTBaseSUI where appropriate.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/tqtuan1201/ttbaseuikit/ttb-skill-refactor
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add tqtuan1201/TTBaseUIKit --skill ttb-skill-refactor
Clone the repo
git clone --depth 1 https://github.com/tqtuan1201/TTBaseUIKit

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for ttb-skill-refactor

README.md
[![agentmods](https://agentmods.dev/badge/skills/tqtuan1201/ttbaseuikit/ttb-skill-refactor/github.svg)](https://agentmods.dev/skills/tqtuan1201/ttbaseuikit/ttb-skill-refactor)
Your own site
<a href="https://agentmods.dev/skills/tqtuan1201/ttbaseuikit/ttb-skill-refactor"><img src="https://agentmods.dev/badge/skills/tqtuan1201/ttbaseuikit/ttb-skill-refactor/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for ttb-skill-refactor

Your own site · 80×15
<a href="https://agentmods.dev/skills/tqtuan1201/ttbaseuikit/ttb-skill-refactor"><img src="https://agentmods.dev/badge/skills/tqtuan1201/ttbaseuikit/ttb-skill-refactor.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 40 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,421 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00040 $0.01421
Opus 5 $0.00020 $0.00711
Sonnet 5 $0.00008 $0.00284
Haiku 4.5 $0.00004 $0.00142

Measured 10d ago against content hash da0f820f914b, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

ttb-skill-refactor scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Agents/Antigravity/ttb-skill-refactor/SKILL.md · 123 lines

How it starts

The opening of the file, as written. The whole thing — 123 lines — stays where its author put it; the contents beside it link to each section on GitHub.

ttb-skill-refactor

Enterprise-grade refactoring workflow for TTBaseUIKit apps. Zero Functional Change | TTViewCodable | TTBaseSUI | MVVM-C

Mandatory Preflight Execution Gate

Before this skill generates code, refactors, migrates, modifies files, creates architecture, updates UI/navigation, changes dependencies, updates workflows, or changes business logic, run the shared gate:

  • ttb-skill-shared/fragments/ttb-preflight-execution-gate.frag.md
  • ttb-skill-shared/fragments/ttb-cross-functional-analysis-gate.frag.md when refactor scope touches feature behavior, UX flow, architecture, or bug prevention
  • ttb-skill-shared/templates/ttb-clarification-survey.md when confidence is below threshold

Required phase order: Requirement Analysis -> Context Validation -> Ambiguity Detection -> Missing Information Detection -> Survey / Clarification -> Confidence Evaluation -> Execution Approval.

Execution thresholds:

Confidence Action
90-100 Execute directly and state key assumptions
70-89 Execute only with documented low-risk assumptions
<70 Do not execute; ask a concise survey first

Cap confidence at 69 when target module, architecture direction, UIKit/SwiftUI choice, navigation behavior, API/business logic, localization format, state management, dependency info, or ownership is unclear. Parse English, Vietnamese, mixed-language, diacritic-free Vietnamese, and light typos before scoring.

When refactor scope is tied to feature updates, bug prevention, architecture changes, or user-visible flow changes, analyze as Product Owner, Business Analyst, UX/UI Designer, Solution Architect, Senior Developer, and QA. Compare options across business value, architecture, UI/UX, performance, scalability, maintainability, security, testing, and operations; ask at least 5 value-expansion questions after analysis. If requirements are ambiguous/incomplete, ask at least 6 clarification questions before design/development.

Read the full file on GitHub · 123 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 10d ago First seen · 123 lines · 40 tokens per session scan A da0f820f914b

Subscribe to this mod's changes

ttb-skill-refactor is a skill published in the GitHub repository tqtuan1201/TTBaseUIKit (23 stars, last pushed 1mo ago), licensed MIT. It adds 40 tokens to every session and 1,421 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

ax-uikit

UIKit-SwiftUI bridging (UIViewRepresentable, UIHostingController, UIHostingConfiguration), Auto Layout debugging, CAAnimation diagnosis, @Observable shared state, gesture recognizer bridging.

Kasempiternal/axiom-v2 · 40 tokens

focus-engine

Implement or debug keyboard, directional, and scene-level focus across SwiftUI and UIKit. Use for FocusState, focus restoration and routing, tvOS remote navigation, watchOS crown focus, visionOS input focus, macOS key loops, UIFocusGuide, or UIFocusDebugger.

thiennc-tesoglobal/ios-skills · 59 tokens

swiftui-webkit

Embeds and controls web content in SwiftUI with WebKit for SwiftUI, including WebView, WebPage, navigation policies, JavaScript execution, observable page state, link interception, local HTML or data loading, and custom URL schemes. Use when building iOS 26+ article/detail views, help centers, in-app documentation, or…

thiennc-tesoglobal/ios-skills · 87 tokens

swiftui-gestures

Builds or reviews SwiftUI tap, press, drag, magnify, and rotate interactions, including gesture composition, transient GestureState, custom gestures, and parent/child conflict resolution. Use for gesture recognition, arbitration, state, migration, or interaction bugs.

thiennc-tesoglobal/ios-skills · 58 tokens

swiftui-patterns

Structure and refactor SwiftUI views using Observation, clear state ownership, composition, and deterministic previews. Use for view architecture and data flow; route detailed layout, navigation, animation, performance, and visual effects to their dedicated skills.

thiennc-tesoglobal/ios-skills · 51 tokens

swiftui-animation

Implement or diagnose SwiftUI motion, including state animations, transitions, springs, keyframes, matched geometry, navigation zoom, and symbol effects. Use when motion behavior is part of the request; route layout, navigation state, and performance profiling elsewhere.

thiennc-tesoglobal/ios-skills · 53 tokens