agentic/code/addons/aiwg-dev/skills/dev-mode-init/SKILL.md
Switch AIWG CLI to dev mode (local repo source), rebuild, deploy dev tools, and run a health check — all via the Steward agent
npx skillsauth add jmagly/aiwg dev-mode-initInstall 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 activate AIWG dev mode, rebuild the local source, deploy the developer toolkit, and run a dev health check. All operations go through the AIWG Steward agent and CLI — no direct file writes.
| Pattern | Example | Action |
|---------|---------|--------|
| Full init | "switch to dev mode" | All steps |
| From repo path | "use dev mode at ~/dev/aiwg" | Switch + build from path |
| Stable | "switch back to stable" | aiwg --use-stable |
| Rebuild only | "rebuild dev" | Build + redeploy, skip mode switch |
| Check mode | "am I in dev mode?" | aiwg version + report |
If the user supplied a path, use it. Otherwise default to the current working directory.
# Verify the target looks like the AIWG repo
ls package.json src/ agentic/ 2>/dev/null
If package.json is not found, stop and report: "Directory does not appear to be an AIWG repo — no package.json found."
aiwg --use-dev <resolved-path>
Expected output confirms: Switched to dev mode. Dev repo: <path>
If already in dev mode pointing at the same path, skip and note "already in dev mode".
# TypeScript compile + web app build
npm run build
On failure: report the tsc or vite error, stop, and suggest running npm run build manually to see full output. Do not proceed past a broken build.
On success: note build time and output sizes (xterm, index bundles).
aiwg use aiwg-dev
This deploys:
Invoke dev-doctor for a fast structural check:
# TypeScript gate (already passed in step 3, but double-check deployed state)
npx tsc --noEmit
Then trigger /dev-doctor or report inline:
# Run dev doctor sections 1–3 (structure, orphans, placement)
# Full run happens via aiwg dev-doctor or the dev-doctor skill
## Dev Mode Init — Complete
**Mode**: dev [active]
**Repo**: <path>
**Build**: <duration> — xterm <size>, index <size>
**Deployed**: aiwg-dev (steward + dev tools)
### Status
- CLI mode: ✓ dev
- Build: ✓ clean (0 errors)
- Deployment: ✓ aiwg-dev
- TypeScript: ✓ passes
### Available
- `@aiwg-steward` — upgrade, sync, health check, capability routing
- `/dev-doctor` — structural health check
- `/devkit-create-*` — scaffolding tools
- `aiwg serve --no-open` + `cd apps/web && npm run dev` — live dashboard
### To switch back
`aiwg --use-stable`
When user requests stable mode:
aiwg --use-stable
Report: "Switched back to stable npm package. Run aiwg sync to ensure frameworks are current."
User: "switch to dev mode"
Action:
/home/user/dev/aiwg with package.json presentaiwg --use-dev /home/user/dev/aiwgnpm run build — succeeds in 8saiwg use aiwg-devnpx tsc --noEmit — 0 errorsOutput:
Dev Mode Init — Complete
Mode: dev [active] — /home/user/dev/aiwg
Build: 8.2s — xterm 291KB, index 246KB
Deployed: aiwg-dev (steward, 5 rules, 11 skills)
TypeScript: 0 errors
@aiwg-steward is ready. Use it for upgrades, syncs, and health checks.
User: "activate dev mode at ~/dev/aiwg"
Action: Run aiwg --use-dev ~/dev/aiwg → build → deploy → doctor
User: "switch to dev mode"
Aiwg version shows: 2026.4.0-rc.26 [dev] path: /home/user/dev/aiwg
Action: Skip step 2. Still run build (source may have changed) and redeploy.
Output: "Already in dev mode. Rebuilding and redeploying..."
User: "switch to dev mode"
npm run build fails with TypeScript errors
Output:
Dev Mode Init — BLOCKED
Step 3 (build) failed. Fix TypeScript errors before proceeding.
Errors:
src/serve/pty-bridge.ts(210,5): error TS2345: ...
Run `npm run build` to see full output.
Dev mode flag was set — run `aiwg --use-stable` to revert if needed.
data-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`.