Token导航 LogoToken导航TokenDH.com
研究检索只读github未标认证来源可访问许可证需确认审计提醒

publish-flutter-packagepublish Flutter package 搜索

Agent Skill

publish-flutter-package 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

371

周安装

15

GitHub Stars

公开资料未说明

下载量

116
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:publish-flutter-package(publish Flutter package 搜索)
来源仓库:https://github.com/hu-wentao/wyatt_skills
仓库路径:skills/publish-flutter-package
安装命令:
npx skills add https://github.com/hu-wentao/wyatt_skills --skill publish-flutter-package
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/hu-wentao/wyatt_skills --skill publish-flutter-package

简介

publish-flutter-package 用于查找、检索和筛选相关信息,适合基于关键词或任务场景的信息定位。

  • 适用于需要快速获取候选结果并支持后续筛选的任务场景。
  • 通过 npx skills add 命令从 GitHub 仓库安装并使用。
  • 使用前需确认权限范围、维护状态及是否触发联网或系统操作。
  • 建议参考原始 README 了解具体功能边界与使用限制。

SKILL.md

Publish Flutter Package

This skill automates the Flutter package release workflow triggered by git tags.

Workflow

0. Pre-check

0.1 Project Root

Verify that the current working directory is the root of the Git repository (contains a .git folder and the main pubspec.yaml).

  • If not at the root (e.g., inside a sub-package directory), advise the user to switch to the project root directory before proceeding to ensure .github/workflows and workspace configurations can be correctly identified.

0.2 Detect Packages (Workspace Support)

Read the root pubspec.yaml file.

  • Check for the workspace: field.
  • If present, parse the paths (e.g., - packages/*) to find all nested packages.
  • Ask the user which package to publish if multiple are detected.
  • Store the relative path to the selected package (e.g., packages/my_package) for subsequent steps.

0.3 Git & Remote Pre-check

Run scripts/pre_check.py to automatically verify the repository status.

  • Uncommitted Changes: If the script reports uncommitted files, list them and ask the user if they want to commit them before proceeding.
  • Remote Sync:

- If the branch is behind the remote, advise the user to git pull before continuing. - If the branch is ahead, notify the user that their commits will be pushed in Step 5.

  • Ensure the environment is ready for release based on the script's output.

0.4 FVM Detection

Check if the project is using FVM (e.g., presence of .fvm/fvm_config.json).

  • If FVM is detected, prefix all subsequent flutter and dart commands with fvm (e.g., use fvm dart instead of dart) to ensure the correct SDK version is used and to avoid environment mismatches.

1. GitHub Actions Verification

1.1 Configuration Check & Tag Format Discovery

Run scripts/inspect_workflows.py [package_name] to find and parse publishing workflows.

  • The script returns a JSON list of identified workflows, their uses field, and their on.push.tags.
  • If a package name is provided, the script ranks workflows based on relevance (e.g., if the filename contains the package name).
  • Selection Logic:

- Verify that the chosen workflow's uses points to dart-lang/setup-dart/.github/workflows/publish.yml. - Extract the expected tag format from the tags list (e.g., v*). - If multiple workflows exist, recommend the one with the highest score and ask the user to confirm. - If the user skips or provides no alternative, proceed with the recommended workflow. - If no matching workflow is found, show the Github Action Template and guide the user to create one. - For more details on the automated publishing flow, refer to Automated publishing.

2. Versioning Strategy (SemVer)

  • Use scripts/prepare_release.py <current_version> [--tag-match <pattern>] [--package-path <path>] to analyze git history since the last tag.

- If the tag format from Step 1.2 is non-standard (e.g., package-name-*), pass it as --tag-match to ensure the correct last tag is identified. - Pass the relative path of the package (from Step 0.2) as --package-path to filter the git history to only include changes affecting that package.

  • This script provides a suggested version based on commit types (feat/fix/breaking) and generates a formatted CHANGELOG.md entry.
  • Present the suggestion and the draft changelog entry to the user. If the user skips or provides no alternative, proceed with the suggested values.
  • Allow the user to edit the version or the content before proceeding.

3. Documentation Updates

3.1 pubspec.yaml

Update the version field in the relevant package's pubspec.yaml with the chosen version.

3.2 CHANGELOG.md

Insert the confirmed CHANGELOG.md entry at the top of the file (after any initial headers). Format requirement:

## <Version> <YYYY-MM-DD>
* feat/fix/... [**important**] <content>

Note: Ensure the format matches the user's project-specific conventions if they differ from the suggested draft.

4. Git Commit & Validation (Dry Run)

4.1 Git Commit

Commit the modified pubspec.yaml and CHANGELOG.md files:

git add .
git commit -m "chore(release): <version>"

4.2 Validation (Dry Run)

Run dart pub publish --dry-run (or fvm dart pub publish --dry-run if FVM is used) to verify the package contents and configuration.

  • Troubleshooting: If publication consistently fails or you encounter unexpected issues, refer to the official publishing guide for the latest release process and requirements.
  • Proceed only if the dry run is successful.

5. Git Tagging & Push

Once validated, add a new git tag and push everything to trigger the automated release.

  • Tagging: Add a new git tag matching the format found in Step 1.1 using git tag.

- Example: If the tag format is v[0-9]+.[0-9]+.[0-9]+, the tag should be v<version>.

  • Pushing: Push the new commit and tag to the remote repository to trigger the GitHub Action: git push git push origin <tag_name>

Resources

scripts/

  • pre_check.py: Automatically verifies uncommitted changes and remote branch synchronization status before starting the release process.

- Returns a JSON report of the current git status.

  • inspect_workflows.py: Automatically discovers and parses GitHub Action workflows to identify publishing configurations and tag formats.

- Arguments: [package_name]

  • prepare_release.py: Analyze git history to suggest SemVer version and generate CHANGELOG.md entry.

- Arguments: <current_version> - Optional: --tag-match <pattern> (e.g., my-pkg-* or v*) to find the correct previous tag. - Optional: --package-path <path> (e.g., packages/my_pkg) to filter changes by package directory.

references/

  • github_action_template.md: A template for setting up the GitHub Action for publishing.

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

38.41%
按下载量换算45

Claude

27.36%
按下载量换算32

Cursor

18.4%
按下载量换算21

Gemini CLI

9.63%
按下载量换算11

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

只读

该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills