bps-kit 1.0.1 → 1.0.2
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/package.json +1 -1
- package/templates/.agents/agents/backend-specialist.md +263 -0
- package/templates/.agents/agents/code-archaeologist.md +106 -0
- package/templates/.agents/agents/database-architect.md +226 -0
- package/templates/.agents/agents/debugger.md +225 -0
- package/templates/.agents/agents/devops-engineer.md +242 -0
- package/templates/.agents/agents/documentation-writer.md +104 -0
- package/templates/.agents/agents/explorer-agent.md +73 -0
- package/templates/.agents/agents/frontend-specialist.md +593 -0
- package/templates/.agents/agents/game-developer.md +162 -0
- package/templates/.agents/agents/mobile-developer.md +377 -0
- package/templates/.agents/agents/orchestrator.md +416 -0
- package/templates/.agents/agents/penetration-tester.md +188 -0
- package/templates/.agents/agents/performance-optimizer.md +187 -0
- package/templates/.agents/agents/product-manager.md +112 -0
- package/templates/.agents/agents/product-owner.md +95 -0
- package/templates/.agents/agents/project-planner.md +406 -0
- package/templates/.agents/agents/qa-automation-engineer.md +103 -0
- package/templates/.agents/agents/security-auditor.md +170 -0
- package/templates/.agents/agents/seo-specialist.md +111 -0
- package/templates/.agents/agents/test-engineer.md +158 -0
- package/templates/.agents/rules/GEMINI.md +219 -0
- package/templates/.agents/scripts/auto_preview.py +148 -0
- package/templates/.agents/scripts/checklist.py +217 -0
- package/templates/.agents/scripts/session_manager.py +120 -0
- package/templates/.agents/scripts/verify_all.py +327 -0
- package/templates/.agents/workflows/brainstorm.md +113 -0
- package/templates/.agents/workflows/create.md +59 -0
- package/templates/.agents/workflows/debug.md +103 -0
- package/templates/.agents/workflows/deploy.md +176 -0
- package/templates/.agents/workflows/enhance.md +63 -0
- package/templates/.agents/workflows/orchestrate.md +237 -0
- package/templates/.agents/workflows/plan.md +89 -0
- package/templates/.agents/workflows/preview.md +81 -0
- package/templates/.agents/workflows/setup-brain.md +39 -0
- package/templates/.agents/workflows/status.md +86 -0
- package/templates/.agents/workflows/test.md +144 -0
- package/templates/.agents/workflows/ui-ux-pro-max.md +296 -0
- package/templates/skills_normal/api-patterns/scripts/api_validator.py +211 -0
- package/templates/skills_normal/database-design/scripts/schema_validator.py +172 -0
- package/templates/skills_normal/frontend-design/scripts/accessibility_checker.py +183 -0
- package/templates/skills_normal/frontend-design/scripts/ux_audit.py +722 -0
- package/templates/skills_normal/git-pushing/scripts/smart_commit.sh +19 -0
- package/templates/skills_normal/lint-and-validate/scripts/lint_runner.py +184 -0
- package/templates/skills_normal/lint-and-validate/scripts/type_coverage.py +173 -0
- package/templates/skills_normal/performance-profiling/scripts/lighthouse_audit.py +76 -0
- package/templates/skills_normal/senior-fullstack/scripts/code_quality_analyzer.py +114 -0
- package/templates/skills_normal/senior-fullstack/scripts/fullstack_scaffolder.py +114 -0
- package/templates/skills_normal/senior-fullstack/scripts/project_scaffolder.py +114 -0
- package/templates/skills_normal/seo-fundamentals/scripts/seo_checker.py +219 -0
- package/templates/skills_normal/testing-patterns/scripts/test_runner.py +219 -0
- package/templates/skills_normal/vulnerability-scanner/scripts/security_scan.py +458 -0
- package/templates/vault/007/scripts/config.py +472 -0
- package/templates/vault/007/scripts/full_audit.py +1306 -0
- package/templates/vault/007/scripts/quick_scan.py +481 -0
- package/templates/vault/007/scripts/requirements.txt +26 -0
- package/templates/vault/007/scripts/scanners/__init__.py +0 -0
- package/templates/vault/007/scripts/scanners/dependency_scanner.py +1305 -0
- package/templates/vault/007/scripts/scanners/injection_scanner.py +1104 -0
- package/templates/vault/007/scripts/scanners/secrets_scanner.py +1008 -0
- package/templates/vault/007/scripts/score_calculator.py +693 -0
- package/templates/vault/agent-orchestrator/scripts/match_skills.py +329 -0
- package/templates/vault/agent-orchestrator/scripts/orchestrate.py +304 -0
- package/templates/vault/agent-orchestrator/scripts/requirements.txt +1 -0
- package/templates/vault/agent-orchestrator/scripts/scan_registry.py +508 -0
- package/templates/vault/ai-studio-image/scripts/config.py +613 -0
- package/templates/vault/ai-studio-image/scripts/generate.py +630 -0
- package/templates/vault/ai-studio-image/scripts/prompt_engine.py +424 -0
- package/templates/vault/ai-studio-image/scripts/requirements.txt +4 -0
- package/templates/vault/ai-studio-image/scripts/templates.py +349 -0
- package/templates/vault/android_ui_verification/scripts/verify_ui.sh +32 -0
- package/templates/vault/apify-audience-analysis/reference/scripts/run_actor.js +363 -0
- package/templates/vault/apify-brand-reputation-monitoring/reference/scripts/run_actor.js +363 -0
- package/templates/vault/apify-competitor-intelligence/reference/scripts/run_actor.js +363 -0
- package/templates/vault/apify-content-analytics/reference/scripts/run_actor.js +363 -0
- package/templates/vault/apify-ecommerce/reference/scripts/package.json +3 -0
- package/templates/vault/apify-ecommerce/reference/scripts/run_actor.js +369 -0
- package/templates/vault/apify-influencer-discovery/reference/scripts/run_actor.js +363 -0
- package/templates/vault/apify-lead-generation/reference/scripts/run_actor.js +363 -0
- package/templates/vault/apify-market-research/reference/scripts/run_actor.js +363 -0
- package/templates/vault/apify-trend-analysis/reference/scripts/run_actor.js +363 -0
- package/templates/vault/apify-ultimate-scraper/reference/scripts/run_actor.js +363 -0
- package/templates/vault/audio-transcriber/scripts/install-requirements.sh +190 -0
- package/templates/vault/audio-transcriber/scripts/transcribe.py +486 -0
- package/templates/vault/claude-monitor/scripts/api_bench.py +240 -0
- package/templates/vault/claude-monitor/scripts/config.py +69 -0
- package/templates/vault/claude-monitor/scripts/health_check.py +362 -0
- package/templates/vault/claude-monitor/scripts/monitor.py +296 -0
- package/templates/vault/content-creator/scripts/brand_voice_analyzer.py +185 -0
- package/templates/vault/content-creator/scripts/seo_optimizer.py +419 -0
- package/templates/vault/context-agent/scripts/active_context.py +227 -0
- package/templates/vault/context-agent/scripts/compressor.py +149 -0
- package/templates/vault/context-agent/scripts/config.py +69 -0
- package/templates/vault/context-agent/scripts/context_loader.py +155 -0
- package/templates/vault/context-agent/scripts/context_manager.py +302 -0
- package/templates/vault/context-agent/scripts/models.py +103 -0
- package/templates/vault/context-agent/scripts/project_registry.py +132 -0
- package/templates/vault/context-agent/scripts/requirements.txt +6 -0
- package/templates/vault/context-agent/scripts/search.py +115 -0
- package/templates/vault/context-agent/scripts/session_parser.py +206 -0
- package/templates/vault/context-agent/scripts/session_summary.py +319 -0
- package/templates/vault/context-guardian/scripts/context_snapshot.py +229 -0
- package/templates/vault/docx/ooxml/scripts/pack.py +159 -0
- package/templates/vault/docx/ooxml/scripts/unpack.py +29 -0
- package/templates/vault/docx/ooxml/scripts/validate.py +69 -0
- package/templates/vault/docx/ooxml/scripts/validation/__init__.py +15 -0
- package/templates/vault/docx/ooxml/scripts/validation/base.py +951 -0
- package/templates/vault/docx/ooxml/scripts/validation/docx.py +274 -0
- package/templates/vault/docx/ooxml/scripts/validation/pptx.py +315 -0
- package/templates/vault/docx/ooxml/scripts/validation/redlining.py +279 -0
- package/templates/vault/docx/scripts/__init__.py +1 -0
- package/templates/vault/docx/scripts/document.py +1276 -0
- package/templates/vault/docx/scripts/templates/comments.xml +3 -0
- package/templates/vault/docx/scripts/templates/commentsExtended.xml +3 -0
- package/templates/vault/docx/scripts/templates/commentsExtensible.xml +3 -0
- package/templates/vault/docx/scripts/templates/commentsIds.xml +3 -0
- package/templates/vault/docx/scripts/templates/people.xml +3 -0
- package/templates/vault/docx/scripts/utilities.py +374 -0
- package/templates/vault/docx-official/ooxml/scripts/pack.py +159 -0
- package/templates/vault/docx-official/ooxml/scripts/unpack.py +29 -0
- package/templates/vault/docx-official/ooxml/scripts/validate.py +69 -0
- package/templates/vault/docx-official/ooxml/scripts/validation/__init__.py +15 -0
- package/templates/vault/docx-official/ooxml/scripts/validation/base.py +951 -0
- package/templates/vault/docx-official/ooxml/scripts/validation/docx.py +274 -0
- package/templates/vault/docx-official/ooxml/scripts/validation/pptx.py +315 -0
- package/templates/vault/docx-official/ooxml/scripts/validation/redlining.py +279 -0
- package/templates/vault/docx-official/scripts/__init__.py +1 -0
- package/templates/vault/docx-official/scripts/document.py +1276 -0
- package/templates/vault/docx-official/scripts/templates/comments.xml +3 -0
- package/templates/vault/docx-official/scripts/templates/commentsExtended.xml +3 -0
- package/templates/vault/docx-official/scripts/templates/commentsExtensible.xml +3 -0
- package/templates/vault/docx-official/scripts/templates/commentsIds.xml +3 -0
- package/templates/vault/docx-official/scripts/templates/people.xml +3 -0
- package/templates/vault/docx-official/scripts/utilities.py +374 -0
- package/templates/vault/geo-fundamentals/scripts/geo_checker.py +289 -0
- package/templates/vault/helm-chart-scaffolding/scripts/validate-chart.sh +244 -0
- package/templates/vault/i18n-localization/scripts/i18n_checker.py +241 -0
- package/templates/vault/instagram/scripts/account_setup.py +233 -0
- package/templates/vault/instagram/scripts/analyze.py +221 -0
- package/templates/vault/instagram/scripts/api_client.py +444 -0
- package/templates/vault/instagram/scripts/auth.py +411 -0
- package/templates/vault/instagram/scripts/comments.py +160 -0
- package/templates/vault/instagram/scripts/config.py +111 -0
- package/templates/vault/instagram/scripts/db.py +467 -0
- package/templates/vault/instagram/scripts/export.py +138 -0
- package/templates/vault/instagram/scripts/governance.py +233 -0
- package/templates/vault/instagram/scripts/hashtags.py +114 -0
- package/templates/vault/instagram/scripts/insights.py +170 -0
- package/templates/vault/instagram/scripts/media.py +65 -0
- package/templates/vault/instagram/scripts/messages.py +103 -0
- package/templates/vault/instagram/scripts/profile.py +58 -0
- package/templates/vault/instagram/scripts/publish.py +449 -0
- package/templates/vault/instagram/scripts/requirements.txt +5 -0
- package/templates/vault/instagram/scripts/run_all.py +189 -0
- package/templates/vault/instagram/scripts/schedule.py +189 -0
- package/templates/vault/instagram/scripts/serve_api.py +234 -0
- package/templates/vault/instagram/scripts/templates.py +155 -0
- package/templates/vault/junta-leiloeiros/scripts/db.py +216 -0
- package/templates/vault/junta-leiloeiros/scripts/export.py +137 -0
- package/templates/vault/junta-leiloeiros/scripts/requirements.txt +15 -0
- package/templates/vault/junta-leiloeiros/scripts/run_all.py +190 -0
- package/templates/vault/junta-leiloeiros/scripts/scraper/__init__.py +4 -0
- package/templates/vault/junta-leiloeiros/scripts/scraper/base_scraper.py +209 -0
- package/templates/vault/junta-leiloeiros/scripts/scraper/generic_scraper.py +110 -0
- package/templates/vault/junta-leiloeiros/scripts/scraper/jucap.py +110 -0
- package/templates/vault/junta-leiloeiros/scripts/scraper/juceac.py +72 -0
- package/templates/vault/junta-leiloeiros/scripts/scraper/juceal.py +72 -0
- package/templates/vault/junta-leiloeiros/scripts/scraper/juceb.py +68 -0
- package/templates/vault/junta-leiloeiros/scripts/scraper/jucec.py +63 -0
- package/templates/vault/junta-leiloeiros/scripts/scraper/jucema.py +211 -0
- package/templates/vault/junta-leiloeiros/scripts/scraper/jucemg.py +218 -0
- package/templates/vault/junta-leiloeiros/scripts/scraper/jucep.py +70 -0
- package/templates/vault/junta-leiloeiros/scripts/scraper/jucepa.py +74 -0
- package/templates/vault/junta-leiloeiros/scripts/scraper/jucepar.py +80 -0
- package/templates/vault/junta-leiloeiros/scripts/scraper/jucepe.py +78 -0
- package/templates/vault/junta-leiloeiros/scripts/scraper/jucepi.py +69 -0
- package/templates/vault/junta-leiloeiros/scripts/scraper/jucer.py +256 -0
- package/templates/vault/junta-leiloeiros/scripts/scraper/jucerja.py +170 -0
- package/templates/vault/junta-leiloeiros/scripts/scraper/jucern.py +71 -0
- package/templates/vault/junta-leiloeiros/scripts/scraper/jucesc.py +89 -0
- package/templates/vault/junta-leiloeiros/scripts/scraper/jucesp.py +233 -0
- package/templates/vault/junta-leiloeiros/scripts/scraper/jucetins.py +134 -0
- package/templates/vault/junta-leiloeiros/scripts/scraper/jucis_df.py +63 -0
- package/templates/vault/junta-leiloeiros/scripts/scraper/jucisrs.py +299 -0
- package/templates/vault/junta-leiloeiros/scripts/scraper/states.py +99 -0
- package/templates/vault/junta-leiloeiros/scripts/serve_api.py +164 -0
- package/templates/vault/junta-leiloeiros/scripts/web_scraper_fallback.py +233 -0
- package/templates/vault/last30days/scripts/last30days.py +521 -0
- package/templates/vault/last30days/scripts/lib/__init__.py +1 -0
- package/templates/vault/last30days/scripts/lib/cache.py +152 -0
- package/templates/vault/last30days/scripts/lib/dates.py +124 -0
- package/templates/vault/last30days/scripts/lib/dedupe.py +120 -0
- package/templates/vault/last30days/scripts/lib/env.py +149 -0
- package/templates/vault/last30days/scripts/lib/http.py +152 -0
- package/templates/vault/last30days/scripts/lib/models.py +175 -0
- package/templates/vault/last30days/scripts/lib/normalize.py +160 -0
- package/templates/vault/last30days/scripts/lib/openai_reddit.py +230 -0
- package/templates/vault/last30days/scripts/lib/reddit_enrich.py +232 -0
- package/templates/vault/last30days/scripts/lib/render.py +383 -0
- package/templates/vault/last30days/scripts/lib/schema.py +336 -0
- package/templates/vault/last30days/scripts/lib/score.py +311 -0
- package/templates/vault/last30days/scripts/lib/ui.py +324 -0
- package/templates/vault/last30days/scripts/lib/websearch.py +401 -0
- package/templates/vault/last30days/scripts/lib/xai_x.py +217 -0
- package/templates/vault/leiloeiro-avaliacao/scripts/governance.py +106 -0
- package/templates/vault/leiloeiro-avaliacao/scripts/requirements.txt +1 -0
- package/templates/vault/leiloeiro-edital/scripts/governance.py +106 -0
- package/templates/vault/leiloeiro-edital/scripts/requirements.txt +1 -0
- package/templates/vault/leiloeiro-ia/scripts/governance.py +106 -0
- package/templates/vault/leiloeiro-ia/scripts/requirements.txt +1 -0
- package/templates/vault/leiloeiro-juridico/scripts/governance.py +106 -0
- package/templates/vault/leiloeiro-juridico/scripts/requirements.txt +1 -0
- package/templates/vault/leiloeiro-mercado/scripts/governance.py +106 -0
- package/templates/vault/leiloeiro-mercado/scripts/requirements.txt +1 -0
- package/templates/vault/leiloeiro-risco/scripts/governance.py +106 -0
- package/templates/vault/leiloeiro-risco/scripts/requirements.txt +1 -0
- package/templates/vault/loki-mode/examples/todo-app-generated/backend/src/db/database.ts +24 -0
- package/templates/vault/loki-mode/examples/todo-app-generated/backend/src/db/db.ts +35 -0
- package/templates/vault/loki-mode/examples/todo-app-generated/backend/src/db/index.ts +2 -0
- package/templates/vault/loki-mode/examples/todo-app-generated/backend/src/db/migrations.ts +31 -0
- package/templates/vault/loki-mode/examples/todo-app-generated/backend/src/db/schema.sql +8 -0
- package/templates/vault/loki-mode/examples/todo-app-generated/backend/src/index.ts +44 -0
- package/templates/vault/loki-mode/examples/todo-app-generated/backend/src/routes/todos.ts +155 -0
- package/templates/vault/loki-mode/examples/todo-app-generated/backend/src/types/index.ts +35 -0
- package/templates/vault/loki-mode/examples/todo-app-generated/frontend/src/App.css +384 -0
- package/templates/vault/loki-mode/examples/todo-app-generated/frontend/src/App.tsx +81 -0
- package/templates/vault/loki-mode/examples/todo-app-generated/frontend/src/api/todos.ts +57 -0
- package/templates/vault/loki-mode/examples/todo-app-generated/frontend/src/components/ConfirmDialog.tsx +26 -0
- package/templates/vault/loki-mode/examples/todo-app-generated/frontend/src/components/EmptyState.tsx +8 -0
- package/templates/vault/loki-mode/examples/todo-app-generated/frontend/src/components/TodoForm.tsx +43 -0
- package/templates/vault/loki-mode/examples/todo-app-generated/frontend/src/components/TodoItem.tsx +36 -0
- package/templates/vault/loki-mode/examples/todo-app-generated/frontend/src/components/TodoList.tsx +27 -0
- package/templates/vault/loki-mode/examples/todo-app-generated/frontend/src/hooks/useTodos.ts +81 -0
- package/templates/vault/loki-mode/examples/todo-app-generated/frontend/src/index.css +48 -0
- package/templates/vault/loki-mode/examples/todo-app-generated/frontend/src/main.tsx +10 -0
- package/templates/vault/loki-mode/examples/todo-app-generated/frontend/src/vite-env.d.ts +1 -0
- package/templates/vault/loki-mode/scripts/export-to-vibe-kanban.sh +178 -0
- package/templates/vault/loki-mode/scripts/loki-wrapper.sh +281 -0
- package/templates/vault/loki-mode/scripts/take-screenshots.js +55 -0
- package/templates/vault/matematico-tao/scripts/complexity_analyzer.py +544 -0
- package/templates/vault/matematico-tao/scripts/dependency_graph.py +538 -0
- package/templates/vault/mcp-builder/scripts/connections.py +151 -0
- package/templates/vault/mcp-builder/scripts/evaluation.py +373 -0
- package/templates/vault/mcp-builder/scripts/example_evaluation.xml +22 -0
- package/templates/vault/mcp-builder/scripts/requirements.txt +2 -0
- package/templates/vault/mobile-design/scripts/mobile_audit.py +670 -0
- package/templates/vault/notebooklm/scripts/__init__.py +81 -0
- package/templates/vault/notebooklm/scripts/ask_question.py +256 -0
- package/templates/vault/notebooklm/scripts/auth_manager.py +358 -0
- package/templates/vault/notebooklm/scripts/browser_session.py +255 -0
- package/templates/vault/notebooklm/scripts/browser_utils.py +107 -0
- package/templates/vault/notebooklm/scripts/cleanup_manager.py +302 -0
- package/templates/vault/notebooklm/scripts/config.py +44 -0
- package/templates/vault/notebooklm/scripts/notebook_manager.py +410 -0
- package/templates/vault/notebooklm/scripts/run.py +102 -0
- package/templates/vault/notebooklm/scripts/setup_environment.py +204 -0
- package/templates/vault/pdf/scripts/check_bounding_boxes.py +70 -0
- package/templates/vault/pdf/scripts/check_bounding_boxes_test.py +226 -0
- package/templates/vault/pdf/scripts/check_fillable_fields.py +12 -0
- package/templates/vault/pdf/scripts/convert_pdf_to_images.py +35 -0
- package/templates/vault/pdf/scripts/create_validation_image.py +41 -0
- package/templates/vault/pdf/scripts/extract_form_field_info.py +152 -0
- package/templates/vault/pdf/scripts/fill_fillable_fields.py +114 -0
- package/templates/vault/pdf/scripts/fill_pdf_form_with_annotations.py +108 -0
- package/templates/vault/pdf-official/scripts/check_bounding_boxes.py +70 -0
- package/templates/vault/pdf-official/scripts/check_bounding_boxes_test.py +226 -0
- package/templates/vault/pdf-official/scripts/check_fillable_fields.py +12 -0
- package/templates/vault/pdf-official/scripts/convert_pdf_to_images.py +35 -0
- package/templates/vault/pdf-official/scripts/create_validation_image.py +41 -0
- package/templates/vault/pdf-official/scripts/extract_form_field_info.py +152 -0
- package/templates/vault/pdf-official/scripts/fill_fillable_fields.py +114 -0
- package/templates/vault/pdf-official/scripts/fill_pdf_form_with_annotations.py +108 -0
- package/templates/vault/planning-with-files/scripts/check-complete.sh +44 -0
- package/templates/vault/planning-with-files/scripts/init-session.sh +120 -0
- package/templates/vault/pptx/ooxml/scripts/pack.py +159 -0
- package/templates/vault/pptx/ooxml/scripts/unpack.py +29 -0
- package/templates/vault/pptx/ooxml/scripts/validate.py +69 -0
- package/templates/vault/pptx/ooxml/scripts/validation/__init__.py +15 -0
- package/templates/vault/pptx/ooxml/scripts/validation/base.py +951 -0
- package/templates/vault/pptx/ooxml/scripts/validation/docx.py +274 -0
- package/templates/vault/pptx/ooxml/scripts/validation/pptx.py +315 -0
- package/templates/vault/pptx/ooxml/scripts/validation/redlining.py +279 -0
- package/templates/vault/pptx/scripts/html2pptx.js +979 -0
- package/templates/vault/pptx/scripts/inventory.py +1020 -0
- package/templates/vault/pptx/scripts/rearrange.py +231 -0
- package/templates/vault/pptx/scripts/replace.py +385 -0
- package/templates/vault/pptx/scripts/thumbnail.py +450 -0
- package/templates/vault/pptx-official/ooxml/scripts/pack.py +159 -0
- package/templates/vault/pptx-official/ooxml/scripts/unpack.py +29 -0
- package/templates/vault/pptx-official/ooxml/scripts/validate.py +69 -0
- package/templates/vault/pptx-official/ooxml/scripts/validation/__init__.py +15 -0
- package/templates/vault/pptx-official/ooxml/scripts/validation/base.py +951 -0
- package/templates/vault/pptx-official/ooxml/scripts/validation/docx.py +274 -0
- package/templates/vault/pptx-official/ooxml/scripts/validation/pptx.py +315 -0
- package/templates/vault/pptx-official/ooxml/scripts/validation/redlining.py +279 -0
- package/templates/vault/pptx-official/scripts/html2pptx.js +979 -0
- package/templates/vault/pptx-official/scripts/inventory.py +1020 -0
- package/templates/vault/pptx-official/scripts/rearrange.py +231 -0
- package/templates/vault/pptx-official/scripts/replace.py +385 -0
- package/templates/vault/pptx-official/scripts/thumbnail.py +450 -0
- package/templates/vault/product-manager-toolkit/scripts/customer_interview_analyzer.py +441 -0
- package/templates/vault/product-manager-toolkit/scripts/rice_prioritizer.py +296 -0
- package/templates/vault/prompt-engineering-patterns/scripts/optimize-prompt.py +279 -0
- package/templates/vault/scripts/.skill_cache.json +7538 -0
- package/templates/vault/scripts/skill_search.py +228 -0
- package/templates/vault/senior-architect/scripts/architecture_diagram_generator.py +114 -0
- package/templates/vault/senior-architect/scripts/dependency_analyzer.py +114 -0
- package/templates/vault/senior-architect/scripts/project_architect.py +114 -0
- package/templates/vault/shopify-development/scripts/requirements.txt +19 -0
- package/templates/vault/shopify-development/scripts/shopify_graphql.py +428 -0
- package/templates/vault/shopify-development/scripts/shopify_init.py +441 -0
- package/templates/vault/shopify-development/scripts/tests/test_shopify_init.py +379 -0
- package/templates/vault/skill-creator/scripts/init_skill.py +303 -0
- package/templates/vault/skill-creator/scripts/package_skill.py +110 -0
- package/templates/vault/skill-creator/scripts/quick_validate.py +95 -0
- package/templates/vault/skill-installer/scripts/detect_skills.py +318 -0
- package/templates/vault/skill-installer/scripts/install_skill.py +1708 -0
- package/templates/vault/skill-installer/scripts/package_skill.py +417 -0
- package/templates/vault/skill-installer/scripts/requirements.txt +1 -0
- package/templates/vault/skill-installer/scripts/validate_skill.py +430 -0
- package/templates/vault/skill-sentinel/scripts/analyzers/__init__.py +13 -0
- package/templates/vault/skill-sentinel/scripts/analyzers/code_quality.py +247 -0
- package/templates/vault/skill-sentinel/scripts/analyzers/cross_skill.py +134 -0
- package/templates/vault/skill-sentinel/scripts/analyzers/dependencies.py +121 -0
- package/templates/vault/skill-sentinel/scripts/analyzers/documentation.py +189 -0
- package/templates/vault/skill-sentinel/scripts/analyzers/governance_audit.py +153 -0
- package/templates/vault/skill-sentinel/scripts/analyzers/performance.py +164 -0
- package/templates/vault/skill-sentinel/scripts/analyzers/security.py +189 -0
- package/templates/vault/skill-sentinel/scripts/config.py +158 -0
- package/templates/vault/skill-sentinel/scripts/cost_optimizer.py +146 -0
- package/templates/vault/skill-sentinel/scripts/db.py +354 -0
- package/templates/vault/skill-sentinel/scripts/governance.py +58 -0
- package/templates/vault/skill-sentinel/scripts/recommender.py +228 -0
- package/templates/vault/skill-sentinel/scripts/report_generator.py +224 -0
- package/templates/vault/skill-sentinel/scripts/requirements.txt +1 -0
- package/templates/vault/skill-sentinel/scripts/run_audit.py +290 -0
- package/templates/vault/skill-sentinel/scripts/scanner.py +271 -0
- package/templates/vault/stability-ai/scripts/config.py +266 -0
- package/templates/vault/stability-ai/scripts/generate.py +687 -0
- package/templates/vault/stability-ai/scripts/requirements.txt +4 -0
- package/templates/vault/stability-ai/scripts/styles.py +174 -0
- package/templates/vault/telegram/assets/boilerplate/nodejs/src/bot-client.ts +86 -0
- package/templates/vault/telegram/assets/boilerplate/nodejs/src/handlers.ts +79 -0
- package/templates/vault/telegram/assets/boilerplate/nodejs/src/index.ts +32 -0
- package/templates/vault/telegram/scripts/send_message.py +143 -0
- package/templates/vault/telegram/scripts/setup_project.py +103 -0
- package/templates/vault/telegram/scripts/test_bot.py +144 -0
- package/templates/vault/typescript-expert/scripts/ts_diagnostic.py +203 -0
- package/templates/vault/ui-ux-pro-max/scripts/__pycache__/core.cpython-314.pyc +0 -0
- package/templates/vault/ui-ux-pro-max/scripts/__pycache__/design_system.cpython-314.pyc +0 -0
- package/templates/vault/ui-ux-pro-max/scripts/core.py +257 -0
- package/templates/vault/ui-ux-pro-max/scripts/design_system.py +487 -0
- package/templates/vault/ui-ux-pro-max/scripts/search.py +76 -0
- package/templates/vault/videodb/scripts/ws_listener.py +204 -0
- package/templates/vault/web-artifacts-builder/scripts/bundle-artifact.sh +54 -0
- package/templates/vault/web-artifacts-builder/scripts/init-artifact.sh +322 -0
- package/templates/vault/web-artifacts-builder/scripts/shadcn-components.tar.gz +0 -0
- package/templates/vault/webapp-testing/scripts/with_server.py +106 -0
- package/templates/vault/whatsapp-cloud-api/assets/boilerplate/nodejs/src/index.ts +125 -0
- package/templates/vault/whatsapp-cloud-api/assets/boilerplate/nodejs/src/template-manager.ts +67 -0
- package/templates/vault/whatsapp-cloud-api/assets/boilerplate/nodejs/src/types.ts +216 -0
- package/templates/vault/whatsapp-cloud-api/assets/boilerplate/nodejs/src/webhook-handler.ts +173 -0
- package/templates/vault/whatsapp-cloud-api/assets/boilerplate/nodejs/src/whatsapp-client.ts +193 -0
- package/templates/vault/whatsapp-cloud-api/scripts/send_test_message.py +137 -0
- package/templates/vault/whatsapp-cloud-api/scripts/setup_project.py +118 -0
- package/templates/vault/whatsapp-cloud-api/scripts/validate_config.py +190 -0
- package/templates/vault/youtube-summarizer/scripts/extract-transcript.py +65 -0
- package/templates/vault/youtube-summarizer/scripts/install-dependencies.sh +28 -0
|
@@ -0,0 +1,417 @@
|
|
|
1
|
+
#!/usr/bin/env python3
|
|
2
|
+
"""
|
|
3
|
+
Skill Packager - Create ZIP files for Claude.ai web/desktop upload.
|
|
4
|
+
|
|
5
|
+
Claude Code (CLI) and Claude.ai (web/desktop) have SEPARATE skill systems.
|
|
6
|
+
Skills in .claude/skills/ work in the terminal but do NOT appear in the
|
|
7
|
+
Claude.ai web Habilidades (Skills) settings page.
|
|
8
|
+
|
|
9
|
+
To install a skill in Claude.ai web/desktop, you need to upload a ZIP file
|
|
10
|
+
through Settings > Capabilities > Skills > Upload skill.
|
|
11
|
+
|
|
12
|
+
This script packages skills into the correct ZIP format.
|
|
13
|
+
|
|
14
|
+
Usage:
|
|
15
|
+
python package_skill.py --source "C:\\path\\to\\skill"
|
|
16
|
+
python package_skill.py --source "C:\\path\\to\\skill" --output "C:\\Users\\renat\\Desktop"
|
|
17
|
+
python package_skill.py --all
|
|
18
|
+
python package_skill.py --all --output "C:\\Users\\renat\\Desktop"
|
|
19
|
+
"""
|
|
20
|
+
|
|
21
|
+
import os
|
|
22
|
+
import sys
|
|
23
|
+
import json
|
|
24
|
+
import re
|
|
25
|
+
import zipfile
|
|
26
|
+
from pathlib import Path
|
|
27
|
+
|
|
28
|
+
# ── Configuration ──────────────────────────────────────────────────────────
|
|
29
|
+
|
|
30
|
+
SKILLS_ROOT = Path(r"C:\Users\renat\skills")
|
|
31
|
+
DEFAULT_OUTPUT = Path(os.path.expanduser("~")) / "Desktop"
|
|
32
|
+
|
|
33
|
+
# Directories to exclude from ZIP
|
|
34
|
+
EXCLUDE_DIRS = {
|
|
35
|
+
".git", "__pycache__", "node_modules", ".venv", "venv",
|
|
36
|
+
".tox", ".mypy_cache", ".pytest_cache", "data",
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
# File patterns to exclude
|
|
40
|
+
EXCLUDE_FILES = {
|
|
41
|
+
".env", ".gitignore", ".DS_Store", "Thumbs.db",
|
|
42
|
+
"credentials.json", "token.json",
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
EXCLUDE_EXTENSIONS = {
|
|
46
|
+
".pyc", ".pyo", ".db", ".sqlite", ".sqlite3",
|
|
47
|
+
".log", ".tmp", ".bak",
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
# ── YAML Frontmatter Parser ───────────────────────────────────────────────
|
|
52
|
+
|
|
53
|
+
def parse_yaml_frontmatter(path: Path) -> dict:
|
|
54
|
+
"""Extract YAML frontmatter from a SKILL.md file."""
|
|
55
|
+
try:
|
|
56
|
+
text = path.read_text(encoding="utf-8")
|
|
57
|
+
except Exception:
|
|
58
|
+
return {}
|
|
59
|
+
|
|
60
|
+
match = re.match(r"^---\s*\n(.*?)\n---", text, re.DOTALL)
|
|
61
|
+
if not match:
|
|
62
|
+
return {}
|
|
63
|
+
|
|
64
|
+
try:
|
|
65
|
+
import yaml
|
|
66
|
+
return yaml.safe_load(match.group(1)) or {}
|
|
67
|
+
except Exception:
|
|
68
|
+
result = {}
|
|
69
|
+
block = match.group(1)
|
|
70
|
+
for key in ("name", "description", "version"):
|
|
71
|
+
m = re.search(rf'^{key}:\s*["\']?(.+?)["\']?\s*$', block, re.MULTILINE)
|
|
72
|
+
if m:
|
|
73
|
+
result[key] = m.group(1).strip()
|
|
74
|
+
else:
|
|
75
|
+
m2 = re.search(
|
|
76
|
+
rf'^{key}:\s*>-?\s*\n((?:\s+.+\n?)+)', block, re.MULTILINE
|
|
77
|
+
)
|
|
78
|
+
if m2:
|
|
79
|
+
lines = m2.group(1).strip().split("\n")
|
|
80
|
+
result[key] = " ".join(line.strip() for line in lines)
|
|
81
|
+
return result
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
# ── Validation ─────────────────────────────────────────────────────────────
|
|
85
|
+
|
|
86
|
+
def validate_for_web(skill_dir: Path) -> dict:
|
|
87
|
+
"""Validate skill meets Claude.ai web upload requirements."""
|
|
88
|
+
errors = []
|
|
89
|
+
warnings = []
|
|
90
|
+
|
|
91
|
+
skill_md = skill_dir / "SKILL.md"
|
|
92
|
+
if not skill_md.exists():
|
|
93
|
+
errors.append("SKILL.md not found")
|
|
94
|
+
return {"valid": False, "errors": errors, "warnings": warnings}
|
|
95
|
+
|
|
96
|
+
meta = parse_yaml_frontmatter(skill_md)
|
|
97
|
+
|
|
98
|
+
# Name: required, lowercase, letters/numbers/hyphens only, max 64 chars
|
|
99
|
+
name = meta.get("name", "")
|
|
100
|
+
if not name:
|
|
101
|
+
errors.append("Missing 'name' field in frontmatter")
|
|
102
|
+
else:
|
|
103
|
+
if name != name.lower():
|
|
104
|
+
warnings.append(f"Name '{name}' should be lowercase: '{name.lower()}'")
|
|
105
|
+
name_lower = name.lower()
|
|
106
|
+
if len(name_lower) == 1:
|
|
107
|
+
if not re.match(r'^[a-z0-9]$', name_lower):
|
|
108
|
+
warnings.append(f"Name '{name}' should only contain lowercase letters or numbers")
|
|
109
|
+
elif not re.match(r'^[a-z0-9][a-z0-9-]*[a-z0-9]$', name_lower):
|
|
110
|
+
warnings.append(f"Name '{name}' should only contain lowercase letters, numbers, and hyphens")
|
|
111
|
+
if len(name) > 64:
|
|
112
|
+
errors.append(f"Name exceeds 64 characters: {len(name)}")
|
|
113
|
+
if "anthropic" in name_lower or "claude" in name_lower:
|
|
114
|
+
errors.append(f"Name cannot contain reserved words 'anthropic' or 'claude'")
|
|
115
|
+
|
|
116
|
+
# Description: required, max 1024 chars
|
|
117
|
+
desc = meta.get("description", "")
|
|
118
|
+
if not desc:
|
|
119
|
+
errors.append("Missing 'description' field in frontmatter")
|
|
120
|
+
elif len(desc) > 1024:
|
|
121
|
+
warnings.append(f"Description exceeds 1024 chars ({len(desc)}), may be truncated")
|
|
122
|
+
|
|
123
|
+
return {
|
|
124
|
+
"valid": len(errors) == 0,
|
|
125
|
+
"errors": errors,
|
|
126
|
+
"warnings": warnings,
|
|
127
|
+
"name": name,
|
|
128
|
+
"description": desc[:120] if desc else "",
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
|
|
132
|
+
def should_include(file_path: Path, skill_dir: Path) -> bool:
|
|
133
|
+
"""Check if a file should be included in the ZIP."""
|
|
134
|
+
rel = file_path.relative_to(skill_dir)
|
|
135
|
+
|
|
136
|
+
# Check directory exclusions
|
|
137
|
+
for part in rel.parts[:-1]:
|
|
138
|
+
if part in EXCLUDE_DIRS:
|
|
139
|
+
return False
|
|
140
|
+
|
|
141
|
+
# Check file exclusions
|
|
142
|
+
if file_path.name in EXCLUDE_FILES:
|
|
143
|
+
return False
|
|
144
|
+
|
|
145
|
+
# Check extension exclusions
|
|
146
|
+
if file_path.suffix.lower() in EXCLUDE_EXTENSIONS:
|
|
147
|
+
return False
|
|
148
|
+
|
|
149
|
+
return True
|
|
150
|
+
|
|
151
|
+
|
|
152
|
+
# ── Packaging ──────────────────────────────────────────────────────────────
|
|
153
|
+
|
|
154
|
+
def package_skill(skill_dir: Path, output_dir: Path = None) -> dict:
|
|
155
|
+
"""
|
|
156
|
+
Package a skill directory into a ZIP file for Claude.ai upload.
|
|
157
|
+
|
|
158
|
+
The ZIP format required by Claude.ai:
|
|
159
|
+
skill-name.zip
|
|
160
|
+
└── skill-name/
|
|
161
|
+
├── SKILL.md
|
|
162
|
+
├── scripts/
|
|
163
|
+
├── references/
|
|
164
|
+
└── ...
|
|
165
|
+
"""
|
|
166
|
+
skill_dir = Path(skill_dir).resolve()
|
|
167
|
+
|
|
168
|
+
if not skill_dir.exists():
|
|
169
|
+
return {"success": False, "error": f"Directory not found: {skill_dir}"}
|
|
170
|
+
|
|
171
|
+
# Validate
|
|
172
|
+
validation = validate_for_web(skill_dir)
|
|
173
|
+
if not validation["valid"]:
|
|
174
|
+
return {
|
|
175
|
+
"success": False,
|
|
176
|
+
"error": f"Validation failed: {'; '.join(validation['errors'])}",
|
|
177
|
+
"validation": validation,
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
skill_name = validation["name"] or skill_dir.name
|
|
181
|
+
skill_name_lower = skill_name.lower()
|
|
182
|
+
|
|
183
|
+
# Determine output path
|
|
184
|
+
if output_dir is None:
|
|
185
|
+
output_dir = DEFAULT_OUTPUT
|
|
186
|
+
output_dir = Path(output_dir).resolve()
|
|
187
|
+
output_dir.mkdir(parents=True, exist_ok=True)
|
|
188
|
+
|
|
189
|
+
zip_path = output_dir / f"{skill_name_lower}.zip"
|
|
190
|
+
|
|
191
|
+
# Collect files
|
|
192
|
+
files_to_include = []
|
|
193
|
+
for root, dirs, files in os.walk(skill_dir):
|
|
194
|
+
# Filter directories in-place to skip excluded ones
|
|
195
|
+
dirs[:] = [d for d in dirs if d not in EXCLUDE_DIRS]
|
|
196
|
+
|
|
197
|
+
for f in files:
|
|
198
|
+
fp = Path(root) / f
|
|
199
|
+
if should_include(fp, skill_dir):
|
|
200
|
+
files_to_include.append(fp)
|
|
201
|
+
|
|
202
|
+
if not files_to_include:
|
|
203
|
+
return {"success": False, "error": "No files to package"}
|
|
204
|
+
|
|
205
|
+
# Create ZIP with skill folder as root
|
|
206
|
+
# CRITICAL: ZIP paths MUST use forward slashes, not Windows backslashes
|
|
207
|
+
try:
|
|
208
|
+
with zipfile.ZipFile(zip_path, "w", zipfile.ZIP_DEFLATED) as zf:
|
|
209
|
+
for fp in sorted(files_to_include):
|
|
210
|
+
rel_path = fp.relative_to(skill_dir)
|
|
211
|
+
# Convert Windows backslash to forward slash for ZIP compatibility
|
|
212
|
+
rel_posix = rel_path.as_posix()
|
|
213
|
+
archive_path = f"{skill_name_lower}/{rel_posix}"
|
|
214
|
+
zf.write(fp, archive_path)
|
|
215
|
+
|
|
216
|
+
# Verify ZIP is not empty and valid
|
|
217
|
+
with zipfile.ZipFile(zip_path, "r") as zf_check:
|
|
218
|
+
entries = zf_check.namelist()
|
|
219
|
+
if not entries:
|
|
220
|
+
zip_path.unlink(missing_ok=True)
|
|
221
|
+
return {"success": False, "error": "ZIP was created empty (no files written)"}
|
|
222
|
+
# Verify no backslash paths leaked through
|
|
223
|
+
bad_paths = [e for e in entries if "\\" in e]
|
|
224
|
+
if bad_paths:
|
|
225
|
+
zip_path.unlink(missing_ok=True)
|
|
226
|
+
return {
|
|
227
|
+
"success": False,
|
|
228
|
+
"error": f"ZIP contains backslash paths (invalid): {bad_paths[:3]}",
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
# Get ZIP size
|
|
232
|
+
zip_size = zip_path.stat().st_size
|
|
233
|
+
zip_size_kb = zip_size / 1024
|
|
234
|
+
|
|
235
|
+
except Exception as e:
|
|
236
|
+
return {"success": False, "error": f"ZIP creation failed: {e}"}
|
|
237
|
+
|
|
238
|
+
return {
|
|
239
|
+
"success": True,
|
|
240
|
+
"zip_path": str(zip_path),
|
|
241
|
+
"skill_name": skill_name_lower,
|
|
242
|
+
"files_count": len(files_to_include),
|
|
243
|
+
"zip_size_kb": round(zip_size_kb, 1),
|
|
244
|
+
"validation": validation,
|
|
245
|
+
"upload_instructions": (
|
|
246
|
+
"Para instalar no Claude.ai web/desktop:\n"
|
|
247
|
+
"1. Abra claude.ai > Settings > Capabilities > Skills\n"
|
|
248
|
+
"2. Clique em 'Upload skill'\n"
|
|
249
|
+
f"3. Selecione o arquivo: {zip_path}\n"
|
|
250
|
+
"4. A skill aparecera na lista de Habilidades"
|
|
251
|
+
),
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
|
|
255
|
+
def package_all(output_dir: Path = None) -> dict:
|
|
256
|
+
"""Package all installed skills."""
|
|
257
|
+
results = []
|
|
258
|
+
|
|
259
|
+
# Find all skill directories with SKILL.md
|
|
260
|
+
for item in sorted(SKILLS_ROOT.iterdir()):
|
|
261
|
+
if not item.is_dir():
|
|
262
|
+
continue
|
|
263
|
+
if item.name.startswith("."):
|
|
264
|
+
continue
|
|
265
|
+
if item.name == "agent-orchestrator":
|
|
266
|
+
continue # Meta-skill, not for web upload
|
|
267
|
+
|
|
268
|
+
skill_md = item / "SKILL.md"
|
|
269
|
+
if skill_md.exists():
|
|
270
|
+
result = package_skill(item, output_dir)
|
|
271
|
+
results.append(result)
|
|
272
|
+
|
|
273
|
+
# Also check nested skills
|
|
274
|
+
for parent in SKILLS_ROOT.iterdir():
|
|
275
|
+
if not parent.is_dir() or parent.name.startswith("."):
|
|
276
|
+
continue
|
|
277
|
+
for child in parent.iterdir():
|
|
278
|
+
if child.is_dir() and (child / "SKILL.md").exists():
|
|
279
|
+
if child.name != "agent-orchestrator":
|
|
280
|
+
result = package_skill(child, output_dir)
|
|
281
|
+
results.append(result)
|
|
282
|
+
|
|
283
|
+
success = sum(1 for r in results if r["success"])
|
|
284
|
+
failed = sum(1 for r in results if not r["success"])
|
|
285
|
+
|
|
286
|
+
return {
|
|
287
|
+
"total": len(results),
|
|
288
|
+
"success": success,
|
|
289
|
+
"failed": failed,
|
|
290
|
+
"results": results,
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
|
|
294
|
+
# ── Verify Existing ZIPs ──────────────────────────────────────────────────
|
|
295
|
+
|
|
296
|
+
def verify_zips(output_dir: Path = None) -> dict:
|
|
297
|
+
"""Verify all existing skill ZIPs for integrity.
|
|
298
|
+
|
|
299
|
+
Checks:
|
|
300
|
+
- ZIP is valid and not corrupted
|
|
301
|
+
- Contains SKILL.md
|
|
302
|
+
- No backslash paths
|
|
303
|
+
- Not empty
|
|
304
|
+
- Matches a known skill name
|
|
305
|
+
"""
|
|
306
|
+
if output_dir is None:
|
|
307
|
+
output_dir = DEFAULT_OUTPUT
|
|
308
|
+
|
|
309
|
+
results = []
|
|
310
|
+
zip_files = sorted(output_dir.glob("*.zip"))
|
|
311
|
+
|
|
312
|
+
for zip_path in zip_files:
|
|
313
|
+
entry = {
|
|
314
|
+
"file": str(zip_path),
|
|
315
|
+
"name": zip_path.stem,
|
|
316
|
+
"size_kb": round(zip_path.stat().st_size / 1024, 1),
|
|
317
|
+
"valid": False,
|
|
318
|
+
"issues": [],
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
try:
|
|
322
|
+
with zipfile.ZipFile(zip_path, "r") as zf:
|
|
323
|
+
entries = zf.namelist()
|
|
324
|
+
|
|
325
|
+
if not entries:
|
|
326
|
+
entry["issues"].append("ZIP is empty")
|
|
327
|
+
results.append(entry)
|
|
328
|
+
continue
|
|
329
|
+
|
|
330
|
+
# Check for backslash paths
|
|
331
|
+
bad_paths = [e for e in entries if "\\" in e]
|
|
332
|
+
if bad_paths:
|
|
333
|
+
entry["issues"].append(f"Contains backslash paths: {bad_paths[:3]}")
|
|
334
|
+
|
|
335
|
+
# Check for SKILL.md
|
|
336
|
+
has_skill_md = any(e.endswith("SKILL.md") for e in entries)
|
|
337
|
+
if not has_skill_md:
|
|
338
|
+
entry["issues"].append("Missing SKILL.md")
|
|
339
|
+
|
|
340
|
+
# Test integrity
|
|
341
|
+
bad_file = zf.testzip()
|
|
342
|
+
if bad_file:
|
|
343
|
+
entry["issues"].append(f"Corrupted file in ZIP: {bad_file}")
|
|
344
|
+
|
|
345
|
+
entry["file_count"] = len(entries)
|
|
346
|
+
entry["valid"] = len(entry["issues"]) == 0
|
|
347
|
+
|
|
348
|
+
except zipfile.BadZipFile:
|
|
349
|
+
entry["issues"].append("Not a valid ZIP file")
|
|
350
|
+
except Exception as e:
|
|
351
|
+
entry["issues"].append(f"Error reading ZIP: {e}")
|
|
352
|
+
|
|
353
|
+
results.append(entry)
|
|
354
|
+
|
|
355
|
+
valid = sum(1 for r in results if r["valid"])
|
|
356
|
+
invalid = sum(1 for r in results if not r["valid"])
|
|
357
|
+
|
|
358
|
+
return {
|
|
359
|
+
"total": len(results),
|
|
360
|
+
"valid": valid,
|
|
361
|
+
"invalid": invalid,
|
|
362
|
+
"output_dir": str(output_dir),
|
|
363
|
+
"results": results,
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
|
|
367
|
+
# ── CLI Entry Point ───────────────────────────────────────────────────────
|
|
368
|
+
|
|
369
|
+
def main():
|
|
370
|
+
args = sys.argv[1:]
|
|
371
|
+
|
|
372
|
+
source = None
|
|
373
|
+
output_dir = None
|
|
374
|
+
do_all = "--all" in args
|
|
375
|
+
do_verify = "--verify" in args
|
|
376
|
+
|
|
377
|
+
if "--source" in args:
|
|
378
|
+
idx = args.index("--source")
|
|
379
|
+
if idx + 1 < len(args):
|
|
380
|
+
source = args[idx + 1]
|
|
381
|
+
|
|
382
|
+
if "--output" in args:
|
|
383
|
+
idx = args.index("--output")
|
|
384
|
+
if idx + 1 < len(args):
|
|
385
|
+
output_dir = Path(args[idx + 1])
|
|
386
|
+
|
|
387
|
+
if do_verify:
|
|
388
|
+
result = verify_zips(Path(output_dir) if output_dir else None)
|
|
389
|
+
print(json.dumps(result, indent=2, ensure_ascii=False))
|
|
390
|
+
sys.exit(0 if result["invalid"] == 0 else 1)
|
|
391
|
+
|
|
392
|
+
if not source and not do_all:
|
|
393
|
+
print(json.dumps({
|
|
394
|
+
"error": "Usage: python package_skill.py <command>",
|
|
395
|
+
"commands": {
|
|
396
|
+
"--source <path>": "Package a single skill",
|
|
397
|
+
"--source <path> --output <dir>": "Package to specific directory",
|
|
398
|
+
"--all": "Package all installed skills",
|
|
399
|
+
"--all --output <dir>": "Package all to specific directory",
|
|
400
|
+
"--verify": "Verify integrity of all existing ZIPs",
|
|
401
|
+
"--verify --output <dir>": "Verify ZIPs in specific directory",
|
|
402
|
+
},
|
|
403
|
+
}, indent=2))
|
|
404
|
+
sys.exit(1)
|
|
405
|
+
|
|
406
|
+
if source:
|
|
407
|
+
result = package_skill(Path(source), output_dir)
|
|
408
|
+
print(json.dumps(result, indent=2, ensure_ascii=False))
|
|
409
|
+
sys.exit(0 if result["success"] else 1)
|
|
410
|
+
elif do_all:
|
|
411
|
+
result = package_all(output_dir)
|
|
412
|
+
print(json.dumps(result, indent=2, ensure_ascii=False))
|
|
413
|
+
sys.exit(0 if result["failed"] == 0 else 1)
|
|
414
|
+
|
|
415
|
+
|
|
416
|
+
if __name__ == "__main__":
|
|
417
|
+
main()
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
pyyaml>=6.0
|