AGENT SKILL

工作区上下文图重生成

aiwg-regenerate-workspace

重新生成以 WORKSPACE.md 为核心的规范上下文图以及提供者适配器(provider adapters)。

适用职业AI 工程师
License 许可
MIT
所属仓库
jmagly/aiwg
最近更新
2026-11-14
Stars
★ 229
Forks
36

01 前言 Front Matter

name
aiwg-regenerate-workspace
kernel
true
namespace
aiwg
platforms
[ "all" ]
commandHint
{ "model": "haiku", "category": "maintenance", "modelRole": "efficiency", "modelTier": "economy", "allowedTools": "Bash, Read", "argumentHint": "[--provider <name>] [--dry-run] [--force]" }
description
Regenerate the canonical WORKSPACE.md-first context graph and provider adapters

02 资源文件 7

03 SKILL.md 正文

Regenerate Canonical Workspace Context

Use this default branch for new and migrated projects. It maintains the precedence chain:

  1. WORKSPACE.md — provider-neutral project and operator context.
  2. AIWG.md — generated framework discovery and routing context.
  3. Provider startup adapters — minimal pointers that load or direct readers to those files in order.

For an established project, audit before adopting the graph:

aiwg workspace-context audit --json
aiwg workspace-context migrate --dry-run --json
aiwg workspace-context migrate --apply
aiwg regenerate --workspace
aiwg workspace-context doctor

Migration is transactional and records recoverable preimages under .aiwg/context-migrations/. It refuses possible credential values and unresolved directive conflicts. Use aiwg-regenerate-legacy only when compatibility requires inline context.

04 同仓库更多 Skills