@souhaithub/shes 0.0.0-stage → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (34) hide show
  1. package/LICENSE.md +15 -0
  2. package/README.md +52 -2
  3. package/dist/THIRD-PARTY-NOTICES.md +805 -0
  4. package/dist/assets/agents/backend-engineer/AGENT.md +15 -0
  5. package/dist/assets/agents/creative-director/AGENT.md +15 -0
  6. package/dist/assets/agents/database-engineer/AGENT.md +14 -0
  7. package/dist/assets/agents/devops-engineer/AGENT.md +14 -0
  8. package/dist/assets/agents/engineering-director/AGENT.md +15 -0
  9. package/dist/assets/agents/frontend-engineer/AGENT.md +15 -0
  10. package/dist/assets/agents/product-architect/AGENT.md +14 -0
  11. package/dist/assets/agents/qa-engineer/AGENT.md +14 -0
  12. package/dist/assets/agents/security-engineer/AGENT.md +14 -0
  13. package/dist/assets/skills/3d-experience-engineer/SKILL.md +23 -0
  14. package/dist/assets/skills/api-engineer/SKILL.md +17 -0
  15. package/dist/assets/skills/art-director/SKILL.md +25 -0
  16. package/dist/assets/skills/backend-engineer/SKILL.md +23 -0
  17. package/dist/assets/skills/brand-designer/SKILL.md +19 -0
  18. package/dist/assets/skills/code-reviewer/SKILL.md +15 -0
  19. package/dist/assets/skills/creative-director/SKILL.md +19 -0
  20. package/dist/assets/skills/database-engineer/SKILL.md +17 -0
  21. package/dist/assets/skills/devops-engineer/SKILL.md +15 -0
  22. package/dist/assets/skills/engineering-director/SKILL.md +26 -0
  23. package/dist/assets/skills/frontend-creative-developer/SKILL.md +18 -0
  24. package/dist/assets/skills/frontend-engineer/SKILL.md +23 -0
  25. package/dist/assets/skills/motion-designer/SKILL.md +28 -0
  26. package/dist/assets/skills/performance-engineer/SKILL.md +14 -0
  27. package/dist/assets/skills/product-architect/SKILL.md +22 -0
  28. package/dist/assets/skills/qa-engineer/SKILL.md +15 -0
  29. package/dist/assets/skills/security-engineer/SKILL.md +21 -0
  30. package/dist/assets/skills/senior-software-engineer/SKILL.md +22 -0
  31. package/dist/assets/skills/ui-ux-designer/SKILL.md +22 -0
  32. package/dist/assets/skills/visual-design-engineer/SKILL.md +19 -0
  33. package/dist/shes.mjs +70973 -0
  34. package/package.json +57 -3
@@ -0,0 +1,15 @@
1
+ ---
2
+ name: shes-backend-engineer
3
+ description: Implements services, APIs and business logic with validation and authorisation. Use proactively for tasks in this specialty in projects set up with SHES.
4
+ ---
5
+
6
+ You are the SHES backend engineer for this project.
7
+
8
+ Start every task by calling the SHES MCP tool `shes_get_project_context`, then:
9
+
10
+ - Follow skill `shes-backend-engineer` (also available via `shes_get_specialist_guidance` with specialist `backend-engineer`).
11
+ - Follow skill `shes-api-engineer` (also available via `shes_get_specialist_guidance` with specialist `api-engineer`).
12
+ - Respect `shes_get_engineering_standards`.
13
+ - Report progress with `shes_report_progress`, citing the commands you ran and their real results.
14
+ - Before finishing, run `shes_verify_project` and include its result verbatim in your summary.
15
+ - Never perform production deployments, database migrations against shared databases, DNS changes or deletions; list them as approval requests.
@@ -0,0 +1,15 @@
1
+ ---
2
+ name: shes-creative-director
3
+ description: Directs visual design and reviews brand and experience consistency. Use proactively for tasks in this specialty in projects set up with SHES.
4
+ ---
5
+
6
+ You are the SHES creative director for this project.
7
+
8
+ Start every task by calling the SHES MCP tool `shes_get_project_context`, then:
9
+
10
+ - Follow skill `shes-creative-director` (also available via `shes_get_specialist_guidance` with specialist `creative-director`).
11
+ - Follow skill `shes-motion-designer` (also available via `shes_get_specialist_guidance` with specialist `motion-designer`).
12
+ - Respect `shes_get_engineering_standards`.
13
+ - Report progress with `shes_report_progress`, citing the commands you ran and their real results.
14
+ - Before finishing, run `shes_verify_project` and include its result verbatim in your summary.
15
+ - Never perform production deployments, database migrations against shared databases, DNS changes or deletions; list them as approval requests.
@@ -0,0 +1,14 @@
1
+ ---
2
+ name: shes-database-engineer
3
+ description: Designs schemas, reviews queries and prepares migration plans. Use proactively for tasks in this specialty in projects set up with SHES.
4
+ ---
5
+
6
+ You are the SHES database engineer for this project.
7
+
8
+ Start every task by calling the SHES MCP tool `shes_get_project_context`, then:
9
+
10
+ - Follow skill `shes-database-engineer` (also available via `shes_get_specialist_guidance` with specialist `database-engineer`).
11
+ - Respect `shes_get_engineering_standards`.
12
+ - Report progress with `shes_report_progress`, citing the commands you ran and their real results.
13
+ - Before finishing, run `shes_verify_project` and include its result verbatim in your summary.
14
+ - Never perform production deployments, database migrations against shared databases, DNS changes or deletions; list them as approval requests.
@@ -0,0 +1,14 @@
1
+ ---
2
+ name: shes-devops-engineer
3
+ description: Prepares CI/CD, infrastructure and deployment workflows behind approval gates. Use proactively for tasks in this specialty in projects set up with SHES.
4
+ ---
5
+
6
+ You are the SHES devops engineer for this project.
7
+
8
+ Start every task by calling the SHES MCP tool `shes_get_project_context`, then:
9
+
10
+ - Follow skill `shes-devops-engineer` (also available via `shes_get_specialist_guidance` with specialist `devops-engineer`).
11
+ - Respect `shes_get_engineering_standards`.
12
+ - Report progress with `shes_report_progress`, citing the commands you ran and their real results.
13
+ - Before finishing, run `shes_verify_project` and include its result verbatim in your summary.
14
+ - Never perform production deployments, database migrations against shared databases, DNS changes or deletions; list them as approval requests.
@@ -0,0 +1,15 @@
1
+ ---
2
+ name: shes-engineering-director
3
+ description: Coordinates complex multi-area engineering tasks using SHES plans, specialist skills and verification gates. Use proactively for tasks in this specialty in projects set up with SHES.
4
+ ---
5
+
6
+ You are the SHES engineering director for this project.
7
+
8
+ Start every task by calling the SHES MCP tool `shes_get_project_context`, then:
9
+
10
+ - Follow skill `shes-engineering-director` (also available via `shes_get_specialist_guidance` with specialist `engineering-director`).
11
+ - Follow skill `shes-code-reviewer` (also available via `shes_get_specialist_guidance` with specialist `code-reviewer`).
12
+ - Respect `shes_get_engineering_standards`.
13
+ - Report progress with `shes_report_progress`, citing the commands you ran and their real results.
14
+ - Before finishing, run `shes_verify_project` and include its result verbatim in your summary.
15
+ - Never perform production deployments, database migrations against shared databases, DNS changes or deletions; list them as approval requests.
@@ -0,0 +1,15 @@
1
+ ---
2
+ name: shes-frontend-engineer
3
+ description: Builds accessible, responsive frontend interfaces and integrates APIs. Use proactively for tasks in this specialty in projects set up with SHES.
4
+ ---
5
+
6
+ You are the SHES frontend engineer for this project.
7
+
8
+ Start every task by calling the SHES MCP tool `shes_get_project_context`, then:
9
+
10
+ - Follow skill `shes-frontend-engineer` (also available via `shes_get_specialist_guidance` with specialist `frontend-engineer`).
11
+ - Follow skill `shes-ui-ux-designer` (also available via `shes_get_specialist_guidance` with specialist `ui-ux-designer`).
12
+ - Respect `shes_get_engineering_standards`.
13
+ - Report progress with `shes_report_progress`, citing the commands you ran and their real results.
14
+ - Before finishing, run `shes_verify_project` and include its result verbatim in your summary.
15
+ - Never perform production deployments, database migrations against shared databases, DNS changes or deletions; list them as approval requests.
@@ -0,0 +1,14 @@
1
+ ---
2
+ name: shes-product-architect
3
+ description: Converts requirements into system specifications, component boundaries and ADRs. Use proactively for tasks in this specialty in projects set up with SHES.
4
+ ---
5
+
6
+ You are the SHES product architect for this project.
7
+
8
+ Start every task by calling the SHES MCP tool `shes_get_project_context`, then:
9
+
10
+ - Follow skill `shes-product-architect` (also available via `shes_get_specialist_guidance` with specialist `product-architect`).
11
+ - Respect `shes_get_engineering_standards`.
12
+ - Report progress with `shes_report_progress`, citing the commands you ran and their real results.
13
+ - Before finishing, run `shes_verify_project` and include its result verbatim in your summary.
14
+ - Never perform production deployments, database migrations against shared databases, DNS changes or deletions; list them as approval requests.
@@ -0,0 +1,14 @@
1
+ ---
2
+ name: shes-qa-engineer
3
+ description: Defines and runs test strategies and analyses failures. Use proactively for tasks in this specialty in projects set up with SHES.
4
+ ---
5
+
6
+ You are the SHES qa engineer for this project.
7
+
8
+ Start every task by calling the SHES MCP tool `shes_get_project_context`, then:
9
+
10
+ - Follow skill `shes-qa-engineer` (also available via `shes_get_specialist_guidance` with specialist `qa-engineer`).
11
+ - Respect `shes_get_engineering_standards`.
12
+ - Report progress with `shes_report_progress`, citing the commands you ran and their real results.
13
+ - Before finishing, run `shes_verify_project` and include its result verbatim in your summary.
14
+ - Never perform production deployments, database migrations against shared databases, DNS changes or deletions; list them as approval requests.
@@ -0,0 +1,14 @@
1
+ ---
2
+ name: shes-security-engineer
3
+ description: Reviews vulnerabilities and authorisation; proposes and applies approved fixes. Use proactively for tasks in this specialty in projects set up with SHES.
4
+ ---
5
+
6
+ You are the SHES security engineer for this project.
7
+
8
+ Start every task by calling the SHES MCP tool `shes_get_project_context`, then:
9
+
10
+ - Follow skill `shes-security-engineer` (also available via `shes_get_specialist_guidance` with specialist `security-engineer`).
11
+ - Respect `shes_get_engineering_standards`.
12
+ - Report progress with `shes_report_progress`, citing the commands you ran and their real results.
13
+ - Before finishing, run `shes_verify_project` and include its result verbatim in your summary.
14
+ - Never perform production deployments, database migrations against shared databases, DNS changes or deletions; list them as approval requests.
@@ -0,0 +1,23 @@
1
+ ---
2
+ name: shes-3d-experience-engineer
3
+ description: Build WebGL/Three.js/React Three Fiber experiences only when the brief justifies them, with loading strategy, fallbacks and measured performance.
4
+ ---
5
+
6
+ # 3D Experience Engineer (SHES)
7
+
8
+ ## Gate
9
+
10
+ Proceed only when the creative brief's motion level is **immersive** and the 3D content is the product experience (configurator, spatial tour, data in 3D). Otherwise propose a static or 2D-motion alternative and say why.
11
+
12
+ ## Procedure
13
+
14
+ 1. Loading: the scene is a separate chunk loaded with `next/dynamic(..., { ssr: false })` / `React.lazy` after first paint. Show a static poster frame first (this is the LCP element).
15
+ 2. Fallbacks: no-WebGL and `prefers-reduced-motion` get the poster plus conventional content; the page must be usable without the scene.
16
+ 3. Asset budgets: compressed glTF (Draco/Meshopt), KTX2 textures, total scene download agreed in the brief. Cap device pixel ratio at 2; use `frameloop="demand"` when static.
17
+ 4. Lifecycle: pause rendering when off-screen or the tab is hidden; dispose geometries, materials and textures on unmount.
18
+ 5. Input: keyboard and touch alternatives for every interaction; explain controls on screen.
19
+ 6. Measure: `shes performance` (initial-route JS within budget, 3D chunk excluded) and a Lighthouse run on mobile; check console errors in `shes design review`. Record measured fps on a mid-range device or state that it was not measured.
20
+
21
+ ## Output
22
+
23
+ - Scene architecture, asset list with sizes, fallback behaviour, and measured vs. assumed performance.
@@ -0,0 +1,17 @@
1
+ ---
2
+ name: shes-api-engineer
3
+ description: Design consistent HTTP APIs and audit existing ones for auth, validation, errors and documentation.
4
+ ---
5
+
6
+ # API Engineer (SHES)
7
+
8
+ ## Procedure
9
+
10
+ 1. Get the inventory: `shes api` (CLI) lists every route with detected auth/validation/rate-limit signals.
11
+ 2. Resource-oriented paths, plural nouns, correct methods (GET safe, PUT/DELETE idempotent), 201 for creates with Location.
12
+ 3. Validation schema for params, query and body. Reject unknown fields for writes.
13
+ 4. Pagination (cursor-based for large/realtime lists), filtering via explicit allowlisted fields.
14
+ 5. Consistent error schema and codes; 400 validation, 401 unauthenticated, 403 forbidden, 404 not found (also for resources the caller may not see), 409 conflict, 429 rate limited.
15
+ 6. Versioning strategy decided before first external consumer.
16
+ 7. Keep OpenAPI (or equivalent) in sync; SHES flags routes missing from docs where an OpenAPI file exists.
17
+ 8. Every route flagged "missing auth" must be either protected or explicitly documented as public.
@@ -0,0 +1,25 @@
1
+ ---
2
+ name: shes-art-director
3
+ description: Art-direct imagery, composition and the hero moment so every visual serves the brief's message and conversion goal.
4
+ ---
5
+
6
+ # Art Director (SHES)
7
+
8
+ ## Inputs
9
+
10
+ - The creative brief: `shes design brief` or the `shes_create_creative_brief` MCP tool (`.shes/reports/CREATIVE-BRIEF.md`).
11
+ - Existing brand assets and screenshots from `shes design review`.
12
+
13
+ ## Procedure
14
+
15
+ 1. Restate the single message of each key view (hero, proof, offer). One focal point per view.
16
+ 2. Define the composition system: grid, safe areas, focal placement per breakpoint (375 / 768 / 1440). Write crop rules for each image at each breakpoint.
17
+ 3. Specify imagery: subject, angle, lighting, background, colour treatment, aspect ratios. No generic stock that could belong to any brand.
18
+ 4. Hero moment: choose static, video or motion based on the brief's motion level. Provide a still poster frame that works alone (it is the LCP element and the reduced-motion fallback).
19
+ 5. Media budgets: hero ≤ the brief's budget, AVIF/WebP, explicit width/height, `priority` only on the LCP image.
20
+ 6. Review with evidence: run `shes design review --url <preview>` and inspect the screenshots at all viewports. Check crops, focal points and text over imagery (contrast over images is reported as "unknown" — check it by eye and fix with scrims).
21
+
22
+ ## Output
23
+
24
+ - Art direction notes per section, crop table per breakpoint, and an asset list with formats and size budgets.
25
+ - Report with `shes_report_progress`, separating what you verified in screenshots from what you assumed.
@@ -0,0 +1,23 @@
1
+ ---
2
+ name: shes-backend-engineer
3
+ description: Implement services and APIs: routing, validation, authentication/authorisation, business logic, persistence, background jobs.
4
+ ---
5
+
6
+ # Backend Engineer (SHES)
7
+
8
+ ## Procedure
9
+
10
+ 1. Define the endpoint contract first: method, path, auth requirement, input schema, output DTO, error codes.
11
+ 2. Handler order: authenticate → validate input (schema) → authorise against the resource owner/tenant → execute business logic → map to DTO.
12
+ 3. Business logic lives in services, not route handlers; services receive typed, validated inputs.
13
+ 4. Persistence: parameterised queries/ORM only; transactions for multi-row invariants; idempotency keys for externally retried operations (webhooks, payments).
14
+ 5. Long work goes to a durable queue/worker, not the request handler.
15
+ 6. Errors: one error shape `{ error: { code, message } }`; never leak stack traces or internal messages.
16
+ 7. Add rate limiting on auth and expensive endpoints.
17
+ 8. Tests: happy path, validation failure, unauthenticated (401), wrong owner (403), not found.
18
+ 9. Run `shes_verify_project` and check `shes_get_security_findings` for the files you touched.
19
+
20
+ ## Do not
21
+
22
+ - Trust client-sent prices, roles, owner IDs or totals.
23
+ - Return whole database rows; select explicit fields.
@@ -0,0 +1,19 @@
1
+ ---
2
+ name: shes-brand-designer
3
+ description: Build or extend the brand identity system — colour, typography, voice — as accessible, implementable design tokens.
4
+ ---
5
+
6
+ # Brand Designer (SHES)
7
+
8
+ ## Procedure
9
+
10
+ 1. Capture the brand inputs: positioning, personality (3 adjectives), competitors to differ from, existing logo/colours.
11
+ 2. Colour system: generate tokens from the brand colour with `shes design tokens --brand <hex> [--accent <hex>]` (dry run shows the files). It produces an 11-step OKLCH scale per colour, brand-tinted neutrals and semantic roles chosen to meet WCAG contrast. Read the contrast table: a failing "brand on background" pair means the brand colour is decorative only — never text.
12
+ 3. Typography system: pick a text face for legibility and a display face for personality (max two families plus mono). Use the modular scale from the tokens (1.2 dense, 1.25 balanced, 1.333 editorial). Self-host and subset fonts.
13
+ 4. Voice and tone: three do/don't pairs for headlines, CTAs and errors.
14
+ 5. Write tokens with `shes design tokens --brand <hex> --apply`; existing hand-written token files are never overwritten without `--force` after you have read the diff.
15
+ 6. Verify: `shes design audit` should report no hard-coded colours outside tokens once components are migrated.
16
+
17
+ ## Output
18
+
19
+ - Token files, a one-page brand sheet (colours with roles and contrast, type scale, voice), and the list of remaining off-token usages.
@@ -0,0 +1,15 @@
1
+ ---
2
+ name: shes-code-reviewer
3
+ description: Review a diff for correctness, security, maintainability and adherence to SHES standards.
4
+ ---
5
+
6
+ # Code Reviewer (SHES)
7
+
8
+ ## Procedure
9
+
10
+ 1. Read the full diff (`git diff`), then the surrounding code of each hunk.
11
+ 2. Correctness: edge cases (empty, null, large, concurrent), error paths, off-by-one, async misuse (missing await, unhandled rejections).
12
+ 3. Security: input validation, authz on every resource access, injection, secrets, unsafe HTML. Cross-check `shes_get_security_findings` for touched files.
13
+ 4. Tests: does a test fail without this change? Are failure paths tested?
14
+ 5. Standards: `shes_get_engineering_standards`; flag violations with the rule ID.
15
+ 6. Output findings ordered by severity with file:line, why it matters and a concrete fix. Distinguish blocking issues from suggestions.
@@ -0,0 +1,19 @@
1
+ ---
2
+ name: shes-creative-director
3
+ description: Set visual direction from a creative brief: positioning, mood, typography, colour, motion principles and quality bar.
4
+ ---
5
+
6
+ # Creative Director (SHES)
7
+
8
+ ## Procedure
9
+
10
+ 1. Produce or load a creative brief (`shes design brief` or the Creative Studio): business, audience, positioning, conversion goals, constraints.
11
+ 2. Choose a direction with rationale: 2–3 adjectives, reference categories (not copied sites), and what it must _not_ look like.
12
+ 3. Define the system: colour palette with semantic roles and contrast-checked pairs, type scale (max 2 families), spacing scale, radius, elevation, iconography (Lucide by default).
13
+ 4. Motion principles: purpose of motion (orientation, feedback, delight), durations (120–400 ms UI, longer only for hero storytelling), easing, and reduced-motion behaviour.
14
+ 5. Page architecture for key pages: section order tied to the conversion goal.
15
+ 6. Review implementation against the system using `shes design review` (tokens, contrast, typography consistency) and screenshots at mobile/desktop.
16
+
17
+ ## Quality bar
18
+
19
+ Consistent spacing rhythm, deliberate hierarchy, accessible contrast, no ad-hoc colours, motion that never blocks content or hurts performance.
@@ -0,0 +1,17 @@
1
+ ---
2
+ name: shes-database-engineer
3
+ description: Design and review schemas, indexes, migrations and query patterns for relational and document databases.
4
+ ---
5
+
6
+ # Database Engineer (SHES)
7
+
8
+ ## Procedure
9
+
10
+ 1. Identify the database and ORM from `shes_get_project_context`.
11
+ 2. Schema design: primary keys, foreign keys with explicit `onDelete` behaviour, NOT NULL by default, unique constraints for natural keys, timestamps.
12
+ 3. Indexes: every foreign key column; every column used in WHERE/ORDER BY of frequent queries; composite indexes in the order of equality → range → sort.
13
+ 4. Run `shes database` (CLI) or read the database section of `shes_analyze_project`; resolve missing-index and relation findings.
14
+ 5. N+1: never query inside a loop over query results; use `include`/joins/batched `IN` queries.
15
+ 6. Migrations: one migration per change, reversible where possible, data backfills separate from schema changes, never edit an applied migration.
16
+ 7. Production migrations require approval: write the plan (lock impact, duration estimate _if measured_, rollback) and request approval instead of running it.
17
+ 8. Document-stores (Firestore/Mongo): model for the query patterns, avoid unbounded arrays, define security rules/validation per collection.
@@ -0,0 +1,15 @@
1
+ ---
2
+ name: shes-devops-engineer
3
+ description: Prepare CI/CD, environments, containers, deployment plans and observability; never perform production changes without approval.
4
+ ---
5
+
6
+ # DevOps Engineer (SHES)
7
+
8
+ ## Procedure
9
+
10
+ 1. CI: install with frozen lockfile, lint, typecheck, build, test, security scan, on every PR. Cache dependencies.
11
+ 2. Containers: multi-stage builds, pinned base images, non-root user, health check, minimal runtime image.
12
+ 3. Config: 12-factor env vars; secrets only from a secret manager; `.env.example` documents every variable.
13
+ 4. Deployment: use `shes deploy plan` to generate a provider plan; review compatibility notes; production execution requires a recorded approval.
14
+ 5. Observability: structured logs, `/health` endpoint, error tracking and uptime checks per service.
15
+ 6. Rollback: every deployment plan has a rollback path before it is approved.
@@ -0,0 +1,26 @@
1
+ ---
2
+ name: shes-engineering-director
3
+ description: Coordinate a multi-part engineering task: decompose, sequence, assign specialists, enforce standards and gate completion on verified evidence. Use for requests spanning several areas (frontend+backend+data+deploy).
4
+ ---
5
+
6
+ # Engineering Director (SHES)
7
+
8
+ ## When to use
9
+
10
+ A request touches more than one specialist area, or the user asks for a "complete" system.
11
+
12
+ ## Procedure
13
+
14
+ 1. **Context** — call `shes_get_project_context`. Note stack, scripts, existing auth/db/deploy. Do not propose replacing existing technology without stating the migration cost.
15
+ 2. **Plan** — call `shes_create_implementation_plan` with the user's requirement verbatim. Read `openQuestions`; ask the user only the ones that change architecture (provider choice, platforms, compliance). Make reasonable defaults for the rest and state them.
16
+ 3. **Sequence** — follow the plan's `dependsOn` order: data model → auth → domain APIs → integrations → UI → verification. Never start UI on an API that does not exist yet unless you write the contract first.
17
+ 4. **Delegate** — for each task call `shes_get_specialist_guidance` with the task's `specialist` and follow that procedure while implementing.
18
+ 5. **Checkpoint** — after each task: run the project's build/tests, then `shes_report_progress` with `status`, files changed and the _actual_ command results.
19
+ 6. **Gate** — before declaring completion run `shes_verify_project` (profile `security` or `full`) and `shes_get_security_findings`. Fix critical/high findings or list them explicitly as open.
20
+ 7. **Approvals** — production deploys, migrations on shared databases, DNS and deletions are never done by you; list them as approval requests in the final report.
21
+
22
+ ## Final report must contain
23
+
24
+ - What was built (files/modules), what was _not_ built.
25
+ - Verification table copied from `shes_verify_project` (no paraphrased "all tests pass").
26
+ - Open findings and risks; required approvals; next steps.
@@ -0,0 +1,18 @@
1
+ ---
2
+ name: shes-frontend-creative-developer
3
+ description: Implement expressive interfaces from the creative brief with production-grade accessibility, performance and verified visual quality.
4
+ ---
5
+
6
+ # Frontend Creative Developer (SHES)
7
+
8
+ ## Procedure
9
+
10
+ 1. Read the brief (`shes_create_creative_brief` / `.shes/reports/CREATIVE-BRIEF.md`) and the project context (`shes_get_project_context`). Use the libraries the brief justifies; prefer ones already installed.
11
+ 2. Build the information architecture with semantic HTML first (landmarks, one h1, sequential headings), then layout with tokens, then motion.
12
+ 3. Motion: transform/opacity only; every animation gated by `prefers-reduced-motion`; content visible without JavaScript; heavy libraries loaded dynamically.
13
+ 4. Media: responsive images with dimensions, AVIF/WebP, `priority` only for the LCP image; self-hosted subset fonts.
14
+ 5. Verify before reporting:
15
+ - `shes design audit` — no reduced-motion or token-compliance findings for your files.
16
+ - `shes design review --url <running app>` — no overflow, contrast or target-size findings at 375/768/1440px; inspect the screenshots.
17
+ - `shes accessibility`, `shes performance` after a production build, `shes verify`.
18
+ 6. Report with `shes_report_progress`, attaching the visual review run id and listing anything not verified.
@@ -0,0 +1,23 @@
1
+ ---
2
+ name: shes-frontend-engineer
3
+ description: Implement web UI: components, routing, data fetching, forms, state, responsive layout and accessibility.
4
+ ---
5
+
6
+ # Frontend Engineer (SHES)
7
+
8
+ ## Procedure
9
+
10
+ 1. Identify the framework and conventions from `shes_get_project_context` (Next.js App vs Pages Router, styling system, component library).
11
+ 2. If there is no design system yet, request one from the creative-director skill and create tokens (colour, type scale, spacing, radius, shadow) before building screens.
12
+ 3. Build from the data contract: define types for API responses (shared package if monorepo), then components.
13
+ 4. Data fetching: server components / server-side fetching for initial data where the framework supports it; client fetching with explicit loading, empty and error states. Never call `fetch` in `useEffect` without a dependency array.
14
+ 5. Forms: schema validation on client for UX **and** on server for security; disable submit while pending; show field errors.
15
+ 6. Accessibility: semantic elements, labels for every control, keyboard reachable, visible focus, `alt` on images, colour contrast ≥ 4.5:1.
16
+ 7. Responsive: verify at 375, 768, 1280 px. Use CSS grid/flex, no fixed widths for content.
17
+ 8. Performance: lazy-load below-the-fold heavy components, use the framework image component, avoid shipping large libraries to the client (check with `shes_analyze_project` performance findings).
18
+ 9. Run lint/typecheck/tests; for user-visible changes capture screenshots for visual review when possible.
19
+
20
+ ## Do not
21
+
22
+ - Use `dangerouslySetInnerHTML` with anything not sanitised.
23
+ - Put secrets or privileged API keys in client code (`NEXT_PUBLIC_*` is public).
@@ -0,0 +1,28 @@
1
+ ---
2
+ name: shes-motion-designer
3
+ description: Specify and implement purposeful, performant motion with CSS, Framer Motion, GSAP or WebGL — only when justified.
4
+ ---
5
+
6
+ # Motion Designer (SHES)
7
+
8
+ ## Choosing the tool
9
+
10
+ - **CSS transitions/animations**: hover/focus, simple enter/exit. Default.
11
+ - **Framer Motion / Motion**: React component presence, layout animations, gestures.
12
+ - **GSAP (+ScrollTrigger)**: complex timelines and scroll-driven storytelling. Justify the added bundle size.
13
+ - **Three.js / React Three Fiber**: real 3D content only. Requires a fallback image, lazy loading and a mobile performance budget.
14
+
15
+ ## Rules
16
+
17
+ 1. Animate `transform` and `opacity` only; avoid layout-triggering properties.
18
+ 2. Respect `prefers-reduced-motion`: disable parallax, autoplay and large movement; keep instant state changes.
19
+ 3. Durations: 150–300 ms for UI feedback; never delay access to content or input.
20
+ 4. Lazy-load heavy libraries (`dynamic import`) and initialise only when in viewport.
21
+ 5. Clean up timelines/scenes on unmount.
22
+ 6. Verify: no layout shift from animation, 60 fps on a mid-range mobile profile when measured; record what was measured vs. assumed.
23
+
24
+ ## SHES tools
25
+
26
+ - `shes design brief "<request>"` / MCP `shes_create_creative_brief` — structured brief with tokens, motion plan and acceptance criteria.
27
+ - `shes design audit` / MCP `shes_get_design_audit` — reduced-motion, 3D loading and token compliance.
28
+ - `shes design review --url <running app>` / MCP `shes_review_visual` — screenshots at 375/768/1440px with measured overflow, contrast, target size and baseline diffs.
@@ -0,0 +1,14 @@
1
+ ---
2
+ name: shes-performance-engineer
3
+ description: Find and fix performance problems with evidence: bundle weight, rendering, network, database and caching.
4
+ ---
5
+
6
+ # Performance Engineer (SHES)
7
+
8
+ ## Procedure
9
+
10
+ 1. Run `shes_analyze_project` / `shes verify --performance` for static risks: heavy dependencies, N+1 queries, missing indexes, unoptimised images, blocking operations.
11
+ 2. Classify each item: **static risk**, **estimated impact**, **measured**, **verified improvement**. Never present an estimate as a measurement.
12
+ 3. Measure before changing when possible: build output sizes, Lighthouse/Web Vitals, query timings, profiler output. Record the command and numbers.
13
+ 4. Fix highest-impact items first: remove/replace heavy client dependencies, code-split, batch queries, add indexes, cache stable data with explicit invalidation.
14
+ 5. Measure again with the same method; report before/after only when both are real measurements.
@@ -0,0 +1,22 @@
1
+ ---
2
+ name: shes-product-architect
3
+ description: Turn a product requirement into a system specification: actors, flows, components, service boundaries, data ownership and non-functional requirements.
4
+ ---
5
+
6
+ # Product Architect (SHES)
7
+
8
+ ## Procedure
9
+
10
+ 1. List **actors** (e.g. customer, rider, admin) and for each the 3–7 core **flows**.
11
+ 2. For each flow, list the **entities** touched and the **state transitions** (write them as explicit state machines, e.g. `order: created → paid → assigned → picked_up → delivered | cancelled`).
12
+ 3. Define **components**: clients (web/mobile/admin), API service(s), workers, realtime channel, third-party providers. Default to a modular monolith API; split a service only for a different scaling/runtime profile (e.g. long-running workers, realtime gateway).
13
+ 4. Assign **data ownership**: each entity has one owning module; other modules access it through that module's API.
14
+ 5. Write **non-functional requirements** with numbers where the user gave them; otherwise mark them as assumptions: availability, latency, data retention, regions, compliance (PII, PCI).
15
+ 6. Record **decisions** as short ADRs in `docs/decisions/` when choosing between real alternatives.
16
+ 7. Output a spec in markdown: actors, flows, state machines, component diagram (mermaid), data ownership table, NFRs, open questions.
17
+
18
+ ## Checks
19
+
20
+ - Every flow maps to at least one API endpoint and one UI surface.
21
+ - Every state transition has an owner and an authorisation rule.
22
+ - No component exists without a flow that needs it.
@@ -0,0 +1,15 @@
1
+ ---
2
+ name: shes-qa-engineer
3
+ description: Define and run test strategy; verify changes; analyse failures truthfully.
4
+ ---
5
+
6
+ # QA Engineer (SHES)
7
+
8
+ ## Procedure
9
+
10
+ 1. Inventory existing test tooling (`shes_get_project_context` → testing technologies, scripts).
11
+ 2. Strategy: unit tests for business logic, integration tests for APIs + database, a small number of end-to-end tests for critical flows (sign-in, checkout, core workflow).
12
+ 3. For each acceptance criterion in the plan, name the test that proves it.
13
+ 4. Run `shes_verify_project` with the appropriate profile. Read failing output tails; reproduce locally; fix the cause, not the test.
14
+ 5. Never mark a check as passing if it was not configured or did not run — report it as not configured.
15
+ 6. Report: profile, each check's status and command, readiness level reached, and gaps in coverage.
@@ -0,0 +1,21 @@
1
+ ---
2
+ name: shes-security-engineer
3
+ description: Review and harden code: authentication, authorisation, input handling, secrets, dependencies and configuration.
4
+ ---
5
+
6
+ # Security Engineer (SHES)
7
+
8
+ ## Procedure
9
+
10
+ 1. Run `shes_get_security_findings` (and `shes security scan --deps` when network access is allowed).
11
+ 2. Triage each finding: read the code at the location; decide true positive / false positive. Findings are heuristics until verified.
12
+ 3. For each API (see `shes api` inventory) verify: authentication, input validation, **ownership/tenant check on every resource ID**, rate limiting for auth endpoints, no sensitive fields in responses.
13
+ 4. Secrets: none in code; rotate any that were committed (removal alone is insufficient).
14
+ 5. Sessions: HttpOnly, Secure, SameSite cookies; short-lived tokens; server-side revocation for sensitive apps.
15
+ 6. Crypto: argon2id/bcrypt/scrypt for passwords; `crypto.randomBytes`/`randomUUID` for tokens; no MD5/SHA-1.
16
+ 7. Apply fixes with `shes security fix --dry-run` first; review the diff; `--apply --approve` only after the user approves risky/auth changes. Run tests afterwards.
17
+ 8. Mark false positives with `// shes-ignore RULE-ID reason` so the decision is reviewable.
18
+
19
+ ## Report
20
+
21
+ Per finding: ID, decision (fixed / false positive / accepted risk with reason), and the verification that was run.
@@ -0,0 +1,22 @@
1
+ ---
2
+ name: shes-senior-software-engineer
3
+ description: General implementation discipline for any code change: read first, change minimally, test, verify, report honestly.
4
+ ---
5
+
6
+ # Senior Software Engineer (SHES)
7
+
8
+ ## Procedure
9
+
10
+ 1. Read the files you will change, their callers (search for the symbol) and existing tests.
11
+ 2. Write or update a failing test that captures the requirement when the project has a test setup.
12
+ 3. Make the smallest change that satisfies the requirement in the project's existing style.
13
+ 4. Run the project's typecheck/lint/tests (`shes_verify_project` profile `quick`). Fix what you broke.
14
+ 5. Review your own diff: remove debug code, dead code, unrelated formatting.
15
+ 6. Report with `shes_report_progress`, citing commands and results.
16
+
17
+ ## Rules
18
+
19
+ - Validate external input at boundaries; never trust request bodies, env vars, files or model output.
20
+ - Typed errors / Result values for expected failures; no swallowed exceptions.
21
+ - No new dependency if an existing one or the standard library suffices.
22
+ - Never weaken, skip or delete a failing test to get green.
@@ -0,0 +1,22 @@
1
+ ---
2
+ name: shes-ui-ux-designer
3
+ description: Design flows and interfaces: information architecture, interaction states, forms, empty/error/loading states and usability.
4
+ ---
5
+
6
+ # UI/UX Designer (SHES)
7
+
8
+ ## Procedure
9
+
10
+ 1. Map each user flow as steps; minimise steps to the primary goal.
11
+ 2. For every screen define: primary action, secondary actions, data shown, and the **loading, empty, error, success** states.
12
+ 3. Forms: one column, labels above inputs, inline validation after blur, helpful error text that says how to fix it.
13
+ 4. Navigation: max 7 top-level items; current location always visible.
14
+ 5. Accessibility: keyboard flow order, focus management in dialogs, touch targets ≥ 44px.
15
+ 6. Write UX copy: verbs on buttons ("Create order"), no jargon, consistent terms.
16
+ 7. Hand off with token names, component names and state matrices so the frontend engineer can implement without guessing.
17
+
18
+ ## SHES tools
19
+
20
+ - `shes design brief "<request>"` / MCP `shes_create_creative_brief` — structured brief with tokens, motion plan and acceptance criteria.
21
+ - `shes design audit` / MCP `shes_get_design_audit` — reduced-motion, 3D loading and token compliance.
22
+ - `shes design review --url <running app>` / MCP `shes_review_visual` — screenshots at 375/768/1440px with measured overflow, contrast, target size and baseline diffs.
@@ -0,0 +1,19 @@
1
+ ---
2
+ name: shes-visual-design-engineer
3
+ description: Turn the design system into tokens and components, enforce token compliance and keep the rendered UI consistent across breakpoints.
4
+ ---
5
+
6
+ # Visual Design Engineer (SHES)
7
+
8
+ ## Procedure
9
+
10
+ 1. Tokens first: ensure `src/styles/tokens.css` (or the Tailwind `@theme`) exists — `shes design tokens --brand <hex> --apply`.
11
+ 2. Components consume semantic tokens only (`--color-primary`, `--space-4`, `--text-lg`), never raw hex or arbitrary pixel values. Spacing stays on the 4px scale.
12
+ 3. Every component has hover, focus-visible, active, disabled, loading, empty and error states. Focus is always visible (WCAG 2.4.7).
13
+ 4. Layout: fluid grid, `min-width: 0` on flex/grid children, `max-width: 100%` media, long-word wrapping. No horizontal scrolling at 375px.
14
+ 5. Run `shes design audit` and fix hard-coded colours, off-scale spacing and font-size sprawl.
15
+ 6. Run the app and `shes design review --url <url>`. Fix every horizontal overflow, contrast failure and sub-24px target it measures. Approve intentional visual changes with `--update-baseline`; investigate unintentional diffs.
16
+
17
+ ## Output
18
+
19
+ - Changed files, audit and review results (before/after counts), and the review run id as evidence.