novahiz 0.2.2 → 0.2.5
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/NOTICE.md +25 -15
- package/README.md +353 -355
- package/adapters/README.md +1 -1
- package/adapters/opencode/agent/novahiz.md +1 -2
- package/adapters/opencode/commands/novahiz-init.md +10 -0
- package/adapters/opencode/instructions.md +1 -1
- package/adapters/opencode/novahiz.ts +182 -4
- package/bin/novahiz.cmd +2 -2
- package/catalog/categories.json +1085 -1093
- package/catalog/overrides.json +12 -13
- package/catalog/providers.json +18 -34
- package/catalog/rules.json +15 -22
- package/docs/ARCHITECTURE.md +2 -2
- package/docs/CATALOG.md +7 -6
- package/docs/CONFIGURATION.md +5 -5
- package/docs/CONSTITUTION.md +4 -4
- package/docs/GATE.md +7 -11
- package/docs/HARNESSES.md +11 -0
- package/docs/INSTALL.md +7 -5
- package/docs/PLUGIN.md +24 -6
- package/docs/PROVIDERS.md +12 -10
- package/docs/ROADMAPS.md +4 -3
- package/docs/RULES.md +11 -10
- package/install/bootstrap.mjs +9 -19
- package/install/install.mjs +23 -41
- package/mcp/novahiz-tools/index.mjs +35 -6
- package/novahiz.config.example.json +1 -5
- package/package.json +6 -7
- package/skills/apple-ui-audit/SKILL.md +95 -0
- package/skills/apple-ui-audit/references/screen-walkthrough.md +29 -0
- package/skills/browser-session/SKILL.md +61 -0
- package/skills/browser-session/references/session-run-sheet.md +30 -0
- package/skills/browser-session/scripts/browser_session_preflight.mjs +74 -0
- package/skills/browser-session/scripts/sample-run.json +5 -0
- package/skills/code-standards/SKILL.md +85 -0
- package/skills/code-standards/references/pr-review-worksheet.md +35 -0
- package/skills/design-token-pipeline/SKILL.md +85 -0
- package/skills/design-token-pipeline/references/dtcg-sample.json +37 -0
- package/skills/llm-threat-review/SKILL.md +99 -0
- package/skills/llm-threat-review/references/review-worksheet.md +34 -0
- package/skills/llm-threat-review/scripts/llm_risk_lint.mjs +105 -0
- package/skills/novahiz-audit/SKILL.md +1 -1
- package/skills/novahiz-gate/SKILL.md +7 -6
- package/skills/novahiz-humanizer/SKILL.md +1 -1
- package/skills/novahiz-implement/SKILL.md +1 -1
- package/skills/novahiz-init/SKILL.md +112 -0
- package/skills/novahiz-planner/SKILL.md +1 -2
- package/skills/openapi-mcp-server/SKILL.md +76 -0
- package/skills/openapi-mcp-server/references/mcp-ship-checklist.md +30 -0
- package/skills/openapi-mcp-server/references/tool-worksheet.md +30 -0
- package/skills/openapi-mcp-server/scripts/openapi_mcp_lint.mjs +133 -0
- package/skills/package-risk-audit/SKILL.md +83 -0
- package/skills/package-risk-audit/references/intake-worksheet.md +19 -0
- package/skills/package-risk-audit/scripts/dep_risk_lint.mjs +131 -0
- package/skills/secrets-hygiene/SKILL.md +62 -0
- package/skills/secrets-hygiene/references/rotation-playbook.md +27 -0
- package/skills/secrets-hygiene/scripts/secret_scan.mjs +120 -0
- package/skills/skill-authoring/SKILL.md +93 -0
- package/skills/skill-authoring/references/skill-template.md +59 -0
- package/skills/skill-authoring/scripts/skill_frontmatter_lint.mjs +65 -0
- package/skills/skill-eval-loop/SKILL.md +103 -0
- package/skills/skill-eval-loop/references/negative-patterns.md +12 -0
- package/skills/skill-eval-loop/references/run-sheet.md +40 -0
- package/skills/skill-eval-loop/scripts/skill_structure_check.mjs +100 -0
- package/skills/ui-craft-rules/SKILL.md +96 -0
- package/skills/ui-slop-remover/SKILL.md +110 -0
- package/skills/ui-slop-remover/references/tell-catalogue.md +58 -0
- package/skills/ui-slop-remover/scripts/slop_lint.mjs +119 -0
- package/src/autodocs.ts +192 -0
- package/src/cli.ts +8 -1
- package/src/commands/autodocs.ts +250 -0
- package/src/commands/doctor.ts +226 -217
- package/src/commands/gate.ts +16 -5
- package/src/commands/init.ts +356 -0
- package/src/commands/task.ts +20 -7
- package/src/gate.ts +401 -401
- package/src/ledger.ts +39 -0
- package/src/targets.ts +43 -7
- package/bundled-skills/ab-testing/SKILL.md +0 -353
- package/bundled-skills/ab-testing/evals/evals.json +0 -105
- package/bundled-skills/ab-testing/references/sample-size-guide.md +0 -263
- package/bundled-skills/ab-testing/references/test-templates.md +0 -277
- package/bundled-skills/ad-creative/SKILL.md +0 -425
- package/bundled-skills/ad-creative/assets/creative-review-template.html +0 -400
- package/bundled-skills/ad-creative/evals/evals.json +0 -217
- package/bundled-skills/ad-creative/references/creative-review-page.md +0 -106
- package/bundled-skills/ad-creative/references/creative-roadmap.md +0 -118
- package/bundled-skills/ad-creative/references/generative-tools.md +0 -637
- package/bundled-skills/ad-creative/references/hook-system.md +0 -115
- package/bundled-skills/ad-creative/references/imessage-video-ads.md +0 -201
- package/bundled-skills/ad-creative/references/meta-creative-formats.md +0 -114
- package/bundled-skills/ad-creative/references/motion-video-ads.md +0 -126
- package/bundled-skills/ad-creative/references/platform-specs.md +0 -213
- package/bundled-skills/ad-creative/references/short-form-video-specs.md +0 -213
- package/bundled-skills/ad-creative/references/static-ad-templates.md +0 -308
- package/bundled-skills/ads/SKILL.md +0 -499
- package/bundled-skills/ads/evals/evals.json +0 -157
- package/bundled-skills/ads/references/abm-playbook.md +0 -93
- package/bundled-skills/ads/references/ad-copy-templates.md +0 -207
- package/bundled-skills/ads/references/audience-targeting.md +0 -243
- package/bundled-skills/ads/references/audit-guardrails.md +0 -83
- package/bundled-skills/ads/references/b2b-paid-playbook.md +0 -115
- package/bundled-skills/ads/references/conversion-tracking.md +0 -361
- package/bundled-skills/ads/references/creative-research-automation.md +0 -103
- package/bundled-skills/ads/references/google-ads-audit-checklist.md +0 -84
- package/bundled-skills/ads/references/google-search-playbook.md +0 -120
- package/bundled-skills/ads/references/linkedin-b2b-playbook.md +0 -107
- package/bundled-skills/ads/references/meta-decision-system.md +0 -176
- package/bundled-skills/ads/references/payback-period.md +0 -69
- package/bundled-skills/ads/references/platform-setup-checklists.md +0 -277
- package/bundled-skills/ads/references/rsa-output-spec.md +0 -88
- package/bundled-skills/agent-device/SKILL.md +0 -20
- package/bundled-skills/ai-seo/SKILL.md +0 -488
- package/bundled-skills/ai-seo/evals/evals.json +0 -135
- package/bundled-skills/ai-seo/references/agent-readiness.md +0 -57
- package/bundled-skills/ai-seo/references/citations-vs-recommendations.md +0 -85
- package/bundled-skills/ai-seo/references/content-patterns.md +0 -287
- package/bundled-skills/ai-seo/references/content-types.md +0 -71
- package/bundled-skills/ai-seo/references/format-volatility.md +0 -98
- package/bundled-skills/ai-seo/references/okf.md +0 -104
- package/bundled-skills/ai-seo/references/platform-ranking-factors.md +0 -154
- package/bundled-skills/ai-seo/references/youtube-ai-citations.md +0 -60
- package/bundled-skills/analytics/SKILL.md +0 -310
- package/bundled-skills/analytics/evals/evals.json +0 -90
- package/bundled-skills/analytics/references/event-library.md +0 -260
- package/bundled-skills/analytics/references/ga4-implementation.md +0 -300
- package/bundled-skills/analytics/references/gtm-implementation.md +0 -390
- package/bundled-skills/android-emulator/SKILL.md +0 -32
- package/bundled-skills/android-reverse-engineering/LICENSE +0 -190
- package/bundled-skills/android-reverse-engineering/SKILL.md +0 -313
- package/bundled-skills/android-reverse-engineering/references/api-extraction-patterns.md +0 -197
- package/bundled-skills/android-reverse-engineering/references/call-flow-analysis.md +0 -210
- package/bundled-skills/android-reverse-engineering/references/fernflower-usage.md +0 -115
- package/bundled-skills/android-reverse-engineering/references/jadx-usage.md +0 -116
- package/bundled-skills/android-reverse-engineering/references/kotlin-name-recovery.md +0 -108
- package/bundled-skills/android-reverse-engineering/references/setup-guide.md +0 -221
- package/bundled-skills/android-reverse-engineering/references/third_party_hosts.txt +0 -122
- package/bundled-skills/android-reverse-engineering/scripts/check-deps.ps1 +0 -165
- package/bundled-skills/android-reverse-engineering/scripts/check-deps.sh +0 -129
- package/bundled-skills/android-reverse-engineering/scripts/decompile.ps1 +0 -400
- package/bundled-skills/android-reverse-engineering/scripts/decompile.sh +0 -578
- package/bundled-skills/android-reverse-engineering/scripts/find-api-calls.ps1 +0 -121
- package/bundled-skills/android-reverse-engineering/scripts/find-api-calls.sh +0 -339
- package/bundled-skills/android-reverse-engineering/scripts/fingerprint.sh +0 -241
- package/bundled-skills/android-reverse-engineering/scripts/install-dep.ps1 +0 -345
- package/bundled-skills/android-reverse-engineering/scripts/install-dep.sh +0 -448
- package/bundled-skills/android-reverse-engineering/scripts/lookup-name.sh +0 -85
- package/bundled-skills/android-reverse-engineering/scripts/recover-kotlin-names.sh +0 -140
- package/bundled-skills/build-graph/SKILL.md +0 -38
- package/bundled-skills/claude-history-ingest/SKILL.md +0 -463
- package/bundled-skills/claude-history-ingest/references/claude-data-format.md +0 -118
- package/bundled-skills/codex-history-ingest/SKILL.md +0 -248
- package/bundled-skills/codex-history-ingest/references/codex-data-format.md +0 -82
- package/bundled-skills/cold-email/SKILL.md +0 -159
- package/bundled-skills/cold-email/evals/evals.json +0 -94
- package/bundled-skills/cold-email/references/benchmarks.md +0 -83
- package/bundled-skills/cold-email/references/follow-up-sequences.md +0 -81
- package/bundled-skills/cold-email/references/frameworks.md +0 -90
- package/bundled-skills/cold-email/references/personalization.md +0 -79
- package/bundled-skills/cold-email/references/subject-lines.md +0 -53
- package/bundled-skills/competitor-profiling/SKILL.md +0 -415
- package/bundled-skills/competitor-profiling/evals/evals.json +0 -85
- package/bundled-skills/competitor-profiling/references/templates.md +0 -167
- package/bundled-skills/competitor-profiling/references/tool-reference.md +0 -179
- package/bundled-skills/computer-use/SKILL.md +0 -41
- package/bundled-skills/content-strategy/SKILL.md +0 -439
- package/bundled-skills/content-strategy/evals/evals.json +0 -116
- package/bundled-skills/content-strategy/references/content-distribution.md +0 -83
- package/bundled-skills/content-strategy/references/headless-cms.md +0 -194
- package/bundled-skills/copilot-history-ingest/SKILL.md +0 -376
- package/bundled-skills/copilot-history-ingest/references/copilot-data-format.md +0 -321
- package/bundled-skills/copy-editing/SKILL.md +0 -457
- package/bundled-skills/copy-editing/evals/evals.json +0 -89
- package/bundled-skills/copy-editing/references/checklist.md +0 -66
- package/bundled-skills/copy-editing/references/content-refresh.md +0 -38
- package/bundled-skills/copy-editing/references/plain-english-alternatives.md +0 -394
- package/bundled-skills/copywriting/SKILL.md +0 -256
- package/bundled-skills/copywriting/evals/evals.json +0 -126
- package/bundled-skills/copywriting/references/copy-frameworks.md +0 -433
- package/bundled-skills/copywriting/references/natural-transitions.md +0 -272
- package/bundled-skills/cro/SKILL.md +0 -187
- package/bundled-skills/cro/evals/evals.json +0 -111
- package/bundled-skills/cro/references/experiments.md +0 -248
- package/bundled-skills/cro/references/form.md +0 -422
- package/bundled-skills/cross-linker/SKILL.md +0 -309
- package/bundled-skills/customer-research/SKILL.md +0 -305
- package/bundled-skills/customer-research/evals/evals.json +0 -176
- package/bundled-skills/customer-research/references/interviews-and-surveys.md +0 -155
- package/bundled-skills/customer-research/references/source-guides.md +0 -401
- package/bundled-skills/daily-update/SKILL.md +0 -223
- package/bundled-skills/dart-add-unit-test/SKILL.md +0 -122
- package/bundled-skills/dart-build-cli-app/SKILL.md +0 -185
- package/bundled-skills/dart-collect-coverage/SKILL.md +0 -141
- package/bundled-skills/dart-fix-runtime-errors/SKILL.md +0 -166
- package/bundled-skills/dart-generate-test-mocks/SKILL.md +0 -155
- package/bundled-skills/dart-migrate-to-checks-package/SKILL.md +0 -528
- package/bundled-skills/dart-resolve-package-conflicts/SKILL.md +0 -116
- package/bundled-skills/dart-run-static-analysis/SKILL.md +0 -104
- package/bundled-skills/dart-setup-ffi-assets/SKILL.md +0 -419
- package/bundled-skills/dart-use-doc-examples/SKILL.md +0 -96
- package/bundled-skills/dart-use-ffigen/SKILL.md +0 -218
- package/bundled-skills/dart-use-pattern-matching/SKILL.md +0 -146
- package/bundled-skills/dart-use-primary-constructors/SKILL.md +0 -262
- package/bundled-skills/dart-write-documentation/SKILL.md +0 -136
- package/bundled-skills/debug-issue/SKILL.md +0 -28
- package/bundled-skills/dogfood/SKILL.md +0 -27
- package/bundled-skills/eas-app-stores/SKILL.md +0 -176
- package/bundled-skills/eas-app-stores/agents/openai.yaml +0 -4
- package/bundled-skills/eas-app-stores/references/app-store-metadata.md +0 -497
- package/bundled-skills/eas-app-stores/references/ios-app-store.md +0 -376
- package/bundled-skills/eas-app-stores/references/native-ios.md +0 -167
- package/bundled-skills/eas-app-stores/references/play-store.md +0 -244
- package/bundled-skills/eas-app-stores/references/testflight.md +0 -62
- package/bundled-skills/eas-app-stores/references/workflows.md +0 -120
- package/bundled-skills/eas-hosting/SKILL.md +0 -431
- package/bundled-skills/eas-hosting/agents/openai.yaml +0 -4
- package/bundled-skills/eas-observe/SKILL.md +0 -54
- package/bundled-skills/eas-observe/agents/openai.yaml +0 -4
- package/bundled-skills/eas-observe/references/metrics.md +0 -98
- package/bundled-skills/eas-observe/references/queries.md +0 -403
- package/bundled-skills/eas-observe/references/setup.md +0 -476
- package/bundled-skills/eas-observe/references/third-party.md +0 -136
- package/bundled-skills/eas-simulator/SKILL.md +0 -208
- package/bundled-skills/eas-simulator/agents/openai.yaml +0 -4
- package/bundled-skills/eas-simulator/references/controllers.md +0 -106
- package/bundled-skills/eas-simulator/references/run-your-app.md +0 -224
- package/bundled-skills/eas-simulator/references/troubleshooting.md +0 -44
- package/bundled-skills/eas-update/SKILL.md +0 -146
- package/bundled-skills/eas-update/agents/openai.yaml +0 -4
- package/bundled-skills/eas-update-insights/SKILL.md +0 -238
- package/bundled-skills/eas-update-insights/agents/openai.yaml +0 -4
- package/bundled-skills/eas-update-insights/references/channel-insights-schema.md +0 -47
- package/bundled-skills/eas-update-insights/references/update-insights-schema.md +0 -69
- package/bundled-skills/eas-workflows/SKILL.md +0 -99
- package/bundled-skills/eas-workflows/agents/openai.yaml +0 -4
- package/bundled-skills/eas-workflows/scripts/fetch.js +0 -109
- package/bundled-skills/eas-workflows/scripts/package.json +0 -6
- package/bundled-skills/emails/SKILL.md +0 -311
- package/bundled-skills/emails/evals/evals.json +0 -93
- package/bundled-skills/emails/references/copy-guidelines.md +0 -113
- package/bundled-skills/emails/references/email-types.md +0 -515
- package/bundled-skills/emails/references/sequence-templates.md +0 -168
- package/bundled-skills/explore-codebase/SKILL.md +0 -29
- package/bundled-skills/expo-animation/LICENSE +0 -21
- package/bundled-skills/expo-animation/RECIPES.md +0 -385
- package/bundled-skills/expo-animation/SKILL.md +0 -267
- package/bundled-skills/expo-animation/agents/openai.yaml +0 -4
- package/bundled-skills/expo-app-clip/SKILL.md +0 -290
- package/bundled-skills/expo-app-clip/agents/openai.yaml +0 -4
- package/bundled-skills/expo-app-clip/references/native-module.md +0 -96
- package/bundled-skills/expo-brownfield/SKILL.md +0 -62
- package/bundled-skills/expo-brownfield/agents/openai.yaml +0 -4
- package/bundled-skills/expo-brownfield/references/brownfield-integrated.md +0 -526
- package/bundled-skills/expo-brownfield/references/brownfield-isolated.md +0 -451
- package/bundled-skills/expo-brownfield/references/comparison.md +0 -63
- package/bundled-skills/expo-brownfield/references/troubleshooting.md +0 -88
- package/bundled-skills/expo-data-fetching/SKILL.md +0 -478
- package/bundled-skills/expo-data-fetching/agents/openai.yaml +0 -4
- package/bundled-skills/expo-data-fetching/references/expo-router-loaders.md +0 -341
- package/bundled-skills/expo-data-fetching/references/offline-and-cancellation.md +0 -68
- package/bundled-skills/expo-design-system/SKILL.md +0 -376
- package/bundled-skills/expo-design-system/agents/openai.yaml +0 -4
- package/bundled-skills/expo-design-system/references/audit.md +0 -190
- package/bundled-skills/expo-design-system/references/native-slop.md +0 -74
- package/bundled-skills/expo-dev-client/SKILL.md +0 -182
- package/bundled-skills/expo-dev-client/agents/openai.yaml +0 -4
- package/bundled-skills/expo-dom/SKILL.md +0 -425
- package/bundled-skills/expo-dom/agents/openai.yaml +0 -4
- package/bundled-skills/expo-examples/SKILL.md +0 -106
- package/bundled-skills/expo-examples/agents/openai.yaml +0 -4
- package/bundled-skills/expo-examples/references/catalog.md +0 -105
- package/bundled-skills/expo-migrate-module/SKILL.md +0 -113
- package/bundled-skills/expo-migrate-module/agents/openai.yaml +0 -4
- package/bundled-skills/expo-migrate-module/references/compatibility.md +0 -73
- package/bundled-skills/expo-migrate-module/references/example.md +0 -212
- package/bundled-skills/expo-migrate-module/references/migration-map.md +0 -306
- package/bundled-skills/expo-module/SKILL.md +0 -151
- package/bundled-skills/expo-module/agents/openai.yaml +0 -4
- package/bundled-skills/expo-module/references/config-plugin.md +0 -90
- package/bundled-skills/expo-module/references/create-expo-module.md +0 -206
- package/bundled-skills/expo-module/references/lifecycle.md +0 -127
- package/bundled-skills/expo-module/references/module-config.md +0 -48
- package/bundled-skills/expo-module/references/native-module.md +0 -286
- package/bundled-skills/expo-module/references/native-view.md +0 -171
- package/bundled-skills/expo-native-ui/SKILL.md +0 -201
- package/bundled-skills/expo-native-ui/agents/openai.yaml +0 -4
- package/bundled-skills/expo-native-ui/references/controls.md +0 -231
- package/bundled-skills/expo-native-ui/references/gradients.md +0 -106
- package/bundled-skills/expo-native-ui/references/icons.md +0 -232
- package/bundled-skills/expo-native-ui/references/media.md +0 -193
- package/bundled-skills/expo-native-ui/references/storage.md +0 -121
- package/bundled-skills/expo-native-ui/references/visual-effects.md +0 -198
- package/bundled-skills/expo-native-ui/references/webgpu-three.md +0 -605
- package/bundled-skills/expo-overview/SKILL.md +0 -115
- package/bundled-skills/expo-overview/agents/openai.yaml +0 -4
- package/bundled-skills/expo-project-structure/SKILL.md +0 -114
- package/bundled-skills/expo-project-structure/agents/openai.yaml +0 -4
- package/bundled-skills/expo-router/SKILL.md +0 -240
- package/bundled-skills/expo-router/agents/openai.yaml +0 -4
- package/bundled-skills/expo-router/references/form-sheet.md +0 -253
- package/bundled-skills/expo-router/references/route-structure.md +0 -229
- package/bundled-skills/expo-router/references/search.md +0 -248
- package/bundled-skills/expo-router/references/tabs.md +0 -433
- package/bundled-skills/expo-router/references/toolbar-and-headers.md +0 -284
- package/bundled-skills/expo-router/references/zoom-transitions.md +0 -158
- package/bundled-skills/expo-skill-eval/SKILL.md +0 -314
- package/bundled-skills/expo-skill-eval/agents/visual-grader.md +0 -52
- package/bundled-skills/expo-skill-eval/references/design-rubric.md +0 -45
- package/bundled-skills/expo-skill-eval/references/runtime-matrix.md +0 -34
- package/bundled-skills/expo-skill-eval/scripts/check-static.sh +0 -64
- package/bundled-skills/expo-skill-eval/scripts/clean-fixture.sh +0 -56
- package/bundled-skills/expo-skill-eval/scripts/generate_viewer.py +0 -450
- package/bundled-skills/expo-skill-eval/scripts/latest-sdk.sh +0 -46
- package/bundled-skills/expo-skill-eval/scripts/make-fixture.sh +0 -95
- package/bundled-skills/expo-skill-eval/scripts/make-workspace.sh +0 -31
- package/bundled-skills/expo-skill-eval/scripts/snapshot-android.sh +0 -284
- package/bundled-skills/expo-skill-eval/scripts/snapshot-ios.sh +0 -132
- package/bundled-skills/expo-skill-eval/scripts/snapshot-web.sh +0 -61
- package/bundled-skills/expo-skill-feedback/SKILL.md +0 -87
- package/bundled-skills/expo-skill-feedback/agents/openai.yaml +0 -4
- package/bundled-skills/expo-skill-feedback/scripts/skill-event.cjs +0 -180
- package/bundled-skills/expo-skill-feedback/scripts/telemetry.cjs +0 -65
- package/bundled-skills/expo-skill-feedback/scripts/telemetry_common.cjs +0 -171
- package/bundled-skills/expo-ui/SKILL.md +0 -101
- package/bundled-skills/expo-ui/agents/openai.yaml +0 -4
- package/bundled-skills/expo-ui/references/drop-in-replacements.md +0 -27
- package/bundled-skills/expo-ui/references/jetpack-compose.md +0 -73
- package/bundled-skills/expo-ui/references/swift-ui.md +0 -73
- package/bundled-skills/expo-ui/references/universal.md +0 -104
- package/bundled-skills/expo-ui/scripts/list-components.js +0 -193
- package/bundled-skills/expo-upgrade/SKILL.md +0 -150
- package/bundled-skills/expo-upgrade/agents/openai.yaml +0 -4
- package/bundled-skills/expo-upgrade/references/expo-av-to-audio.md +0 -132
- package/bundled-skills/expo-upgrade/references/expo-av-to-video.md +0 -160
- package/bundled-skills/expo-upgrade/references/native-tabs.md +0 -124
- package/bundled-skills/expo-upgrade/references/new-architecture.md +0 -79
- package/bundled-skills/expo-upgrade/references/react-19.md +0 -79
- package/bundled-skills/expo-upgrade/references/react-compiler.md +0 -59
- package/bundled-skills/expo-upgrade/references/react-navigation-to-expo-router.md +0 -61
- package/bundled-skills/expo-web-to-native/SKILL.md +0 -91
- package/bundled-skills/expo-web-to-native/agents/openai.yaml +0 -4
- package/bundled-skills/expo-web-to-native/references/false-friends.md +0 -119
- package/bundled-skills/expo-web-to-native/references/native-patterns.md +0 -39
- package/bundled-skills/expo-web-to-native/references/run-as-goal.md +0 -48
- package/bundled-skills/expo-web-to-native/references/verify-on-device.md +0 -45
- package/bundled-skills/find-skills/SKILL.md +0 -141
- package/bundled-skills/flutter-add-integration-test/SKILL.md +0 -163
- package/bundled-skills/flutter-add-widget-preview/SKILL.md +0 -145
- package/bundled-skills/flutter-add-widget-test/SKILL.md +0 -154
- package/bundled-skills/flutter-apply-architecture-best-practices/SKILL.md +0 -162
- package/bundled-skills/flutter-build-responsive-layout/SKILL.md +0 -139
- package/bundled-skills/flutter-fix-layout-issues/SKILL.md +0 -130
- package/bundled-skills/flutter-implement-json-serialization/SKILL.md +0 -153
- package/bundled-skills/flutter-setup-declarative-routing/SKILL.md +0 -255
- package/bundled-skills/flutter-setup-localization/SKILL.md +0 -210
- package/bundled-skills/flutter-use-http-package/SKILL.md +0 -174
- package/bundled-skills/graph-colorize/SKILL.md +0 -180
- package/bundled-skills/hermes-history-ingest/SKILL.md +0 -239
- package/bundled-skills/hermes-history-ingest/references/hermes-data-format.md +0 -131
- package/bundled-skills/impl-validator/SKILL.md +0 -118
- package/bundled-skills/ios-simulator/SKILL.md +0 -32
- package/bundled-skills/json-canvas/SKILL.md +0 -244
- package/bundled-skills/json-canvas/references/EXAMPLES.md +0 -329
- package/bundled-skills/launch/SKILL.md +0 -381
- package/bundled-skills/launch/evals/evals.json +0 -106
- package/bundled-skills/llm-wiki/SKILL.md +0 -661
- package/bundled-skills/llm-wiki/references/WRITING.md +0 -28
- package/bundled-skills/llm-wiki/references/karpathy-pattern.md +0 -45
- package/bundled-skills/marketing-plan/SKILL.md +0 -300
- package/bundled-skills/marketing-plan/evals/evals.json +0 -112
- package/bundled-skills/marketing-plan/references/aarrr-framework.md +0 -180
- package/bundled-skills/marketing-plan/references/budget-planning.md +0 -168
- package/bundled-skills/marketing-plan/references/client-types.md +0 -373
- package/bundled-skills/marketing-plan/references/current-state-rubric.md +0 -255
- package/bundled-skills/marketing-plan/references/example-quietude.md +0 -972
- package/bundled-skills/marketing-plan/references/funding-stage-unlocks.md +0 -230
- package/bundled-skills/marketing-plan/references/growth-patterns.md +0 -190
- package/bundled-skills/marketing-plan/references/idea-cross-reference.md +0 -265
- package/bundled-skills/marketing-plan/references/measurement-framework.md +0 -213
- package/bundled-skills/marketing-plan/references/methodology.md +0 -363
- package/bundled-skills/marketing-plan/references/ops-stack-mapping.md +0 -197
- package/bundled-skills/marketing-plan/references/plan-template.md +0 -494
- package/bundled-skills/marketing-plan/references/team-and-agency-model.md +0 -278
- package/bundled-skills/marketing-psychology/SKILL.md +0 -455
- package/bundled-skills/marketing-psychology/evals/evals.json +0 -88
- package/bundled-skills/memory-bridge/SKILL.md +0 -163
- package/bundled-skills/memory-save/SKILL.md +0 -88
- package/bundled-skills/obsidian-bases/SKILL.md +0 -499
- package/bundled-skills/obsidian-bases/references/FUNCTIONS_REFERENCE.md +0 -173
- package/bundled-skills/obsidian-cli/SKILL.md +0 -106
- package/bundled-skills/obsidian-layout-adjustment/SKILL.md +0 -226
- package/bundled-skills/obsidian-layout-adjustment/evals/evals.json +0 -53
- package/bundled-skills/obsidian-layout-adjustment/references/workflow-reference.md +0 -212
- package/bundled-skills/obsidian-markdown/SKILL.md +0 -196
- package/bundled-skills/obsidian-markdown/references/CALLOUTS.md +0 -58
- package/bundled-skills/obsidian-markdown/references/EMBEDS.md +0 -70
- package/bundled-skills/obsidian-markdown/references/PROPERTIES.md +0 -61
- package/bundled-skills/offers/SKILL.md +0 -155
- package/bundled-skills/offers/evals/evals.json +0 -21
- package/bundled-skills/offers/references/bonus-stacking.md +0 -150
- package/bundled-skills/offers/references/examples.md +0 -215
- package/bundled-skills/offers/references/guarantee-design.md +0 -172
- package/bundled-skills/offers/references/offer-anatomy.md +0 -203
- package/bundled-skills/offers/references/offer-formats.md +0 -240
- package/bundled-skills/offers/references/saas-offers.md +0 -116
- package/bundled-skills/offers/references/scarcity-urgency.md +0 -175
- package/bundled-skills/offers/references/value-equation.md +0 -134
- package/bundled-skills/onboarding/SKILL.md +0 -261
- package/bundled-skills/onboarding/evals/evals.json +0 -108
- package/bundled-skills/onboarding/references/activation-models.md +0 -57
- package/bundled-skills/onboarding/references/experiments.md +0 -258
- package/bundled-skills/onboarding/references/minimum-path-to-value.md +0 -49
- package/bundled-skills/openclaw-history-ingest/SKILL.md +0 -257
- package/bundled-skills/openclaw-history-ingest/references/openclaw-data-format.md +0 -154
- package/bundled-skills/orchestration/SKILL.md +0 -69
- package/bundled-skills/pi-history-ingest/SKILL.md +0 -312
- package/bundled-skills/pricing/SKILL.md +0 -295
- package/bundled-skills/pricing/evals/evals.json +0 -119
- package/bundled-skills/pricing/references/pricing-models.md +0 -66
- package/bundled-skills/pricing/references/pricing-page-teardown.md +0 -85
- package/bundled-skills/pricing/references/research-methods.md +0 -152
- package/bundled-skills/pricing/references/tier-structure.md +0 -232
- package/bundled-skills/product-marketing/SKILL.md +0 -255
- package/bundled-skills/product-marketing/evals/evals.json +0 -98
- package/bundled-skills/prospecting/SKILL.md +0 -262
- package/bundled-skills/prospecting/evals/evals.json +0 -122
- package/bundled-skills/prospecting/references/b2b-prospecting.md +0 -106
- package/bundled-skills/prospecting/references/compliance.md +0 -123
- package/bundled-skills/prospecting/references/data-sources.md +0 -287
- package/bundled-skills/prospecting/references/demand-signals.md +0 -129
- package/bundled-skills/prospecting/references/local-prospecting.md +0 -165
- package/bundled-skills/prospecting/references/saas-prospecting.md +0 -123
- package/bundled-skills/refactor-safely/SKILL.md +0 -29
- package/bundled-skills/review-delta/SKILL.md +0 -46
- package/bundled-skills/review-pr/SKILL.md +0 -66
- package/bundled-skills/sales-enablement/SKILL.md +0 -359
- package/bundled-skills/sales-enablement/evals/evals.json +0 -91
- package/bundled-skills/sales-enablement/references/deck-frameworks.md +0 -263
- package/bundled-skills/sales-enablement/references/demo-scripts.md +0 -355
- package/bundled-skills/sales-enablement/references/objection-library.md +0 -270
- package/bundled-skills/sales-enablement/references/one-pager-templates.md +0 -208
- package/bundled-skills/seo-audit/SKILL.md +0 -499
- package/bundled-skills/seo-audit/evals/evals.json +0 -136
- package/bundled-skills/seo-audit/references/ai-writing-detection.md +0 -200
- package/bundled-skills/seo-audit/references/international-seo.md +0 -230
- package/bundled-skills/session-brain/SKILL.md +0 -101
- package/bundled-skills/session-search/SKILL.md +0 -97
- package/bundled-skills/social/SKILL.md +0 -413
- package/bundled-skills/social/evals/evals.json +0 -107
- package/bundled-skills/social/references/carousel-frameworks.md +0 -141
- package/bundled-skills/social/references/listening-sources-template.md +0 -123
- package/bundled-skills/social/references/listening.md +0 -283
- package/bundled-skills/social/references/platform-limits.md +0 -110
- package/bundled-skills/social/references/platforms.md +0 -170
- package/bundled-skills/social/references/post-templates.md +0 -179
- package/bundled-skills/social/references/reverse-engineering.md +0 -195
- package/bundled-skills/social/references/short-form-video.md +0 -237
- package/bundled-skills/tag-taxonomy/SKILL.md +0 -218
- package/bundled-skills/vault-skill-factory/SKILL.md +0 -143
- package/bundled-skills/video/SKILL.md +0 -346
- package/bundled-skills/video/evals/evals.json +0 -103
- package/bundled-skills/video/references/ai-video-prompting.md +0 -175
- package/bundled-skills/video/references/edit-anatomy.md +0 -84
- package/bundled-skills/wiki-agent/SKILL.md +0 -322
- package/bundled-skills/wiki-capture/SKILL.md +0 -337
- package/bundled-skills/wiki-capture/references/RAW-FORMAT.md +0 -115
- package/bundled-skills/wiki-context-pack/SKILL.md +0 -89
- package/bundled-skills/wiki-dashboard/SKILL.md +0 -472
- package/bundled-skills/wiki-dedup/SKILL.md +0 -320
- package/bundled-skills/wiki-digest/SKILL.md +0 -243
- package/bundled-skills/wiki-export/SKILL.md +0 -445
- package/bundled-skills/wiki-history-ingest/SKILL.md +0 -61
- package/bundled-skills/wiki-import/SKILL.md +0 -276
- package/bundled-skills/wiki-ingest/SKILL.md +0 -563
- package/bundled-skills/wiki-ingest/references/ingest-prompts.md +0 -54
- package/bundled-skills/wiki-ingest/references/pageindex.md +0 -72
- package/bundled-skills/wiki-ingest/references/url-sources.md +0 -295
- package/bundled-skills/wiki-lint/SKILL.md +0 -643
- package/bundled-skills/wiki-narrate/SKILL.md +0 -120
- package/bundled-skills/wiki-narrate/references/voices.md +0 -29
- package/bundled-skills/wiki-query/SKILL.md +0 -307
- package/bundled-skills/wiki-rebuild/SKILL.md +0 -212
- package/bundled-skills/wiki-research/SKILL.md +0 -319
- package/bundled-skills/wiki-setup/SKILL.md +0 -359
- package/bundled-skills/wiki-stage-commit/SKILL.md +0 -164
- package/bundled-skills/wiki-status/SKILL.md +0 -556
- package/bundled-skills/wiki-switch/SKILL.md +0 -115
- package/bundled-skills/wiki-synthesize/SKILL.md +0 -212
- package/bundled-skills/wiki-update/SKILL.md +0 -271
- package/skills/ai-security/SKILL.md +0 -132
- package/skills/ai-security/references/atlas-coverage.md +0 -60
- package/skills/ai-security/scripts/ai_threat_scanner.py +0 -373
- package/skills/anti-AI-design/SKILL.md +0 -72
- package/skills/apple-hig-audit/SKILL.md +0 -64
- package/skills/apple-hig-audit/references/accessibility.md +0 -78
- package/skills/apple-hig-audit/references/platform-specifics.md +0 -57
- package/skills/apple-hig-audit/references/visual-design.md +0 -68
- package/skills/apple-hig-audit/scripts/hig_checker.py +0 -115
- package/skills/apple-hig-audit/templates/hig-audit-template.md +0 -114
- package/skills/dependency-auditor/README.md +0 -98
- package/skills/dependency-auditor/SKILL.md +0 -114
- package/skills/dependency-auditor/assets/sample_go.mod +0 -53
- package/skills/dependency-auditor/assets/sample_package.json +0 -72
- package/skills/dependency-auditor/assets/sample_requirements.txt +0 -71
- package/skills/dependency-auditor/expected_outputs/sample_license_report.txt +0 -37
- package/skills/dependency-auditor/expected_outputs/sample_upgrade_plan.txt +0 -59
- package/skills/dependency-auditor/expected_outputs/sample_vulnerability_report.json +0 -71
- package/skills/dependency-auditor/references/dependency_management_best_practices.md +0 -46
- package/skills/dependency-auditor/references/license_compatibility_matrix.md +0 -57
- package/skills/dependency-auditor/references/vulnerability_assessment_guide.md +0 -62
- package/skills/dependency-auditor/scripts/dep_scanner.py +0 -595
- package/skills/dependency-auditor/scripts/license_checker.py +0 -442
- package/skills/dependency-auditor/scripts/upgrade_planner.py +0 -490
- package/skills/dependency-auditor/test-inventory.json +0 -421
- package/skills/dependency-auditor/test-project/package.json +0 -72
- package/skills/design-system-tokens/SKILL.md +0 -90
- package/skills/design-system-tokens/assets/design_system_doc_template.md +0 -129
- package/skills/design-system-tokens/references/component-architecture.md +0 -88
- package/skills/design-system-tokens/references/developer-handoff.md +0 -61
- package/skills/design-system-tokens/references/responsive-calculations.md +0 -72
- package/skills/design-system-tokens/references/token-generation.md +0 -62
- package/skills/design-system-tokens/scripts/design_token_generator.py +0 -315
- package/skills/engineering-code-standards/SKILL.md +0 -174
- package/skills/env-secrets-manager/SKILL.md +0 -102
- package/skills/env-secrets-manager/references/secret-patterns.md +0 -56
- package/skills/env-secrets-manager/references/validation-detection-rotation.md +0 -76
- package/skills/env-secrets-manager/scripts/env_auditor.py +0 -340
- package/skills/frontend-design-taste/SKILL.md +0 -62
- package/skills/mcp-server-builder/README.md +0 -42
- package/skills/mcp-server-builder/SKILL.md +0 -144
- package/skills/mcp-server-builder/references/openapi-extraction-guide.md +0 -34
- package/skills/mcp-server-builder/references/production-hardening-guide.md +0 -80
- package/skills/mcp-server-builder/references/python-server-template.md +0 -22
- package/skills/mcp-server-builder/references/spec-compatibility.md +0 -129
- package/skills/mcp-server-builder/references/typescript-server-template.md +0 -19
- package/skills/mcp-server-builder/references/validation-checklist.md +0 -30
- package/skills/mcp-server-builder/scripts/mcp_validator.py +0 -180
- package/skills/mcp-server-builder/scripts/openapi_to_mcp.py +0 -279
- package/skills/playwright-agent/SKILL.md +0 -147
- package/skills/skill-creator/LICENSE.txt +0 -14
- package/skills/skill-creator/SKILL.md +0 -471
- package/skills/skill-creator/agents/analyzer.md +0 -274
- package/skills/skill-creator/agents/comparator.md +0 -202
- package/skills/skill-creator/agents/grader.md +0 -223
- package/skills/skill-creator/assets/eval_review.html +0 -143
- package/skills/skill-creator/eval-viewer/generate_review.py +0 -471
- package/skills/skill-creator/eval-viewer/viewer.html +0 -1321
- package/skills/skill-creator/references/schemas.md +0 -430
- package/skills/skill-creator/scripts/__init__.py +0 -0
- package/skills/skill-creator/scripts/aggregate_benchmark.py +0 -401
- package/skills/skill-creator/scripts/generate_report.py +0 -322
- package/skills/skill-creator/scripts/improve_description.py +0 -247
- package/skills/skill-creator/scripts/package_skill.py +0 -136
- package/skills/skill-creator/scripts/quick_validate.py +0 -103
- package/skills/skill-creator/scripts/run_eval.py +0 -310
- package/skills/skill-creator/scripts/run_loop.py +0 -328
- package/skills/skill-creator/scripts/utils.py +0 -47
- package/skills/write-a-skill/SKILL.md +0 -111
- package/skills/write-a-skill/references/companion_tooling.md +0 -61
- package/skills/write-a-skill/references/description_design_patterns.md +0 -136
- package/skills/write-a-skill/references/progressive_disclosure_principles.md +0 -87
- package/skills/write-a-skill/references/quality_gates_for_skills.md +0 -158
- package/skills/write-a-skill/scripts/skill_description_validator.py +0 -241
- package/skills/write-a-skill/scripts/skill_review_checklist_runner.py +0 -257
- package/skills/write-a-skill/scripts/skill_structure_validator.py +0 -265
|
@@ -1,279 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env python3
|
|
2
|
-
"""Generate MCP scaffold files from an OpenAPI specification.
|
|
3
|
-
|
|
4
|
-
Reads a contract from --input or stdin (JSON, or YAML when PyYAML is installed)
|
|
5
|
-
and writes tool_manifest.json plus a Python or TypeScript starter server.
|
|
6
|
-
Prints a short text or JSON summary of what landed on disk.
|
|
7
|
-
"""
|
|
8
|
-
|
|
9
|
-
import argparse
|
|
10
|
-
import json
|
|
11
|
-
import re
|
|
12
|
-
import sys
|
|
13
|
-
from dataclasses import dataclass, asdict
|
|
14
|
-
from pathlib import Path
|
|
15
|
-
from typing import Any, Dict, List, Optional
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
HTTP_METHODS = {"get", "post", "put", "patch", "delete"}
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
class CLIError(Exception):
|
|
22
|
-
"""Raised for expected CLI failures."""
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
@dataclass
|
|
26
|
-
class GenerationSummary:
|
|
27
|
-
server_name: str
|
|
28
|
-
language: str
|
|
29
|
-
operations_total: int
|
|
30
|
-
tools_generated: int
|
|
31
|
-
output_dir: str
|
|
32
|
-
manifest_path: str
|
|
33
|
-
scaffold_path: str
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
def parse_args() -> argparse.Namespace:
|
|
37
|
-
parser = argparse.ArgumentParser(description="Generate MCP server scaffold from OpenAPI.")
|
|
38
|
-
parser.add_argument("--input", help="OpenAPI file path (JSON or YAML). If omitted, reads from stdin.")
|
|
39
|
-
parser.add_argument("--server-name", required=True, help="MCP server name.")
|
|
40
|
-
parser.add_argument("--language", choices=["python", "typescript"], default="python", help="Scaffold language.")
|
|
41
|
-
parser.add_argument("--output-dir", default=".", help="Directory to write generated files.")
|
|
42
|
-
parser.add_argument("--format", choices=["text", "json"], default="text", help="Output format.")
|
|
43
|
-
return parser.parse_args()
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
def load_raw_input(input_path: Optional[str]) -> str:
|
|
47
|
-
if input_path:
|
|
48
|
-
try:
|
|
49
|
-
return Path(input_path).read_text(encoding="utf-8")
|
|
50
|
-
except Exception as exc:
|
|
51
|
-
raise CLIError(f"Failed to read --input file: {exc}") from exc
|
|
52
|
-
|
|
53
|
-
if sys.stdin.isatty():
|
|
54
|
-
raise CLIError("No input provided. Use --input <spec-file> or pipe OpenAPI via stdin.")
|
|
55
|
-
|
|
56
|
-
data = sys.stdin.read().strip()
|
|
57
|
-
if not data:
|
|
58
|
-
raise CLIError("Stdin was provided but empty.")
|
|
59
|
-
return data
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
def parse_openapi(raw: str) -> Dict[str, Any]:
|
|
63
|
-
try:
|
|
64
|
-
return json.loads(raw)
|
|
65
|
-
except json.JSONDecodeError:
|
|
66
|
-
try:
|
|
67
|
-
import yaml # type: ignore
|
|
68
|
-
|
|
69
|
-
parsed = yaml.safe_load(raw)
|
|
70
|
-
if not isinstance(parsed, dict):
|
|
71
|
-
raise CLIError("YAML OpenAPI did not parse into an object.")
|
|
72
|
-
return parsed
|
|
73
|
-
except ImportError as exc:
|
|
74
|
-
raise CLIError("Input is not valid JSON and PyYAML is unavailable for YAML parsing.") from exc
|
|
75
|
-
except Exception as exc:
|
|
76
|
-
raise CLIError(f"Failed to parse OpenAPI input: {exc}") from exc
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
def sanitize_tool_name(name: str) -> str:
|
|
80
|
-
cleaned = re.sub(r"[^a-zA-Z0-9_]+", "_", name).strip("_")
|
|
81
|
-
cleaned = re.sub(r"_+", "_", cleaned)
|
|
82
|
-
return cleaned.lower() or "unnamed_tool"
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
def schema_from_parameter(param: Dict[str, Any]) -> Dict[str, Any]:
|
|
86
|
-
schema = param.get("schema", {})
|
|
87
|
-
if not isinstance(schema, dict):
|
|
88
|
-
schema = {}
|
|
89
|
-
out = {
|
|
90
|
-
"type": schema.get("type", "string"),
|
|
91
|
-
"description": param.get("description", ""),
|
|
92
|
-
}
|
|
93
|
-
if "enum" in schema:
|
|
94
|
-
out["enum"] = schema["enum"]
|
|
95
|
-
return out
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
def extract_tools(spec: Dict[str, Any]) -> List[Dict[str, Any]]:
|
|
99
|
-
paths = spec.get("paths", {})
|
|
100
|
-
if not isinstance(paths, dict):
|
|
101
|
-
raise CLIError("OpenAPI spec missing valid 'paths' object.")
|
|
102
|
-
|
|
103
|
-
tools = []
|
|
104
|
-
for path, methods in paths.items():
|
|
105
|
-
if not isinstance(methods, dict):
|
|
106
|
-
continue
|
|
107
|
-
for method, operation in methods.items():
|
|
108
|
-
method_l = str(method).lower()
|
|
109
|
-
if method_l not in HTTP_METHODS or not isinstance(operation, dict):
|
|
110
|
-
continue
|
|
111
|
-
|
|
112
|
-
op_id = operation.get("operationId")
|
|
113
|
-
if op_id:
|
|
114
|
-
name = sanitize_tool_name(str(op_id))
|
|
115
|
-
else:
|
|
116
|
-
name = sanitize_tool_name(f"{method_l}_{path}")
|
|
117
|
-
|
|
118
|
-
description = str(operation.get("summary") or operation.get("description") or f"{method_l.upper()} {path}")
|
|
119
|
-
properties: Dict[str, Any] = {}
|
|
120
|
-
required: List[str] = []
|
|
121
|
-
|
|
122
|
-
for param in operation.get("parameters", []):
|
|
123
|
-
if not isinstance(param, dict):
|
|
124
|
-
continue
|
|
125
|
-
pname = str(param.get("name", "")).strip()
|
|
126
|
-
if not pname:
|
|
127
|
-
continue
|
|
128
|
-
properties[pname] = schema_from_parameter(param)
|
|
129
|
-
if bool(param.get("required")):
|
|
130
|
-
required.append(pname)
|
|
131
|
-
|
|
132
|
-
request_body = operation.get("requestBody", {})
|
|
133
|
-
if isinstance(request_body, dict):
|
|
134
|
-
content = request_body.get("content", {})
|
|
135
|
-
if isinstance(content, dict):
|
|
136
|
-
app_json = content.get("application/json", {})
|
|
137
|
-
if isinstance(app_json, dict):
|
|
138
|
-
schema = app_json.get("schema", {})
|
|
139
|
-
if isinstance(schema, dict) and schema.get("type") == "object":
|
|
140
|
-
rb_props = schema.get("properties", {})
|
|
141
|
-
if isinstance(rb_props, dict):
|
|
142
|
-
for key, val in rb_props.items():
|
|
143
|
-
if isinstance(val, dict):
|
|
144
|
-
properties[key] = val
|
|
145
|
-
rb_required = schema.get("required", [])
|
|
146
|
-
if isinstance(rb_required, list):
|
|
147
|
-
required.extend([str(x) for x in rb_required])
|
|
148
|
-
|
|
149
|
-
tool = {
|
|
150
|
-
"name": name,
|
|
151
|
-
"description": description,
|
|
152
|
-
"inputSchema": {
|
|
153
|
-
"type": "object",
|
|
154
|
-
"properties": properties,
|
|
155
|
-
"required": sorted(set(required)),
|
|
156
|
-
},
|
|
157
|
-
"x-openapi": {"path": path, "method": method_l},
|
|
158
|
-
}
|
|
159
|
-
tools.append(tool)
|
|
160
|
-
|
|
161
|
-
return tools
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
def python_scaffold(server_name: str, tools: List[Dict[str, Any]]) -> str:
|
|
165
|
-
handlers = []
|
|
166
|
-
for tool in tools:
|
|
167
|
-
fname = sanitize_tool_name(tool["name"])
|
|
168
|
-
handlers.append(
|
|
169
|
-
f"@mcp.tool()\ndef {fname}(input: dict) -> dict:\n"
|
|
170
|
-
f" \"\"\"{tool['description']}\"\"\"\n"
|
|
171
|
-
f" return {{\"tool\": \"{tool['name']}\", \"status\": \"todo\", \"input\": input}}\n"
|
|
172
|
-
)
|
|
173
|
-
|
|
174
|
-
return "\n".join(
|
|
175
|
-
[
|
|
176
|
-
"#!/usr/bin/env python3",
|
|
177
|
-
'"""Generated MCP server scaffold."""',
|
|
178
|
-
"",
|
|
179
|
-
"from fastmcp import FastMCP",
|
|
180
|
-
"",
|
|
181
|
-
f"mcp = FastMCP(name={server_name!r})",
|
|
182
|
-
"",
|
|
183
|
-
*handlers,
|
|
184
|
-
"",
|
|
185
|
-
"if __name__ == '__main__':",
|
|
186
|
-
" mcp.run()",
|
|
187
|
-
"",
|
|
188
|
-
]
|
|
189
|
-
)
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
def typescript_scaffold(server_name: str, tools: List[Dict[str, Any]]) -> str:
|
|
193
|
-
registrations = []
|
|
194
|
-
for tool in tools:
|
|
195
|
-
const_name = sanitize_tool_name(tool["name"])
|
|
196
|
-
registrations.append(
|
|
197
|
-
"server.tool(\n"
|
|
198
|
-
f" '{tool['name']}',\n"
|
|
199
|
-
f" '{tool['description']}',\n"
|
|
200
|
-
" async (input) => ({\n"
|
|
201
|
-
f" content: [{{ type: 'text', text: JSON.stringify({{ tool: '{const_name}', status: 'todo', input }}) }}],\n"
|
|
202
|
-
" })\n"
|
|
203
|
-
");"
|
|
204
|
-
)
|
|
205
|
-
|
|
206
|
-
return "\n".join(
|
|
207
|
-
[
|
|
208
|
-
"// Generated MCP server scaffold",
|
|
209
|
-
"import { FastMCP } from 'fastmcp';",
|
|
210
|
-
"",
|
|
211
|
-
f"const server = new FastMCP({{ name: '{server_name}' }});",
|
|
212
|
-
"",
|
|
213
|
-
*registrations,
|
|
214
|
-
"",
|
|
215
|
-
"server.run();",
|
|
216
|
-
"",
|
|
217
|
-
]
|
|
218
|
-
)
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
def write_outputs(server_name: str, language: str, output_dir: Path, tools: List[Dict[str, Any]]) -> GenerationSummary:
|
|
222
|
-
output_dir.mkdir(parents=True, exist_ok=True)
|
|
223
|
-
|
|
224
|
-
manifest_path = output_dir / "tool_manifest.json"
|
|
225
|
-
manifest = {"server": server_name, "tools": tools}
|
|
226
|
-
manifest_path.write_text(json.dumps(manifest, indent=2), encoding="utf-8")
|
|
227
|
-
|
|
228
|
-
if language == "python":
|
|
229
|
-
scaffold_path = output_dir / "server.py"
|
|
230
|
-
scaffold_path.write_text(python_scaffold(server_name, tools), encoding="utf-8")
|
|
231
|
-
else:
|
|
232
|
-
scaffold_path = output_dir / "server.ts"
|
|
233
|
-
scaffold_path.write_text(typescript_scaffold(server_name, tools), encoding="utf-8")
|
|
234
|
-
|
|
235
|
-
return GenerationSummary(
|
|
236
|
-
server_name=server_name,
|
|
237
|
-
language=language,
|
|
238
|
-
operations_total=len(tools),
|
|
239
|
-
tools_generated=len(tools),
|
|
240
|
-
output_dir=str(output_dir.resolve()),
|
|
241
|
-
manifest_path=str(manifest_path.resolve()),
|
|
242
|
-
scaffold_path=str(scaffold_path.resolve()),
|
|
243
|
-
)
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
def main() -> int:
|
|
247
|
-
args = parse_args()
|
|
248
|
-
raw = load_raw_input(args.input)
|
|
249
|
-
spec = parse_openapi(raw)
|
|
250
|
-
tools = extract_tools(spec)
|
|
251
|
-
if not tools:
|
|
252
|
-
raise CLIError("No operations discovered in OpenAPI paths.")
|
|
253
|
-
|
|
254
|
-
summary = write_outputs(
|
|
255
|
-
server_name=args.server_name,
|
|
256
|
-
language=args.language,
|
|
257
|
-
output_dir=Path(args.output_dir),
|
|
258
|
-
tools=tools,
|
|
259
|
-
)
|
|
260
|
-
|
|
261
|
-
if args.format == "json":
|
|
262
|
-
print(json.dumps(asdict(summary), indent=2))
|
|
263
|
-
else:
|
|
264
|
-
print("MCP scaffold generated")
|
|
265
|
-
print(f"- server: {summary.server_name}")
|
|
266
|
-
print(f"- language: {summary.language}")
|
|
267
|
-
print(f"- tools: {summary.tools_generated}")
|
|
268
|
-
print(f"- manifest: {summary.manifest_path}")
|
|
269
|
-
print(f"- scaffold: {summary.scaffold_path}")
|
|
270
|
-
|
|
271
|
-
return 0
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
if __name__ == "__main__":
|
|
275
|
-
try:
|
|
276
|
-
raise SystemExit(main())
|
|
277
|
-
except CLIError as exc:
|
|
278
|
-
print(f"ERROR: {exc}", file=sys.stderr)
|
|
279
|
-
raise SystemExit(2)
|
|
@@ -1,147 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: playwright-agent
|
|
3
|
-
description: |
|
|
4
|
-
Skill global pour l'utilisation de Playwright dans OpenCode. Force le démarrage du serveur
|
|
5
|
-
de développement dans un terminal externe avant toute interaction navigateur. Fournit les
|
|
6
|
-
bonnes pratiques, le protocole de connexion, et les commandes courantes.
|
|
7
|
-
Use when using Playwright, navigating to localhost, taking screenshots, or interacting with a web app.
|
|
8
|
-
Triggers on: "playwright", "navigateur", "localhost", "serveur", "dev server", "screenshot", "page web".
|
|
9
|
-
license: Apache-2.0
|
|
10
|
-
compatibility: opencode
|
|
11
|
-
metadata:
|
|
12
|
-
author: Novahiz
|
|
13
|
-
organization: Novahiz
|
|
14
|
-
version: "2.0.0"
|
|
15
|
-
date: September 2026
|
|
16
|
-
---
|
|
17
|
-
|
|
18
|
-
# playwright-agent : exécution Playwright sous OpenCode
|
|
19
|
-
|
|
20
|
-
## Contrainte de départ : le serveur vit hors de la session
|
|
21
|
-
|
|
22
|
-
Une tâche Playwright qui vise un site local commence toujours par lancer le serveur dans un terminal PowerShell externe.
|
|
23
|
-
|
|
24
|
-
Le navigateur piloté par le serveur MCP Playwright s'exécute dans un contexte réseau distinct de celui de la session OpenCode. Un serveur démarré via `Start-Job` PowerShell meurt quand la session se ferme. Seul `Start-Process`, qui ouvre un vrai terminal persistant, maintient le processus en vie après la fin de la commande.
|
|
25
|
-
|
|
26
|
-
## Protocole de démarrage
|
|
27
|
-
|
|
28
|
-
### 1. Identifier la pile du projet
|
|
29
|
-
|
|
30
|
-
```bash
|
|
31
|
-
Test-Path package.json # Node.js (Vite, Next.js, CRA...)
|
|
32
|
-
Test-Path Cargo.toml # Rust
|
|
33
|
-
Test-Path pyproject.toml # Python
|
|
34
|
-
Test-Path go.mod # Go
|
|
35
|
-
```
|
|
36
|
-
|
|
37
|
-
### 2. Ouvrir le terminal externe
|
|
38
|
-
|
|
39
|
-
**Node.js / Vite / Next.js / React :**
|
|
40
|
-
```powershell
|
|
41
|
-
Start-Process powershell -ArgumentList "-NoExit", "-Command", "cd '<CHEMIN_PROJET>'; npm run dev"
|
|
42
|
-
```
|
|
43
|
-
|
|
44
|
-
**Port imposé :**
|
|
45
|
-
```powershell
|
|
46
|
-
Start-Process powershell -ArgumentList "-NoExit", "-Command", "cd '<CHEMIN_PROJET>'; npx vite --port 3000"
|
|
47
|
-
```
|
|
48
|
-
|
|
49
|
-
**Hôte explicite (si nécessaire) :**
|
|
50
|
-
```powershell
|
|
51
|
-
Start-Process powershell -ArgumentList "-NoExit", "-Command", "cd '<CHEMIN_PROJET>'; npx vite --host 0.0.0.0"
|
|
52
|
-
```
|
|
53
|
-
|
|
54
|
-
**Python (Flask, FastAPI, Django) :**
|
|
55
|
-
```powershell
|
|
56
|
-
Start-Process powershell -ArgumentList "-NoExit", "-Command", "cd '<CHEMIN_PROJET>'; python -m flask run"
|
|
57
|
-
# ou
|
|
58
|
-
Start-Process powershell -ArgumentList "-NoExit", "-Command", "cd '<CHEMIN_PROJET>'; uvicorn main:app --reload"
|
|
59
|
-
```
|
|
60
|
-
|
|
61
|
-
**Rust (Actix, Axum) :**
|
|
62
|
-
```powershell
|
|
63
|
-
Start-Process powershell -ArgumentList "-NoExit", "-Command", "cd '<CHEMIN_PROJET>'; cargo run"
|
|
64
|
-
```
|
|
65
|
-
|
|
66
|
-
### 3. Attendre que le port réponde
|
|
67
|
-
|
|
68
|
-
```powershell
|
|
69
|
-
Start-Sleep -Seconds 5
|
|
70
|
-
Test-NetConnection -ComputerName localhost -Port <PORT> -WarningAction SilentlyContinue | Select-Object TcpTestSucceeded
|
|
71
|
-
```
|
|
72
|
-
|
|
73
|
-
Passer à la suite uniquement quand `TcpTestSucceeded` vaut `True`.
|
|
74
|
-
|
|
75
|
-
### 4. Naviguer
|
|
76
|
-
|
|
77
|
-
```
|
|
78
|
-
playwright_browser_navigate(url="http://localhost:<PORT>/")
|
|
79
|
-
```
|
|
80
|
-
|
|
81
|
-
## Pannes fréquentes
|
|
82
|
-
|
|
83
|
-
| Erreur | Cause probable | Correctif |
|
|
84
|
-
|---|---|---|
|
|
85
|
-
| `ERR_CONNECTION_REFUSED` | Serveur absente ou port faux | relancer le serveur, relire le port dans package.json |
|
|
86
|
-
| `ERR_CONNECTION_REFUSED` (localhost joignable via `Test-NetConnection`) | IPv6 contre IPv4 | ajouter `--host 0.0.0.0` au serveur |
|
|
87
|
-
| `net::ERR_SOCKET_NOT_CONNECTED` | Démarrage en cours | laisser plus de temps avant de reconnecter |
|
|
88
|
-
| Terminal fermé | Processus tué | rouvrir un `Start-Process` |
|
|
89
|
-
|
|
90
|
-
## Commandes Playwright
|
|
91
|
-
|
|
92
|
-
### Navigation
|
|
93
|
-
```
|
|
94
|
-
playwright_browser_navigate(url="http://localhost:5173/")
|
|
95
|
-
playwright_browser_navigate_back()
|
|
96
|
-
playwright_browser_tabs(action="list")
|
|
97
|
-
playwright_browser_tabs(action="new", url="http://localhost:5173/page2")
|
|
98
|
-
```
|
|
99
|
-
|
|
100
|
-
### Interaction
|
|
101
|
-
```
|
|
102
|
-
playwright_browser_click(target="<ref>", element="<description>")
|
|
103
|
-
playwright_browser_type(target="<ref>", text="hello")
|
|
104
|
-
playwright_browser_fill_form(fields=[...])
|
|
105
|
-
playwright_browser_select_option(target="<ref>", values=["option1"])
|
|
106
|
-
playwright_browser_hover(target="<ref>")
|
|
107
|
-
```
|
|
108
|
-
|
|
109
|
-
### Capture
|
|
110
|
-
```
|
|
111
|
-
playwright_browser_take_screenshot(scale="css")
|
|
112
|
-
playwright_browser_take_screenshot(scale="device", fullPage=true)
|
|
113
|
-
playwright_browser_snapshot()
|
|
114
|
-
```
|
|
115
|
-
|
|
116
|
-
### Inspection
|
|
117
|
-
```
|
|
118
|
-
playwright_browser_find(text="bouton")
|
|
119
|
-
playwright_browser_console_messages(level="error")
|
|
120
|
-
playwright_browser_network_requests(static=false)
|
|
121
|
-
```
|
|
122
|
-
|
|
123
|
-
### Attente
|
|
124
|
-
```
|
|
125
|
-
playwright_browser_wait_for(text="Chargé")
|
|
126
|
-
playwright_browser_wait_for(textGone="Loading")
|
|
127
|
-
playwright_browser_wait_for(time=3)
|
|
128
|
-
```
|
|
129
|
-
|
|
130
|
-
## Habitudes de travail
|
|
131
|
-
|
|
132
|
-
1. **Lire le port, ne pas le supposer.** 5173 est une convention Vite, pas une vérité. Ouvrir package.json ou le script de démarrage.
|
|
133
|
-
2. **Photographier avant de toucher.** Screenshot ou snapshot avant le premier clic : l'état réel de la page est alors figé.
|
|
134
|
-
3. **Nommer la cible.** Passer `element` (description lisible) en plus de `target` (référence technique) sur chaque clic.
|
|
135
|
-
4. **Vérifier la console.** Après chaque navigation : `playwright_browser_console_messages(level="error")`.
|
|
136
|
-
5. **Intercepter les dialogues.** `playwright_browser_handle_dialog(accept=true)` pour confirmer sans bloquer.
|
|
137
|
-
6. **Le screenshot fait preuve.** Une étape importante se clôt par une capture qui servira de preuve au moment de la convergence.
|
|
138
|
-
|
|
139
|
-
## Place dans Novahiz
|
|
140
|
-
|
|
141
|
-
Ce skill s'active quand la catégorie `browser` est détectée. Il complète :
|
|
142
|
-
|
|
143
|
-
- `novahiz-plan` : cadrer l'objectif
|
|
144
|
-
- `novahiz-task` : découper les étapes
|
|
145
|
-
- `novahiz-converge` : vérification finale
|
|
146
|
-
|
|
147
|
-
Le serveur externe est un prérequis technique. Il ne se substitue ni à la planification ni à la convergence.
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
Novahiz skill-creator
|
|
2
|
-
Licensed under the Apache License, Version 2.0 (the "License");
|
|
3
|
-
you may not use this file except in compliance with the License.
|
|
4
|
-
You may obtain a copy of the License at
|
|
5
|
-
|
|
6
|
-
http://www.apache.org/licenses/LICENSE-2.0
|
|
7
|
-
|
|
8
|
-
Unless required by applicable law or agreed to in writing, software
|
|
9
|
-
distributed under the License is distributed on an "AS IS" BASIS,
|
|
10
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
11
|
-
See the License for the specific language governing permissions and
|
|
12
|
-
limitations under the License.
|
|
13
|
-
|
|
14
|
-
Copyright 2026 Novahiz
|