thachvd-kit 1.0.29 ā 1.0.30
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 +50 -149
- package/bin/cli.js +356 -284
- package/package.json +1 -10
- package/.agent/agents/backend-specialist.md +0 -263
- package/.agent/agents/code-archaeologist.md +0 -106
- package/.agent/agents/database-architect.md +0 -226
- package/.agent/agents/debugger.md +0 -225
- package/.agent/agents/devops-engineer.md +0 -242
- package/.agent/agents/documentation-writer.md +0 -104
- package/.agent/agents/explorer-agent.md +0 -73
- package/.agent/agents/frontend-specialist.md +0 -593
- package/.agent/agents/game-developer.md +0 -162
- package/.agent/agents/mobile-developer.md +0 -377
- package/.agent/agents/orchestrator.md +0 -416
- package/.agent/agents/penetration-tester.md +0 -188
- package/.agent/agents/performance-optimizer.md +0 -187
- package/.agent/agents/product-manager.md +0 -112
- package/.agent/agents/product-owner.md +0 -95
- package/.agent/agents/project-planner.md +0 -406
- package/.agent/agents/qa-automation-engineer.md +0 -103
- package/.agent/agents/security-auditor.md +0 -170
- package/.agent/agents/seo-specialist.md +0 -111
- package/.agent/agents/test-engineer.md +0 -158
- package/.agent/docs/architecture.md +0 -15
- package/.agent/docs/conventions.md +0 -16
- package/.agent/docs/getting-started.md +0 -95
- package/.agent/docs/project.md +0 -59
- package/.agent/docs/tooling.md +0 -136
- package/.agent/docs/workflow.md +0 -79
- package/.agent/rules/GEMINI.md +0 -62
- package/.agent/skills/api-design/SKILL.md +0 -156
- package/.agent/skills/api-patterns/SKILL.md +0 -81
- package/.agent/skills/api-patterns/api-style.md +0 -42
- package/.agent/skills/api-patterns/auth.md +0 -24
- package/.agent/skills/api-patterns/documentation.md +0 -26
- package/.agent/skills/api-patterns/graphql.md +0 -41
- package/.agent/skills/api-patterns/rate-limiting.md +0 -31
- package/.agent/skills/api-patterns/response.md +0 -37
- package/.agent/skills/api-patterns/rest.md +0 -40
- package/.agent/skills/api-patterns/scripts/api_validator.py +0 -211
- package/.agent/skills/api-patterns/security-testing.md +0 -122
- package/.agent/skills/api-patterns/trpc.md +0 -41
- package/.agent/skills/api-patterns/versioning.md +0 -22
- package/.agent/skills/app-builder/SKILL.md +0 -75
- package/.agent/skills/app-builder/agent-coordination.md +0 -71
- package/.agent/skills/app-builder/feature-building.md +0 -53
- package/.agent/skills/app-builder/project-detection.md +0 -34
- package/.agent/skills/app-builder/scaffolding.md +0 -118
- package/.agent/skills/app-builder/tech-stack.md +0 -40
- package/.agent/skills/app-builder/templates/SKILL.md +0 -39
- package/.agent/skills/app-builder/templates/astro-static/TEMPLATE.md +0 -76
- package/.agent/skills/app-builder/templates/chrome-extension/TEMPLATE.md +0 -92
- package/.agent/skills/app-builder/templates/cli-tool/TEMPLATE.md +0 -88
- package/.agent/skills/app-builder/templates/electron-desktop/TEMPLATE.md +0 -88
- package/.agent/skills/app-builder/templates/express-api/TEMPLATE.md +0 -83
- package/.agent/skills/app-builder/templates/flutter-app/TEMPLATE.md +0 -90
- package/.agent/skills/app-builder/templates/monorepo-turborepo/TEMPLATE.md +0 -90
- package/.agent/skills/app-builder/templates/nextjs-fullstack/TEMPLATE.md +0 -122
- package/.agent/skills/app-builder/templates/nextjs-saas/TEMPLATE.md +0 -122
- package/.agent/skills/app-builder/templates/nextjs-static/TEMPLATE.md +0 -169
- package/.agent/skills/app-builder/templates/nuxt-app/TEMPLATE.md +0 -134
- package/.agent/skills/app-builder/templates/python-fastapi/TEMPLATE.md +0 -83
- package/.agent/skills/app-builder/templates/react-native-app/TEMPLATE.md +0 -119
- package/.agent/skills/architecture/SKILL.md +0 -55
- package/.agent/skills/architecture/context-discovery.md +0 -43
- package/.agent/skills/architecture/examples.md +0 -94
- package/.agent/skills/architecture/pattern-selection.md +0 -68
- package/.agent/skills/architecture/patterns-reference.md +0 -50
- package/.agent/skills/architecture/trade-off-analysis.md +0 -77
- package/.agent/skills/bash-linux/SKILL.md +0 -199
- package/.agent/skills/behavioral-modes/SKILL.md +0 -242
- package/.agent/skills/brainstorming/SKILL.md +0 -163
- package/.agent/skills/brainstorming/dynamic-questioning.md +0 -350
- package/.agent/skills/clean-code/SKILL.md +0 -201
- package/.agent/skills/code-review-checklist/SKILL.md +0 -109
- package/.agent/skills/database-design/SKILL.md +0 -52
- package/.agent/skills/database-design/database-selection.md +0 -43
- package/.agent/skills/database-design/indexing.md +0 -39
- package/.agent/skills/database-design/migrations.md +0 -48
- package/.agent/skills/database-design/optimization.md +0 -36
- package/.agent/skills/database-design/orm-selection.md +0 -30
- package/.agent/skills/database-design/schema-design.md +0 -56
- package/.agent/skills/database-design/scripts/schema_validator.py +0 -172
- package/.agent/skills/deployment-procedures/SKILL.md +0 -241
- package/.agent/skills/desktop-design/SKILL.md +0 -25
- package/.agent/skills/dispatching-parallel-agents/SKILL.md +0 -112
- package/.agent/skills/doc.md +0 -177
- package/.agent/skills/docker-patterns/SKILL.md +0 -232
- package/.agent/skills/documentation-templates/SKILL.md +0 -194
- package/.agent/skills/executing-plans/SKILL.md +0 -61
- package/.agent/skills/finishing-a-development-branch/SKILL.md +0 -135
- package/.agent/skills/frontend-design/SKILL.md +0 -418
- package/.agent/skills/frontend-design/animation-guide.md +0 -331
- package/.agent/skills/frontend-design/color-system.md +0 -311
- package/.agent/skills/frontend-design/decision-trees.md +0 -418
- package/.agent/skills/frontend-design/motion-graphics.md +0 -306
- package/.agent/skills/frontend-design/scripts/accessibility_checker.py +0 -183
- package/.agent/skills/frontend-design/scripts/ux_audit.py +0 -722
- package/.agent/skills/frontend-design/typography-system.md +0 -345
- package/.agent/skills/frontend-design/ux-psychology.md +0 -1116
- package/.agent/skills/frontend-design/visual-effects.md +0 -383
- package/.agent/skills/game-development/2d-games/SKILL.md +0 -119
- package/.agent/skills/game-development/3d-games/SKILL.md +0 -135
- package/.agent/skills/game-development/SKILL.md +0 -167
- package/.agent/skills/game-development/game-art/SKILL.md +0 -185
- package/.agent/skills/game-development/game-audio/SKILL.md +0 -190
- package/.agent/skills/game-development/game-design/SKILL.md +0 -129
- package/.agent/skills/game-development/mobile-games/SKILL.md +0 -108
- package/.agent/skills/game-development/multiplayer/SKILL.md +0 -132
- package/.agent/skills/game-development/pc-games/SKILL.md +0 -144
- package/.agent/skills/game-development/vr-ar/SKILL.md +0 -123
- package/.agent/skills/game-development/web-games/SKILL.md +0 -150
- package/.agent/skills/geo-fundamentals/SKILL.md +0 -156
- package/.agent/skills/geo-fundamentals/scripts/geo_checker.py +0 -289
- package/.agent/skills/golang-patterns/SKILL.md +0 -226
- package/.agent/skills/golang-testing/SKILL.md +0 -182
- package/.agent/skills/i18n-localization/SKILL.md +0 -154
- package/.agent/skills/i18n-localization/scripts/i18n_checker.py +0 -241
- package/.agent/skills/intelligent-routing/SKILL.md +0 -335
- package/.agent/skills/laravel-patterns/SKILL.md +0 -224
- package/.agent/skills/laravel-security/SKILL.md +0 -171
- package/.agent/skills/laravel-tdd/SKILL.md +0 -149
- package/.agent/skills/lint-and-validate/SKILL.md +0 -45
- package/.agent/skills/lint-and-validate/scripts/lint_runner.py +0 -184
- package/.agent/skills/lint-and-validate/scripts/type_coverage.py +0 -173
- package/.agent/skills/mcp-builder/SKILL.md +0 -176
- package/.agent/skills/mobile-design/SKILL.md +0 -394
- package/.agent/skills/mobile-design/decision-trees.md +0 -516
- package/.agent/skills/mobile-design/mobile-backend.md +0 -491
- package/.agent/skills/mobile-design/mobile-color-system.md +0 -420
- package/.agent/skills/mobile-design/mobile-debugging.md +0 -122
- package/.agent/skills/mobile-design/mobile-design-thinking.md +0 -357
- package/.agent/skills/mobile-design/mobile-navigation.md +0 -458
- package/.agent/skills/mobile-design/mobile-performance.md +0 -767
- package/.agent/skills/mobile-design/mobile-testing.md +0 -356
- package/.agent/skills/mobile-design/mobile-typography.md +0 -433
- package/.agent/skills/mobile-design/platform-android.md +0 -666
- package/.agent/skills/mobile-design/platform-ios.md +0 -561
- package/.agent/skills/mobile-design/scripts/mobile_audit.py +0 -670
- package/.agent/skills/mobile-design/touch-psychology.md +0 -537
- package/.agent/skills/nextjs-react-expert/1-async-eliminating-waterfalls.md +0 -312
- package/.agent/skills/nextjs-react-expert/2-bundle-bundle-size-optimization.md +0 -240
- package/.agent/skills/nextjs-react-expert/3-server-server-side-performance.md +0 -490
- package/.agent/skills/nextjs-react-expert/4-client-client-side-data-fetching.md +0 -264
- package/.agent/skills/nextjs-react-expert/5-rerender-re-render-optimization.md +0 -581
- package/.agent/skills/nextjs-react-expert/6-rendering-rendering-performance.md +0 -432
- package/.agent/skills/nextjs-react-expert/7-js-javascript-performance.md +0 -684
- package/.agent/skills/nextjs-react-expert/8-advanced-advanced-patterns.md +0 -150
- package/.agent/skills/nextjs-react-expert/SKILL.md +0 -286
- package/.agent/skills/nextjs-react-expert/scripts/convert_rules.py +0 -222
- package/.agent/skills/nextjs-react-expert/scripts/react_performance_checker.py +0 -252
- package/.agent/skills/nodejs-best-practices/SKILL.md +0 -333
- package/.agent/skills/parallel-agents/SKILL.md +0 -175
- package/.agent/skills/performance-profiling/SKILL.md +0 -143
- package/.agent/skills/performance-profiling/scripts/lighthouse_audit.py +0 -76
- package/.agent/skills/plan-writing/SKILL.md +0 -152
- package/.agent/skills/powershell-windows/SKILL.md +0 -167
- package/.agent/skills/project-onboarding/SKILL.md +0 -42
- package/.agent/skills/python-patterns/SKILL.md +0 -441
- package/.agent/skills/react-frontend/SKILL.md +0 -25
- package/.agent/skills/receiving-code-review/SKILL.md +0 -120
- package/.agent/skills/red-team-tactics/SKILL.md +0 -199
- package/.agent/skills/requesting-code-review/SKILL.md +0 -67
- package/.agent/skills/rust-pro/SKILL.md +0 -176
- package/.agent/skills/seo-fundamentals/SKILL.md +0 -129
- package/.agent/skills/seo-fundamentals/scripts/seo_checker.py +0 -219
- package/.agent/skills/server-management/SKILL.md +0 -161
- package/.agent/skills/subagent-driven-development/SKILL.md +0 -76
- package/.agent/skills/systematic-debugging/SKILL.md +0 -109
- package/.agent/skills/tailwind-patterns/SKILL.md +0 -269
- package/.agent/skills/tdd-workflow/SKILL.md +0 -149
- package/.agent/skills/testing-patterns/SKILL.md +0 -178
- package/.agent/skills/testing-patterns/scripts/test_runner.py +0 -219
- package/.agent/skills/using-git-worktrees/SKILL.md +0 -121
- package/.agent/skills/verification-before-completion/SKILL.md +0 -99
- package/.agent/skills/vulnerability-scanner/SKILL.md +0 -276
- package/.agent/skills/vulnerability-scanner/checklists.md +0 -121
- package/.agent/skills/vulnerability-scanner/scripts/security_scan.py +0 -458
- package/.agent/skills/web-design-guidelines/SKILL.md +0 -57
- package/.agent/skills/webapp-testing/SKILL.md +0 -187
- package/.agent/skills/webapp-testing/scripts/playwright_runner.py +0 -173
- package/.agent/skills/writing-skills/SKILL.md +0 -170
- package/.agent/workflows/brainstorm.md +0 -113
- package/.agent/workflows/create.md +0 -59
- package/.agent/workflows/debug.md +0 -103
- package/.agent/workflows/deploy.md +0 -176
- package/.agent/workflows/enhance.md +0 -63
- package/.agent/workflows/forge-debug.md +0 -12
- package/.agent/workflows/forge-fast.md +0 -22
- package/.agent/workflows/forge-release.md +0 -12
- package/.agent/workflows/forge-research.md +0 -24
- package/.agent/workflows/forge-review.md +0 -12
- package/.agent/workflows/forge-task.md +0 -37
- package/.agent/workflows/orchestrate.md +0 -237
- package/.agent/workflows/plan.md +0 -89
- package/.agent/workflows/preview.md +0 -81
- package/.agent/workflows/release.md +0 -42
- package/.agent/workflows/review.md +0 -125
- package/.agent/workflows/simple.md +0 -42
- package/.agent/workflows/spec.md +0 -140
- package/.agent/workflows/status.md +0 -86
- package/.agent/workflows/task.md +0 -59
- package/.agent/workflows/test.md +0 -144
- package/.agent/workflows/ui-ux-pro-max.md +0 -296
- package/agents/backend-specialist.md +0 -263
- package/agents/code-archaeologist.md +0 -106
- package/agents/database-architect.md +0 -226
- package/agents/debugger.md +0 -225
- package/agents/devops-engineer.md +0 -242
- package/agents/documentation-writer.md +0 -104
- package/agents/explorer-agent.md +0 -73
- package/agents/frontend-specialist.md +0 -593
- package/agents/game-developer.md +0 -162
- package/agents/mobile-developer.md +0 -377
- package/agents/orchestrator.md +0 -416
- package/agents/penetration-tester.md +0 -188
- package/agents/performance-optimizer.md +0 -187
- package/agents/product-manager.md +0 -112
- package/agents/product-owner.md +0 -95
- package/agents/project-planner.md +0 -406
- package/agents/qa-automation-engineer.md +0 -103
- package/agents/security-auditor.md +0 -170
- package/agents/seo-specialist.md +0 -111
- package/agents/test-engineer.md +0 -158
- package/commands/forge-debug.md +0 -12
- package/commands/forge-fast.md +0 -22
- package/commands/forge-release.md +0 -12
- package/commands/forge-research.md +0 -24
- package/commands/forge-review.md +0 -12
- package/commands/forge-task.md +0 -37
- package/kit/PROMPT_RECIPE.md +0 -30
- package/kit/README.md +0 -30
- package/prompts/debug.md +0 -11
- package/prompts/release.md +0 -11
- package/prompts/simple.md +0 -11
- package/prompts/spec.md +0 -11
- package/prompts/task.md +0 -12
- package/rules/GEMINI.md +0 -45
- package/scripts/auto_preview.py +0 -148
- package/scripts/checklist.py +0 -217
- package/scripts/session_manager.py +0 -120
- package/scripts/verify_all.py +0 -327
- package/skills/api-design/SKILL.md +0 -156
- package/skills/api-patterns/SKILL.md +0 -81
- package/skills/api-patterns/api-style.md +0 -42
- package/skills/api-patterns/auth.md +0 -24
- package/skills/api-patterns/documentation.md +0 -26
- package/skills/api-patterns/graphql.md +0 -41
- package/skills/api-patterns/rate-limiting.md +0 -31
- package/skills/api-patterns/response.md +0 -37
- package/skills/api-patterns/rest.md +0 -40
- package/skills/api-patterns/scripts/api_validator.py +0 -211
- package/skills/api-patterns/security-testing.md +0 -122
- package/skills/api-patterns/trpc.md +0 -41
- package/skills/api-patterns/versioning.md +0 -22
- package/skills/app-builder/SKILL.md +0 -75
- package/skills/app-builder/agent-coordination.md +0 -71
- package/skills/app-builder/feature-building.md +0 -53
- package/skills/app-builder/project-detection.md +0 -34
- package/skills/app-builder/scaffolding.md +0 -118
- package/skills/app-builder/tech-stack.md +0 -40
- package/skills/app-builder/templates/SKILL.md +0 -39
- package/skills/app-builder/templates/astro-static/TEMPLATE.md +0 -76
- package/skills/app-builder/templates/chrome-extension/TEMPLATE.md +0 -92
- package/skills/app-builder/templates/cli-tool/TEMPLATE.md +0 -88
- package/skills/app-builder/templates/electron-desktop/TEMPLATE.md +0 -88
- package/skills/app-builder/templates/express-api/TEMPLATE.md +0 -83
- package/skills/app-builder/templates/flutter-app/TEMPLATE.md +0 -90
- package/skills/app-builder/templates/monorepo-turborepo/TEMPLATE.md +0 -90
- package/skills/app-builder/templates/nextjs-fullstack/TEMPLATE.md +0 -122
- package/skills/app-builder/templates/nextjs-saas/TEMPLATE.md +0 -122
- package/skills/app-builder/templates/nextjs-static/TEMPLATE.md +0 -169
- package/skills/app-builder/templates/nuxt-app/TEMPLATE.md +0 -134
- package/skills/app-builder/templates/python-fastapi/TEMPLATE.md +0 -83
- package/skills/app-builder/templates/react-native-app/TEMPLATE.md +0 -119
- package/skills/architecture/SKILL.md +0 -55
- package/skills/architecture/context-discovery.md +0 -43
- package/skills/architecture/examples.md +0 -94
- package/skills/architecture/pattern-selection.md +0 -68
- package/skills/architecture/patterns-reference.md +0 -50
- package/skills/architecture/trade-off-analysis.md +0 -77
- package/skills/bash-linux/SKILL.md +0 -199
- package/skills/behavioral-modes/SKILL.md +0 -242
- package/skills/brainstorming/SKILL.md +0 -163
- package/skills/brainstorming/dynamic-questioning.md +0 -350
- package/skills/clean-code/SKILL.md +0 -201
- package/skills/code-review-checklist/SKILL.md +0 -142
- package/skills/database-design/SKILL.md +0 -52
- package/skills/database-design/database-selection.md +0 -43
- package/skills/database-design/indexing.md +0 -39
- package/skills/database-design/migrations.md +0 -48
- package/skills/database-design/optimization.md +0 -36
- package/skills/database-design/orm-selection.md +0 -30
- package/skills/database-design/schema-design.md +0 -56
- package/skills/database-design/scripts/schema_validator.py +0 -172
- package/skills/deployment-procedures/SKILL.md +0 -241
- package/skills/desktop-design/SKILL.md +0 -25
- package/skills/dispatching-parallel-agents/SKILL.md +0 -112
- package/skills/doc.md +0 -177
- package/skills/docker-patterns/SKILL.md +0 -232
- package/skills/documentation-templates/SKILL.md +0 -194
- package/skills/executing-plans/SKILL.md +0 -61
- package/skills/finishing-a-development-branch/SKILL.md +0 -135
- package/skills/frontend-design/SKILL.md +0 -418
- package/skills/frontend-design/animation-guide.md +0 -331
- package/skills/frontend-design/color-system.md +0 -311
- package/skills/frontend-design/decision-trees.md +0 -418
- package/skills/frontend-design/motion-graphics.md +0 -306
- package/skills/frontend-design/scripts/accessibility_checker.py +0 -183
- package/skills/frontend-design/scripts/ux_audit.py +0 -722
- package/skills/frontend-design/typography-system.md +0 -345
- package/skills/frontend-design/ux-psychology.md +0 -1116
- package/skills/frontend-design/visual-effects.md +0 -383
- package/skills/game-development/2d-games/SKILL.md +0 -119
- package/skills/game-development/3d-games/SKILL.md +0 -135
- package/skills/game-development/SKILL.md +0 -167
- package/skills/game-development/game-art/SKILL.md +0 -185
- package/skills/game-development/game-audio/SKILL.md +0 -190
- package/skills/game-development/game-design/SKILL.md +0 -129
- package/skills/game-development/mobile-games/SKILL.md +0 -108
- package/skills/game-development/multiplayer/SKILL.md +0 -132
- package/skills/game-development/pc-games/SKILL.md +0 -144
- package/skills/game-development/vr-ar/SKILL.md +0 -123
- package/skills/game-development/web-games/SKILL.md +0 -150
- package/skills/geo-fundamentals/SKILL.md +0 -156
- package/skills/geo-fundamentals/scripts/geo_checker.py +0 -289
- package/skills/golang-patterns/SKILL.md +0 -226
- package/skills/golang-testing/SKILL.md +0 -182
- package/skills/i18n-localization/SKILL.md +0 -154
- package/skills/i18n-localization/scripts/i18n_checker.py +0 -241
- package/skills/intelligent-routing/SKILL.md +0 -335
- package/skills/laravel-patterns/SKILL.md +0 -224
- package/skills/laravel-security/SKILL.md +0 -171
- package/skills/laravel-tdd/SKILL.md +0 -149
- package/skills/lint-and-validate/SKILL.md +0 -45
- package/skills/lint-and-validate/scripts/lint_runner.py +0 -184
- package/skills/lint-and-validate/scripts/type_coverage.py +0 -173
- package/skills/mcp-builder/SKILL.md +0 -176
- package/skills/mobile-design/SKILL.md +0 -394
- package/skills/mobile-design/decision-trees.md +0 -516
- package/skills/mobile-design/mobile-backend.md +0 -491
- package/skills/mobile-design/mobile-color-system.md +0 -420
- package/skills/mobile-design/mobile-debugging.md +0 -122
- package/skills/mobile-design/mobile-design-thinking.md +0 -357
- package/skills/mobile-design/mobile-navigation.md +0 -458
- package/skills/mobile-design/mobile-performance.md +0 -767
- package/skills/mobile-design/mobile-testing.md +0 -356
- package/skills/mobile-design/mobile-typography.md +0 -433
- package/skills/mobile-design/platform-android.md +0 -666
- package/skills/mobile-design/platform-ios.md +0 -561
- package/skills/mobile-design/scripts/mobile_audit.py +0 -670
- package/skills/mobile-design/touch-psychology.md +0 -537
- package/skills/nextjs-react-expert/1-async-eliminating-waterfalls.md +0 -312
- package/skills/nextjs-react-expert/2-bundle-bundle-size-optimization.md +0 -240
- package/skills/nextjs-react-expert/3-server-server-side-performance.md +0 -490
- package/skills/nextjs-react-expert/4-client-client-side-data-fetching.md +0 -264
- package/skills/nextjs-react-expert/5-rerender-re-render-optimization.md +0 -581
- package/skills/nextjs-react-expert/6-rendering-rendering-performance.md +0 -432
- package/skills/nextjs-react-expert/7-js-javascript-performance.md +0 -684
- package/skills/nextjs-react-expert/8-advanced-advanced-patterns.md +0 -150
- package/skills/nextjs-react-expert/SKILL.md +0 -286
- package/skills/nextjs-react-expert/scripts/convert_rules.py +0 -222
- package/skills/nextjs-react-expert/scripts/react_performance_checker.py +0 -252
- package/skills/nodejs-best-practices/SKILL.md +0 -333
- package/skills/parallel-agents/SKILL.md +0 -175
- package/skills/performance-profiling/SKILL.md +0 -143
- package/skills/performance-profiling/scripts/lighthouse_audit.py +0 -76
- package/skills/plan-writing/SKILL.md +0 -152
- package/skills/powershell-windows/SKILL.md +0 -167
- package/skills/project-onboarding/SKILL.md +0 -42
- package/skills/python-patterns/SKILL.md +0 -441
- package/skills/react-frontend/SKILL.md +0 -25
- package/skills/receiving-code-review/SKILL.md +0 -120
- package/skills/red-team-tactics/SKILL.md +0 -199
- package/skills/requesting-code-review/SKILL.md +0 -67
- package/skills/rust-pro/SKILL.md +0 -176
- package/skills/seo-fundamentals/SKILL.md +0 -129
- package/skills/seo-fundamentals/scripts/seo_checker.py +0 -219
- package/skills/server-management/SKILL.md +0 -161
- package/skills/subagent-driven-development/SKILL.md +0 -76
- package/skills/systematic-debugging/SKILL.md +0 -109
- package/skills/tailwind-patterns/SKILL.md +0 -269
- package/skills/tdd-workflow/SKILL.md +0 -173
- package/skills/testing-patterns/SKILL.md +0 -178
- package/skills/testing-patterns/scripts/test_runner.py +0 -219
- package/skills/using-git-worktrees/SKILL.md +0 -121
- package/skills/verification-before-completion/SKILL.md +0 -113
- package/skills/vulnerability-scanner/SKILL.md +0 -276
- package/skills/vulnerability-scanner/checklists.md +0 -121
- package/skills/vulnerability-scanner/scripts/security_scan.py +0 -458
- package/skills/web-design-guidelines/SKILL.md +0 -57
- package/skills/webapp-testing/SKILL.md +0 -187
- package/skills/webapp-testing/scripts/playwright_runner.py +0 -173
- package/skills/writing-skills/SKILL.md +0 -170
- package/workflows/brainstorm.md +0 -113
- package/workflows/create.md +0 -59
- package/workflows/debug.md +0 -103
- package/workflows/deploy.md +0 -176
- package/workflows/enhance.md +0 -63
- package/workflows/orchestrate.md +0 -237
- package/workflows/plan.md +0 -89
- package/workflows/preview.md +0 -81
- package/workflows/release.md +0 -42
- package/workflows/simple.md +0 -42
- package/workflows/status.md +0 -86
- package/workflows/task.md +0 -59
- package/workflows/test.md +0 -144
- package/workflows/ui-ux-pro-max.md +0 -296
package/scripts/auto_preview.py
DELETED
|
@@ -1,148 +0,0 @@
|
|
|
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(".agent")
|
|
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()
|
package/scripts/checklist.py
DELETED
|
@@ -1,217 +0,0 @@
|
|
|
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", ".agent/skills/vulnerability-scanner/scripts/security_scan.py", True),
|
|
60
|
-
("Lint Check", ".agent/skills/lint-and-validate/scripts/lint_runner.py", True),
|
|
61
|
-
("Schema Validation", ".agent/skills/database-design/scripts/schema_validator.py", False),
|
|
62
|
-
("Test Runner", ".agent/skills/testing-patterns/scripts/test_runner.py", False),
|
|
63
|
-
("UX Audit", ".agent/skills/frontend-design/scripts/ux_audit.py", False),
|
|
64
|
-
("SEO Check", ".agent/skills/seo-fundamentals/scripts/seo_checker.py", False),
|
|
65
|
-
]
|
|
66
|
-
|
|
67
|
-
PERFORMANCE_CHECKS = [
|
|
68
|
-
("Lighthouse Audit", ".agent/skills/performance-profiling/scripts/lighthouse_audit.py", True),
|
|
69
|
-
("Playwright E2E", ".agent/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()
|
|
@@ -1,120 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env python3
|
|
2
|
-
"""
|
|
3
|
-
Session Manager - Antigravity Kit
|
|
4
|
-
=================================
|
|
5
|
-
Analyzes project state, detects tech stack, tracks file statistics, and provides
|
|
6
|
-
a summary of the current session.
|
|
7
|
-
|
|
8
|
-
Usage:
|
|
9
|
-
python .agent/scripts/session_manager.py status [path]
|
|
10
|
-
python .agent/scripts/session_manager.py info [path]
|
|
11
|
-
"""
|
|
12
|
-
|
|
13
|
-
import os
|
|
14
|
-
import json
|
|
15
|
-
import argparse
|
|
16
|
-
from pathlib import Path
|
|
17
|
-
from typing import Dict, Any, List
|
|
18
|
-
|
|
19
|
-
def get_project_root(path: str) -> Path:
|
|
20
|
-
return Path(path).resolve()
|
|
21
|
-
|
|
22
|
-
def analyze_package_json(root: Path) -> Dict[str, Any]:
|
|
23
|
-
pkg_file = root / "package.json"
|
|
24
|
-
if not pkg_file.exists():
|
|
25
|
-
return {"type": "unknown", "dependencies": {}}
|
|
26
|
-
|
|
27
|
-
try:
|
|
28
|
-
with open(pkg_file, 'r', encoding='utf-8') as f:
|
|
29
|
-
data = json.load(f)
|
|
30
|
-
|
|
31
|
-
deps = data.get("dependencies", {})
|
|
32
|
-
dev_deps = data.get("devDependencies", {})
|
|
33
|
-
all_deps = {**deps, **dev_deps}
|
|
34
|
-
|
|
35
|
-
stack = []
|
|
36
|
-
if "next" in all_deps: stack.append("Next.js")
|
|
37
|
-
elif "react" in all_deps: stack.append("React")
|
|
38
|
-
elif "vue" in all_deps: stack.append("Vue")
|
|
39
|
-
elif "svelte" in all_deps: stack.append("Svelte")
|
|
40
|
-
elif "express" in all_deps: stack.append("Express")
|
|
41
|
-
elif "nestjs" in all_deps or "@nestjs/core" in all_deps: stack.append("NestJS")
|
|
42
|
-
|
|
43
|
-
if "tailwindcss" in all_deps: stack.append("Tailwind CSS")
|
|
44
|
-
if "prisma" in all_deps: stack.append("Prisma")
|
|
45
|
-
if "typescript" in all_deps: stack.append("TypeScript")
|
|
46
|
-
|
|
47
|
-
return {
|
|
48
|
-
"name": data.get("name", "unnamed"),
|
|
49
|
-
"version": data.get("version", "0.0.0"),
|
|
50
|
-
"stack": stack,
|
|
51
|
-
"scripts": list(data.get("scripts", {}).keys())
|
|
52
|
-
}
|
|
53
|
-
except Exception as e:
|
|
54
|
-
return {"error": str(e)}
|
|
55
|
-
|
|
56
|
-
def count_files(root: Path) -> Dict[str, int]:
|
|
57
|
-
stats = {"created": 0, "modified": 0, "total": 0}
|
|
58
|
-
# Simple count for now, comprehensive tracking would require git diff or extensive history
|
|
59
|
-
exclude = {".git", "node_modules", ".next", "dist", "build", ".agent", ".gemini", "__pycache__"}
|
|
60
|
-
|
|
61
|
-
for root_dir, dirs, files in os.walk(root):
|
|
62
|
-
dirs[:] = [d for d in dirs if d not in exclude]
|
|
63
|
-
stats["total"] += len(files)
|
|
64
|
-
|
|
65
|
-
return stats
|
|
66
|
-
|
|
67
|
-
def detect_features(root: Path) -> List[str]:
|
|
68
|
-
# Heuristic: look at folder names in src/
|
|
69
|
-
features = []
|
|
70
|
-
src = root / "src"
|
|
71
|
-
if src.exists():
|
|
72
|
-
possible_dirs = ["components", "modules", "features", "app", "pages", "services"]
|
|
73
|
-
for d in possible_dirs:
|
|
74
|
-
p = src / d
|
|
75
|
-
if p.exists() and p.is_dir():
|
|
76
|
-
# List subdirectories as likely features
|
|
77
|
-
for child in p.iterdir():
|
|
78
|
-
if child.is_dir():
|
|
79
|
-
features.append(child.name)
|
|
80
|
-
return features[:10] # Limit to top 10
|
|
81
|
-
|
|
82
|
-
def print_status(root: Path):
|
|
83
|
-
info = analyze_package_json(root)
|
|
84
|
-
stats = count_files(root)
|
|
85
|
-
features = detect_features(root)
|
|
86
|
-
|
|
87
|
-
print("\n=== Project Status ===")
|
|
88
|
-
print(f"\nš Project: {info.get('name', root.name)}")
|
|
89
|
-
print(f"š Path: {root}")
|
|
90
|
-
print(f"š·ļø Type: {', '.join(info.get('stack', ['Generic']))}")
|
|
91
|
-
print(f"š Status: Active")
|
|
92
|
-
|
|
93
|
-
print("\nš§ Tech Stack:")
|
|
94
|
-
for tech in info.get('stack', []):
|
|
95
|
-
print(f" ⢠{tech}")
|
|
96
|
-
|
|
97
|
-
print(f"\nā
Detected Modules/Features ({len(features)}):")
|
|
98
|
-
for feat in features:
|
|
99
|
-
print(f" ⢠{feat}")
|
|
100
|
-
if not features:
|
|
101
|
-
print(" (No distinct feature modules detected)")
|
|
102
|
-
|
|
103
|
-
print(f"\nš Files: {stats['total']} total files tracked")
|
|
104
|
-
print("\n====================\n")
|
|
105
|
-
|
|
106
|
-
def main():
|
|
107
|
-
parser = argparse.ArgumentParser(description="Session Manager")
|
|
108
|
-
parser.add_argument("command", choices=["status", "info"], help="Command to run")
|
|
109
|
-
parser.add_argument("path", nargs="?", default=".", help="Project path")
|
|
110
|
-
|
|
111
|
-
args = parser.parse_args()
|
|
112
|
-
root = get_project_root(args.path)
|
|
113
|
-
|
|
114
|
-
if args.command == "status":
|
|
115
|
-
print_status(root)
|
|
116
|
-
elif args.command == "info":
|
|
117
|
-
print(json.dumps(analyze_package_json(root), indent=2))
|
|
118
|
-
|
|
119
|
-
if __name__ == "__main__":
|
|
120
|
-
main()
|