wing-cli

Manage collaboration metadata for AI programming projects with the Wing CLI, including AGENTS.md, domain documents, ADRs, OpenSpec changes, and metadata validation.

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "wing-cli" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-b6dd4a6e6f12e6c85669bfec6c08a648ff0ceb89f22d417f7a4bc4db2ed16cb4. Verify the upstream source and version against https://skillhub.cn/skills/user_51ab3167/wing-cli before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

skillhub.cn

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

Manage collaboration metadata for AI programming projects with the Wing CLI, including AGENTS.md, domain documents, ADRs, OpenSpec changes, and metadata validation.

0 Downloads

Introduction source: third_party · user_51ab3167 · 0.14.2 Reference

SkillPi interpretation

Tasks
Translation pending; see source documentation.
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: wing-cli
slug: wing-cli
displayName: Wing CLI
version: 0.14.2
summary: 用 Wing CLI 管理 AI 编程项目的协作元数据:AGENTS.md、领域文档、ADR、OpenSpec 变更与元数据校验。
description: Wing CLI 是面向 AI 编程工作流的项目元数据管理工具,统一维护 AGENTS.md、领域文档(docs/domain)、ADR、文档 frontmatter 与 OpenSpec 变更结构。触发条件:仓库存在 wing.config.yaml(或旧名 agent-meta.config.yaml)、用户要求初始化 Agent 协作元数据 / 领域文档 / ADR 规范、新增或修改 docs/domain、docs/adr、docs/engineering、AGENTS.md、准备提交或上线、被 wing check 拦下需要修复,或用户提到 wing / meta / AGENTS 规范 / 领域文档 / ADR / OpenSpec 变更时,先读本 skill。Manage AI agent collaboration metadata (AGENTS.md, domain docs, ADRs, frontmatter checks, OpenSpec changes) with the wing CLI.
tags: [cli, agents, agents-md, adr, documentation, ai-coding, openspec, metadata]
license: MIT
homepage: https://github.com/productivity2026/wing-cli

Wing CLI 使用规范

Wing 管理项目的 Agent 协作元数据:根/局部 AGENTS.md、领域文档、ADR、文档 frontmatter、OpenSpec 变更结构。配置文件为 wing.config.yaml(旧项目可能仍是 agent-meta.config.yaml,wing upgrade 会自动迁移)。命令用 wing;旧别名 meta 等价。

核心原则:修改文档与元数据时用 wing 的命令,不要手搓文件——命令保证编号、 frontmatter、目录结构与索引一致。

安装与初始化(仓库还没被 Wing 管理时)

仓库里没有 wing.config.yaml 时,先安装并初始化:

pnpm add -D @bossmissing/wing   # npm/yarn 同理;需 Node >= 20
pnpm exec wing init --yes       # 非交互初始化;交互式直接 wing init

常用 init 选项:--type(项目形态)、--language、--with-mcp <pack>[,<pack>] (可选 MCP 工具包:playwright、dev-env)、--with-deploy <target>(部署 skill: cloudflare / ansible / github-actions)、--dry-run 先预览。

init 后跑 wing doctor 自检环境(Node / 包管理器 / 配置 / Git Hook / OpenSpec)。

收尾前必须做

  • 提交前跑 wing check(CI 与 pre-commit 用 wing check --strict,warning 也会阻塞)。 有 error 先修再提交,不要绕过。
  • 报告结论前,若改动涉及对外可观察行为,更新对应的 OpenSpec spec / 文档。

脚手架:用命令,别手搓

  • 新领域文档:wing new-domain <name>(自动建 docs/domain/<name>/ 的 README、rules, 按需 state-machine/glossary 与局部 AGENTS.md)。不要手工新建领域目录。
  • 新架构决策:wing new-adr <slug>(自动分配下一个编号、写好 frontmatter)。 绝不手工编号 ADR——编号冲突会被 wing check 拦下。
  • 新功能变更:wing new-change <name>(建 OpenSpec 兼容的变更目录;命中高风险领域时 自动附 risk-review.md)。

索引与同步

  • docs/domain/README.md、docs/adr/README.md 是自动生成的索引,不要手工编辑。 增删领域或 ADR 后跑 wing sync 重建索引(并调用 openspec update,若装了 OpenSpec)。

以下文档是唯一事实来源(改行为前先读)

  • docs/engineering/constraints.md — 项目级硬限制(不可违反)。
  • docs/engineering/tech-stack.md — 技术栈选型;换选型先写 ADR。
  • docs/domain/<domain>/rules.md 的「硬限制(不可违反)」章节 — 领域级硬限制。
  • 高风险领域(命中 wing.config.yaml 的 risk_keywords)必须在 rules.md 声明非空硬限制, 否则 wing check 报 HIGH_RISK_DOMAIN_MISSING_HARD_CONSTRAINTS。

文档 frontmatter

docs/** 下需要 frontmatter 的文档必须含 title / status / owner / last_reviewed (具体范围见 wing.config.yaml 的 validation)。缺字段或 last_reviewed 过期会被 wing check 标记。

事后维护

  • 加部署 / MCP 工具包:wing add deploy <target> / wing add mcp <pack> (增量安装并把规则幂等追加进 AGENTS.md)。
  • 升级到当前 CLI 版本:wing upgrade(补齐新增文件、刷新已装 skills、迁移旧配置文件名、 对生成文档做漂移报告)。
  • 治理分析:wing audit(只报告不改文件);定期 review:wing review; 上线前 checklist:wing preflight(--confirm 逐项人工确认)。
  • 配置:wing config list / set;生成 pre-commit 钩子:wing config hooks lefthook。

命令速查

命令 用途
wing init 初始化元数据基础结构(--yes --type --language --with-mcp --with-deploy --dry-run)
wing new-domain <name> 创建领域文档目录与局部 AGENTS.md
wing new-adr <slug> 自动编号创建 ADR
wing new-change <name> 创建 OpenSpec 兼容变更目录
wing check 确定性元数据校验(--strict --json)
wing audit 治理分析报告,不阻塞、不改文件
wing sync 重建 domain / ADR 索引,调用 openspec update
wing add deploy/mcp <x> 事后追加部署 / MCP 工具包
wing upgrade 升级老项目到当前 CLI 版本
wing doctor 环境自检
wing review / wing preflight 定期 review / 上线前 checklist

退出码:0 通过;1 校验 error;2 参数错误;3 配置无法解析;4 IO 错误;5 模板缺失。

硬性规则

  • 不手工编辑自动生成的索引;改动后用 wing sync。
  • 不手工编号 ADR;用 wing new-adr。
  • 不在 wing check 未通过时收尾提交。
  • 领域规则只写在 docs/domain/<domain>/,不要复制进根 AGENTS.md。

Current listing version

0.14.2

Verify the source revision ↗

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value78/100

Highlights

  • 面向 AI 编程工作流的元数据管理工具,具有明确的目标用户和实际使用价值
  • 功能涵盖 AGENTS.md、领域文档、ADR、OpenSpec 变更等协作元数据管理,属于通用工具类别
Trigger Precision92/100

Highlights

  • 触发条件详细且覆盖多种变体,边界清晰
  • description 中明确列出了多种触发场景,包括初始化、修改文档、被 wing check 拦下等
Structure and Standards95/100

Highlights

  • 文档结构清晰,分章节介绍安装、初始化、收尾前必须做、脚手架、索引与同步、文档 frontmatter、事后维护、命令速查、硬性规则等
  • 有明确的步骤划分和出口条件,包含端到端示例,frontmatter 完整
Execution Reliability90/100

Highlights

  • 工具来源明确(@bossmissing/wing),参数正确
  • 覆盖主要异常(如 wing check 的退出码说明),不可逆操作有确认机制(如 wing preflight --confirm)
Evidence Verifiability (mean of the first four)89/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

100 / 100 · skillpi-20261123-no-r3-v1

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

These common operations were not identified in the main document. This does not mean no permissions or risks exist.

Domains or addresses referenced in the document

These addresses may be documentation links or examples, not an approved network allowlist. Verify actual destinations and outgoing data before use.

  • github.com

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.