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.
- package/.sinapse-ai/data/entity-registry.yaml +749 -757
- package/.sinapse-ai/install-manifest.yaml +4 -4
- package/bin/cli.js +116 -75
- package/package.json +2 -1
- package/squads/claude-code-mastery/CHANGELOG.md +22 -0
- package/squads/claude-code-mastery/README.md +146 -0
- package/squads/claude-code-mastery/agents/claude-mastery-chief.md +554 -0
- package/squads/claude-code-mastery/agents/config-engineer.md +865 -0
- package/squads/claude-code-mastery/agents/hooks-architect.md +1013 -0
- package/squads/claude-code-mastery/agents/mcp-integrator.md +791 -0
- package/squads/claude-code-mastery/agents/project-integrator.md +1196 -0
- package/squads/claude-code-mastery/agents/roadmap-sentinel.md +931 -0
- package/squads/claude-code-mastery/agents/skill-craftsman.md +1250 -0
- package/squads/claude-code-mastery/agents/swarm-orqx.md +1008 -0
- package/squads/claude-code-mastery/checklists/agent-team-readiness-checklist.md +88 -0
- package/squads/claude-code-mastery/checklists/brownfield-readiness-checklist.md +91 -0
- package/squads/claude-code-mastery/checklists/change-checklist.md +75 -0
- package/squads/claude-code-mastery/checklists/context-rot-checklist.md +114 -0
- package/squads/claude-code-mastery/checklists/integration-audit-checklist.md +104 -0
- package/squads/claude-code-mastery/checklists/multi-agent-review-checklist.md +77 -0
- package/squads/claude-code-mastery/checklists/pre-push-checklist.md +79 -0
- package/squads/claude-code-mastery/data/ci-cd-patterns.yaml +412 -0
- package/squads/claude-code-mastery/data/claude-code-quick-ref.yaml +314 -0
- package/squads/claude-code-mastery/data/hook-patterns.yaml +512 -0
- package/squads/claude-code-mastery/data/mcp-integration-catalog.yaml +323 -0
- package/squads/claude-code-mastery/data/project-type-signatures.yaml +335 -0
- package/squads/claude-code-mastery/scripts/validate-setup.js +163 -0
- package/squads/claude-code-mastery/squad.yaml +205 -0
- package/squads/claude-code-mastery/tasks/audit-integration.md +219 -0
- package/squads/claude-code-mastery/tasks/audit-settings.md +206 -0
- package/squads/claude-code-mastery/tasks/audit-setup.md +225 -0
- package/squads/claude-code-mastery/tasks/brownfield-setup.md +322 -0
- package/squads/claude-code-mastery/tasks/ci-cd-setup.md +335 -0
- package/squads/claude-code-mastery/tasks/claude-md-engineer.md +334 -0
- package/squads/claude-code-mastery/tasks/configure-claude-code.md +215 -0
- package/squads/claude-code-mastery/tasks/context-rot-audit.md +329 -0
- package/squads/claude-code-mastery/tasks/create-agent-definition.md +278 -0
- package/squads/claude-code-mastery/tasks/create-rules.md +206 -0
- package/squads/claude-code-mastery/tasks/create-team-topology.md +258 -0
- package/squads/claude-code-mastery/tasks/diagnose.md +166 -0
- package/squads/claude-code-mastery/tasks/enterprise-config.md +346 -0
- package/squads/claude-code-mastery/tasks/hook-designer.md +272 -0
- package/squads/claude-code-mastery/tasks/integrate-project.md +304 -0
- package/squads/claude-code-mastery/tasks/mcp-integration-plan.md +229 -0
- package/squads/claude-code-mastery/tasks/mcp-workflow.md +285 -0
- package/squads/claude-code-mastery/tasks/multi-project-setup.md +228 -0
- package/squads/claude-code-mastery/tasks/optimize-context.md +217 -0
- package/squads/claude-code-mastery/tasks/optimize-workflow.md +226 -0
- package/squads/claude-code-mastery/tasks/parallel-decomposition.md +293 -0
- package/squads/claude-code-mastery/tasks/permission-strategy.md +266 -0
- package/squads/claude-code-mastery/tasks/sandbox-setup.md +279 -0
- package/squads/claude-code-mastery/tasks/setup-repository.md +230 -0
- package/squads/claude-code-mastery/tasks/setup-wizard.md +236 -0
- package/squads/claude-code-mastery/tasks/worktree-strategy.md +320 -0
- package/squads/claude-code-mastery/templates/claude-md-fullstack.md +147 -0
- package/squads/claude-code-mastery/templates/claude-md-library.md +175 -0
- package/squads/claude-code-mastery/templates/claude-md-microservices.md +186 -0
- package/squads/claude-code-mastery/templates/claude-md-mobile.md +198 -0
- package/squads/claude-code-mastery/templates/claude-md-monorepo.md +139 -0
- package/squads/claude-code-mastery/templates/github-actions-claude-ci.yml +348 -0
- package/squads/claude-code-mastery/templates/github-actions-claude-review.yml +179 -0
- package/squads/claude-code-mastery/workflows/wf-audit-complete.yaml +140 -0
- package/squads/claude-code-mastery/workflows/wf-knowledge-update.yaml +165 -0
- package/squads/claude-code-mastery/workflows/wf-project-setup.yaml +192 -0
|
@@ -0,0 +1,314 @@
|
|
|
1
|
+
# Claude Code Quick Reference Card
|
|
2
|
+
# Squad: claude-code-mastery
|
|
3
|
+
# Last updated: 2026-03-02
|
|
4
|
+
|
|
5
|
+
version: "1.0.0"
|
|
6
|
+
claude_code_version: "1.0.x"
|
|
7
|
+
|
|
8
|
+
# ---------------------------------------------------------------------------
|
|
9
|
+
# INTERNAL TOOLS (16+)
|
|
10
|
+
# ---------------------------------------------------------------------------
|
|
11
|
+
tools:
|
|
12
|
+
file_operations:
|
|
13
|
+
- name: Read
|
|
14
|
+
description: "Read file contents with optional line range"
|
|
15
|
+
supports: "text, images, PDFs (page ranges), Jupyter notebooks"
|
|
16
|
+
- name: Write
|
|
17
|
+
description: "Create new files or complete rewrites"
|
|
18
|
+
note: "Must Read file first if it exists"
|
|
19
|
+
- name: Edit
|
|
20
|
+
description: "Exact string replacement in existing files"
|
|
21
|
+
note: "old_string must be unique; use replace_all for bulk"
|
|
22
|
+
- name: MultiEdit
|
|
23
|
+
description: "Multiple edits in a single file atomically"
|
|
24
|
+
|
|
25
|
+
search:
|
|
26
|
+
- name: Glob
|
|
27
|
+
description: "Fast file pattern matching (e.g., **/*.ts)"
|
|
28
|
+
returns: "File paths sorted by modification time"
|
|
29
|
+
- name: Grep
|
|
30
|
+
description: "Content search using ripgrep regex"
|
|
31
|
+
modes: [content, files_with_matches, count]
|
|
32
|
+
|
|
33
|
+
execution:
|
|
34
|
+
- name: Bash
|
|
35
|
+
description: "Execute shell commands with timeout control"
|
|
36
|
+
max_timeout_ms: 600000
|
|
37
|
+
supports: "background execution via run_in_background"
|
|
38
|
+
- name: Agent
|
|
39
|
+
description: "Spawn subagent for complex multi-step tasks"
|
|
40
|
+
types: [Explore, Plan, general-purpose, custom]
|
|
41
|
+
|
|
42
|
+
web:
|
|
43
|
+
- name: WebSearch
|
|
44
|
+
description: "Search the web for current information"
|
|
45
|
+
- name: WebFetch
|
|
46
|
+
description: "Fetch content from a specific URL"
|
|
47
|
+
|
|
48
|
+
context:
|
|
49
|
+
- name: TodoRead
|
|
50
|
+
description: "Read current todo/task list"
|
|
51
|
+
- name: TodoWrite
|
|
52
|
+
description: "Update todo/task list items"
|
|
53
|
+
- name: TaskOutput
|
|
54
|
+
description: "Read output from background tasks"
|
|
55
|
+
|
|
56
|
+
mcp_tools:
|
|
57
|
+
description: "Tools from connected MCP servers (mcp__server__tool)"
|
|
58
|
+
pattern: "mcp__{server_name}__{tool_name}"
|
|
59
|
+
|
|
60
|
+
# ---------------------------------------------------------------------------
|
|
61
|
+
# PERMISSION MODES
|
|
62
|
+
# ---------------------------------------------------------------------------
|
|
63
|
+
permission_modes:
|
|
64
|
+
- name: askAlways
|
|
65
|
+
description: "Prompt before every tool use"
|
|
66
|
+
badge: "[Ask]"
|
|
67
|
+
use_case: "Maximum control, learning, auditing"
|
|
68
|
+
|
|
69
|
+
- name: acceptEdits
|
|
70
|
+
description: "Auto-approve reads/searches, ask for writes/executions"
|
|
71
|
+
badge: "[Edits]"
|
|
72
|
+
use_case: "Balanced safety for daily development"
|
|
73
|
+
|
|
74
|
+
- name: autoApprove
|
|
75
|
+
description: "Auto-approve all tool uses"
|
|
76
|
+
badge: "[Auto]"
|
|
77
|
+
use_case: "YOLO mode, trusted automated workflows"
|
|
78
|
+
cli_flag: "--dangerously-skip-permissions"
|
|
79
|
+
|
|
80
|
+
- name: plan
|
|
81
|
+
description: "Read-only exploration, no modifications allowed"
|
|
82
|
+
badge: "[Plan]"
|
|
83
|
+
use_case: "Architecture review, codebase exploration"
|
|
84
|
+
|
|
85
|
+
# ---------------------------------------------------------------------------
|
|
86
|
+
# HOOK EVENTS (17)
|
|
87
|
+
# ---------------------------------------------------------------------------
|
|
88
|
+
hook_events:
|
|
89
|
+
tool_lifecycle:
|
|
90
|
+
- event: PreToolUse
|
|
91
|
+
description: "Before any tool execution"
|
|
92
|
+
use_cases: [damage-control, security-gate, logging]
|
|
93
|
+
matcher_fields: [tool_name, tool_input]
|
|
94
|
+
|
|
95
|
+
- event: PostToolUse
|
|
96
|
+
description: "After tool execution completes"
|
|
97
|
+
use_cases: [auto-lint, metrics, notification]
|
|
98
|
+
matcher_fields: [tool_name, tool_input, tool_output]
|
|
99
|
+
|
|
100
|
+
session_lifecycle:
|
|
101
|
+
- event: Stop
|
|
102
|
+
description: "When the agent turn ends"
|
|
103
|
+
use_cases: [cost-tracking, summary-generation, cleanup]
|
|
104
|
+
|
|
105
|
+
- event: SubagentStart
|
|
106
|
+
description: "When a subagent is spawned"
|
|
107
|
+
use_cases: [logging, resource-tracking]
|
|
108
|
+
|
|
109
|
+
- event: SubagentStop
|
|
110
|
+
description: "When a subagent completes"
|
|
111
|
+
use_cases: [result-aggregation, cleanup]
|
|
112
|
+
|
|
113
|
+
context_management:
|
|
114
|
+
- event: PreCompact
|
|
115
|
+
description: "Before context window compaction"
|
|
116
|
+
use_cases: [state-preservation, important-context-save]
|
|
117
|
+
|
|
118
|
+
- event: UserPromptSubmit
|
|
119
|
+
description: "When user submits a prompt"
|
|
120
|
+
use_cases: [input-validation, routing, logging]
|
|
121
|
+
|
|
122
|
+
- event: Notification
|
|
123
|
+
description: "When a notification is triggered"
|
|
124
|
+
use_cases: [slack-integration, email-alerts, desktop-notify]
|
|
125
|
+
|
|
126
|
+
advanced_events:
|
|
127
|
+
- event: PreToolUse (Bash)
|
|
128
|
+
description: "Matcher for Bash tool specifically"
|
|
129
|
+
example_matcher: "tool_name == 'Bash'"
|
|
130
|
+
|
|
131
|
+
- event: PreToolUse (Write)
|
|
132
|
+
description: "Matcher for Write tool specifically"
|
|
133
|
+
example_matcher: "tool_name == 'Write'"
|
|
134
|
+
|
|
135
|
+
- event: PostToolUse (Edit)
|
|
136
|
+
description: "After Edit tool completes"
|
|
137
|
+
example_matcher: "tool_name == 'Edit'"
|
|
138
|
+
|
|
139
|
+
hook_config_format:
|
|
140
|
+
location: "~/.claude/settings.json or .claude/settings.json"
|
|
141
|
+
structure: |
|
|
142
|
+
{
|
|
143
|
+
"hooks": {
|
|
144
|
+
"PreToolUse": [{ "matcher": "...", "hooks": [{ "type": "command", "command": "..." }] }],
|
|
145
|
+
"PostToolUse": [{ "matcher": "", "hooks": [{ "type": "command", "command": "..." }] }],
|
|
146
|
+
"Stop": [{ "matcher": "", "hooks": [{ "type": "command", "command": "..." }] }]
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
# ---------------------------------------------------------------------------
|
|
151
|
+
# SUBAGENT TYPES
|
|
152
|
+
# ---------------------------------------------------------------------------
|
|
153
|
+
subagent_types:
|
|
154
|
+
builtin:
|
|
155
|
+
- name: Explore
|
|
156
|
+
description: "Read-only exploration subagent"
|
|
157
|
+
permissions: "Can read files, search, but cannot write"
|
|
158
|
+
use_case: "Safe codebase exploration and analysis"
|
|
159
|
+
|
|
160
|
+
- name: Plan
|
|
161
|
+
description: "Planning subagent that creates execution plans"
|
|
162
|
+
permissions: "Read-only, outputs structured plan"
|
|
163
|
+
use_case: "Architecture decisions, implementation planning"
|
|
164
|
+
|
|
165
|
+
custom:
|
|
166
|
+
- name: general-purpose
|
|
167
|
+
description: "Full-capability subagent"
|
|
168
|
+
permissions: "Inherits parent permissions"
|
|
169
|
+
use_case: "Delegated implementation tasks"
|
|
170
|
+
|
|
171
|
+
- name: custom-agents
|
|
172
|
+
location: ".claude/agents/*.md"
|
|
173
|
+
description: "User-defined agent personas with custom instructions"
|
|
174
|
+
activation: "claude --agent agents/my-agent.md"
|
|
175
|
+
|
|
176
|
+
# ---------------------------------------------------------------------------
|
|
177
|
+
# SETTINGS HIERARCHY (highest to lowest priority)
|
|
178
|
+
# ---------------------------------------------------------------------------
|
|
179
|
+
settings_hierarchy:
|
|
180
|
+
- level: 1
|
|
181
|
+
name: "Managed Policy"
|
|
182
|
+
file: "~/.claude/policies/*.md"
|
|
183
|
+
description: "Enterprise/org-level policies, cannot be overridden"
|
|
184
|
+
scope: global
|
|
185
|
+
|
|
186
|
+
- level: 2
|
|
187
|
+
name: "CLI Flags"
|
|
188
|
+
description: "Runtime flags (--dangerously-skip-permissions, --model)"
|
|
189
|
+
scope: session
|
|
190
|
+
|
|
191
|
+
- level: 3
|
|
192
|
+
name: "Project Local"
|
|
193
|
+
file: ".claude/settings.local.json"
|
|
194
|
+
description: "Per-project settings, gitignored"
|
|
195
|
+
scope: project
|
|
196
|
+
|
|
197
|
+
- level: 4
|
|
198
|
+
name: "Project Shared"
|
|
199
|
+
file: ".claude/settings.json"
|
|
200
|
+
description: "Shared project settings, committed to git"
|
|
201
|
+
scope: project
|
|
202
|
+
|
|
203
|
+
- level: 5
|
|
204
|
+
name: "User Global"
|
|
205
|
+
file: "~/.claude/settings.json"
|
|
206
|
+
description: "User-level defaults across all projects"
|
|
207
|
+
scope: global
|
|
208
|
+
|
|
209
|
+
# ---------------------------------------------------------------------------
|
|
210
|
+
# MCP TRANSPORTS
|
|
211
|
+
# ---------------------------------------------------------------------------
|
|
212
|
+
mcp_transports:
|
|
213
|
+
- name: stdio
|
|
214
|
+
description: "Standard I/O communication (most common)"
|
|
215
|
+
config_key: "command"
|
|
216
|
+
example: '{"command": "npx", "args": ["-y", "@modelcontextprotocol/server-filesystem"]}'
|
|
217
|
+
use_case: "Local MCP servers, npm packages"
|
|
218
|
+
|
|
219
|
+
- name: http_streamable
|
|
220
|
+
description: "HTTP Streamable transport (newer, recommended for remote)"
|
|
221
|
+
config_key: "url"
|
|
222
|
+
example: '{"url": "https://mcp.example.com/sse"}'
|
|
223
|
+
use_case: "Remote MCP servers, cloud services"
|
|
224
|
+
|
|
225
|
+
- name: sse
|
|
226
|
+
description: "Server-Sent Events (legacy, being replaced by HTTP Streamable)"
|
|
227
|
+
config_key: "url"
|
|
228
|
+
example: '{"url": "http://localhost:3001/sse"}'
|
|
229
|
+
use_case: "Legacy remote MCP servers"
|
|
230
|
+
|
|
231
|
+
# ---------------------------------------------------------------------------
|
|
232
|
+
# MEMORY SYSTEM
|
|
233
|
+
# ---------------------------------------------------------------------------
|
|
234
|
+
memory_system:
|
|
235
|
+
project_instructions:
|
|
236
|
+
- file: "CLAUDE.md"
|
|
237
|
+
location: "project root"
|
|
238
|
+
description: "Primary project instructions, always loaded"
|
|
239
|
+
priority: highest
|
|
240
|
+
|
|
241
|
+
- file: ".claude/CLAUDE.md"
|
|
242
|
+
location: ".claude directory"
|
|
243
|
+
description: "Additional project instructions"
|
|
244
|
+
priority: high
|
|
245
|
+
|
|
246
|
+
- file: "~/.claude/CLAUDE.md"
|
|
247
|
+
location: "user home"
|
|
248
|
+
description: "Global user instructions across all projects"
|
|
249
|
+
priority: medium
|
|
250
|
+
|
|
251
|
+
rules:
|
|
252
|
+
location: ".claude/rules/*.md"
|
|
253
|
+
description: "Contextual rules loaded based on file path patterns"
|
|
254
|
+
frontmatter_key: "paths"
|
|
255
|
+
example: "paths: ['src/**/*.ts'] loads only when editing TypeScript files"
|
|
256
|
+
|
|
257
|
+
auto_memory:
|
|
258
|
+
description: "Claude Code can auto-generate memory from conversations"
|
|
259
|
+
storage: ".claude/memory/"
|
|
260
|
+
behavior: "Persists learnings across sessions"
|
|
261
|
+
|
|
262
|
+
subagent_memory:
|
|
263
|
+
description: "Subagents inherit parent context but have isolated memory"
|
|
264
|
+
pattern: "Parent CLAUDE.md + agent-specific .md file"
|
|
265
|
+
|
|
266
|
+
# ---------------------------------------------------------------------------
|
|
267
|
+
# KEYBOARD SHORTCUTS
|
|
268
|
+
# ---------------------------------------------------------------------------
|
|
269
|
+
keyboard_shortcuts:
|
|
270
|
+
- key: "Ctrl+C"
|
|
271
|
+
action: "Cancel current operation / clear input"
|
|
272
|
+
- key: "Ctrl+R"
|
|
273
|
+
action: "Resume last conversation"
|
|
274
|
+
- key: "Escape"
|
|
275
|
+
action: "Clear current input line"
|
|
276
|
+
- key: "Up/Down"
|
|
277
|
+
action: "Navigate command history"
|
|
278
|
+
- key: "Tab"
|
|
279
|
+
action: "Accept autocomplete suggestion"
|
|
280
|
+
- key: "Ctrl+L"
|
|
281
|
+
action: "Clear terminal screen"
|
|
282
|
+
- key: "/"
|
|
283
|
+
action: "Open slash command menu"
|
|
284
|
+
- key: "#"
|
|
285
|
+
action: "File reference autocomplete"
|
|
286
|
+
- key: "@"
|
|
287
|
+
action: "Agent/mention autocomplete"
|
|
288
|
+
|
|
289
|
+
# ---------------------------------------------------------------------------
|
|
290
|
+
# CLI FLAGS (common)
|
|
291
|
+
# ---------------------------------------------------------------------------
|
|
292
|
+
cli_flags:
|
|
293
|
+
- flag: "--model"
|
|
294
|
+
description: "Override model (e.g., claude-sonnet-4-20250514)"
|
|
295
|
+
- flag: "--agent"
|
|
296
|
+
description: "Load custom agent from .md file"
|
|
297
|
+
- flag: "--resume"
|
|
298
|
+
description: "Resume a previous conversation"
|
|
299
|
+
- flag: "--print / -p"
|
|
300
|
+
description: "Headless mode, output to stdout (for CI/CD)"
|
|
301
|
+
- flag: "--output-format"
|
|
302
|
+
values: [text, json, stream-json]
|
|
303
|
+
description: "Output format for headless mode"
|
|
304
|
+
- flag: "--dangerously-skip-permissions"
|
|
305
|
+
description: "Auto-approve all tool uses (YOLO)"
|
|
306
|
+
- flag: "--allowedTools"
|
|
307
|
+
description: "Restrict which tools the agent can use"
|
|
308
|
+
- flag: "--max-turns"
|
|
309
|
+
description: "Limit agent turns in headless mode"
|
|
310
|
+
- flag: "--add-dir"
|
|
311
|
+
description: "Add additional directory to context"
|
|
312
|
+
- flag: "--permission-mode"
|
|
313
|
+
values: [default, plan, autoApprove]
|
|
314
|
+
description: "Set permission mode for session"
|