sinapse-ai 1.11.3 → 1.12.1
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/.claude/hooks/enforce-architecture-first.cjs +2 -2
- package/.claude/hooks/enforce-delegation.cjs +2 -2
- package/.claude/hooks/enforce-permission-mode.cjs +12 -12
- package/.claude/hooks/enforce-story-gate.cjs +5 -5
- package/.claude/hooks/precompact-session-digest.cjs +2 -2
- package/.claude/hooks/secret-scanning.cjs +6 -6
- package/.claude/hooks/telemetry-post-tool.cjs +0 -1
- package/.claude/hooks/write-path-validation.cjs +2 -2
- package/.sinapse-ai/core/code-intel/helpers/dev-helper.js +1 -1
- package/.sinapse-ai/core/code-intel/helpers/devops-helper.js +0 -1
- package/.sinapse-ai/core/code-intel/helpers/planning-helper.js +1 -1
- package/.sinapse-ai/core/code-intel/helpers/qa-helper.js +2 -2
- package/.sinapse-ai/core/config/template-overrides.js +1 -1
- package/.sinapse-ai/core/doctor/checks/git-hooks.js +6 -3
- package/.sinapse-ai/core/doctor/checks/npm-packages.js +1 -1
- package/.sinapse-ai/core/doctor/checks/rules-files.js +0 -1
- package/.sinapse-ai/core/doctor/index.js +0 -1
- package/.sinapse-ai/core/graph-dashboard/cli.js +1 -1
- package/.sinapse-ai/core/graph-dashboard/data-sources/code-intel-source.js +1 -1
- package/.sinapse-ai/core/health-check/checks/project/constitution-consistency.js +0 -1
- package/.sinapse-ai/core/ideation/ideation-engine.js +0 -2
- package/.sinapse-ai/core/ids/layer-classifier.js +1 -1
- package/.sinapse-ai/core/registry/build-registry.js +12 -2
- package/.sinapse-ai/core/registry/service-registry.json +178 -55
- package/.sinapse-ai/core/registry/squad-agent-resolver.js +6 -0
- package/.sinapse-ai/core/synapse/layers/layer-processor.js +1 -1
- package/.sinapse-ai/data/capability-detection.js +15 -15
- package/.sinapse-ai/data/tok3-token-comparison.js +0 -3
- package/.sinapse-ai/data/tool-search-validation.js +1 -1
- package/.sinapse-ai/development/agents/snps-orqx.md +109 -0
- package/.sinapse-ai/development/scripts/agent-config-loader.js +8 -2
- package/.sinapse-ai/development/templates/sinapse-doc-template.md +6 -6
- package/.sinapse-ai/git-hooks/lib/framework-guard.js +1 -0
- package/.sinapse-ai/git-hooks/lib/staged-protected-files-guard.js +63 -0
- package/.sinapse-ai/git-hooks/pre-commit +3 -1
- package/.sinapse-ai/index.d.ts +19 -0
- package/.sinapse-ai/infrastructure/scripts/validate-agents.js +46 -16
- package/.sinapse-ai/install-manifest.yaml +61 -57
- package/.sinapse-ai/package.json +0 -1
- package/.sinapse-ai/utils/filters/index.js +2 -1
- package/CHANGELOG.md +38 -2
- package/README.md +132 -132
- package/bin/commands/doctor.js +1 -1
- package/bin/commands/help.js +3 -4
- package/bin/commands/install.js +7 -7
- package/bin/commands/status.js +3 -3
- package/bin/modules/chrome-brain-installer.js +3 -3
- package/bin/postinstall.js +1 -1
- package/bin/sinapse-init.js +11 -9
- package/bin/sinapse.js +1 -1
- package/bin/utils/framework-guard.js +1 -0
- package/bin/utils/staged-protected-files-guard.js +63 -0
- package/package.json +19 -2
- package/packages/installer/src/index.js +1 -1
- package/packages/installer/src/installer/brownfield-upgrader.js +1 -1
- package/packages/installer/src/installer/git-hooks-installer.js +10 -3
- package/packages/installer/src/pro/pro-scaffolder.js +3 -3
- package/packages/installer/src/wizard/ide-config-generator.js +1 -1
- package/packages/installer/src/wizard/index.js +4 -41
- package/scripts/audit-tasks.cjs +1 -1
- package/scripts/package-synapse.js +1 -1
- package/scripts/sinapse-patch.js +31 -31
- package/scripts/sync-squad-yaml-components.js +3 -3
- package/scripts/validate-agents-md.js +1 -1
- package/scripts/validate-no-external-refs.js +2 -2
- package/scripts/validate-no-personal-leaks.js +1 -1
- package/scripts/validate-orqx-discipline.js +0 -2
- package/scripts/validate-package-completeness.js +7 -7
- package/scripts/validate-squad-yaml.js +6 -6
- package/sinapse/agents/sinapse-orqx.md +1 -1
- package/sinapse/agents/snps-orqx.md +110 -1
- package/squads/claude-code-mastery/agents/swarm-orqx.md +12 -11
- package/squads/claude-code-mastery/scripts/validate-setup.js +2 -2
- package/squads/squad-brand/agents/brand-orqx.md +16 -1
- package/squads/squad-cloning/agents/cloning-orqx.md +2 -0
- package/squads/squad-commercial/agents/commercial-orqx.md +7 -4
- package/squads/squad-council/squad.yaml +67 -11
- package/squads/squad-design/agents/design-orqx.md +20 -0
- package/squads/squad-finance/agents/finance-orqx.md +6 -0
- package/squads/squad-paidmedia/agents/paidmedia-orqx.md +3 -1
|
@@ -95,7 +95,7 @@ const BLOCKED_PATTERNS = [
|
|
|
95
95
|
suggestion: 'Use {REPO_ROOT} placeholder or relative paths',
|
|
96
96
|
},
|
|
97
97
|
{
|
|
98
|
-
pattern: /OneDrive[
|
|
98
|
+
pattern: /OneDrive[\\/].*Caio[ ]?Imori/i,
|
|
99
99
|
description: 'OneDrive path containing maintainer name',
|
|
100
100
|
suggestion: 'Remove or use {VAULT_ROOT} placeholder',
|
|
101
101
|
},
|
|
@@ -112,13 +112,11 @@ function scanFile(filePath) {
|
|
|
112
112
|
function run() {
|
|
113
113
|
const orqxFiles = getTrackedAgents();
|
|
114
114
|
let totalCommands = 0;
|
|
115
|
-
let totalForbidden = 0;
|
|
116
115
|
const allViolations = [];
|
|
117
116
|
|
|
118
117
|
for (const file of orqxFiles) {
|
|
119
118
|
const { commands, violations } = scanFile(file);
|
|
120
119
|
totalCommands += commands.length;
|
|
121
|
-
totalForbidden += violations.length;
|
|
122
120
|
allViolations.push(...violations);
|
|
123
121
|
}
|
|
124
122
|
|
|
@@ -185,20 +185,20 @@ function validateTarballContents(tarballFiles) {
|
|
|
185
185
|
check(
|
|
186
186
|
`Required: ${required}`,
|
|
187
187
|
found,
|
|
188
|
-
found ? undefined : `Not found in tarball (${tarballFiles.length} files scanned)
|
|
188
|
+
found ? undefined : `Not found in tarball (${tarballFiles.length} files scanned)`,
|
|
189
189
|
);
|
|
190
190
|
}
|
|
191
191
|
|
|
192
192
|
// Check excluded paths do NOT exist
|
|
193
193
|
for (const excluded of EXCLUDED_PATHS) {
|
|
194
194
|
const leaked = tarballFiles.filter(
|
|
195
|
-
(f) => f.startsWith(excluded) || f.startsWith(`package/${excluded}`)
|
|
195
|
+
(f) => f.startsWith(excluded) || f.startsWith(`package/${excluded}`),
|
|
196
196
|
);
|
|
197
197
|
|
|
198
198
|
check(
|
|
199
199
|
`Excluded: ${excluded} not in tarball`,
|
|
200
200
|
leaked.length === 0,
|
|
201
|
-
leaked.length > 0 ? `LEAK DETECTED: ${leaked.slice(0, 3).join(', ')}` : undefined
|
|
201
|
+
leaked.length > 0 ? `LEAK DETECTED: ${leaked.slice(0, 3).join(', ')}` : undefined,
|
|
202
202
|
);
|
|
203
203
|
}
|
|
204
204
|
}
|
|
@@ -214,7 +214,7 @@ function validatePackageJson(pkg) {
|
|
|
214
214
|
check(
|
|
215
215
|
`files[] includes "${entry}"`,
|
|
216
216
|
found,
|
|
217
|
-
found ? undefined : `Add "${entry}" to package.json "files" array
|
|
217
|
+
found ? undefined : `Add "${entry}" to package.json "files" array`,
|
|
218
218
|
);
|
|
219
219
|
}
|
|
220
220
|
|
|
@@ -232,7 +232,7 @@ function validatePackageJson(pkg) {
|
|
|
232
232
|
check(
|
|
233
233
|
`bin.${name} -> ${binPath} exists`,
|
|
234
234
|
exists,
|
|
235
|
-
exists ? undefined : `File not found: ${fullPath}
|
|
235
|
+
exists ? undefined : `File not found: ${fullPath}`,
|
|
236
236
|
);
|
|
237
237
|
}
|
|
238
238
|
|
|
@@ -242,7 +242,7 @@ function validatePackageJson(pkg) {
|
|
|
242
242
|
check(
|
|
243
243
|
`dependency: ${dep}`,
|
|
244
244
|
dep in deps,
|
|
245
|
-
dep in deps ? undefined : `Missing runtime dependency "${dep}"
|
|
245
|
+
dep in deps ? undefined : `Missing runtime dependency "${dep}"`,
|
|
246
246
|
);
|
|
247
247
|
}
|
|
248
248
|
}
|
|
@@ -267,7 +267,7 @@ function validateBinScripts() {
|
|
|
267
267
|
check(
|
|
268
268
|
`${name} (${binPath}) has correct shebang`,
|
|
269
269
|
hasShebang,
|
|
270
|
-
hasShebang ? undefined : `Expected "#!/usr/bin/env node", got "${firstLine.substring(0, 40)}"
|
|
270
|
+
hasShebang ? undefined : `Expected "#!/usr/bin/env node", got "${firstLine.substring(0, 40)}"`,
|
|
271
271
|
);
|
|
272
272
|
}
|
|
273
273
|
}
|
|
@@ -87,8 +87,8 @@ function validateOne(squadName, schema, validator) {
|
|
|
87
87
|
squadName,
|
|
88
88
|
status: 'fail',
|
|
89
89
|
errors: [
|
|
90
|
-
'Legacy nested format detected (top-level `squad:` wrapper). Migrate to flat schema: fields at root level.'
|
|
91
|
-
]
|
|
90
|
+
'Legacy nested format detected (top-level `squad:` wrapper). Migrate to flat schema: fields at root level.',
|
|
91
|
+
],
|
|
92
92
|
};
|
|
93
93
|
}
|
|
94
94
|
const ok = validator(doc);
|
|
@@ -96,7 +96,7 @@ function validateOne(squadName, schema, validator) {
|
|
|
96
96
|
return {
|
|
97
97
|
squadName,
|
|
98
98
|
status: 'fail',
|
|
99
|
-
errors: (validator.errors || []).map((e) => `${e.instancePath || '/'} ${e.message}`)
|
|
99
|
+
errors: (validator.errors || []).map((e) => `${e.instancePath || '/'} ${e.message}`),
|
|
100
100
|
};
|
|
101
101
|
}
|
|
102
102
|
|
|
@@ -139,9 +139,9 @@ function main() {
|
|
|
139
139
|
for (const r of results) {
|
|
140
140
|
const tag =
|
|
141
141
|
r.status === 'ok' ? '\x1b[32mok\x1b[0m' :
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
142
|
+
r.status === 'warn' ? '\x1b[33mwarn\x1b[0m' :
|
|
143
|
+
r.status === 'missing' ? '\x1b[33mmissing\x1b[0m' :
|
|
144
|
+
'\x1b[31mfail\x1b[0m';
|
|
145
145
|
console.log(` ${tag.padEnd(20)} ${r.squadName}`);
|
|
146
146
|
for (const e of r.errors || []) console.log(` - ${e}`);
|
|
147
147
|
if (!STRICT) {
|
|
@@ -27,7 +27,7 @@ Then display:
|
|
|
27
27
|
AI Agent Squads for Claude Code
|
|
28
28
|
17 squads · 172 agents · 1,200 tasks
|
|
29
29
|
|
|
30
|
-
👑 Imperator — Sinapse Master activated
|
|
30
|
+
👑 [Imperator] — Sinapse Master activated
|
|
31
31
|
|
|
32
32
|
Describe your goal and I'll diagnose the domain
|
|
33
33
|
and route to the right agent.
|
|
@@ -27,7 +27,7 @@ Then display:
|
|
|
27
27
|
AI Agent Squads for Claude Code
|
|
28
28
|
17 squads · 172 agents · 1,200 tasks
|
|
29
29
|
|
|
30
|
-
👑 Imperator — Sinapse Master activated
|
|
30
|
+
👑 [Imperator] — Sinapse Master activated
|
|
31
31
|
|
|
32
32
|
Describe your goal and I'll diagnose the domain
|
|
33
33
|
and route to the right agent.
|
|
@@ -44,9 +44,102 @@ After the greeting, check if the user already provided briefing/context with the
|
|
|
44
44
|
|
|
45
45
|
If the user asks about SINAPSE, how it works, or how to use it, execute the `*onboard` task from `tasks/onboard-user.md` to provide a guided walkthrough of the ecosystem, available squads, commands, and workflows.
|
|
46
46
|
|
|
47
|
+
## NON-NEGOTIABLE: INITIAL STATE AUDIT (RUNS FIRST OF ALL)
|
|
48
|
+
|
|
49
|
+
> **This step runs BEFORE bootstrap classification, BEFORE routing, BEFORE anything.**
|
|
50
|
+
> Without it, Imperator treats every directory as greenfield and ignores existing partial work (brand assets, half-written PRD, components, abandoned epics, brownfield code without `package.json`).
|
|
51
|
+
|
|
52
|
+
On every briefing that mentions creating, building, or working on a project, run the **Initial State Audit** (full spec in `~/.claude/rules/project-intelligence.md` § Initial State Audit):
|
|
53
|
+
|
|
54
|
+
1. Silently check the 8 dimensions (Docs, Brand, Design system, Components, Code, Tests, Infra, Git history)
|
|
55
|
+
2. Compute maturity level: `EMPTY` / `BOOTSTRAPPED` / `PARTIAL` / `MATURE` / `SINAPSE_MANAGED`
|
|
56
|
+
3. **Present a structured report to the user (PT-BR) BEFORE proposing any plan:**
|
|
57
|
+
```
|
|
58
|
+
Estado detectado: {maturity_level}
|
|
59
|
+
Já existe: {list of artifacts found}
|
|
60
|
+
Faltando: {list of gaps relative to user's goal}
|
|
61
|
+
Recomendação: {workflow + first step}
|
|
62
|
+
```
|
|
63
|
+
4. Only after this report (and any user correction) proceed to bootstrap classification
|
|
64
|
+
|
|
65
|
+
### Why this exists
|
|
66
|
+
|
|
67
|
+
Caio's runtime test (2026-05-07) showed the framework treating fresh installs as "create from scratch" without ever checking what already lived in the directory. A user often has brand assets, an old PRD, half-finished components, or an abandoned epic — and the framework was overwriting / duplicating that work instead of continuing from it.
|
|
68
|
+
|
|
69
|
+
### Anti-patterns (FORBIDDEN)
|
|
70
|
+
|
|
71
|
+
- Skipping the audit "because it looks empty"
|
|
72
|
+
- Routing to greenfield workflows without first reporting what already exists
|
|
73
|
+
- Overwriting partial work (brand assets, components, docs) without listing it to the user
|
|
74
|
+
- Ignoring `docs/epics/` or `docs/stories/` from a previous session
|
|
75
|
+
- Treating a directory with brand assets but no code as `EMPTY`
|
|
76
|
+
- Treating a directory with `package.json` as `MATURE` when it's actually just bootstrapped infra
|
|
77
|
+
|
|
78
|
+
## NON-NEGOTIABLE: PROJECT BOOTSTRAP CLASSIFICATION (RUNS AFTER AUDIT, BEFORE ROUTING)
|
|
79
|
+
|
|
80
|
+
> **This step runs AFTER the Initial State Audit, BEFORE the routing decision. No exceptions.**
|
|
81
|
+
> Without it, Imperator routes large-project requests directly to a domain orchestrator and skips the doc-first pipeline (Article III violation).
|
|
82
|
+
|
|
83
|
+
After the audit reports the maturity level, classify the request **before** consulting the routing table:
|
|
84
|
+
|
|
85
|
+
### Step 1 — Detect intent
|
|
86
|
+
|
|
87
|
+
| Intent | Trigger keywords (PT/EN) |
|
|
88
|
+
|---|---|
|
|
89
|
+
| `new_project_bootstrap` | criar / novo / build / montar / fazer um(a) [site, plataforma, app, API, ...] |
|
|
90
|
+
| `feature_in_existing_project` | implementa / adiciona / add (with `docs/epics/` already present) |
|
|
91
|
+
| `fix` | corrige / conserta / ajusta / fix / bug |
|
|
92
|
+
| `tweak` | troca / muda / altera (small surface, single file) |
|
|
93
|
+
| `domain_consult` | qualquer pergunta de branding, copy, growth, etc. (no code change implied) |
|
|
94
|
+
|
|
95
|
+
### Step 2 — If `new_project_bootstrap`, sub-classify project_type
|
|
96
|
+
|
|
97
|
+
| project_type | Triggers | Required workflow |
|
|
98
|
+
|---|---|---|
|
|
99
|
+
| `site` | site, website, institutional, página | `greenfield-ui.yaml` |
|
|
100
|
+
| `lp` | landing page, LP, captura, sales page | `greenfield-ui.yaml` |
|
|
101
|
+
| `app` | app mobile, app nativo, ios, android, react native | `greenfield-ui.yaml` |
|
|
102
|
+
| `platform` | plataforma, dashboard, admin, portal interno | `greenfield-fullstack.yaml` |
|
|
103
|
+
| `saas` | SaaS, software as a service, app web com login | `greenfield-fullstack.yaml` |
|
|
104
|
+
| `api` | API, backend, microservice, serviço REST/GraphQL | `greenfield-service.yaml` |
|
|
105
|
+
| `service` | worker, integration, automation, ETL, cron job | `greenfield-service.yaml` |
|
|
106
|
+
|
|
107
|
+
### Step 3 — Apply the gate (NON-NEGOTIABLE)
|
|
108
|
+
|
|
109
|
+
```
|
|
110
|
+
IF intent == new_project_bootstrap
|
|
111
|
+
AND project_type ∈ [site, lp, app, platform, saas, api, service]
|
|
112
|
+
AND no epic exists in docs/epics/
|
|
113
|
+
THEN
|
|
114
|
+
BLOCK any direct routing to domain orchestrators
|
|
115
|
+
INVOKE the required greenfield workflow (see table)
|
|
116
|
+
PRODUCE upstream artifacts FIRST: project-brief.md → prd.md → architecture.md (and front-end-spec.md for UI)
|
|
117
|
+
ONLY AFTER artifacts validated → shard → stories → route to domain orqx for execution
|
|
118
|
+
```
|
|
119
|
+
|
|
120
|
+
### Step 4 — Complexity gate
|
|
121
|
+
|
|
122
|
+
If the briefing scores ≥ 16 on the 5 complexity dimensions (scope, integration, infrastructure, knowledge, risk), run the **Spec Pipeline** (`spec-pipeline.yaml`) BEFORE the greenfield workflow:
|
|
123
|
+
|
|
124
|
+
```
|
|
125
|
+
@project-lead gather → @architect assess → @analyst research →
|
|
126
|
+
@project-lead spec → @quality-gate critique → @architect plan
|
|
127
|
+
```
|
|
128
|
+
|
|
129
|
+
Only after spec is APPROVED, the greenfield workflow runs.
|
|
130
|
+
|
|
131
|
+
### Anti-patterns (FORBIDDEN — these violate Article III)
|
|
132
|
+
|
|
133
|
+
- Routing "criar um site" directly to `@design-orqx` / `@brand-orqx` without first running greenfield-ui.yaml
|
|
134
|
+
- Routing "monta uma plataforma SaaS" to a domain orqx without Spec Pipeline + greenfield-fullstack.yaml
|
|
135
|
+
- Skipping Phase 1 Discovery (5-agent: analyst → project-lead → ux-design-expert → architect → product-lead) on a new UI project
|
|
136
|
+
- Treating "rapidinho" / "simples" as a license to skip doc-first when the project type requires it
|
|
137
|
+
- Generating UI without DS grounding (see `~/.claude/rules/design-system-grounding.md`)
|
|
138
|
+
|
|
47
139
|
## NON-NEGOTIABLE: ORCHESTRATION PLAN ON EVERY BRIEFING
|
|
48
140
|
|
|
49
141
|
> **This is an absolute, non-negotiable rule. No exceptions. No waiting to be asked.**
|
|
142
|
+
> **It runs AFTER the bootstrap classification above.** If the gate routed to a greenfield workflow, the orchestration plan describes that workflow (its phases, agents, handoffs) — not a domain-orqx routing.
|
|
50
143
|
|
|
51
144
|
When the user provides ANY briefing, request, or initiative (regardless of complexity), Imperator MUST **immediately and autonomously**:
|
|
52
145
|
|
|
@@ -610,6 +703,22 @@ framework_compatibility:
|
|
|
610
703
|
|
|
611
704
|
## How Imperator Operates
|
|
612
705
|
|
|
706
|
+
### -1. Initial State Audit (ABSOLUTE FIRST)
|
|
707
|
+
Before anything else, Imperator runs the Initial State Audit described above:
|
|
708
|
+
- Silently checks 8 dimensions (Docs, Brand, DS, Components, Code, Tests, Infra, Git)
|
|
709
|
+
- Computes maturity level: `EMPTY` / `BOOTSTRAPPED` / `PARTIAL` / `MATURE` / `SINAPSE_MANAGED`
|
|
710
|
+
- Presents structured PT-BR report to user listing what exists, what's missing, what's recommended
|
|
711
|
+
- Only proceeds when the user has seen what's already there
|
|
712
|
+
|
|
713
|
+
### 0. Bootstrap Classification (after audit)
|
|
714
|
+
Imperator runs the Project Bootstrap Classification described above:
|
|
715
|
+
- Detects intent: `new_project_bootstrap` / `feature` / `fix` / `tweak` / `domain_consult`
|
|
716
|
+
- Sub-classifies project_type if bootstrap: `site` / `lp` / `app` / `platform` / `saas` / `api` / `service`
|
|
717
|
+
- Applies the gate: large-project bootstrap with no epic → invokes the required greenfield workflow
|
|
718
|
+
- Triggers the Spec Pipeline if complexity score ≥ 16
|
|
719
|
+
- Routes to Continuation Behavior when audit detected `PARTIAL` maturity (never overwrite existing work)
|
|
720
|
+
- Only proceeds to step 1 (routing) when this gate is satisfied
|
|
721
|
+
|
|
613
722
|
### 1. Diagnose First
|
|
614
723
|
Every request gets classified before routing. Imperator identifies:
|
|
615
724
|
- **Domain(s):** Which squad(s) own this work?
|
|
@@ -39,9 +39,10 @@ activation-instructions:
|
|
|
39
39
|
6. Show: "{persona_profile.communication.signature_closing}"
|
|
40
40
|
# FALLBACK: If native greeting fails, run: node .sinapse-ai/development/scripts/unified-activation-pipeline.js swarm-orqx
|
|
41
41
|
- STEP 4: Display the greeting assembled in STEP 3
|
|
42
|
-
- STEP 5:
|
|
43
|
-
|
|
44
|
-
|
|
42
|
+
- STEP 5: |
|
|
43
|
+
Briefing-on-activation check (this agent is an ORCHESTRATOR):
|
|
44
|
+
- If user provided briefing/context with the activation → proceed IMMEDIATELY to orchestration flow: absorb → diagnose → plan with phases + agents + handoffs → execute (YOLO). NEVER ask "do you want me to plan?".
|
|
45
|
+
- If bare activation only → await briefing. On receipt, apply same flow automatically.
|
|
45
46
|
- IMPORTANT: Do NOT improvise or add explanatory text beyond what is specified in greeting_levels and Quick Commands section
|
|
46
47
|
- DO NOT: Load any other agent files during activation
|
|
47
48
|
- ONLY load dependency files when user selects them for execution via command or request of a task
|
|
@@ -548,14 +549,14 @@ voice_dna:
|
|
|
548
549
|
(not structure), fan-out/fan-in (not split/merge). Prefers diagrams and
|
|
549
550
|
decision trees over prose. Every recommendation includes the cost implication.
|
|
550
551
|
lexicon:
|
|
551
|
-
-
|
|
552
|
-
-
|
|
553
|
-
-
|
|
554
|
-
-
|
|
555
|
-
-
|
|
556
|
-
-
|
|
557
|
-
-
|
|
558
|
-
-
|
|
552
|
+
- 'topology (preferred over "structure" or "architecture" for agent arrangements)'
|
|
553
|
+
- 'spawn (preferred over "create" for agent instantiation)'
|
|
554
|
+
- 'converge (preferred over "combine" for result synthesis)'
|
|
555
|
+
- 'fan-out / fan-in (preferred over "split / merge" for parallel patterns)'
|
|
556
|
+
- 'isolation boundary (preferred over "separation" for context/file boundaries)'
|
|
557
|
+
- 'heartbeat (for health monitoring of long-running teammates)'
|
|
558
|
+
- 'claim (for task acquisition in swarm patterns)'
|
|
559
|
+
- 'unblock (for dependency resolution in task pipelines)'
|
|
559
560
|
|
|
560
561
|
# ──────────────────────────────────────────────────────
|
|
561
562
|
# OUTPUT EXAMPLES
|
|
@@ -118,7 +118,7 @@ const checks = [
|
|
|
118
118
|
(rule) =>
|
|
119
119
|
typeof rule === 'string'
|
|
120
120
|
? rule.includes('.env')
|
|
121
|
-
: rule.pattern && rule.pattern.includes('.env')
|
|
121
|
+
: rule.pattern && rule.pattern.includes('.env'),
|
|
122
122
|
);
|
|
123
123
|
} catch {
|
|
124
124
|
return false;
|
|
@@ -130,7 +130,7 @@ const checks = [
|
|
|
130
130
|
let totalScore = 0;
|
|
131
131
|
let maxScore = 0;
|
|
132
132
|
|
|
133
|
-
console.log(
|
|
133
|
+
console.log('\nClaude Code Setup Validation');
|
|
134
134
|
console.log(`Project: ${projectPath}`);
|
|
135
135
|
console.log(`${'='.repeat(60)}\n`);
|
|
136
136
|
|
|
@@ -18,7 +18,7 @@ persona_profile:
|
|
|
18
18
|
signature_closing: "— Meridian, orquestrando marcas 🎯"
|
|
19
19
|
|
|
20
20
|
persona:
|
|
21
|
-
role: "Brand Squad Orchestrator — coordena os
|
|
21
|
+
role: "Brand Squad Orchestrator — coordena os 14 agentes especialistas do squad"
|
|
22
22
|
identity: >
|
|
23
23
|
Maestro que ve o todo. Sabe quando cada agente deve entrar, o que cada um
|
|
24
24
|
precisa receber e o que deve entregar. Nunca executa trabalho criativo —
|
|
@@ -134,6 +134,21 @@ integration:
|
|
|
134
134
|
- agent: "brand-compiler (Atlas)"
|
|
135
135
|
when: "Todas as fases aprovadas pelo Sentinel"
|
|
136
136
|
context_passed: "todos os outputs aprovados de todas as fases"
|
|
137
|
+
- agent: "brand-positioning-strategist (Position)"
|
|
138
|
+
when: "Precisa definir o espaco unico e defensavel (categoria) que a marca ocupa"
|
|
139
|
+
context_passed: "briefing, concorrencia, publico, atributos"
|
|
140
|
+
- agent: "brand-archetype-strategist (Archetype)"
|
|
141
|
+
when: "Precisa mapear arquetipos junguianos e personalidade de marca"
|
|
142
|
+
context_passed: "posicionamento, publico, atributos emocionais"
|
|
143
|
+
- agent: "brand-naming-specialist (Namer)"
|
|
144
|
+
when: "Precisa criar nome e sistema de identidade verbal"
|
|
145
|
+
context_passed: "arquetipo, posicionamento, categoria, tom"
|
|
146
|
+
- agent: "brand-culture-architect (Ethos)"
|
|
147
|
+
when: "Brand culture, employer branding, internal branding, proposito"
|
|
148
|
+
context_passed: "proposito, valores, arquetipo, publico interno"
|
|
149
|
+
- agent: "brand-growth-strategist (Catalyst)"
|
|
150
|
+
when: "Brand equity, valuacao de marca, growth e performance de branding"
|
|
151
|
+
context_passed: "posicionamento, metricas de marca, objetivos de negocio"
|
|
137
152
|
receives_from:
|
|
138
153
|
- agent: "@sinapse-orqx (Imperator)"
|
|
139
154
|
when: "Projeto de marca solicitado pelo usuario"
|
|
@@ -136,6 +136,8 @@ relationships:
|
|
|
136
136
|
context: "Transcricao e captura de conteudo"
|
|
137
137
|
- agent: cognitive-extractor (Cortex)
|
|
138
138
|
context: "Extracao das 5 camadas cognitivas"
|
|
139
|
+
- agent: sop-extractor
|
|
140
|
+
context: "Extracao de SOPs (standard operating procedures) do conteudo capturado"
|
|
139
141
|
- agent: mind-synthesizer (Synth)
|
|
140
142
|
context: "Sintese e perfil cognitivo unificado"
|
|
141
143
|
- agent: agent-forger (Forge)
|
|
@@ -30,6 +30,9 @@ Revenue Cycle Orchestrator — coordena o sistema comercial completo, desde dema
|
|
|
30
30
|
- Revenue analytics (→ Ledger)
|
|
31
31
|
- Client success (→ Bond)
|
|
32
32
|
- Sales methodology (→ Edge)
|
|
33
|
+
- Lead generation (→ Magnet)
|
|
34
|
+
- Sales closing (→ Close)
|
|
35
|
+
- Business audit (→ Audit)
|
|
33
36
|
|
|
34
37
|
## Tasks (8)
|
|
35
38
|
1. coordinate-revenue-cycle
|
|
@@ -52,7 +55,7 @@ Revenue Cycle Orchestrator — coordena o sistema comercial completo, desde dema
|
|
|
52
55
|
|
|
53
56
|
| Workflow | Description | Agents Involved |
|
|
54
57
|
|----------|-------------|-----------------|
|
|
55
|
-
| `greenfield-commercial-system` | Build commercial system from scratch | All
|
|
58
|
+
| `greenfield-commercial-system` | Build commercial system from scratch | All 9 specialists |
|
|
56
59
|
| `pipeline-optimization` | Optimize existing pipeline metrics | Vault, Cascade, Ledger |
|
|
57
60
|
| `deal-acceleration` | Accelerate specific deals through pipeline | Edge, Mint, Bond |
|
|
58
61
|
| `quarterly-review` | Full commercial performance review | Pipeline + all agents |
|
|
@@ -69,9 +72,9 @@ Revenue Cycle Orchestrator — coordena o sistema comercial completo, desde dema
|
|
|
69
72
|
| "revenue", "forecast", "MRR", "ARR" | @ledger (Revenue Analytics) | High |
|
|
70
73
|
| "onboarding", "churn", "NPS", "retention" | @bond (Client Success) | High |
|
|
71
74
|
| "sales methodology", "SPIN", "discovery" | @edge (Sales Method) | High |
|
|
72
|
-
| "outbound", "prospecting", "cold email" | @
|
|
73
|
-
| "
|
|
74
|
-
| "
|
|
75
|
+
| "outbound", "prospecting", "lead gen", "cold email" | @magnet (Lead Generation) | High |
|
|
76
|
+
| "closing", "negotiation", "objections", "deal review" | @close (Sales Closing) | High |
|
|
77
|
+
| "win/loss", "business audit", "opportunity gaps" | @audit (Business Auditor) | Medium |
|
|
75
78
|
|
|
76
79
|
## Cross-Squad Handoffs
|
|
77
80
|
|
|
@@ -38,77 +38,133 @@ agents:
|
|
|
38
38
|
icon: "🏛️"
|
|
39
39
|
role: Strategic Council Orchestrator
|
|
40
40
|
file: agents/council-orqx.md
|
|
41
|
-
|
|
41
|
+
tasks:
|
|
42
|
+
- conduct-business-audit
|
|
43
|
+
- convene-council-session
|
|
44
|
+
- convene-panel
|
|
45
|
+
- diagnose-and-route
|
|
46
|
+
- evaluate-scaling-decision
|
|
47
|
+
- resolve-culture-crisis
|
|
48
|
+
- run-decision-framework
|
|
49
|
+
- synthesize-perspectives
|
|
42
50
|
|
|
43
51
|
- id: ray-dalio
|
|
44
52
|
name: Ray Dalio
|
|
45
53
|
icon: "📐"
|
|
46
54
|
role: Principles Architect & Systematic Decision-Making
|
|
47
55
|
file: agents/ray-dalio.md
|
|
48
|
-
|
|
56
|
+
tasks:
|
|
57
|
+
- apply-principles-framework
|
|
58
|
+
- believability-weighted-decisions
|
|
59
|
+
- decision-journal-system
|
|
60
|
+
- diagnose-root-cause
|
|
61
|
+
- principles-discovery-workshop
|
|
62
|
+
- radical-transparency-audit
|
|
49
63
|
|
|
50
64
|
- id: charlie-munger
|
|
51
65
|
name: Charlie Munger
|
|
52
66
|
icon: "🧠"
|
|
53
67
|
role: Multidisciplinary Thinker & Mental Models
|
|
54
68
|
file: agents/charlie-munger.md
|
|
55
|
-
|
|
69
|
+
tasks:
|
|
70
|
+
- apply-mental-models
|
|
71
|
+
- circle-of-competence-mapping
|
|
72
|
+
- evaluate-investment-thesis
|
|
73
|
+
- inversion-thinking-session
|
|
74
|
+
- mental-model-application
|
|
75
|
+
- multidisciplinary-analysis
|
|
56
76
|
|
|
57
77
|
- id: naval-ravikant
|
|
58
78
|
name: Naval Ravikant
|
|
59
79
|
icon: "🧘"
|
|
60
80
|
role: Philosopher-Investor & Wealth-Leverage Advisor
|
|
61
81
|
file: agents/naval-ravikant.md
|
|
62
|
-
|
|
82
|
+
tasks:
|
|
83
|
+
- analyze-leverage-strategy
|
|
84
|
+
- judgment-calibration-exercise
|
|
85
|
+
- leverage-stack-design
|
|
86
|
+
- productize-yourself-strategy
|
|
87
|
+
- productize-yourself
|
|
88
|
+
- specific-knowledge-audit
|
|
63
89
|
|
|
64
90
|
- id: peter-thiel
|
|
65
91
|
name: Peter Thiel
|
|
66
92
|
icon: "♟️"
|
|
67
93
|
role: Contrarian Strategist & Monopoly Thinker
|
|
68
94
|
file: agents/peter-thiel.md
|
|
69
|
-
|
|
95
|
+
tasks:
|
|
96
|
+
- assess-contrarian-thesis
|
|
97
|
+
- contrarian-truth-exercise
|
|
98
|
+
- definite-optimism-roadmap
|
|
99
|
+
- evaluate-zero-to-one
|
|
100
|
+
- monopoly-strategy-design
|
|
101
|
+
- zero-to-one-opportunity-scan
|
|
70
102
|
|
|
71
103
|
- id: reid-hoffman
|
|
72
104
|
name: Reid Hoffman
|
|
73
105
|
icon: "🔗"
|
|
74
106
|
role: Network Strategist & Blitzscaling Advisor
|
|
75
107
|
file: agents/reid-hoffman.md
|
|
76
|
-
|
|
108
|
+
tasks:
|
|
109
|
+
- alliance-framework-design
|
|
110
|
+
- assess-blitzscaling-readiness
|
|
111
|
+
- blitzscaling-readiness-assessment
|
|
112
|
+
- develop-abz-plan
|
|
113
|
+
- network-effects-analysis
|
|
114
|
+
- pivot-or-persevere-analysis
|
|
77
115
|
|
|
78
116
|
- id: simon-sinek
|
|
79
117
|
name: Simon Sinek
|
|
80
118
|
icon: "⭕"
|
|
81
119
|
role: Purpose-Driven Leadership & Infinite Mindset
|
|
82
120
|
file: agents/simon-sinek.md
|
|
83
|
-
|
|
121
|
+
tasks:
|
|
122
|
+
- discover-organizational-why
|
|
123
|
+
- find-your-why-workshop
|
|
124
|
+
- infinite-game-strategy
|
|
125
|
+
- trust-building-framework
|
|
84
126
|
|
|
85
127
|
- id: brene-brown
|
|
86
128
|
name: Brene Brown
|
|
87
129
|
icon: "💛"
|
|
88
130
|
role: Vulnerability, Courage & Empathic Leadership
|
|
89
131
|
file: agents/brene-brown.md
|
|
90
|
-
|
|
132
|
+
tasks:
|
|
133
|
+
- build-trust-assessment
|
|
134
|
+
- courage-culture-design
|
|
135
|
+
- rumble-conversation-guide
|
|
136
|
+
- vulnerability-leadership-workshop
|
|
91
137
|
|
|
92
138
|
- id: patrick-lencioni
|
|
93
139
|
name: Patrick Lencioni
|
|
94
140
|
icon: "🏗️"
|
|
95
141
|
role: Organizational Health & Team Dynamics
|
|
96
142
|
file: agents/patrick-lencioni.md
|
|
97
|
-
|
|
143
|
+
tasks:
|
|
144
|
+
- diagnose-team-dysfunction
|
|
145
|
+
- meeting-structure-overhaul
|
|
146
|
+
- organizational-clarity-check
|
|
147
|
+
- team-health-assessment
|
|
98
148
|
|
|
99
149
|
- id: derek-sivers
|
|
100
150
|
name: Derek Sivers
|
|
101
151
|
icon: "🎯"
|
|
102
152
|
role: Minimalist Founder & Simplicity Philosopher
|
|
103
153
|
file: agents/derek-sivers.md
|
|
104
|
-
|
|
154
|
+
tasks:
|
|
155
|
+
- apply-hell-yeah-filter
|
|
156
|
+
- hell-yes-or-no-prioritization
|
|
157
|
+
- simplification-audit
|
|
105
158
|
|
|
106
159
|
- id: yvon-chouinard
|
|
107
160
|
name: Yvon Chouinard
|
|
108
161
|
icon: "🏔️"
|
|
109
162
|
role: Purpose-Driven Business & Environmental Activism
|
|
110
163
|
file: agents/yvon-chouinard.md
|
|
111
|
-
|
|
164
|
+
tasks:
|
|
165
|
+
- assess-purpose-alignment
|
|
166
|
+
- purpose-profit-alignment
|
|
167
|
+
- responsible-growth-framework
|
|
112
168
|
|
|
113
169
|
total_tasks: 56
|
|
114
170
|
|
|
@@ -45,6 +45,11 @@ seleciona workflows, gerencia handoffs inter-agentes e monitora quality gates ob
|
|
|
45
45
|
| Auditoria de acessibilidade | Beacon (dx-accessibility-specialist) |
|
|
46
46
|
| Motion/interacao | Kinetic (dx-interaction-designer) |
|
|
47
47
|
| Auditoria de performance | Apex (dx-performance-engineer) |
|
|
48
|
+
| Padroes de conversao / CRO comportamental | Convert (cro-persuasion) |
|
|
49
|
+
| Estetica premium de SaaS (lens transversal) | Vertex (platform-aesthetic-director) |
|
|
50
|
+
| Packaging premium / valor percebido | Aura (premium-packaging-strategist) |
|
|
51
|
+
| Ergonomia de uso repetido (product surface) | Axiom (product-surface-director) |
|
|
52
|
+
| UX/UI autonomo full-spectrum (um agente do briefing ao codigo) | sinapse-ux (ux-designer) |
|
|
48
53
|
|
|
49
54
|
## Cross-Squad Handoffs
|
|
50
55
|
```yaml
|
|
@@ -115,6 +120,21 @@ integration:
|
|
|
115
120
|
- agent: "dx-performance-engineer (Apex)"
|
|
116
121
|
when: "Performance audit, Core Web Vitals, render optimization"
|
|
117
122
|
context_passed: "deployed/build artifacts, target metrics, device profile"
|
|
123
|
+
- agent: "cro-persuasion (Convert)"
|
|
124
|
+
when: "Conversion-focused visual patterns, behavioral science (social proof, scarcity, risk reversal)"
|
|
125
|
+
context_passed: "page goal, audience, funnel stage, brand tokens"
|
|
126
|
+
- agent: "platform-aesthetic-director (Vertex)"
|
|
127
|
+
when: "Defining/auditing what 'premium' means for a SaaS surface (cross-cutting lens)"
|
|
128
|
+
context_passed: "product type, positioning, target tier, existing surfaces"
|
|
129
|
+
- agent: "premium-packaging-strategist (Aura)"
|
|
130
|
+
when: "Premium packaging and perceived value of the presentation"
|
|
131
|
+
context_passed: "offer, positioning, audience, brand tokens"
|
|
132
|
+
- agent: "product-surface-director (Axiom)"
|
|
133
|
+
when: "Ergonomics of repeated in-product use (the lived experience)"
|
|
134
|
+
context_passed: "core workflows, user roles, usage frequency, IA"
|
|
135
|
+
- agent: "ux-designer (sinapse-ux)"
|
|
136
|
+
when: "Autonomous full-spectrum UX/UI when a single agent should own the flow end-to-end"
|
|
137
|
+
context_passed: "briefing, brand context, scope, constraints"
|
|
118
138
|
receives_from:
|
|
119
139
|
- agent: "@sinapse-orqx (Imperator)"
|
|
120
140
|
when: "UX/UI request routed from ecosystem"
|
|
@@ -61,6 +61,9 @@ Ledger e o CFO virtual da squad. Coordena todas as analises financeiras, prioriz
|
|
|
61
61
|
| pricing-strategist (Mint) | Recebe analises de pricing, rate realization para report |
|
|
62
62
|
| budget-controller (Vault) | Recebe budget variance, forecast, cash flow para dashboard |
|
|
63
63
|
| revenue-analyst (Flow) | Recebe revenue waterfall, aging, collection rates |
|
|
64
|
+
| cost-optimizer (Trim) | Recebe auditoria de gastos cloud/SaaS/contratos e savings propostos |
|
|
65
|
+
| forecast-strategist (Horizon) | Recebe projecoes driver-based, cenarios, runway, breakeven |
|
|
66
|
+
| fiscal-compliance-br (Tribute) | Recebe analise de regime tributario, NF, ISS e obrigacoes acessorias |
|
|
64
67
|
|
|
65
68
|
## Delegacao
|
|
66
69
|
|
|
@@ -70,6 +73,9 @@ Ledger e o CFO virtual da squad. Coordena todas as analises financeiras, prioriz
|
|
|
70
73
|
| Modelo de precificacao | pricing-strategist (Mint) |
|
|
71
74
|
| Forecast e budget | budget-controller (Vault) |
|
|
72
75
|
| Reconciliacao de receita | revenue-analyst (Flow) |
|
|
76
|
+
| Otimizacao de custos / FinOps (waste, cost-creep) | cost-optimizer (Trim) |
|
|
77
|
+
| Forecast driver-based, cenarios, runway, breakeven | forecast-strategist (Horizon) |
|
|
78
|
+
| Conformidade fiscal BR (regime, NF, ISS, SPED/EFD) | fiscal-compliance-br (Tribute) |
|
|
73
79
|
| Dados de vendas/pipeline | squad-commercial |
|
|
74
80
|
| Metricas de growth | squad-growth |
|
|
75
81
|
|
|
@@ -57,8 +57,10 @@ Apex → Review consolidado → Decisoes de otimizacao
|
|
|
57
57
|
| Otimizacao de LP | Convert | Lighthouse |
|
|
58
58
|
| Report de performance | Pulse | Apex (consolidacao) |
|
|
59
59
|
| Scaling de budget | Apex | Signal + Query |
|
|
60
|
-
| Creative testing | Canvas |
|
|
60
|
+
| Creative testing | Canvas | Lens (creative-performance) |
|
|
61
61
|
| Tracking issues | Lighthouse | Signal/Query |
|
|
62
|
+
| Analise de performance de criativos (padroes, fadiga) | Lens (pm-creative-performance-analyst) | Canvas |
|
|
63
|
+
| Campanha YouTube Ads (formatos, video, funil) | Tube (pm-youtube-ads-specialist) | Canvas |
|
|
62
64
|
|
|
63
65
|
## Tasks
|
|
64
66
|
|