Tot decide

From jmagly/aiwg · View interactive version

Tot decide is an AI agent skill from the GitHub repository jmagly/aiwg. Evaluate architectural decisions using Tree of Thoughts exploration

How to use this skill

Skill file

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
  1. Load ToT Protocol
  1. Define Evaluation Criteria
  1. Generate Alternatives (k=3 default)
  1. Score and Compare
  1. Generate ADR
  1. Output

Arguments

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

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.