sinapse-ai 7.1.0 → 7.2.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 (64) hide show
  1. package/.sinapse-ai/data/entity-registry.yaml +749 -757
  2. package/.sinapse-ai/install-manifest.yaml +4 -4
  3. package/bin/cli.js +116 -75
  4. package/package.json +2 -1
  5. package/squads/claude-code-mastery/CHANGELOG.md +22 -0
  6. package/squads/claude-code-mastery/README.md +146 -0
  7. package/squads/claude-code-mastery/agents/claude-mastery-chief.md +554 -0
  8. package/squads/claude-code-mastery/agents/config-engineer.md +865 -0
  9. package/squads/claude-code-mastery/agents/hooks-architect.md +1013 -0
  10. package/squads/claude-code-mastery/agents/mcp-integrator.md +791 -0
  11. package/squads/claude-code-mastery/agents/project-integrator.md +1196 -0
  12. package/squads/claude-code-mastery/agents/roadmap-sentinel.md +931 -0
  13. package/squads/claude-code-mastery/agents/skill-craftsman.md +1250 -0
  14. package/squads/claude-code-mastery/agents/swarm-orqx.md +1008 -0
  15. package/squads/claude-code-mastery/checklists/agent-team-readiness-checklist.md +88 -0
  16. package/squads/claude-code-mastery/checklists/brownfield-readiness-checklist.md +91 -0
  17. package/squads/claude-code-mastery/checklists/change-checklist.md +75 -0
  18. package/squads/claude-code-mastery/checklists/context-rot-checklist.md +114 -0
  19. package/squads/claude-code-mastery/checklists/integration-audit-checklist.md +104 -0
  20. package/squads/claude-code-mastery/checklists/multi-agent-review-checklist.md +77 -0
  21. package/squads/claude-code-mastery/checklists/pre-push-checklist.md +79 -0
  22. package/squads/claude-code-mastery/data/ci-cd-patterns.yaml +412 -0
  23. package/squads/claude-code-mastery/data/claude-code-quick-ref.yaml +314 -0
  24. package/squads/claude-code-mastery/data/hook-patterns.yaml +512 -0
  25. package/squads/claude-code-mastery/data/mcp-integration-catalog.yaml +323 -0
  26. package/squads/claude-code-mastery/data/project-type-signatures.yaml +335 -0
  27. package/squads/claude-code-mastery/scripts/validate-setup.js +163 -0
  28. package/squads/claude-code-mastery/squad.yaml +205 -0
  29. package/squads/claude-code-mastery/tasks/audit-integration.md +219 -0
  30. package/squads/claude-code-mastery/tasks/audit-settings.md +206 -0
  31. package/squads/claude-code-mastery/tasks/audit-setup.md +225 -0
  32. package/squads/claude-code-mastery/tasks/brownfield-setup.md +322 -0
  33. package/squads/claude-code-mastery/tasks/ci-cd-setup.md +335 -0
  34. package/squads/claude-code-mastery/tasks/claude-md-engineer.md +334 -0
  35. package/squads/claude-code-mastery/tasks/configure-claude-code.md +215 -0
  36. package/squads/claude-code-mastery/tasks/context-rot-audit.md +329 -0
  37. package/squads/claude-code-mastery/tasks/create-agent-definition.md +278 -0
  38. package/squads/claude-code-mastery/tasks/create-rules.md +206 -0
  39. package/squads/claude-code-mastery/tasks/create-team-topology.md +258 -0
  40. package/squads/claude-code-mastery/tasks/diagnose.md +166 -0
  41. package/squads/claude-code-mastery/tasks/enterprise-config.md +346 -0
  42. package/squads/claude-code-mastery/tasks/hook-designer.md +272 -0
  43. package/squads/claude-code-mastery/tasks/integrate-project.md +304 -0
  44. package/squads/claude-code-mastery/tasks/mcp-integration-plan.md +229 -0
  45. package/squads/claude-code-mastery/tasks/mcp-workflow.md +285 -0
  46. package/squads/claude-code-mastery/tasks/multi-project-setup.md +228 -0
  47. package/squads/claude-code-mastery/tasks/optimize-context.md +217 -0
  48. package/squads/claude-code-mastery/tasks/optimize-workflow.md +226 -0
  49. package/squads/claude-code-mastery/tasks/parallel-decomposition.md +293 -0
  50. package/squads/claude-code-mastery/tasks/permission-strategy.md +266 -0
  51. package/squads/claude-code-mastery/tasks/sandbox-setup.md +279 -0
  52. package/squads/claude-code-mastery/tasks/setup-repository.md +230 -0
  53. package/squads/claude-code-mastery/tasks/setup-wizard.md +236 -0
  54. package/squads/claude-code-mastery/tasks/worktree-strategy.md +320 -0
  55. package/squads/claude-code-mastery/templates/claude-md-fullstack.md +147 -0
  56. package/squads/claude-code-mastery/templates/claude-md-library.md +175 -0
  57. package/squads/claude-code-mastery/templates/claude-md-microservices.md +186 -0
  58. package/squads/claude-code-mastery/templates/claude-md-mobile.md +198 -0
  59. package/squads/claude-code-mastery/templates/claude-md-monorepo.md +139 -0
  60. package/squads/claude-code-mastery/templates/github-actions-claude-ci.yml +348 -0
  61. package/squads/claude-code-mastery/templates/github-actions-claude-review.yml +179 -0
  62. package/squads/claude-code-mastery/workflows/wf-audit-complete.yaml +140 -0
  63. package/squads/claude-code-mastery/workflows/wf-knowledge-update.yaml +165 -0
  64. package/squads/claude-code-mastery/workflows/wf-project-setup.yaml +192 -0
@@ -0,0 +1,165 @@
1
+ # ============================================================================
2
+ # Workflow: Knowledge Update
3
+ # Squad: claude-code-mastery
4
+ # Version: 1.0.0
5
+ # Purpose: Refresh squad knowledge from Claude Code changelog and roadmap
6
+ # ============================================================================
7
+
8
+ workflow:
9
+ id: wf-knowledge-update
10
+ name: "Claude Code Knowledge Update"
11
+ version: "1.0.0"
12
+ description: |
13
+ Workflow to refresh the claude-code-mastery squad's knowledge base
14
+ from official Claude Code sources: changelog, documentation, blog posts,
15
+ and community resources. Ensures the squad stays current.
16
+
17
+ trigger: "*update-knowledge"
18
+ entry_agent: roadmap-sentinel
19
+ estimated_duration: "15-30 minutes"
20
+
21
+ # ────────────────────────────────────────────────────────────────────────────
22
+ # PHASES
23
+ # ────────────────────────────────────────────────────────────────────────────
24
+
25
+ phases:
26
+
27
+ # ─── PHASE 0: Source Collection ──────────────────────────────────────────
28
+ - id: phase_0
29
+ name: "Source Collection"
30
+ agent: roadmap-sentinel
31
+ description: |
32
+ Fetch latest information from all official and community sources.
33
+ steps:
34
+ - "Fetch Claude Code CHANGELOG.md from GitHub"
35
+ - "Fetch latest releases from GitHub releases page"
36
+ - "Check official documentation at code.claude.com/docs"
37
+ - "Check Anthropic blog for Claude Code announcements"
38
+ - "Check community sources (claudelog.com, claudefast.com)"
39
+ sources:
40
+ changelog: "https://github.com/anthropics/claude-code/blob/main/CHANGELOG.md"
41
+ releases: "https://github.com/anthropics/claude-code/releases"
42
+ docs: "https://code.claude.com/docs/en/overview"
43
+ blog: "https://claude.com/blog/"
44
+ community:
45
+ - "https://claudelog.com/claude-code-changelog/"
46
+ - "https://claudefa.st/blog/guide/changelog"
47
+ outputs:
48
+ - latest_version: "string (e.g., 1.0.47)"
49
+ - new_features: "array of feature descriptions"
50
+ - breaking_changes: "array (if any)"
51
+ - deprecations: "array (if any)"
52
+ checkpoint:
53
+ gate: "At least changelog and releases fetched successfully"
54
+ veto: "No sources accessible (network issue)"
55
+
56
+ # ─── PHASE 1: Delta Analysis ────────────────────────────────────────────
57
+ - id: phase_1
58
+ name: "Delta Analysis"
59
+ agent: roadmap-sentinel
60
+ depends_on: [phase_0]
61
+ description: |
62
+ Compare new information against squad's current knowledge base
63
+ to identify what needs updating.
64
+ steps:
65
+ - "Read current data/claude-code-quick-ref.yaml"
66
+ - "Compare tool list, hook events, features against latest docs"
67
+ - "Identify new features not in knowledge base"
68
+ - "Identify deprecated features still in knowledge base"
69
+ - "Assess impact on each specialist agent"
70
+ outputs:
71
+ - delta_report:
72
+ new_features: "array"
73
+ deprecated_features: "array"
74
+ changed_features: "array"
75
+ affected_agents: "array of agent IDs"
76
+ - update_priority: "string (critical | important | minor | none)"
77
+ checkpoint:
78
+ gate: "Delta report generated"
79
+ veto: "If update_priority is 'none', skip remaining phases"
80
+
81
+ # ─── PHASE 2: Knowledge Base Update ─────────────────────────────────────
82
+ - id: phase_2
83
+ name: "Knowledge Base Update"
84
+ agent: roadmap-sentinel
85
+ depends_on: [phase_1]
86
+ description: |
87
+ Update the squad's data files with new information.
88
+ steps:
89
+ - "Update data/claude-code-quick-ref.yaml with new features"
90
+ - "Update data/hook-patterns.yaml if new hook events"
91
+ - "Update data/mcp-integration-catalog.yaml if new MCPs"
92
+ - "Add new entries to relevant data files"
93
+ - "Remove deprecated entries"
94
+ outputs:
95
+ - files_updated: "array of file paths"
96
+ - entries_added: "number"
97
+ - entries_removed: "number"
98
+ checkpoint:
99
+ gate: "All identified deltas addressed in data files"
100
+ veto: "Removing entries without deprecation notice"
101
+
102
+ # ─── PHASE 3: Agent Impact Assessment ───────────────────────────────────
103
+ - id: phase_3
104
+ name: "Agent Impact Assessment"
105
+ agent: claude-mastery-chief
106
+ depends_on: [phase_2]
107
+ description: |
108
+ Assess which specialist agents need updates based on the delta.
109
+ steps:
110
+ - "For each affected agent, identify impacted sections"
111
+ - "Check if agent's knowledge references are still accurate"
112
+ - "Flag agents that need quick_reference or commands updates"
113
+ - "Generate update recommendations per agent"
114
+ outputs:
115
+ - agent_updates:
116
+ - agent_id: "string"
117
+ sections_affected: "array"
118
+ priority: "string (critical | recommended | optional)"
119
+ recommendation: "string"
120
+ checkpoint:
121
+ gate: "All affected agents assessed"
122
+ veto: "N/A (assessment only)"
123
+
124
+ # ─── PHASE 4: Summary & Notification ────────────────────────────────────
125
+ - id: phase_4
126
+ name: "Update Summary"
127
+ agent: claude-mastery-chief
128
+ depends_on: [phase_3]
129
+ description: |
130
+ Generate final update summary with actionable next steps.
131
+ steps:
132
+ - "Compile update summary"
133
+ - "List all changes made"
134
+ - "List recommended agent updates"
135
+ - "Provide version comparison (was → now)"
136
+ outputs:
137
+ - update_report:
138
+ version_before: "string"
139
+ version_after: "string"
140
+ data_files_updated: "number"
141
+ agents_needing_update: "number"
142
+ summary: "string"
143
+
144
+ # ────────────────────────────────────────────────────────────────────────────
145
+ # COMPLETION CRITERIA
146
+ # ────────────────────────────────────────────────────────────────────────────
147
+
148
+ completion_criteria:
149
+ - "All official sources checked"
150
+ - "Delta report generated"
151
+ - "Knowledge base data files updated"
152
+ - "Agent impact assessment completed"
153
+ - "Update summary report generated"
154
+
155
+ # ────────────────────────────────────────────────────────────────────────────
156
+ # SCHEDULE
157
+ # ────────────────────────────────────────────────────────────────────────────
158
+
159
+ schedule:
160
+ recommended: "Run after each Claude Code version update"
161
+ minimum: "Monthly"
162
+ trigger_on:
163
+ - "User runs *update-knowledge or *updates"
164
+ - "Claude Code version change detected"
165
+ - "User asks 'what is new in Claude Code?'"
@@ -0,0 +1,192 @@
1
+ # ============================================================================
2
+ # Workflow: Project Setup
3
+ # Squad: claude-code-mastery
4
+ # Version: 1.0.0
5
+ # Purpose: Full Claude Code project setup from zero to production-ready
6
+ # ============================================================================
7
+
8
+ workflow:
9
+ id: wf-project-setup
10
+ name: "Claude Code Project Setup"
11
+ version: "1.0.0"
12
+ description: |
13
+ End-to-end workflow to set up Claude Code in any project.
14
+ Orchestrates config-engineer, hooks-architect, mcp-integrator,
15
+ and project-integrator to create a complete, production-ready setup.
16
+
17
+ trigger: "*setup-project"
18
+ entry_agent: claude-mastery-chief
19
+ estimated_duration: "30-60 minutes"
20
+
21
+ # ────────────────────────────────────────────────────────────────────────────
22
+ # PHASES
23
+ # ────────────────────────────────────────────────────────────────────────────
24
+
25
+ phases:
26
+
27
+ # ─── PHASE 0: Discovery ───────────────────────────────────────────────────
28
+ - id: phase_0
29
+ name: "Discovery & Detection"
30
+ agent: project-integrator
31
+ task: integrate-project.md
32
+ description: |
33
+ Detect project type, analyze existing structure, determine what
34
+ Claude Code components are needed.
35
+ steps:
36
+ - "Scan project root for signature files (package.json, requirements.txt, Cargo.toml, etc.)"
37
+ - "Match against project-type-signatures.yaml"
38
+ - "Detect existing Claude Code setup (partial? none?)"
39
+ - "Determine setup scope: greenfield vs brownfield"
40
+ outputs:
41
+ - project_type: "string (monorepo | fullstack-nextjs | react-library | python-api | ...)"
42
+ - existing_setup: "object (has_claude_dir, has_settings, has_claudemd, has_hooks, has_mcp)"
43
+ - setup_scope: "string (greenfield | brownfield | upgrade)"
44
+ checkpoint:
45
+ gate: "Project type detected with confidence >= 0.7"
46
+ veto: "If project type undetectable, ask user to specify"
47
+
48
+ # ─── PHASE 1: CLAUDE.md Engineering ──────────────────────────────────────
49
+ - id: phase_1
50
+ name: "CLAUDE.md Engineering"
51
+ agent: project-integrator
52
+ task: claude-md-engineer.md
53
+ depends_on: [phase_0]
54
+ description: |
55
+ Generate an optimized CLAUDE.md tailored to the detected project type.
56
+ steps:
57
+ - "Select template from templates/ based on project_type"
58
+ - "Analyze project structure for conventions (naming, patterns, tools)"
59
+ - "Generate CLAUDE.md under 200 lines"
60
+ - "Add managed sections for auto-update capability"
61
+ outputs:
62
+ - claude_md_path: ".claude/CLAUDE.md or CLAUDE.md"
63
+ - line_count: "number (target: < 200)"
64
+ checkpoint:
65
+ gate: "CLAUDE.md exists, < 200 lines, has essential sections"
66
+ veto: "CLAUDE.md > 500 lines without user approval"
67
+
68
+ # ─── PHASE 2: Configuration ──────────────────────────────────────────────
69
+ - id: phase_2
70
+ name: "Settings & Permissions"
71
+ agent: config-engineer
72
+ task: configure-claude-code.md
73
+ depends_on: [phase_0]
74
+ description: |
75
+ Generate .claude/settings.json with appropriate permissions,
76
+ deny rules, and MCP server configurations.
77
+ steps:
78
+ - "Generate .claude/settings.json with deny-first approach"
79
+ - "Configure permission mode based on project needs"
80
+ - "Add deny rules for sensitive files (.env, secrets, credentials)"
81
+ - "Configure allow rules for common safe operations"
82
+ outputs:
83
+ - settings_path: ".claude/settings.json"
84
+ - permission_mode: "string"
85
+ - deny_rules_count: "number"
86
+ checkpoint:
87
+ gate: "settings.json valid, deny rules cover .env and secrets"
88
+ veto: "No deny rules for sensitive files"
89
+
90
+ # ─── PHASE 3: Rules ─────────────────────────────────────────────────────
91
+ - id: phase_3
92
+ name: "Conditional Rules"
93
+ agent: config-engineer
94
+ task: create-rules.md
95
+ depends_on: [phase_1]
96
+ description: |
97
+ Create .claude/rules/ with path-based conditional rules
98
+ to keep context window lean.
99
+ steps:
100
+ - "Identify rule categories (testing, API, database, frontend, etc.)"
101
+ - "Create rules with paths: frontmatter for conditional loading"
102
+ - "Move detailed instructions from CLAUDE.md to rules"
103
+ - "Validate rules load correctly"
104
+ outputs:
105
+ - rules_dir: ".claude/rules/"
106
+ - rules_count: "number"
107
+ checkpoint:
108
+ gate: "At least 2 rules created with valid frontmatter"
109
+ veto: "Rules without paths: frontmatter (always-loaded bloat)"
110
+
111
+ # ─── PHASE 4: Hooks ─────────────────────────────────────────────────────
112
+ - id: phase_4
113
+ name: "Hook Setup"
114
+ agent: hooks-architect
115
+ task: hook-designer.md
116
+ depends_on: [phase_2]
117
+ description: |
118
+ Configure hooks for the project based on its needs.
119
+ steps:
120
+ - "Assess hook needs from project type and workflow"
121
+ - "Create damage-control hook (block dangerous commands)"
122
+ - "Optionally add auto-lint, notification, or cost-tracking hooks"
123
+ - "Add hooks to settings.json"
124
+ - "Test hook execution"
125
+ outputs:
126
+ - hooks_configured: "number"
127
+ - hook_types: "array of event names"
128
+ checkpoint:
129
+ gate: "At least damage-control hook configured and tested"
130
+ veto: "Hook with syntax errors in settings.json"
131
+
132
+ # ─── PHASE 5: MCP Servers ───────────────────────────────────────────────
133
+ - id: phase_5
134
+ name: "MCP Integration"
135
+ agent: mcp-integrator
136
+ task: mcp-workflow.md
137
+ depends_on: [phase_2]
138
+ description: |
139
+ Configure MCP servers appropriate for the project's tech stack.
140
+ steps:
141
+ - "Map project needs to available MCP servers"
142
+ - "Calculate context budget impact"
143
+ - "Configure essential MCPs (prioritize by ROI)"
144
+ - "Test tool availability with ToolSearch"
145
+ outputs:
146
+ - mcp_servers: "array of configured servers"
147
+ - context_budget_used: "number (tokens)"
148
+ checkpoint:
149
+ gate: "MCP servers configured and responding"
150
+ veto: "Context budget > 10K tokens for MCP tools alone"
151
+
152
+ # ─── PHASE 6: Validation ────────────────────────────────────────────────
153
+ - id: phase_6
154
+ name: "Setup Validation"
155
+ agent: claude-mastery-chief
156
+ task: audit-setup.md
157
+ depends_on: [phase_1, phase_2, phase_3, phase_4, phase_5]
158
+ description: |
159
+ Run full audit of the completed setup to ensure quality.
160
+ steps:
161
+ - "Execute *audit command"
162
+ - "Verify all components are properly configured"
163
+ - "Generate setup report with score"
164
+ - "Recommend next steps"
165
+ outputs:
166
+ - audit_score: "number (0-100)"
167
+ - grade: "string (A-F)"
168
+ - recommendations: "array"
169
+ checkpoint:
170
+ gate: "Audit score >= 70 (grade C or better)"
171
+ veto: "Score < 50 — fundamental setup issues"
172
+
173
+ # ────────────────────────────────────────────────────────────────────────────
174
+ # COMPLETION CRITERIA
175
+ # ────────────────────────────────────────────────────────────────────────────
176
+
177
+ completion_criteria:
178
+ - "CLAUDE.md exists and is < 200 lines"
179
+ - ".claude/settings.json is valid with deny rules"
180
+ - "At least 2 conditional rules in .claude/rules/"
181
+ - "At least 1 hook configured (damage-control minimum)"
182
+ - "MCP servers configured for project stack"
183
+ - "Audit score >= 70"
184
+
185
+ # ────────────────────────────────────────────────────────────────────────────
186
+ # VETO CONDITIONS (workflow-level)
187
+ # ────────────────────────────────────────────────────────────────────────────
188
+
189
+ veto_conditions:
190
+ - "No .env or secrets files accessible without deny rules"
191
+ - "No autoApprove permission mode without explicit user consent"
192
+ - "No MCP configuration that exceeds context budget"