一键导入
usernode-frb-codegen
Run Usernode Flutter Rust Bridge codegen with the matching upstream flutter_rust_bridge revision. Use when Rust APIs or FRB bindings change.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Run Usernode Flutter Rust Bridge codegen with the matching upstream flutter_rust_bridge revision. Use when Rust APIs or FRB bindings change.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Audit the Usernode agent harness against curated external Flutter, mobile UX, design-system, and agent-skill harnesses. Use when comparing plugins or skills, refreshing the benchmark list, or evaluating whether to adopt outside ideas without losing Usernode identity.
Audit Usernode design-system widgets, screens, or PR changes. Use for verify-widget, screen-audit, PR audit, DS compliance, and mobile UX hard-ban review.
Build or redesign Usernode Flutter screens using Material 3, existing DS components, and mobile UX taste rules. Use for screen-from-design or redesign-existing-screen work.
Build or revise Usernode design-system widgets from normalized design input. Use for DS component work in lib/design_system, including Figma/screenshot/sketch/text-intake pipelines.
Normalize Usernode design input into a DS spec. Use for Figma URLs, screenshots, sketches, wireframes, or text briefs before building design-system widgets or screens.
Bootstrap or repair the Usernode design-system agent harness. Use in this repo when skills, hooks, Claude/Codex discovery adapters, or portable DS agent setup are missing or stale.
| name | usernode-frb-codegen |
| description | Run Usernode Flutter Rust Bridge codegen with the matching upstream flutter_rust_bridge revision. Use when Rust APIs or FRB bindings change. |
Run Flutter Rust Bridge generation against the ../usernode checkout.
Pull latest usernode:
cd ../usernode && git pull
Extract the flutter_rust_bridge rev from ../usernode/crates/usernode/Cargo.toml.
Check whether installed codegen already matches:
cargo install --list | grep -A1 '^flutter_rust_bridge_codegen' | head -2
If it clearly contains the target rev, skip reinstalling.
Install only if needed:
cargo install flutter_rust_bridge_codegen --git https://github.com/Usernode-Labs/flutter_rust_bridge --rev <HASH> --force
Verify:
flutter_rust_bridge_codegen --version
Generate from the flutter-mobile-app root:
flutter_rust_bridge_codegen generate
If sibling worktrees need reseeding, offer a dry run first:
for wt in $(git worktree list --porcelain | awk '/^worktree/ {print $2}' | tail -n +2); do
if git -C "$wt" status --short -- lib/src/rust | grep -q .; then
echo "SKIP dirty rust bindings in $wt"
continue
fi
rsync -a --dry-run --itemize-changes lib/src/rust/ "$wt/lib/src/rust/"
done
After the user reviews the dry-run output, rerun only the approved clean
targets without --dry-run. Do not use --delete unless the user explicitly
confirms it for each target worktree.
Report the FRB rev, whether install was skipped, generation status, and any worktree reseed.