@sniper.ai/core 1.0.0 → 2.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 (94) hide show
  1. package/README.md +122 -32
  2. package/framework/checklists/debug-review.md +34 -0
  3. package/framework/checklists/feature-review.md +42 -0
  4. package/framework/checklists/ingest-review.md +42 -0
  5. package/framework/checklists/memory-review.md +30 -0
  6. package/framework/checklists/perf-review.md +33 -0
  7. package/framework/checklists/refactor-review.md +33 -0
  8. package/framework/checklists/security-review.md +34 -0
  9. package/framework/checklists/test-review.md +32 -0
  10. package/framework/checklists/workspace-review.md +34 -0
  11. package/framework/commands/sniper-audit.md +1549 -0
  12. package/framework/commands/sniper-compose.md +88 -2
  13. package/framework/commands/sniper-debug.md +337 -0
  14. package/framework/commands/sniper-discover.md +41 -15
  15. package/framework/commands/sniper-feature.md +515 -0
  16. package/framework/commands/sniper-ingest.md +506 -0
  17. package/framework/commands/sniper-init.md +21 -5
  18. package/framework/commands/sniper-memory.md +219 -0
  19. package/framework/commands/sniper-plan.md +41 -19
  20. package/framework/commands/sniper-review.md +106 -42
  21. package/framework/commands/sniper-solve.md +47 -14
  22. package/framework/commands/sniper-sprint.md +132 -17
  23. package/framework/commands/sniper-status.md +240 -35
  24. package/framework/commands/sniper-workspace-feature.md +267 -0
  25. package/framework/commands/sniper-workspace-init.md +252 -0
  26. package/framework/commands/sniper-workspace-status.md +112 -0
  27. package/framework/commands/sniper-workspace-validate.md +138 -0
  28. package/framework/config.template.yaml +88 -9
  29. package/framework/personas/process/architecture-cartographer.md +25 -0
  30. package/framework/personas/process/code-archaeologist.md +22 -0
  31. package/framework/personas/process/code-investigator.md +29 -0
  32. package/framework/personas/process/code-reviewer.md +26 -0
  33. package/framework/personas/process/contract-designer.md +31 -0
  34. package/framework/personas/process/convention-miner.md +27 -0
  35. package/framework/personas/process/coverage-analyst.md +24 -0
  36. package/framework/personas/process/flake-hunter.md +30 -0
  37. package/framework/personas/process/impact-analyst.md +23 -0
  38. package/framework/personas/process/integration-validator.md +29 -0
  39. package/framework/personas/process/log-analyst.md +22 -0
  40. package/framework/personas/process/migration-architect.md +24 -0
  41. package/framework/personas/process/perf-profiler.md +27 -0
  42. package/framework/personas/process/release-manager.md +23 -0
  43. package/framework/personas/process/retro-analyst.md +30 -0
  44. package/framework/personas/process/threat-modeler.md +30 -0
  45. package/framework/personas/process/triage-lead.md +23 -0
  46. package/framework/personas/process/vuln-scanner.md +27 -0
  47. package/framework/personas/process/workspace-orchestrator.md +30 -0
  48. package/framework/spawn-prompts/_template.md +3 -0
  49. package/framework/teams/debug.yaml +56 -0
  50. package/framework/teams/feature-plan.yaml +61 -0
  51. package/framework/teams/ingest.yaml +85 -0
  52. package/framework/teams/perf.yaml +33 -0
  53. package/framework/teams/refactor.yaml +34 -0
  54. package/framework/teams/retro.yaml +30 -0
  55. package/framework/teams/review-pr.yaml +73 -0
  56. package/framework/teams/review-release.yaml +70 -0
  57. package/framework/teams/security.yaml +59 -0
  58. package/framework/teams/test.yaml +59 -0
  59. package/framework/teams/workspace-feature.yaml +69 -0
  60. package/framework/teams/workspace-validation.yaml +27 -0
  61. package/framework/templates/arch-delta.md +74 -0
  62. package/framework/templates/architecture.md +24 -1
  63. package/framework/templates/brief.md +22 -1
  64. package/framework/templates/bug-report.md +55 -0
  65. package/framework/templates/contract-validation-report.md +68 -0
  66. package/framework/templates/contract.yaml +60 -0
  67. package/framework/templates/conventions.md +59 -0
  68. package/framework/templates/coverage-report.md +67 -0
  69. package/framework/templates/epic.md +14 -0
  70. package/framework/templates/feature-brief.md +54 -0
  71. package/framework/templates/feature-spec.md +53 -0
  72. package/framework/templates/flaky-report.md +64 -0
  73. package/framework/templates/investigation.md +49 -0
  74. package/framework/templates/memory-anti-pattern.yaml +16 -0
  75. package/framework/templates/memory-convention.yaml +17 -0
  76. package/framework/templates/memory-decision.yaml +16 -0
  77. package/framework/templates/migration-plan.md +47 -0
  78. package/framework/templates/optimization-plan.md +59 -0
  79. package/framework/templates/performance-profile.md +64 -0
  80. package/framework/templates/postmortem.md +69 -0
  81. package/framework/templates/pr-review.md +50 -0
  82. package/framework/templates/prd.md +24 -1
  83. package/framework/templates/refactor-scope.md +52 -0
  84. package/framework/templates/release-readiness.md +66 -0
  85. package/framework/templates/retro.yaml +44 -0
  86. package/framework/templates/security.md +22 -1
  87. package/framework/templates/story.md +16 -0
  88. package/framework/templates/threat-model.md +71 -0
  89. package/framework/templates/ux-spec.md +18 -1
  90. package/framework/templates/vulnerability-report.md +56 -0
  91. package/framework/templates/workspace-brief.md +52 -0
  92. package/framework/templates/workspace-plan.md +50 -0
  93. package/framework/workflows/workspace-feature.md +71 -0
  94. package/package.json +2 -2
@@ -0,0 +1,71 @@
1
+ # Workspace Feature Workflow
2
+
3
+ Orchestrate a feature across multiple repositories using contract-first coordination and wave-based sprints.
4
+
5
+ ## When to Use
6
+ - A feature requires changes in 2 or more repositories
7
+ - Cross-repo interfaces (APIs, shared types, events) need to be created or modified
8
+ - Implementation ordering matters due to repository dependencies
9
+
10
+ ## Prerequisites
11
+ - Workspace initialized (`workspace.yaml` exists)
12
+ - All member repositories have SNIPER initialized (`.sniper/` directory)
13
+ - Dependency graph is up to date in `workspace.yaml`
14
+
15
+ ## Execution Order
16
+
17
+ ### Step 1: Scoping
18
+ ```
19
+ /sniper-workspace feature "{feature description}"
20
+ ```
21
+ - Workspace orchestrator reads `workspace.yaml` and per-repo architecture docs
22
+ - Produces workspace feature brief identifying affected repos and wave ordering
23
+ - Gate: **strict** (workspace brief must be approved before contract design)
24
+
25
+ ### Step 2: Contract Design
26
+ - Contract designer reads the approved brief
27
+ - Produces interface contracts for all cross-repo communication
28
+ - Contracts are versioned and saved to `contracts/` directory
29
+ - Gate: **strict** (contracts must be approved before implementation begins)
30
+
31
+ ### Step 3: Per-Repo Story Generation
32
+ - For each affected repo, run `/sniper-feature` with contract context
33
+ - Stories reference specific contract items they implement
34
+ - Story references saved in workspace feature directory
35
+
36
+ ### Step 4: Wave-Based Sprints
37
+ - Execute sprints in dependency order (Wave 1 → Wave 2 → Wave 3)
38
+ - Within each wave, repos in the same tier sprint in parallel
39
+ - After each wave completes:
40
+ 1. Run per-repo review gates
41
+ 2. Run contract validation between waves
42
+ 3. If validation fails, generate fix stories and run corrective sprint
43
+ 4. If validation passes, proceed to next wave
44
+
45
+ ### Step 5: Integration Validation
46
+ - After all waves complete, run final cross-repo integration check
47
+ - Validates all contracts are fully satisfied
48
+ - Gate: **strict** (integration must pass before feature is marked complete)
49
+
50
+ ### Step 6: Feature Complete
51
+ - Mark workspace feature as complete
52
+ - Update contract versions
53
+ - Trigger workspace memory update (conventions learned across repos)
54
+
55
+ ## Recovery
56
+
57
+ ### Contract Validation Failure
58
+ 1. Review the validation report for specific mismatches
59
+ 2. Fix stories are auto-generated for each mismatch
60
+ 3. Run a corrective sprint in the affected repo(s)
61
+ 4. Re-run validation before proceeding to the next wave
62
+
63
+ ### Circular Dependencies
64
+ 1. If the dependency graph has cycles, the orchestrator will flag them
65
+ 2. Manual resolution required: break the cycle by identifying which interface to define first
66
+ 3. Create a contract for the interface and proceed with wave ordering
67
+
68
+ ### Repo Sprint Failure
69
+ 1. If a repo's sprint fails review, fix within that repo before proceeding
70
+ 2. Other repos in the same wave are not affected (contract-first isolation)
71
+ 3. Dependent waves are blocked until the fix passes review
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sniper.ai/core",
3
- "version": "1.0.0",
3
+ "version": "2.0.0",
4
4
  "description": "SNIPER framework core — personas, teams, templates, checklists, and workflows",
5
5
  "type": "module",
6
6
  "exports": {
@@ -21,7 +21,7 @@
21
21
  "license": "MIT",
22
22
  "repository": {
23
23
  "type": "git",
24
- "url": "https://github.com/sniperai/sniper.git",
24
+ "url": "https://github.com/virkt25/sniper.git",
25
25
  "directory": "packages/core"
26
26
  },
27
27
  "publishConfig": {