docs(worktree-isolation): stack-agnostic wtg reference + full setup guide#125
Merged
Conversation
…uide Adopters can install the pattern without reconstructing it, for ANY stack. - references/wtg.reference.sh: complete, data-driven implementation. Roles are arbitrary; all stack specifics (repo map, base ports, run commands, env-file layout, primary/OAuth role, OAuth vars) live in a CONFIG block of associative arrays. The implementation hardcodes no role, language, or framework. Verified end-to-end against a throwaway Node stack (roles svc/ui, ports 4000/5000, custom OAuth vars): new, dev.sh generation with %PORT%/%PRIMARY_PORT% and the OAuth port-swap prelude, slot offset + warning, st, ls all correct. - references/SETUP.md: prerequisites, install, the CONFIG model + placeholders, registry, quickstart, an optional statusline snippet (verified), the command reference, and a safe dry-run recipe. - SKILL.md points to both. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this adds
A ready-to-run, stack-agnostic reference implementation plus a complete
install/config guide, so anyone can adopt the multi-repo feature-group pattern
without reconstructing it from prose. Follow-up to #124 (the concept doc).
Why it is generic, not "our stack renamed"
Roles are arbitrary strings. The implementation hardcodes no role, language, or
framework - every stack specific lives in a CONFIG block of associative arrays:
dev.shis generated fromWTG_RUN[role]with%PORT%,%PRIMARY_PORT%,%OAUTH_PORT%substitution; onlyWTG_PRIMARY_ROLEgets the OAuth port-swap.Verifying
Proven against a stack with nothing in common with the author's: roles
svc/ui,Node run commands, ports 4000/5000, OAuth vars
APP_URL/CALLBACK_URL.bash -nclean;new/env/st/ls/ dev.sh generation all verified.The optional statusline snippet in SETUP.md is verified too.
Files
references/wtg.reference.sh- the implementationreferences/SETUP.md- install, config model, quickstart, command referenceSKILL.md- links to both