pixelcrew 0.2.3 → 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 +632 -780
- package/src/orchestrator/design-engine.js +203 -0
- package/src/orchestrator/engine.js +307 -38
- package/src/orchestrator/oneshot.js +367 -380
- package/src/orchestrator/ontology.js +394 -0
- package/src/orchestrator/planner.js +231 -258
- 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/task-planner.js +111 -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 +283 -40
- package/src/utils/fs-safe.js +168 -0
- package/src/utils/markdown-report.js +175 -0
|
@@ -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
|
+
}
|