@jaimevalasek/aioson 1.6.0 → 1.7.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/CHANGELOG.md +49 -0
- package/README.md +729 -232
- package/docs/design-previews/pt.squarespace.com-homepage.html +889 -0
- package/docs/integrations/sdlc-genius-boundary.md +76 -0
- package/docs/integrations/sdlc-genius-eval-matrix.md +75 -0
- package/docs/integrations/sdlc-genius-install-checklist.md +93 -0
- package/docs/integrations/sdlc-genius-review-samples.md +86 -0
- package/docs/pt/README.md +3 -0
- package/docs/pt/agentes.md +1 -0
- package/docs/pt/comandos-cli.md +888 -2
- package/docs/pt/design-hybrid-forge.md +255 -6
- package/docs/pt/devlog-pipeline.md +270 -0
- package/docs/pt/fluxo-artefatos.md +178 -0
- package/docs/pt/hooks-session-guard.md +454 -0
- package/docs/pt/monitor-de-contexto.md +59 -5
- package/docs/pt/sdd-automation-scripts.md +557 -0
- package/docs/pt/site-forge.md +309 -0
- package/docs/pt/spec-learnings-pipeline.md +265 -0
- package/package.json +1 -1
- package/src/a2a/client.js +165 -0
- package/src/a2a/server.js +223 -0
- package/src/cli.js +235 -1
- package/src/commands/agent-audit.js +397 -0
- package/src/commands/agent-export-skill.js +229 -0
- package/src/commands/artifact-validate.js +189 -0
- package/src/commands/brief-gen.js +405 -0
- package/src/commands/brief-validate.js +65 -0
- package/src/commands/classify.js +256 -0
- package/src/commands/context-compact.js +49 -0
- package/src/commands/context-health.js +175 -0
- package/src/commands/context-monitor.js +71 -0
- package/src/commands/context-trim.js +177 -0
- package/src/commands/detect-test-runner.js +55 -0
- package/src/commands/devlog-export-brains.js +27 -0
- package/src/commands/devlog-process.js +292 -0
- package/src/commands/devlog-watch.js +131 -0
- package/src/commands/feature-close.js +165 -0
- package/src/commands/gate-check.js +228 -0
- package/src/commands/hooks-emit.js +253 -0
- package/src/commands/hooks-install.js +347 -0
- package/src/commands/learning-auto-promote.js +195 -0
- package/src/commands/learning-evolve.js +18 -9
- package/src/commands/learning-export.js +103 -0
- package/src/commands/learning-rollback.js +164 -0
- package/src/commands/live.js +25 -1
- package/src/commands/pattern-detect.js +33 -0
- package/src/commands/preflight-context.js +30 -0
- package/src/commands/preflight.js +208 -0
- package/src/commands/pulse-update.js +130 -0
- package/src/commands/runner-daemon.js +274 -0
- package/src/commands/runner-plan.js +70 -0
- package/src/commands/runner-queue-from-plan.js +166 -0
- package/src/commands/runner-queue.js +189 -0
- package/src/commands/runner-run.js +129 -0
- package/src/commands/runtime.js +47 -1
- package/src/commands/self-implement-loop.js +256 -0
- package/src/commands/session-guard.js +218 -0
- package/src/commands/sizing.js +165 -0
- package/src/commands/skill.js +65 -0
- package/src/commands/spec-checkpoint.js +177 -0
- package/src/commands/spec-status.js +79 -0
- package/src/commands/spec-sync.js +190 -0
- package/src/commands/spec-tasks.js +288 -0
- package/src/commands/squad-autorun.js +1220 -0
- package/src/commands/squad-bus.js +217 -0
- package/src/commands/squad-card.js +149 -0
- package/src/commands/squad-daemon.js +134 -0
- package/src/commands/squad-dependency-graph.js +164 -0
- package/src/commands/squad-review.js +106 -0
- package/src/commands/squad-scaffold.js +55 -0
- package/src/commands/squad-tool-register.js +157 -0
- package/src/commands/state-save.js +122 -0
- package/src/commands/update.js +2 -0
- package/src/commands/verify-gate.js +572 -0
- package/src/commands/workflow-execute.js +241 -0
- package/src/constants.js +9 -0
- package/src/install-profile.js +2 -2
- package/src/install-wizard.js +3 -2
- package/src/installer.js +6 -0
- package/src/lib/health-check.js +158 -0
- package/src/lib/hook-protocol.js +76 -0
- package/src/mcp/apps/squad-dashboard/app.js +163 -0
- package/src/mcp/apps/squad-dashboard/index.html +261 -0
- package/src/mcp/apps/squad-dashboard/mcp-manifest.json +23 -0
- package/src/mcp/resources/squad-state.js +130 -0
- package/src/preflight-engine.js +443 -0
- package/src/runner/cascade.js +97 -0
- package/src/runner/cli-launcher.js +109 -0
- package/src/runner/plan-importer.js +63 -0
- package/src/runner/queue-store.js +159 -0
- package/src/runtime-store.js +61 -3
- package/src/squad/agent-teams-adapter.js +264 -0
- package/src/squad/brief-validator.js +350 -0
- package/src/squad/bus-bridge.js +140 -0
- package/src/squad/context-compactor.js +265 -0
- package/src/squad/cross-ai-synthesizer.js +250 -0
- package/src/squad/hooks-generator.js +196 -0
- package/src/squad/inter-squad-events.js +175 -0
- package/src/squad/intra-bus.js +345 -0
- package/src/squad/learning-extractor.js +213 -0
- package/src/squad/pattern-detector.js +365 -0
- package/src/squad/preflight-context.js +296 -0
- package/src/squad/recovery-context.js +242 -71
- package/src/squad/reflection.js +365 -0
- package/src/squad/squad-scaffold.js +177 -0
- package/src/squad/state-manager.js +310 -0
- package/src/squad/task-decomposer.js +652 -0
- package/src/squad/verify-gate.js +303 -0
- package/src/updater.js +4 -5
- package/src/worker-runner.js +186 -1
- package/template/.aioson/agents/analyst.md +62 -1
- package/template/.aioson/agents/architect.md +61 -1
- package/template/.aioson/agents/design-hybrid-forge.md +14 -0
- package/template/.aioson/agents/dev.md +242 -24
- package/template/.aioson/agents/deyvin.md +66 -8
- package/template/.aioson/agents/discovery-design-doc.md +44 -0
- package/template/.aioson/agents/genome.md +14 -0
- package/template/.aioson/agents/neo.md +78 -1
- package/template/.aioson/agents/orache.md +50 -4
- package/template/.aioson/agents/orchestrator.md +197 -1
- package/template/.aioson/agents/pm.md +35 -0
- package/template/.aioson/agents/product.md +50 -5
- package/template/.aioson/agents/profiler-enricher.md +14 -0
- package/template/.aioson/agents/profiler-forge.md +14 -0
- package/template/.aioson/agents/profiler-researcher.md +14 -0
- package/template/.aioson/agents/qa.md +172 -21
- package/template/.aioson/agents/setup.md +79 -9
- package/template/.aioson/agents/sheldon.md +131 -6
- package/template/.aioson/agents/site-forge.md +1753 -0
- package/template/.aioson/agents/squad.md +162 -0
- package/template/.aioson/agents/tester.md +53 -0
- package/template/.aioson/agents/ux-ui.md +34 -1
- package/template/.aioson/brains/README.md +128 -0
- package/template/.aioson/brains/_index.json +16 -0
- package/template/.aioson/brains/scripts/query.js +103 -0
- package/template/.aioson/brains/site-forge/visual-patterns.brain.json +205 -0
- package/template/.aioson/config.md +143 -13
- package/template/.aioson/constitution.md +33 -0
- package/template/.aioson/context/project-pulse.md +34 -0
- package/template/.aioson/docs/LAYERS.md +79 -0
- package/template/.aioson/docs/README.md +76 -0
- package/template/.aioson/docs/example-external-api-context.md +72 -0
- package/template/.aioson/locales/en/agents/architect.md +17 -0
- package/template/.aioson/locales/en/agents/dev.md +79 -13
- package/template/.aioson/locales/en/agents/orache.md +6 -0
- package/template/.aioson/locales/en/agents/orchestrator.md +24 -0
- package/template/.aioson/locales/en/agents/product.md +50 -0
- package/template/.aioson/locales/en/agents/sheldon.md +115 -0
- package/template/.aioson/locales/en/agents/squad.md +14 -0
- package/template/.aioson/locales/en/agents/tester.md +6 -0
- package/template/.aioson/locales/es/agents/analyst.md +2 -0
- package/template/.aioson/locales/es/agents/architect.md +19 -0
- package/template/.aioson/locales/es/agents/dev.md +64 -4
- package/template/.aioson/locales/es/agents/deyvin.md +2 -0
- package/template/.aioson/locales/es/agents/discovery-design-doc.md +2 -0
- package/template/.aioson/locales/es/agents/genome.md +2 -0
- package/template/.aioson/locales/es/agents/neo.md +2 -0
- package/template/.aioson/locales/es/agents/orache.md +2 -0
- package/template/.aioson/locales/es/agents/orchestrator.md +26 -0
- package/template/.aioson/locales/es/agents/pair.md +2 -0
- package/template/.aioson/locales/es/agents/pm.md +2 -0
- package/template/.aioson/locales/es/agents/product.md +52 -0
- package/template/.aioson/locales/es/agents/profiler-enricher.md +2 -0
- package/template/.aioson/locales/es/agents/profiler-forge.md +2 -0
- package/template/.aioson/locales/es/agents/profiler-researcher.md +2 -0
- package/template/.aioson/locales/es/agents/qa.md +2 -0
- package/template/.aioson/locales/es/agents/setup.md +2 -0
- package/template/.aioson/locales/es/agents/sheldon.md +117 -0
- package/template/.aioson/locales/es/agents/squad.md +16 -0
- package/template/.aioson/locales/es/agents/tester.md +9 -0
- package/template/.aioson/locales/es/agents/ux-ui.md +2 -0
- package/template/.aioson/locales/fr/agents/analyst.md +2 -0
- package/template/.aioson/locales/fr/agents/architect.md +19 -0
- package/template/.aioson/locales/fr/agents/dev.md +64 -4
- package/template/.aioson/locales/fr/agents/deyvin.md +2 -0
- package/template/.aioson/locales/fr/agents/discovery-design-doc.md +2 -0
- package/template/.aioson/locales/fr/agents/genome.md +2 -0
- package/template/.aioson/locales/fr/agents/neo.md +2 -0
- package/template/.aioson/locales/fr/agents/orache.md +2 -0
- package/template/.aioson/locales/fr/agents/orchestrator.md +26 -0
- package/template/.aioson/locales/fr/agents/pair.md +2 -0
- package/template/.aioson/locales/fr/agents/pm.md +2 -0
- package/template/.aioson/locales/fr/agents/product.md +52 -0
- package/template/.aioson/locales/fr/agents/profiler-enricher.md +2 -0
- package/template/.aioson/locales/fr/agents/profiler-forge.md +2 -0
- package/template/.aioson/locales/fr/agents/profiler-researcher.md +2 -0
- package/template/.aioson/locales/fr/agents/qa.md +2 -0
- package/template/.aioson/locales/fr/agents/setup.md +2 -0
- package/template/.aioson/locales/fr/agents/sheldon.md +117 -0
- package/template/.aioson/locales/fr/agents/squad.md +16 -0
- package/template/.aioson/locales/fr/agents/tester.md +9 -0
- package/template/.aioson/locales/fr/agents/ux-ui.md +2 -0
- package/template/.aioson/locales/pt-BR/agents/analyst.md +64 -3
- package/template/.aioson/locales/pt-BR/agents/architect.md +42 -0
- package/template/.aioson/locales/pt-BR/agents/dev.md +147 -14
- package/template/.aioson/locales/pt-BR/agents/deyvin.md +47 -0
- package/template/.aioson/locales/pt-BR/agents/neo.md +62 -1
- package/template/.aioson/locales/pt-BR/agents/orchestrator.md +158 -2
- package/template/.aioson/locales/pt-BR/agents/pm.md +95 -1
- package/template/.aioson/locales/pt-BR/agents/product.md +145 -18
- package/template/.aioson/locales/pt-BR/agents/qa.md +16 -0
- package/template/.aioson/locales/pt-BR/agents/setup.md +101 -18
- package/template/.aioson/locales/pt-BR/agents/sheldon.md +132 -1
- package/template/.aioson/locales/pt-BR/agents/squad.md +14 -0
- package/template/.aioson/locales/pt-BR/agents/tester.md +449 -0
- package/template/.aioson/rules/README.md +69 -0
- package/template/.aioson/rules/data-format-convention.md +136 -0
- package/template/.aioson/rules/example-monetary-values.md +30 -0
- package/template/.aioson/schemas/squad-manifest.schema.json +124 -3
- package/template/.aioson/skills/design/pt.squarespace.com/.skill-meta.json +31 -0
- package/template/.aioson/skills/design/pt.squarespace.com/SKILL.md +66 -0
- package/template/.aioson/skills/design/pt.squarespace.com/references/components.md +368 -0
- package/template/.aioson/skills/design/pt.squarespace.com/references/design-tokens.md +150 -0
- package/template/.aioson/skills/design/pt.squarespace.com/references/motion.md +270 -0
- package/template/.aioson/skills/design/pt.squarespace.com/references/patterns.md +189 -0
- package/template/.aioson/skills/design/pt.squarespace.com/references/websites.md +165 -0
- package/template/.aioson/skills/process/aioson-spec-driven/SKILL.md +1 -0
- package/template/.aioson/skills/process/aioson-spec-driven/references/analyst.md +30 -0
- package/template/.aioson/skills/process/aioson-spec-driven/references/architect.md +23 -0
- package/template/.aioson/skills/process/aioson-spec-driven/references/dev.md +47 -0
- package/template/.aioson/skills/process/aioson-spec-driven/references/deyvin.md +27 -0
- package/template/.aioson/skills/process/aioson-spec-driven/references/maintenance-and-state.md +35 -0
- package/template/.aioson/skills/process/aioson-spec-driven/references/product.md +25 -0
- package/template/.aioson/skills/process/aioson-spec-driven/references/qa.md +30 -0
- package/template/.aioson/skills/process/aioson-spec-driven/references/sheldon.md +25 -0
- package/template/.aioson/skills/process/design-hybrid-forge/SKILL.md +4 -1
- package/template/.aioson/skills/process/design-hybrid-forge/references/output-contract.md +15 -0
- package/template/.aioson/skills/process/design-hybrid-forge/references/pair-compatibility.md +32 -0
- package/template/.aioson/skills/process/design-hybrid-forge/references/quality-gates.md +20 -0
- package/template/.aioson/skills/process/simplify/SKILL.md +173 -0
- package/template/.aioson/skills/static/context-budget-guide.md +46 -0
- package/template/.aioson/skills/static/harness-sensors.md +74 -0
- package/template/.aioson/skills/static/multi-agent-patterns.md +43 -0
- package/template/.aioson/skills/static/react-motion-patterns.md +22 -0
- package/template/.aioson/skills/static/static-html-patterns/checklists.md +43 -0
- package/template/.aioson/skills/static/static-html-patterns/css-tokens.md +609 -0
- package/template/.aioson/skills/static/static-html-patterns/motion.md +193 -0
- package/template/.aioson/skills/static/static-html-patterns/premium.md +711 -0
- package/template/.aioson/skills/static/static-html-patterns/structure.md +209 -0
- package/template/.aioson/skills/static/static-html-patterns/utilities.md +190 -0
- package/template/.aioson/skills/static/static-html-patterns.md +58 -1913
- package/template/.aioson/skills/static/threejs-patterns.md +929 -0
- package/template/.aioson/skills/static/web-research-cache.md +112 -0
- package/template/.aioson/tasks/implementation-plan.md +21 -1
- package/template/.claude/commands/aioson/agent/design-hybrid-forge.md +5 -0
- package/template/.claude/commands/aioson/agent/orache.md +5 -0
- package/template/.claude/commands/aioson/agent/sheldon.md +5 -0
- package/template/.claude/commands/aioson/agent/site-forge.md +5 -0
- package/template/AGENTS.md +55 -3
- package/template/CLAUDE.md +30 -0
- package/template/OPENCODE.md +4 -0
- package/template/researchs/.gitkeep +0 -0
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: simplify
|
|
3
|
+
description: Three-agent parallel code review for reuse, quality, and efficiency. Run after implementation and tests pass, before commit. Spawns three independent subagents simultaneously — each with a single focus — then aggregates and applies approved fixes.
|
|
4
|
+
activation: |
|
|
5
|
+
You are now running the /simplify review process. Identify the scope of changed files, then spawn three parallel review agents (reuse, quality, efficiency). Aggregate their findings, filter false positives, present the report, and apply approved fixes.
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Skill: /simplify
|
|
9
|
+
|
|
10
|
+
> Process skill. Three-agent parallel code review.
|
|
11
|
+
> Run after `@dev` completes a phase and all tests pass. Before committing.
|
|
12
|
+
|
|
13
|
+
## Workflow position
|
|
14
|
+
|
|
15
|
+
```
|
|
16
|
+
@dev implements → tests pass → /simplify → review diff → commit
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
NEVER run /simplify during implementation — only after tests pass.
|
|
20
|
+
|
|
21
|
+
## Step 1 — Identify scope
|
|
22
|
+
|
|
23
|
+
List all files changed during the current implementation session.
|
|
24
|
+
|
|
25
|
+
If the list is larger than 15 files: ask the user to narrow the scope or confirm full review before proceeding.
|
|
26
|
+
|
|
27
|
+
## Step 2 — Spawn three parallel review agents
|
|
28
|
+
|
|
29
|
+
Spawn all three simultaneously. Each receives the same file list but different review instructions.
|
|
30
|
+
|
|
31
|
+
**Critical:** Each agent is stateless — pass a complete, self-contained brief with file paths, review objective, what NOT to do, and output format. Do not reference conversation history.
|
|
32
|
+
|
|
33
|
+
---
|
|
34
|
+
|
|
35
|
+
### Agent A — Code Reuse Agent
|
|
36
|
+
|
|
37
|
+
Brief template:
|
|
38
|
+
```
|
|
39
|
+
You are reviewing the following files for code duplication and reuse opportunities:
|
|
40
|
+
[file list with paths]
|
|
41
|
+
|
|
42
|
+
Your ONLY task: find duplicated logic, copy-paste patterns, and opportunities to
|
|
43
|
+
extract shared utilities or abstractions that would reduce code.
|
|
44
|
+
|
|
45
|
+
Rules:
|
|
46
|
+
- Report only real duplications, not stylistic similarities
|
|
47
|
+
- For each finding: exact file + line range + what to extract + where to put it
|
|
48
|
+
- Do NOT comment on naming, performance, security, or architecture
|
|
49
|
+
- Do NOT fix anything — report only
|
|
50
|
+
- Skip findings where extraction would require more code than the duplication saves
|
|
51
|
+
|
|
52
|
+
Output format per finding:
|
|
53
|
+
### Reuse finding: [short name]
|
|
54
|
+
Files: [file A: lines X-Y, file B: lines X-Y]
|
|
55
|
+
Pattern: [what is duplicated]
|
|
56
|
+
Suggested extraction: [function/class name + target file]
|
|
57
|
+
Confidence: high | medium (skip low-confidence findings)
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
---
|
|
61
|
+
|
|
62
|
+
### Agent B — Code Quality Agent
|
|
63
|
+
|
|
64
|
+
Brief template:
|
|
65
|
+
```
|
|
66
|
+
You are reviewing the following files for code quality issues:
|
|
67
|
+
[file list with paths]
|
|
68
|
+
|
|
69
|
+
Also read: [CLAUDE.md path], [.aioson/rules/ path — list relevant rules]
|
|
70
|
+
|
|
71
|
+
Your ONLY task: naming issues, structural problems, violations of explicit project
|
|
72
|
+
conventions, and clear code smells.
|
|
73
|
+
|
|
74
|
+
Rules:
|
|
75
|
+
- Flag ONLY violations of explicit project rules or well-known anti-patterns
|
|
76
|
+
- Do NOT flag stylistic preferences — only violations of stated conventions
|
|
77
|
+
- If CLAUDE.md and .aioson/rules/ are absent, use only universal anti-patterns
|
|
78
|
+
- For each finding: exact file + line + what the issue is + how to fix it
|
|
79
|
+
- Do NOT comment on performance or duplication
|
|
80
|
+
|
|
81
|
+
Output format per finding:
|
|
82
|
+
### Quality finding: [short name]
|
|
83
|
+
File: [path:line]
|
|
84
|
+
Issue: [what is wrong]
|
|
85
|
+
Fix: [exact change — 1-3 lines]
|
|
86
|
+
Convention violated: [which rule, or "anti-pattern: [name]"]
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
**IMPORTANT:** NEVER spawn Agent B without reading CLAUDE.md first (Agent B needs project conventions to be accurate — without them it will hallucinate rules).
|
|
90
|
+
|
|
91
|
+
---
|
|
92
|
+
|
|
93
|
+
### Agent C — Efficiency Agent
|
|
94
|
+
|
|
95
|
+
Brief template:
|
|
96
|
+
```
|
|
97
|
+
You are reviewing the following files for performance and efficiency issues:
|
|
98
|
+
[file list with paths]
|
|
99
|
+
|
|
100
|
+
Your ONLY task: N+1 queries, unnecessary re-renders, expensive operations in loops,
|
|
101
|
+
missing lazy loading, concurrency issues, unnecessary allocations.
|
|
102
|
+
|
|
103
|
+
Rules:
|
|
104
|
+
- Report only measurable inefficiencies, not theoretical ones
|
|
105
|
+
- For each finding: exact file + line + what the issue is + cost estimate + fix
|
|
106
|
+
- Do NOT comment on naming or code structure
|
|
107
|
+
|
|
108
|
+
Output format per finding:
|
|
109
|
+
### Efficiency finding: [short name]
|
|
110
|
+
File: [path:line]
|
|
111
|
+
Issue: [what is inefficient]
|
|
112
|
+
Cost: [why it matters — "O(N) queries per page load", "re-render per keystroke", etc]
|
|
113
|
+
Fix: [exact change]
|
|
114
|
+
```
|
|
115
|
+
|
|
116
|
+
---
|
|
117
|
+
|
|
118
|
+
## Step 3 — Aggregate results
|
|
119
|
+
|
|
120
|
+
Collect all three agents' outputs.
|
|
121
|
+
|
|
122
|
+
**Deduplication:** if two agents flag the same file+line for different reasons, merge into one finding with both concerns listed.
|
|
123
|
+
|
|
124
|
+
**False positive filter — silently skip any finding where:**
|
|
125
|
+
- Agent A says "confidence: medium" AND the extraction would add more complexity than it removes
|
|
126
|
+
- Agent B flags a "violation" of a convention that doesn't exist in the project's CLAUDE.md or rules (hallucinated rule)
|
|
127
|
+
- Agent C flags a theoretical inefficiency with no concrete cost estimate
|
|
128
|
+
- The fix would require architectural changes outside the current implementation scope
|
|
129
|
+
|
|
130
|
+
## Step 4 — Present aggregated report
|
|
131
|
+
|
|
132
|
+
```
|
|
133
|
+
## /simplify Report — [date]
|
|
134
|
+
|
|
135
|
+
### Reuse (Agent A): N findings
|
|
136
|
+
- [finding name] — [file:line] — [1-line summary]
|
|
137
|
+
|
|
138
|
+
### Quality (Agent B): N findings
|
|
139
|
+
- [finding name] — [file:line] — [1-line summary]
|
|
140
|
+
|
|
141
|
+
### Efficiency (Agent C): N findings
|
|
142
|
+
- [finding name] — [file:line] — [1-line summary]
|
|
143
|
+
|
|
144
|
+
### Auto-applicable (no review needed): N
|
|
145
|
+
[findings that are low-risk, high-confidence, and contained — list them]
|
|
146
|
+
|
|
147
|
+
### Requires review: N
|
|
148
|
+
[findings where impact is broader or confidence is medium — list them]
|
|
149
|
+
|
|
150
|
+
Total: N findings across 3 agents. N auto-applicable, N require review.
|
|
151
|
+
```
|
|
152
|
+
|
|
153
|
+
Ask the user: "Apply auto-applicable fixes? (Y/n) | Apply all? | Select specific findings?"
|
|
154
|
+
|
|
155
|
+
## Step 5 — Apply approved fixes
|
|
156
|
+
|
|
157
|
+
For each approved fix:
|
|
158
|
+
- Apply the exact change described in the finding
|
|
159
|
+
- Do NOT refactor beyond the specific fix
|
|
160
|
+
- Do NOT add comments, docstrings, or type annotations
|
|
161
|
+
- Do NOT rename things not mentioned in the finding
|
|
162
|
+
|
|
163
|
+
After all fixes: re-run the test suite to confirm no regression.
|
|
164
|
+
If any test breaks: revert only the breaking fix and report to the user.
|
|
165
|
+
|
|
166
|
+
## Hard constraints
|
|
167
|
+
|
|
168
|
+
- NEVER fix more than what is described in a specific finding
|
|
169
|
+
- NEVER apply a "requires review" fix without explicit user approval
|
|
170
|
+
- NEVER run /simplify during implementation — only after tests pass
|
|
171
|
+
- NEVER spawn Agent B without reading CLAUDE.md first
|
|
172
|
+
- NEVER report a finding without a concrete file + line reference
|
|
173
|
+
- For MICRO projects: /simplify is optional — suggest but do not require
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
# Context Budget Guide
|
|
2
|
+
|
|
3
|
+
> Load when you need to measure or manage context window usage.
|
|
4
|
+
|
|
5
|
+
## Quick measurement heuristic
|
|
6
|
+
|
|
7
|
+
Since agents cannot directly measure token count, use file-count proxy:
|
|
8
|
+
|
|
9
|
+
| Files read | Estimated budget | Action |
|
|
10
|
+
|------------|-----------------|--------|
|
|
11
|
+
| 1-3 | Light (< 20%) | Proceed normally |
|
|
12
|
+
| 4-6 | Moderate (20-40%) | Be selective about additional reads |
|
|
13
|
+
| 7-9 | Heavy (40-60%) | Stop reading, start producing |
|
|
14
|
+
| 10+ | Critical (> 60%) | Finish current step, recommend /clear |
|
|
15
|
+
|
|
16
|
+
## File size estimates
|
|
17
|
+
|
|
18
|
+
| File type | Typical tokens |
|
|
19
|
+
|-----------|---------------|
|
|
20
|
+
| `project.context.md` | 200-500 |
|
|
21
|
+
| `prd.md` / `prd-{slug}.md` | 500-1500 |
|
|
22
|
+
| `discovery.md` | 1000-3000 |
|
|
23
|
+
| `architecture.md` | 500-1500 |
|
|
24
|
+
| `spec-{slug}.md` | 300-800 |
|
|
25
|
+
| `implementation-plan-{slug}.md` | 800-2000 |
|
|
26
|
+
| `requirements-{slug}.md` | 500-1500 |
|
|
27
|
+
| Agent instruction file | 2000-5000 |
|
|
28
|
+
| Skill file + references | 500-2000 |
|
|
29
|
+
| Source code file | 200-1000 |
|
|
30
|
+
|
|
31
|
+
## Budget report format
|
|
32
|
+
|
|
33
|
+
At session end, estimate and write to `project-pulse.md`:
|
|
34
|
+
|
|
35
|
+
```
|
|
36
|
+
Context budget: {N} files read, ~{estimate}k tokens consumed, budget: {light|moderate|heavy|critical}
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
## Progressive disclosure strategy
|
|
40
|
+
|
|
41
|
+
When budget is moderate or higher:
|
|
42
|
+
1. Read file frontmatter/headers first, full content only if needed
|
|
43
|
+
2. Read `project-pulse.md` before any other file (30 lines = minimal cost)
|
|
44
|
+
3. Read `dev-state.md` or `spec-{slug}.md` frontmatter next (context_package tells you what else to load)
|
|
45
|
+
4. Load skills/references only when entering a phase that needs them
|
|
46
|
+
5. Never read all rules, all docs, all skills upfront — scan frontmatter and load selectively
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
# Harness Sensors — Post-Action Verification
|
|
2
|
+
|
|
3
|
+
> Load this when you need to verify that agent actions comply with project constraints.
|
|
4
|
+
> Sensors run AFTER the action, not before (that's what guides/gates do).
|
|
5
|
+
|
|
6
|
+
## When to run sensors
|
|
7
|
+
|
|
8
|
+
| Trigger | Sensor | Agent |
|
|
9
|
+
|---------|--------|-------|
|
|
10
|
+
| After commit | Rule compliance check | @dev, @deyvin |
|
|
11
|
+
| After spec update | Drift detection vs requirements | @dev, @analyst |
|
|
12
|
+
| After architecture.md written | Constitution compliance | @architect |
|
|
13
|
+
| After feature closure | AC coverage verification | @qa |
|
|
14
|
+
| After session end | Context budget report | All agents |
|
|
15
|
+
|
|
16
|
+
## Sensor 1 — Rule compliance check
|
|
17
|
+
|
|
18
|
+
After every commit, verify:
|
|
19
|
+
1. Read all `.md` files in `.aioson/rules/`
|
|
20
|
+
2. For each rule, check if the committed files violate any stated convention
|
|
21
|
+
3. If violation found: do not revert — log warning and continue
|
|
22
|
+
4. Write violations to `project-pulse.md` under "Blockers" if severity is high
|
|
23
|
+
|
|
24
|
+
**Implementation:** This sensor is agent-internal (instruction-based), not a CLI hook.
|
|
25
|
+
The agent instruction says: "after committing, re-read the rules and verify your commit complies."
|
|
26
|
+
|
|
27
|
+
## Sensor 2 — Spec drift check
|
|
28
|
+
|
|
29
|
+
After updating `spec-{slug}.md`:
|
|
30
|
+
1. Compare `requirements-{slug}.md` AC list with `spec-{slug}.md` "Edge cases handled" section
|
|
31
|
+
2. If ACs exist in requirements that are not mentioned in spec: flag as potential drift
|
|
32
|
+
3. Write flagged items to `pending_review` in spec frontmatter
|
|
33
|
+
|
|
34
|
+
## Sensor 3 — Constitution compliance (architecture)
|
|
35
|
+
|
|
36
|
+
After writing `architecture.md`:
|
|
37
|
+
1. Read `constitution.md`
|
|
38
|
+
2. For each article, verify:
|
|
39
|
+
- Article I: Is there a spec artifact that preceded this architecture?
|
|
40
|
+
- Article II: Is the architecture depth proportional to classification?
|
|
41
|
+
- Article VI: Does the architecture introduce unnecessary layers?
|
|
42
|
+
3. Self-report: add `## Constitution check` section at end of `architecture.md`
|
|
43
|
+
|
|
44
|
+
## Sensor 4 — AC coverage verification
|
|
45
|
+
|
|
46
|
+
After @qa writes its report:
|
|
47
|
+
1. Count ACs with status "Covered" vs total ACs
|
|
48
|
+
2. Count adversarial probes executed vs minimum required (1)
|
|
49
|
+
3. If coverage < 80% or probes < 1: VERDICT cannot be PASS
|
|
50
|
+
|
|
51
|
+
## Sensor 5 — Context budget report
|
|
52
|
+
|
|
53
|
+
At session end, before writing project-pulse.md:
|
|
54
|
+
1. Estimate how many files were read during the session
|
|
55
|
+
2. If > 8 large files: flag context budget concern
|
|
56
|
+
3. Write to project-pulse.md: "Last session context: {N} files read, estimated {light|moderate|heavy}"
|
|
57
|
+
|
|
58
|
+
## How sensors differ from gates
|
|
59
|
+
|
|
60
|
+
| | Gates (guides) | Sensors (feedback) |
|
|
61
|
+
|---|---|---|
|
|
62
|
+
| When | Before action | After action |
|
|
63
|
+
| Blocking | Yes (MEDIUM) | No — advisory |
|
|
64
|
+
| Who triggers | Agent checks before proceeding | Agent checks after completing |
|
|
65
|
+
| Response | Stop + ask user | Log + warn + continue |
|
|
66
|
+
| Example | Gate A before @architect | Rule compliance after commit |
|
|
67
|
+
|
|
68
|
+
## Progressive adoption
|
|
69
|
+
|
|
70
|
+
1. **Phase 1 (current):** All sensors are agent-internal instructions. No CLI hooks.
|
|
71
|
+
2. **Phase 2 (future):** Move high-value sensors to `hooks-emit.js` for automated execution.
|
|
72
|
+
3. **Phase 3 (future):** Add configurable sensor severity (warn vs block) in project config.
|
|
73
|
+
|
|
74
|
+
Sensors should be lightweight — a sensor that takes longer than the action it monitors is worse than no sensor.
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
# Multi-Agent Patterns for MEDIUM Projects
|
|
2
|
+
|
|
3
|
+
> Load when orchestrating a MEDIUM project with 3+ features or 5+ phases.
|
|
4
|
+
|
|
5
|
+
## Pattern: Planner / Generator / Evaluator (PGE)
|
|
6
|
+
|
|
7
|
+
### Roles
|
|
8
|
+
|
|
9
|
+
| Role | AIOSON Agents | Responsibility |
|
|
10
|
+
|------|--------------|----------------|
|
|
11
|
+
| Planner | @product → @sheldon → @analyst → @architect | Produce spec pack: PRD + requirements + architecture + implementation plan |
|
|
12
|
+
| Generator | @dev, @deyvin | Implement against the spec pack, one phase at a time |
|
|
13
|
+
| Evaluator | @qa, @tester | Verify implementation against spec, report findings |
|
|
14
|
+
|
|
15
|
+
### Feedback loops
|
|
16
|
+
|
|
17
|
+
```
|
|
18
|
+
Planner ──spec-pack──→ Generator ──code──→ Evaluator
|
|
19
|
+
^ |
|
|
20
|
+
└──────── findings + drift report ─────────┘
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
When Evaluator finds issues:
|
|
24
|
+
1. **Minor (Low/Medium findings):** Generator fixes in next phase
|
|
25
|
+
2. **Major (Critical/High findings):** Generator stops, Evaluator reports to user
|
|
26
|
+
3. **Spec drift detected:** Route back to Planner (@analyst or @sheldon) for spec update
|
|
27
|
+
4. **Architecture issue:** Route to @architect for design revision
|
|
28
|
+
|
|
29
|
+
### Session isolation
|
|
30
|
+
|
|
31
|
+
Each role should run in a fresh context window:
|
|
32
|
+
- Planner sessions: produce artifacts, then /clear
|
|
33
|
+
- Generator sessions: read spec pack + implement, then /clear
|
|
34
|
+
- Evaluator sessions: read code + spec + verify, then /clear
|
|
35
|
+
|
|
36
|
+
Cross-role communication happens through artifacts on disk, not conversation history.
|
|
37
|
+
|
|
38
|
+
### When NOT to use PGE
|
|
39
|
+
|
|
40
|
+
- MICRO projects: skip Planner (except @product), go direct to Generator
|
|
41
|
+
- SMALL projects: compressed PGE — Planner is 1-2 sessions, not 4
|
|
42
|
+
- Bug fixes: Generator only, Evaluator optional
|
|
43
|
+
- Exploration: not PGE at all — use @deyvin in pair mode
|
|
@@ -575,3 +575,25 @@ Add to `app/layout.tsx`:
|
|
|
575
575
|
- Tilt and 3D effects must be disabled on touch devices (`hover: none` media query)
|
|
576
576
|
- Do not install Framer Motion just for one CSS animation — use plain CSS keyframes instead
|
|
577
577
|
- Keep decorative elements (`orbs`, `mesh`, `marquee`) `aria-hidden="true"` and `pointer-events: none`
|
|
578
|
+
|
|
579
|
+
## When CSS is not enough — Three.js (on-demand)
|
|
580
|
+
|
|
581
|
+
The patterns above cover 95% of animation needs. When the user explicitly requests
|
|
582
|
+
particle systems, WebGL scenes, holographic effects, or interactive 3D objects:
|
|
583
|
+
|
|
584
|
+
Load `.aioson/skills/static/threejs-patterns.md` instead.
|
|
585
|
+
|
|
586
|
+
**CSS 3D Transforms vs Three.js/WebGL:**
|
|
587
|
+
|
|
588
|
+
| Technique | CSS 3D Transforms (above) | Three.js (threejs-patterns.md) |
|
|
589
|
+
|---|---|---|
|
|
590
|
+
| Card tilt | `perspective(700px) rotateY/X` | Not needed — CSS handles it |
|
|
591
|
+
| Mesh background | `@keyframes meshDrift` on gradient | Particle aurora backdrop (3D points) |
|
|
592
|
+
| Floating orbs | CSS with `border-radius: 50%` blur | Not needed — CSS is cleaner |
|
|
593
|
+
| 3D object showcase | Not possible | TorusKnot/Icosahedron with OrbitControls |
|
|
594
|
+
| Holographic effect | Not possible | MeshPhysicalMaterial with iridescence + bloom |
|
|
595
|
+
| Scroll-driven 3D | Not possible | Camera moves through 3D scene on scroll |
|
|
596
|
+
| Particle physics | Not possible | 3,000–8,000 points with drift behavior |
|
|
597
|
+
|
|
598
|
+
Three.js is CDN-only (no npm install required) for all patterns in threejs-patterns.md.
|
|
599
|
+
It is always additive — the design skill tokens (colors, typography, spacing) continue to govern the HTML/CSS layer.
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
# Checklists — Section Map & Pre-delivery
|
|
2
|
+
|
|
3
|
+
> Load when planning which sections to include or doing final QA before delivery.
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## 12. Full Section Checklist (AI / SaaS Landing Page)
|
|
8
|
+
|
|
9
|
+
For complete AI agency or SaaS landing pages, include these sections in order:
|
|
10
|
+
|
|
11
|
+
| # | Section | Purpose |
|
|
12
|
+
|---|---|---|
|
|
13
|
+
| 1 | Header (sticky) | Logo + nav + CTA button |
|
|
14
|
+
| 2 | Hero | Headline + sub + 2 CTAs + social proof |
|
|
15
|
+
| 3 | Logos bar | "Trusted by" brand names |
|
|
16
|
+
| 4 | Features grid | 3–6 cards with icon + title + description |
|
|
17
|
+
| 5 | How it works | 3 numbered steps with image alternation |
|
|
18
|
+
| 6 | Services | Cards with deeper service descriptions |
|
|
19
|
+
| 7 | Stats / Numbers | Animated counters (clients, projects, uptime) |
|
|
20
|
+
| 8 | Case studies | Portfolio cards with hover image reveal |
|
|
21
|
+
| 9 | Testimonials | Swiper slider with quotes + avatars |
|
|
22
|
+
| 10 | Pricing | 3-tier cards with "Most popular" badge |
|
|
23
|
+
| 11 | FAQ | Accordion with open/close animation |
|
|
24
|
+
| 12 | Final CTA | Single button, urgency, no distractions |
|
|
25
|
+
| 13 | Footer | Dense: links + social + newsletter + copyright |
|
|
26
|
+
|
|
27
|
+
**For MICRO landing pages (single page, simple product):** sections 1, 2, 4, 9, 12, 13.
|
|
28
|
+
|
|
29
|
+
---
|
|
30
|
+
|
|
31
|
+
## 13. Pre-delivery Checklist
|
|
32
|
+
|
|
33
|
+
- [ ] Mobile menu opens/closes, body scroll locked when open
|
|
34
|
+
- [ ] Sliders have correct breakpoints and accessible buttons
|
|
35
|
+
- [ ] GSAP scroll animations work on mobile (use `start: 'top 85%'` for shorter viewports)
|
|
36
|
+
- [ ] Hero image loads eagerly with `fetchpriority="high"`, all others `loading="lazy"`
|
|
37
|
+
- [ ] No layout shift (CLS): img/video elements have explicit width+height
|
|
38
|
+
- [ ] `prefers-reduced-motion: reduce` disables all animations
|
|
39
|
+
- [ ] All interactive elements reachable by keyboard
|
|
40
|
+
- [ ] Color contrast ≥ 4.5:1 checked
|
|
41
|
+
- [ ] `<title>` and `<meta description>` are real content (not placeholders)
|
|
42
|
+
- [ ] Open Graph meta tags present (`og:title`, `og:description`, `og:image`)
|
|
43
|
+
- [ ] No placeholder text remains anywhere in the HTML
|