pixelcrew 0.2.2 → 0.2.6
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/README.md +389 -315
- package/bin/pixel-agents.js +306 -149
- package/package.json +3 -1
- package/skill/SKILL.md +185 -0
- package/skill/references/anti-ai-rubric.md +30 -0
- package/skill/references/anti-ai-slop-encyclopedia.md +181 -0
- package/skill/references/commands-reference.md +135 -0
- package/skill/references/testing-and-qa-strategy.md +25 -0
- package/skill/references/token-efficiency.md +20 -0
- package/src/adapters/adapter.interface.js +77 -0
- package/src/adapters/antigravity.js +138 -0
- package/src/adapters/claude-code.js +149 -0
- package/src/adapters/codex.js +131 -0
- package/src/adapters/cursor.js +133 -0
- package/src/adapters/generic.js +63 -0
- package/src/adapters/index.js +15 -0
- package/src/adapters/kiro.js +134 -0
- package/src/adapters/registry.js +150 -0
- package/src/backend/analyzer/complexity-analyzer.js +104 -0
- package/src/backend/analyzer/requirement-analyzer.js +213 -0
- package/src/backend/analyzer/threat-analyzer.js +122 -0
- package/src/backend/api/api-designer.js +90 -0
- package/src/backend/api/error-contract.js +132 -0
- package/src/backend/api/route-generator.js +92 -0
- package/src/backend/api/schema-generator.js +64 -0
- package/src/backend/architecture/adr-generator.js +62 -0
- package/src/backend/architecture/architecture-reasoner.js +119 -0
- package/src/backend/architecture/architecture-selector.js +57 -0
- package/src/backend/architecture/tradeoff-analyzer.js +92 -0
- package/src/backend/data/data-modeler.js +114 -0
- package/src/backend/data/index-analyzer.js +93 -0
- package/src/backend/data/query-analyzer.js +41 -0
- package/src/backend/data/schema-generator.js +92 -0
- package/src/backend/data/transaction-analyzer.js +49 -0
- package/src/backend/index.js +67 -0
- package/src/backend/observability/logging-engine.js +80 -0
- package/src/backend/observability/metrics-engine.js +31 -0
- package/src/backend/observability/tracing-engine.js +16 -0
- package/src/backend/patterns/pattern-registry.js +74 -0
- package/src/backend/patterns/pattern-selector.js +39 -0
- package/src/backend/patterns/tradeoff-engine.js +17 -0
- package/src/backend/performance/cache-analyzer.js +31 -0
- package/src/backend/performance/concurrency-analyzer.js +34 -0
- package/src/backend/performance/performance-engine.js +98 -0
- package/src/backend/performance/query-optimizer.js +16 -0
- package/src/backend/reliability/failure-analyzer.js +22 -0
- package/src/backend/reliability/idempotency-engine.js +56 -0
- package/src/backend/reliability/resilience-engine.js +141 -0
- package/src/backend/reliability/retry-analyzer.js +15 -0
- package/src/backend/security/auth-selector.js +33 -0
- package/src/backend/security/authorization-engine.js +90 -0
- package/src/backend/security/policy-engine.js +49 -0
- package/src/backend/security/secret-analyzer.js +39 -0
- package/src/backend/security/security-engine.js +122 -0
- package/src/backend/security/threat-model.js +59 -0
- package/src/backend/synthesis/backend-synthesizer.js +98 -0
- package/src/backend/synthesis/infrastructure-synthesizer.js +108 -0
- package/src/backend/synthesis/module-synthesizer.js +262 -0
- package/src/backend/validation/architecture-validator.js +70 -0
- package/src/backend/validation/backend-quality-validator.js +71 -0
- package/src/backend/validation/dependency-validator.js +20 -0
- package/src/backend/validation/performance-validator.js +38 -0
- package/src/backend/validation/security-validator.js +73 -0
- package/src/commands/adapt.js +105 -0
- package/src/commands/add.js +78 -0
- package/src/commands/animate.js +48 -0
- package/src/commands/assemble.js +57 -0
- package/src/commands/audit.js +93 -0
- package/src/commands/backend.js +125 -0
- package/src/commands/bento.js +25 -0
- package/src/commands/blueprint.js +65 -0
- package/src/commands/bolder.js +48 -0
- package/src/commands/boss-fight.js +60 -0
- package/src/commands/build.js +39 -0
- package/src/commands/calibrate.js +25 -0
- package/src/commands/chromatic.js +25 -0
- package/src/commands/clarify.js +52 -0
- package/src/commands/colorize.js +57 -0
- package/src/commands/command.interface.js +28 -0
- package/src/commands/commands.js +84 -0
- package/src/commands/craft.js +57 -0
- package/src/commands/crew.js +66 -0
- package/src/commands/critique.js +25 -0
- package/src/commands/de-slop.js +25 -0
- package/src/commands/delight.js +46 -0
- package/src/commands/deploy.js +42 -0
- package/src/commands/distill.js +48 -0
- package/src/commands/doctor.js +89 -0
- package/src/commands/document.js +83 -0
- package/src/commands/eight-bit.js +25 -0
- package/src/commands/extract.js +75 -0
- package/src/commands/fix.js +46 -0
- package/src/commands/harden.js +85 -0
- package/src/commands/index.js +67 -0
- package/src/commands/install.js +75 -0
- package/src/commands/layout.js +48 -0
- package/src/commands/live.js +44 -0
- package/src/commands/manifest.js +25 -0
- package/src/commands/office.js +25 -0
- package/src/commands/onboard.js +46 -0
- package/src/commands/oneshot.js +60 -0
- package/src/commands/optimize.js +46 -0
- package/src/commands/overdrive.js +46 -0
- package/src/commands/parser.js +143 -0
- package/src/commands/pixelcrew.js +96 -0
- package/src/commands/plan.js +66 -0
- package/src/commands/polish.js +45 -0
- package/src/commands/quieter.js +48 -0
- package/src/commands/recap.js +358 -0
- package/src/commands/registry.js +353 -0
- package/src/commands/render.js +26 -0
- package/src/commands/retrofit.js +25 -0
- package/src/commands/review.js +118 -0
- package/src/commands/roster.js +25 -0
- package/src/commands/sentinel.js +25 -0
- package/src/commands/shape.js +66 -0
- package/src/commands/skills.js +57 -0
- package/src/commands/status.js +48 -0
- package/src/commands/stop.js +50 -0
- package/src/commands/sync.js +58 -0
- package/src/commands/typeset.js +58 -0
- package/src/commands/warp.js +25 -0
- package/src/core/agent-runtime.js +94 -0
- package/src/core/event-bus.js +98 -0
- package/src/core/index.js +9 -0
- package/src/core/orchestrator.js +234 -0
- package/src/core/scheduler.js +124 -0
- package/src/core/task-graph.js +185 -0
- package/src/dashboard/app.js +1172 -30
- package/src/dashboard/index.html +223 -23
- package/src/dashboard/styles.css +870 -0
- package/src/index.js +16 -0
- package/src/orchestrator/artifact-graph.js +104 -0
- package/src/orchestrator/ast-normalizer.js +147 -0
- package/src/orchestrator/code-generator.js +846 -0
- package/src/orchestrator/design-engine.js +203 -0
- package/src/orchestrator/engine.js +318 -39
- package/src/orchestrator/oneshot.js +351 -1561
- package/src/orchestrator/ontology.js +394 -0
- package/src/orchestrator/planner.js +302 -0
- package/src/orchestrator/repair-planner.js +67 -0
- package/src/orchestrator/requirement-contract.js +177 -0
- package/src/orchestrator/requirement-validator.js +39 -0
- package/src/orchestrator/semantic-engine.js +582 -0
- package/src/orchestrator/semantic-reviewer.js +179 -0
- package/src/orchestrator/skills-registry.js +194 -0
- package/src/orchestrator/task-planner.js +111 -0
- package/src/orchestrator/task-queue.js +128 -0
- package/src/orchestrator/telemetry.js +209 -0
- package/src/orchestrator/ui-synthesizer.js +245 -0
- package/src/orchestrator/visual-critic.js +106 -0
- package/src/policies/architecture/layering.policy.js +14 -0
- package/src/policies/performance/indexing.policy.js +13 -0
- package/src/policies/reliability/resilience.policy.js +13 -0
- package/src/policies/security/auth.policy.js +31 -0
- package/src/protocol/agent.js +124 -0
- package/src/protocol/event.js +78 -0
- package/src/protocol/index.js +8 -0
- package/src/protocol/skill.js +54 -0
- package/src/protocol/task.js +100 -0
- package/src/scaffold/claude-generator.js +60 -0
- package/src/scaffold/commands-catalog.js +321 -0
- package/src/scaffold/cursor-generator.js +74 -0
- package/src/scaffold/ide-rules.js +133 -0
- package/src/scaffold/init.js +415 -91
- package/src/scaffold/installer.js +571 -0
- package/src/scaffold/kiro-generator.js +86 -0
- package/src/scaffold/skills-bundle.js +520 -0
- package/src/scaffold/templates.js +57 -4
- package/src/scaffold/workstations.js +364 -0
- package/src/server/server.js +292 -42
- package/src/utils/fs-safe.js +168 -0
- package/src/utils/markdown-report.js +175 -0
|
@@ -0,0 +1,321 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* PIXEL CREW — Canonical Floor 42 Swarm Command Catalog
|
|
3
|
+
*
|
|
4
|
+
* Central registry of all 24 Floor 42 multi-agent slash commands, including
|
|
5
|
+
* descriptions, argument signatures, aliases, execution prompts, and categories.
|
|
6
|
+
* Used by Claude Code, Cursor, Kiro, Antigravity, and PixelCrew command generators.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
export const FLOOR42_COMMANDS = [
|
|
10
|
+
// 1. 🚀 Floor 42 Creation & Architecture
|
|
11
|
+
{
|
|
12
|
+
name: 'assemble',
|
|
13
|
+
aliases: ['craft', 'sprint'],
|
|
14
|
+
category: 'architecture',
|
|
15
|
+
description: 'Full shape-then-build multi-agent sprint pipeline from brief to production code',
|
|
16
|
+
usage: '/assemble <prompt>',
|
|
17
|
+
prompt: `Execute the PixelCrew /assemble sprint pipeline for: $ARGUMENTS.
|
|
18
|
+
1. UX Planner shapes the information architecture, asymmetric section topologies, and component breakdown.
|
|
19
|
+
2. Design System Architect establishes fluid clamp() typography scales, curated HSL color tokens, and elevation surfaces.
|
|
20
|
+
3. Frontend & Backend Engineers synthesize production-grade code (Next.js / TypeScript) with zero AI slop.
|
|
21
|
+
4. QA Engineer verifies against the 6-dimension Anti-AI rubric (score >= 8.5/10) and checks responsiveness.`
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
name: 'blueprint',
|
|
25
|
+
aliases: ['shape', 'spec'],
|
|
26
|
+
category: 'architecture',
|
|
27
|
+
description: 'Dynamic DAG planning, wireframes & specifications before writing code',
|
|
28
|
+
usage: '/blueprint <prompt>',
|
|
29
|
+
prompt: `Generate a comprehensive architectural blueprint for: $ARGUMENTS.
|
|
30
|
+
1. Define asymmetric section topologies, component breakdown, and state management hierarchy.
|
|
31
|
+
2. Compile a dynamic DAG task graph with explicit dependencies and agent assignments.
|
|
32
|
+
3. Specify fluid typography clamp() formulas, HSL surface tiers, and WCAG AA/AAA accessibility constraints.`
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
name: 'boss-fight',
|
|
36
|
+
aliases: ['fix', 'debug'],
|
|
37
|
+
category: 'architecture',
|
|
38
|
+
description: 'Targeted swarm bug blitz to isolate, repair, and verify breaking issues',
|
|
39
|
+
usage: '/boss-fight <issue description>',
|
|
40
|
+
prompt: `Engage PixelCrew Boss Fight bug blitz for: $ARGUMENTS.
|
|
41
|
+
1. Reproduce and isolate the root cause with stack trace inspection and AST analysis.
|
|
42
|
+
2. Apply targeted fix with minimal blast radius and zero regressions.
|
|
43
|
+
3. Verify resolution, run regression test suite, and document prevention measures.`
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
name: 'manifest',
|
|
47
|
+
aliases: ['document', 'doc'],
|
|
48
|
+
category: 'architecture',
|
|
49
|
+
description: 'Reverse-engineers active project code into DESIGN.md and PRODUCT.md architectural specifications',
|
|
50
|
+
usage: '/manifest [--dry-run]',
|
|
51
|
+
prompt: `Inspect codebase AST and generate comprehensive architectural documentation:
|
|
52
|
+
1. Reverse-engineer design system tokens, color palettes, and typography into DESIGN.md.
|
|
53
|
+
2. Compile product vision, user personas, architecture stack, and feature roadmap into PRODUCT.md.
|
|
54
|
+
3. Format output with clear markdown headings and executable specifications.`
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
name: 'retrofit',
|
|
58
|
+
aliases: ['extract', 'tokens'],
|
|
59
|
+
category: 'architecture',
|
|
60
|
+
description: 'Extracts reusable UI primitives, Tailwind tokens, and CSS variables into the design system',
|
|
61
|
+
usage: '/retrofit [--dry-run]',
|
|
62
|
+
prompt: `Analyze active UI components and extract design system tokens:
|
|
63
|
+
1. Identify recurring hardcoded hex colors, spacing values, and font sizes across components.
|
|
64
|
+
2. Consolidate them into standardized CSS custom properties / Tailwind tokens in globals.css.
|
|
65
|
+
3. Refactor components to consume centralized tokens, ensuring consistent visual surface tiers.`
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
name: 'init',
|
|
69
|
+
aliases: ['setup'],
|
|
70
|
+
category: 'architecture',
|
|
71
|
+
description: 'Scans codebase architecture, configures .pixel-crew/, and adapts agent squad',
|
|
72
|
+
usage: '/init [--yes] [--provider <name>]',
|
|
73
|
+
prompt: `Initialize and adapt PixelCrew workspace:
|
|
74
|
+
1. Analyze codebase frameworks, languages, ORM models, testing suites, and styling systems.
|
|
75
|
+
2. Generate context-aware configuration in .pixel-crew/ (config.json, context.json, state.json).
|
|
76
|
+
3. Synchronize agent skills and rules across detected IDE environments.`
|
|
77
|
+
},
|
|
78
|
+
|
|
79
|
+
// 2. 🎨 Pixel Aesthetic & Anti-AI Direction
|
|
80
|
+
{
|
|
81
|
+
name: 'render',
|
|
82
|
+
aliases: ['critique', 'review-ui'],
|
|
83
|
+
category: 'aesthetic',
|
|
84
|
+
description: '6-dimension Anti-AI design & UX review (Originality, Hierarchy, Typography, Layout, Brand, Slop Penalty >= 8.5/10)',
|
|
85
|
+
usage: '/render',
|
|
86
|
+
prompt: `Run a rigorous 6-dimension Anti-AI design review:
|
|
87
|
+
1. Score Originality, Visual Hierarchy, Typography, Layout Density, Brand Consistency, and AI Slop Penalty.
|
|
88
|
+
2. Audit against the 64-pattern Anti-AI Slop Checklist (no purple gradients, no uniform 3-card grids, no fake sparkles).
|
|
89
|
+
3. If score < 8.5/10, output concrete, actionable code adjustments to reach human-grade excellence.`
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
name: '8bit',
|
|
93
|
+
aliases: ['delight', 'retro', 'joy'],
|
|
94
|
+
category: 'aesthetic',
|
|
95
|
+
description: 'Retro arcade delight: procedural 8-bit Web Audio chimes, CRT phosphor scanlines, tactile joy',
|
|
96
|
+
usage: '/8bit',
|
|
97
|
+
prompt: `Inject retro 8-bit arcade delight into the interface:
|
|
98
|
+
1. Add Web Audio API synthesis for subtle interactive audio feedback on clicks, submits, and tabs.
|
|
99
|
+
2. Apply optional CRT phosphor scanline overlays and retro pixel accents with CSS.
|
|
100
|
+
3. Ensure all effects are lightweight, zero-dependency, and respect prefers-reduced-motion.`
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
name: 'overdrive',
|
|
104
|
+
aliases: ['fx', 'extreme'],
|
|
105
|
+
category: 'aesthetic',
|
|
106
|
+
description: 'High-end technical effects: WebGL/Canvas shaders, interactive terminal console, reactive backgrounds',
|
|
107
|
+
usage: '/overdrive',
|
|
108
|
+
prompt: `Enable PixelCrew Overdrive technical effects:
|
|
109
|
+
1. Inject lightweight canvas/WebGL reactive backgrounds and high-contrast technical data visualizations.
|
|
110
|
+
2. Embed an interactive keyboard-driven CLI drawer or terminal console for developer exploration.
|
|
111
|
+
3. Maintain 60fps performance with requestAnimationFrame throttling and offscreen canvas rendering.`
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
name: 'chromatic',
|
|
115
|
+
aliases: ['colorize', 'palette'],
|
|
116
|
+
category: 'aesthetic',
|
|
117
|
+
description: 'Injects curated HSL color tokens, dark mode elevation surfaces, atmospheric accent tiers',
|
|
118
|
+
usage: '/chromatic [palette-name]',
|
|
119
|
+
prompt: `Apply PixelCrew Chromatic color strategy for: $ARGUMENTS.
|
|
120
|
+
1. Define coherent HSL color tokens for primary, accent, and surface-0 through surface-3.
|
|
121
|
+
2. Eliminate generic purple/cyan neon glow on flat black.
|
|
122
|
+
3. Guarantee WCAG AA/AAA contrast compliance across all light and dark mode surfaces.`
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
name: 'typeset',
|
|
126
|
+
aliases: ['typography', 'fonts'],
|
|
127
|
+
category: 'aesthetic',
|
|
128
|
+
description: 'Mathematical fluid clamp() type scales, distinct font pairings, expressive hierarchy',
|
|
129
|
+
usage: '/typeset [preset]',
|
|
130
|
+
prompt: `Apply PixelCrew Typeset typography strategy for: $ARGUMENTS.
|
|
131
|
+
1. Implement fluid clamp() font scales for display headlines, subheadings, and body copy.
|
|
132
|
+
2. Pair a distinctive display typeface with a readable monospace or sans-serif body font.
|
|
133
|
+
3. Enforce line lengths (max 65ch) and generous leading (1.5–1.7x) for optimal readability.`
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
name: 'bento',
|
|
137
|
+
aliases: ['layout', 'grid'],
|
|
138
|
+
category: 'aesthetic',
|
|
139
|
+
description: 'Reorganizes sections into asymmetric Bento grids and dynamic viewport flow',
|
|
140
|
+
usage: '/bento [section]',
|
|
141
|
+
prompt: `Restructure layout into Asymmetric Bento grid patterns for: $ARGUMENTS.
|
|
142
|
+
1. Break monotonous multi-card grids into varying column spans (e.g. 8-col hero card + 4-col stat stack).
|
|
143
|
+
2. Create intentional visual anchors with varying card weights, depths, and heights.
|
|
144
|
+
3. Guarantee zero horizontal overflow and seamless responsive mobile stacking.`
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
name: 'de-slop',
|
|
148
|
+
aliases: ['clarify', 'clean-copy'],
|
|
149
|
+
category: 'aesthetic',
|
|
150
|
+
description: 'Strips AI cliché copywriting and generic templates with grounded value propositions',
|
|
151
|
+
usage: '/de-slop [section]',
|
|
152
|
+
prompt: `Run PixelCrew De-Slop copy and design sanitization for: $ARGUMENTS.
|
|
153
|
+
1. Remove generic AI buzzwords ("Streamline your workflow", "Elevate innovation", "Seamless integration").
|
|
154
|
+
2. Replace vague claims with concrete, domain-grounded engineering metrics and authentic features.
|
|
155
|
+
3. Remove decorative gridlines, floating pill kickers, and synthetic template crutches.`
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
name: 'bolder',
|
|
159
|
+
aliases: ['punch', 'dramatic'],
|
|
160
|
+
category: 'aesthetic',
|
|
161
|
+
description: 'Amplifies visual energy with dramatic editorial contrast, bold typography, and punchy presence',
|
|
162
|
+
usage: '/bolder',
|
|
163
|
+
prompt: `Amplify visual energy:
|
|
164
|
+
1. Increase contrast ratio between surfaces and text.
|
|
165
|
+
2. Scale up display headlines and introduce bold geometric framing.
|
|
166
|
+
3. Tighten section groupings for high-impact visual presence and editorial confidence.`
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
name: 'quieter',
|
|
170
|
+
aliases: ['calm', 'minimal'],
|
|
171
|
+
category: 'aesthetic',
|
|
172
|
+
description: 'Restores clean minimalist balance, generous whitespace, and calm hierarchy',
|
|
173
|
+
usage: '/quieter',
|
|
174
|
+
prompt: `Apply minimalist calm to the layout:
|
|
175
|
+
1. Increase section padding and breathing whitespace.
|
|
176
|
+
2. Subdue secondary text and remove non-essential decorative elements.
|
|
177
|
+
3. Focus attention on core readable content and primary call to actions.`
|
|
178
|
+
},
|
|
179
|
+
|
|
180
|
+
// 3. 🛡️ Production Hardening & SRE
|
|
181
|
+
{
|
|
182
|
+
name: 'sentinel',
|
|
183
|
+
aliases: ['harden', 'secure'],
|
|
184
|
+
category: 'hardening',
|
|
185
|
+
description: 'Security & resilience pass: OWASP checks, SQL injection prevention, RFC 7807 envelopes, rate limiting',
|
|
186
|
+
usage: '/sentinel',
|
|
187
|
+
prompt: `Execute PixelCrew Sentinel security audit:
|
|
188
|
+
1. Audit input validation, sanitize queries, and check authentication/authorization middleware.
|
|
189
|
+
2. Ensure RFC 7807 Problem Details error envelopes and rate limiting on API endpoints.
|
|
190
|
+
3. Verify CSP headers, CORS policies, secure cookies, and secret handling.`
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
name: 'audit',
|
|
194
|
+
aliases: ['sre-audit', 'verify'],
|
|
195
|
+
category: 'hardening',
|
|
196
|
+
description: 'SRE quality benchmark: a11y WCAG AA/AAA, Core Web Vitals, test suites',
|
|
197
|
+
usage: '/audit',
|
|
198
|
+
prompt: `Run PixelCrew technical quality audit:
|
|
199
|
+
1. Verify WCAG 2.1/2.2 AA/AAA accessibility (semantic HTML, focus rings, contrast).
|
|
200
|
+
2. Measure Core Web Vitals (LCP, CLS, INP) and layout shift risks.
|
|
201
|
+
3. Check test coverage, error boundaries, and production readiness.`
|
|
202
|
+
},
|
|
203
|
+
{
|
|
204
|
+
name: 'warp',
|
|
205
|
+
aliases: ['optimize', 'perf'],
|
|
206
|
+
category: 'hardening',
|
|
207
|
+
description: 'Full-stack performance tuning: streaming SSR, bundle minification, AST prompt caching (~72% savings)',
|
|
208
|
+
usage: '/warp',
|
|
209
|
+
prompt: `Apply PixelCrew Warp performance optimizations:
|
|
210
|
+
1. Optimize bundle size, lazy-load heavy dependencies, and configure streaming SSR.
|
|
211
|
+
2. Tune database queries, eliminate N+1 bottlenecks, and configure multi-tier caching.
|
|
212
|
+
3. Implement AST prompt pruning for ~72% token savings.`
|
|
213
|
+
},
|
|
214
|
+
{
|
|
215
|
+
name: 'polish',
|
|
216
|
+
aliases: ['ship-ready', 'finalize'],
|
|
217
|
+
category: 'hardening',
|
|
218
|
+
description: 'Final shipping readiness pass: design system token alignment, type checks, visual cleanup',
|
|
219
|
+
usage: '/polish',
|
|
220
|
+
prompt: `Perform PixelCrew shipping polish pass:
|
|
221
|
+
1. Verify strict adherence to design system tokens and fluid typography clamp() scales.
|
|
222
|
+
2. Resolve all TypeScript errors, lint warnings, and unhandled edge cases.
|
|
223
|
+
3. Ensure micro-interactions, hover states, and smooth transitions are pixel-perfect.`
|
|
224
|
+
},
|
|
225
|
+
{
|
|
226
|
+
name: 'calibrate',
|
|
227
|
+
aliases: ['adapt', 'responsive'],
|
|
228
|
+
category: 'hardening',
|
|
229
|
+
description: 'Optimizes responsive layouts from 360px mobile to 4K ultra-wide with fluid viewports',
|
|
230
|
+
usage: '/calibrate [viewport]',
|
|
231
|
+
prompt: `Calibrate layout responsiveness for: $ARGUMENTS.
|
|
232
|
+
1. Verify breakpoints: 360px (mobile), 768px (tablet), 1024px (desktop), 1440px+ (ultrawide).
|
|
233
|
+
2. Ensure touch targets >= 44px on mobile devices.
|
|
234
|
+
3. Prevent layout breaking, text clipping, and horizontal scrollbars.`
|
|
235
|
+
},
|
|
236
|
+
{
|
|
237
|
+
name: 'onboard',
|
|
238
|
+
aliases: ['first-run'],
|
|
239
|
+
category: 'hardening',
|
|
240
|
+
description: 'Synthesizes first-run onboarding flows, empty state illustrations, user activation pathways',
|
|
241
|
+
usage: '/onboard',
|
|
242
|
+
prompt: `Design and implement onboarding user experience:
|
|
243
|
+
1. Add guided first-run experience with interactive step progression.
|
|
244
|
+
2. Create informative empty states with clear calls to action.
|
|
245
|
+
3. Store onboarding state in local storage or session.`
|
|
246
|
+
},
|
|
247
|
+
|
|
248
|
+
// 4. 🏢 Floor 42 Operations
|
|
249
|
+
{
|
|
250
|
+
name: 'recap',
|
|
251
|
+
aliases: ['summary', 'changelog', 'whatdone'],
|
|
252
|
+
category: 'operations',
|
|
253
|
+
description: 'Generates a token-optimized recap of recent git changes, commits, diff stats, and file operations',
|
|
254
|
+
usage: '/recap [count]',
|
|
255
|
+
prompt: `Execute a token-optimized session recap for the last $ARGUMENTS commits:
|
|
256
|
+
1. Analyze recent git commits, authors, and timestamps.
|
|
257
|
+
2. Calculate diff statistics (insertions, deletions, files modified).
|
|
258
|
+
3. Group and display files categorized by added (+), modified (~), deleted (-), and renamed (→).
|
|
259
|
+
4. Output a compact, high-density overview without redundant prose.`
|
|
260
|
+
},
|
|
261
|
+
{
|
|
262
|
+
name: 'office',
|
|
263
|
+
aliases: ['live', 'dashboard'],
|
|
264
|
+
category: 'operations',
|
|
265
|
+
description: 'Launches Floor 42 live startup office visual dashboard at http://localhost:4747',
|
|
266
|
+
usage: '/office [--port 4747]',
|
|
267
|
+
prompt: `Launch PixelCrew Floor 42 live startup office visual dashboard at http://localhost:4747 with real-time agent sprite animations, task streams, and live site preview.`
|
|
268
|
+
},
|
|
269
|
+
{
|
|
270
|
+
name: 'roster',
|
|
271
|
+
aliases: ['crew', 'agents'],
|
|
272
|
+
category: 'operations',
|
|
273
|
+
description: 'Inspects active agent squad roster, workstations, and telemetry state',
|
|
274
|
+
usage: '/roster [list|spawn]',
|
|
275
|
+
prompt: `Display PixelCrew active squad roster: Creative Director, UX Planner, Design System Architect, Frontend Engineer, Backend Engineer, Performance SRE, Security Sentinel, QA Automation.`
|
|
276
|
+
},
|
|
277
|
+
{
|
|
278
|
+
name: 'status',
|
|
279
|
+
aliases: ['progress', 'info'],
|
|
280
|
+
category: 'operations',
|
|
281
|
+
description: 'Displays orchestration progress, active sprint metrics, and swarm state',
|
|
282
|
+
usage: '/status',
|
|
283
|
+
prompt: `Inspect and report current PixelCrew swarm status, active task progress, and sprint metrics.`
|
|
284
|
+
},
|
|
285
|
+
{
|
|
286
|
+
name: 'doctor',
|
|
287
|
+
aliases: ['diagnose', 'check'],
|
|
288
|
+
category: 'operations',
|
|
289
|
+
description: 'Diagnoses local environment, toolchain verification, and coding agent provider runtimes',
|
|
290
|
+
usage: '/doctor',
|
|
291
|
+
prompt: `Run comprehensive environment diagnostics: check Node.js, Git, local CLI runtimes, and detected AI IDE providers.`
|
|
292
|
+
},
|
|
293
|
+
{
|
|
294
|
+
name: 'sync',
|
|
295
|
+
aliases: ['re-sync'],
|
|
296
|
+
category: 'operations',
|
|
297
|
+
description: 'Synchronizes workspace skills and slash commands across detected agent IDEs',
|
|
298
|
+
usage: '/sync [--dry-run]',
|
|
299
|
+
prompt: `Synchronize PixelCrew canonical skills, command palettes, and rules across all detected IDEs (.claude, .cursor, .kiro, .agents).`
|
|
300
|
+
},
|
|
301
|
+
{
|
|
302
|
+
name: 'pixelcrew',
|
|
303
|
+
aliases: ['commands', 'help'],
|
|
304
|
+
category: 'operations',
|
|
305
|
+
description: 'Floor 42 Master Multi-Agent Command Suite Dispatcher',
|
|
306
|
+
usage: '/pixelcrew <command> [args]',
|
|
307
|
+
prompt: `Floor 42 Master Command Dispatcher. Type /pixelcrew <command> or direct slash commands (e.g. /recap, /assemble, /blueprint, /render, /boss-fight, /sentinel, /audit, /warp, /polish) to orchestrate the 8-agent swarm.`
|
|
308
|
+
}
|
|
309
|
+
];
|
|
310
|
+
|
|
311
|
+
/**
|
|
312
|
+
* Finds command by exact name or alias
|
|
313
|
+
*/
|
|
314
|
+
export function findCommand(nameOrAlias = '') {
|
|
315
|
+
const clean = nameOrAlias.replace(/^\//, '').toLowerCase();
|
|
316
|
+
for (const cmd of FLOOR42_COMMANDS) {
|
|
317
|
+
if (cmd.name === clean) return cmd;
|
|
318
|
+
if (cmd.aliases && cmd.aliases.includes(clean)) return cmd;
|
|
319
|
+
}
|
|
320
|
+
return null;
|
|
321
|
+
}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* PIXEL CREW — Cursor IDE Slash Commands & Rules Generator
|
|
3
|
+
*
|
|
4
|
+
* Generates .cursor/commands/*.md, .cursor/rules/pixelcrew.mdc, and .cursorrules
|
|
5
|
+
* so that all 24 Floor 42 commands are recognized in Cursor Composer and chat.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
import path from 'node:path';
|
|
9
|
+
import { FLOOR42_COMMANDS } from './commands-catalog.js';
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Generates all Cursor IDE command and rule files
|
|
13
|
+
*/
|
|
14
|
+
export function generateCursorFiles(targetDir, isGlobal = false) {
|
|
15
|
+
const baseDir = isGlobal ? targetDir : path.join(targetDir, '.cursor');
|
|
16
|
+
const files = [];
|
|
17
|
+
|
|
18
|
+
// 1. Generate individual command markdown files in .cursor/commands/
|
|
19
|
+
for (const cmd of FLOOR42_COMMANDS) {
|
|
20
|
+
const cmdPath = path.join(baseDir, 'commands', `${cmd.name}.md`);
|
|
21
|
+
const cmdContent = `---
|
|
22
|
+
description: ${cmd.description}
|
|
23
|
+
---
|
|
24
|
+
|
|
25
|
+
# /${cmd.name}
|
|
26
|
+
|
|
27
|
+
${cmd.prompt}
|
|
28
|
+
`;
|
|
29
|
+
files.push({ path: cmdPath, content: cmdContent });
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
// 2. Cursor MDC Rules
|
|
33
|
+
const cursorMdcContent = `---
|
|
34
|
+
description: PixelCrew Autonomous Multi-Agent Engineering Swarm & Anti-AI Design Suite
|
|
35
|
+
globs: *
|
|
36
|
+
alwaysApply: true
|
|
37
|
+
---
|
|
38
|
+
|
|
39
|
+
# 🏢 PixelCrew — Autonomous Multi-Agent Engineering Swarm (Floor 42)
|
|
40
|
+
|
|
41
|
+
When the user invokes \`/pixelcrew <command>\`, \`@pixelcrew\`, or direct slash commands (\`/assemble\`, \`/blueprint\`, \`/boss-fight\`, \`/render\`, \`/recap\`, \`/sentinel\`, \`/audit\`, \`/warp\`, \`/polish\`, etc.):
|
|
42
|
+
|
|
43
|
+
## ⚡ Available Swarm Commands:
|
|
44
|
+
${FLOOR42_COMMANDS.map(c => `- \`/${c.name}\`: ${c.description}`).join('\n')}
|
|
45
|
+
|
|
46
|
+
## 🛡️ Anti-AI Slop Enforcement:
|
|
47
|
+
- Enforce intentional asymmetry (Bento grids), fluid clamp() typography, and high-contrast surface tiers.
|
|
48
|
+
- Ban generic AI tropes: purple gradient blobs, floating fake sparkles, uniform card repetition, and cliché buzzwords.
|
|
49
|
+
`;
|
|
50
|
+
|
|
51
|
+
files.push({ path: path.join(baseDir, 'rules', 'pixelcrew.mdc'), content: cursorMdcContent });
|
|
52
|
+
|
|
53
|
+
// 3. Workspace .cursorrules
|
|
54
|
+
if (!isGlobal) {
|
|
55
|
+
const cursorRulesContent = `# 🏢 PixelCrew Swarm Rules for Cursor
|
|
56
|
+
|
|
57
|
+
You are integrated with PixelCrew, an autonomous multi-agent engineering swarm (Floor 42, Pixel Corps HQ).
|
|
58
|
+
Support \`/pixelcrew <command>\`, \`@pixelcrew\`, and direct slash commands:
|
|
59
|
+
|
|
60
|
+
## ⚡ Available Slash Commands:
|
|
61
|
+
${FLOOR42_COMMANDS.map(c => `- \`/${c.name}\` — ${c.description}`).join('\n')}
|
|
62
|
+
|
|
63
|
+
## 🛡️ Anti-AI Slop Directive:
|
|
64
|
+
- Never generate purple/cyan glowing mesh gradient blobs on flat black cards.
|
|
65
|
+
- Never generate repetitive 3-column identical card grids. Use asymmetric Bento layouts.
|
|
66
|
+
- Never use placeholder marketing buzzwords (*"Elevate your workflow"*, *"Seamlessly innovate"*).
|
|
67
|
+
- Enforce mathematical fluid \`clamp()\` typography and WCAG AA/AAA contrast ratios.
|
|
68
|
+
`;
|
|
69
|
+
|
|
70
|
+
files.push({ path: path.join(targetDir, '.cursorrules'), content: cursorRulesContent });
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
return files;
|
|
74
|
+
}
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* PIXEL CREW — Multi-IDE Rules & Workflow Generator
|
|
3
|
+
*
|
|
4
|
+
* Generates configuration files, rules, prompts, and workflows for:
|
|
5
|
+
* - Kiro AI (.kiro/workflows/*.md, .kiro/prompts/*.md, .kiro/rules/, .kirorules)
|
|
6
|
+
* - Cursor AI (.cursor/commands/*.md, .cursorrules, .cursor/rules/pixelcrew.mdc)
|
|
7
|
+
* - Google Antigravity (.agents/skills/, .agents/rules/, AGENTS.md, GEMINI.md)
|
|
8
|
+
* - Claude Code (.claude/commands/*.md, .claude/skills/, CLAUDE.md, .claude-plugin/plugin.json)
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
import path from 'node:path';
|
|
12
|
+
import { FLOOR42_COMMANDS } from './commands-catalog.js';
|
|
13
|
+
import { generateCursorFiles } from './cursor-generator.js';
|
|
14
|
+
import { generateClaudeFiles } from './claude-generator.js';
|
|
15
|
+
|
|
16
|
+
export { generateCursorFiles, generateClaudeFiles };
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* Generates Google Antigravity configuration and rules files (AGENTS.md, GEMINI.md, .agents/rules/pixelcrew.md)
|
|
20
|
+
*/
|
|
21
|
+
export function generateAntigravityFiles(targetDir, isGlobal = false) {
|
|
22
|
+
const files = [];
|
|
23
|
+
|
|
24
|
+
const agentsMdContent = `# 🏢 PixelCrew — Autonomous Multi-Agent Engineering Swarm
|
|
25
|
+
|
|
26
|
+
You are integrated with **PixelCrew (Floor 42, Pixel Corps HQ)**, an autonomous multi-agent engineering swarm.
|
|
27
|
+
|
|
28
|
+
## ⚡ Available Slash Commands & Instructions
|
|
29
|
+
|
|
30
|
+
When the user prompts in chat with \`/pixelcrew <command>\`, \`/<command>\`, or requests full-stack tasks:
|
|
31
|
+
|
|
32
|
+
### 1. 🚀 Floor 42 Creation & Architecture
|
|
33
|
+
- \`/pixelcrew assemble [prompt]\` (or \`/assemble\`): Full shape-then-build multi-agent sprint pipeline.
|
|
34
|
+
- \`/pixelcrew blueprint [prompt]\` (or \`/blueprint\`): Plans UX section topologies, wireframes & dynamic DAG task graphs.
|
|
35
|
+
- \`/pixelcrew boss-fight <issue>\` (or \`/boss-fight\`, \`/fix\`): Targeted swarm bug blitz to isolate and repair breaking issues.
|
|
36
|
+
- \`/pixelcrew manifest\`: Reverse-engineers active code into \`DESIGN.md\` and \`PRODUCT.md\` architectural specifications.
|
|
37
|
+
- \`/pixelcrew retrofit\`: Extracts reusable UI primitives, Tailwind tokens, and CSS variables into design system.
|
|
38
|
+
- \`/pixelcrew init\`: Scans codebase architecture, configures \`.pixel-crew/\`, and adapts agent squad.
|
|
39
|
+
|
|
40
|
+
### 2. 🎨 Pixel Aesthetic & Anti-AI Direction
|
|
41
|
+
- \`/pixelcrew render\`: 6-dimension Anti-AI design review (Originality, Hierarchy, Typography, Layout, Brand, Slop Penalty >= 8.5/10).
|
|
42
|
+
- \`/pixelcrew 8bit\`: Retro arcade delight: Web Audio chimes, CRT scanlines, and tactile feedback.
|
|
43
|
+
- \`/pixelcrew overdrive\`: WebGL/Canvas shaders, interactive terminal shell, reactive backgrounds.
|
|
44
|
+
- \`/pixelcrew chromatic [palette]\`: Curated HSL color tokens, dark mode elevation surfaces.
|
|
45
|
+
- \`/pixelcrew typeset [preset]\`: Mathematical fluid \`clamp()\` type scales & expressive hierarchy.
|
|
46
|
+
- \`/pixelcrew bento [section]\`: Asymmetric Bento grid layouts & dynamic viewport flow.
|
|
47
|
+
- \`/pixelcrew de-slop [section]\`: Strip generic AI cliché copywriting with grounded technical value propositions.
|
|
48
|
+
- \`/pixelcrew bolder\` / \`/pixelcrew quieter\`: Amplify visual punch or restore calm minimalist balance.
|
|
49
|
+
|
|
50
|
+
### 3. 🛡️ Production Hardening & SRE
|
|
51
|
+
- \`/pixelcrew sentinel\`: OWASP security checks, SQL injection prevention, RFC 7807 error envelopes, rate limiting.
|
|
52
|
+
- \`/pixelcrew audit\`: WCAG AA/AAA accessibility, Core Web Vitals (LCP < 0.6s), Playwright E2E journeys.
|
|
53
|
+
- \`/pixelcrew warp\`: Streaming SSR, bundle minification, AST prompt caching (~72% token savings).
|
|
54
|
+
- \`/pixelcrew polish\`: Shipping readiness pass, strict type checking, and design system token alignment.
|
|
55
|
+
- \`/pixelcrew calibrate [viewport]\`: Responsive viewports from 360px mobile to 4K desktop.
|
|
56
|
+
- \`/pixelcrew onboard\`: First-run onboarding flows, empty state illustrations, user activation.
|
|
57
|
+
|
|
58
|
+
### 4. 🏢 Floor 42 Operations
|
|
59
|
+
- \`/pixelcrew recap [count]\` (or \`/recap\`): Compact git changelog and diff stats.
|
|
60
|
+
- \`/pixelcrew office\`: Live startup office dashboard at \`http://localhost:4747\`.
|
|
61
|
+
- \`/pixelcrew roster\`: Active squad workstations and sprite telemetry.
|
|
62
|
+
- \`/pixelcrew doctor\`: System diagnostics and provider verification.
|
|
63
|
+
|
|
64
|
+
## 🛡️ Anti-AI Slop Rules
|
|
65
|
+
- Reject generic AI purple/cyan glowing blobs on flat black cards.
|
|
66
|
+
- Reject uniform 3-card repetition. Use Asymmetric Bento grid structures.
|
|
67
|
+
- Reject cliché marketing copy (*"Elevate your workflow"*, *"Revolutionize your business"*).
|
|
68
|
+
- Use mathematical fluid \`clamp()\` font scales and WCAG AA/AAA color contrast.
|
|
69
|
+
`;
|
|
70
|
+
|
|
71
|
+
const geminiMdContent = `# PixelCrew Swarm Instructions for Google Antigravity & Gemini CLI
|
|
72
|
+
See [AGENTS.md](file:///./AGENTS.md) for complete Floor 42 command suite and anti-AI design rules.
|
|
73
|
+
`;
|
|
74
|
+
|
|
75
|
+
const agentsRuleContent = `# PixelCrew Swarm Steering Rules
|
|
76
|
+
|
|
77
|
+
When \`/pixelcrew <command>\` or direct slash commands are invoked in chat, orchestrate tasks across the 8 Floor 42 personas:
|
|
78
|
+
1. **Lead Orchestrator**: Task decomposition & DAG scheduling
|
|
79
|
+
2. **Creative Director**: Aesthetic strategy & anti-AI constraints
|
|
80
|
+
3. **UX Planner**: Asymmetric section topologies & user flow
|
|
81
|
+
4. **Design System Architect**: HSL tokens & fluid clamp() typography
|
|
82
|
+
5. **Frontend Engineer**: Next.js App Router, React 19, TypeScript
|
|
83
|
+
6. **Backend & Database Engineer**: Type-safe route handlers & RFC 7807 envelopes
|
|
84
|
+
7. **Performance & Security SRE**: Core Web Vitals & OWASP defense
|
|
85
|
+
8. **QA Automation Engineer**: Playwright E2E user journeys
|
|
86
|
+
`;
|
|
87
|
+
|
|
88
|
+
if (isGlobal) {
|
|
89
|
+
// Global Antigravity configuration in ~/.gemini/config/
|
|
90
|
+
files.push({ path: path.join(targetDir, 'GEMINI.md'), content: geminiMdContent });
|
|
91
|
+
files.push({ path: path.join(targetDir, 'rules', 'pixelcrew.md'), content: agentsRuleContent });
|
|
92
|
+
} else {
|
|
93
|
+
// Workspace Antigravity configuration in .agents/
|
|
94
|
+
files.push({ path: path.join(targetDir, 'AGENTS.md'), content: agentsMdContent });
|
|
95
|
+
files.push({ path: path.join(targetDir, 'GEMINI.md'), content: geminiMdContent });
|
|
96
|
+
files.push({ path: path.join(targetDir, '.agents', 'rules', 'pixelcrew.md'), content: agentsRuleContent });
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
// Generate individual skill directories for each Floor 42 command so Antigravity AI chat
|
|
100
|
+
// automatically indexes and exposes them in the "/" slash command autocomplete menu
|
|
101
|
+
const skillsBase = isGlobal
|
|
102
|
+
? path.join(targetDir, 'skills')
|
|
103
|
+
: path.join(targetDir, '.agents', 'skills');
|
|
104
|
+
|
|
105
|
+
for (const cmd of FLOOR42_COMMANDS) {
|
|
106
|
+
if (cmd.name === 'pixelcrew') continue;
|
|
107
|
+
const skillPath = path.join(skillsBase, cmd.name, 'SKILL.md');
|
|
108
|
+
const skillContent = `---
|
|
109
|
+
name: ${cmd.name}
|
|
110
|
+
description: >-
|
|
111
|
+
${cmd.description}. Triggers Floor 42 command /${cmd.name}.
|
|
112
|
+
---
|
|
113
|
+
|
|
114
|
+
# /${cmd.name} — PixelCrew Command
|
|
115
|
+
|
|
116
|
+
${cmd.prompt}
|
|
117
|
+
`;
|
|
118
|
+
files.push({ path: skillPath, content: skillContent });
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
return files;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
/**
|
|
125
|
+
* Generates all multi-IDE rule and configuration files for a target directory
|
|
126
|
+
*/
|
|
127
|
+
export function generateAllIDERules(targetDir, isGlobal = false) {
|
|
128
|
+
return [
|
|
129
|
+
...generateCursorFiles(targetDir, isGlobal),
|
|
130
|
+
...generateAntigravityFiles(targetDir, isGlobal),
|
|
131
|
+
...generateClaudeFiles(targetDir, isGlobal)
|
|
132
|
+
];
|
|
133
|
+
}
|