agentic/code/addons/aiwg-utils/skills/customize-rebuild/SKILL.md
Rebuild and redeploy AIWG from local customization source — makes recent edits live
npx skillsauth add jmagly/aiwg customize-rebuildInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
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.
| 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 |
When triggered:
Verify customization mode is active:
aiwg version # should show [dev] and the repo path
If not in dev mode, tell the user and offer to run customize-setup.
Determine whether a TypeScript build is needed:
.ts files changed since last build: git -C <edgePath> diff --name-only HEAD -- src/ '*.ts'agentic/code/ changed (agents, skills, rules, prompts) — skip npm run build and use aiwg use all as the deployment stepsrc/, apps/web/, or package.json changed — run npm run build firstFor 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 all only) since most user customizations are in agentic/code/.
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.
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."
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."
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."
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?"
loadConfig() for edgePathdata-ai
Report which research-corpus radar sidecars are overdue for refresh. Computes staleness (days since last refresh vs the cadence window) for every radar, sorted most-overdue-first. Runs via `aiwg corpus radar-status`.
data-ai
Aggregate research-corpus radar sidecars into a corpus or per-cluster freshness report — totals, overdue count, per-cluster / per-GRADE / per-trajectory breakdowns, an overdue table, and per-radar rationale snippets. Runs via `aiwg corpus radar-report`.
testing
Scaffold radar/freshness sidecars for research-corpus REFs. Pulls title/authors from the citation sidecar and GRADE from the analysis doc, defaults the refresh cadence from GRADE and the cluster from a corpus-local map, and stamps documentation/radar/REF-XXX-radar.md. Runs via `aiwg corpus radar-init`.
data-ai
Compute an entity's publication trajectory — per-year paper counts, topic drift, hot-streak detection (≥3 consecutive A-grade years), and career phase. Runs via `aiwg corpus profile-temporal`.