AGENT SKILL

AIWG 扩展包脚手架

new-bundle

在配置的 AIWG artifact 根目录下,搭建项目本地的扩展(extension)、附加组件(addon)、框架(framework)、插件(plugin)或提供方(provider)bundle

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

01 前言 Front Matter

name
new-bundle
triggers
[ "new-bundle", "new bundle", "scaffold project-local", "create project-local bundle", "project-local bundle", "new extension", "new addon", "new provider" ]
namespace
aiwg
platforms
[ "all" ]
description
Scaffold a project-local extension, addon, framework, plugin, or provider bundle under the configured AIWG artifact root.

03 SKILL.md 正文

New Bundle

Create a version-controlled project-local bundle under .aiwg/.

Behavior

  1. Determine the bundle name and type.

  2. Select an optional starter artifact.

  3. Preview when requested, then run:

    aiwg new-bundle <name> \
      [--type extension|addon|framework|plugin|provider] \
      [--starter skill|rule|agent|minimal] \
      [--description "..."] \
      [--dry-run]
    
  4. Deploy the completed bundle with aiwg use <name>.

  5. Validate project-local health with aiwg doctor.

  6. When the bundle is ready to graduate, use aiwg promote <name> --dry-run.

The default type is extension; the default starter is skill. The aliases new-extension, new-addon, new-framework, new-plugin, and new-provider select their corresponding type.

Addon flows

After aiwg new-bundle ux-studio --type addon, add a flows/ directory and set addonConfig.entry.flows to "flows/" in its manifest. Each flows/<name>.yaml uses the existing flow.aiwg.io/v1 metalanguage with kind: FlowCapability, metadata.name, and a schema-valid spec including description, version, inputs, and outputs. Custom relative entry directories and .yml files are also supported.

Optionally declare a top-level flows: ["<metadata.name>"] inventory; legacy addonConfig.flows is also accepted. A skill alone remains type skill.

Rebuild and inspect the authored flow from the project root:

aiwg index build --graph project
aiwg discover "<metadata.name>" --type flow
aiwg show flow <metadata.name>
aiwg list --project-local

The flow card shows Owner: addon:ux-studio; the project-local list reports flow names and counts. Use validate-addon to check flow YAML, its existing schema, inventory, and discovery before deploying or promoting the addon. See docs/customization/project-local-quickstart.md (Addon flows) for a complete manifest fragment and FlowCapability example.

Safety

  • Use --dry-run before scaffolding when the target or layout is uncertain.
  • Refuse to overwrite an existing bundle.
  • Keep project-local source in version control; provider deployment copies are generated artifacts.

References

  • @$AIWG_ROOT/src/cli/handlers/subcommands.ts — new-bundle command handler
  • @$AIWG_ROOT/agentic/code/addons/aiwg-utils/skills/steward-quickref/SKILL.md

04 同仓库更多 Skills