@jaimevalasek/aioson 1.7.2 → 1.8.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 +35 -0
- package/README.md +153 -10
- package/docs/en/cli-reference.md +56 -1
- package/docs/en/i18n.md +18 -18
- package/docs/en/schemas/index.json +10 -0
- package/docs/en/schemas/parallel-assign.schema.json +9 -0
- package/docs/en/schemas/parallel-doctor.schema.json +36 -0
- package/docs/en/schemas/parallel-guard.schema.json +63 -0
- package/docs/en/schemas/parallel-merge.schema.json +84 -0
- package/docs/en/schemas/parallel-status.schema.json +91 -1
- package/docs/integrations/apps-publish-marketplace.md +94 -0
- package/docs/pt/README.md +9 -0
- package/docs/pt/agentes.md +324 -3
- package/docs/pt/clientes-ai.md +7 -3
- package/docs/pt/comandos-cli.md +160 -13
- package/docs/pt/compress-agents.md +304 -0
- package/docs/pt/design-docs-governance.md +59 -0
- package/docs/pt/feature-archive.md +191 -0
- package/docs/pt/genome-3.0-spec.md +115 -4
- package/docs/pt/genome-distribution.md +232 -0
- package/docs/pt/inicio-rapido.md +1 -0
- package/docs/pt/motor-hardening.md +492 -0
- package/docs/pt/runner-system.md +113 -0
- package/package.json +2 -1
- package/src/agent-manifests.js +66 -0
- package/src/agents.js +27 -7
- package/src/autonomy-policy.js +139 -0
- package/src/brain-query.js +161 -0
- package/src/cli.js +1377 -1099
- package/src/commands/agents.js +102 -7
- package/src/commands/artifact-validate.js +33 -4
- package/src/commands/auth.js +272 -0
- package/src/commands/brain-query.js +44 -0
- package/src/commands/briefing.js +344 -0
- package/src/commands/commit-prepare.js +547 -0
- package/src/commands/compress-agents.js +416 -0
- package/src/commands/context-health.js +4 -2
- package/src/commands/context-trim.js +17 -11
- package/src/commands/design-hybrid-options.js +3 -3
- package/src/commands/devlog-process.js +6 -4
- package/src/commands/dossier.js +423 -0
- package/src/commands/feature-archive.js +513 -0
- package/src/commands/feature-close.js +123 -18
- package/src/commands/gate-approve.js +198 -0
- package/src/commands/gate-check.js +24 -5
- package/src/commands/genome-doctor.js +166 -9
- package/src/commands/git-guard.js +170 -0
- package/src/commands/harness.js +121 -0
- package/src/commands/implementation-plan.js +47 -20
- package/src/commands/init.js +6 -2
- package/src/commands/install.js +6 -2
- package/src/commands/live.js +497 -56
- package/src/commands/locale-apply.js +9 -6
- package/src/commands/locale-diff.js +11 -112
- package/src/commands/mcp-doctor.js +2 -1
- package/src/commands/mcp-init.js +4 -10
- package/src/commands/memory.js +234 -0
- package/src/commands/parallel-assign.js +107 -27
- package/src/commands/parallel-doctor.js +416 -3
- package/src/commands/parallel-guard.js +241 -0
- package/src/commands/parallel-init.js +66 -4
- package/src/commands/parallel-merge.js +299 -0
- package/src/commands/parallel-status.js +147 -3
- package/src/commands/preflight.js +63 -4
- package/src/commands/qa-init.js +10 -5
- package/src/commands/revision.js +235 -0
- package/src/commands/scaffold-complete.js +188 -0
- package/src/commands/security-audit.js +275 -0
- package/src/commands/security-scan.js +376 -0
- package/src/commands/self-implement-loop.js +46 -2
- package/src/commands/setup-context.js +11 -10
- package/src/commands/squad-agent-create.js +51 -9
- package/src/commands/squad-investigate.js +53 -0
- package/src/commands/squad-plan.js +33 -1
- package/src/commands/squad-scaffold.js +4 -3
- package/src/commands/squad-score.js +71 -14
- package/src/commands/squad-status.js +22 -1
- package/src/commands/squad-validate.js +93 -2
- package/src/commands/store-genome.js +304 -0
- package/src/commands/store-skill.js +247 -0
- package/src/commands/store-squad.js +431 -0
- package/src/commands/store-system.js +392 -0
- package/src/commands/tool-capabilities.js +63 -0
- package/src/commands/update.js +3 -3
- package/src/commands/verify-gate.js +40 -0
- package/src/commands/workflow-execute.js +644 -155
- package/src/commands/workflow-harden.js +231 -0
- package/src/commands/workflow-heal.js +136 -0
- package/src/commands/workflow-next.js +460 -22
- package/src/commands/workflow-status.js +328 -138
- package/src/commands/workspace.js +144 -0
- package/src/constants.js +42 -75
- package/src/context-memory.js +133 -4
- package/src/context-writer.js +2 -1
- package/src/context.js +32 -2
- package/src/doctor.js +46 -6
- package/src/dossier/codemap-store.js +267 -0
- package/src/dossier/dossier-bootstrap.js +222 -0
- package/src/dossier/dossier-compact.js +159 -0
- package/src/dossier/lock.js +128 -0
- package/src/dossier/revision-store.js +313 -0
- package/src/dossier/schema.js +155 -0
- package/src/dossier/store.js +400 -0
- package/src/execution-gateway.js +3 -0
- package/src/friction-scanner.js +202 -0
- package/src/genome-schema.js +24 -1
- package/src/genomes.js +33 -0
- package/src/handoff-contract.js +363 -0
- package/src/handoff-validator.js +45 -0
- package/src/harness/circuit-breaker.js +135 -0
- package/src/i18n/messages/en.js +317 -22
- package/src/i18n/messages/es.js +259 -18
- package/src/i18n/messages/fr.js +260 -18
- package/src/i18n/messages/pt-BR.js +313 -22
- package/src/install-profile.js +0 -16
- package/src/installer.js +70 -6
- package/src/lib/git-commit-guard.js +691 -0
- package/src/lib/security/artifact-reader.js +167 -0
- package/src/lib/security/exit-codes.js +51 -0
- package/src/lib/security/findings-writer.js +176 -0
- package/src/lib/security/runtime-events.js +77 -0
- package/src/lib/security/secrets-regex.js +115 -0
- package/src/lib/store/security-scan.js +173 -0
- package/src/lib/terminal-checkbox.js +130 -0
- package/src/lib/tmux-launcher.js +163 -0
- package/src/lib/tool-capabilities.js +102 -0
- package/src/locales.js +12 -8
- package/src/parallel-workspace.js +756 -0
- package/src/parser.js +8 -1
- package/src/path-guard.js +47 -0
- package/src/preflight-engine.js +237 -26
- package/src/self-healing.js +142 -0
- package/src/session-handoff.js +111 -1
- package/src/squad/squad-scaffold.js +183 -19
- package/src/test-briefing.js +226 -0
- package/src/updater.js +1 -1
- package/src/utils.js +3 -0
- package/src/workflow-gates.js +185 -0
- package/template/.aioson/agents/analyst.md +76 -130
- package/template/.aioson/agents/architect.md +53 -86
- package/template/.aioson/agents/committer.md +161 -0
- package/template/.aioson/agents/cypher.md +252 -0
- package/template/.aioson/agents/dev.md +112 -628
- package/template/.aioson/agents/deyvin.md +33 -236
- package/template/.aioson/agents/discover.md +235 -0
- package/template/.aioson/agents/discovery-design-doc.md +17 -252
- package/template/.aioson/agents/genome.md +76 -26
- package/template/.aioson/agents/manifests/analyst.manifest.json +26 -0
- package/template/.aioson/agents/manifests/architect.manifest.json +23 -0
- package/template/.aioson/agents/manifests/committer.manifest.json +23 -0
- package/template/.aioson/agents/manifests/dev.manifest.json +37 -0
- package/template/.aioson/agents/manifests/orchestrator.manifest.json +30 -0
- package/template/.aioson/agents/manifests/pentester.manifest.json +39 -0
- package/template/.aioson/agents/manifests/pm.manifest.json +26 -0
- package/template/.aioson/agents/manifests/product.manifest.json +23 -0
- package/template/.aioson/agents/manifests/qa.manifest.json +25 -0
- package/template/.aioson/agents/manifests/setup.manifest.json +20 -0
- package/template/.aioson/agents/manifests/ux-ui.manifest.json +24 -0
- package/template/.aioson/agents/neo.md +5 -7
- package/template/.aioson/agents/orache.md +2 -6
- package/template/.aioson/agents/orchestrator.md +81 -182
- package/template/.aioson/agents/pentester.md +235 -0
- package/template/.aioson/agents/pm.md +40 -104
- package/template/.aioson/agents/product.md +99 -344
- package/template/.aioson/agents/profiler-enricher.md +57 -6
- package/template/.aioson/agents/profiler-forge.md +17 -7
- package/template/.aioson/agents/profiler-researcher.md +29 -6
- package/template/.aioson/agents/qa.md +168 -514
- package/template/.aioson/agents/setup.md +52 -278
- package/template/.aioson/agents/sheldon.md +122 -754
- package/template/.aioson/agents/site-forge.md +111 -1583
- package/template/.aioson/agents/squad.md +139 -2010
- package/template/.aioson/agents/tester.md +10 -0
- package/template/.aioson/agents/ux-ui.md +104 -812
- package/template/.aioson/agents/validator.md +69 -0
- package/template/.aioson/brains/scripts/query.js +5 -1
- package/template/.aioson/config/autonomy-protocol.json +43 -0
- package/template/.aioson/config.md +43 -15
- package/template/.aioson/constitution.md +36 -33
- package/template/.aioson/context/design-doc.md +136 -0
- package/template/.aioson/context/project-map.md +57 -0
- package/template/.aioson/design-docs/code-reuse.md +48 -0
- package/template/.aioson/design-docs/componentization.md +47 -0
- package/template/.aioson/design-docs/file-size.md +52 -0
- package/template/.aioson/design-docs/folder-structure.md +51 -0
- package/template/.aioson/design-docs/naming.md +54 -0
- package/template/.aioson/docs/LAYERS.md +12 -2
- package/template/.aioson/docs/dev/execution-discipline.md +106 -0
- package/template/.aioson/docs/dev/stack-conventions.md +83 -0
- package/template/.aioson/docs/deyvin/continuity-recovery.md +57 -0
- package/template/.aioson/docs/deyvin/debugging-escalation.md +30 -0
- package/template/.aioson/docs/deyvin/pair-execution.md +44 -0
- package/template/.aioson/docs/deyvin/runtime-handoffs.md +36 -0
- package/template/.aioson/docs/product/conversation-playbook.md +116 -0
- package/template/.aioson/docs/product/prd-contract.md +107 -0
- package/template/.aioson/docs/product/quality-lens.md +57 -0
- package/template/.aioson/docs/product/research-loop.md +65 -0
- package/template/.aioson/docs/sheldon/enrichment-paths.md +134 -0
- package/template/.aioson/docs/sheldon/quality-lens.md +57 -0
- package/template/.aioson/docs/sheldon/research-loop.md +56 -0
- package/template/.aioson/docs/sheldon/web-intelligence.md +75 -0
- package/template/.aioson/docs/site-forge-build.md +195 -0
- package/template/.aioson/docs/site-forge-extraction.md +135 -0
- package/template/.aioson/docs/site-forge-qa.md +155 -0
- package/template/.aioson/docs/site-forge-recon.md +434 -0
- package/template/.aioson/docs/site-forge-transform.md +249 -0
- package/template/.aioson/docs/squad/content-output.md +91 -0
- package/template/.aioson/docs/squad/creation-flow.md +135 -0
- package/template/.aioson/docs/squad/domain-classification.md +117 -0
- package/template/.aioson/docs/squad/genome-bindings.md +47 -0
- package/template/.aioson/docs/squad/package-contract.md +234 -0
- package/template/.aioson/docs/squad/quality-lens.md +56 -0
- package/template/.aioson/docs/squad/research-loop.md +59 -0
- package/template/.aioson/docs/squad/session-operations.md +117 -0
- package/template/.aioson/docs/squad/workflow-quality.md +165 -0
- package/template/.aioson/docs/ux-ui/accessibility-audit.md +55 -0
- package/template/.aioson/docs/ux-ui/audit-mode.md +86 -0
- package/template/.aioson/docs/ux-ui/component-map.md +35 -0
- package/template/.aioson/docs/ux-ui/design-execution.md +111 -0
- package/template/.aioson/docs/ux-ui/design-gate.md +27 -0
- package/template/.aioson/docs/ux-ui/research-mode.md +39 -0
- package/template/.aioson/docs/ux-ui/site-delivery.md +156 -0
- package/template/.aioson/docs/ux-ui/token-contract.md +57 -0
- package/template/.aioson/genomes/copywriting.meta.json +48 -0
- package/template/.aioson/git-guard.json +11 -0
- package/template/.aioson/mcp/servers.md +0 -1
- package/template/.aioson/rules/agent-language-policy.md +93 -0
- package/template/.aioson/rules/aioson-context-boundary.md +63 -0
- package/template/.aioson/rules/canonical-path-contract.md +47 -0
- package/template/.aioson/rules/data-format-convention.md +24 -86
- package/template/.aioson/rules/disk-first-artifacts.md +44 -0
- package/template/.aioson/rules/output-brevity.md +44 -0
- package/template/.aioson/rules/prd-section-ownership.md +49 -0
- package/template/.aioson/rules/security-baseline.md +139 -0
- package/template/.aioson/rules/spec-level-ownership.md +61 -0
- package/template/.aioson/rules/squad-driver-pattern.md +81 -0
- package/template/.aioson/schemas/squad-blueprint.schema.json +24 -0
- package/template/.aioson/schemas/squad-manifest.schema.json +44 -0
- package/template/.aioson/skills/process/aioson-spec-driven/references/pm.md +30 -0
- package/template/.aioson/skills/process/secure-tdd/SKILL.md +97 -0
- package/template/.aioson/skills/process/secure-tdd/references/nextjs.md +81 -0
- package/template/.aioson/skills/process/secure-tdd/references/node-express.md +91 -0
- package/template/.aioson/skills/process/secure-tdd/references/planned-stacks.md +33 -0
- package/template/.aioson/skills/static/harness-validate/SKILL.md +46 -0
- package/template/.aioson/skills/static/web-research-cache.md +3 -0
- package/template/.aioson/tasks/squad-create.md +35 -8
- package/template/.aioson/tasks/squad-design.md +50 -2
- package/template/.aioson/tasks/squad-investigate.md +14 -1
- package/template/.claude/commands/aioson/agent/committer.md +5 -0
- package/template/.claude/commands/aioson/agent/copywriter.md +5 -0
- package/template/.claude/commands/aioson/agent/cypher.md +5 -0
- package/template/.claude/commands/aioson/agent/pair.md +5 -0
- package/template/.claude/commands/aioson/agent/validator.md +5 -0
- package/template/.gemini/commands/aios-analyst.toml +6 -3
- package/template/.gemini/commands/aios-architect.toml +7 -6
- package/template/.gemini/commands/aios-committer.toml +7 -0
- package/template/.gemini/commands/aios-copywriter.toml +7 -0
- package/template/.gemini/commands/aios-cypher.toml +7 -0
- package/template/.gemini/commands/aios-dev.toml +8 -7
- package/template/.gemini/commands/aios-deyvin.toml +6 -5
- package/template/.gemini/commands/aios-discovery-design-doc.toml +6 -3
- package/template/.gemini/commands/aios-genome.toml +7 -0
- package/template/.gemini/commands/aios-neo.toml +5 -3
- package/template/.gemini/commands/aios-orache.toml +7 -0
- package/template/.gemini/commands/aios-orchestrator.toml +8 -7
- package/template/.gemini/commands/aios-pair.toml +6 -5
- package/template/.gemini/commands/aios-pm.toml +8 -7
- package/template/.gemini/commands/aios-product.toml +5 -3
- package/template/.gemini/commands/aios-qa.toml +6 -5
- package/template/.gemini/commands/aios-setup.toml +5 -2
- package/template/.gemini/commands/aios-sheldon.toml +7 -0
- package/template/.gemini/commands/aios-site-forge.toml +7 -0
- package/template/.gemini/commands/aios-squad.toml +7 -0
- package/template/.gemini/commands/aios-tester.toml +6 -5
- package/template/.gemini/commands/aios-ux-ui.toml +8 -7
- package/template/.gemini/commands/aios-validator.toml +7 -0
- package/template/AGENTS.md +12 -1
- package/template/CLAUDE.md +5 -1
- package/template/.aioson/locales/en/agents/analyst.md +0 -244
- package/template/.aioson/locales/en/agents/architect.md +0 -245
- package/template/.aioson/locales/en/agents/dev.md +0 -397
- package/template/.aioson/locales/en/agents/deyvin.md +0 -137
- package/template/.aioson/locales/en/agents/discovery-design-doc.md +0 -27
- package/template/.aioson/locales/en/agents/genome.md +0 -212
- package/template/.aioson/locales/en/agents/neo.md +0 -8
- package/template/.aioson/locales/en/agents/orache.md +0 -6
- package/template/.aioson/locales/en/agents/orchestrator.md +0 -189
- package/template/.aioson/locales/en/agents/pair.md +0 -5
- package/template/.aioson/locales/en/agents/pm.md +0 -84
- package/template/.aioson/locales/en/agents/product.md +0 -378
- package/template/.aioson/locales/en/agents/profiler-enricher.md +0 -5
- package/template/.aioson/locales/en/agents/profiler-forge.md +0 -5
- package/template/.aioson/locales/en/agents/profiler-researcher.md +0 -5
- package/template/.aioson/locales/en/agents/qa.md +0 -270
- package/template/.aioson/locales/en/agents/setup.md +0 -421
- package/template/.aioson/locales/en/agents/sheldon.md +0 -455
- package/template/.aioson/locales/en/agents/squad.md +0 -449
- package/template/.aioson/locales/en/agents/tester.md +0 -6
- package/template/.aioson/locales/en/agents/ux-ui.md +0 -668
- package/template/.aioson/locales/es/agents/analyst.md +0 -225
- package/template/.aioson/locales/es/agents/architect.md +0 -245
- package/template/.aioson/locales/es/agents/dev.md +0 -370
- package/template/.aioson/locales/es/agents/deyvin.md +0 -99
- package/template/.aioson/locales/es/agents/discovery-design-doc.md +0 -21
- package/template/.aioson/locales/es/agents/genome.md +0 -104
- package/template/.aioson/locales/es/agents/neo.md +0 -50
- package/template/.aioson/locales/es/agents/orache.md +0 -105
- package/template/.aioson/locales/es/agents/orchestrator.md +0 -194
- package/template/.aioson/locales/es/agents/pair.md +0 -7
- package/template/.aioson/locales/es/agents/pm.md +0 -90
- package/template/.aioson/locales/es/agents/product.md +0 -372
- package/template/.aioson/locales/es/agents/profiler-enricher.md +0 -7
- package/template/.aioson/locales/es/agents/profiler-forge.md +0 -7
- package/template/.aioson/locales/es/agents/profiler-researcher.md +0 -7
- package/template/.aioson/locales/es/agents/qa.md +0 -198
- package/template/.aioson/locales/es/agents/setup.md +0 -405
- package/template/.aioson/locales/es/agents/sheldon.md +0 -309
- package/template/.aioson/locales/es/agents/squad.md +0 -532
- package/template/.aioson/locales/es/agents/tester.md +0 -9
- package/template/.aioson/locales/es/agents/ux-ui.md +0 -212
- package/template/.aioson/locales/fr/agents/analyst.md +0 -225
- package/template/.aioson/locales/fr/agents/architect.md +0 -245
- package/template/.aioson/locales/fr/agents/dev.md +0 -370
- package/template/.aioson/locales/fr/agents/deyvin.md +0 -99
- package/template/.aioson/locales/fr/agents/discovery-design-doc.md +0 -21
- package/template/.aioson/locales/fr/agents/genome.md +0 -104
- package/template/.aioson/locales/fr/agents/neo.md +0 -50
- package/template/.aioson/locales/fr/agents/orache.md +0 -106
- package/template/.aioson/locales/fr/agents/orchestrator.md +0 -194
- package/template/.aioson/locales/fr/agents/pair.md +0 -7
- package/template/.aioson/locales/fr/agents/pm.md +0 -90
- package/template/.aioson/locales/fr/agents/product.md +0 -372
- package/template/.aioson/locales/fr/agents/profiler-enricher.md +0 -7
- package/template/.aioson/locales/fr/agents/profiler-forge.md +0 -7
- package/template/.aioson/locales/fr/agents/profiler-researcher.md +0 -7
- package/template/.aioson/locales/fr/agents/qa.md +0 -198
- package/template/.aioson/locales/fr/agents/setup.md +0 -405
- package/template/.aioson/locales/fr/agents/sheldon.md +0 -309
- package/template/.aioson/locales/fr/agents/squad.md +0 -532
- package/template/.aioson/locales/fr/agents/tester.md +0 -9
- package/template/.aioson/locales/fr/agents/ux-ui.md +0 -212
- package/template/.aioson/locales/pt-BR/agents/analyst.md +0 -319
- package/template/.aioson/locales/pt-BR/agents/architect.md +0 -284
- package/template/.aioson/locales/pt-BR/agents/dev.md +0 -483
- package/template/.aioson/locales/pt-BR/agents/deyvin.md +0 -184
- package/template/.aioson/locales/pt-BR/agents/discovery-design-doc.md +0 -198
- package/template/.aioson/locales/pt-BR/agents/genome.md +0 -297
- package/template/.aioson/locales/pt-BR/agents/neo.md +0 -208
- package/template/.aioson/locales/pt-BR/agents/orache.md +0 -137
- package/template/.aioson/locales/pt-BR/agents/orchestrator.md +0 -324
- package/template/.aioson/locales/pt-BR/agents/pair.md +0 -5
- package/template/.aioson/locales/pt-BR/agents/pm.md +0 -182
- package/template/.aioson/locales/pt-BR/agents/product.md +0 -466
- package/template/.aioson/locales/pt-BR/agents/profiler-enricher.md +0 -5
- package/template/.aioson/locales/pt-BR/agents/profiler-forge.md +0 -5
- package/template/.aioson/locales/pt-BR/agents/profiler-researcher.md +0 -5
- package/template/.aioson/locales/pt-BR/agents/qa.md +0 -300
- package/template/.aioson/locales/pt-BR/agents/setup.md +0 -533
- package/template/.aioson/locales/pt-BR/agents/sheldon.md +0 -323
- package/template/.aioson/locales/pt-BR/agents/squad.md +0 -1330
- package/template/.aioson/locales/pt-BR/agents/tester.md +0 -449
- package/template/.aioson/locales/pt-BR/agents/ux-ui.md +0 -669
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: "Squad research loop — extract short domain phrases, consult research cache, and use fresh findings to improve executors, workflows, and output quality."
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# Squad Research Loop
|
|
6
|
+
|
|
7
|
+
Load this module before creating, extending, planning, repairing, or materially reworking a squad package.
|
|
8
|
+
|
|
9
|
+
## Goal
|
|
10
|
+
|
|
11
|
+
Prevent `@squad` from generating interchangeable squads. Use a small fresh-research pass to ground the package in current domain language, operating patterns, and quality expectations.
|
|
12
|
+
|
|
13
|
+
## Mandatory keyword extraction
|
|
14
|
+
|
|
15
|
+
Derive `3-7` short keyword phrases from the current squad ask, such as:
|
|
16
|
+
|
|
17
|
+
- domain or niche name
|
|
18
|
+
- deliverable type
|
|
19
|
+
- workflow style
|
|
20
|
+
- review or approval pattern
|
|
21
|
+
- audience or buyer language
|
|
22
|
+
- compliance or trust constraint
|
|
23
|
+
- output medium or channel
|
|
24
|
+
|
|
25
|
+
Keep phrases concrete and searchable. Favor `2-6` words.
|
|
26
|
+
|
|
27
|
+
## Mandatory scouting pass
|
|
28
|
+
|
|
29
|
+
1. Load `.aioson/skills/static/web-research-cache.md`
|
|
30
|
+
2. Rank phrases by:
|
|
31
|
+
- chance of changing executor design
|
|
32
|
+
- chance of changing workflow or output structure
|
|
33
|
+
- freshness sensitivity
|
|
34
|
+
3. Check `researchs/` first
|
|
35
|
+
4. Search only the top `1-4` stale or missing phrases
|
|
36
|
+
5. Save every result before using it
|
|
37
|
+
|
|
38
|
+
At least one phrase must be validated through cache or fresh research whenever the squad serves an external domain, recurring workflow, content system, regulated environment, or specialized audience.
|
|
39
|
+
|
|
40
|
+
For regulated domains, this lightweight loop does not replace mandatory `@orache` investigation.
|
|
41
|
+
If an `investigation` report already exists, use it as the primary evidence source and run fresh scouting only to fill missing gaps.
|
|
42
|
+
|
|
43
|
+
## How to use the findings
|
|
44
|
+
|
|
45
|
+
Use research to improve:
|
|
46
|
+
|
|
47
|
+
- executor vocabulary and mission boundaries
|
|
48
|
+
- workflow stages and review loops
|
|
49
|
+
- checklists and quality gates
|
|
50
|
+
- anti-patterns that should become hard constraints
|
|
51
|
+
- output blueprints and deliverable structure
|
|
52
|
+
|
|
53
|
+
If the domain is broad, unfamiliar, or strategically important, use this lightweight loop first and then offer `@orache` for deeper investigation.
|
|
54
|
+
|
|
55
|
+
## Output discipline
|
|
56
|
+
|
|
57
|
+
- `researchs/` is a temporary shared evidence layer for reusable references
|
|
58
|
+
- keep only the findings that materially change the squad package
|
|
59
|
+
- do not let research inflate the squad with unnecessary executors or boilerplate
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: "Squad session operations — ephemeral squads, investigation, inter-squad routing, learnings, dashboard guidance, and recurring tasks."
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# Squad Session Operations
|
|
6
|
+
|
|
7
|
+
Use this module for ongoing orchestration and maintenance concerns around the squad.
|
|
8
|
+
|
|
9
|
+
## Ephemeral squads
|
|
10
|
+
|
|
11
|
+
Trigger on:
|
|
12
|
+
|
|
13
|
+
- `@squad --ephemeral`
|
|
14
|
+
- "quick squad"
|
|
15
|
+
- "temporary squad"
|
|
16
|
+
- "session-only squad"
|
|
17
|
+
|
|
18
|
+
Rules:
|
|
19
|
+
|
|
20
|
+
- set `"ephemeral": true` in the manifest
|
|
21
|
+
- optionally set `"ttl": "24h"`
|
|
22
|
+
- skip deep design-doc/readiness work
|
|
23
|
+
- keep the package in `.aioson/squads/{slug}/`
|
|
24
|
+
- keep output in `output/{slug}/`
|
|
25
|
+
- do not register ephemeral squads in `CLAUDE.md` or `AGENTS.md`
|
|
26
|
+
|
|
27
|
+
## Investigation via `@orache`
|
|
28
|
+
|
|
29
|
+
Offer investigation when:
|
|
30
|
+
|
|
31
|
+
- the domain is unfamiliar or specialized
|
|
32
|
+
- the user did not provide deep context
|
|
33
|
+
- the squad will be reused repeatedly
|
|
34
|
+
- richer domain vocabulary and benchmarks would materially help
|
|
35
|
+
|
|
36
|
+
If the domain-classification gate marked the domain as regulated, investigation is mandatory and blocks final squad generation.
|
|
37
|
+
|
|
38
|
+
If investigation is accepted or required:
|
|
39
|
+
|
|
40
|
+
1. invoke `@orache`
|
|
41
|
+
2. read the `squad-searches/` report
|
|
42
|
+
3. persist an `investigation` object in the blueprint and final manifest
|
|
43
|
+
4. use it to refine executors, vocabulary, blueprints, quality checks, and anti-patterns
|
|
44
|
+
5. translate regulations into hard constraints, human gates, or review criteria
|
|
45
|
+
6. translate anti-patterns into checklist items and `vetoConditions`
|
|
46
|
+
7. translate benchmarks into workflow quality bars and warm-up expectations
|
|
47
|
+
|
|
48
|
+
If the report covers fewer than 4 of the 7 investigation dimensions, ask whether the user wants a deeper pass before finalizing the squad.
|
|
49
|
+
|
|
50
|
+
## Inter-squad routing
|
|
51
|
+
|
|
52
|
+
When multiple squads exist:
|
|
53
|
+
|
|
54
|
+
1. scan `.aioson/squads/`
|
|
55
|
+
2. read sibling `squad.md` files
|
|
56
|
+
3. if a request belongs to a sibling squad, route explicitly
|
|
57
|
+
4. if collaboration is required, coordinate a handoff instead of absorbing the work silently
|
|
58
|
+
|
|
59
|
+
Never duplicate an existing squad's responsibility without an explicit user request.
|
|
60
|
+
|
|
61
|
+
## Squad learnings
|
|
62
|
+
|
|
63
|
+
At session start:
|
|
64
|
+
|
|
65
|
+
- read `learnings/index.md` if present
|
|
66
|
+
- load only the learnings relevant to the current topic
|
|
67
|
+
|
|
68
|
+
During session:
|
|
69
|
+
|
|
70
|
+
- capture corrections, rejections, and quality signals internally
|
|
71
|
+
- do not interrupt productive work to discuss learning capture
|
|
72
|
+
|
|
73
|
+
At session end:
|
|
74
|
+
|
|
75
|
+
- list the main detected learnings
|
|
76
|
+
- show them briefly to the user
|
|
77
|
+
- save approved ones under `learnings/`
|
|
78
|
+
- update `learnings/index.md`
|
|
79
|
+
|
|
80
|
+
Promotion checks:
|
|
81
|
+
|
|
82
|
+
- repeated quality learning → offer promotion to a rule
|
|
83
|
+
- accumulated domain learnings → offer domain skill creation
|
|
84
|
+
- stable preference over many sessions → mark established
|
|
85
|
+
|
|
86
|
+
## Dashboard guidance
|
|
87
|
+
|
|
88
|
+
If the user asks for a dashboard or panel:
|
|
89
|
+
|
|
90
|
+
- explain that the dashboard app is installed separately from the CLI
|
|
91
|
+
- do not assume a dashboard project exists in this repository
|
|
92
|
+
- tell the user to open the installed dashboard app and select the project folder containing `.aioson/`
|
|
93
|
+
|
|
94
|
+
## Session facilitation
|
|
95
|
+
|
|
96
|
+
When the user brings a challenge:
|
|
97
|
+
|
|
98
|
+
- present each relevant specialist in sequence
|
|
99
|
+
- require concrete reasoning, tradeoffs, and next steps
|
|
100
|
+
- synthesize convergences and tensions at the end
|
|
101
|
+
- ask which specialist the user wants to push further
|
|
102
|
+
|
|
103
|
+
If a specialist produces a final artifact:
|
|
104
|
+
|
|
105
|
+
- save a draft `.md` in `output/{squad-slug}/`
|
|
106
|
+
- then let the orchestrator fold it into the session HTML
|
|
107
|
+
|
|
108
|
+
## Recurring tasks
|
|
109
|
+
|
|
110
|
+
If the environment supports them and the use case is justified:
|
|
111
|
+
|
|
112
|
+
- `CronCreate`
|
|
113
|
+
- `CronList`
|
|
114
|
+
- `CronDelete`
|
|
115
|
+
|
|
116
|
+
Use cases include polling external APIs during research and scheduled health checks across executors.
|
|
117
|
+
Always clean recurring tasks up before the session ends.
|
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: "Squad workflow and quality rules — workflow generation, review loops, model tiering, plans, checklists, coverage score, and warm-up."
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# Squad Workflow And Quality
|
|
6
|
+
|
|
7
|
+
Use this module whenever the squad has phases, quality gates, review loops, plans, or coverage scoring.
|
|
8
|
+
|
|
9
|
+
## When to generate a workflow
|
|
10
|
+
|
|
11
|
+
Generate `.aioson/squads/{squad-slug}/workflows/main.md` when:
|
|
12
|
+
|
|
13
|
+
- the squad has 3 or more distinct phases
|
|
14
|
+
- later phases depend on earlier outputs
|
|
15
|
+
- deterministic workers mix with LLM executors
|
|
16
|
+
- human approval points exist
|
|
17
|
+
- the squad will run as a repeatable pipeline
|
|
18
|
+
|
|
19
|
+
Skip only for purely conversational or exploratory squads.
|
|
20
|
+
|
|
21
|
+
## Workflow registration
|
|
22
|
+
|
|
23
|
+
Register the workflow in `squad.manifest.json` with:
|
|
24
|
+
|
|
25
|
+
- `slug`
|
|
26
|
+
- `title`
|
|
27
|
+
- `trigger`
|
|
28
|
+
- `executionMode`
|
|
29
|
+
- `estimatedDuration`
|
|
30
|
+
- `file`
|
|
31
|
+
- `phases`
|
|
32
|
+
|
|
33
|
+
Each phase should declare:
|
|
34
|
+
|
|
35
|
+
- `id`
|
|
36
|
+
- `title`
|
|
37
|
+
- `executor`
|
|
38
|
+
- `executorType`
|
|
39
|
+
- `dependsOn`
|
|
40
|
+
- `output`
|
|
41
|
+
- optional `humanGate`
|
|
42
|
+
- optional `review`
|
|
43
|
+
- optional `vetoConditions`
|
|
44
|
+
|
|
45
|
+
## Execution modes
|
|
46
|
+
|
|
47
|
+
- `sequential`
|
|
48
|
+
- `parallel`
|
|
49
|
+
- `mixed`
|
|
50
|
+
|
|
51
|
+
## Human gates
|
|
52
|
+
|
|
53
|
+
Use `humanGate` when a phase requires explicit human approval or risk review.
|
|
54
|
+
|
|
55
|
+
Action levels:
|
|
56
|
+
|
|
57
|
+
- `auto`
|
|
58
|
+
- `consult`
|
|
59
|
+
- `approve`
|
|
60
|
+
- `block`
|
|
61
|
+
|
|
62
|
+
## Review loops
|
|
63
|
+
|
|
64
|
+
Add review when:
|
|
65
|
+
|
|
66
|
+
- the phase produces a final deliverable
|
|
67
|
+
- the domain is high-risk
|
|
68
|
+
- the pipeline is repeatable and quality drift matters
|
|
69
|
+
|
|
70
|
+
Review should normally be done by an executor other than the creator.
|
|
71
|
+
|
|
72
|
+
Include:
|
|
73
|
+
|
|
74
|
+
- reviewer
|
|
75
|
+
- criteria
|
|
76
|
+
- `onReject`
|
|
77
|
+
- `maxRetries`
|
|
78
|
+
- `retryStrategy`
|
|
79
|
+
- `escalateOnMaxRetries`
|
|
80
|
+
|
|
81
|
+
Supported retry strategies:
|
|
82
|
+
|
|
83
|
+
- `feedback`
|
|
84
|
+
- `fresh`
|
|
85
|
+
- `alternative`
|
|
86
|
+
|
|
87
|
+
## Model tiering
|
|
88
|
+
|
|
89
|
+
Assign `modelTier` to every executor:
|
|
90
|
+
|
|
91
|
+
- `none` for deterministic workers
|
|
92
|
+
- `powerful` for orchestration, synthesis, creative generation, or reviewer roles
|
|
93
|
+
- `fast` for research, analysis at scale, or formatting-heavy work
|
|
94
|
+
- `balanced` for mixed/default cases
|
|
95
|
+
|
|
96
|
+
Show `modelTier` together with type classification in the confirmation output.
|
|
97
|
+
|
|
98
|
+
## Task decomposition
|
|
99
|
+
|
|
100
|
+
If an executor has a recurrent multi-step process:
|
|
101
|
+
|
|
102
|
+
- keep identity in the main agent file
|
|
103
|
+
- move procedure to `.aioson/squads/{squad-slug}/agents/{executor-slug}/tasks/`
|
|
104
|
+
- register the tasks in the manifest
|
|
105
|
+
|
|
106
|
+
## Quality checklists
|
|
107
|
+
|
|
108
|
+
Always generate `.aioson/squads/{squad-slug}/checklists/quality.md`.
|
|
109
|
+
|
|
110
|
+
The checklist must validate:
|
|
111
|
+
|
|
112
|
+
- domain-specific output quality
|
|
113
|
+
- output integrity
|
|
114
|
+
- executor coverage
|
|
115
|
+
- worker completion when present
|
|
116
|
+
- human gate resolution when present
|
|
117
|
+
|
|
118
|
+
Add phase-specific checklists if the workflow needs them.
|
|
119
|
+
|
|
120
|
+
## Execution plan
|
|
121
|
+
|
|
122
|
+
Generate `.aioson/squads/{squad-slug}/docs/execution-plan.md` when:
|
|
123
|
+
|
|
124
|
+
- the squad has 4 or more executors
|
|
125
|
+
- workflows are present
|
|
126
|
+
- the squad came from investigation
|
|
127
|
+
- the squad mode is `software` or `mixed`
|
|
128
|
+
|
|
129
|
+
Offer but do not force for:
|
|
130
|
+
|
|
131
|
+
- 3-executor squads with moderate complexity
|
|
132
|
+
- content squads with multi-step pipelines
|
|
133
|
+
|
|
134
|
+
Skip for:
|
|
135
|
+
|
|
136
|
+
- ephemeral squads
|
|
137
|
+
- tiny obvious linear flows
|
|
138
|
+
- explicit user refusal
|
|
139
|
+
|
|
140
|
+
## Confirmation, coverage, and warm-up
|
|
141
|
+
|
|
142
|
+
After generation:
|
|
143
|
+
|
|
144
|
+
1. list created executors
|
|
145
|
+
2. show classification review
|
|
146
|
+
3. show coverage score
|
|
147
|
+
4. suggest `aioson squad:score . --squad={slug}`
|
|
148
|
+
5. run the warm-up round immediately
|
|
149
|
+
|
|
150
|
+
Coverage score dimensions:
|
|
151
|
+
|
|
152
|
+
- executors typed
|
|
153
|
+
- workflow defined
|
|
154
|
+
- checklists present
|
|
155
|
+
- tasks defined
|
|
156
|
+
- workers present
|
|
157
|
+
|
|
158
|
+
Warm-up output should show, for each specialist:
|
|
159
|
+
|
|
160
|
+
- problem reading
|
|
161
|
+
- initial recommendation
|
|
162
|
+
- main risk or tension
|
|
163
|
+
- next practical step
|
|
164
|
+
|
|
165
|
+
Do not skip the warm-up round.
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: "UI/UX accessibility audit mode — WCAG-focused scan, remediation format, and QA handoff guidance for UI accessibility issues."
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# UX/UI Accessibility Audit
|
|
6
|
+
|
|
7
|
+
Activate via `@ux-ui a11y`.
|
|
8
|
+
|
|
9
|
+
## Step 1 — Scan
|
|
10
|
+
|
|
11
|
+
Read UI code and check:
|
|
12
|
+
|
|
13
|
+
| Category | Checks |
|
|
14
|
+
|---|---|
|
|
15
|
+
| Perceivable | Contrast, alt text, captions |
|
|
16
|
+
| Operable | Keyboard reachability, focus rings, no keyboard traps, skip links |
|
|
17
|
+
| Understandable | `lang` attribute, label association, clear errors |
|
|
18
|
+
| Robust | Semantic HTML first, ARIA only when needed, no div-as-button |
|
|
19
|
+
| Motion | `prefers-reduced-motion`, no uncontrolled long autoplay animation |
|
|
20
|
+
|
|
21
|
+
## Step 2 — Produce findings
|
|
22
|
+
|
|
23
|
+
Use this structure:
|
|
24
|
+
|
|
25
|
+
```markdown
|
|
26
|
+
## Accessibility Report — [Project Name]
|
|
27
|
+
|
|
28
|
+
### Summary
|
|
29
|
+
- WCAG 2.1 AA compliance: [estimated %]
|
|
30
|
+
- Critical issues: [count]
|
|
31
|
+
- Total issues: [count]
|
|
32
|
+
|
|
33
|
+
### 🔴 Critical
|
|
34
|
+
- [Issue]: [specific element] → [concrete fix]
|
|
35
|
+
|
|
36
|
+
### 🟡 Important
|
|
37
|
+
- [Issue]: [specific element] → [concrete fix]
|
|
38
|
+
|
|
39
|
+
### 🟢 Enhancement
|
|
40
|
+
- [Suggestion]: [specific element] → [improvement]
|
|
41
|
+
|
|
42
|
+
### ✅ Already compliant
|
|
43
|
+
- [Specific accessibility decision that is correct]
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
## Step 3 — QA integration
|
|
47
|
+
|
|
48
|
+
If `@qa` is the next workflow agent, add an `## Accessibility` section with:
|
|
49
|
+
- automated checks to add to the test suite
|
|
50
|
+
- manual checks that still require human verification
|
|
51
|
+
|
|
52
|
+
## Output
|
|
53
|
+
|
|
54
|
+
- write to `.aioson/context/ui-a11y.md`
|
|
55
|
+
- do not modify code during this audit
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: "UI/UX audit mode — inventory scan, design quality checks, severity-based reporting, and fix recommendation format for existing UI."
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# UX/UI Audit Mode
|
|
6
|
+
|
|
7
|
+
Activate when the user chooses **Audit** or invokes `@ux-ui audit`.
|
|
8
|
+
|
|
9
|
+
## Step 1 — Read existing artifacts
|
|
10
|
+
|
|
11
|
+
Read all that exist:
|
|
12
|
+
- `index.html` or the main template file
|
|
13
|
+
- `ui-spec.md`
|
|
14
|
+
- up to 5 component files from `src/`, `components/`, `app/`, or `pages/`, prioritizing layout-level files
|
|
15
|
+
|
|
16
|
+
## Step 2 — Inventory scan
|
|
17
|
+
|
|
18
|
+
Capture:
|
|
19
|
+
|
|
20
|
+
| Inventory | What to capture |
|
|
21
|
+
|---|---|
|
|
22
|
+
| Colors | Every unique color value. Flag hardcoded values not in CSS custom properties. |
|
|
23
|
+
| Spacing | Unique margin and padding values. Flag values not aligned to a scale. |
|
|
24
|
+
| Radius | Unique border-radius values. Flag inconsistencies. |
|
|
25
|
+
| Typography | Font families, sizes, and weights used. Flag values not in a type scale. |
|
|
26
|
+
| Components | Visually repeated patterns. Flag near-duplicates that should be consolidated. |
|
|
27
|
+
|
|
28
|
+
## Step 3 — Run quality checks
|
|
29
|
+
|
|
30
|
+
Apply each check and record findings:
|
|
31
|
+
|
|
32
|
+
| Check | What to look for |
|
|
33
|
+
|---|---|
|
|
34
|
+
| Swap test | Could this UI belong to any other product? |
|
|
35
|
+
| Squint test | Is hierarchy clear or does everything compete? |
|
|
36
|
+
| Signature test | Can you name 5 product-specific design decisions? |
|
|
37
|
+
| State completeness | Hover, focus, active, disabled states defined? |
|
|
38
|
+
| Depth consistency | Borders-only and shadows mixed on the same surface type? |
|
|
39
|
+
| Token discipline | Hardcoded values vs CSS custom properties |
|
|
40
|
+
| Accessibility | Contrast, focus, semantic HTML |
|
|
41
|
+
| Mobile-first | Breakpoints and graceful degradation below 768px |
|
|
42
|
+
| Motion safety | `prefers-reduced-motion` respected |
|
|
43
|
+
| Visual continuity | Shared surfaces consistent across screens |
|
|
44
|
+
|
|
45
|
+
## Step 4 — Produce the audit report
|
|
46
|
+
|
|
47
|
+
Use this structure:
|
|
48
|
+
|
|
49
|
+
```markdown
|
|
50
|
+
## UI Audit — [Project Name]
|
|
51
|
+
|
|
52
|
+
### Inventory
|
|
53
|
+
- Colors: X unique values (Y hardcoded)
|
|
54
|
+
- Spacing: X unique values
|
|
55
|
+
- Radius: X unique values
|
|
56
|
+
- Components: X patterns (Y near-duplicates)
|
|
57
|
+
|
|
58
|
+
### 🔴 Critical
|
|
59
|
+
- [Issue]: [specific location] → [concrete fix]
|
|
60
|
+
|
|
61
|
+
### 🟡 Important
|
|
62
|
+
- [Issue]: [specific location] → [concrete fix]
|
|
63
|
+
|
|
64
|
+
### 🟢 Polish
|
|
65
|
+
- [Issue]: [specific location] → [suggestion]
|
|
66
|
+
|
|
67
|
+
### ✅ What's working
|
|
68
|
+
- [Specific intentional decision]
|
|
69
|
+
|
|
70
|
+
### Consolidation plan
|
|
71
|
+
- [Pattern A and Pattern B] → [single component]
|
|
72
|
+
- [Hardcoded values] → [semantic tokens]
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
Rules:
|
|
76
|
+
- every finding must reference a specific element or line
|
|
77
|
+
- every critical or important finding must include a concrete fix
|
|
78
|
+
- always include at least one "What's working" entry
|
|
79
|
+
- include a consolidation plan when near-duplicates or hardcoded values are found
|
|
80
|
+
- end with: `Want me to apply the critical fixes now, or go through them one by one?`
|
|
81
|
+
|
|
82
|
+
## Output
|
|
83
|
+
|
|
84
|
+
- write the report to `.aioson/context/ui-audit.md`
|
|
85
|
+
- do not modify `index.html`, component files, or `ui-spec.md` during audit
|
|
86
|
+
- switch to targeted edits only after the user confirms which fixes to apply
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: "UI/UX component map mode — component inventory, atomic classification, variants, states, and gap analysis between spec and implementation."
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# UX/UI Component Map
|
|
6
|
+
|
|
7
|
+
Activate via `@ux-ui component-map`.
|
|
8
|
+
|
|
9
|
+
## Step 1 — Scan
|
|
10
|
+
|
|
11
|
+
- if code exists, scan `src/`, `components/`, `app/`, and `pages/` for visual patterns
|
|
12
|
+
- if `ui-spec.md` exists, extract the component list from the spec
|
|
13
|
+
- if `design_skill` is set, load the skill's component catalog
|
|
14
|
+
|
|
15
|
+
## Step 2 — Classify
|
|
16
|
+
|
|
17
|
+
For each component found, record:
|
|
18
|
+
|
|
19
|
+
| Component | Category | Variants | States | Used in |
|
|
20
|
+
|---|---|---|---|---|
|
|
21
|
+
| `Button` | atom | primary, secondary, ghost | default, hover, focus, active, disabled, loading | Header, Hero CTA, Forms |
|
|
22
|
+
|
|
23
|
+
Categories follow Atomic Design: atom → molecule → organism → template.
|
|
24
|
+
|
|
25
|
+
## Step 3 — Gap analysis
|
|
26
|
+
|
|
27
|
+
Identify:
|
|
28
|
+
- components that exist in the spec but not in code
|
|
29
|
+
- components that exist in code but not in the spec
|
|
30
|
+
- near-duplicate components that should be consolidated
|
|
31
|
+
- missing states or variants
|
|
32
|
+
|
|
33
|
+
## Output
|
|
34
|
+
|
|
35
|
+
- write to `.aioson/context/ui-component-map.md`
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: "UI/UX design execution — entry check, refine-vs-rebuild routing, design intent, domain exploration, direction selection, and delivery quality rules."
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# UX/UI Design Execution
|
|
6
|
+
|
|
7
|
+
Use this module for the default creation flow and for `refine-spec`.
|
|
8
|
+
|
|
9
|
+
## Entry check
|
|
10
|
+
|
|
11
|
+
Run before Step 1:
|
|
12
|
+
|
|
13
|
+
1. Does `.aioson/context/ui-spec.md` exist?
|
|
14
|
+
2. Does `index.html` exist in the project root? Relevant when `project_type=site`.
|
|
15
|
+
3. Do component or layout files exist in `src/`, `components/`, `app/`, or `pages/`?
|
|
16
|
+
|
|
17
|
+
If none exist, proceed directly to the creation flow.
|
|
18
|
+
|
|
19
|
+
If any exist, ask:
|
|
20
|
+
|
|
21
|
+
> "I can see this project already has UI. What would you like to do?
|
|
22
|
+
> → **Audit** — I'll review the existing UI, identify issues, and propose specific improvements.
|
|
23
|
+
> → **Refine spec** — I'll update `ui-spec.md` without touching the existing implementation.
|
|
24
|
+
> → **Rebuild** — I'll create a fresh visual direction from scratch (existing files will be replaced)."
|
|
25
|
+
|
|
26
|
+
Routing:
|
|
27
|
+
- **Audit** → switch to `audit-mode.md`
|
|
28
|
+
- **Refine spec** → read `ui-spec.md`, identify gaps or drift, update in place
|
|
29
|
+
- **Rebuild** → warn that `index.html` and `ui-spec.md` will be overwritten, then confirm before continuing
|
|
30
|
+
|
|
31
|
+
## Step 1 — Intent
|
|
32
|
+
|
|
33
|
+
Answer these three questions before any layout or token work:
|
|
34
|
+
|
|
35
|
+
1. Who exactly is visiting this?
|
|
36
|
+
2. What must they do or feel?
|
|
37
|
+
3. What should this feel like?
|
|
38
|
+
|
|
39
|
+
If you cannot answer all three with specifics, ask. Do not guess.
|
|
40
|
+
|
|
41
|
+
## Step 2 — Domain exploration
|
|
42
|
+
|
|
43
|
+
Produce all four before proposing visuals:
|
|
44
|
+
|
|
45
|
+
1. **Domain concepts** — 5+ metaphors or patterns from this product's world
|
|
46
|
+
2. **Color world** — 5+ colors that exist naturally in this domain
|
|
47
|
+
3. **Signature element** — one visual thing that could only belong to this product
|
|
48
|
+
4. **Defaults to avoid** — 3 generic choices to replace with intentional ones
|
|
49
|
+
|
|
50
|
+
Identity test: remove the product name. Can someone still identify what this is for?
|
|
51
|
+
|
|
52
|
+
## Step 3 — Design direction
|
|
53
|
+
|
|
54
|
+
Choose one direction. Never mix incompatible directions.
|
|
55
|
+
|
|
56
|
+
### For apps, dashboards, SaaS
|
|
57
|
+
- **Precision & Density** — dashboards, admin, dev tools. Borders-only, compact, cool slate.
|
|
58
|
+
- **Warmth & Approachability** — consumer apps, onboarding. Shadows, generous spacing, warm tones.
|
|
59
|
+
- **Sophistication & Trust** — fintech, enterprise. Cold palette, restrained layers, firm typography.
|
|
60
|
+
- **Premium Dark Platform** — premium dark product UI, controlled contrast, restrained layers, catalog cards, and clean navigation.
|
|
61
|
+
- **Minimal & Calm** — near-monochrome, whitespace as design element, hairline borders.
|
|
62
|
+
|
|
63
|
+
### For landing pages and sites
|
|
64
|
+
- **Clean & Luminous** — light surfaces, one strong accent, large confident headings, subtle fade-up animation.
|
|
65
|
+
- **Bold & Cinematic** — dark hero, full-bleed photography, gradient overlays, scroll reveals.
|
|
66
|
+
|
|
67
|
+
## Visual continuity
|
|
68
|
+
|
|
69
|
+
When the work spans more than one screen:
|
|
70
|
+
- shared surfaces must stay visually identical across screens
|
|
71
|
+
- token values must be consistent for the same purpose
|
|
72
|
+
- component variants must be reused, not reinvented
|
|
73
|
+
- depth strategy must stay consistent across screens
|
|
74
|
+
- when adding a new screen, explicitly note which existing components and tokens are being reused
|
|
75
|
+
|
|
76
|
+
## Non-site fallback
|
|
77
|
+
|
|
78
|
+
If `project_type≠site` and the user explicitly proceeds without a registered `design_skill`, use the fallback directions in this module and output:
|
|
79
|
+
- `ui-spec.md` with token block
|
|
80
|
+
- token ownership
|
|
81
|
+
- screen map
|
|
82
|
+
- component state matrix
|
|
83
|
+
- responsive rules
|
|
84
|
+
- handoff notes
|
|
85
|
+
|
|
86
|
+
## Working rules
|
|
87
|
+
- Stack first: use the project's existing design system before proposing custom UI.
|
|
88
|
+
- Ask about style only when the ambiguity would materially change the result.
|
|
89
|
+
- Define complete design tokens: spacing, typography, semantic colors, radius, and depth strategy.
|
|
90
|
+
- Declare token ownership explicitly.
|
|
91
|
+
- Commit to one depth strategy per surface type.
|
|
92
|
+
- Accessibility first: keyboard flow, visible focus rings, semantic HTML, and 4.5:1 contrast minimum.
|
|
93
|
+
- State completeness: default, hover, focus, active, disabled, loading, empty, error, success.
|
|
94
|
+
- Mobile-first: small screens defined before desktop enhancements.
|
|
95
|
+
- `prefers-reduced-motion` fallback required for any motion.
|
|
96
|
+
- Scope proportional to classification: MICRO → root HTML only, SMALL → spec + HTML, MEDIUM → full spec.
|
|
97
|
+
|
|
98
|
+
## Quality checks
|
|
99
|
+
- **Swap test** — would changing the typeface make this look like a different product?
|
|
100
|
+
- **Squint test** — does hierarchy survive when blurred?
|
|
101
|
+
- **Signature test** — can you name 5 design decisions unique to this product?
|
|
102
|
+
- **Wow test** — for landing pages only, would someone screenshot this and share it? If not, revise.
|
|
103
|
+
|
|
104
|
+
## Self-critique
|
|
105
|
+
|
|
106
|
+
Before delivering, check:
|
|
107
|
+
|
|
108
|
+
1. **Composition** — rhythm, intentional proportions, one clear focal point per screen
|
|
109
|
+
2. **Craft** — spacing on-grid, typography uses weight + tracking + size, surfaces whisper hierarchy
|
|
110
|
+
3. **Content** — real copy, real image URLs, coherent story from hero to final CTA
|
|
111
|
+
4. **Structure** — no placeholder text, no arbitrary pixel values, no hacks
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: "UI/UX design gate — context repair, design skill selection, isolation rules, and style ambiguity handling before visual direction is chosen."
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# UX/UI Design Gate
|
|
6
|
+
|
|
7
|
+
Load this module before any operation that creates or revises visual direction.
|
|
8
|
+
|
|
9
|
+
## Step 0 — Design skill gate
|
|
10
|
+
|
|
11
|
+
Read `.aioson/context/project.context.md` before deciding direction, theme, or density.
|
|
12
|
+
|
|
13
|
+
Rules:
|
|
14
|
+
- if `project.context.md` contains stale or inconsistent metadata that affects visual work, repair the objectively inferable fields before continuing
|
|
15
|
+
- if `design_skill` is already set, load `.aioson/skills/design/{design_skill}/SKILL.md` before making visual decisions
|
|
16
|
+
- when `design_skill` is set, treat that package as the single source of truth for visual language, typography, component rhythm, and page composition
|
|
17
|
+
- if `project_type=site` or `project_type=web_app` and `design_skill` is blank, ask the user which installed design skill to use before producing new visual direction
|
|
18
|
+
- if only one packaged design skill is installed, still ask for confirmation instead of auto-selecting it
|
|
19
|
+
- if the user chooses to proceed without one, state clearly: `Proceeding without a registered design skill.`
|
|
20
|
+
- never silently invent, swap, auto-pick, or mix design skills
|
|
21
|
+
- never use context inconsistency as a reason to leave the workflow
|
|
22
|
+
- when `design_skill` is set, do not load, reference, or apply visual rules from another design package
|
|
23
|
+
|
|
24
|
+
Once the gate is resolved:
|
|
25
|
+
- if the user gave an explicit theme or style preference, obey it
|
|
26
|
+
- otherwise infer the direction from product context and the selected design skill
|
|
27
|
+
- ask at most one short style question only when the ambiguity is material
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: "UI/UX research mode — visual benchmarking, domain patterns, anti-patterns, and directional hypotheses before design work begins."
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# UX/UI Research Mode
|
|
6
|
+
|
|
7
|
+
Activate via `@ux-ui research`.
|
|
8
|
+
|
|
9
|
+
## Step 1 — Gather context
|
|
10
|
+
|
|
11
|
+
Read all available artifacts:
|
|
12
|
+
- `project.context.md`
|
|
13
|
+
- `prd.md`
|
|
14
|
+
- `discovery.md`
|
|
15
|
+
- `architecture.md`
|
|
16
|
+
|
|
17
|
+
## Step 2 — Visual benchmarking
|
|
18
|
+
|
|
19
|
+
For the product domain, document:
|
|
20
|
+
|
|
21
|
+
1. **3–5 reference products** — what works, what does not, and one detail worth borrowing
|
|
22
|
+
2. **Visual patterns** — recurring layouts, interaction styles, or UI structures in the domain
|
|
23
|
+
3. **Anti-patterns** — common UI mistakes in the domain to avoid
|
|
24
|
+
4. **User expectations** — what the audience already understands visually
|
|
25
|
+
|
|
26
|
+
## Step 3 — Directional hypotheses
|
|
27
|
+
|
|
28
|
+
Propose 2–3 design directions. For each one include:
|
|
29
|
+
- direction name
|
|
30
|
+
- rationale
|
|
31
|
+
- mood description
|
|
32
|
+
- color palette sketch with 3–5 colors
|
|
33
|
+
- typography suggestion
|
|
34
|
+
- risk: what could go wrong with this direction
|
|
35
|
+
|
|
36
|
+
## Output
|
|
37
|
+
|
|
38
|
+
- write to `.aioson/context/ui-research.md`
|
|
39
|
+
- the default creation flow may consume this artifact when choosing direction
|