Agent SkillsMimicHunterZ/PocketMind › flutter-environment-setup-linux

flutter-environment-setup-linux

GitHub

用于在 Linux(Debian/Ubuntu)或 ChromeOS 上配置 Flutter 桌面开发环境,包括安装系统依赖、C/C++ 工具链及 IDE,并验证工具链可用性。

.claude/skills/flutter-environment-setup-linux/SKILL.md MimicHunterZ/PocketMind

Trigger Scenarios

用户需要在 Linux 系统上搭建 Flutter 开发环境 用户遇到 Flutter Linux 桌面应用构建失败需检查依赖

Install

npx skills add MimicHunterZ/PocketMind --skill flutter-environment-setup-linux -g -y
More Options

Non-standard path

npx skills add https://github.com/MimicHunterZ/PocketMind/tree/master/.claude/skills/flutter-environment-setup-linux -g -y

Use without installing

npx skills use MimicHunterZ/PocketMind@flutter-environment-setup-linux

指定 Agent (Claude Code)

npx skills add MimicHunterZ/PocketMind --skill flutter-environment-setup-linux -a claude-code -g -y

安装 repo 全部 skill

npx skills add MimicHunterZ/PocketMind --all -g -y

预览 repo 内 skill

npx skills add MimicHunterZ/PocketMind --list

SKILL.md

Frontmatter
{
    "name": "flutter-environment-setup-linux",
    "metadata": {
        "model": "models\/gemini-3.1-pro-preview",
        "last_modified": "Thu, 26 Feb 2026 23:45:21 GMT"
    },
    "description": "Set up a Linux environment for Flutter development"
}

flutter-linux-setup

Goal

Configures a Linux environment (Debian/Ubuntu or ChromeOS) for Flutter desktop application development by installing required system prerequisites, managing OS-specific configurations, and validating the toolchain.

Decision Logic

  • If OS is ChromeOS: Require manual enablement of Linux support before proceeding to package installation.
  • If OS is Debian/Ubuntu: Proceed directly to apt-get package updates and installations.
  • If OS is non-Debian (e.g., Fedora, Arch): Halt and inform the user that this skill specifically targets apt-get package managers.

Instructions

  1. Determine the Host Operating System: STOP AND ASK THE USER: "Are you setting up this Flutter environment on a standard Debian/Ubuntu Linux distribution, or on a Chromebook (ChromeOS)?"

  2. Handle ChromeOS Prerequisites (Conditional): If the user indicates they are on a Chromebook: Instruct the user to navigate to their ChromeOS Settings, turn on "Linux development environment", and ensure it is fully updated. STOP AND ASK THE USER: "Please confirm once Linux support is enabled and updated so we can proceed with the package installation."

  3. Update System Packages: Execute the following command to refresh the package lists and upgrade existing packages:

    sudo apt-get update -y && sudo apt-get upgrade -y
    
  4. Install Core Prerequisites: Install the base dependencies required for Flutter to operate and build on Linux:

    sudo apt-get install -y curl git unzip xz-utils zip libglu1-mesa
    
  5. Install Linux Desktop Toolchain: Install the specific C/C++ toolchain and GTK libraries required to compile Linux desktop applications:

    sudo apt-get install -y clang cmake ninja-build pkg-config libgtk-3-dev libstdc++-12-dev
    
  6. IDE Configuration Prompt: STOP AND ASK THE USER: "For the best experience, an IDE with Flutter support is recommended. Would you like me to provide the installation commands for Visual Studio Code or Android Studio?"

    • If VS Code: Provide the snap installation command: sudo snap install --classic code
    • If Android Studio: Provide the snap installation command: sudo snap install android-studio --classic
  7. Validate the Environment: Run the Flutter diagnostic tool to verify the Linux toolchain and device availability:

    flutter doctor -v
    flutter devices
    

    Validate-and-Fix: Analyze the output of flutter doctor -v.

    • If the "Linux toolchain" section reports missing dependencies, parse the missing package names, construct a new sudo apt-get install -y <packages> command, and execute it.
    • If flutter devices does not list a linux platform device, verify that the libgtk-3-dev package was successfully installed and re-run the validation.

Constraints

  • Do not include any external URLs, hyperlinks, or references to external documentation.
  • Assume the user has sudo privileges and do not explain basic privilege escalation concepts.
  • Do not explain what individual packages (e.g., curl, cmake) do; assume the user understands standard Linux development tools.
  • Strictly use apt-get for package management to ensure non-interactive compatibility (-y flags must be present).
  • All terminal commands must be enclosed in bash code blocks.

Version History

  • c1dc382 Current 2026-08-20 13:17

Same Skill Collection

.claude/skills/asset-image-subsystem/SKILL.md
.claude/skills/baoyu-danger-x-to-markdown/SKILL.md
.claude/skills/flutter-accessibility/SKILL.md
.claude/skills/flutter-app-size/SKILL.md
.claude/skills/flutter-architecture/SKILL.md
.claude/skills/flutter-concurrency/SKILL.md
.claude/skills/flutter-environment-setup-macos/SKILL.md
.claude/skills/flutter-environment-setup-windows/SKILL.md
.claude/skills/flutter-http-and-json/SKILL.md
.claude/skills/flutter-layout/SKILL.md
.claude/skills/flutter-localization/SKILL.md
.claude/skills/flutter-native-interop/SKILL.md
.claude/skills/flutter-plugins/SKILL.md
.claude/skills/flutter-routing-and-navigation/SKILL.md
.claude/skills/flutter-testing/SKILL.md
.claude/skills/flutter-theming/SKILL.md
.claude/skills/headless-scraping/SKILL.md
.claude/skills/moai-lang-flutter/SKILL.md
.claude/skills/mobile-ai-chat-client/SKILL.md
.claude/skills/mobile-note-sync-architecture/SKILL.md
.claude/skills/note-resource-catalog-reliability/SKILL.md
.claude/skills/note-resource-event-driven-architecture/SKILL.md
.claude/skills/pocketmind-context-architecture/SKILL.md
.claude/skills/skill-creator/SKILL.md
backend/.claude/skills/code-reviewer/SKILL.md
.claude/skills/flutter-animation/SKILL.md
.claude/skills/flutter-caching/SKILL.md
.claude/skills/flutter-databases/SKILL.md
.claude/skills/flutter-form/SKILL.md
.claude/skills/flutter-home-screen-widget/SKILL.md
.claude/skills/flutter-performance/SKILL.md
.claude/skills/flutter-platform-views/SKILL.md
.claude/skills/flutter-state-management/SKILL.md

Metadata

Files
0
Version
c1dc382
Hash
d586f1e2
Indexed
2026-08-20 13:17

- 위키
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-25 08:11
浙ICP备14020137号-1 $방문자$