heimdall-agent 0.0.0-stage → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +398 -2
- package/agents/code-sentinel.md +46 -0
- package/agents/database-architect.md +32 -0
- package/agents/frontend-designer.md +42 -0
- package/agents/mobile-designer.md +32 -0
- package/agents/orchestrator.md +93 -0
- package/agents/reviewer.md +82 -0
- package/agents/security-auditor.md +38 -0
- package/agents/tester.md +100 -0
- package/commands/grill-me.md +10 -0
- package/commands/orchestrate.md +21 -0
- package/commands/orchestrator.md +21 -0
- package/commands/plan.md +14 -0
- package/config/agents.json +165 -0
- package/config/models.json +105 -0
- package/config/profiles.json +88 -0
- package/config/skills.json +573 -0
- package/docs/SKILLS.md +282 -0
- package/doctrine/AGENTS.md +92 -0
- package/hooks/git/pre-push +26 -0
- package/hooks/heimdall-hook.cjs +152 -0
- package/hooks/hooks.json +47 -0
- package/package.json +54 -4
- package/playbooks/01-interactive-grilling-gate.md +41 -0
- package/playbooks/02-fast-code-deep-verification.md +31 -0
- package/playbooks/03-adversarial-code-review.md +56 -0
- package/playbooks/04-design-system-and-taste.md +27 -0
- package/playbooks/05-canonical-plan-template.md +90 -0
- package/playbooks/06-model-registry-matrix.md +72 -0
- package/setup.mjs +1764 -0
- package/skills/antislop/SKILL.md +680 -0
- package/skills/antislop-code/SKILL.md +128 -0
- package/skills/antislop-copywriting/SKILL.md +372 -0
- package/skills/antislop-human/SKILL.md +147 -0
- package/skills/antislop-human/contrast-check.py +165 -0
- package/skills/antislop-human/contrast-mcp.py +118 -0
- package/skills/antislop-layoutmobile/SKILL.md +170 -0
- package/skills/antislop-ui/SKILL.md +304 -0
- package/skills/brainstorming/SKILL.md +285 -0
- package/skills/brainstorming/scripts/frame-template.html +213 -0
- package/skills/brainstorming/scripts/helper.js +167 -0
- package/skills/brainstorming/scripts/server.cjs +723 -0
- package/skills/brainstorming/scripts/start-server.sh +209 -0
- package/skills/brainstorming/scripts/stop-server.sh +120 -0
- package/skills/brainstorming/spec-document-reviewer-prompt.md +49 -0
- package/skills/brainstorming/visual-companion.md +299 -0
- package/skills/brandkit/SKILL.md +798 -0
- package/skills/brutalist-skill/SKILL.md +92 -0
- package/skills/caveman/SKILL.md +54 -0
- package/skills/claude-collaborator/SKILL.md +73 -0
- package/skills/cloudflare-security-audit/AI-AND-LLM.md +83 -0
- package/skills/cloudflare-security-audit/ATTACK-CLASSES.md +130 -0
- package/skills/cloudflare-security-audit/CLIENT-SIDE.md +83 -0
- package/skills/cloudflare-security-audit/CLOUD-AND-DEPLOYMENT.md +86 -0
- package/skills/cloudflare-security-audit/DATA-ISOLATION-AND-LIFECYCLE.md +84 -0
- package/skills/cloudflare-security-audit/DESKTOP-MOBILE-AND-LOCAL-IPC.md +89 -0
- package/skills/cloudflare-security-audit/HUNTING.md +251 -0
- package/skills/cloudflare-security-audit/LICENSE +21 -0
- package/skills/cloudflare-security-audit/MEMORY-SAFETY-AND-BINARY.md +101 -0
- package/skills/cloudflare-security-audit/PROTOCOLS-RPC-AND-MESSAGING.md +81 -0
- package/skills/cloudflare-security-audit/README.md +106 -0
- package/skills/cloudflare-security-audit/RECONNAISSANCE.md +156 -0
- package/skills/cloudflare-security-audit/RESOURCE-EXHAUSTION-AND-AVAILABILITY.md +78 -0
- package/skills/cloudflare-security-audit/SKILL.md +192 -0
- package/skills/cloudflare-security-audit/SUPPLY-CHAIN-AND-RELEASE.md +73 -0
- package/skills/cloudflare-security-audit/VALIDATION-AND-REPORTING.md +186 -0
- package/skills/cloudflare-security-audit/WEB-PROTOCOL-AND-AUTH.md +105 -0
- package/skills/cloudflare-security-audit/report-schema.json +461 -0
- package/skills/cloudflare-security-audit/validate-coverage-ledger.cjs +872 -0
- package/skills/cloudflare-security-audit/validate-coverage-ledger.test.cjs +740 -0
- package/skills/cloudflare-security-audit/validate-findings.cjs +773 -0
- package/skills/cloudflare-security-audit/validate-findings.test.cjs +652 -0
- package/skills/codex-collaborator/SKILL.md +86 -0
- package/skills/diagnosing-superpowers/SKILL.md +120 -0
- package/skills/diagnosing-superpowers/prompts/analyst-common.md +38 -0
- package/skills/diagnosing-superpowers/prompts/cost-and-time.md +28 -0
- package/skills/diagnosing-superpowers/prompts/plan-adherence.md +29 -0
- package/skills/diagnosing-superpowers/prompts/quality-evidence.md +26 -0
- package/skills/diagnosing-superpowers/prompts/repeated-work.md +30 -0
- package/skills/diagnosing-superpowers/prompts/request-conflicts.md +20 -0
- package/skills/diagnosing-superpowers/prompts/scrub-audit.md +33 -0
- package/skills/diagnosing-superpowers/prompts/scrub.md +29 -0
- package/skills/diagnosing-superpowers/prompts/similar-session.md +38 -0
- package/skills/diagnosing-superpowers/prompts/skill-timeline.md +30 -0
- package/skills/diagnosing-superpowers/prompts/stumbles.md +28 -0
- package/skills/diagnosing-superpowers/references/context-safety.md +22 -0
- package/skills/diagnosing-superpowers/references/github-issues.md +47 -0
- package/skills/diagnosing-superpowers/references/redaction-policy.md +34 -0
- package/skills/diagnosing-superpowers/references/session-discovery.md +31 -0
- package/skills/diagnosing-superpowers/templates/bundle-README.md +77 -0
- package/skills/diagnosing-superpowers/templates/case.md +64 -0
- package/skills/diagnosing-superpowers/templates/issue.md +51 -0
- package/skills/diagnosing-superpowers/templates/report.md +82 -0
- package/skills/dispatching-parallel-agents/SKILL.md +167 -0
- package/skills/executing-plans/SKILL.md +373 -0
- package/skills/executing-plans/scripts/task-done +52 -0
- package/skills/executing-plans/scripts/task-start +28 -0
- package/skills/finishing-a-development-branch/SKILL.md +225 -0
- package/skills/gemini-collaborator/SKILL.md +85 -0
- package/skills/gpt-tasteskill/SKILL.md +74 -0
- package/skills/image-to-code-skill/SKILL.md +1228 -0
- package/skills/imagegen-frontend-mobile/SKILL.md +1465 -0
- package/skills/imagegen-frontend-web/SKILL.md +987 -0
- package/skills/karpathy-guidelines/SKILL.md +67 -0
- package/skills/minimalist-skill/SKILL.md +85 -0
- package/skills/output-skill/SKILL.md +49 -0
- package/skills/owasp-security/SKILL.md +206 -0
- package/skills/owasp-security/reference/config-and-supply-chain.md +344 -0
- package/skills/owasp-security/reference/languages.md +372 -0
- package/skills/owasp-security/reference/owasp-report.md +1140 -0
- package/skills/owasp-security/reference/review-checklist.md +132 -0
- package/skills/ponytail/SKILL.md +68 -0
- package/skills/postgres-best-practices/SKILL.md +64 -0
- package/skills/postgres-best-practices/references/_contributing.md +170 -0
- package/skills/postgres-best-practices/references/_sections.md +39 -0
- package/skills/postgres-best-practices/references/_template.md +34 -0
- package/skills/postgres-best-practices/references/advanced-full-text-search.md +55 -0
- package/skills/postgres-best-practices/references/advanced-jsonb-indexing.md +49 -0
- package/skills/postgres-best-practices/references/conn-idle-timeout.md +46 -0
- package/skills/postgres-best-practices/references/conn-limits.md +44 -0
- package/skills/postgres-best-practices/references/conn-pooling.md +41 -0
- package/skills/postgres-best-practices/references/conn-prepared-statements.md +46 -0
- package/skills/postgres-best-practices/references/data-batch-inserts.md +54 -0
- package/skills/postgres-best-practices/references/data-n-plus-one.md +53 -0
- package/skills/postgres-best-practices/references/data-pagination.md +50 -0
- package/skills/postgres-best-practices/references/data-upsert.md +50 -0
- package/skills/postgres-best-practices/references/lock-advisory.md +56 -0
- package/skills/postgres-best-practices/references/lock-deadlock-prevention.md +68 -0
- package/skills/postgres-best-practices/references/lock-short-transactions.md +50 -0
- package/skills/postgres-best-practices/references/lock-skip-locked.md +54 -0
- package/skills/postgres-best-practices/references/monitor-explain-analyze.md +45 -0
- package/skills/postgres-best-practices/references/monitor-pg-stat-statements.md +55 -0
- package/skills/postgres-best-practices/references/monitor-vacuum-analyze.md +55 -0
- package/skills/postgres-best-practices/references/query-composite-indexes.md +44 -0
- package/skills/postgres-best-practices/references/query-covering-indexes.md +40 -0
- package/skills/postgres-best-practices/references/query-index-types.md +48 -0
- package/skills/postgres-best-practices/references/query-missing-indexes.md +43 -0
- package/skills/postgres-best-practices/references/query-partial-indexes.md +45 -0
- package/skills/postgres-best-practices/references/schema-constraints.md +80 -0
- package/skills/postgres-best-practices/references/schema-data-types.md +46 -0
- package/skills/postgres-best-practices/references/schema-foreign-key-indexes.md +59 -0
- package/skills/postgres-best-practices/references/schema-lowercase-identifiers.md +55 -0
- package/skills/postgres-best-practices/references/schema-partitioning.md +55 -0
- package/skills/postgres-best-practices/references/schema-primary-keys.md +61 -0
- package/skills/postgres-best-practices/references/security-privileges.md +54 -0
- package/skills/postgres-best-practices/references/security-rls-basics.md +50 -0
- package/skills/postgres-best-practices/references/security-rls-performance.md +63 -0
- package/skills/project-hygiene/SKILL.md +48 -0
- package/skills/receiving-code-review/SKILL.md +226 -0
- package/skills/redesign-skill/SKILL.md +178 -0
- package/skills/requesting-code-review/SKILL.md +124 -0
- package/skills/requesting-code-review/code-reviewer.md +198 -0
- package/skills/security-audit-sweep/SKILL.md +44 -0
- package/skills/snyk-agent-scan/SKILL.md +25 -0
- package/skills/soft-skill/SKILL.md +98 -0
- package/skills/stitch-skill/DESIGN.md +121 -0
- package/skills/stitch-skill/SKILL.md +184 -0
- package/skills/strix-security/SKILL.md +65 -0
- package/skills/subagent-driven-development/SKILL.md +568 -0
- package/skills/subagent-driven-development/adversarial-reviewer-prompt.md +18 -0
- package/skills/subagent-driven-development/designer-prompt.md +15 -0
- package/skills/subagent-driven-development/hygiene-checker-prompt.md +15 -0
- package/skills/subagent-driven-development/implementer-prompt.md +154 -0
- package/skills/subagent-driven-development/re-review-prompt.md +115 -0
- package/skills/subagent-driven-development/scripts/review-package +53 -0
- package/skills/subagent-driven-development/scripts/sdd-workspace +82 -0
- package/skills/subagent-driven-development/scripts/task-brief +43 -0
- package/skills/subagent-driven-development/security-auditor-prompt.md +15 -0
- package/skills/subagent-driven-development/task-reviewer-prompt.md +207 -0
- package/skills/subagent-driven-development/tester-prompt.md +17 -0
- package/skills/systematic-debugging/CREATION-LOG.md +119 -0
- package/skills/systematic-debugging/SKILL.md +306 -0
- package/skills/systematic-debugging/condition-based-waiting-example.ts +158 -0
- package/skills/systematic-debugging/condition-based-waiting.md +115 -0
- package/skills/systematic-debugging/defense-in-depth.md +122 -0
- package/skills/systematic-debugging/find-polluter.sh +72 -0
- package/skills/systematic-debugging/root-cause-tracing.md +169 -0
- package/skills/systematic-debugging/test-academic.md +14 -0
- package/skills/systematic-debugging/test-pressure-1.md +58 -0
- package/skills/systematic-debugging/test-pressure-2.md +68 -0
- package/skills/systematic-debugging/test-pressure-3.md +69 -0
- package/skills/taste-skill/SKILL.md +1206 -0
- package/skills/taste-skill-v1/SKILL.md +226 -0
- package/skills/test-driven-development/SKILL.md +337 -0
- package/skills/test-driven-development/writing-good-tests.md +198 -0
- package/skills/trailofbits-audit-context/SKILL.md +72 -0
- package/skills/trailofbits-audit-context/agents/openai.yaml +6 -0
- package/skills/trailofbits-audit-context/assets/trail-of-bits-mark.svg +1 -0
- package/skills/trailofbits-audit-context/resources/ANALYSIS_FORMAT.md +68 -0
- package/skills/trailofbits-audit-context/resources/DOMAIN_NOTES.md +73 -0
- package/skills/trailofbits-audit-context/resources/FUNCTION_MICRO_ANALYSIS_EXAMPLE.md +174 -0
- package/skills/trailofbits-insecure-defaults/README.md +104 -0
- package/skills/trailofbits-insecure-defaults/SKILL.md +21 -0
- package/skills/trailofbits-insecure-defaults/references/debug-features.json +13 -0
- package/skills/trailofbits-insecure-defaults/references/debug-features.md +75 -0
- package/skills/trailofbits-insecure-defaults/references/default-credentials.json +12 -0
- package/skills/trailofbits-insecure-defaults/references/default-credentials.md +76 -0
- package/skills/trailofbits-insecure-defaults/references/fail-open-security.json +11 -0
- package/skills/trailofbits-insecure-defaults/references/fail-open-security.md +70 -0
- package/skills/trailofbits-insecure-defaults/references/fallback-secrets.json +11 -0
- package/skills/trailofbits-insecure-defaults/references/fallback-secrets.md +70 -0
- package/skills/trailofbits-insecure-defaults/references/permissive-access.json +13 -0
- package/skills/trailofbits-insecure-defaults/references/permissive-access.md +62 -0
- package/skills/trailofbits-insecure-defaults/references/weak-crypto.json +13 -0
- package/skills/trailofbits-insecure-defaults/references/weak-crypto.md +71 -0
- package/skills/trailofbits-triage-brocards/SKILL.md +208 -0
- package/skills/trailofbits-triage-brocards/references/brocards-detail.md +220 -0
- package/skills/using-git-worktrees/SKILL.md +167 -0
- package/skills/using-superpowers/SKILL.md +65 -0
- package/skills/using-superpowers/references/antigravity-tools.md +23 -0
- package/skills/using-superpowers/references/claude-code-tools.md +29 -0
- package/skills/using-superpowers/references/codex-tools.md +108 -0
- package/skills/using-superpowers/references/gemini-tools.md +63 -0
- package/skills/using-superpowers/references/hermes-tools.md +56 -0
- package/skills/using-superpowers/references/muse-tools.md +35 -0
- package/skills/using-superpowers/references/pi-tools.md +16 -0
- package/skills/verification-before-completion/SKILL.md +134 -0
- package/skills/writing-plans/SKILL.md +211 -0
- package/skills/writing-skills/SKILL.md +681 -0
- package/skills/writing-skills/anthropic-best-practices.md +1150 -0
- package/skills/writing-skills/examples/CLAUDE_MD_TESTING.md +189 -0
- package/skills/writing-skills/graphviz-conventions.dot +172 -0
- package/skills/writing-skills/persuasion-principles.md +187 -0
- package/skills/writing-skills/render-graphs.js +169 -0
- package/skills/writing-skills/testing-skills-with-subagents.md +384 -0
- package/tools/claude-bridge.cmd +2 -0
- package/tools/claude-bridge.ps1 +490 -0
- package/tools/claude-bridge.sh +17 -0
- package/tools/codex-bridge.cmd +2 -0
- package/tools/codex-bridge.ps1 +518 -0
- package/tools/codex-bridge.sh +17 -0
- package/tools/codexcli-bridge.cmd +2 -0
- package/tools/codexcli-bridge.ps1 +5 -0
- package/tools/gemini-bridge.cmd +2 -0
- package/tools/gemini-bridge.ps1 +471 -0
- package/tools/gemini-bridge.sh +17 -0
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Enable Row Level Security for Multi-Tenant Data
|
|
3
|
+
impact: CRITICAL
|
|
4
|
+
impactDescription: Database-enforced tenant isolation, prevent data leaks
|
|
5
|
+
tags: rls, row-level-security, multi-tenant, security
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
## Enable Row Level Security for Multi-Tenant Data
|
|
9
|
+
|
|
10
|
+
Row Level Security (RLS) enforces data access at the database level, ensuring users only see their own data.
|
|
11
|
+
|
|
12
|
+
**Incorrect (application-level filtering only):**
|
|
13
|
+
|
|
14
|
+
```sql
|
|
15
|
+
-- Relying only on application to filter
|
|
16
|
+
select * from orders where user_id = $current_user_id;
|
|
17
|
+
|
|
18
|
+
-- Bug or bypass means all data is exposed!
|
|
19
|
+
select * from orders; -- Returns ALL orders
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
**Correct (database-enforced RLS):**
|
|
23
|
+
|
|
24
|
+
```sql
|
|
25
|
+
-- Enable RLS on the table
|
|
26
|
+
alter table orders enable row level security;
|
|
27
|
+
|
|
28
|
+
-- Create policy for users to see only their orders
|
|
29
|
+
create policy orders_user_policy on orders
|
|
30
|
+
for all
|
|
31
|
+
using (user_id = current_setting('app.current_user_id')::bigint);
|
|
32
|
+
|
|
33
|
+
-- Force RLS even for table owners
|
|
34
|
+
alter table orders force row level security;
|
|
35
|
+
|
|
36
|
+
-- Set user context and query
|
|
37
|
+
set app.current_user_id = '123';
|
|
38
|
+
select * from orders; -- Only returns orders for user 123
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
Policy for authenticated role:
|
|
42
|
+
|
|
43
|
+
```sql
|
|
44
|
+
create policy orders_user_policy on orders
|
|
45
|
+
for all
|
|
46
|
+
to authenticated
|
|
47
|
+
using (user_id = auth.uid());
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
Reference: [Row Level Security](https://supabase.com/docs/guides/database/postgres/row-level-security)
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Optimize RLS Policies for Performance
|
|
3
|
+
impact: HIGH
|
|
4
|
+
impactDescription: 5-10x faster RLS queries with proper patterns
|
|
5
|
+
tags: rls, performance, security, optimization
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
## Optimize RLS Policies for Performance
|
|
9
|
+
|
|
10
|
+
Poorly written RLS policies can cause severe performance issues. Use subqueries and indexes strategically.
|
|
11
|
+
|
|
12
|
+
**Incorrect (function called for every row):**
|
|
13
|
+
|
|
14
|
+
```sql
|
|
15
|
+
create policy orders_policy on orders
|
|
16
|
+
using (auth.uid() = user_id); -- auth.uid() called per row!
|
|
17
|
+
|
|
18
|
+
-- With 1M rows, auth.uid() is called 1M times
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
**Correct (wrap functions in SELECT):**
|
|
22
|
+
|
|
23
|
+
```sql
|
|
24
|
+
create policy orders_policy on orders
|
|
25
|
+
using ((select auth.uid()) = user_id); -- Called once, cached
|
|
26
|
+
|
|
27
|
+
-- 100x+ faster on large tables
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
Use security definer functions for complex checks:
|
|
31
|
+
|
|
32
|
+
`SECURITY DEFINER` functions run with the creator's privileges and bypass RLS on any tables they touch — which is what makes them useful for internal lookups, but also what makes them dangerous if misused. Always include an explicit `auth.uid()` check inside the function body, keep them in a non-exposed schema, and revoke `EXECUTE` from any role that shouldn't call them directly.
|
|
33
|
+
|
|
34
|
+
```sql
|
|
35
|
+
-- Create helper function in a private schema
|
|
36
|
+
create or replace function private.is_team_member(team_id bigint)
|
|
37
|
+
returns boolean
|
|
38
|
+
language sql
|
|
39
|
+
security definer
|
|
40
|
+
set search_path = ''
|
|
41
|
+
as $$
|
|
42
|
+
select exists (
|
|
43
|
+
select 1 from public.team_members
|
|
44
|
+
-- always check the calling user's identity inside the function
|
|
45
|
+
where team_id = $1 and user_id = (select auth.uid())
|
|
46
|
+
);
|
|
47
|
+
$$;
|
|
48
|
+
|
|
49
|
+
-- Revoke direct execution from public roles
|
|
50
|
+
revoke execute on function private.is_team_member(bigint) from PUBLIC, anon, authenticated, service_role;
|
|
51
|
+
|
|
52
|
+
-- Use in policy (indexed lookup, not per-row check)
|
|
53
|
+
create policy team_orders_policy on orders
|
|
54
|
+
using ((select private.is_team_member(team_id)));
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
Always add indexes on columns used in RLS policies:
|
|
58
|
+
|
|
59
|
+
```sql
|
|
60
|
+
create index orders_user_id_idx on orders (user_id);
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
Reference: [RLS Performance](https://supabase.com/docs/guides/database/postgres/row-level-security#rls-performance-recommendations)
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: project-hygiene
|
|
3
|
+
description: Audit and enforce codebase hygiene across any project: eliminate dead code, purge unused dependencies and exports, enforce architectural module boundaries, clear stale build caches, and verify type safety.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Project Hygiene Skill (`project-hygiene`)
|
|
7
|
+
|
|
8
|
+
Use this skill to conduct repeatable, automated code and repository hygiene sweeps across any software project. It is generic, language-aware, and safe to execute periodically or prior to releases.
|
|
9
|
+
|
|
10
|
+
## The 4-Phase Hygiene Audit
|
|
11
|
+
|
|
12
|
+
### Phase 1: Boundary & Architectural Integrity
|
|
13
|
+
Verify that no forbidden imports or layer violations exist:
|
|
14
|
+
- In TypeScript/JavaScript monorepos:
|
|
15
|
+
```bash
|
|
16
|
+
pnpm boundaries # or npx dependency-cruiser --config .dependency-cruiser.js src
|
|
17
|
+
```
|
|
18
|
+
- In modular monoliths: assert zero cross-schema direct queries and zero imports bypassing public interfaces (e.g. `@podium/contracts`).
|
|
19
|
+
|
|
20
|
+
### Phase 2: Dead Code & Orphaned Export Detection
|
|
21
|
+
Identify unreferenced exports, unused files, and stale packages:
|
|
22
|
+
- Run AST-based dead code analyzers:
|
|
23
|
+
```bash
|
|
24
|
+
npx knip
|
|
25
|
+
# or
|
|
26
|
+
npx ts-prune
|
|
27
|
+
```
|
|
28
|
+
- Rule: Do not delete public contract interfaces or migration registry exports. Focus on unreferenced internal utilities, dead helpers, and orphaned test files.
|
|
29
|
+
|
|
30
|
+
### Phase 3: Workspace & Cache Purging
|
|
31
|
+
Reclaim disk space and eliminate cached build artifacts that mask clean build errors:
|
|
32
|
+
- Remove build outputs (`dist/`, `.next/`, `build/`, `out/`).
|
|
33
|
+
- Remove compiler and test caches (`.tsbuildinfo`, `.turbo/`, `.pytest_cache/`, `e2e/test-results/`).
|
|
34
|
+
- Remove temporary provisioning logs, obsolete scratch files (`.openapi-spec.txt`, `.provision-*.txt`, `tmp-*.mjs`).
|
|
35
|
+
- Never delete node_modules or source fixtures unless explicitly requested.
|
|
36
|
+
|
|
37
|
+
### Phase 4: Type Safety & Validation Gate
|
|
38
|
+
Confirm that zero syntax or compilation regressions were introduced:
|
|
39
|
+
- Run strict compilation check:
|
|
40
|
+
```bash
|
|
41
|
+
pnpm build
|
|
42
|
+
# or
|
|
43
|
+
npx tsc --noEmit
|
|
44
|
+
```
|
|
45
|
+
- Run unit test suite:
|
|
46
|
+
```bash
|
|
47
|
+
pnpm test
|
|
48
|
+
```
|
|
@@ -0,0 +1,226 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: receiving-code-review
|
|
3
|
+
description: Use when receiving code review feedback, before implementing suggestions, especially if feedback seems unclear or technically questionable - requires technical rigor and verification, not performative agreement or blind implementation
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Code Review Reception
|
|
7
|
+
|
|
8
|
+
## Overview
|
|
9
|
+
|
|
10
|
+
Code review requires technical evaluation, not emotional performance.
|
|
11
|
+
|
|
12
|
+
**Core principle:** Verify before implementing. Ask before assuming. Technical correctness over social comfort.
|
|
13
|
+
|
|
14
|
+
## The Response Pattern
|
|
15
|
+
|
|
16
|
+
```
|
|
17
|
+
WHEN receiving code review feedback:
|
|
18
|
+
|
|
19
|
+
1. READ: Complete feedback without reacting
|
|
20
|
+
2. UNDERSTAND: Restate requirement in own words (or ask)
|
|
21
|
+
3. VERIFY: Check against codebase reality
|
|
22
|
+
4. EVALUATE: Technically sound for THIS codebase?
|
|
23
|
+
5. RESPOND: Technical acknowledgment or reasoned pushback
|
|
24
|
+
6. IMPLEMENT: One item at a time, test each
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
## Forbidden Responses (Google EGM "No Glazing" Rule)
|
|
28
|
+
|
|
29
|
+
**NEVER:**
|
|
30
|
+
- "You're absolutely right!" (explicit instruction-file violation)
|
|
31
|
+
- "Great point!" / "Excellent feedback!" (performative flattery)
|
|
32
|
+
- "Let me implement that now" (before verification)
|
|
33
|
+
- Apologies like "I apologize" / "I'm sorry" (substance over politeness)
|
|
34
|
+
|
|
35
|
+
**INSTEAD:**
|
|
36
|
+
- Restate the technical requirement
|
|
37
|
+
- Ask clarifying questions
|
|
38
|
+
- Push back with technical reasoning if wrong
|
|
39
|
+
- Just start working (actions > words)
|
|
40
|
+
|
|
41
|
+
## Handling Unclear Feedback
|
|
42
|
+
|
|
43
|
+
```
|
|
44
|
+
IF any item is unclear:
|
|
45
|
+
STOP - do not implement anything yet
|
|
46
|
+
ASK for clarification on unclear items
|
|
47
|
+
|
|
48
|
+
WHY: Items may be related. Partial understanding = wrong implementation.
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
**Example:**
|
|
52
|
+
```
|
|
53
|
+
your human partner: "Fix 1-6"
|
|
54
|
+
You understand 1,2,3,6. Unclear on 4,5.
|
|
55
|
+
|
|
56
|
+
❌ WRONG: Implement 1,2,3,6 now, ask about 4,5 later
|
|
57
|
+
✅ RIGHT: "I understand items 1,2,3,6. Need clarification on 4 and 5 before proceeding."
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
## Source-Specific Handling
|
|
61
|
+
|
|
62
|
+
### From your human partner
|
|
63
|
+
- **Trusted** - implement after understanding
|
|
64
|
+
- **Still ask** if scope unclear
|
|
65
|
+
- **No performative agreement**
|
|
66
|
+
- **Skip to action** or technical acknowledgment
|
|
67
|
+
|
|
68
|
+
### From External Reviewers
|
|
69
|
+
```
|
|
70
|
+
BEFORE implementing:
|
|
71
|
+
1. Check: Technically correct for THIS codebase?
|
|
72
|
+
2. Check: Breaks existing functionality?
|
|
73
|
+
3. Check: Reason for current implementation?
|
|
74
|
+
4. Check: Works on all platforms/versions?
|
|
75
|
+
5. Check: Does reviewer understand full context?
|
|
76
|
+
|
|
77
|
+
IF suggestion seems wrong:
|
|
78
|
+
Push back with technical reasoning
|
|
79
|
+
|
|
80
|
+
IF can't easily verify:
|
|
81
|
+
Say so: "I can't verify this without [X]. Should I [investigate/ask/proceed]?"
|
|
82
|
+
|
|
83
|
+
IF conflicts with your human partner's prior decisions:
|
|
84
|
+
Stop and discuss with your human partner first
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
**your human partner's rule:** "External feedback - be skeptical, but check carefully"
|
|
88
|
+
|
|
89
|
+
## YAGNI Check for "Professional" Features
|
|
90
|
+
|
|
91
|
+
```
|
|
92
|
+
IF reviewer suggests "implementing properly":
|
|
93
|
+
grep codebase for actual usage
|
|
94
|
+
|
|
95
|
+
IF unused: "This endpoint isn't called. Remove it (YAGNI)?"
|
|
96
|
+
IF used: Then implement properly
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
**your human partner's rule:** "You and reviewer both report to me. If we don't need this feature, don't add it."
|
|
100
|
+
|
|
101
|
+
## Implementation Order
|
|
102
|
+
|
|
103
|
+
```
|
|
104
|
+
FOR multi-item feedback:
|
|
105
|
+
1. Clarify anything unclear FIRST
|
|
106
|
+
2. Then implement in this order:
|
|
107
|
+
- Blocking issues (breaks, security)
|
|
108
|
+
- Simple fixes (typos, imports)
|
|
109
|
+
- Complex fixes (refactoring, logic)
|
|
110
|
+
3. Test each fix individually
|
|
111
|
+
4. Verify no regressions
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
## When To Push Back
|
|
115
|
+
|
|
116
|
+
Push back when:
|
|
117
|
+
- Suggestion breaks existing functionality
|
|
118
|
+
- Reviewer lacks full context
|
|
119
|
+
- Violates YAGNI (unused feature)
|
|
120
|
+
- Technically incorrect for this stack
|
|
121
|
+
- Legacy/compatibility reasons exist
|
|
122
|
+
- Conflicts with your human partner's architectural decisions
|
|
123
|
+
|
|
124
|
+
**How to push back:**
|
|
125
|
+
- Use technical reasoning, not defensiveness
|
|
126
|
+
- Ask specific questions
|
|
127
|
+
- Reference working tests/code
|
|
128
|
+
- Involve your human partner if architectural
|
|
129
|
+
|
|
130
|
+
**If you're uncomfortable pushing back out loud:** Name that tension, then tell your partner about the issue you've seen. They'll appreciate your honesty.
|
|
131
|
+
|
|
132
|
+
## Acknowledging Correct Feedback
|
|
133
|
+
|
|
134
|
+
When feedback IS correct:
|
|
135
|
+
```
|
|
136
|
+
✅ "Fixed. [Brief description of what changed]"
|
|
137
|
+
✅ "Good catch - [specific issue]. Fixed in [location]."
|
|
138
|
+
✅ [Just fix it and show in the code]
|
|
139
|
+
|
|
140
|
+
❌ "You're absolutely right!"
|
|
141
|
+
❌ "Great point!"
|
|
142
|
+
❌ "Thanks for catching that!"
|
|
143
|
+
❌ "Thanks for [anything]"
|
|
144
|
+
❌ ANY gratitude expression
|
|
145
|
+
```
|
|
146
|
+
|
|
147
|
+
**Why no thanks:** Actions speak. Just fix it. The code itself shows you heard the feedback.
|
|
148
|
+
|
|
149
|
+
**If you catch yourself about to write "Thanks":** DELETE IT. State the fix instead.
|
|
150
|
+
|
|
151
|
+
## Gracefully Correcting Your Pushback
|
|
152
|
+
|
|
153
|
+
If you pushed back and were wrong:
|
|
154
|
+
```
|
|
155
|
+
✅ "You were right - I checked [X] and it does [Y]. Implementing now."
|
|
156
|
+
✅ "Verified this and you're correct. My initial understanding was wrong because [reason]. Fixing."
|
|
157
|
+
|
|
158
|
+
❌ Long apology
|
|
159
|
+
❌ Defending why you pushed back
|
|
160
|
+
❌ Over-explaining
|
|
161
|
+
```
|
|
162
|
+
|
|
163
|
+
State the correction factually and move on.
|
|
164
|
+
|
|
165
|
+
## Common Mistakes
|
|
166
|
+
|
|
167
|
+
| Mistake | Fix |
|
|
168
|
+
|---------|-----|
|
|
169
|
+
| Performative agreement | State requirement or just act |
|
|
170
|
+
| Blind implementation | Verify against codebase first |
|
|
171
|
+
| Batch without testing | One at a time, test each |
|
|
172
|
+
| Assuming reviewer is right | Check if breaks things |
|
|
173
|
+
| Avoiding pushback | Technical correctness > comfort |
|
|
174
|
+
| Partial implementation | Clarify all items first |
|
|
175
|
+
| Can't verify, proceed anyway | State limitation, ask for direction |
|
|
176
|
+
|
|
177
|
+
## Real Examples
|
|
178
|
+
|
|
179
|
+
**Performative Agreement (Bad):**
|
|
180
|
+
```
|
|
181
|
+
Reviewer: "Remove legacy code"
|
|
182
|
+
❌ "You're absolutely right! Let me remove that..."
|
|
183
|
+
```
|
|
184
|
+
|
|
185
|
+
**Technical Verification (Good):**
|
|
186
|
+
```
|
|
187
|
+
Reviewer: "Remove legacy code"
|
|
188
|
+
✅ "Checking... build target is 10.15+, this API needs 13+. Need legacy for backward compat. Current impl has wrong bundle ID - fix it or drop pre-13 support?"
|
|
189
|
+
```
|
|
190
|
+
|
|
191
|
+
**YAGNI (Good):**
|
|
192
|
+
```
|
|
193
|
+
Reviewer: "Implement proper metrics tracking with database, date filters, CSV export"
|
|
194
|
+
✅ "Grepped codebase - nothing calls this endpoint. Remove it (YAGNI)? Or is there usage I'm missing?"
|
|
195
|
+
```
|
|
196
|
+
|
|
197
|
+
**Unclear Item (Good):**
|
|
198
|
+
```
|
|
199
|
+
your human partner: "Fix items 1-6"
|
|
200
|
+
You understand 1,2,3,6. Unclear on 4,5.
|
|
201
|
+
✅ "Understand 1,2,3,6. Need clarification on 4 and 5 before implementing."
|
|
202
|
+
```
|
|
203
|
+
|
|
204
|
+
## The 5-Round Convergence Ledger (Google EGM Protocol)
|
|
205
|
+
|
|
206
|
+
For Tier 2 (Architectural & High-Stakes) reviews, maintain the authoritative triage ledger across review rounds:
|
|
207
|
+
|
|
208
|
+
```markdown
|
|
209
|
+
| ID | File:Line | Severity (Blocker/Warning/Nit) | Finding & Failure Mode | Verbatim Action / Rebuttal | Status (Open/Resolved/Rebutted) |
|
|
210
|
+
```
|
|
211
|
+
|
|
212
|
+
### Protocol Rules:
|
|
213
|
+
1. **Verbatim Action or Rebuttal Required**:
|
|
214
|
+
- For every finding, you must either:
|
|
215
|
+
a) Implement a verified code fix and re-run tests.
|
|
216
|
+
b) Provide a **verbatim technical rebuttal** citing exact line numbers, architectural contracts, or test outputs that prove the reviewer's assumption does not apply.
|
|
217
|
+
- Findings cannot be silently dropped.
|
|
218
|
+
2. **Convergence Loop**:
|
|
219
|
+
- Re-request review with the updated git diff and updated ledger.
|
|
220
|
+
- The loop continues until the Reviewer reports `"No findings"` AND all previous ledger items are settled (`Resolved` or `Rebutted`).
|
|
221
|
+
3. **Escalation Gate (5-Round Cap)**:
|
|
222
|
+
- If findings remain unsettled after 5 rounds, stop and escalate immediately to the human user with the complete ledger. Never commit code with unsettled Blockers.
|
|
223
|
+
|
|
224
|
+
## GitHub Thread Replies
|
|
225
|
+
|
|
226
|
+
When replying to inline review comments on GitHub, reply in the comment thread (`gh api repos/{owner}/{repo}/pulls/{pr}/comments/{id}/replies`), not as a top-level PR comment.
|
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: redesign-existing-projects
|
|
3
|
+
description: Upgrades existing websites and apps to premium quality. Audits current design, identifies generic AI patterns, and applies high-end design standards without breaking functionality. Works with any CSS framework or vanilla CSS.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Redesign Skill
|
|
7
|
+
|
|
8
|
+
## How This Works
|
|
9
|
+
|
|
10
|
+
When applied to an existing project, follow this sequence:
|
|
11
|
+
|
|
12
|
+
1. **Scan** — Read the codebase. Identify the framework, styling method (Tailwind, vanilla CSS, styled-components, etc.), and current design patterns.
|
|
13
|
+
2. **Diagnose** — Run through the audit below. List every generic pattern, weak point, and missing state you find.
|
|
14
|
+
3. **Fix** — Apply targeted upgrades working with the existing stack. Do not rewrite from scratch. Improve what's there.
|
|
15
|
+
|
|
16
|
+
## Design Audit
|
|
17
|
+
|
|
18
|
+
### Typography
|
|
19
|
+
|
|
20
|
+
Check for these problems and fix them:
|
|
21
|
+
|
|
22
|
+
- **Browser default fonts or Inter everywhere.** Replace with a font that has character. Good options: `Geist`, `Outfit`, `Cabinet Grotesk`, `Satoshi`. For editorial/creative projects, pair a serif header with a sans-serif body.
|
|
23
|
+
- **Headlines lack presence.** Increase size for display text, tighten letter-spacing, reduce line-height. Headlines should feel heavy and intentional.
|
|
24
|
+
- **Body text too wide.** Limit paragraph width to roughly 65 characters. Increase line-height for readability.
|
|
25
|
+
- **Only Regular (400) and Bold (700) weights used.** Introduce Medium (500) and SemiBold (600) for more subtle hierarchy.
|
|
26
|
+
- **Numbers in proportional font.** Use a monospace font or enable tabular figures (`font-variant-numeric: tabular-nums`) for data-heavy interfaces.
|
|
27
|
+
- **Missing letter-spacing adjustments.** Use negative tracking for large headers, positive tracking for small caps or labels.
|
|
28
|
+
- **All-caps subheaders everywhere.** Try lowercase italics, sentence case, or small-caps instead.
|
|
29
|
+
- **Orphaned words.** Single words sitting alone on the last line. Fix with `text-wrap: balance` or `text-wrap: pretty`.
|
|
30
|
+
|
|
31
|
+
### Color and Surfaces
|
|
32
|
+
|
|
33
|
+
- **Pure `#000000` background.** Replace with off-black, dark charcoal, or tinted dark (`#0a0a0a`, `#121212`, or a dark navy).
|
|
34
|
+
- **Oversaturated accent colors.** Keep saturation below 80%. Desaturate accents so they blend with neutrals instead of screaming.
|
|
35
|
+
- **More than one accent color.** Pick one. Remove the rest. Consistency beats variety.
|
|
36
|
+
- **Mixing warm and cool grays.** Stick to one gray family. Tint all grays with a consistent hue (warm or cool, not both).
|
|
37
|
+
- **Purple/blue "AI gradient" aesthetic.** This is the most common AI design fingerprint. Replace with neutral bases and a single, considered accent.
|
|
38
|
+
- **Generic `box-shadow`.** Tint shadows to match the background hue. Use colored shadows (e.g., dark blue shadow on a blue background) instead of pure black at low opacity.
|
|
39
|
+
- **Flat design with zero texture.** Add subtle noise, grain, or micro-patterns to backgrounds. Pure flat vectors feel sterile.
|
|
40
|
+
- **Perfectly even gradients.** Break the uniformity with radial gradients, noise overlays, or mesh gradients instead of standard linear 45-degree fades.
|
|
41
|
+
- **Inconsistent lighting direction.** Audit all shadows to ensure they suggest a single, consistent light source.
|
|
42
|
+
- **Random dark sections in a light mode page (or vice versa).** A single dark-background section breaking an otherwise light page looks like a copy-paste accident. Either commit to a full dark mode or keep a consistent background tone throughout. If contrast is needed, use a slightly darker shade of the same palette — not a sudden jump to `#111` in the middle of a cream page.
|
|
43
|
+
- **Empty, flat sections with no visual depth.** Sections that are just text on a plain background feel unfinished. Add high-quality background imagery (blurred, overlaid, or masked), subtle patterns, or ambient gradients. Use reliable placeholder sources like `https://picsum.photos/seed/{name}/1920/1080` when real assets are not available. Experiment with background images behind hero sections, feature blocks, or CTAs — even a subtle full-width photo at low opacity adds presence.
|
|
44
|
+
|
|
45
|
+
### Layout
|
|
46
|
+
|
|
47
|
+
- **Everything centered and symmetrical.** Break symmetry with offset margins, mixed aspect ratios, or left-aligned headers over centered content.
|
|
48
|
+
- **Three equal card columns as feature row.** This is the most generic AI layout. Replace with a 2-column zig-zag, asymmetric grid, horizontal scroll, or masonry layout.
|
|
49
|
+
- **Using `height: 100vh` for full-screen sections.** Replace with `min-height: 100dvh` to prevent layout jumping on mobile browsers (iOS Safari viewport bug).
|
|
50
|
+
- **Complex flexbox percentage math.** Replace with CSS Grid for reliable multi-column structures.
|
|
51
|
+
- **No max-width container.** Add a container constraint (around 1200-1440px) with auto margins so content doesn't stretch edge-to-edge on wide screens.
|
|
52
|
+
- **Cards of equal height forced by flexbox.** Allow variable heights or use masonry when content varies in length.
|
|
53
|
+
- **Uniform border-radius on everything.** Vary the radius: tighter on inner elements, softer on containers.
|
|
54
|
+
- **No overlap or depth.** Elements sit flat next to each other. Use negative margins to create layering and visual depth.
|
|
55
|
+
- **Symmetrical vertical padding.** Top and bottom padding are always identical. Adjust optically — bottom padding often needs to be slightly larger.
|
|
56
|
+
- **Dashboard always has a left sidebar.** Try top navigation, a floating command menu, or a collapsible panel instead.
|
|
57
|
+
- **Missing whitespace.** Double the spacing. Let the design breathe. Dense layouts work for data dashboards, not for marketing pages.
|
|
58
|
+
- **Buttons not bottom-aligned in card groups.** When cards have different content lengths, CTAs end up at random heights. Pin buttons to the bottom of each card so they form a clean horizontal line regardless of content above.
|
|
59
|
+
- **Feature lists starting at different vertical positions.** In pricing tables or comparison cards, the list of features should start at the same Y position across all columns. Use consistent spacing above the list or fixed-height title/price blocks.
|
|
60
|
+
- **Inconsistent vertical rhythm in side-by-side elements.** When placing cards, columns, or panels next to each other, align shared elements (titles, descriptions, prices, buttons) across all items. Misaligned baselines make the layout look broken.
|
|
61
|
+
- **Mathematical alignment that looks optically wrong.** Centering by the math doesn't always look centered to the eye. Icons next to text, play buttons in circles, or text in buttons often need 1-2px optical adjustments to feel right.
|
|
62
|
+
|
|
63
|
+
### Interactivity and States
|
|
64
|
+
|
|
65
|
+
- **No hover states on buttons.** Add background shift, slight scale, or translate on hover.
|
|
66
|
+
- **No active/pressed feedback.** Add a subtle `scale(0.98)` or `translateY(1px)` on press to simulate a physical click.
|
|
67
|
+
- **Instant transitions with zero duration.** Add smooth transitions (200-300ms) to all interactive elements.
|
|
68
|
+
- **Missing focus ring.** Ensure visible focus indicators for keyboard navigation. This is an accessibility requirement, not optional.
|
|
69
|
+
- **No loading states.** Replace generic circular spinners with skeleton loaders that match the layout shape.
|
|
70
|
+
- **No empty states.** An empty dashboard showing nothing is a missed opportunity. Design a composed "getting started" view.
|
|
71
|
+
- **No error states.** Add clear, inline error messages for forms. Do not use `window.alert()`.
|
|
72
|
+
- **Dead links.** Buttons that link to `#`. Either link to real destinations or visually disable them.
|
|
73
|
+
- **No indication of current page in navigation.** Style the active nav link differently so users know where they are.
|
|
74
|
+
- **Scroll jumping.** Anchor clicks jump instantly. Add `scroll-behavior: smooth`.
|
|
75
|
+
- **Animations using `top`, `left`, `width`, `height`.** Switch to `transform` and `opacity` for GPU-accelerated, smooth animation.
|
|
76
|
+
|
|
77
|
+
### Content
|
|
78
|
+
|
|
79
|
+
- **Generic names like "John Doe" or "Jane Smith".** Use diverse, realistic-sounding names.
|
|
80
|
+
- **Fake round numbers like `99.99%`, `50%`, `$100.00`.** Use organic, messy data: `47.2%`, `$99.00`, `+1 (312) 847-1928`.
|
|
81
|
+
- **Placeholder company names like "Acme Corp", "Nexus", "SmartFlow".** Invent contextual, believable brand names.
|
|
82
|
+
- **AI copywriting cliches.** Never use "Elevate", "Seamless", "Unleash", "Next-Gen", "Game-changer", "Delve", "Tapestry", or "In the world of...". Write plain, specific language.
|
|
83
|
+
- **Exclamation marks in success messages.** Remove them. Be confident, not loud.
|
|
84
|
+
- **"Oops!" error messages.** Be direct: "Connection failed. Please try again."
|
|
85
|
+
- **Passive voice.** Use active voice: "We couldn't save your changes" instead of "Mistakes were made."
|
|
86
|
+
- **All blog post dates identical.** Randomize dates to appear real.
|
|
87
|
+
- **Same avatar image for multiple users.** Use unique assets for every distinct person.
|
|
88
|
+
- **Lorem Ipsum.** Never use placeholder latin text. Write real draft copy.
|
|
89
|
+
- **Title Case On Every Header.** Use sentence case instead.
|
|
90
|
+
|
|
91
|
+
### Component Patterns
|
|
92
|
+
|
|
93
|
+
- **Generic card look (border + shadow + white background).** Remove the border, or use only background color, or use only spacing. Cards should exist only when elevation communicates hierarchy.
|
|
94
|
+
- **Always one filled button + one ghost button.** Add text links or tertiary styles to reduce visual noise.
|
|
95
|
+
- **Pill-shaped "New" and "Beta" badges.** Try square badges, flags, or plain text labels.
|
|
96
|
+
- **Accordion FAQ sections.** Use a side-by-side list, searchable help, or inline progressive disclosure.
|
|
97
|
+
- **3-card carousel testimonials with dots.** Replace with a masonry wall, embedded social posts, or a single rotating quote.
|
|
98
|
+
- **Pricing table with 3 towers.** Highlight the recommended tier with color and emphasis, not just extra height.
|
|
99
|
+
- **Modals for everything.** Use inline editing, slide-over panels, or expandable sections instead of popups for simple actions.
|
|
100
|
+
- **Avatar circles exclusively.** Try squircles or rounded squares for a less generic look.
|
|
101
|
+
- **Light/dark toggle always a sun/moon switch.** Use a dropdown, system preference detection, or integrate it into settings.
|
|
102
|
+
- **Footer link farm with 4 columns.** Simplify. Focus on main navigational paths and legally required links.
|
|
103
|
+
|
|
104
|
+
### Iconography
|
|
105
|
+
|
|
106
|
+
- **Lucide or Feather icons exclusively.** These are the "default" AI icon choice. Use Phosphor, Heroicons, or a custom set for differentiation.
|
|
107
|
+
- **Rocketship for "Launch", shield for "Security".** Replace cliche metaphors with less obvious icons (bolt, fingerprint, spark, vault).
|
|
108
|
+
- **Inconsistent stroke widths across icons.** Audit all icons and standardize to one stroke weight.
|
|
109
|
+
- **Missing favicon.** Always include a branded favicon.
|
|
110
|
+
- **Stock "diverse team" photos.** Use real team photos, candid shots, or a consistent illustration style instead of uncanny stock imagery.
|
|
111
|
+
|
|
112
|
+
### Code Quality
|
|
113
|
+
|
|
114
|
+
- **Div soup.** Use semantic HTML: `<nav>`, `<main>`, `<article>`, `<aside>`, `<section>`.
|
|
115
|
+
- **Inline styles mixed with CSS classes.** Move all styling to the project's styling system.
|
|
116
|
+
- **Hardcoded pixel widths.** Use relative units (`%`, `rem`, `em`, `max-width`) for flexible layouts.
|
|
117
|
+
- **Missing alt text on images.** Describe image content for screen readers. Never leave `alt=""` or `alt="image"` on meaningful images.
|
|
118
|
+
- **Arbitrary z-index values like `9999`.** Establish a clean z-index scale in the theme/variables.
|
|
119
|
+
- **Commented-out dead code.** Remove all debug artifacts before shipping.
|
|
120
|
+
- **Import hallucinations.** Check that every import actually exists in `package.json` or the project dependencies.
|
|
121
|
+
- **Missing meta tags.** Add proper `<title>`, `description`, `og:image`, and social sharing meta tags.
|
|
122
|
+
|
|
123
|
+
### Strategic Omissions (What AI Typically Forgets)
|
|
124
|
+
|
|
125
|
+
- **No legal links.** Add privacy policy and terms of service links in the footer.
|
|
126
|
+
- **No "back" navigation.** Dead ends in user flows. Every page needs a way back.
|
|
127
|
+
- **No custom 404 page.** Design a helpful, branded "page not found" experience.
|
|
128
|
+
- **No form validation.** Add client-side validation for emails, required fields, and format checks.
|
|
129
|
+
- **No "skip to content" link.** Essential for keyboard users. Add a hidden skip-link.
|
|
130
|
+
- **No cookie consent.** If required by jurisdiction, add a compliant consent banner.
|
|
131
|
+
|
|
132
|
+
## Upgrade Techniques
|
|
133
|
+
|
|
134
|
+
When upgrading a project, pull from these high-impact techniques to replace generic patterns:
|
|
135
|
+
|
|
136
|
+
### Typography Upgrades
|
|
137
|
+
- **Variable font animation.** Interpolate weight or width on scroll or hover for text that feels alive.
|
|
138
|
+
- **Outlined-to-fill transitions.** Text starts as a stroke outline and fills with color on scroll entry or interaction.
|
|
139
|
+
- **Text mask reveals.** Large typography acting as a window to video or animated imagery behind it.
|
|
140
|
+
|
|
141
|
+
### Layout Upgrades
|
|
142
|
+
- **Broken grid / asymmetry.** Elements that deliberately ignore column structure — overlapping, bleeding off-screen, or offset with calculated randomness.
|
|
143
|
+
- **Whitespace maximization.** Aggressive use of negative space to force focus on a single element.
|
|
144
|
+
- **Parallax card stacks.** Sections that stick and physically stack over each other during scroll.
|
|
145
|
+
- **Split-screen scroll.** Two halves of the screen sliding in opposite directions.
|
|
146
|
+
|
|
147
|
+
### Motion Upgrades
|
|
148
|
+
- **Smooth scroll with inertia.** Decouple scrolling from browser defaults for a heavier, cinematic feel.
|
|
149
|
+
- **Staggered entry.** Elements cascade in with slight delays, combining Y-axis translation with opacity fade. Never mount everything at once.
|
|
150
|
+
- **Spring physics.** Replace linear easing with spring-based motion for a natural, weighty feel on all interactive elements.
|
|
151
|
+
- **Scroll-driven reveals.** Content entering through expanding masks, wipes, or draw-on SVG paths tied to scroll progress.
|
|
152
|
+
|
|
153
|
+
### Surface Upgrades
|
|
154
|
+
- **True glassmorphism.** Go beyond `backdrop-filter: blur`. Add a 1px inner border and a subtle inner shadow to simulate edge refraction.
|
|
155
|
+
- **Spotlight borders.** Card borders that illuminate dynamically under the cursor.
|
|
156
|
+
- **Grain and noise overlays.** A fixed, pointer-events-none overlay with subtle noise to break digital flatness.
|
|
157
|
+
- **Colored, tinted shadows.** Shadows that carry the hue of the background rather than using generic black.
|
|
158
|
+
|
|
159
|
+
## Fix Priority
|
|
160
|
+
|
|
161
|
+
Apply changes in this order for maximum visual impact with minimum risk:
|
|
162
|
+
|
|
163
|
+
1. **Font swap** — biggest instant improvement, lowest risk
|
|
164
|
+
2. **Color palette cleanup** — remove clashing or oversaturated colors
|
|
165
|
+
3. **Hover and active states** — makes the interface feel alive
|
|
166
|
+
4. **Layout and spacing** — proper grid, max-width, consistent padding
|
|
167
|
+
5. **Replace generic components** — swap cliche patterns for modern alternatives
|
|
168
|
+
6. **Add loading, empty, and error states** — makes it feel finished
|
|
169
|
+
7. **Polish typography scale and spacing** — the premium final touch
|
|
170
|
+
|
|
171
|
+
## Rules
|
|
172
|
+
|
|
173
|
+
- Work with the existing tech stack. Do not migrate frameworks or styling libraries.
|
|
174
|
+
- Do not break existing functionality. Test after every change.
|
|
175
|
+
- Before importing any new library, check the project's dependency file first.
|
|
176
|
+
- If the project uses Tailwind, check the version (v3 vs v4) before modifying config.
|
|
177
|
+
- If the project has no framework, use vanilla CSS.
|
|
178
|
+
- Keep changes reviewable and focused. Small, targeted improvements over big rewrites.
|