fkit-feature

A skill for creating, changing, and restructuring FlutterKit features and pages. FlutterKit is a Flutter application framework with separate parts for screens, logic, state, dependencies, navigation, and translations.

In plain words
What is it for?
Use it to add or refactor business modules and screens, connect routes and translations, choose the right page base class, add previews and tests, and check the affected code.
Why use it?
It helps keep new or changed pages consistent with the project's architecture and avoids putting responsibilities in the wrong layer.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/joker-x-dev/flutterkit/fkit-feature
Any agent
npx skills add Joker-x-dev/FlutterKit --skill fkit-feature
Clone the repo
git clone --depth 1 https://github.com/Joker-x-dev/FlutterKit

Made for: Claude Code, Codex.

Per session 67 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 620 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00067 $0.00620
Opus 5 $0.00034 $0.00310
Sonnet 5 $0.00013 $0.00124
Haiku 4.5 $0.00007 $0.00062

Measured 2d ago against content hash c3921fea913c, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

fkit-feature 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 2d 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-feature/SKILL.md · 42 lines

What it actually says

FKit Feature

必读资料

先阅读仓库根目录 AGENTS.md,再按任务读取:

  • docs/flutter-kit/业务功能/index.md
  • docs/flutter-kit/业务功能/structure.md
  • docs/flutter-kit/业务功能/create-page.md
  • docs/flutter-kit/业务功能/templates.md
  • 当前层对应的 view.mdlogic.mdstate.mdbinding.md
  • docs/flutter-kit/框架核心/base.md 及所选父类专题

涉及 UI、导航、数据或预览时继续遵守对应 FKit Skill 与项目文档。

工作流

  1. 检查目标 Feature、相邻页面、路由和测试,确认现有命名与依赖方式。
  2. 根据数据形态选择普通、网络、分页、刷新或 Tab 父类,禁止在普通页面复制父类状态机。
  3. 按真实复杂度创建 View、Logic、State、Binding;不要为了目录完整创建空文件。
  4. 将单页模型、静态数据、小型 Widget、Skeleton 和行为留在页面附近。同一模块多页面复用时才提升到模块级按需目录,跨 Feature 复用时才进入 Core。
  5. 让 View 只布局、订阅和转发事件;让 Logic 处理生命周期、Repository/Service、状态与导航;让 State 只保存展示状态;让 Binding 只注册依赖。
  6. 将用户可见文案写入模块 localization/,并接入路由、Navigator 和 Preview。
  7. 补充对应测试,检查 Feature 未直接依赖其他 Feature 的内部实现。

关键约束

  • Feature data/ 只保存模块共享静态配置、展示数据或提供器,不创建第二套 Repository/DataSource。
  • Repository 字段使用完整领域名称,例如 _userInfoStoreRepository,不用 _repository
  • 模块 Service 只服务本模块多个路由;应用级跨模块状态才进入 core/service/
  • 单页私有 Widget 优先作为 View 私有方法或相邻文件,不提前提升到模块 widgets/
  • 修改现有页面时保留公开行为和路由契约,除非任务明确要求变更。

验证

格式化本次涉及的 Dart 文件,运行最小相关测试、必要的 Preview 测试、flutter analyze 相关范围和 git diff --check。确认没有手工修改生成文件。

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. 2d ago First seen · 42 lines · 67 tokens per session scan A c3921fea913c

Subscribe to this mod's changes

fkit-feature is a skill published in the GitHub repository Joker-x-dev/FlutterKit (110 stars, last pushed 1mo ago), licensed MIT. It adds 67 tokens to every session and 620 once invoked, about $0.0003 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.