Hig Project Context
raintree-technology/hig-doctor
Create or update a shared Apple design context document that other HIG skills use to tailor guidance.
Cut dead code and over-long comments from termio's Swift, verifying every deletion against a build.
$ npx skills add termio-sh/termio --skill code-clean -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install termio-sh/termio code-clean --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/termio-sh/termio.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/code-clean .claude/skills/code-clean && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "code-clean" agent skill from https://github.com/termio-sh/termio/tree/main/skills/code-clean into .claude/skills/code-clean/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "code-clean", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/termio-sh/termio/tree/main/skills/code-cleanType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add termio-sh/termio --skill code-clean -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install termio-sh/termio code-clean --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/termio-sh/termio.git skills-src && mkdir -p .agents/skills && cp -r skills-src/skills/code-clean .agents/skills/code-clean && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "code-clean" agent skill from https://github.com/termio-sh/termio/tree/main/skills/code-clean into .agents/skills/code-clean/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "code-clean", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add termio-sh/termio --skill code-clean -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install termio-sh/termio code-clean --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/termio-sh/termio.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/skills/code-clean .cursor/skills/code-clean && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "code-clean" agent skill from https://github.com/termio-sh/termio/tree/main/skills/code-clean into .cursor/skills/code-clean/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "code-clean", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/termio-sh/termio.git --path skills/code-clean--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add termio-sh/termio --skill code-clean -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install termio-sh/termio code-clean --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/termio-sh/termio.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/skills/code-clean .gemini/skills/code-clean && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "code-clean" agent skill from https://github.com/termio-sh/termio/tree/main/skills/code-clean into .gemini/skills/code-clean/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "code-clean", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install termio-sh/termio code-cleanInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add termio-sh/termio --skill code-clean -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/termio-sh/termio.git skills-src && mkdir -p .github/skills && cp -r skills-src/skills/code-clean .github/skills/code-clean && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "code-clean" agent skill from https://github.com/termio-sh/termio/tree/main/skills/code-clean into .github/skills/code-clean/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "code-clean", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add termio-sh/termio --skill code-clean -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install termio-sh/termio code-clean --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/termio-sh/termio.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/skills/code-clean .opencode/skills/code-clean && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "code-clean" agent skill from https://github.com/termio-sh/termio/tree/main/skills/code-clean into .opencode/skills/code-clean/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "code-clean", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
code-cleanCut dead code and over-long comments from termio's Swift, verifying every deletion against a build.
Code Clean is an agent skill from termio-sh/termio. Cut dead code and over-long comments from termio's Swift, verifying every deletion against a build. Knows this repo's real failure mode (essay-length doc comments, not restated-code slop) and periphery's four known false-positive shapes. Invoke when the user says 'clean dead code', 'clean up the comments', 'the comments are too long', 'remove unused code', 'tighten this file', '清理死代码', '注释太啰嗦', '精简一下注释'.
Its SKILL.md is about 1.7k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.
It sits in Mobile, covering iOS development. It works with iOS. The repository describes itself as: A terminal-first agentic development environment for agentic coding. Build for CLI/TUI agent. Runtime for Coding Agent, Tmux alternative. The licence is MIT.
3 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit 1a47d10. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Shell commands in SKILL.md call:
swiftgitFrom the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md. Its commands use git, which can reach the network depending on how they are called.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Code Clean loads about 1.7k tokens when it runs. Until then it costs about 105 tokens; SKILL.md has 884 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from termio-sh/termio at commit 1a47d10, republished under its MIT licence (© termio-sh). 884 words, ~1,695 tokens.
.claude/skills/code-clean/SKILL.md (or your agent's skills folder).Two passes over termio's Swift: dead code (symbols nothing reaches) and over-long comments (prose that outgrew what it explains). Both end in a build. Neither is a refactor.
This is not a generic AI-slop sweep. Run one on this repo and it finds nothing:
a 2026-08 survey of all 69k tracked Swift lines turned up 1 TODO (a false
match on an mktemp template), 0 commented-out code blocks, and 1
deliberate debug print. Don't spend the pass hunting those. The bloat here is
shaped differently, and §2 is where it lives.
Default to the current branch's diff against origin/main. A whole-tree pass is
a standing request only — say so, and expect it to take real time.
Never touch:
Sources/termio/Editor/Highlightr/ — vendored; upstream API surface is kept
intact on purpose (AGENTS.md).skills/ recorded in skills-lock.json — re-pull from
upstream instead of hand-editing.ios/build/, ios/build-sim/ — Xcode artifacts, not tracked source. They
hold ~100k lines of SPM checkouts that will swamp any tree-wide grep. Scope
greps with git ls-files, never bare find ios.periphery scan --targets termio (SPM; no config file needed). It is installed
at /opt/homebrew/bin/periphery.
Roughly three of every four hits are false. Four shapes account for nearly all of them — clear each before deleting anything:
private var toolbarDelegate / menuBar / hookListener / linkClickMonitor / scanTask / stream / source / window. Flagged
assignOnlyProperty, but holding the reference is the job — drop the
property and the object deallocates and the feature dies. App.swift says so
in comments ("must be retained").Equatable / Hashable key-struct fields. Read only through the
synthesized == / hash(into:), which periphery cannot see. BranchModel's
GitState spells out why its field exists: so a same-HEAD refresh is
recognized as a no-op.@objc selector-target sender: parameters. The AppKit selector
signature requires them.Two more that are unused and must stay:
IssueProvider protocol is unused as a
type but is the seam for Linear (docs/design/issue-tracker-integration.md).Session.createdAt is unread but lives in the state file.
Deleting it is a schema change, not a cleanup.Real finds cluster in fetch-and-cache paths whose views were never wired and
utilities orphaned when their UI was removed. Before deleting, grep the
symbol across Sources, Shared, ios/Sources, Tests, and scripts/. If
only a test references it, the test is holding a corpse upright — delete both.
The repo's actual bloat. Of 3,293 doc-comment blocks in Sources + Shared,
81% are 1–5 lines and healthy. The tail is not: 636 blocks run 6+ lines, 151
run 12+, and the longest is 44 lines — a design doc wearing a function header.
Find them:
git ls-files 'Sources/*.swift' 'Shared/*.swift' 'ios/Sources/*.swift' | xargs awk '
/^[[:space:]]*\/\/\//{if(n==0)start=FNR; n++; next}
{if(n>=12){print n" "FILENAME":"start}; n=0}
END{if(n>=12)print n" "FILENAME":"start}' | sort -rnAGENTS.md says comments explain why, not what. These comments already do — that is exactly the trap. Length is not the defect; misfiling is. A 20-line block is wrong not because it is long but because a field's doc comment is the wrong home for a design argument.
Sort every long block into three piles:
Workspace.isAutoCreated's note on why Bool? has
three states, not two, is load-bearing: collapsing it to false is what made
an earlier version wrong. Length is irrelevant here. Leave it.docs/design/, leave a one-line pointer. Architecture,
alternatives considered, upstream asks, competitor comparisons. The 44-line
block on makeStatusTap is three paragraphs of model plus a caveat with an
upstream ask — that is a design doc. Use the doc skill to create or extend
it, then leave /// … see docs/design/<file>.md. Move, never delete.~130 docs open /// Whether the … and many just respell the property name:
/// Whether the "Projects" section is folded shut.
var isProjectsCollapsed: BoolDelete that. But /// Whether the machine answered at all. false is what turns every agent row … earns its line — it says what the value causes. Read each
one; do not pattern-match the opener.
One line is the target. Three is the ceiling for a field or inline comment, five
for a type or function. A block that cannot fit belongs in docs/design/.
// MARK: — all 602 of them. They are navigation, not narration, and they are
spread thin (12 in the heaviest file). AGENTS.md's ban on "organizational
comments" is about prose headers that summarize what the next block does.swift build # required, every time
swift test # if anything under a covered unit movedCovered units: split-tree layout, OSC parsing, stall probing, Markdown/HTML rendering, git service, editor text, install feedback.
A comment pass that changes no code still needs swift build — a deleted line
inside a multi-line string or a stray /// before an attribute breaks the
parse.
Per file: what was cut, what moved to docs/design/, and what was flagged but
kept and why. Name the periphery hits you rejected and which of the four shapes
each was — that list is how the next run gets faster.
Do not report a line count as the result. "Cut 400 lines" says nothing about whether the right 400 went.
© termio-sh, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in skills/code-clean of termio-sh/termio.
Open the folder on GitHubat commit 1a47d10
Code Clean next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Code Clean this skilltermio-sh/termio | 540 | — | ~1.7k | Automated safety check: Pass | MIT | |
| Hig Project Contextraintree-technology/hig-doctor | 142 | 5 repos | ~1.2k | Automated safety check: Pass | MIT | |
| Hig Components Contentraintree-technology/hig-doctor | 142 | 5 repos | ~1.3k | Automated safety check: Pass | MIT | |
| iOS Simulator Skilln0an/VivaDicta | 126 | 1 repos | ~2.5k | Automated safety check: Pass | MIT | |
| Inspector Implementationipedro/Inspector | 170 | — | ~729 | Automated safety check: Pass | MIT | |
| Device InteractionInfomaniak/desktop-kDrive | 120 | 1 repos | ~1.9k | Automated safety check: Pass | GPL-3.0 |
raintree-technology/hig-doctor
Create or update a shared Apple design context document that other HIG skills use to tailor guidance.
raintree-technology/hig-doctor
Apple Human Interface Guidelines for content display components.
n0an/VivaDicta
21 production-ready scripts for iOS app testing, building, and automation.
ipedro/Inspector
A skill your agent uses when an agent needs to implement or modify the Inspector library itself — panel UI, hierarchy/runtime behavior, custom property models, macros, or Example-app dogfooding.
Infomaniak/desktop-kDrive
Verify iOS app behavior on device or simulator via screenshots, UI hierarchy, and touch interactions.
iPlug2/iPlug2OOS
Build and run an iPlug2 iOS app in the iOS Simulator. An agent skill from iPlug2/iPlug2OOS.
termio-sh/termio
Diagnose a termio hang, beachball, crash, or 'it froze again' from the evidence macOS and termio actually leave behind — live process samples, crash and CPU-burn reports, the unified log, the…
termio-sh/termio
Drive the running termio app via AppleScript / System Events to reach a UI state (focus the window, click a sidebar project, a terminal pane, a control), capture a pixel-accurate screenshot of just…
termio-sh/termio
Analyze / reverse-engineer the locally installed Dia Browser mac app (The Browser Company; bundle id company.thebrowser.dia; shares ArcCore with Arc).
termio-sh/termio
Drive App Store Connect from the terminal with the asc CLI — TestFlight builds, groups, testers and What to Test notes; App Store versions, metadata, keywords, screenshots and release notes…
termio-sh/termio
Turn vague customer or user feedback from pasted text, chat excerpts, or screenshots into a clear, evidence-backed GitHub issue without inventing requirements.
termio-sh/termio
Regenerate the landing site's OG/social card (web/landing/public/og.webp) by rendering a temporary in-app route with the real hero WebGL aurora and screenshotting it with headless Chrome.
Works with
Categories
Cut dead code and over-long comments from termio's Swift, verifying every deletion against a build. Code Clean is an agent skill from termio-sh/termio. Cut dead code and over-long comments from termio's Swift, verifying every deletion against a build.
Code Clean fits situations like: says clean dead code; clean up the comments; the comments are too long; remove unused code.
Run `npx skills add termio-sh/termio --skill code-clean -a claude-code`. Or copy the skill folder (skills/code-clean in termio-sh/termio) into .claude/skills/code-clean in your project. Claude Code loads it when a task matches its description.
Run `npx skills add termio-sh/termio --skill code-clean -a codex`. Or copy the skill folder (skills/code-clean in termio-sh/termio) into .agents/skills/code-clean in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add termio-sh/termio --skill code-clean -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/code-clean, .gemini/skills/code-clean, .github/skills/code-clean and .opencode/skills/code-clean in your project.
Going by SKILL.md and its folder, Code Clean needs the command-line tools its instructions call (swift and git).
SKILL.md contains no URLs. Its commands use git, which can reach the network depending on how they are called. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Code Clean is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 1.7k tokens (SKILL.md is roughly 6.8k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Code Clean: Hig Project Context (raintree-technology/hig-doctor, 142 stars), Hig Components Content (raintree-technology/hig-doctor, 142 stars), iOS Simulator Skill (n0an/VivaDicta, 126 stars) and Inspector Implementation (ipedro/Inspector, 170 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
termio-sh (a GitHub organization) maintains it in termio-sh/termio, which has 540 GitHub stars. The repository holds 19 skills in this directory. The repository was last updated on October 6, 2026.
Source: termio-sh/termio on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.