# Aiwg Regenerate Workspace

> Regenerate the canonical WORKSPACE.md-first context graph and provider adapters

- Skill: `jmagly-ai-writing-guide/aiwg-regenerate-workspace` (Agent Skill)
- Install (CLI): `npx skillmds@latest add jmagly-ai-writing-guide/aiwg-regenerate-workspace`
- Raw SKILL.md: https://api.skillmd.com/api/skills/jmagly-ai-writing-guide/aiwg-regenerate-workspace/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: jmagly (https://skillmd.com/u/jmagly-ai-writing-guide)
- Updated: 2026-09-10
- Page: https://skillmd.com/skills/jmagly-ai-writing-guide/aiwg-regenerate-workspace

---


# Regenerate Canonical Workspace Context

Use this default branch for new and migrated projects. It maintains the precedence chain:

1. `WORKSPACE.md` — provider-neutral project and operator context.
2. `AIWG.md` — generated framework discovery and routing context.
3. Provider startup adapters — minimal pointers that load or direct readers to those files in order.

For an established project, audit before adopting the graph:

```bash
aiwg workspace-context audit --json
aiwg workspace-context migrate --dry-run --json
aiwg workspace-context migrate --apply
aiwg regenerate --workspace
aiwg workspace-context doctor
```

Migration is transactional and records recoverable preimages under `.aiwg/context-migrations/`. It refuses possible credential values and unresolved directive conflicts. Use [aiwg-regenerate-legacy](../aiwg-regenerate-legacy/SKILL.md) only when compatibility requires inline context.

