AIWG 扩展包脚手架
new-bundle
在配置的 AIWG artifact 根目录下,搭建项目本地的扩展(extension)、附加组件(addon)、框架(framework)、插件(plugin)或提供方(provider)bundle
- 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
-
Determine the bundle name and type.
-
Select an optional starter artifact.
-
Preview when requested, then run:
aiwg new-bundle <name> \ [--type extension|addon|framework|plugin|provider] \ [--starter skill|rule|agent|minimal] \ [--description "..."] \ [--dry-run] -
Deploy the completed bundle with
aiwg use <name>. -
Validate project-local health with
aiwg doctor. -
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-runbefore 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-bundlecommand handler - @$AIWG_ROOT/agentic/code/addons/aiwg-utils/skills/steward-quickref/SKILL.md
04 同仓库更多 Skills
plugin-search
Search marketplaces for plugins using configured local manifests and directory caches; rank matching plugins by observed installs, review tier and cache dates without installing or fetching anything
plugin-search
Search marketplaces for plugins using configured local manifests and directory caches; rank matching plugins by observed installs, review tier and cache dates without installing or fetching anything
host-hardening
Read-only system hardening baseline and plan-first host hardening recommendations for SSH, Docker bind addresses, firewall persistence, datastores, exporters and audit retention.
exposure-analysis
Read-only firewall analysis and effective host exposure reconstruction for Docker published ports, UFW bypass, stale rules, CDN scope, IPv6 asymmetry and external probe allowlists.
host-hardening
Read-only system hardening baseline and plan-first host hardening recommendations for SSH, Docker bind addresses, firewall persistence, datastores, exporters and audit retention.
exposure-analysis
Read-only firewall analysis and effective host exposure reconstruction for Docker published ports, UFW bypass, stale rules, CDN scope, IPv6 asymmetry and external probe allowlists.