@skathio/somi 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (84) hide show
  1. package/.claude/settings.json +108 -0
  2. package/.claude/settings.local.json +9 -0
  3. package/.claude/somi-state/last-context-signature +1 -0
  4. package/.claude-plugin/marketplace.json +21 -0
  5. package/.claude-plugin/plugin.json +24 -0
  6. package/.copilot-extension/extension.json +51 -0
  7. package/.copilot-extension/marketplace.json +19 -0
  8. package/LICENSE +21 -0
  9. package/README.md +209 -0
  10. package/VERSION +1 -0
  11. package/agents/architecture-reviewer.md +86 -0
  12. package/agents/coder.md +222 -0
  13. package/agents/discovery-analyst.md +305 -0
  14. package/agents/planner.md +256 -0
  15. package/agents/refactorer.md +72 -0
  16. package/agents/reviewer.md +233 -0
  17. package/agents/security-reviewer.md +85 -0
  18. package/agents/test-strategist.md +74 -0
  19. package/commands/architecture-review.md +92 -0
  20. package/commands/code-loop.md +142 -0
  21. package/commands/code-parallel.md +155 -0
  22. package/commands/code.md +138 -0
  23. package/commands/discover.md +175 -0
  24. package/commands/plan-loop.md +124 -0
  25. package/commands/plan.md +174 -0
  26. package/commands/refactor.md +44 -0
  27. package/commands/review-panel.md +123 -0
  28. package/commands/review.md +149 -0
  29. package/commands/security-review.md +73 -0
  30. package/commands/ship-loop.md +135 -0
  31. package/commands/ship.md +108 -0
  32. package/commands/test-strategy.md +82 -0
  33. package/examples/README.md +19 -0
  34. package/examples/code-review-example.md +88 -0
  35. package/examples/discovery-example.md +200 -0
  36. package/examples/feature-plan-example.md +377 -0
  37. package/examples/full-pipeline-example.md +188 -0
  38. package/examples/sample-consumer/.claude/settings.json +29 -0
  39. package/examples/sample-consumer/CLAUDE.md +41 -0
  40. package/examples/sample-consumer/README.md +77 -0
  41. package/hooks/hooks.json +64 -0
  42. package/hooks/lib/common.sh +120 -0
  43. package/hooks/post-tool/audit-log.sh +40 -0
  44. package/hooks/post-tool/lint-changed-files.sh +80 -0
  45. package/hooks/pre-tool/block-dangerous-bash.sh +83 -0
  46. package/hooks/pre-tool/block-secret-writes.sh +83 -0
  47. package/hooks/pre-tool/gate-dep-install.sh +72 -0
  48. package/hooks/pre-tool/guard-protected-paths.sh +74 -0
  49. package/hooks/user-prompt-submit/inject-workflow-context.sh +143 -0
  50. package/package.json +51 -0
  51. package/rules/00-priorities.md +48 -0
  52. package/rules/10-solid.md +87 -0
  53. package/rules/20-clean-code.md +62 -0
  54. package/rules/30-security-owasp.md +83 -0
  55. package/rules/40-engineering-practices.md +65 -0
  56. package/rules/50-collaboration.md +108 -0
  57. package/rules/99-overrides.md +52 -0
  58. package/rules/CLAUDE.md +164 -0
  59. package/skills/api-design/SKILL.md +147 -0
  60. package/skills/clean-code/SKILL.md +142 -0
  61. package/skills/market-research/SKILL.md +125 -0
  62. package/skills/observability/SKILL.md +133 -0
  63. package/skills/owasp-defense/SKILL.md +141 -0
  64. package/skills/requirements-engineering/SKILL.md +137 -0
  65. package/skills/solid-principles/SKILL.md +143 -0
  66. package/skills/test-strategy/SKILL.md +133 -0
  67. package/skills/threat-modeling/SKILL.md +117 -0
  68. package/templates/ADR.md.tmpl +73 -0
  69. package/templates/BRD.md.tmpl +68 -0
  70. package/templates/CONTEXT.md.tmpl +74 -0
  71. package/templates/DECISIONS.md.tmpl +104 -0
  72. package/templates/DIARY.md.tmpl +65 -0
  73. package/templates/DOD.md.tmpl +66 -0
  74. package/templates/FRD.md.tmpl +64 -0
  75. package/templates/PHASE.md.tmpl +80 -0
  76. package/templates/PROGRESS.md.tmpl +76 -0
  77. package/templates/RD-README.md.tmpl +70 -0
  78. package/templates/RESEARCH.md.tmpl +96 -0
  79. package/templates/REVIEW.md.tmpl +81 -0
  80. package/templates/SDD.md.tmpl +82 -0
  81. package/templates/SOMI-README.md.tmpl +66 -0
  82. package/templates/SPEC.md.tmpl +123 -0
  83. package/templates/SRS.md.tmpl +85 -0
  84. package/templates/TDD.md.tmpl +77 -0
@@ -0,0 +1,77 @@
1
+ # Technical Design Document (TDD) — <initiative name>
2
+
3
+ > Index: [`README.md`](./README.md) • Design: [`sdd.md`](./sdd.md) • Requirements: [`srs.md`](./srs.md)
4
+ > Decisions: [`decisions.md`](./decisions.md)
5
+ > Created: <YYYY-MM-DD> • Last updated: <YYYY-MM-DD>
6
+
7
+ The **technical direction and constraints** — high-level. Technology *families*, non-functional
8
+ engineering targets, and the posture (security, compliance, operability) that the planner must
9
+ build within. Each choice is tied to an SRS requirement and a reason.
10
+
11
+ > **Boundary, again.** This names the technology *family* and the *limits* (e.g., "a relational
12
+ > store with ACID guarantees", "p95 < 200 ms"). The [`planner`](../../../agents/planner.md) picks the
13
+ > *concrete* library/version within those limits and designs the implementation. Don't pin exact
14
+ > dependency versions or write code here.
15
+
16
+ ## 1. Technology direction
17
+
18
+ | Area | Direction (family, not exact pick) | Why (traces to) | Constraint for the planner |
19
+ |------|------------------------------------|------------------|----------------------------|
20
+ | Language / runtime | <e.g. a memory-safe backend language> | NFR-2, team skills | <…> |
21
+ | Storage | <e.g. relational, ACID> | FR-5 (consistency), NFR-2 | <e.g. must support 1M-row import — NFR-4> |
22
+ | Compute / hosting | <e.g. containerized, single region v1> | BR constraints | <…> |
23
+ | Async / messaging | <e.g. needed? sync v1, queue later> | NFR-1 | <…> |
24
+
25
+ > A dependency added later is a decision (the [`gate-dep-install`](../../../docs/HOOKS.md) hook gates
26
+ > it at coding time). This document sets the *direction*; the planner records the concrete pick in
27
+ > `decisions.md` when it commits.
28
+
29
+ ## 2. Non-functional engineering targets
30
+
31
+ The measurable targets the implementation must hit, lifted from `srs.md §4` and made concrete for
32
+ engineering.
33
+
34
+ | Target | Value + condition | Source |
35
+ |--------|-------------------|--------|
36
+ | Latency | <p95 < 200 ms at 500 rps on the reference instance> | NFR-1 |
37
+ | Throughput / scale | <e.g. 10k concurrent sessions; 1M-row import> | NFR-4 |
38
+ | Availability | <e.g. 99.9% monthly> | NFR-2 |
39
+ | Resource budget | <e.g. fits in <N> GB / <$N> per month at target load> | BR constraint |
40
+
41
+ ## 3. Security & privacy posture
42
+
43
+ - **AuthN/AuthZ direction**: <own vs. delegate; session model> (full entry in `decisions.md`)
44
+ - **Data protection**: <encryption at rest/in transit; secret handling — ties to NFR-3>
45
+ - **Trust boundaries**: <pointer to `sdd.md §4`; the controls there are the engineering requirements>
46
+ - **Compliance**: <regulatory regime, if any (HIPAA/GDPR/PCI…) and what it forces — consider a
47
+ dedicated compliance doc, noted in `README.md`>
48
+
49
+ > Ground this with [`owasp-defense`](../../../skills/owasp-defense/SKILL.md) and
50
+ > [`threat-modeling`](../../../skills/threat-modeling/SKILL.md).
51
+
52
+ ## 4. Operability & observability direction
53
+
54
+ - **Signals that matter**: <the golden signals for *this* product — not a generic list>
55
+ - **Deployment shape**: <how it ships and rolls back — direction>
56
+ - **Failure modes to instrument**: <the ones the research/FRD say will hurt>
57
+
58
+ Detailed metric names, log fields, and dashboards are the planner's output — see
59
+ [`observability`](../../../skills/observability/SKILL.md).
60
+
61
+ ## 5. Technical risks & constraints
62
+
63
+ | Risk / constraint | Why it matters | Mitigation / what the planner must verify |
64
+ |-------------------|----------------|-------------------------------------------|
65
+ | <e.g. candidate library shares a known competitor limit> | inherits complaint C1 | verify against NFR-4 before committing |
66
+ | <e.g. single-region v1> | availability ceiling | accepted for v1; multi-region is a non-goal |
67
+
68
+ ## 6. Build-vs-integrate calls
69
+
70
+ For each major capability where "build it" vs "use a service/library" is a real choice (verified in
71
+ `decisions.md`):
72
+
73
+ - **<capability>** — <build / integrate> — <reason tied to a requirement and the research>.
74
+
75
+ ## 7. Open technical questions for the planner
76
+
77
+ - [ ] <technical decision deferred to planning, with the constraint it must satisfy>