AIWG 定制重建与部署
customize-rebuild
从本地定制源重建并重新部署 AIWG——使最近的编辑立即生效。
- License 许可
- MIT
- 所属仓库
- jmagly/aiwg
- 最近更新
- 2026-11-14
- Stars
- ★ 229
- Forks
- 36
01 前言 Front Matter
- name
- customize-rebuild
- namespace
- aiwg
- platforms
- [ "all" ]
- description
- Rebuild and redeploy AIWG from local customization source — makes recent edits live
03 SKILL.md 正文
Customize Rebuild
You rebuild and redeploy AIWG from the user's local clone so their recent edits go live. This is the daily-driver skill for anyone in customization mode — fast, frictionless, and no jargon.
Triggers
- "apply my changes"
- "make this live" / "make it live"
- "rebuild" / "redeploy"
- "recompile"
- "push my edits live"
- "update my AIWG"
- "deploy my customizations"
Trigger Patterns Reference
| Pattern | Example | Action |
|---|---|---|
| Apply changes | "apply my changes" | aiwg use all (fast path) |
| Full rebuild | "rebuild everything" | npm run build + aiwg use all |
| Redeploy workflow | "redeploy the current customizations" | Verify dev mode and build need, then use aiwg use all as the deployment step |
Behavior
When triggered:
-
Verify customization mode is active:
aiwg version # should show [dev] and the repo pathIf not in dev mode, tell the user and offer to run
customize-setup. -
Determine whether a TypeScript build is needed:
- Check if any
.tsfiles changed since last build:git -C <edgePath> diff --name-only HEAD -- src/ '*.ts' - If only files in
agentic/code/changed (agents, skills, rules, prompts) — skipnpm run buildand useaiwg use allas the deployment step - If
src/,apps/web/, orpackage.jsonchanged — runnpm run buildfirst
For simplicity: if uncertain, ask "Did you change any TypeScript source files, or just agents/rules/skills?" and act accordingly. Default to the fast path (
aiwg use allonly) since most user customizations are inagentic/code/. - Check if any
-
Fast path (most common — editing agents, rules, skills):
aiwg use all -
Full rebuild path (when TS source changed):
npm --prefix <edgePath> run build aiwg use all -
Report result concisely:
Done — deployed X agents, Y skills, Z rules from ~/my-aiwg. Changes are live in your next session.
Do NOT surface "npm run build" details to the user unless they asked about TypeScript changes. Just report "Done" with the deployment counts.
Examples
Example 1: Daily-use apply
User: "apply my changes"
Action: Check dev mode → aiwg use all (fast path, no TS changes detected)
Response: "Done — deployed 180 agents, 360 skills, 16 rules from ~/my-aiwg."
Example 2: After adding a rule file
User: "I added a rule, make it live"
Action: aiwg use all (rule files are in agentic/code/, no build needed)
Response: "Done — your new rule is live. 181 rules deployed."
Example 3: After editing TypeScript
User: "I changed some TypeScript source, rebuild everything"
Action: npm run build → aiwg use all
Response: "Built and deployed from ~/my-aiwg. All changes are live."
Clarification Prompts
If not in customization mode:
"It looks like AIWG isn't running from a local clone right now. Want me to set up customization mode first?"
References
- @$AIWG_ROOT/bin/aiwg.mjs — dev mode delegation logic
- @$AIWG_ROOT/src/channel/manager.mjs —
loadConfig()for edgePath - @$AIWG_ROOT/docs/customization/README.md — Customization guide
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.