bps-kit 1.0.4 → 1.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (38) hide show
  1. package/package.json +1 -1
  2. package/templates/VAULT_INDEX.md +2 -2
  3. package/templates/agents-template/agents/backend-specialist.md +263 -0
  4. package/templates/agents-template/agents/code-archaeologist.md +106 -0
  5. package/templates/agents-template/agents/database-architect.md +226 -0
  6. package/templates/agents-template/agents/debugger.md +225 -0
  7. package/templates/agents-template/agents/devops-engineer.md +242 -0
  8. package/templates/agents-template/agents/documentation-writer.md +104 -0
  9. package/templates/agents-template/agents/explorer-agent.md +73 -0
  10. package/templates/agents-template/agents/frontend-specialist.md +593 -0
  11. package/templates/agents-template/agents/game-developer.md +162 -0
  12. package/templates/agents-template/agents/mobile-developer.md +377 -0
  13. package/templates/agents-template/agents/orchestrator.md +416 -0
  14. package/templates/agents-template/agents/penetration-tester.md +188 -0
  15. package/templates/agents-template/agents/performance-optimizer.md +187 -0
  16. package/templates/agents-template/agents/product-manager.md +112 -0
  17. package/templates/agents-template/agents/product-owner.md +95 -0
  18. package/templates/agents-template/agents/project-planner.md +406 -0
  19. package/templates/agents-template/agents/qa-automation-engineer.md +103 -0
  20. package/templates/agents-template/agents/security-auditor.md +170 -0
  21. package/templates/agents-template/agents/seo-specialist.md +111 -0
  22. package/templates/agents-template/agents/test-engineer.md +158 -0
  23. package/templates/agents-template/rules/GEMINI.md +4 -4
  24. package/templates/agents-template/scripts/auto_preview.py +148 -0
  25. package/templates/agents-template/scripts/checklist.py +217 -0
  26. package/templates/agents-template/scripts/session_manager.py +120 -0
  27. package/templates/agents-template/scripts/verify_all.py +327 -0
  28. package/templates/agents-template/workflows/brainstorm.md +113 -0
  29. package/templates/agents-template/workflows/create.md +59 -0
  30. package/templates/agents-template/workflows/debug.md +103 -0
  31. package/templates/agents-template/workflows/deploy.md +176 -0
  32. package/templates/agents-template/workflows/enhance.md +63 -0
  33. package/templates/agents-template/workflows/orchestrate.md +237 -0
  34. package/templates/agents-template/workflows/plan.md +89 -0
  35. package/templates/agents-template/workflows/preview.md +81 -0
  36. package/templates/agents-template/workflows/status.md +86 -0
  37. package/templates/agents-template/workflows/test.md +144 -0
  38. package/templates/agents-template/workflows/ui-ux-pro-max.md +296 -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.
@@ -67,16 +67,16 @@ Agent activated → Check frontmatter "skills:" → Read SKILL.md (INDEX) → Re
67
67
  ## 🧠 Skill Auto-Routing System (v8.0.0 — Vault Edition)
68
68
 
69
69
  ### Architecture
70
- - **Active skills** (~65): in `./.agents/antigravity/skills/` — always in context
71
- - **Vault skills** (~1200+): in `./.agents/antigravity/vault/` — discoverable via index
70
+ - **Active skills** (~65): in `./.agents/skills/` — always in context
71
+ - **Vault skills** (~1200+): in `./.agents/vault/` — discoverable via index
72
72
 
73
73
  ### Core Rule — Skills First
74
74
  After invoking any skill, explicitly say: '📖 Using skill: [skill-name]' before proceeding. If no skill was used, say: '⚠️ No skill used — responding from base knowledge.'
75
75
 
76
76
  ### Routing Flow
77
77
  1. Check if an **active skill** covers the request → use it directly
78
- 2. If not → open `./.agents/antigravity/skills/VAULT_INDEX.md` to find a vault skill
79
- 3. If found → `view_file ./.agents/antigravity/vault/{name}/SKILL.md`
78
+ 2. If not → open `./.agents/skills/VAULT_INDEX.md` to find a vault skill
79
+ 3. If found → `view_file ./.agents/vault/{name}/SKILL.md`
80
80
  4. If nothing found → respond from base knowledge
81
81
 
82
82
  ### Intent → Skill Routing Map (Active Skills)
@@ -0,0 +1,148 @@
1
+ #!/usr/bin/env python3
2
+ """
3
+ Auto Preview - Antigravity Kit
4
+ ==============================
5
+ Manages (start/stop/status) the local development server for previewing the application.
6
+
7
+ Usage:
8
+ python .agent/scripts/auto_preview.py start [port]
9
+ python .agent/scripts/auto_preview.py stop
10
+ python .agent/scripts/auto_preview.py status
11
+ """
12
+
13
+ import os
14
+ import sys
15
+ import time
16
+ import json
17
+ import signal
18
+ import argparse
19
+ import subprocess
20
+ from pathlib import Path
21
+
22
+ AGENT_DIR = Path(".agents")
23
+ PID_FILE = AGENT_DIR / "preview.pid"
24
+ LOG_FILE = AGENT_DIR / "preview.log"
25
+
26
+ def get_project_root():
27
+ return Path(".").resolve()
28
+
29
+ def is_running(pid):
30
+ try:
31
+ os.kill(pid, 0)
32
+ return True
33
+ except OSError:
34
+ return False
35
+
36
+ def get_start_command(root):
37
+ pkg_file = root / "package.json"
38
+ if not pkg_file.exists():
39
+ return None
40
+
41
+ with open(pkg_file, 'r') as f:
42
+ data = json.load(f)
43
+
44
+ scripts = data.get("scripts", {})
45
+ if "dev" in scripts:
46
+ return ["npm", "run", "dev"]
47
+ elif "start" in scripts:
48
+ return ["npm", "start"]
49
+ return None
50
+
51
+ def start_server(port=3000):
52
+ if PID_FILE.exists():
53
+ try:
54
+ pid = int(PID_FILE.read_text().strip())
55
+ if is_running(pid):
56
+ print(f"⚠️ Preview already running (PID: {pid})")
57
+ return
58
+ except:
59
+ pass # Invalid PID file
60
+
61
+ root = get_project_root()
62
+ cmd = get_start_command(root)
63
+
64
+ if not cmd:
65
+ print("❌ No 'dev' or 'start' script found in package.json")
66
+ sys.exit(1)
67
+
68
+ # Add port env var if needed (simple heuristic)
69
+ env = os.environ.copy()
70
+ env["PORT"] = str(port)
71
+
72
+ print(f"🚀 Starting preview on port {port}...")
73
+
74
+ with open(LOG_FILE, "w") as log:
75
+ process = subprocess.Popen(
76
+ cmd,
77
+ cwd=str(root),
78
+ stdout=log,
79
+ stderr=log,
80
+ env=env,
81
+ shell=True # Required for npm on windows often, or consistent path handling
82
+ )
83
+
84
+ PID_FILE.write_text(str(process.pid))
85
+ print(f"✅ Preview started! (PID: {process.pid})")
86
+ print(f" Logs: {LOG_FILE}")
87
+ print(f" URL: http://localhost:{port}")
88
+
89
+ def stop_server():
90
+ if not PID_FILE.exists():
91
+ print("ℹ️ No preview server found.")
92
+ return
93
+
94
+ try:
95
+ pid = int(PID_FILE.read_text().strip())
96
+ if is_running(pid):
97
+ # Try gentle kill first
98
+ os.kill(pid, signal.SIGTERM) if sys.platform != 'win32' else subprocess.call(['taskkill', '/F', '/T', '/PID', str(pid)])
99
+ print(f"🛑 Preview stopped (PID: {pid})")
100
+ else:
101
+ print("ℹ️ Process was not running.")
102
+ except Exception as e:
103
+ print(f"❌ Error stopping server: {e}")
104
+ finally:
105
+ if PID_FILE.exists():
106
+ PID_FILE.unlink()
107
+
108
+ def status_server():
109
+ running = False
110
+ pid = None
111
+ url = "Unknown"
112
+
113
+ if PID_FILE.exists():
114
+ try:
115
+ pid = int(PID_FILE.read_text().strip())
116
+ if is_running(pid):
117
+ running = True
118
+ # Heuristic for URL, strictly we should save it
119
+ url = "http://localhost:3000"
120
+ except:
121
+ pass
122
+
123
+ print("\n=== Preview Status ===")
124
+ if running:
125
+ print(f"✅ Status: Running")
126
+ print(f"🔢 PID: {pid}")
127
+ print(f"🌐 URL: {url} (Likely)")
128
+ print(f"📝 Logs: {LOG_FILE}")
129
+ else:
130
+ print("⚪ Status: Stopped")
131
+ print("===================\n")
132
+
133
+ def main():
134
+ parser = argparse.ArgumentParser()
135
+ parser.add_argument("action", choices=["start", "stop", "status"])
136
+ parser.add_argument("port", nargs="?", default="3000")
137
+
138
+ args = parser.parse_args()
139
+
140
+ if args.action == "start":
141
+ start_server(int(args.port))
142
+ elif args.action == "stop":
143
+ stop_server()
144
+ elif args.action == "status":
145
+ status_server()
146
+
147
+ if __name__ == "__main__":
148
+ main()
@@ -0,0 +1,217 @@
1
+ #!/usr/bin/env python3
2
+ """
3
+ Master Checklist Runner - Antigravity Kit
4
+ ==========================================
5
+
6
+ Orchestrates all validation scripts in priority order.
7
+ Use this for incremental validation during development.
8
+
9
+ Usage:
10
+ python scripts/checklist.py . # Run core checks
11
+ python scripts/checklist.py . --url <URL> # Include performance checks
12
+
13
+ Priority Order:
14
+ P0: Security Scan (vulnerabilities, secrets)
15
+ P1: Lint & Type Check (code quality)
16
+ P2: Schema Validation (if database exists)
17
+ P3: Test Runner (unit/integration tests)
18
+ P4: UX Audit (psychology laws, accessibility)
19
+ P5: SEO Check (meta tags, structure)
20
+ P6: Performance (lighthouse - requires URL)
21
+ """
22
+
23
+ import sys
24
+ import subprocess
25
+ import argparse
26
+ from pathlib import Path
27
+ from typing import List, Tuple, Optional
28
+
29
+ # ANSI colors for terminal output
30
+ class Colors:
31
+ HEADER = '\033[95m'
32
+ BLUE = '\033[94m'
33
+ CYAN = '\033[96m'
34
+ GREEN = '\033[92m'
35
+ YELLOW = '\033[93m'
36
+ RED = '\033[91m'
37
+ ENDC = '\033[0m'
38
+ BOLD = '\033[1m'
39
+
40
+ def print_header(text: str):
41
+ print(f"\n{Colors.BOLD}{Colors.CYAN}{'='*60}{Colors.ENDC}")
42
+ print(f"{Colors.BOLD}{Colors.CYAN}{text.center(60)}{Colors.ENDC}")
43
+ print(f"{Colors.BOLD}{Colors.CYAN}{'='*60}{Colors.ENDC}\n")
44
+
45
+ def print_step(text: str):
46
+ print(f"{Colors.BOLD}{Colors.BLUE}🔄 {text}{Colors.ENDC}")
47
+
48
+ def print_success(text: str):
49
+ print(f"{Colors.GREEN}✅ {text}{Colors.ENDC}")
50
+
51
+ def print_warning(text: str):
52
+ print(f"{Colors.YELLOW}⚠️ {text}{Colors.ENDC}")
53
+
54
+ def print_error(text: str):
55
+ print(f"{Colors.RED}❌ {text}{Colors.ENDC}")
56
+
57
+ # Define priority-ordered checks
58
+ CORE_CHECKS = [
59
+ ("Security Scan", ".agents/skills/vulnerability-scanner/scripts/security_scan.py", True),
60
+ ("Lint Check", ".agents/skills/lint-and-validate/scripts/lint_runner.py", True),
61
+ ("Schema Validation", ".agents/skills/database-design/scripts/schema_validator.py", False),
62
+ ("Test Runner", ".agents/skills/testing-patterns/scripts/test_runner.py", False),
63
+ ("UX Audit", ".agents/skills/frontend-design/scripts/ux_audit.py", False),
64
+ ("SEO Check", ".agents/skills/seo-fundamentals/scripts/seo_checker.py", False),
65
+ ]
66
+
67
+ PERFORMANCE_CHECKS = [
68
+ ("Lighthouse Audit", ".agents/skills/performance-profiling/scripts/lighthouse_audit.py", True),
69
+ ("Playwright E2E", ".agents/skills/webapp-testing/scripts/playwright_runner.py", False),
70
+ ]
71
+
72
+ def check_script_exists(script_path: Path) -> bool:
73
+ """Check if script file exists"""
74
+ return script_path.exists() and script_path.is_file()
75
+
76
+ def run_script(name: str, script_path: Path, project_path: str, url: Optional[str] = None) -> dict:
77
+ """
78
+ Run a validation script and capture results
79
+
80
+ Returns:
81
+ dict with keys: name, passed, output, skipped
82
+ """
83
+ if not check_script_exists(script_path):
84
+ print_warning(f"{name}: Script not found, skipping")
85
+ return {"name": name, "passed": True, "output": "", "skipped": True}
86
+
87
+ print_step(f"Running: {name}")
88
+
89
+ # Build command
90
+ cmd = ["python", str(script_path), project_path]
91
+ if url and ("lighthouse" in script_path.name.lower() or "playwright" in script_path.name.lower()):
92
+ cmd.append(url)
93
+
94
+ # Run script
95
+ try:
96
+ result = subprocess.run(
97
+ cmd,
98
+ capture_output=True,
99
+ text=True,
100
+ timeout=300 # 5 minute timeout
101
+ )
102
+
103
+ passed = result.returncode == 0
104
+
105
+ if passed:
106
+ print_success(f"{name}: PASSED")
107
+ else:
108
+ print_error(f"{name}: FAILED")
109
+ if result.stderr:
110
+ print(f" Error: {result.stderr[:200]}")
111
+
112
+ return {
113
+ "name": name,
114
+ "passed": passed,
115
+ "output": result.stdout,
116
+ "error": result.stderr,
117
+ "skipped": False
118
+ }
119
+
120
+ except subprocess.TimeoutExpired:
121
+ print_error(f"{name}: TIMEOUT (>5 minutes)")
122
+ return {"name": name, "passed": False, "output": "", "error": "Timeout", "skipped": False}
123
+
124
+ except Exception as e:
125
+ print_error(f"{name}: ERROR - {str(e)}")
126
+ return {"name": name, "passed": False, "output": "", "error": str(e), "skipped": False}
127
+
128
+ def print_summary(results: List[dict]):
129
+ """Print final summary report"""
130
+ print_header("📊 CHECKLIST SUMMARY")
131
+
132
+ passed_count = sum(1 for r in results if r["passed"] and not r.get("skipped"))
133
+ failed_count = sum(1 for r in results if not r["passed"] and not r.get("skipped"))
134
+ skipped_count = sum(1 for r in results if r.get("skipped"))
135
+
136
+ print(f"Total Checks: {len(results)}")
137
+ print(f"{Colors.GREEN}✅ Passed: {passed_count}{Colors.ENDC}")
138
+ print(f"{Colors.RED}❌ Failed: {failed_count}{Colors.ENDC}")
139
+ print(f"{Colors.YELLOW}⏭️ Skipped: {skipped_count}{Colors.ENDC}")
140
+ print()
141
+
142
+ # Detailed results
143
+ for r in results:
144
+ if r.get("skipped"):
145
+ status = f"{Colors.YELLOW}⏭️ {Colors.ENDC}"
146
+ elif r["passed"]:
147
+ status = f"{Colors.GREEN}✅{Colors.ENDC}"
148
+ else:
149
+ status = f"{Colors.RED}❌{Colors.ENDC}"
150
+
151
+ print(f"{status} {r['name']}")
152
+
153
+ print()
154
+
155
+ if failed_count > 0:
156
+ print_error(f"{failed_count} check(s) FAILED - Please fix before proceeding")
157
+ return False
158
+ else:
159
+ print_success("All checks PASSED ✨")
160
+ return True
161
+
162
+ def main():
163
+ parser = argparse.ArgumentParser(
164
+ description="Run Antigravity Kit validation checklist",
165
+ formatter_class=argparse.RawDescriptionHelpFormatter,
166
+ epilog="""
167
+ Examples:
168
+ python scripts/checklist.py . # Core checks only
169
+ python scripts/checklist.py . --url http://localhost:3000 # Include performance
170
+ """
171
+ )
172
+ parser.add_argument("project", help="Project path to validate")
173
+ parser.add_argument("--url", help="URL for performance checks (lighthouse, playwright)")
174
+ parser.add_argument("--skip-performance", action="store_true", help="Skip performance checks even if URL provided")
175
+
176
+ args = parser.parse_args()
177
+
178
+ project_path = Path(args.project).resolve()
179
+
180
+ if not project_path.exists():
181
+ print_error(f"Project path does not exist: {project_path}")
182
+ sys.exit(1)
183
+
184
+ print_header("🚀 ANTIGRAVITY KIT - MASTER CHECKLIST")
185
+ print(f"Project: {project_path}")
186
+ print(f"URL: {args.url if args.url else 'Not provided (performance checks skipped)'}")
187
+
188
+ results = []
189
+
190
+ # Run core checks
191
+ print_header("📋 CORE CHECKS")
192
+ for name, script_path, required in CORE_CHECKS:
193
+ script = project_path / script_path
194
+ result = run_script(name, script, str(project_path))
195
+ results.append(result)
196
+
197
+ # If required check fails, stop
198
+ if required and not result["passed"] and not result.get("skipped"):
199
+ print_error(f"CRITICAL: {name} failed. Stopping checklist.")
200
+ print_summary(results)
201
+ sys.exit(1)
202
+
203
+ # Run performance checks if URL provided
204
+ if args.url and not args.skip_performance:
205
+ print_header("⚡ PERFORMANCE CHECKS")
206
+ for name, script_path, required in PERFORMANCE_CHECKS:
207
+ script = project_path / script_path
208
+ result = run_script(name, script, str(project_path), args.url)
209
+ results.append(result)
210
+
211
+ # Print summary
212
+ all_passed = print_summary(results)
213
+
214
+ sys.exit(0 if all_passed else 1)
215
+
216
+ if __name__ == "__main__":
217
+ main()