|
| 1 | +--- |
| 2 | +layout: default |
| 3 | +title: Team Collaboration Setup |
| 4 | +permalink: /team-and-enterprise/team-collaboration/ |
| 5 | +redirect_from: |
| 6 | + - /guides/team-collaboration-workflow/ |
| 7 | +--- |
| 8 | + |
| 9 | +# Team Collaboration Setup |
| 10 | + |
| 11 | +This guide is for team leads who are rolling out SpecFact across a shared repository or a small set of team-owned repositories. |
| 12 | + |
| 13 | +## 1. Bootstrap the team profile |
| 14 | + |
| 15 | +Start from a team-oriented profile instead of a solo-developer bootstrap: |
| 16 | + |
| 17 | +```bash |
| 18 | +specfact init --profile backlog-team |
| 19 | +specfact init ide --repo . --ide cursor |
| 20 | +``` |
| 21 | + |
| 22 | +Use `backlog-team` for shared backlog and project-bundle workflows. Re-run `specfact init ide` after bundle upgrades so every developer gets the same prompt and template set from the installed modules. |
| 23 | + |
| 24 | +## 2. Initialize project-scoped module artifacts |
| 25 | + |
| 26 | +```bash |
| 27 | +specfact module init --scope project --repo . |
| 28 | +specfact project init-personas --bundle legacy-api --no-interactive |
| 29 | +``` |
| 30 | + |
| 31 | +Use project scope when the team wants repository-local bootstrap artifacts instead of per-user defaults. `init-personas` ensures the shared bundle has the expected persona mappings before collaboration begins. |
| 32 | + |
| 33 | +## 3. Establish shared role workflows |
| 34 | + |
| 35 | +Typical role ownership: |
| 36 | + |
| 37 | +- Product Owner: backlog content, readiness, prioritization |
| 38 | +- Architect: constraints, contracts, deployment and risk |
| 39 | +- Developer: implementation details, task mapping, definition of done |
| 40 | + |
| 41 | +Export and import flows for each role: |
| 42 | + |
| 43 | +```bash |
| 44 | +specfact project export --bundle legacy-api --persona product-owner --output-dir docs/project-plans |
| 45 | +specfact project import --bundle legacy-api --persona product-owner --input docs/project-plans/product-owner.md --dry-run |
| 46 | +``` |
| 47 | + |
| 48 | +Repeat the same pattern for `architect` and `developer`. |
| 49 | + |
| 50 | +## 4. Protect concurrent edits with locks |
| 51 | + |
| 52 | +```bash |
| 53 | +specfact project locks --bundle legacy-api |
| 54 | +specfact project lock --bundle legacy-api --section idea --persona product-owner |
| 55 | +``` |
| 56 | + |
| 57 | +Lock high-contention sections before edits, then unlock after import. This prevents overlapping changes when several personas work in parallel. |
| 58 | + |
| 59 | +## 5. Merge branch-level bundle edits safely |
| 60 | + |
| 61 | +```bash |
| 62 | +specfact project merge \ |
| 63 | + --bundle legacy-api \ |
| 64 | + --base main \ |
| 65 | + --ours feature/product-owner-updates \ |
| 66 | + --theirs feature/architect-updates \ |
| 67 | + --persona-ours product-owner \ |
| 68 | + --persona-theirs architect |
| 69 | +``` |
| 70 | + |
| 71 | +Use persona-aware merge when branches diverged on the same bundle but the changes came from different owners. |
| 72 | + |
| 73 | +## 6. Keep bundle-owned prompts and templates aligned |
| 74 | + |
| 75 | +Prompts and workspace templates are bundle-owned resources, not core-owned files. Team rollout should use installed module versions plus the supported bootstrap commands: |
| 76 | + |
| 77 | +```bash |
| 78 | +specfact module upgrade |
| 79 | +specfact init ide --repo . --ide cursor --force |
| 80 | +``` |
| 81 | + |
| 82 | +## Recommended team cadence |
| 83 | + |
| 84 | +1. Bootstrap one repo with `backlog-team`. |
| 85 | +2. Initialize personas and project-scope module artifacts. |
| 86 | +3. Export persona views into a shared docs or planning directory. |
| 87 | +4. Require locks for high-contention sections. |
| 88 | +5. Refresh IDE resources whenever module versions change. |
| 89 | + |
| 90 | +## Related |
| 91 | + |
| 92 | +- [Agile/Scrum Team Setup](/team-and-enterprise/agile-scrum-setup/) |
| 93 | +- [Multi-Repo Setup](/team-and-enterprise/multi-repo/) |
| 94 | +- [Project bundle overview](/bundles/project/overview/) |
0 commit comments