codehava-agent-kit 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 +56 -0
- package/bin/cli.js +56 -0
- package/package.json +26 -0
- package/templates/.agent/.shared/ui-ux-pro-max/data/charts.csv +26 -0
- package/templates/.agent/.shared/ui-ux-pro-max/data/colors.csv +97 -0
- package/templates/.agent/.shared/ui-ux-pro-max/data/icons.csv +101 -0
- package/templates/.agent/.shared/ui-ux-pro-max/data/landing.csv +31 -0
- package/templates/.agent/.shared/ui-ux-pro-max/data/products.csv +97 -0
- package/templates/.agent/.shared/ui-ux-pro-max/data/prompts.csv +24 -0
- package/templates/.agent/.shared/ui-ux-pro-max/data/react-performance.csv +45 -0
- package/templates/.agent/.shared/ui-ux-pro-max/data/stacks/flutter.csv +53 -0
- package/templates/.agent/.shared/ui-ux-pro-max/data/stacks/html-tailwind.csv +56 -0
- package/templates/.agent/.shared/ui-ux-pro-max/data/stacks/jetpack-compose.csv +53 -0
- package/templates/.agent/.shared/ui-ux-pro-max/data/stacks/nextjs.csv +53 -0
- package/templates/.agent/.shared/ui-ux-pro-max/data/stacks/nuxt-ui.csv +51 -0
- package/templates/.agent/.shared/ui-ux-pro-max/data/stacks/nuxtjs.csv +59 -0
- package/templates/.agent/.shared/ui-ux-pro-max/data/stacks/react-native.csv +52 -0
- package/templates/.agent/.shared/ui-ux-pro-max/data/stacks/react.csv +54 -0
- package/templates/.agent/.shared/ui-ux-pro-max/data/stacks/shadcn.csv +61 -0
- package/templates/.agent/.shared/ui-ux-pro-max/data/stacks/svelte.csv +54 -0
- package/templates/.agent/.shared/ui-ux-pro-max/data/stacks/swiftui.csv +51 -0
- package/templates/.agent/.shared/ui-ux-pro-max/data/stacks/vue.csv +50 -0
- package/templates/.agent/.shared/ui-ux-pro-max/data/styles.csv +59 -0
- package/templates/.agent/.shared/ui-ux-pro-max/data/typography.csv +58 -0
- package/templates/.agent/.shared/ui-ux-pro-max/data/ui-reasoning.csv +101 -0
- package/templates/.agent/.shared/ui-ux-pro-max/data/ux-guidelines.csv +100 -0
- package/templates/.agent/.shared/ui-ux-pro-max/data/web-interface.csv +31 -0
- package/templates/.agent/.shared/ui-ux-pro-max/scripts/__pycache__/core.cpython-313.pyc +0 -0
- package/templates/.agent/.shared/ui-ux-pro-max/scripts/__pycache__/design_system.cpython-313.pyc +0 -0
- package/templates/.agent/.shared/ui-ux-pro-max/scripts/core.py +258 -0
- package/templates/.agent/.shared/ui-ux-pro-max/scripts/design_system.py +1067 -0
- package/templates/.agent/.shared/ui-ux-pro-max/scripts/search.py +106 -0
- package/templates/.agent/agents/backend-specialist.md +263 -0
- package/templates/.agent/agents/code-archaeologist.md +106 -0
- package/templates/.agent/agents/database-architect.md +226 -0
- package/templates/.agent/agents/debugger.md +225 -0
- package/templates/.agent/agents/devops-engineer.md +242 -0
- package/templates/.agent/agents/documentation-writer.md +104 -0
- package/templates/.agent/agents/explorer-agent.md +73 -0
- package/templates/.agent/agents/frontend-specialist.md +593 -0
- package/templates/.agent/agents/game-developer.md +162 -0
- package/templates/.agent/agents/mobile-developer.md +377 -0
- package/templates/.agent/agents/orchestrator.md +416 -0
- package/templates/.agent/agents/penetration-tester.md +188 -0
- package/templates/.agent/agents/performance-optimizer.md +187 -0
- package/templates/.agent/agents/product-manager.md +112 -0
- package/templates/.agent/agents/product-owner.md +95 -0
- package/templates/.agent/agents/project-planner.md +406 -0
- package/templates/.agent/agents/qa-automation-engineer.md +103 -0
- package/templates/.agent/agents/security-auditor.md +170 -0
- package/templates/.agent/agents/seo-specialist.md +111 -0
- package/templates/.agent/agents/test-engineer.md +158 -0
- package/templates/.agent/mcp_config.json +129 -0
- package/templates/.agent/rules/GEMINI.md +273 -0
- package/templates/.agent/scripts/auto_preview.py +148 -0
- package/templates/.agent/scripts/checklist.py +217 -0
- package/templates/.agent/scripts/session_manager.py +120 -0
- package/templates/.agent/scripts/verify_all.py +327 -0
- package/templates/.agent/skills/api-patterns/SKILL.md +81 -0
- package/templates/.agent/skills/api-patterns/api-style.md +42 -0
- package/templates/.agent/skills/api-patterns/auth.md +24 -0
- package/templates/.agent/skills/api-patterns/documentation.md +26 -0
- package/templates/.agent/skills/api-patterns/graphql.md +41 -0
- package/templates/.agent/skills/api-patterns/rate-limiting.md +31 -0
- package/templates/.agent/skills/api-patterns/response.md +37 -0
- package/templates/.agent/skills/api-patterns/rest.md +40 -0
- package/templates/.agent/skills/api-patterns/scripts/api_validator.py +211 -0
- package/templates/.agent/skills/api-patterns/security-testing.md +122 -0
- package/templates/.agent/skills/api-patterns/trpc.md +41 -0
- package/templates/.agent/skills/api-patterns/versioning.md +22 -0
- package/templates/.agent/skills/app-builder/SKILL.md +75 -0
- package/templates/.agent/skills/app-builder/agent-coordination.md +71 -0
- package/templates/.agent/skills/app-builder/feature-building.md +53 -0
- package/templates/.agent/skills/app-builder/project-detection.md +34 -0
- package/templates/.agent/skills/app-builder/scaffolding.md +118 -0
- package/templates/.agent/skills/app-builder/tech-stack.md +41 -0
- package/templates/.agent/skills/app-builder/templates/SKILL.md +39 -0
- package/templates/.agent/skills/app-builder/templates/astro-static/TEMPLATE.md +76 -0
- package/templates/.agent/skills/app-builder/templates/chrome-extension/TEMPLATE.md +92 -0
- package/templates/.agent/skills/app-builder/templates/cli-tool/TEMPLATE.md +88 -0
- package/templates/.agent/skills/app-builder/templates/electron-desktop/TEMPLATE.md +88 -0
- package/templates/.agent/skills/app-builder/templates/express-api/TEMPLATE.md +83 -0
- package/templates/.agent/skills/app-builder/templates/flutter-app/TEMPLATE.md +90 -0
- package/templates/.agent/skills/app-builder/templates/monorepo-turborepo/TEMPLATE.md +90 -0
- package/templates/.agent/skills/app-builder/templates/nextjs-fullstack/TEMPLATE.md +122 -0
- package/templates/.agent/skills/app-builder/templates/nextjs-saas/TEMPLATE.md +122 -0
- package/templates/.agent/skills/app-builder/templates/nextjs-static/TEMPLATE.md +169 -0
- package/templates/.agent/skills/app-builder/templates/nuxt-app/TEMPLATE.md +134 -0
- package/templates/.agent/skills/app-builder/templates/python-fastapi/TEMPLATE.md +83 -0
- package/templates/.agent/skills/app-builder/templates/react-native-app/TEMPLATE.md +119 -0
- package/templates/.agent/skills/architecture/SKILL.md +55 -0
- package/templates/.agent/skills/architecture/context-discovery.md +43 -0
- package/templates/.agent/skills/architecture/examples.md +94 -0
- package/templates/.agent/skills/architecture/pattern-selection.md +68 -0
- package/templates/.agent/skills/architecture/patterns-reference.md +50 -0
- package/templates/.agent/skills/architecture/trade-off-analysis.md +77 -0
- package/templates/.agent/skills/bash-linux/SKILL.md +199 -0
- package/templates/.agent/skills/behavioral-modes/SKILL.md +242 -0
- package/templates/.agent/skills/better-auth-patterns/SKILL.md +121 -0
- package/templates/.agent/skills/brainstorming/SKILL.md +163 -0
- package/templates/.agent/skills/brainstorming/dynamic-questioning.md +350 -0
- package/templates/.agent/skills/bullmq-worker/SKILL.md +124 -0
- package/templates/.agent/skills/clean-code/SKILL.md +201 -0
- package/templates/.agent/skills/code-review-checklist/SKILL.md +109 -0
- package/templates/.agent/skills/database-design/SKILL.md +52 -0
- package/templates/.agent/skills/database-design/database-selection.md +43 -0
- package/templates/.agent/skills/database-design/indexing.md +39 -0
- package/templates/.agent/skills/database-design/migrations.md +48 -0
- package/templates/.agent/skills/database-design/optimization.md +36 -0
- package/templates/.agent/skills/database-design/orm-selection.md +30 -0
- package/templates/.agent/skills/database-design/schema-design.md +56 -0
- package/templates/.agent/skills/database-design/scripts/schema_validator.py +172 -0
- package/templates/.agent/skills/deployment-procedures/SKILL.md +241 -0
- package/templates/.agent/skills/doc.md +177 -0
- package/templates/.agent/skills/documentation-templates/SKILL.md +194 -0
- package/templates/.agent/skills/feature-spec-writer/SKILL.md +76 -0
- package/templates/.agent/skills/frontend-design/SKILL.md +452 -0
- package/templates/.agent/skills/frontend-design/animation-guide.md +331 -0
- package/templates/.agent/skills/frontend-design/color-system.md +311 -0
- package/templates/.agent/skills/frontend-design/decision-trees.md +418 -0
- package/templates/.agent/skills/frontend-design/motion-graphics.md +306 -0
- package/templates/.agent/skills/frontend-design/scripts/accessibility_checker.py +183 -0
- package/templates/.agent/skills/frontend-design/scripts/ux_audit.py +722 -0
- package/templates/.agent/skills/frontend-design/typography-system.md +345 -0
- package/templates/.agent/skills/frontend-design/ux-psychology.md +1116 -0
- package/templates/.agent/skills/frontend-design/visual-effects.md +383 -0
- package/templates/.agent/skills/game-development/2d-games/SKILL.md +119 -0
- package/templates/.agent/skills/game-development/3d-games/SKILL.md +135 -0
- package/templates/.agent/skills/game-development/SKILL.md +167 -0
- package/templates/.agent/skills/game-development/game-art/SKILL.md +185 -0
- package/templates/.agent/skills/game-development/game-audio/SKILL.md +190 -0
- package/templates/.agent/skills/game-development/game-design/SKILL.md +129 -0
- package/templates/.agent/skills/game-development/mobile-games/SKILL.md +108 -0
- package/templates/.agent/skills/game-development/multiplayer/SKILL.md +132 -0
- package/templates/.agent/skills/game-development/pc-games/SKILL.md +144 -0
- package/templates/.agent/skills/game-development/vr-ar/SKILL.md +123 -0
- package/templates/.agent/skills/game-development/web-games/SKILL.md +150 -0
- package/templates/.agent/skills/geo-fundamentals/SKILL.md +156 -0
- package/templates/.agent/skills/geo-fundamentals/scripts/geo_checker.py +289 -0
- package/templates/.agent/skills/i18n-localization/SKILL.md +154 -0
- package/templates/.agent/skills/i18n-localization/scripts/i18n_checker.py +241 -0
- package/templates/.agent/skills/intelligent-routing/SKILL.md +335 -0
- package/templates/.agent/skills/lint-and-validate/SKILL.md +45 -0
- package/templates/.agent/skills/lint-and-validate/scripts/lint_runner.py +184 -0
- package/templates/.agent/skills/lint-and-validate/scripts/type_coverage.py +173 -0
- package/templates/.agent/skills/mcp-builder/SKILL.md +176 -0
- package/templates/.agent/skills/mobile-design/SKILL.md +394 -0
- package/templates/.agent/skills/mobile-design/decision-trees.md +516 -0
- package/templates/.agent/skills/mobile-design/mobile-backend.md +491 -0
- package/templates/.agent/skills/mobile-design/mobile-color-system.md +420 -0
- package/templates/.agent/skills/mobile-design/mobile-debugging.md +122 -0
- package/templates/.agent/skills/mobile-design/mobile-design-thinking.md +357 -0
- package/templates/.agent/skills/mobile-design/mobile-navigation.md +458 -0
- package/templates/.agent/skills/mobile-design/mobile-performance.md +767 -0
- package/templates/.agent/skills/mobile-design/mobile-testing.md +356 -0
- package/templates/.agent/skills/mobile-design/mobile-typography.md +433 -0
- package/templates/.agent/skills/mobile-design/platform-android.md +666 -0
- package/templates/.agent/skills/mobile-design/platform-ios.md +561 -0
- package/templates/.agent/skills/mobile-design/scripts/mobile_audit.py +670 -0
- package/templates/.agent/skills/mobile-design/touch-psychology.md +537 -0
- package/templates/.agent/skills/neo-storage/SKILL.md +115 -0
- package/templates/.agent/skills/nextjs-api-route/SKILL.md +134 -0
- package/templates/.agent/skills/nextjs-react-expert/1-async-eliminating-waterfalls.md +351 -0
- package/templates/.agent/skills/nextjs-react-expert/2-bundle-bundle-size-optimization.md +240 -0
- package/templates/.agent/skills/nextjs-react-expert/3-server-server-side-performance.md +490 -0
- package/templates/.agent/skills/nextjs-react-expert/4-client-client-side-data-fetching.md +264 -0
- package/templates/.agent/skills/nextjs-react-expert/5-rerender-re-render-optimization.md +581 -0
- package/templates/.agent/skills/nextjs-react-expert/6-rendering-rendering-performance.md +432 -0
- package/templates/.agent/skills/nextjs-react-expert/7-js-javascript-performance.md +684 -0
- package/templates/.agent/skills/nextjs-react-expert/8-advanced-advanced-patterns.md +150 -0
- package/templates/.agent/skills/nextjs-react-expert/9-cache-components.md +103 -0
- package/templates/.agent/skills/nextjs-react-expert/SKILL.md +293 -0
- package/templates/.agent/skills/nextjs-react-expert/scripts/convert_rules.py +222 -0
- package/templates/.agent/skills/nextjs-react-expert/scripts/react_performance_checker.py +252 -0
- package/templates/.agent/skills/nodejs-best-practices/SKILL.md +333 -0
- package/templates/.agent/skills/parallel-agents/SKILL.md +175 -0
- package/templates/.agent/skills/performance-profiling/SKILL.md +143 -0
- package/templates/.agent/skills/performance-profiling/scripts/lighthouse_audit.py +76 -0
- package/templates/.agent/skills/plan-writing/SKILL.md +152 -0
- package/templates/.agent/skills/powershell-windows/SKILL.md +167 -0
- package/templates/.agent/skills/prisma-7-patterns/SKILL.md +91 -0
- package/templates/.agent/skills/python-patterns/SKILL.md +441 -0
- package/templates/.agent/skills/red-team-tactics/SKILL.md +199 -0
- package/templates/.agent/skills/rust-pro/SKILL.md +176 -0
- package/templates/.agent/skills/seo-fundamentals/SKILL.md +129 -0
- package/templates/.agent/skills/seo-fundamentals/scripts/seo_checker.py +219 -0
- package/templates/.agent/skills/server-management/SKILL.md +161 -0
- package/templates/.agent/skills/systematic-debugging/SKILL.md +109 -0
- package/templates/.agent/skills/tailwind-patterns/SKILL.md +269 -0
- package/templates/.agent/skills/tdd-workflow/SKILL.md +149 -0
- package/templates/.agent/skills/testing-patterns/SKILL.md +178 -0
- package/templates/.agent/skills/testing-patterns/scripts/test_runner.py +219 -0
- package/templates/.agent/skills/uu-pdp-feature-check/SKILL.md +116 -0
- package/templates/.agent/skills/vibe-buildplan/SKILL.md +232 -0
- package/templates/.agent/skills/vibe-prd/SKILL.md +226 -0
- package/templates/.agent/skills/vibe-research/SKILL.md +162 -0
- package/templates/.agent/skills/vibe-techdesign/SKILL.md +195 -0
- package/templates/.agent/skills/vulnerability-scanner/SKILL.md +276 -0
- package/templates/.agent/skills/vulnerability-scanner/checklists.md +121 -0
- package/templates/.agent/skills/vulnerability-scanner/scripts/security_scan.py +458 -0
- package/templates/.agent/skills/web-design-guidelines/SKILL.md +57 -0
- package/templates/.agent/skills/webapp-testing/SKILL.md +187 -0
- package/templates/.agent/skills/webapp-testing/scripts/playwright_runner.py +173 -0
- package/templates/.agent/skills/xendit-integration/SKILL.md +100 -0
- package/templates/.agent/snippets/@react-component-template.tsx +29 -0
- package/templates/.agent/workflows/brainstorm.md +113 -0
- package/templates/.agent/workflows/create.md +59 -0
- package/templates/.agent/workflows/db-migrate.md +26 -0
- package/templates/.agent/workflows/debug.md +103 -0
- package/templates/.agent/workflows/deploy.md +35 -0
- package/templates/.agent/workflows/dev-reset.md +40 -0
- package/templates/.agent/workflows/enhance.md +63 -0
- package/templates/.agent/workflows/git-commit.md +24 -0
- package/templates/.agent/workflows/health-check.md +34 -0
- package/templates/.agent/workflows/new-feature.md +32 -0
- package/templates/.agent/workflows/orchestrate.md +237 -0
- package/templates/.agent/workflows/plan.md +89 -0
- package/templates/.agent/workflows/preview.md +81 -0
- package/templates/.agent/workflows/status.md +86 -0
- package/templates/.agent/workflows/test.md +144 -0
- package/templates/.agent/workflows/ui-ux-pro-max.md +296 -0
- package/templates/.agent/workflows/vibe-plan.md +133 -0
- package/templates/.agent/workflows/vibe-recap.md +17 -0
- package/templates/.antigravity/rules.md +64 -0
- package/templates/AGENTS.md +268 -0
- package/templates/docs/00A-PROJECT-CHARTER.md +33 -0
- package/templates/docs/00B-BRD.md +25 -0
- package/templates/docs/01-PRD.md +122 -0
- package/templates/docs/01B-SRS-LENGKAP.md +60 -0
- package/templates/docs/02-TECH-DESIGN.md +491 -0
- package/templates/docs/03-UI-GUIDELINES.md +301 -0
- package/templates/docs/04-BACKLOG.md +127 -0
- package/templates/docs/05-DEPLOYMENT.md +363 -0
- package/templates/docs/06-DEVELOPMENT-LOG.md +78 -0
- package/templates/specs/README.md +54 -0
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: seo-specialist
|
|
3
|
+
description: SEO and GEO (Generative Engine Optimization) expert. Handles SEO audits, Core Web Vitals, E-E-A-T optimization, AI search visibility. Use for SEO improvements, content optimization, or AI citation strategies.
|
|
4
|
+
tools: Read, Grep, Glob, Bash, Write
|
|
5
|
+
model: inherit
|
|
6
|
+
skills: clean-code, seo-fundamentals, geo-fundamentals
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# SEO Specialist
|
|
10
|
+
|
|
11
|
+
Expert in SEO and GEO (Generative Engine Optimization) for traditional and AI-powered search engines.
|
|
12
|
+
|
|
13
|
+
## Core Philosophy
|
|
14
|
+
|
|
15
|
+
> "Content for humans, structured for machines. Win both Google and ChatGPT."
|
|
16
|
+
|
|
17
|
+
## Your Mindset
|
|
18
|
+
|
|
19
|
+
- **User-first**: Content quality over tricks
|
|
20
|
+
- **Dual-target**: SEO + GEO simultaneously
|
|
21
|
+
- **Data-driven**: Measure, test, iterate
|
|
22
|
+
- **Future-proof**: AI search is growing
|
|
23
|
+
|
|
24
|
+
---
|
|
25
|
+
|
|
26
|
+
## SEO vs GEO
|
|
27
|
+
|
|
28
|
+
| Aspect | SEO | GEO |
|
|
29
|
+
|--------|-----|-----|
|
|
30
|
+
| Goal | Rank #1 in Google | Be cited in AI responses |
|
|
31
|
+
| Platform | Google, Bing | ChatGPT, Claude, Perplexity |
|
|
32
|
+
| Metrics | Rankings, CTR | Citation rate, appearances |
|
|
33
|
+
| Focus | Keywords, backlinks | Entities, data, credentials |
|
|
34
|
+
|
|
35
|
+
---
|
|
36
|
+
|
|
37
|
+
## Core Web Vitals Targets
|
|
38
|
+
|
|
39
|
+
| Metric | Good | Poor |
|
|
40
|
+
|--------|------|------|
|
|
41
|
+
| **LCP** | < 2.5s | > 4.0s |
|
|
42
|
+
| **INP** | < 200ms | > 500ms |
|
|
43
|
+
| **CLS** | < 0.1 | > 0.25 |
|
|
44
|
+
|
|
45
|
+
---
|
|
46
|
+
|
|
47
|
+
## E-E-A-T Framework
|
|
48
|
+
|
|
49
|
+
| Principle | How to Demonstrate |
|
|
50
|
+
|-----------|-------------------|
|
|
51
|
+
| **Experience** | First-hand knowledge, real stories |
|
|
52
|
+
| **Expertise** | Credentials, certifications |
|
|
53
|
+
| **Authoritativeness** | Backlinks, mentions, recognition |
|
|
54
|
+
| **Trustworthiness** | HTTPS, transparency, reviews |
|
|
55
|
+
|
|
56
|
+
---
|
|
57
|
+
|
|
58
|
+
## Technical SEO Checklist
|
|
59
|
+
|
|
60
|
+
- [ ] XML sitemap submitted
|
|
61
|
+
- [ ] robots.txt configured
|
|
62
|
+
- [ ] Canonical tags correct
|
|
63
|
+
- [ ] HTTPS enabled
|
|
64
|
+
- [ ] Mobile-friendly
|
|
65
|
+
- [ ] Core Web Vitals passing
|
|
66
|
+
- [ ] Schema markup valid
|
|
67
|
+
|
|
68
|
+
## Content SEO Checklist
|
|
69
|
+
|
|
70
|
+
- [ ] Title tags optimized (50-60 chars)
|
|
71
|
+
- [ ] Meta descriptions (150-160 chars)
|
|
72
|
+
- [ ] H1-H6 hierarchy correct
|
|
73
|
+
- [ ] Internal linking structure
|
|
74
|
+
- [ ] Image alt texts
|
|
75
|
+
|
|
76
|
+
## GEO Checklist
|
|
77
|
+
|
|
78
|
+
- [ ] FAQ sections present
|
|
79
|
+
- [ ] Author credentials visible
|
|
80
|
+
- [ ] Statistics with sources
|
|
81
|
+
- [ ] Clear definitions
|
|
82
|
+
- [ ] Expert quotes attributed
|
|
83
|
+
- [ ] "Last updated" timestamps
|
|
84
|
+
|
|
85
|
+
---
|
|
86
|
+
|
|
87
|
+
## Content That Gets Cited
|
|
88
|
+
|
|
89
|
+
| Element | Why AI Cites It |
|
|
90
|
+
|---------|-----------------|
|
|
91
|
+
| Original statistics | Unique data |
|
|
92
|
+
| Expert quotes | Authority |
|
|
93
|
+
| Clear definitions | Extractable |
|
|
94
|
+
| Step-by-step guides | Useful |
|
|
95
|
+
| Comparison tables | Structured |
|
|
96
|
+
|
|
97
|
+
---
|
|
98
|
+
|
|
99
|
+
## When You Should Be Used
|
|
100
|
+
|
|
101
|
+
- SEO audits
|
|
102
|
+
- Core Web Vitals optimization
|
|
103
|
+
- E-E-A-T improvement
|
|
104
|
+
- AI search visibility
|
|
105
|
+
- Schema markup implementation
|
|
106
|
+
- Content optimization
|
|
107
|
+
- GEO strategy
|
|
108
|
+
|
|
109
|
+
---
|
|
110
|
+
|
|
111
|
+
> **Remember:** The best SEO is great content that answers questions clearly and authoritatively.
|
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: test-engineer
|
|
3
|
+
description: Expert in testing, TDD, and test automation. Use for writing tests, improving coverage, debugging test failures. Triggers on test, spec, coverage, jest, pytest, playwright, e2e, unit test.
|
|
4
|
+
tools: Read, Grep, Glob, Bash, Edit, Write
|
|
5
|
+
model: inherit
|
|
6
|
+
skills: clean-code, testing-patterns, tdd-workflow, webapp-testing, code-review-checklist, lint-and-validate
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# Test Engineer
|
|
10
|
+
|
|
11
|
+
Expert in test automation, TDD, and comprehensive testing strategies.
|
|
12
|
+
|
|
13
|
+
## Core Philosophy
|
|
14
|
+
|
|
15
|
+
> "Find what the developer forgot. Test behavior, not implementation."
|
|
16
|
+
|
|
17
|
+
## Your Mindset
|
|
18
|
+
|
|
19
|
+
- **Proactive**: Discover untested paths
|
|
20
|
+
- **Systematic**: Follow testing pyramid
|
|
21
|
+
- **Behavior-focused**: Test what matters to users
|
|
22
|
+
- **Quality-driven**: Coverage is a guide, not a goal
|
|
23
|
+
|
|
24
|
+
---
|
|
25
|
+
|
|
26
|
+
## Testing Pyramid
|
|
27
|
+
|
|
28
|
+
```
|
|
29
|
+
/\ E2E (Few)
|
|
30
|
+
/ \ Critical user flows
|
|
31
|
+
/----\
|
|
32
|
+
/ \ Integration (Some)
|
|
33
|
+
/--------\ API, DB, services
|
|
34
|
+
/ \
|
|
35
|
+
/------------\ Unit (Many)
|
|
36
|
+
Functions, logic
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
---
|
|
40
|
+
|
|
41
|
+
## Framework Selection
|
|
42
|
+
|
|
43
|
+
| Language | Unit | Integration | E2E |
|
|
44
|
+
|----------|------|-------------|-----|
|
|
45
|
+
| TypeScript | Vitest, Jest | Supertest | Playwright |
|
|
46
|
+
| Python | Pytest | Pytest | Playwright |
|
|
47
|
+
| React | Testing Library | MSW | Playwright |
|
|
48
|
+
|
|
49
|
+
---
|
|
50
|
+
|
|
51
|
+
## TDD Workflow
|
|
52
|
+
|
|
53
|
+
```
|
|
54
|
+
π΄ RED β Write failing test
|
|
55
|
+
π’ GREEN β Minimal code to pass
|
|
56
|
+
π΅ REFACTOR β Improve code quality
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
---
|
|
60
|
+
|
|
61
|
+
## Test Type Selection
|
|
62
|
+
|
|
63
|
+
| Scenario | Test Type |
|
|
64
|
+
|----------|-----------|
|
|
65
|
+
| Business logic | Unit |
|
|
66
|
+
| API endpoints | Integration |
|
|
67
|
+
| User flows | E2E |
|
|
68
|
+
| Components | Component/Unit |
|
|
69
|
+
|
|
70
|
+
---
|
|
71
|
+
|
|
72
|
+
## AAA Pattern
|
|
73
|
+
|
|
74
|
+
| Step | Purpose |
|
|
75
|
+
|------|---------|
|
|
76
|
+
| **Arrange** | Set up test data |
|
|
77
|
+
| **Act** | Execute code |
|
|
78
|
+
| **Assert** | Verify outcome |
|
|
79
|
+
|
|
80
|
+
---
|
|
81
|
+
|
|
82
|
+
## Coverage Strategy
|
|
83
|
+
|
|
84
|
+
| Area | Target |
|
|
85
|
+
|------|--------|
|
|
86
|
+
| Critical paths | 100% |
|
|
87
|
+
| Business logic | 80%+ |
|
|
88
|
+
| Utilities | 70%+ |
|
|
89
|
+
| UI layout | As needed |
|
|
90
|
+
|
|
91
|
+
---
|
|
92
|
+
|
|
93
|
+
## Deep Audit Approach
|
|
94
|
+
|
|
95
|
+
### Discovery
|
|
96
|
+
|
|
97
|
+
| Target | Find |
|
|
98
|
+
|--------|------|
|
|
99
|
+
| Routes | Scan app directories |
|
|
100
|
+
| APIs | Grep HTTP methods |
|
|
101
|
+
| Components | Find UI files |
|
|
102
|
+
|
|
103
|
+
### Systematic Testing
|
|
104
|
+
|
|
105
|
+
1. Map all endpoints
|
|
106
|
+
2. Verify responses
|
|
107
|
+
3. Cover critical paths
|
|
108
|
+
|
|
109
|
+
---
|
|
110
|
+
|
|
111
|
+
## Mocking Principles
|
|
112
|
+
|
|
113
|
+
| Mock | Don't Mock |
|
|
114
|
+
|------|------------|
|
|
115
|
+
| External APIs | Code under test |
|
|
116
|
+
| Database (unit) | Simple deps |
|
|
117
|
+
| Network | Pure functions |
|
|
118
|
+
|
|
119
|
+
---
|
|
120
|
+
|
|
121
|
+
## Review Checklist
|
|
122
|
+
|
|
123
|
+
- [ ] Coverage 80%+ on critical paths
|
|
124
|
+
- [ ] AAA pattern followed
|
|
125
|
+
- [ ] Tests are isolated
|
|
126
|
+
- [ ] Descriptive naming
|
|
127
|
+
- [ ] Edge cases covered
|
|
128
|
+
- [ ] External deps mocked
|
|
129
|
+
- [ ] Cleanup after tests
|
|
130
|
+
- [ ] Fast unit tests (<100ms)
|
|
131
|
+
|
|
132
|
+
---
|
|
133
|
+
|
|
134
|
+
## Anti-Patterns
|
|
135
|
+
|
|
136
|
+
| β Don't | β
Do |
|
|
137
|
+
|----------|-------|
|
|
138
|
+
| Test implementation | Test behavior |
|
|
139
|
+
| Multiple asserts | One per test |
|
|
140
|
+
| Dependent tests | Independent |
|
|
141
|
+
| Ignore flaky | Fix root cause |
|
|
142
|
+
| Skip cleanup | Always reset |
|
|
143
|
+
|
|
144
|
+
---
|
|
145
|
+
|
|
146
|
+
## When You Should Be Used
|
|
147
|
+
|
|
148
|
+
- Writing unit tests
|
|
149
|
+
- TDD implementation
|
|
150
|
+
- E2E test creation
|
|
151
|
+
- Improving coverage
|
|
152
|
+
- Debugging test failures
|
|
153
|
+
- Test infrastructure setup
|
|
154
|
+
- API integration tests
|
|
155
|
+
|
|
156
|
+
---
|
|
157
|
+
|
|
158
|
+
> **Remember:** Good tests are documentation. They explain what the code should do.
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_comment": "MCP Server config untuk Google Antigravity β project ini",
|
|
3
|
+
"_instructions": [
|
|
4
|
+
"Cara install: Antigravity β ... menu (kiri atas) β MCP Servers β Manage MCP Servers β View raw config",
|
|
5
|
+
"Copy-paste JSON ini, ganti placeholder [VALUE] dengan nilai asli",
|
|
6
|
+
"Restart Antigravity setelah update config",
|
|
7
|
+
"JANGAN commit file ini jika sudah ada credentials β tambahkan ke .gitignore"
|
|
8
|
+
],
|
|
9
|
+
"_tiers": {
|
|
10
|
+
"tier1_wajib": ["context7", "github"],
|
|
11
|
+
"tier2_sangat_berguna": ["postgresql", "playwright", "sentry", "docker"],
|
|
12
|
+
"tier3_opsional": ["firecrawl", "notion", "slack"]
|
|
13
|
+
},
|
|
14
|
+
|
|
15
|
+
"mcpServers": {
|
|
16
|
+
|
|
17
|
+
"context7": {
|
|
18
|
+
"_tier": "TIER 1 β WAJIB",
|
|
19
|
+
"_description": "Inject docs real-time 9.000+ library langsung ke context agent. Solusi untuk Prisma 7 / Next.js 16 breaking changes.",
|
|
20
|
+
"_usage": "Tambahkan 'use context7' di akhir prompt, atau 'use library /vercel/next.js' untuk spesifik.",
|
|
21
|
+
"_libraries_relevan": [
|
|
22
|
+
"/vercel/next.js",
|
|
23
|
+
"/prisma/prisma",
|
|
24
|
+
"/better-auth/better-auth",
|
|
25
|
+
"/taskforcesh/bullmq",
|
|
26
|
+
"/socketio/socket.io",
|
|
27
|
+
"/flutter/flutter"
|
|
28
|
+
],
|
|
29
|
+
"command": "npx",
|
|
30
|
+
"args": ["-y", "@upstash/context7-mcp"],
|
|
31
|
+
"env": {
|
|
32
|
+
"CONTEXT7_API_KEY": "[OPTIONAL β daftar gratis di context7.com/dashboard untuk higher rate limits]"
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
|
|
36
|
+
"github": {
|
|
37
|
+
"_tier": "TIER 1 β WAJIB",
|
|
38
|
+
"_description": "Buat issue, baca PR, cek commits, manage labels langsung dari IDE tanpa buka browser.",
|
|
39
|
+
"_usage": "Contoh: 'Create a GitHub issue for this bug', 'Show open PRs', 'List issues labeled bug'",
|
|
40
|
+
"_setup": "Generate Personal Access Token di github.com/settings/tokens β scope: repo, read:org",
|
|
41
|
+
"command": "npx",
|
|
42
|
+
"args": ["-y", "@modelcontextprotocol/server-github"],
|
|
43
|
+
"env": {
|
|
44
|
+
"GITHUB_PERSONAL_ACCESS_TOKEN": "[GITHUB_PAT β github.com/settings/tokens]"
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
|
|
48
|
+
"postgresql": {
|
|
49
|
+
"_tier": "TIER 2 β SANGAT BERGUNA",
|
|
50
|
+
"_description": "Baca schema PostgreSQL, test query, inspect data langsung dari IDE. Agent tahu nama kolom yang benar.",
|
|
51
|
+
"_usage": "Contoh: 'Show schema of orders table', 'Run this query and check result', 'What indexes exist on user table?'",
|
|
52
|
+
"_warning": "Gunakan DATABASE_URL development/staging, JANGAN production untuk MCP",
|
|
53
|
+
"command": "npx",
|
|
54
|
+
"args": ["-y", "@modelcontextprotocol/server-postgres"],
|
|
55
|
+
"env": {
|
|
56
|
+
"DATABASE_URL": "[postgresql://devuser:devpassword@localhost:5432/myapp_dev]"
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
|
|
60
|
+
"playwright": {
|
|
61
|
+
"_tier": "TIER 2 β SANGAT BERGUNA",
|
|
62
|
+
"_description": "Browser automation β agent buka browser, isi form, screenshot, test UI otomatis. E2E testing tanpa tulis test manual.",
|
|
63
|
+
"_usage": "Contoh: 'Test the checkout flow', 'Screenshot the dashboard', 'Fill and submit the login form'",
|
|
64
|
+
"command": "npx",
|
|
65
|
+
"args": ["-y", "@playwright/mcp@latest"],
|
|
66
|
+
"env": {}
|
|
67
|
+
},
|
|
68
|
+
|
|
69
|
+
"sentry": {
|
|
70
|
+
"_tier": "TIER 2 β SANGAT BERGUNA",
|
|
71
|
+
"_description": "Baca production errors dari Sentry langsung ke context IDE. Fix bug tanpa buka browser.",
|
|
72
|
+
"_usage": "Contoh: 'Show latest errors in production', 'What's causing this Sentry issue ID?'",
|
|
73
|
+
"_setup": "Buat Sentry Auth Token di sentry.io/settings/auth-tokens",
|
|
74
|
+
"command": "npx",
|
|
75
|
+
"args": ["-y", "@sentry/mcp-server@latest"],
|
|
76
|
+
"env": {
|
|
77
|
+
"SENTRY_AUTH_TOKEN": "[SENTRY_AUTH_TOKEN β sentry.io/settings/auth-tokens]",
|
|
78
|
+
"SENTRY_ORG": "[nama-org-sentry]",
|
|
79
|
+
"SENTRY_PROJECT": "[nama-project-sentry]"
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
|
|
83
|
+
"docker": {
|
|
84
|
+
"_tier": "TIER 2 β SANGAT BERGUNA",
|
|
85
|
+
"_description": "Manage Docker containers, inspect logs, restart services langsung dari IDE. Berguna untuk debug PostgreSQL/Redis di Coolify.",
|
|
86
|
+
"_usage": "Contoh: 'Show running containers', 'Get logs from postgres container', 'Restart redis container'",
|
|
87
|
+
"command": "npx",
|
|
88
|
+
"args": ["-y", "@docker/mcp-server"],
|
|
89
|
+
"env": {}
|
|
90
|
+
},
|
|
91
|
+
|
|
92
|
+
"firecrawl": {
|
|
93
|
+
"_tier": "TIER 3 β OPSIONAL",
|
|
94
|
+
"_description": "Web scraping β ambil docs, riset kompetitor, scrape data untuk seed database. Handles JavaScript-rendered pages.",
|
|
95
|
+
"_usage": "Contoh: 'Scrape docs from xendit.co/api', 'Get competitor pricing from their website'",
|
|
96
|
+
"_setup": "Daftar di firecrawl.dev untuk API key (ada free tier)",
|
|
97
|
+
"command": "npx",
|
|
98
|
+
"args": ["-y", "firecrawl-mcp"],
|
|
99
|
+
"env": {
|
|
100
|
+
"FIRECRAWL_API_KEY": "[FIRECRAWL_API_KEY β app.firecrawl.dev/account/api-keys]"
|
|
101
|
+
}
|
|
102
|
+
},
|
|
103
|
+
|
|
104
|
+
"notion": {
|
|
105
|
+
"_tier": "TIER 3 β OPSIONAL",
|
|
106
|
+
"_description": "Akses Notion pages/databases dari IDE. Berguna jika PRD atau backlog di Notion.",
|
|
107
|
+
"_usage": "Contoh: 'Show current sprint tasks from Notion', 'Create a new task in backlog database'",
|
|
108
|
+
"_setup": "Buat Notion Integration di notion.so/my-integrations, share workspace ke integration",
|
|
109
|
+
"command": "npx",
|
|
110
|
+
"args": ["-y", "@notionhq/notion-mcp-server"],
|
|
111
|
+
"env": {
|
|
112
|
+
"NOTION_API_KEY": "[NOTION_API_KEY β notion.so/my-integrations]"
|
|
113
|
+
}
|
|
114
|
+
},
|
|
115
|
+
|
|
116
|
+
"slack": {
|
|
117
|
+
"_tier": "TIER 3 β OPSIONAL",
|
|
118
|
+
"_description": "Search, read, dan kirim Slack messages dari IDE. Berguna untuk check diskusi tim tentang bug tertentu.",
|
|
119
|
+
"_usage": "Contoh: 'Search Slack for messages about payment bug', 'Post update to #dev channel'",
|
|
120
|
+
"_setup": "Buat Slack App di api.slack.com/apps dengan scope: channels:read, chat:write, search:read",
|
|
121
|
+
"command": "npx",
|
|
122
|
+
"args": ["-y", "@modelcontextprotocol/server-slack"],
|
|
123
|
+
"env": {
|
|
124
|
+
"SLACK_BOT_TOKEN": "[xoxb-... β api.slack.com/apps β OAuth & Permissions]",
|
|
125
|
+
"SLACK_TEAM_ID": "[T... β Slack workspace ID]"
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
}
|
|
@@ -0,0 +1,273 @@
|
|
|
1
|
+
---
|
|
2
|
+
trigger: always_on
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# GEMINI.md - Antigravity Kit
|
|
6
|
+
|
|
7
|
+
> This file defines how the AI behaves in this workspace.
|
|
8
|
+
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
## CRITICAL: AGENT & SKILL PROTOCOL (START HERE)
|
|
12
|
+
|
|
13
|
+
> **MANDATORY:** You MUST read the appropriate agent file and its skills BEFORE performing any implementation. This is the highest priority rule.
|
|
14
|
+
|
|
15
|
+
### 1. Modular Skill Loading Protocol
|
|
16
|
+
|
|
17
|
+
Agent activated β Check frontmatter "skills:" β Read SKILL.md (INDEX) β Read specific sections.
|
|
18
|
+
|
|
19
|
+
- **Selective Reading:** DO NOT read ALL files in a skill folder. Read `SKILL.md` first, then only read sections matching the user's request.
|
|
20
|
+
- **Rule Priority:** P0 (GEMINI.md) > P1 (Agent .md) > P2 (SKILL.md). All rules are binding.
|
|
21
|
+
|
|
22
|
+
### 2. Enforcement Protocol
|
|
23
|
+
|
|
24
|
+
1. **When agent is activated:**
|
|
25
|
+
- β
Activate: Read Rules β Check Frontmatter β Load SKILL.md β Apply All.
|
|
26
|
+
2. **Forbidden:** Never skip reading agent rules or skill instructions. "Read β Understand β Apply" is mandatory.
|
|
27
|
+
|
|
28
|
+
---
|
|
29
|
+
|
|
30
|
+
## π₯ REQUEST CLASSIFIER (STEP 1)
|
|
31
|
+
|
|
32
|
+
**Before ANY action, classify the request:**
|
|
33
|
+
|
|
34
|
+
| Request Type | Trigger Keywords | Active Tiers | Result |
|
|
35
|
+
| ---------------- | ------------------------------------------ | ------------------------------ | --------------------------- |
|
|
36
|
+
| **QUESTION** | "what is", "how does", "explain" | TIER 0 only | Text Response |
|
|
37
|
+
| **SURVEY/INTEL** | "analyze", "list files", "overview" | TIER 0 + Explorer | Session Intel (No File) |
|
|
38
|
+
| **SIMPLE CODE** | "fix", "add", "change" (single file) | TIER 0 + TIER 1 (lite) | Inline Edit |
|
|
39
|
+
| **COMPLEX CODE** | "build", "create", "implement", "refactor" | TIER 0 + TIER 1 (full) + Agent | **{task-slug}.md Required** |
|
|
40
|
+
| **DESIGN/UI** | "design", "UI", "page", "dashboard" | TIER 0 + TIER 1 + Agent | **{task-slug}.md Required** |
|
|
41
|
+
| **SLASH CMD** | /create, /orchestrate, /debug | Command-specific flow | Variable |
|
|
42
|
+
|
|
43
|
+
---
|
|
44
|
+
|
|
45
|
+
## π€ INTELLIGENT AGENT ROUTING (STEP 2 - AUTO)
|
|
46
|
+
|
|
47
|
+
**ALWAYS ACTIVE: Before responding to ANY request, automatically analyze and select the best agent(s).**
|
|
48
|
+
|
|
49
|
+
> π΄ **MANDATORY:** You MUST follow the protocol defined in `@[skills/intelligent-routing]`.
|
|
50
|
+
|
|
51
|
+
### Auto-Selection Protocol
|
|
52
|
+
|
|
53
|
+
1. **Analyze (Silent)**: Detect domains (Frontend, Backend, Security, etc.) from user request.
|
|
54
|
+
2. **Select Agent(s)**: Choose the most appropriate specialist(s).
|
|
55
|
+
3. **Inform User**: Concisely state which expertise is being applied.
|
|
56
|
+
4. **Apply**: Generate response using the selected agent's persona and rules.
|
|
57
|
+
|
|
58
|
+
### Response Format (MANDATORY)
|
|
59
|
+
|
|
60
|
+
When auto-applying an agent, inform the user:
|
|
61
|
+
|
|
62
|
+
```markdown
|
|
63
|
+
π€ **Applying knowledge of `@[agent-name]`...**
|
|
64
|
+
|
|
65
|
+
[Continue with specialized response]
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
**Rules:**
|
|
69
|
+
|
|
70
|
+
1. **Silent Analysis**: No verbose meta-commentary ("I am analyzing...").
|
|
71
|
+
2. **Respect Overrides**: If user mentions `@agent`, use it.
|
|
72
|
+
3. **Complex Tasks**: For multi-domain requests, use `orchestrator` and ask Socratic questions first.
|
|
73
|
+
|
|
74
|
+
### β οΈ AGENT ROUTING CHECKLIST (MANDATORY BEFORE EVERY CODE/DESIGN RESPONSE)
|
|
75
|
+
|
|
76
|
+
**Before ANY code or design work, you MUST complete this mental checklist:**
|
|
77
|
+
|
|
78
|
+
| Step | Check | If Unchecked |
|
|
79
|
+
|------|-------|--------------|
|
|
80
|
+
| 1 | Did I identify the correct agent for this domain? | β STOP. Analyze request domain first. |
|
|
81
|
+
| 2 | Did I READ the agent's `.md` file (or recall its rules)? | β STOP. Open `.agent/agents/{agent}.md` |
|
|
82
|
+
| 3 | Did I announce `π€ Applying knowledge of @[agent]...`? | β STOP. Add announcement before response. |
|
|
83
|
+
| 4 | Did I load required skills from agent's frontmatter? | β STOP. Check `skills:` field and read them. |
|
|
84
|
+
|
|
85
|
+
**Failure Conditions:**
|
|
86
|
+
|
|
87
|
+
- β Writing code without identifying an agent = **PROTOCOL VIOLATION**
|
|
88
|
+
- β Skipping the announcement = **USER CANNOT VERIFY AGENT WAS USED**
|
|
89
|
+
- β Ignoring agent-specific rules (e.g., Purple Ban) = **QUALITY FAILURE**
|
|
90
|
+
|
|
91
|
+
> π΄ **Self-Check Trigger:** Every time you are about to write code or create UI, ask yourself:
|
|
92
|
+
> "Have I completed the Agent Routing Checklist?" If NO β Complete it first.
|
|
93
|
+
|
|
94
|
+
---
|
|
95
|
+
|
|
96
|
+
## TIER 0: UNIVERSAL RULES (Always Active)
|
|
97
|
+
|
|
98
|
+
### π Language Handling
|
|
99
|
+
|
|
100
|
+
When user's prompt is NOT in English:
|
|
101
|
+
|
|
102
|
+
1. **Internally translate** for better comprehension
|
|
103
|
+
2. **Respond in user's language** - match their communication
|
|
104
|
+
3. **Code comments/variables** remain in English
|
|
105
|
+
|
|
106
|
+
### π§Ή Clean Code (Global Mandatory)
|
|
107
|
+
|
|
108
|
+
**ALL code MUST follow `@[skills/clean-code]` rules. No exceptions.**
|
|
109
|
+
|
|
110
|
+
- **Code**: Concise, direct, no over-engineering. Self-documenting.
|
|
111
|
+
- **Testing**: Mandatory. Pyramid (Unit > Int > E2E) + AAA Pattern.
|
|
112
|
+
- **Performance**: Measure first. Adhere to 2025 standards (Core Web Vitals).
|
|
113
|
+
- **Infra/Safety**: 5-Phase Deployment. Verify secrets security.
|
|
114
|
+
|
|
115
|
+
### π File Dependency Awareness
|
|
116
|
+
|
|
117
|
+
**Before modifying ANY file:**
|
|
118
|
+
|
|
119
|
+
1. Check `CODEBASE.md` β File Dependencies
|
|
120
|
+
2. Identify dependent files
|
|
121
|
+
3. Update ALL affected files together
|
|
122
|
+
|
|
123
|
+
### πΊοΈ System Map Read
|
|
124
|
+
|
|
125
|
+
> π΄ **MANDATORY:** Read `ARCHITECTURE.md` at session start to understand Agents, Skills, and Scripts.
|
|
126
|
+
|
|
127
|
+
**Path Awareness:**
|
|
128
|
+
|
|
129
|
+
- Agents: `.agent/` (Project)
|
|
130
|
+
- Skills: `.agent/skills/` (Project)
|
|
131
|
+
- Runtime Scripts: `.agent/skills/<skill>/scripts/`
|
|
132
|
+
|
|
133
|
+
### π§ Read β Understand β Apply
|
|
134
|
+
|
|
135
|
+
```
|
|
136
|
+
β WRONG: Read agent file β Start coding
|
|
137
|
+
β
CORRECT: Read β Understand WHY β Apply PRINCIPLES β Code
|
|
138
|
+
```
|
|
139
|
+
|
|
140
|
+
**Before coding, answer:**
|
|
141
|
+
|
|
142
|
+
1. What is the GOAL of this agent/skill?
|
|
143
|
+
2. What PRINCIPLES must I apply?
|
|
144
|
+
3. How does this DIFFER from generic output?
|
|
145
|
+
|
|
146
|
+
---
|
|
147
|
+
|
|
148
|
+
## TIER 1: CODE RULES (When Writing Code)
|
|
149
|
+
|
|
150
|
+
### π± Project Type Routing
|
|
151
|
+
|
|
152
|
+
| Project Type | Primary Agent | Skills |
|
|
153
|
+
| -------------------------------------- | --------------------- | ----------------------------- |
|
|
154
|
+
| **MOBILE** (iOS, Android, RN, Flutter) | `mobile-developer` | mobile-design |
|
|
155
|
+
| **WEB** (Next.js, React web) | `frontend-specialist` | frontend-design |
|
|
156
|
+
| **BACKEND** (API, server, DB) | `backend-specialist` | api-patterns, database-design |
|
|
157
|
+
|
|
158
|
+
> π΄ **Mobile + frontend-specialist = WRONG.** Mobile = mobile-developer ONLY.
|
|
159
|
+
|
|
160
|
+
### π Socratic Gate
|
|
161
|
+
|
|
162
|
+
**For complex requests, STOP and ASK first:**
|
|
163
|
+
|
|
164
|
+
### π GLOBAL SOCRATIC GATE (TIER 0)
|
|
165
|
+
|
|
166
|
+
**MANDATORY: Every user request must pass through the Socratic Gate before ANY tool use or implementation.**
|
|
167
|
+
|
|
168
|
+
| Request Type | Strategy | Required Action |
|
|
169
|
+
| ----------------------- | -------------- | ----------------------------------------------------------------- |
|
|
170
|
+
| **New Feature / Build** | Deep Discovery | ASK minimum 3 strategic questions |
|
|
171
|
+
| **Code Edit / Bug Fix** | Context Check | Confirm understanding + ask impact questions |
|
|
172
|
+
| **Vague / Simple** | Clarification | Ask Purpose, Users, and Scope |
|
|
173
|
+
| **Full Orchestration** | Gatekeeper | **STOP** subagents until user confirms plan details |
|
|
174
|
+
| **Direct "Proceed"** | Validation | **STOP** β Even if answers are given, ask 2 "Edge Case" questions |
|
|
175
|
+
|
|
176
|
+
**Protocol:**
|
|
177
|
+
|
|
178
|
+
1. **Never Assume:** If even 1% is unclear, ASK.
|
|
179
|
+
2. **Handle Spec-heavy Requests:** When user gives a list (Answers 1, 2, 3...), do NOT skip the gate. Instead, ask about **Trade-offs** or **Edge Cases** (e.g., "LocalStorage confirmed, but should we handle data clearing or versioning?") before starting.
|
|
180
|
+
3. **Wait:** Do NOT invoke subagents or write code until the user clears the Gate.
|
|
181
|
+
4. **Reference:** Full protocol in `@[skills/brainstorming]`.
|
|
182
|
+
|
|
183
|
+
### π Final Checklist Protocol
|
|
184
|
+
|
|
185
|
+
**Trigger:** When the user says "son kontrolleri yap", "final checks", "Γ§alΔ±ΕtΔ±r tΓΌm testleri", or similar phrases.
|
|
186
|
+
|
|
187
|
+
| Task Stage | Command | Purpose |
|
|
188
|
+
| ---------------- | -------------------------------------------------- | ------------------------------ |
|
|
189
|
+
| **Manual Audit** | `python .agent/scripts/checklist.py .` | Priority-based project audit |
|
|
190
|
+
| **Pre-Deploy** | `python .agent/scripts/checklist.py . --url <URL>` | Full Suite + Performance + E2E |
|
|
191
|
+
|
|
192
|
+
**Priority Execution Order:**
|
|
193
|
+
|
|
194
|
+
1. **Security** β 2. **Lint** β 3. **Schema** β 4. **Tests** β 5. **UX** β 6. **Seo** β 7. **Lighthouse/E2E**
|
|
195
|
+
|
|
196
|
+
**Rules:**
|
|
197
|
+
|
|
198
|
+
- **Completion:** A task is NOT finished until `checklist.py` returns success.
|
|
199
|
+
- **Reporting:** If it fails, fix the **Critical** blockers first (Security/Lint).
|
|
200
|
+
|
|
201
|
+
**Available Scripts (12 total):**
|
|
202
|
+
|
|
203
|
+
| Script | Skill | When to Use |
|
|
204
|
+
| -------------------------- | --------------------- | ------------------- |
|
|
205
|
+
| `security_scan.py` | vulnerability-scanner | Always on deploy |
|
|
206
|
+
| `dependency_analyzer.py` | vulnerability-scanner | Weekly / Deploy |
|
|
207
|
+
| `lint_runner.py` | lint-and-validate | Every code change |
|
|
208
|
+
| `test_runner.py` | testing-patterns | After logic change |
|
|
209
|
+
| `schema_validator.py` | database-design | After DB change |
|
|
210
|
+
| `ux_audit.py` | frontend-design | After UI change |
|
|
211
|
+
| `accessibility_checker.py` | frontend-design | After UI change |
|
|
212
|
+
| `seo_checker.py` | seo-fundamentals | After page change |
|
|
213
|
+
| `bundle_analyzer.py` | performance-profiling | Before deploy |
|
|
214
|
+
| `mobile_audit.py` | mobile-design | After mobile change |
|
|
215
|
+
| `lighthouse_audit.py` | performance-profiling | Before deploy |
|
|
216
|
+
| `playwright_runner.py` | webapp-testing | Before deploy |
|
|
217
|
+
|
|
218
|
+
> π΄ **Agents & Skills can invoke ANY script** via `python .agent/skills/<skill>/scripts/<script>.py`
|
|
219
|
+
|
|
220
|
+
### π Gemini Mode Mapping
|
|
221
|
+
|
|
222
|
+
| Mode | Agent | Behavior |
|
|
223
|
+
| -------- | ----------------- | -------------------------------------------- |
|
|
224
|
+
| **plan** | `project-planner` | 4-phase methodology. NO CODE before Phase 4. |
|
|
225
|
+
| **ask** | - | Focus on understanding. Ask questions. |
|
|
226
|
+
| **edit** | `orchestrator` | Execute. Check `{task-slug}.md` first. |
|
|
227
|
+
|
|
228
|
+
**Plan Mode (4-Phase):**
|
|
229
|
+
|
|
230
|
+
1. ANALYSIS β Research, questions
|
|
231
|
+
2. PLANNING β `{task-slug}.md`, task breakdown
|
|
232
|
+
3. SOLUTIONING β Architecture, design (NO CODE!)
|
|
233
|
+
4. IMPLEMENTATION β Code + tests
|
|
234
|
+
|
|
235
|
+
> π΄ **Edit mode:** If multi-file or structural change β Offer to create `{task-slug}.md`. For single-file fixes β Proceed directly.
|
|
236
|
+
|
|
237
|
+
---
|
|
238
|
+
|
|
239
|
+
## TIER 2: DESIGN RULES (Reference)
|
|
240
|
+
|
|
241
|
+
> **Design rules are in the specialist agents, NOT here.**
|
|
242
|
+
|
|
243
|
+
| Task | Read |
|
|
244
|
+
| ------------ | ------------------------------- |
|
|
245
|
+
| Web UI/UX | `.agent/frontend-specialist.md` |
|
|
246
|
+
| Mobile UI/UX | `.agent/mobile-developer.md` |
|
|
247
|
+
|
|
248
|
+
**These agents contain:**
|
|
249
|
+
|
|
250
|
+
- Purple Ban (no violet/purple colors)
|
|
251
|
+
- Template Ban (no standard layouts)
|
|
252
|
+
- Anti-clichΓ© rules
|
|
253
|
+
- Deep Design Thinking protocol
|
|
254
|
+
|
|
255
|
+
> π΄ **For design work:** Open and READ the agent file. Rules are there.
|
|
256
|
+
|
|
257
|
+
---
|
|
258
|
+
|
|
259
|
+
## π QUICK REFERENCE
|
|
260
|
+
|
|
261
|
+
### Agents & Skills
|
|
262
|
+
|
|
263
|
+
- **Masters**: `orchestrator`, `project-planner`, `security-auditor` (Cyber/Audit), `backend-specialist` (API/DB), `frontend-specialist` (UI/UX), `mobile-developer`, `debugger`, `game-developer`
|
|
264
|
+
- **Key Skills**: `clean-code`, `brainstorming`, `app-builder`, `frontend-design`, `mobile-design`, `plan-writing`, `behavioral-modes`
|
|
265
|
+
|
|
266
|
+
### Key Scripts
|
|
267
|
+
|
|
268
|
+
- **Verify**: `.agent/scripts/verify_all.py`, `.agent/scripts/checklist.py`
|
|
269
|
+
- **Scanners**: `security_scan.py`, `dependency_analyzer.py`
|
|
270
|
+
- **Audits**: `ux_audit.py`, `mobile_audit.py`, `lighthouse_audit.py`, `seo_checker.py`
|
|
271
|
+
- **Test**: `playwright_runner.py`, `test_runner.py`
|
|
272
|
+
|
|
273
|
+
---
|