Token导航 LogoToken导航TokenDH.com
开发规范只读github未标认证来源可访问许可证需确认审计通过

weapp-ide-cli-best-practicesweapp IDE CLI 最佳实践

Agent Skill

weapp-ide-cli-best-practices 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

326

周安装

14

GitHub Stars

公开资料未说明

下载量

114
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

请帮我安装这个 Agent Skill:weapp-ide-cli-best-practices(weapp IDE CLI 最佳实践)
来源仓库:https://github.com/sonofmagic/skills
仓库路径:skills/weapp-ide-cli-best-practices
安装命令:
npx skills add https://github.com/sonofmagic/skills --skill weapp-ide-cli-best-practices
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/sonofmagic/skills --skill weapp-ide-cli-best-practices

简介

为微信小程序 IDE CLI 工具提供最佳实践指导,优化开发流程和命令行操作效率。

  • 适用于 Codex、Claude、Cursor、Gemini CLI 等编程环境中的开发规范管理和协作支持。
  • 通过 npx skills add 命令从 GitHub 仓库安装,便于技能集成和版本管理。
  • 安装前应检查项目是否使用微信小程序 CLI 工具链,确保兼容性。
  • 主要聚焦于开发规范建议和流程优化,不直接参与代码生成或调试。

SKILL.md

weapp-ide-cli-best-practices

目的

Design and evolve weapp-ide-cli with deterministic command behavior, automation-friendly UX, and stable integration contracts for other CLIs (especially weapp-vite).

触发信号

  • User asks to add/refactor weapp-ide-cli commands or argument validation.
  • User asks to expose command metadata for external CLI dispatch.
  • User asks to improve DevTools automation, screenshot, or automator subcommands.
  • User asks to add language switching or config persistence behavior.
  • User asks how weapp-vite should delegate to weapp-ide-cli.

适用边界

Use this skill when the center of gravity is command routing, CLI UX, config persistence, and cross-package CLI contracts.

Do not use this as the primary skill when:

  • The issue is mainly weapp-vite project build/subpackage architecture. Use weapp-vite-best-practices.
  • The issue is mainly Vue SFC syntax/macro compatibility. Use weapp-vite-vue-sfc-best-practices.
  • The issue is runtime lifecycle/state architecture in components/pages. Use wevu-best-practices.

快速开始

  1. Classify change type: command addition, validation, i18n/config, or dispatch contract.
  2. Update command source-of-truth first, then update parser/dispatcher.
  3. Add/adjust tests around routing and error behavior.
  4. Sync docs in package README, website package page, packaged docs, and AI-facing guidance when relevant.

执行流程

  1. Keep command taxonomy explicit
  • Maintain command groups as separate layers:

- WeChat official passthrough commands - automator enhanced commands - config commands - minidev namespace passthrough

  • Keep screenshot behavior explicit because AI workflows frequently depend on deterministic file output.
  • Export top-level command catalog from weapp-ide-cli for external reuse.
  • Provide a direct predicate function to check command support.
  1. Enforce dispatch invariants
  • Parse global language option before command routing.
  • Route minidev namespace and automator commands before generic WeChat CLI passthrough.
  • Keep help <automator-command> behavior explicit and deterministic.
  • Validate critical arguments before invoking external CLI.
  1. Keep i18n + config predictable
  • Default language is Chinese.
  • Support command-level temporary language override and persistent config language.
  • Persist config to user directory config file and expose config subcommands for read/write/export/import.
  • Prefer Chinese user-facing messages, with switchable English fallback.
  1. Establish integration contract for upstream CLI
  • Upstream CLI (e.g. weapp-vite) should:

- execute its native command table first - delegate only when isWeappIdeTopLevelCommand(command) is true - avoid blind passthrough for unknown commands

  • Keep wv and weapp-vite examples aligned in upstream docs and generated project guidance.
  • Keep this rule documented and tested on both sides.
  1. Verify narrowly
  • Prefer targeted tests in:

- packages/weapp-ide-cli/test/*.test.ts - related packages/weapp-vite/src/cli/*.test.ts when dispatch contract changes

  • Run lint on touched docs and source files only.

约束

  • Do not duplicate command lists in multiple packages as independent sources of truth.
  • Do not add user-facing text without i18n wrapping.
  • Do not couple command parsing with business side effects before validation.
  • Do not let unknown commands silently passthrough when integrating with another CLI.

输出要求

When applying this skill, return:

  • Command-level design summary (what changed and why).
  • Concrete file edits for catalog/routing/validation/docs/tests.
  • Verification commands and expected outcomes.
  • Cross-package contract notes when weapp-vite integration is touched.

完成检查

  • Top-level command catalog and predicate are exported from weapp-ide-cli.
  • Dispatch priority is deterministic and covered by tests.
  • New/changed user-facing messages support Chinese default and English switch.
  • Config persistence and command behavior are documented.
  • If integration changed, weapp-vite uses exported catalog instead of duplicated lists.
  • Screenshot and log-related commands stay documented for AI-driven acceptance workflows.

参考资料

  • references/command-catalog-and-dispatch.md
  • references/i18n-config-playbook.md

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

36.35%
按下载量换算41

Claude

33.09%
按下载量换算38

Cursor

18.06%
按下载量换算21

Gemini CLI

9.39%
按下载量换算11

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

只读

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

安装前确认

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

来源信息

继续浏览同类 Skills