tot-decide
Evaluate architectural decisions using Tree of Thoughts exploration
What this skill does
# Tree of Thoughts Decision Command Evaluate architectural decisions by generating and scoring k alternatives using the ToT methodology. ## Instructions When invoked, perform structured Tree of Thoughts exploration for architecture decisions: 1. **Parse Decision Context** - Extract the decision question from arguments or prompt - Identify relevant non-functional requirements from `.aiwg/requirements/nfr-modules/` - Load existing architectural constraints from `.aiwg/architecture/` 2. **Load ToT Protocol** - Reference @$AIWG_ROOT/agentic/code/frameworks/sdlc-complete/schemas/flows/tree-of-thought.yaml for workflow schema - Reference @$AIWG_ROOT/agentic/code/frameworks/sdlc-complete/agents/enhancements/architecture-designer-tot-protocol.md for agent protocol 3. **Define Evaluation Criteria** - Extract criteria from NFRs (scalability, security, performance, maintainability) - Assign weights based on project priorities - Define scoring rubric (1-5 scale) 4. **Generate Alternatives (k=3 default)** - Generate k distinct architectural approaches - Each alternative must be meaningfully different (not variations of the same approach) - Document the core idea, key components, and trade-offs for each 5. **Score and Compare** - Build weighted scoring matrix - Calculate composite scores - Identify clear winner or close calls requiring stakeholder input 6. **Generate ADR** - Use @$AIWG_ROOT/agentic/code/frameworks/sdlc-complete/templates/architecture/adr-with-tot.md template - Document all alternatives with scores - Record decision rationale and trade-offs accepted - Include backtracking triggers (conditions for re-evaluation) 7. **Output** - Display scoring matrix summary - State recommendation with confidence level - Save ADR to `.aiwg/architecture/` - If close call (score gap < 0.5), flag for human decision gate ## Arguments - `[decision-context]` - Description of the architectural decision (required) - `--alternatives [k]` - Number of alternatives to generate (default: 3, max: 7) - `--depth [levels]` - Depth of exploration per alternative (default: 2) - `--output [path]` - Custom output path for ADR (default: `.aiwg/architecture/`) - `--criteria [list]` - Override criteria (comma-separated) - `--quick` - Skip detailed analysis, produce summary matrix only ## Examples ### Full Architecture Decision ``` /tot-decide "Select authentication approach for multi-tenant SaaS platform" ``` Output: ``` Tree of Thoughts Decision Analysis =================================== Decision: Authentication approach for multi-tenant SaaS Criteria (from NFRs): Security [30%] - Multi-tenant isolation required Scalability [25%] - 10K+ tenants expected Cost [20%] - Startup budget constraints Dev Speed [15%] - MVP in 3 months Maintenance [10%] - Small ops team Alternatives Generated: A: OAuth2 + OIDC with tenant-scoped JWTs B: Session-based with Redis cluster per tenant C: API key + HMAC with per-request validation Scoring Matrix: | Criterion | Wt | A | B | C | |---------------|-----|------|------|------| | Security | 30% | 5 | 4 | 3 | | Scalability | 25% | 5 | 3 | 4 | | Cost | 20% | 3 | 2 | 5 | | Dev Speed | 15% | 3 | 4 | 5 | | Maintenance | 10% | 4 | 2 | 4 | | Weighted | | 4.15 | 3.10 | 4.00 | Recommendation: Option A (OAuth2 + OIDC) Confidence: HIGH (gap > 0.5 from runner-up) Trade-off accepted: Higher initial dev cost for superior security/scale ADR saved: .aiwg/architecture/adr-auth-approach.md ``` ### Quick Comparison ``` /tot-decide "Database for event sourcing" --alternatives 4 --quick ``` ### Deep Analysis ``` /tot-decide "Microservices vs modular monolith" --depth 3 --criteria "scalability,team-autonomy,ops-complexity,latency" ``` ## References - @$AIWG_ROOT/agentic/code/frameworks/sdlc-complete/schemas/flows/tree-of-thought.yaml - ToT workflow schema - @$AIWG_ROOT/agentic/code/frameworks/sdlc-complete/agents/enhancements/architecture-designer-tot-protocol.md - Agent enhancement - @$AIWG_ROOT/agentic/code/frameworks/sdlc-complete/templates/architecture/adr-with-tot.md - ADR template - @.aiwg/research/findings/REF-020-tree-of-thoughts.md - Research foundation - @$AIWG_ROOT/agentic/code/frameworks/sdlc-complete/rules/reasoning-sections.md - Reasoning requirements
Related in General
modeling-omnistudio-epc-catalog
IncludedSalesforce Industries CME EPC product-modeling skill for Product2-based catalog creation. Use when creating EPC products, configuring product attributes, building offer bundles with Product Child Items, or reviewing EPC DataPack JSON metadata for product catalog changes. TRIGGER when: user creates or updates Product2 EPC records, AttributeAssignment payloads, AttributeMetadata/AttributeDefaultValues, Offer bundles, or ProductChildItem relationships. DO NOT TRIGGER when: designing OmniScripts/FlexCards/Integration Procedures (use building-omnistudio-omniscript, building-omnistudio-flexcard, or building-omnistudio-integration-procedure), implementing Apex business logic (use generating-apex), or troubleshooting deployment pipelines (use deploying-metadata).
relationship-science-coach
IncludedUse this skill for direct, practical adult relationship coaching: couples conflict, repair, trust, marriage, dating, flirting, attachment patterns, emotional connection, sex, desire differences, eroticism, kink negotiation, affection, love languages, breakups, and long-term passion. Draw on Gottman, EFT and Hold Me Tight, attachment science, modern sex research, Perel, Nagoski, Kerner, Schnarch, Love and Stosny, and flexible love-language tools. Be concrete and low-hedge. Redirect only for imminent danger, abuse, coercive control, minors, non-consent, self-harm, stalking, or medical/legal/psychiatric decisions.
building-sf-integrations
IncludedSalesforce integration architecture and runtime plumbing with 120-point scoring. Use this skill to set up Named Credentials, External Credentials, External Services, REST/SOAP callout patterns, Platform Events, and Change Data Capture. TRIGGER when: user sets up Named Credentials, External Services, REST/SOAP callouts, Platform Events, CDC, or touches .namedCredential-meta.xml files. DO NOT TRIGGER when: Connected App/OAuth config (use configuring-connected-apps), Apex-only logic (use generating-apex), or data import/export (use handling-sf-data).
venue-templates
IncludedAccess comprehensive LaTeX templates, formatting requirements, and submission guidelines for major scientific publication venues (Nature, Science, PLOS, IEEE, ACM), academic conferences (NeurIPS, ICML, CVPR, CHI), research posters, and grant proposals (NSF, NIH, DOE, DARPA). This skill should be used when preparing manuscripts for journal submission, conference papers, research posters, or grant proposals and need venue-specific formatting requirements and templates.
let-fate-decide
IncludedDraws the 12 Houses of the Zodiac Tarot spread to inject entropy into planning when prompts are vague, ambiguous, or casually delegated. Interprets the spread to guide next steps. Use when the user says 'let fate decide', 'YOLO', 'whatever', 'idk', or other nonchalant phrases, makes Yu-Gi-Oh references, or when you are about to arbitrarily pick between multiple reasonable approaches. Prefer over ask-questions-if-underspecified when the user's tone is casual or playful rather than precision-seeking.
net-ops
IncludedCross-platform network troubleshooting (Windows, macOS, Linux) via local or remote shell. Use for: DNS broken, can't resolve hostnames, nslookup/dig works but apps fail, NRPT, WFP, scutil, /etc/resolver, systemd-resolved, /etc/resolv.conf, NetworkManager, VPN DNS leak residue (ProtonVPN/Mullvad/WireGuard/AnyConnect), AV/firewall blocking DNS or DoH, Tailscale DNS interaction, intermittent connectivity, remote diagnostics over SSH.