FlutterKit: Skill for Codex

.agents/skills/fkit-preview/SKILL.md

fkit-preview is a skill for Codex from Joker-x-dev/FlutterKit. It costs 69 tokens per session (417 once invoked), scanned A, original, MIT.

Instructions for creating and reviewing Flutter Widget Previews, which show a page or component in development tools without running the complete application.

In plain words
What is it for?
Use them to add page or component previews, supply fixed sample data, inject required logic, and check phone, tablet, foldable, light, and dark appearances.
Why use it?
They keep previews independent from real networks, databases, and asynchronous setup, while checking different screen sizes and themes.

Skill for Codex

Written for Codex: agents/openai.yaml present. Also seen: installed under .agents/ (shared by several agents); mentions AGENTS.md.

This is Joker-x-dev/FlutterKit's own configuration. It tells Codex how to work on FlutterKit itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything FlutterKit configures →

Reuse

Borrowing it

Nothing to install: this file belongs to Joker-x-dev/FlutterKit. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/Joker-x-dev/FlutterKit/main/.agents/skills/fkit-preview/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/Joker-x-dev/FlutterKit

Made for: 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 fkit-preview

README.md
[![agentmods](https://agentmods.dev/badge/skills/joker-x-dev/flutterkit/fkit-preview/github.svg)](https://agentmods.dev/skills/joker-x-dev/flutterkit/fkit-preview)
Your own site
<a href="https://agentmods.dev/skills/joker-x-dev/flutterkit/fkit-preview"><img src="https://agentmods.dev/badge/skills/joker-x-dev/flutterkit/fkit-preview/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 fkit-preview

Your own site · 80×15
<a href="https://agentmods.dev/skills/joker-x-dev/flutterkit/fkit-preview"><img src="https://agentmods.dev/badge/skills/joker-x-dev/flutterkit/fkit-preview.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 69 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 417 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00069 $0.00417
Opus 5.5 $0.00028 $0.00167
Sonnet 5.5 $0.00014 $0.00083
Haiku 4.5 $0.00007 $0.00042

Measured 2mo ago against content hash e0a19f54ebba, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

fkit-preview 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 2mo 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/skills/fkit-preview/SKILL.md · 29 lines

What it actually says

FKit Preview

必读资料

先阅读 AGENTS.md、docs/flutter-kit/扩展/widget-preview.md、docs/flutter-kit/业务功能/view.md,再检查:

  • lib/core/ui/preview/app_preview_annotations.dart
  • lib/core/ui/preview/app_preview.dart
  • 当前 Feature 已有 Preview
  • test/core/ui/preview/feature_preview_test.dart

工作流

  1. 区分完整页面和独立组件。完整页面默认使用 @ResponsivePreview(),组件使用 @WidgetPreview();只在明确需要单设备时使用 Mobile、Tablet 或 Foldable 注解。
  2. 将顶层 previewXxx 函数放在当前 View/Widget 文件末尾,保持右侧预览聚焦当前文件。
  3. 页面通过构造参数注入 Logic,不依赖路由 Binding;不要为预览新增大量回调参数或复制 Content Widget。
  4. 网络、分页和刷新页面写入稳定的 Preview Data,并切换到成功状态;禁止真实网络、数据库或异步初始化。
  5. 组件使用真实业务模型的静态预览数据。组件正式 API 没有点击事件时,不为预览伪造 onTap。
  6. 检查手机、折叠屏、平板以及工具栏深浅色切换。

验证

运行 test/core/ui/preview/feature_preview_test.dart 与相关 Widget 测试。确认预览可独立构建、没有 overflow、没有 GetX 注册缺失,也没有真实外部请求。

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. 2mo ago First seen · 29 lines · 69 tokens per session scan A e0a19f54ebba

Subscribe to this mod's changes

fkit-preview is a skill published in the GitHub repository Joker-x-dev/FlutterKit (140 stars, last pushed 5d ago), licensed MIT. It adds 69 tokens to every session and 417 once invoked, about $0.0003 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-08-30.

Related

fkit-preview compared with skills from other repositories

fkit-preview next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
fkit-previewJoker-x-dev/FlutterKitSkill1405d agoMITA69Codex
webgl-holographic-foilnexu-io/open-designSkill106kyesterdayApache-2.0A41Claude Code, Codex
html-ppt-hermes-cyber-terminalnexu-io/open-designSkill106kyesterdayApache-2.0A53Claude Code, Codex
html-ppt-taste-brutalistnexu-io/open-designSkill106kyesterdayApache-2.0A78Claude Code, Codex
visual-ralphYeachan-Heo/oh-my-codexSkill34k3d agoMITA52Codex
glance-canonical-layoutsandroid/skillsSkill10kyesterdayApache-2.0A56Claude Code
accessibilitymicrosoft/hve-coreSkill1.6kyesterdayMITA47Claude Code