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,520 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* PIXEL CREW β Canonical Production Skills & Reference Bundler
|
|
3
|
+
*
|
|
4
|
+
* Provides full-fidelity, production-grade skill definitions with complete YAML frontmatter,
|
|
5
|
+
* architectural rubrics, anti-AI pattern criteria, fluid typography curves, and reference guides
|
|
6
|
+
* for replication across all AI IDE providers (.kiro, .cursor, .claude, .agents, .codex, etc.).
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
import fs from 'node:fs/promises';
|
|
10
|
+
import path from 'node:path';
|
|
11
|
+
import { fileURLToPath } from 'node:url';
|
|
12
|
+
|
|
13
|
+
const __dirname = path.dirname(fileURLToPath(import.meta.url));
|
|
14
|
+
const ROOT_DIR = path.resolve(__dirname, '../..');
|
|
15
|
+
const AGENTS_SKILLS_DIR = path.join(ROOT_DIR, '.agents', 'skills');
|
|
16
|
+
const SKILL_DIR = path.join(ROOT_DIR, 'skill');
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* Normalizes and sanitizes YAML frontmatter to prevent IDE parser errors
|
|
20
|
+
*/
|
|
21
|
+
export function sanitizeFrontmatter(rawContent) {
|
|
22
|
+
if (!rawContent || !rawContent.startsWith('---')) return rawContent;
|
|
23
|
+
const match = rawContent.match(/^---\r?\n([\s\S]*?)\r?\n---\r?\n([\s\S]*)$/);
|
|
24
|
+
if (!match) return rawContent;
|
|
25
|
+
|
|
26
|
+
const rawFrontmatter = match[1];
|
|
27
|
+
const body = match[2];
|
|
28
|
+
|
|
29
|
+
const lines = rawFrontmatter.split('\n');
|
|
30
|
+
const sanitizedLines = [];
|
|
31
|
+
let currentKey = null;
|
|
32
|
+
let currentValueParts = [];
|
|
33
|
+
|
|
34
|
+
for (const line of lines) {
|
|
35
|
+
const keyMatch = line.match(/^([a-zA-Z0-9_-]+):\s*(.*)$/);
|
|
36
|
+
if (keyMatch) {
|
|
37
|
+
if (currentKey) {
|
|
38
|
+
const fullVal = currentValueParts.join(' ').replace(/^['"]|['"]$/g, '').trim();
|
|
39
|
+
sanitizedLines.push(`${currentKey}: ${fullVal}`);
|
|
40
|
+
}
|
|
41
|
+
currentKey = keyMatch[1];
|
|
42
|
+
const initialVal = keyMatch[2].trim();
|
|
43
|
+
currentValueParts = (initialVal === '>-' || initialVal === '>' || initialVal === '|' || initialVal === '|-') ? [] : [initialVal];
|
|
44
|
+
} else if (currentKey && line.trim().length > 0) {
|
|
45
|
+
currentValueParts.push(line.trim());
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
if (currentKey) {
|
|
50
|
+
const fullVal = currentValueParts.join(' ').replace(/^['"]|['"]$/g, '').trim();
|
|
51
|
+
sanitizedLines.push(`${currentKey}: ${fullVal}`);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
return `---\n${sanitizedLines.join('\n')}\n---\n\n${body.trim()}\n`;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* Embedded fallback skill definitions for zero-dependency standalone execution
|
|
59
|
+
*/
|
|
60
|
+
export const EMBEDDED_SKILLS = {
|
|
61
|
+
'pixelcrew': {
|
|
62
|
+
name: 'pixelcrew',
|
|
63
|
+
content: `---
|
|
64
|
+
name: pixelcrew
|
|
65
|
+
description: Autonomous Multi-Agent Engineering Swarm & Retro Pixel-Art Startup Office. Orchestrates 23 specialized commands across Creative Director, UX Planner, Design System Architect, Frontend Engineer, Backend Engineer, Performance SRE, Security Sentinel, and QA Automation personas.
|
|
66
|
+
version: 0.2.5
|
|
67
|
+
author: Arnel (@hiroqt)
|
|
68
|
+
---
|
|
69
|
+
|
|
70
|
+
# π’ PixelCrew β Autonomous Multi-Agent Engineering Swarm
|
|
71
|
+
|
|
72
|
+
> **Floor 42, Pixel Corps HQ**: Transform any codebase into an observable, choreographed engineering workspace with anti-AI design synthesis, mathematical fluid typography, and automated E2E testing.
|
|
73
|
+
|
|
74
|
+
---
|
|
75
|
+
|
|
76
|
+
## β‘ Floor 42 Swarm Command Suite
|
|
77
|
+
|
|
78
|
+
All commands can be invoked via \`/pixelcrew <command>\`, direct slash commands (e.g. \`/<command>\`), or in chat:
|
|
79
|
+
|
|
80
|
+
### 1. π Creation & Architecture
|
|
81
|
+
- \`/pixelcrew init\` (or \`init\` in chat): Scans codebase architecture, configures .pixel-crew/, and adapts agent squad.
|
|
82
|
+
- \`/pixelcrew assemble [prompt]\` (aliases: \`/assemble\`, \`/craft\`, \`/sprint\`): Full shape-then-build multi-agent sprint pipeline from brief to production code.
|
|
83
|
+
- \`/pixelcrew blueprint [prompt]\` (aliases: \`/blueprint\`, \`/shape\`, \`/spec\`): Plans UX section topologies, wireframes, and compiles dynamic DAG task graphs *before* writing code.
|
|
84
|
+
- \`/pixelcrew boss-fight <issue>\` (aliases: \`/boss-fight\`, \`/fix\`, \`/debug\`): Targeted swarm bug blitz to isolate, repair, and verify breaking issues.
|
|
85
|
+
- \`/pixelcrew manifest\`: Reverse-engineers active project code into comprehensive \`DESIGN.md\` and \`PRODUCT.md\` architectural specifications.
|
|
86
|
+
- \`/pixelcrew retrofit\`: Extracts reusable UI primitives, Tailwind tokens, and CSS variables into the centralized design system.
|
|
87
|
+
|
|
88
|
+
### 2. π¨ Pixel Aesthetic & Anti-AI Direction
|
|
89
|
+
- \`/pixelcrew render\`: 6-dimension Anti-AI design & UX review (Originality, Hierarchy, Typography, Layout, Brand, Slop Penalty >= 8.5/10).
|
|
90
|
+
- \`/pixelcrew 8bit\`: Adds retro arcade delight: procedural Web Audio chimes, CRT phosphor scanlines, and tactile feedback.
|
|
91
|
+
- \`/pixelcrew overdrive\`: Injects high-end technical effects: WebGL/Canvas shaders, interactive terminal console, reactive backgrounds.
|
|
92
|
+
- \`/pixelcrew chromatic [palette]\`: Injects curated HSL color tokens, dark mode elevation surfaces, and atmospheric accent tiers.
|
|
93
|
+
- \`/pixelcrew typeset [preset]\`: Fixes font pairings, applies mathematical fluid \`clamp()\` type scales, and establishes expressive typography.
|
|
94
|
+
- \`/pixelcrew bento [section]\`: Reorganizes sections into asymmetric Bento grids, dynamic viewport flow, and zero horizontal overflow.
|
|
95
|
+
- \`/pixelcrew de-slop [section]\`: Strips AI clichΓ© copywriting with grounded technical value propositions.
|
|
96
|
+
|
|
97
|
+
### 3. π‘οΈ Production Hardening & SRE
|
|
98
|
+
- \`/pixelcrew sentinel\`: Security & resilience pass: OWASP checks, SQL injection prevention, RFC 7807 error envelopes, and rate limiting.
|
|
99
|
+
- \`/pixelcrew audit\`: Runs technical quality checks: a11y WCAG AA/AAA, Core Web Vitals (LCP < 0.6s), and Playwright E2E journeys.
|
|
100
|
+
- \`/pixelcrew warp\`: Full-stack performance tuning: streaming SSR, bundle minification, and AST prompt caching.
|
|
101
|
+
- \`/pixelcrew polish\`: Final shipping readiness pass: design system token alignment, type checks, and aesthetic cleanup.
|
|
102
|
+
|
|
103
|
+
---
|
|
104
|
+
|
|
105
|
+
## π₯ Floor 42 Personas & Squad Roles
|
|
106
|
+
1. **Lead Orchestrator (\`orchestrator\`)**: DAG task decomposition, context extraction, and subagent synthesis.
|
|
107
|
+
2. **Creative Director (\`creativeDirector\`)**: Aesthetic strategy, brand soul, and strict anti-AI constraints.
|
|
108
|
+
3. **UX Planner (\`uxPlanner\`)**: Asymmetric section layouts, user flow, and interaction specs.
|
|
109
|
+
4. **Design System Architect (\`designSystem\`)**: HSL tokens, mathematical \`clamp()\` typography, and surface tiers.
|
|
110
|
+
5. **Frontend Engineer (\`frontend\`)**: Next.js 14/15 App Router, React 19, TypeScript, and Tailwind CSS.
|
|
111
|
+
6. **Backend & Database Engineer (\`backend\`, \`database\`)**: Type-safe route handlers, RFC 7807 envelopes, Prisma/Postgres schemas.
|
|
112
|
+
7. **Performance & Security SRE (\`performance\`, \`security\`)**: Core Web Vitals, CSP headers, OWASP audit, and token pruning.
|
|
113
|
+
8. **QA Automation Engineer (\`qa\`)**: Playwright E2E user journeys, visual regression, and audit reports.
|
|
114
|
+
`,
|
|
115
|
+
references: {
|
|
116
|
+
'commands-reference.md': `# PixelCrew Command Reference\n\nDetailed breakdown of all 23 Floor 42 commands.`,
|
|
117
|
+
'anti-ai-rubric.md': `# Anti-AI Rubric\n\nQuantitative 6-dimension evaluation matrix.`,
|
|
118
|
+
'testing-and-qa-strategy.md': `# Modern QA Testing Strategy & Test Maintainability Guide\n\nPractical testing pyramid, MSW network mocking, and non-flaky Playwright E2E tests.`
|
|
119
|
+
}
|
|
120
|
+
},
|
|
121
|
+
|
|
122
|
+
'anti-ai-patterns': {
|
|
123
|
+
name: 'anti-ai-patterns',
|
|
124
|
+
content: `---
|
|
125
|
+
name: anti-ai-patterns
|
|
126
|
+
description: Strict Anti-AI-Generated Design Critic and Quality Guardian for Pixel Crew. Automatically detects monotonous card grids, purple gradient blobs, fake AI sparkles, and clichΓ© copywriting. Enforces intentional asymmetry, expressive typography, dynamic section rhythm, and bespoke brand language.
|
|
127
|
+
---
|
|
128
|
+
|
|
129
|
+
# Anti-AI-Generated Design Skill
|
|
130
|
+
|
|
131
|
+
The **Anti-AI-Patterns Skill** acts as an uncompromising aesthetic critic and quality guardian within the Pixel Crew framework. It does **not** write raw UI codeβits sole objective is to inspect, score, and reject synthetic tropes before they reach the user.
|
|
132
|
+
|
|
133
|
+
---
|
|
134
|
+
|
|
135
|
+
## 1. Automated Detection Matrix
|
|
136
|
+
|
|
137
|
+
The skill executes static and visual pattern recognition to flag forbidden design markers:
|
|
138
|
+
|
|
139
|
+
\`\`\`
|
|
140
|
+
β FORBIDDEN PATTERNS
|
|
141
|
+
βββ β Purple/blue radiant gradient blobs behind hero headline
|
|
142
|
+
βββ β Every feature enclosed in identical rounded cards with 16px radius
|
|
143
|
+
βββ β Overused glassmorphism, muddy backdrop-filter blurs on all surfaces
|
|
144
|
+
βββ β Generic hype copy ("Revolutionize your workflow", "Supercharge your business")
|
|
145
|
+
βββ β Floating AI sparkles (β¨, πͺ) and generic emoji badges
|
|
146
|
+
βββ β Perfectly symmetrical 3-column or 4-column identical cards
|
|
147
|
+
βββ β Generic fake SaaS dashboard screenshots with pastel bar charts
|
|
148
|
+
βββ β Random meaningless icons at top of every single card
|
|
149
|
+
βββ β Identical cards repeated 6 times across the homepage
|
|
150
|
+
βββ β Generic "Get Started" / "Start Free Trial" CTA on every button
|
|
151
|
+
\`\`\`
|
|
152
|
+
|
|
153
|
+
---
|
|
154
|
+
|
|
155
|
+
## 2. Enforced Design Principles
|
|
156
|
+
|
|
157
|
+
When a forbidden pattern is identified, the skill mandates immediate compliance with these principles:
|
|
158
|
+
|
|
159
|
+
\`\`\`
|
|
160
|
+
β ENFORCED PRINCIPLES
|
|
161
|
+
βββ β Intentional asymmetry (offset columns, varied row spans, staggered layout)
|
|
162
|
+
βββ β Expressive typography hierarchy (dramatic scale contrast, fluid clamp scales)
|
|
163
|
+
βββ β Distinct section compositions (never stack two similar grid layouts)
|
|
164
|
+
βββ β Brand-specific visual language (bespoke color schemes, tailored borders)
|
|
165
|
+
βββ β Purposeful whitespace (generous breathing room, clear spatial gravity)
|
|
166
|
+
βββ β Custom micro-interactions (magnetic hover, subtle reveal transitions)
|
|
167
|
+
βββ β Realistic, authentic copy (concrete technical specifics, real narratives)
|
|
168
|
+
βββ β Visual rhythm (alternating dense technical specs and airy display breaks)
|
|
169
|
+
βββ β Restrained decoration (decorations <= 10% surface area)
|
|
170
|
+
\`\`\`
|
|
171
|
+
|
|
172
|
+
---
|
|
173
|
+
|
|
174
|
+
## 3. Rubric Evaluation & Actionable Critique
|
|
175
|
+
|
|
176
|
+
The skill computes the quantitative visual score and generates structured critique:
|
|
177
|
+
|
|
178
|
+
\`\`\`json
|
|
179
|
+
{
|
|
180
|
+
"visualScore": 9.1,
|
|
181
|
+
"threshold": 8.5,
|
|
182
|
+
"passed": true,
|
|
183
|
+
"rubric": {
|
|
184
|
+
"originality": 9.1,
|
|
185
|
+
"typography": 9.4,
|
|
186
|
+
"layout": 8.8,
|
|
187
|
+
"visual_hierarchy": 9.2,
|
|
188
|
+
"brand_consistency": 9.0,
|
|
189
|
+
"generic_ai_penalty": 0.8
|
|
190
|
+
},
|
|
191
|
+
"critique": [
|
|
192
|
+
{
|
|
193
|
+
"issue": "Testimonial section uses a repetitive 3-card layout.",
|
|
194
|
+
"reason": "Three equal width cards with centered avatars look like a standard SaaS template.",
|
|
195
|
+
"fix": "Replace cards with an editorial horizontal quote layout, large typography, and asymmetric metadata placement."
|
|
196
|
+
}
|
|
197
|
+
]
|
|
198
|
+
}
|
|
199
|
+
\`\`\`
|
|
200
|
+
|
|
201
|
+
---
|
|
202
|
+
|
|
203
|
+
## 4. Execution Workflow
|
|
204
|
+
|
|
205
|
+
1. **Inspect Layout Blueprint**: Review UX wireframe and component topology before code generation.
|
|
206
|
+
2. **Audit Rendered Output / DOM**: Scan generated JSX/HTML for repeated card patterns, generic color classes, and clichΓ© phrasing.
|
|
207
|
+
3. **Trigger Refinement Task**: If \`visualScore < 8.5\` or critical anti-patterns exist, formulate a targeted refinement task for the Frontend Builder squad.
|
|
208
|
+
`,
|
|
209
|
+
references: {
|
|
210
|
+
'anti-ai-rubric.md': `# Anti-AI Rubric\n\nQuantitative 6-dimension evaluation matrix for human-grade web design.`,
|
|
211
|
+
'anti-ai-slop-guidelines.md': `# Anti-AI Slop & Aesthetic Quality Guidelines\n\nStrict negative constraints eliminating synthetic textures and generic templates.`
|
|
212
|
+
}
|
|
213
|
+
},
|
|
214
|
+
|
|
215
|
+
'design-director': {
|
|
216
|
+
name: 'design-director',
|
|
217
|
+
content: `---
|
|
218
|
+
name: design-director
|
|
219
|
+
description: Lead Creative Direction and Aesthetic Strategy skill for Pixel Crew. Defines the authentic visual personality, architectural concept, typography strategy, asymmetric layout rules, and strict anti-AI constraints before any code is generated. Answers "What should this website actually feel like?"
|
|
220
|
+
---
|
|
221
|
+
|
|
222
|
+
# Design Director Skill
|
|
223
|
+
|
|
224
|
+
The **Design Director** is the creative soul of Pixel Crew. Its primary directive is to **strictly decouple visual and architectural strategy from code generation**.
|
|
225
|
+
|
|
226
|
+
AI website generators frequently produce bland, generic "AI slop" when prompts jump directly into coding. The Design Director enforces a deliberate creative phase where artistic intent, mood, typography, layout rhythm, and negative constraints are codified into an executable design specification.
|
|
227
|
+
|
|
228
|
+
---
|
|
229
|
+
|
|
230
|
+
## 1. Creative Direction Blueprint
|
|
231
|
+
|
|
232
|
+
When presented with any user prompt or client brief, the Design Director outputs a structured creative direction manifest:
|
|
233
|
+
|
|
234
|
+
\`\`\`json
|
|
235
|
+
{
|
|
236
|
+
"design_direction": "editorial technology studio",
|
|
237
|
+
"concept": "Precise, quiet, architectural, spatial",
|
|
238
|
+
"visual_personality": [
|
|
239
|
+
"confident",
|
|
240
|
+
"minimal",
|
|
241
|
+
"technical",
|
|
242
|
+
"asymmetric"
|
|
243
|
+
],
|
|
244
|
+
"layout_strategy": "asymmetric grid with intentional whitespace & varying density",
|
|
245
|
+
"typography_strategy": "expressive display serif paired with crisp mono/sans micro-labels",
|
|
246
|
+
"color_strategy": "deep obsidian base with warm architectural stone accents and high-contrast ink",
|
|
247
|
+
"animation_strategy": "subtle purposeful motion, smooth reveals, zero bouncy gimmicks",
|
|
248
|
+
"avoid": [
|
|
249
|
+
"generic SaaS cards with uniform border-radius",
|
|
250
|
+
"purple and blue glowing mesh gradients",
|
|
251
|
+
"excessive glassmorphism and frosted blur overlays",
|
|
252
|
+
"uniform 3-column feature grids",
|
|
253
|
+
"hero with floating fake dashboard screenshot",
|
|
254
|
+
"floating AI sparkles and generic rocket/sparkle icons",
|
|
255
|
+
"clichΓ© copy like 'Revolutionize your workflow'"
|
|
256
|
+
]
|
|
257
|
+
}
|
|
258
|
+
\`\`\`
|
|
259
|
+
|
|
260
|
+
---
|
|
261
|
+
|
|
262
|
+
## 2. Core Creative Responsibilities
|
|
263
|
+
|
|
264
|
+
1. **Define the Soul and Feeling**:
|
|
265
|
+
- What atmosphere does this brand inhabit? (e.g., Swiss brutalism, luxury editorial, utilitarian engineering lab, warm organic artisan).
|
|
266
|
+
2. **Establish Asymmetric & Dynamic Rhythms**:
|
|
267
|
+
- Avoid monotonous block-after-block repetition. Alternating rhythm between expansive airy sections, dense data grids, kinetic split-screens, and typography focal points.
|
|
268
|
+
3. **Select Character-Rich Typography**:
|
|
269
|
+
- Ban default generic fonts (\`Inter\`, browser system fonts used without intent).
|
|
270
|
+
- Require purposeful pairings (e.g., *Instrument Serif* + *Plus Jakarta Sans*, *Syne* + *JetBrains Mono*, *Playfair Display* + *Space Grotesk*).
|
|
271
|
+
4. **Curate Harmonious Chromatic Palettes**:
|
|
272
|
+
- Ban generic saturated primaries and purple/cyan AI gradients.
|
|
273
|
+
- Formulate tailored HSL/Hex palettes with authentic tonal depth, high-contrast text ratios (WCAG AAA), and restrained accent usage (<= 10% surface area).
|
|
274
|
+
`,
|
|
275
|
+
references: {
|
|
276
|
+
'bento-and-asymmetry-guide.md': `# Bento Grid Topology & Asymmetric Layout Guide\n\nModular compartments, spatial rhythm, and broken symmetry.`,
|
|
277
|
+
'typography-and-palette-system.md': `# Typography Matrix & HSL Chromatic Palette System\n\nMathematical fluid clamp scales and 60-30-10 color rules.`,
|
|
278
|
+
'anti-ai-rubric.md': `# Anti-AI Rubric\n\nQuantitative 6-dimension evaluation matrix.`
|
|
279
|
+
}
|
|
280
|
+
},
|
|
281
|
+
|
|
282
|
+
'frontend-engineering': {
|
|
283
|
+
name: 'frontend-engineering',
|
|
284
|
+
content: `---
|
|
285
|
+
name: frontend-engineering
|
|
286
|
+
description: Comprehensive guide for modern front-end engineering across all major modern tech stacks (React 19/Next.js App Router, Vue 3/Nuxt 3, Svelte 5 Runes, SolidJS, Astro, Modern Vanilla CSS, TypeScript). Enforces strict UI/UX standards, anti-AI-slop design rules, dynamic typography systems, and WCAG 2.1/2.2 AA/AAA accessibility compliance.
|
|
287
|
+
---
|
|
288
|
+
|
|
289
|
+
# Frontend Engineering & UI/UX Standards
|
|
290
|
+
|
|
291
|
+
This skill provides comprehensive instructions, architectural patterns, and strict quality guidelines for building modern, accessible, high-performance web applications across all major front-end tech stacks.
|
|
292
|
+
|
|
293
|
+
---
|
|
294
|
+
|
|
295
|
+
## 1. Core Engineering Directives
|
|
296
|
+
|
|
297
|
+
1. **Zero AI Slop**: Reject generic AI-generated aesthetic tropes (purple/cyan neon glow mesh gradients on black cards, floating pill eyebrow badges on every header, nested card-in-a-card syndrome, fake neon input glow rings). Design with intentional typography, crisp borders, purposeful hierarchy, authentic whitespace, and structured design tokens.
|
|
298
|
+
2. **Dynamic User/Brand-Driven Typography**: Select font pairings and modular scales tailored directly to the application domain and user aesthetic preference (Geometric, Humanist, Editorial Serif, Neo-Grotesque, or Developer Mono). Utilize mathematical fluid type scales with CSS \`clamp()\`, optimal line measures (\`45β75ch\`), and tabular numerals for data dashboards.
|
|
299
|
+
3. **WCAG 2.1 / 2.2 AA & AAA Compliance**: Semantic HTML first, rigorous contrast ratios (4.5:1 text, 3:1 graphical elements/focus rings, 7:1 AAA where applicable), robust keyboard navigation (\`:focus-visible\`, focus trapping in modals/drawers, roving tabindex), full screen reader accessibility (\`aria-expanded\`, \`aria-controls\`, \`aria-live\`, \`aria-hidden\`), and \`@media (prefers-reduced-motion: reduce)\`.
|
|
300
|
+
4. **Modern Framework & Styling Mastery**:
|
|
301
|
+
- **React 19 / Next.js**: App Router, Server Components (RSC) vs Client Components boundary, Server Actions, Suspense & Streaming SSR.
|
|
302
|
+
- **Vue 3 / Nuxt 3**: Composition API (\`<script setup>\`), Pinia state management, Nitro server engine.
|
|
303
|
+
- **Svelte 5 / SvelteKit**: Runes (\`$state\`, \`$derived\`, \`$effect\`, \`$props\`), Universal load, Form actions.
|
|
304
|
+
- **SolidJS / SolidStart**: Fine-grained signals, Resource, Suspense.
|
|
305
|
+
- **Astro 4+**: Islands Architecture, Content Collections, View Transitions.
|
|
306
|
+
- **Styling**: Modern Vanilla CSS (\`@layer\`, Container Queries \`@container\`, \`:has()\`, Subgrid, CSS variables design token architecture, Nesting).
|
|
307
|
+
`,
|
|
308
|
+
references: {
|
|
309
|
+
'clean-component-architecture.md': `# Clean Frontend Architecture & Anti-Spaghetti Code Guide\n\nFeature-based modules, custom hooks separation, and 150-line component rules.`,
|
|
310
|
+
'anti-ai-slop-guidelines.md': `# Anti-AI Slop & UI/UX Aesthetic Rules\n\nDetailed guidance for eliminating generic templates, awkward spacing, and synthetic textures.`,
|
|
311
|
+
'typography-system-matrix.md': `# Dynamic Typography System & Font Matrix\n\nFluid clamp() mathematical formulas and font pairing recommendations.`,
|
|
312
|
+
'wcag-a11y-audit-checklist.md': `# WCAG 2.1/2.2 AA/AAA Accessibility Audit Checklist\n\nChecklist for focus states, color contrast, ARIA landmarks, and keyboard navigation.`
|
|
313
|
+
}
|
|
314
|
+
},
|
|
315
|
+
|
|
316
|
+
'backend-engineering': {
|
|
317
|
+
name: 'backend-engineering',
|
|
318
|
+
content: `---
|
|
319
|
+
name: backend-engineering
|
|
320
|
+
description: Comprehensive guide for modern backend engineering across enterprise architectures (Clean Architecture, Hexagonal/Ports & Adapters, Modular Monoliths, Event-Driven Microservices). Covers API standards (REST with OpenAPI 3.1 & RFC 7807, GraphQL with DataLoader, gRPC, tRPC, WebSockets, SSE, Webhooks), enterprise rate limiting, resilience, OAuth 2.1 / OIDC / PASETO security, and OpenTelemetry observability.
|
|
321
|
+
---
|
|
322
|
+
|
|
323
|
+
# Modern Backend Engineering Standards
|
|
324
|
+
|
|
325
|
+
This skill provides comprehensive instructions, architectural blueprints, enterprise security rules, and resilience patterns for building scalable, fault-tolerant backend systems.
|
|
326
|
+
|
|
327
|
+
---
|
|
328
|
+
|
|
329
|
+
## 1. Core Engineering Directives
|
|
330
|
+
|
|
331
|
+
1. **Architectural Discipline & Decoupling**: Isolate core business domain logic from transport protocols, external services, and databases.
|
|
332
|
+
2. **Modern API Standards**:
|
|
333
|
+
- **REST**: OpenAPI 3.1 specifications, JSON Schema validation, RFC 7807 Problem Details error envelopes.
|
|
334
|
+
- **GraphQL**: Strict depth & complexity limits, batching with DataLoader to eliminate N+1 resolution.
|
|
335
|
+
- **Real-Time**: WebSockets with heartbeats and reconnection backoff; Server-Sent Events (SSE) for streaming AI/agent outputs.
|
|
336
|
+
3. **Enterprise Rate Limiting & Abuse Prevention**: Implement Redis sliding window rate limiters with Lua atomic scripts.
|
|
337
|
+
4. **Resilience & Distributed Safety**: Enforce idempotency keys on mutating endpoints, circuit breakers on third-party dependencies, and exponential backoff with jitter.
|
|
338
|
+
`,
|
|
339
|
+
references: {
|
|
340
|
+
'clean-backend-architecture.md': `# Clean Backend Architecture & Anti-Spaghetti Code Guide\n\nDomain-driven use cases, Hexagonal port/adapters, and standard RFC 7807 error envelopes.`,
|
|
341
|
+
'api-protocols-and-standards.md': `# API Protocols & Standards\n\nREST OpenAPI 3.1, GraphQL DataLoader, and WebSockets/SSE streaming.`,
|
|
342
|
+
'rate-limiting-and-resilience.md': `# Rate Limiting & Resilience\n\nRedis sliding window rate limiters, idempotency keys, and circuit breakers.`,
|
|
343
|
+
'security-and-observability.md': `# Security & Observability\n\nOAuth 2.1, OIDC, PASETO, and OpenTelemetry tracing.`
|
|
344
|
+
}
|
|
345
|
+
},
|
|
346
|
+
|
|
347
|
+
'database-engineering': {
|
|
348
|
+
name: 'database-engineering',
|
|
349
|
+
content: `---
|
|
350
|
+
name: database-engineering
|
|
351
|
+
description: Comprehensive guide for database engineering, advanced indexing strategies (B-Tree, GIN, GiST, BRIN, composite indexing column order, covering indexes, partial indexes, EXPLAIN ANALYZE tuning), primary key architecture (UUIDv7 vs UUIDv4 vs ULID vs BIGINT IDENTITY), Row-Level Security (RLS) policy optimization for multi-tenant isolation, database scaling & connection pooling, and modern SQL & NoSQL hosting.
|
|
352
|
+
---
|
|
353
|
+
|
|
354
|
+
# Database Engineering & Storage Architecture
|
|
355
|
+
|
|
356
|
+
This skill provides comprehensive instructions, query optimization runbooks, primary key selection models, RLS security policies, and scaling architectures across modern SQL and NoSQL storage engines.
|
|
357
|
+
|
|
358
|
+
---
|
|
359
|
+
|
|
360
|
+
## 1. Core Engineering Directives
|
|
361
|
+
|
|
362
|
+
1. **Strategic Index Design**:
|
|
363
|
+
- **Composite Index Column Order Rule**: Place columns tested for **Equality first**, followed by columns used for **Range / Ordering** (\`(tenant_id, status, created_at)\`).
|
|
364
|
+
- **Covering Indexes (\`INCLUDE\`)**: Add non-search payload columns to the index leaf level to achieve 100% **Index-Only Scans** without heap lookups.
|
|
365
|
+
- **Partial / Filtered Indexes**: Index only active or non-null subsets (\`WHERE is_deleted = false\`), saving 80β95% disk space.
|
|
366
|
+
2. **Modern Primary Key Strategy**: Default to **UUIDv7 (RFC 9562)** for distributed and high-scale relational databases. UUIDv7 provides 128-bit time-ordered keys that eliminate B-Tree fragmentation and page splits.
|
|
367
|
+
3. **High-Performance Row-Level Security (RLS)**:
|
|
368
|
+
- Always wrap auth function calls in subqueries: \`(SELECT auth.uid())\` instead of \`auth.uid()\` so the query planner evaluates the authentication context **once per query** rather than **once per row**.
|
|
369
|
+
- Ensure every column referenced in RLS policies (e.g. \`tenant_id\`, \`user_id\`) is backed by a B-Tree index.
|
|
370
|
+
`,
|
|
371
|
+
references: {
|
|
372
|
+
'indexing-and-explain-guide.md': `# Indexing & Query Optimization Guide\n\nB-Tree equality-first rules, covering indexes, and EXPLAIN ANALYZE tuning.`,
|
|
373
|
+
'primary-key-and-rls-guide.md': `# Primary Key Strategy & Row-Level Security (RLS)\n\nUUIDv7 RFC 9562 vs ULID and subquery cached RLS policies.`,
|
|
374
|
+
'database-migrations-and-pooling.md': `# Database Migrations, Connection Pooling & Scaling Guide\n\nZero-downtime Expand-Contract pattern and Little's Law connection sizing.`,
|
|
375
|
+
'sql-and-nosql-hosting-guide.md': `# Modern SQL & NoSQL Hosting Architecture\n\nPostgreSQL, Supabase, Neon, DynamoDB, MongoDB, Redis, ClickHouse, and pgvector.`
|
|
376
|
+
}
|
|
377
|
+
},
|
|
378
|
+
|
|
379
|
+
'performance-engineering': {
|
|
380
|
+
name: 'performance-engineering',
|
|
381
|
+
content: `---
|
|
382
|
+
name: performance-engineering
|
|
383
|
+
description: Comprehensive guide for full-stack performance engineering across frontend Core Web Vitals (LCP, INP, CLS, TTFB, streaming SSR, priority hints, main thread yielding), backend runtime profiling, multi-tier caching (L1 in-memory, L2 Redis, L3 CDN Edge, XFetch stampede prevention), database query tuning, network transport, automated k6 load & stress testing, and SLA/SLO/SLI error budgets.
|
|
384
|
+
---
|
|
385
|
+
|
|
386
|
+
# Full-Stack Performance Engineering & Optimization
|
|
387
|
+
|
|
388
|
+
This skill provides comprehensive instructions, diagnostic runbooks, caching architectures, and load testing patterns for delivering sub-second user experiences and high-throughput systems.
|
|
389
|
+
|
|
390
|
+
---
|
|
391
|
+
|
|
392
|
+
## 1. Core Engineering Directives
|
|
393
|
+
|
|
394
|
+
1. **Core Web Vitals Mastery**:
|
|
395
|
+
- **LCP < 2.5s (Target: < 0.8s)**: Preload LCP hero images with \`fetchpriority="high"\`, eliminate render-blocking CSS/JS, and utilize streaming SSR.
|
|
396
|
+
- **INP < 200ms (Target: < 50ms)**: Yield main thread execution during long tasks via \`scheduler.yield()\` or \`setTimeout()\`.
|
|
397
|
+
- **CLS < 0.1 (Target: 0)**: Set explicit width/height or \`aspect-ratio\` on all image, video, and iframe containers.
|
|
398
|
+
2. **Multi-Tier Caching Architecture**: Implement L1 in-memory LRU cache + L2 distributed Redis cache with probabilistic early recomputation (XFetch algorithm) to prevent cache stampedes.
|
|
399
|
+
`,
|
|
400
|
+
references: {
|
|
401
|
+
'core-web-vitals-runbook.md': `# Core Web Vitals (CWV) & Performance Runbook\n\nLCP hero preloading, INP scheduler.yield(), and CLS prevention.`,
|
|
402
|
+
'production-readiness-checklist.md': `# Pre-Production Readiness Checklist\n\nFull-stack verification before shipping to production.`
|
|
403
|
+
}
|
|
404
|
+
},
|
|
405
|
+
|
|
406
|
+
'codebase-intelligence': {
|
|
407
|
+
name: 'codebase-intelligence',
|
|
408
|
+
content: `---
|
|
409
|
+
name: codebase-intelligence
|
|
410
|
+
description: Static codebase analysis and context adaptation engine for multi-agent swarms. Automatically inspects repository dependencies, directory structures, ORMs (Prisma, Drizzle), API routes (Next.js, Express, FastAPI), UI frameworks (React, Vue, Tailwind), and testing runners (Vitest, Playwright) to tailor agent skills and file permissions.
|
|
411
|
+
---
|
|
412
|
+
|
|
413
|
+
# Codebase Intelligence & Context Adaptation
|
|
414
|
+
|
|
415
|
+
## Directives
|
|
416
|
+
1. **Analyze First**: Inspect \`.pixel-crew/context.json\` and repository AST to understand existing dependencies, directory structure, and coding patterns.
|
|
417
|
+
2. **Context-Aware Code Generation**: Adhere to existing naming conventions, TypeScript configs, ESLint rules, and import paths (e.g. \`@/components\` vs \`../components\`).
|
|
418
|
+
3. **Cross-Agent Knowledge Sharing**: Share API schemas, database models, and route contracts across Frontend, Backend, and QA subagents.
|
|
419
|
+
`,
|
|
420
|
+
references: {
|
|
421
|
+
'codebase-analysis-and-context.md': `# Codebase Intelligence & AST Context Adaptation\n\nAutomated architecture profiling, dependency inspection, and cross-agent context sharing.`
|
|
422
|
+
}
|
|
423
|
+
},
|
|
424
|
+
|
|
425
|
+
'token-efficiency': {
|
|
426
|
+
name: 'token-efficiency',
|
|
427
|
+
content: `---
|
|
428
|
+
name: token-efficiency
|
|
429
|
+
description: Universal token optimization and context conservation engine across AI coding agents and IDEs (Claude, Google Antigravity, Cursor, Kiro, Windsurf, GitHub Copilot). Slashes token usage by 50% to 75% through AST symbol-graph extraction, multi-turn context pruning, prompt caching, compact diffs, and structured JSON schemas.
|
|
430
|
+
---
|
|
431
|
+
|
|
432
|
+
# Universal Token Efficiency & Context Conservation
|
|
433
|
+
|
|
434
|
+
## Directives
|
|
435
|
+
1. **Symbol-Graph AST Extraction**: Extract only needed type signatures, interface definitions, and function headers rather than dumping full 1000-line source files into prompt context.
|
|
436
|
+
2. **Prompt Caching Discipline**: Structure instructions with static system prefixes first and dynamic user inputs last to achieve ~90% prompt cache hit rates.
|
|
437
|
+
3. **Diff-Only Code Delivery**: Emit surgical unified diffs rather than re-transmitting entire unchanged files.
|
|
438
|
+
`,
|
|
439
|
+
references: {
|
|
440
|
+
'universal-token-efficiency-guide.md': `# Universal Token Efficiency Guide\n\nAST symbol-graph extraction, prompt caching maximization, and surgical diff delivery.`
|
|
441
|
+
}
|
|
442
|
+
}
|
|
443
|
+
};
|
|
444
|
+
|
|
445
|
+
/**
|
|
446
|
+
* Loads a full skill bundle (SKILL.md + references) from disk or embedded fallback
|
|
447
|
+
*/
|
|
448
|
+
export async function getSkillBundle(rawSkillId) {
|
|
449
|
+
if (!rawSkillId) return null;
|
|
450
|
+
const normId = String(rawSkillId).toLowerCase().replace(/^@pixel-crew\//, '').replace(/\.md$/, '');
|
|
451
|
+
const parts = normId.split('/');
|
|
452
|
+
const skillKey = parts.length > 1 ? parts[1] : parts[0];
|
|
453
|
+
|
|
454
|
+
// 1. Direct match in EMBEDDED_SKILLS
|
|
455
|
+
if (EMBEDDED_SKILLS[normId]) {
|
|
456
|
+
const embedded = EMBEDDED_SKILLS[normId];
|
|
457
|
+
return {
|
|
458
|
+
id: normId,
|
|
459
|
+
name: embedded.name || normId,
|
|
460
|
+
content: sanitizeFrontmatter(embedded.content),
|
|
461
|
+
references: embedded.references || {}
|
|
462
|
+
};
|
|
463
|
+
}
|
|
464
|
+
|
|
465
|
+
if (EMBEDDED_SKILLS[skillKey]) {
|
|
466
|
+
const embedded = EMBEDDED_SKILLS[skillKey];
|
|
467
|
+
return {
|
|
468
|
+
id: skillKey,
|
|
469
|
+
name: embedded.name || skillKey,
|
|
470
|
+
content: sanitizeFrontmatter(embedded.content),
|
|
471
|
+
references: embedded.references || {}
|
|
472
|
+
};
|
|
473
|
+
}
|
|
474
|
+
|
|
475
|
+
// 2. Try reading from disk (.agents/skills/ or skill/)
|
|
476
|
+
const diskCandidates = [
|
|
477
|
+
path.join(AGENTS_SKILLS_DIR, normId),
|
|
478
|
+
path.join(AGENTS_SKILLS_DIR, skillKey)
|
|
479
|
+
];
|
|
480
|
+
|
|
481
|
+
if (skillKey === 'pixelcrew' || normId === 'pixelcrew') {
|
|
482
|
+
diskCandidates.push(path.join(ROOT_DIR, 'skill'));
|
|
483
|
+
}
|
|
484
|
+
|
|
485
|
+
for (const dir of diskCandidates) {
|
|
486
|
+
try {
|
|
487
|
+
const skillMdPath = path.join(dir, 'SKILL.md');
|
|
488
|
+
const rawContent = await fs.readFile(skillMdPath, 'utf-8');
|
|
489
|
+
const content = sanitizeFrontmatter(rawContent);
|
|
490
|
+
|
|
491
|
+
const references = {};
|
|
492
|
+
const refDir = path.join(dir, 'references');
|
|
493
|
+
try {
|
|
494
|
+
const refFiles = await fs.readdir(refDir);
|
|
495
|
+
for (const rf of refFiles) {
|
|
496
|
+
if (rf.endsWith('.md')) {
|
|
497
|
+
references[rf] = await fs.readFile(path.join(refDir, rf), 'utf-8');
|
|
498
|
+
}
|
|
499
|
+
}
|
|
500
|
+
} catch {}
|
|
501
|
+
|
|
502
|
+
return {
|
|
503
|
+
id: skillKey,
|
|
504
|
+
name: skillKey,
|
|
505
|
+
content,
|
|
506
|
+
references
|
|
507
|
+
};
|
|
508
|
+
} catch {}
|
|
509
|
+
}
|
|
510
|
+
|
|
511
|
+
// 3. Return null so installer/scaffold uses generateSkillMarkdown
|
|
512
|
+
return null;
|
|
513
|
+
}
|
|
514
|
+
|
|
515
|
+
/**
|
|
516
|
+
* Returns all canonical skill identifiers
|
|
517
|
+
*/
|
|
518
|
+
export function getAllCanonicalSkillIds() {
|
|
519
|
+
return Object.keys(EMBEDDED_SKILLS);
|
|
520
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Default templates for
|
|
2
|
+
* Default templates for Pixel Crew initialization (.pixel-crew/ and dashboard)
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
export const DEFAULT_CONFIG = {
|
|
@@ -35,7 +35,7 @@ export const DEFAULT_CONFIG = {
|
|
|
35
35
|
skills: ["design-director", "anti-ai-patterns", "typography-strategy"],
|
|
36
36
|
permissions: {
|
|
37
37
|
read: ["**/*"],
|
|
38
|
-
write: ["design/**", "specs/**", ".pixel-
|
|
38
|
+
write: ["design/**", "specs/**", ".pixel-crew/design/**"]
|
|
39
39
|
}
|
|
40
40
|
},
|
|
41
41
|
uxPlanner: {
|
|
@@ -74,7 +74,7 @@ export const DEFAULT_CONFIG = {
|
|
|
74
74
|
skills: ["anti-ai-patterns", "visual-rubric-scoring", "design-review"],
|
|
75
75
|
permissions: {
|
|
76
76
|
read: ["**/*"],
|
|
77
|
-
write: ["reports/**", ".pixel-
|
|
77
|
+
write: ["reports/**", ".pixel-crew/reports/**"]
|
|
78
78
|
}
|
|
79
79
|
},
|
|
80
80
|
backend: {
|
|
@@ -381,7 +381,7 @@ export const SKILL_MARKDOWNS = {
|
|
|
381
381
|
"codebase-intelligence.md": `# Codebase Intelligence & Context Adaptation Skill
|
|
382
382
|
|
|
383
383
|
## Directives
|
|
384
|
-
1. **Analyze First**: Inspect \`.pixel-
|
|
384
|
+
1. **Analyze First**: Inspect \`.pixel-crew/context.json\` and repository AST to understand existing dependencies, directory structure, and coding patterns.
|
|
385
385
|
2. **Context-Aware Code Generation**: Adhere to existing naming conventions, TypeScript configs, ESLint rules, and import paths (e.g. \`@/components\` vs \`../components\`).
|
|
386
386
|
3. **Cross-Agent Knowledge Sharing**: Share API schemas, database models, and route contracts across Frontend, Backend, and QA subagents.
|
|
387
387
|
`,
|
|
@@ -444,5 +444,58 @@ Strict aesthetic critic rejecting generic templates, purple mesh blobs, and repe
|
|
|
444
444
|
|
|
445
445
|
"token-efficiency.md": `# Token Efficiency Skill
|
|
446
446
|
Context conservation across Claude, Antigravity, Cursor, Kiro, Windsurf, and Copilot through AST symbol extraction.
|
|
447
|
+
`,
|
|
448
|
+
|
|
449
|
+
"pixelcrew.md": `---
|
|
450
|
+
name: pixelcrew
|
|
451
|
+
description: Autonomous Multi-Agent Engineering Swarm & Retro Pixel-Art Startup Office. Orchestrates 23 specialized commands across Creative Director, UX Planner, Design System Architect, Frontend Engineer, Backend Engineer, Performance SRE, Security Sentinel, and QA Automation personas.
|
|
452
|
+
version: 0.2.5
|
|
453
|
+
author: Arnel (@hiroqt)
|
|
454
|
+
---
|
|
455
|
+
|
|
456
|
+
# π’ PixelCrew β Autonomous Multi-Agent Engineering Swarm
|
|
457
|
+
|
|
458
|
+
> **Floor 42, Pixel Corps HQ**: Transform any codebase into an observable, choreographed engineering workspace with anti-AI design synthesis, mathematical fluid typography, and automated E2E testing.
|
|
459
|
+
|
|
460
|
+
---
|
|
461
|
+
|
|
462
|
+
## β‘ Floor 42 Swarm Command Suite
|
|
463
|
+
|
|
464
|
+
All commands can be invoked via \`/pixelcrew <command>\`, direct slash commands (e.g. \`/<command>\`), or the CLI (\`npx pixelcrew <command>\`):
|
|
465
|
+
|
|
466
|
+
### 1. π Creation & Architecture
|
|
467
|
+
- \`/pixelcrew assemble [prompt]\` (aliases: \`/assemble\`, \`/craft\`, \`/sprint\`): Full shape-then-build multi-agent sprint pipeline from brief to production code.
|
|
468
|
+
- \`/pixelcrew blueprint [prompt]\` (aliases: \`/blueprint\`, \`/shape\`, \`/spec\`): Plans UX section topologies, wireframes, and compiles dynamic DAG task graphs *before* writing code.
|
|
469
|
+
- \`/pixelcrew boss-fight <issue>\` (aliases: \`/boss-fight\`, \`/fix\`, \`/debug\`): Targeted swarm bug blitz to isolate, repair, and verify breaking issues.
|
|
470
|
+
- \`/pixelcrew manifest\`: Reverse-engineers active project code into comprehensive \`DESIGN.md\` and \`PRODUCT.md\` architectural specifications.
|
|
471
|
+
- \`/pixelcrew retrofit\`: Extracts reusable UI primitives, Tailwind tokens, and CSS variables into the centralized design system.
|
|
472
|
+
|
|
473
|
+
### 2. π¨ Pixel Aesthetic & Anti-AI Direction
|
|
474
|
+
- \`/pixelcrew render\`: 6-dimension Anti-AI design & UX review (Originality, Hierarchy, Typography, Layout, Brand, Slop Penalty).
|
|
475
|
+
- \`/pixelcrew 8bit\`: Adds retro arcade delight: procedural Web Audio chimes, CRT phosphor scanlines, and tactile feedback.
|
|
476
|
+
- \`/pixelcrew overdrive\`: Injects high-end technical effects: WebGL/Canvas shaders, interactive terminal console, reactive backgrounds.
|
|
477
|
+
- \`/pixelcrew chromatic [palette]\`: Injects curated HSL color tokens, dark mode elevation surfaces, and atmospheric accent tiers.
|
|
478
|
+
- \`/pixelcrew typeset [preset]\`: Fixes font pairings, applies mathematical fluid \`clamp()\` type scales, and establishes expressive typography.
|
|
479
|
+
- \`/pixelcrew bento [section]\`: Reorganizes sections into asymmetric Bento grids, dynamic viewport flow, and zero horizontal overflow.
|
|
480
|
+
- \`/pixelcrew de-slop [section]\`: Strips AI clichΓ© copywriting with grounded technical value propositions.
|
|
481
|
+
|
|
482
|
+
### 3. π‘οΈ Production Hardening & SRE
|
|
483
|
+
- \`/pixelcrew sentinel\`: Security & resilience pass: OWASP checks, SQL injection prevention, RFC 7807 error envelopes, and rate limiting.
|
|
484
|
+
- \`/pixelcrew audit\`: Runs technical quality checks: a11y WCAG AA/AAA, Core Web Vitals (LCP < 0.6s), and Playwright E2E journeys.
|
|
485
|
+
- \`/pixelcrew warp\`: Full-stack performance tuning: streaming SSR, bundle minification, and AST prompt caching.
|
|
486
|
+
- \`/pixelcrew polish\`: Final shipping readiness pass: design system token alignment, type checks, and aesthetic cleanup.
|
|
487
|
+
|
|
488
|
+
---
|
|
489
|
+
|
|
490
|
+
## π₯ Floor 42 Personas & Squad Roles
|
|
491
|
+
1. **Lead Orchestrator (\`orchestrator\`)**: DAG task decomposition, context extraction, and subagent synthesis.
|
|
492
|
+
2. **Creative Director (\`creativeDirector\`)**: Aesthetic strategy, brand soul, and strict anti-AI constraints.
|
|
493
|
+
3. **UX Planner (\`uxPlanner\`)**: Asymmetric section layouts, user flow, and interaction specs.
|
|
494
|
+
4. **Design System Architect (\`designSystem\`)**: HSL tokens, mathematical \`clamp()\` typography, and surface tiers.
|
|
495
|
+
5. **Frontend Engineer (\`frontend\`)**: Next.js 14/15 App Router, React 19, TypeScript, and Tailwind CSS.
|
|
496
|
+
6. **Backend & Database Engineer (\`backend\`, \`database\`)**: Type-safe route handlers, RFC 7807 envelopes, Prisma/Postgres schemas.
|
|
497
|
+
7. **Performance & Security SRE (\`performance\`, \`security\`)**: Core Web Vitals, CSP headers, OWASP audit, and token pruning.
|
|
498
|
+
8. **QA Automation Engineer (\`qa\`)**: Playwright E2E user journeys, visual regression, and audit reports.
|
|
447
499
|
`
|
|
448
500
|
};
|
|
501
|
+
|