Borrowing it
Nothing to install: this file belongs to St0ff3l/fileterm. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/St0ff3l/fileterm/main/.agents/skills/fileterm-common-components/SKILL.mdgit clone --depth 1 https://github.com/St0ff3l/filetermWrote 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.
[](https://agentmods.dev/skills/st0ff3l/fileterm/fileterm-common-components)<a href="https://agentmods.dev/skills/st0ff3l/fileterm/fileterm-common-components"><img src="https://agentmods.dev/badge/skills/st0ff3l/fileterm/fileterm-common-components/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.
<a href="https://agentmods.dev/skills/st0ff3l/fileterm/fileterm-common-components"><img src="https://agentmods.dev/badge/skills/st0ff3l/fileterm/fileterm-common-components.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00045 | $0.01017 |
| Opus 5.5 | $0.00018 | $0.00407 |
| Sonnet 5.5 | $0.00009 | $0.00203 |
| Haiku 4.5 | $0.00005 | $0.00102 |
Grade A, and why
fileterm-common-components 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 8d 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.
What it actually says
FileTerm 通用组件与主题
目标:复用公共交互,让内置和自定义主题通过同一条变量链路生效。路径以当前源码为准。
实现边界
- 新公共视觉组件放
apps/tauri/src/renderer/components/common/<name>/,组件 CSS 共址;业务组件放features/<feature>/。 features/common/保留行为工具、辅助组件和兼容 re-export;styles/features/是迁移区,不新增组件皮肤。- 具体颜色只进入主题
--ref-*;styles/tokens/semantic.css映射语义变量;组件只消费语义变量,不写 hex/rgb、--ref-*或旧兼容别名。布局、尺寸与排版数值可在组件 CSS 定义。 - 新颜色补齐四个内置主题与
app/theme-config.ts的运行时映射;--focus-outline只用于描边/光环,主按钮用--action-primary-*。 - 表单用
DropdownSelect,箭头随实际控件高度缩放;破坏性操作用ConfirmActionDialog,禁止业务原生 select /window.confirm()。 - 新增纵向滚动默认复用
features/common/vertical-scrollbar.tsx并隐藏原生纵向滚动条;横向、第三方编辑器内部及协议组件自带滚动可保留专用实现。 - UI 图标使用本地 SVG /
AppIcon和 currentColor,按功能域归档;应用身份资产与 UI 图标隔离,不引入 WebFont 或 CDN。 - 同组按钮高度、圆角和内边距一致,异步操作防止重复提交并保留错误反馈。
- 输入框、textarea 与下拉框聚焦/展开时禁止新增彩色描边,统一消费
--input-focus-shadow(中性 inset 内环+加深外阴影);复合输入仅外壳绘制一次。既有 hover 反馈(包括文件工具栏蓝框)保持不变;按钮、复选/单选与校验状态不跟随重置。forced-colors 下保留系统键盘焦点回退,详见控件约束。 - 深色输入只保留中性内环,不绘制外部深色底层;亮色可用轻量外阴影。路径/筛选、运行时隧道和命令代码区使用既有单层 1px 边框反馈,禁止与硬内环叠成粗边。终端底部命令输入栏保持原样。
按需细节
- 修改 token、自定义主题、颜色迁移、首屏主题或编辑器主题时,读 主题实现与迁移 对应章节。
- 修改具体控件、图标、选择状态或系统指标时,读 公共控件与资产约束 对应条目。
- 原生窗口、平台差异与快捷键另读 跨平台 skill。
验证与完成
组件/CSS 改动前后运行(仓库根目录,均需 rg 和 Git;Windows 入口需要 Git for Windows):
bash .agents/skills/fileterm-common-components/scripts/check-css-contract.sh
Windows PowerShell:
pwsh -NoProfile -File .agents/skills/fileterm-common-components/scripts/check-css-contract.ps1
对比已有债务与本次新增问题,不为通过检查顺手重写无关样式。检查器全量检查 semantic.css 和公共组件;feature CSS 只阻塞相对 CSS_CONTRACT_BASE(默认 origin/main)的 merge-base 变更文件及未跟踪文件,避免历史债务阻塞。需要其他基准时设置该环境变量。它也检查十六进制、颜色函数和 CSS 命名颜色;四个主题文件检查是否缺失。feature TSX 行内颜色、原生 select/confirm 和自定义主题映射需另外检查。
运行改动文件的 Prettier 检查及 AGENTS.md 要求的代码门禁。验证受影响主题、自定义 accent、控件状态和平台分支;报告结果、历史债务与未验证平台。
What ships with it
4 files 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.
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.
- 8d ago Changed · +6 lines ec7695a102ab
- 10d ago First seen · 40 lines · 45 tokens per session scan A 267b7338dd00
fileterm-common-components is a skill published in the GitHub repository St0ff3l/fileterm (422 stars, last pushed 2d ago), licensed MIT. It adds 45 tokens to every session and 1,017 once invoked, about $0.0002 per session on Opus 5.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-10-27.
fileterm-common-components compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| fileterm-common-componentsSt0ff3l/fileterm | Skill | 422 | 2d ago | MIT | A | 45 | Claude Code, Codex |
| chakra-ui-builderchakra-ui/chakra-ui | Skill | 41k | yesterday | MIT | A | 214 | Claude Code, Codex |
| antigravity-design-expertsickn33/agentic-awesome-skills | Skill | 49k | yesterday | MIT | A | 39 | Claude Code |
| tamagui-v6-configtamagui/tamagui | Skill | 14k | today | MIT | A | 0 | Claude Code, Codex |
| tamagui-theme-generatortamagui/tamagui | Skill | 14k | today | MIT | A | 48 | Claude Code, Codex |
| liquid-metal-borderMengTo/Skills | Skill | 7.3k | yesterday | MIT | A | 97 | Codex |
| frontend-ui-dark-tsmicrosoft/skills | Skill | 3.2k | yesterday | MIT | A | 48 | Claude Code |