# Aiwg Regenerate Existing Project

> Aiwg Regenerate Existing Project

- Skill: `jmagly-ai-writing-guide/aiwg-regenerate-existing-project` (Agent Skill)
- Install (CLI): `npx skillmds@latest add jmagly-ai-writing-guide/aiwg-regenerate-existing-project`
- Raw SKILL.md: https://api.skillmd.com/api/skills/jmagly-ai-writing-guide/aiwg-regenerate-existing-project/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-17
- Page: https://skillmd.com/skills/jmagly-ai-writing-guide/aiwg-regenerate-existing-project

---


# Regenerate an Existing Project

Use this opt-in branch when adopting the canonical context graph in an
established repository. It extracts bounded, deterministic facts from package
metadata, README purpose, stack/tooling files, standard commands, test and
architecture paths, and CI workflow names. The generated snapshot lives in its
own replaceable block inside the protected `WORKSPACE.md` operator region.

```bash
aiwg regenerate --existing-project --provider <name> --dry-run
aiwg regenerate --existing-project --provider <name> --apply
aiwg workspace-context doctor
```

Preview is the default when neither `--dry-run` nor `--apply` is supplied. The
transaction migrates provider-only roots to attributed files under
`.aiwg/context/providers/`, preserves manual context outside managed blocks,
excludes generated AIWG and spillover content, and refuses possible credential
values or unresolved directive conflicts. Apply prints a transaction id and an
exact `aiwg workspace-context rollback <id>` command.

Use [aiwg-regenerate-workspace](../aiwg-regenerate-workspace/SKILL.md) for fresh
projects or ordinary refreshes, and
[aiwg-regenerate-legacy](../aiwg-regenerate-legacy/SKILL.md) only for inline
compatibility.

