@jairodri/huckleberry-cli 1.0.1 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +85 -0
- package/agents/cos.json +2 -5
- package/agents/hermes/AGENTS.md +25 -49
- package/agents/hermes/fix-kimaki/SKILL.md +19 -92
- package/agents/hermes/hermes-fixer.md +44 -74
- package/agents/hermes.json +6 -18
- package/kanban/SKILL.md +18 -18
- package/kanban/package.json +1 -1
- package/kanban/src/dispatcher.mjs +1 -1
- package/kanban/templates/blog-social-campaign.yaml +6 -2
- package/kanban/templates/social-campaign.yaml +9 -4
- package/mcp/jev-calibration.mjs +335 -0
- package/mcp/jev-client.mjs +119 -0
- package/mcp/jev-thresholds.json +27 -0
- package/package.json +13 -9
- package/scripts/doctor-watchdog.sh +73 -0
- package/scripts/install-services.sh +34 -27
- package/scripts/self-improve-weekly.sh +34 -0
- package/scripts/sync-skills.mjs +121 -0
- package/skills/ab-test-setup/SKILL.md +266 -0
- package/skills/ab-test-setup/evals/evals.json +105 -0
- package/skills/ab-test-setup/references/sample-size-guide.md +263 -0
- package/skills/ab-test-setup/references/test-templates.md +277 -0
- package/skills/agent-reach/SKILL.md +132 -0
- package/skills/agent-reach/references/career.md +29 -0
- package/skills/agent-reach/references/dev.md +62 -0
- package/skills/agent-reach/references/search.md +33 -0
- package/skills/agent-reach/references/social.md +232 -0
- package/skills/agent-reach/references/video.md +130 -0
- package/skills/agent-reach/references/web.md +50 -0
- package/skills/ai-agent-seo/SKILL.md +450 -0
- package/skills/ai-cold-email-intelligence/SKILL.md +54 -0
- package/skills/ai-cold-email-intelligence/references/prompts.md +21 -0
- package/skills/ai-consensus-builder/SKILL.md +324 -0
- package/skills/ai-seo/SKILL.md +399 -0
- package/skills/ai-seo/evals/evals.json +90 -0
- package/skills/ai-seo/references/content-patterns.md +284 -0
- package/skills/ai-seo/references/platform-ranking-factors.md +152 -0
- package/skills/ai-visibility-audit/SKILL.md +322 -0
- package/skills/analytics-tracking/SKILL.md +309 -0
- package/skills/analytics-tracking/evals/evals.json +90 -0
- package/skills/analytics-tracking/references/event-library.md +260 -0
- package/skills/analytics-tracking/references/ga4-implementation.md +300 -0
- package/skills/analytics-tracking/references/gtm-implementation.md +390 -0
- package/skills/article-generator/SKILL.md +216 -0
- package/skills/auto-indexing/SKILL.md +179 -0
- package/skills/auto-indexing/scripts/auto-indexing.js +257 -0
- package/skills/auto-skill/SKILL.md +151 -0
- package/skills/auto-skill/correction-queue.js +102 -0
- package/skills/auto-skill/dedup.js +97 -0
- package/skills/auto-skill/skill-router.js +224 -0
- package/skills/autoresearch/SKILL.md +334 -0
- package/skills/autoresearch/autoresearch-autoresearch/SKILL.md.baseline +329 -0
- package/skills/autoresearch/autoresearch-autoresearch/changelog.md +34 -0
- package/skills/autoresearch/autoresearch-autoresearch/dashboard.html +116 -0
- package/skills/autoresearch/autoresearch-autoresearch/evals.md +39 -0
- package/skills/autoresearch/autoresearch-autoresearch/results.json +44 -0
- package/skills/autoresearch/autoresearch-autoresearch/results.tsv +3 -0
- package/skills/autoresearch/eval-guide.md +121 -0
- package/skills/b2b-cold-outreach/SKILL.md +322 -0
- package/skills/birdclaw/SKILL.md +82 -0
- package/skills/brainstorm/SKILL.md +168 -0
- package/skills/brand-kit-playground/SKILL.md +312 -0
- package/skills/brand-kit-playground/references/html-architecture.md +316 -0
- package/skills/brand-kit-playground/references/steal-patterns.md +88 -0
- package/skills/brand-voice/SKILL.md +223 -0
- package/skills/brand-voice/references/honesty-as-positioning.md +60 -0
- package/skills/brand-voice/references/voice-modes.md +1158 -0
- package/skills/business-advisory-council/README.md +136 -0
- package/skills/business-advisory-council/SKILL.md +94 -0
- package/skills/business-advisory-council/business-advisory-council.py +492 -0
- package/skills/business-advisory-council/discord-components-decision.json +8 -0
- package/skills/business-advisory-council/examples/steve-conley-partnership.json +6 -0
- package/skills/business-advisory-council/steve-conley-call-brief.json +6 -0
- package/skills/churn-prevention/SKILL.md +305 -0
- package/skills/churn-prevention/evals/evals.json +93 -0
- package/skills/churn-prevention/references/cancel-flow-patterns.md +316 -0
- package/skills/churn-prevention/references/dunning-playbook.md +408 -0
- package/skills/claw-compactor/LICENSE +21 -0
- package/skills/claw-compactor/README.md +459 -0
- package/skills/claw-compactor/SKILL.md +329 -0
- package/skills/claw-compactor/benchmark/RESULTS.md +104 -0
- package/skills/claw-compactor/benchmark/__init__.py +1 -0
- package/skills/claw-compactor/benchmark/compressors.py +520 -0
- package/skills/claw-compactor/benchmark/data/sample_01_devops.json +82 -0
- package/skills/claw-compactor/benchmark/data/sample_02_trading.json +54 -0
- package/skills/claw-compactor/benchmark/data/sample_03_ml_short.json +38 -0
- package/skills/claw-compactor/benchmark/data/sample_04_mixed_long.json +318 -0
- package/skills/claw-compactor/benchmark/data/sample_05_sysadmin.json +56 -0
- package/skills/claw-compactor/benchmark/evaluate.py +278 -0
- package/skills/claw-compactor/benchmark/report.py +241 -0
- package/skills/claw-compactor/benchmark/results/benchmark_results.json +405 -0
- package/skills/claw-compactor/benchmark/run_benchmark.py +238 -0
- package/skills/claw-compactor/engram.yaml +49 -0
- package/skills/claw-compactor/proxy/README.md +87 -0
- package/skills/claw-compactor/proxy/dashboard.html +804 -0
- package/skills/claw-compactor/proxy/event-log.mjs +213 -0
- package/skills/claw-compactor/proxy/fair-queue.mjs +288 -0
- package/skills/claw-compactor/proxy/metrics-store.mjs +425 -0
- package/skills/claw-compactor/proxy/package-lock.json +125 -0
- package/skills/claw-compactor/proxy/package.json +15 -0
- package/skills/claw-compactor/proxy/portal.html +360 -0
- package/skills/claw-compactor/proxy/process-registry.mjs +447 -0
- package/skills/claw-compactor/proxy/rate-limiter.mjs +117 -0
- package/skills/claw-compactor/proxy/redis-client.mjs +75 -0
- package/skills/claw-compactor/proxy/retry.mjs +182 -0
- package/skills/claw-compactor/proxy/server.mjs +2100 -0
- package/skills/claw-compactor/proxy/session-affinity.mjs +177 -0
- package/skills/claw-compactor/proxy/start.sh +23 -0
- package/skills/claw-compactor/proxy/test/event-log.test.mjs +237 -0
- package/skills/claw-compactor/proxy/test/helpers.mjs +103 -0
- package/skills/claw-compactor/proxy/test/integration.test.mjs +297 -0
- package/skills/claw-compactor/proxy/test/metrics-store.test.mjs +243 -0
- package/skills/claw-compactor/proxy/test/process-registry.test.mjs +390 -0
- package/skills/claw-compactor/proxy/test/rate-limiter.test.mjs +121 -0
- package/skills/claw-compactor/proxy/test/redis-client.test.mjs +62 -0
- package/skills/claw-compactor/proxy/test/token-tracker.test.mjs +200 -0
- package/skills/claw-compactor/proxy/token-tracker.mjs +482 -0
- package/skills/claw-compactor/pyproject.toml +26 -0
- package/skills/claw-compactor/references/README.md +44 -0
- package/skills/claw-compactor/references/architecture.md +197 -0
- package/skills/claw-compactor/references/benchmarks.md +94 -0
- package/skills/claw-compactor/references/compression-prompts.md +39 -0
- package/skills/claw-compactor/references/compression-techniques.md +219 -0
- package/skills/claw-compactor/references/testing.md +160 -0
- package/skills/claw-compactor/scripts/audit_memory.py +216 -0
- package/skills/claw-compactor/scripts/compress_memory.py +236 -0
- package/skills/claw-compactor/scripts/compressed_context.py +280 -0
- package/skills/claw-compactor/scripts/dedup_memory.py +147 -0
- package/skills/claw-compactor/scripts/dictionary_compress.py +170 -0
- package/skills/claw-compactor/scripts/engram-auto.sh +152 -0
- package/skills/claw-compactor/scripts/engram_auto.py +695 -0
- package/skills/claw-compactor/scripts/engram_cli.py +474 -0
- package/skills/claw-compactor/scripts/estimate_tokens.py +131 -0
- package/skills/claw-compactor/scripts/generate_summary_tiers.py +292 -0
- package/skills/claw-compactor/scripts/lib/__init__.py +34 -0
- package/skills/claw-compactor/scripts/lib/config.py +289 -0
- package/skills/claw-compactor/scripts/lib/dedup.py +119 -0
- package/skills/claw-compactor/scripts/lib/dictionary.py +281 -0
- package/skills/claw-compactor/scripts/lib/engram.py +793 -0
- package/skills/claw-compactor/scripts/lib/engram_prompts.py +175 -0
- package/skills/claw-compactor/scripts/lib/engram_storage.py +254 -0
- package/skills/claw-compactor/scripts/lib/exceptions.py +24 -0
- package/skills/claw-compactor/scripts/lib/markdown.py +312 -0
- package/skills/claw-compactor/scripts/lib/rle.py +165 -0
- package/skills/claw-compactor/scripts/lib/tokenizer_optimizer.py +188 -0
- package/skills/claw-compactor/scripts/lib/tokens.py +68 -0
- package/skills/claw-compactor/scripts/mem_compress.py +788 -0
- package/skills/claw-compactor/scripts/observation_compressor.py +346 -0
- package/skills/claw-compactor/tests/__init__.py +0 -0
- package/skills/claw-compactor/tests/conftest.py +94 -0
- package/skills/claw-compactor/tests/test_audit_comprehensive.py +123 -0
- package/skills/claw-compactor/tests/test_audit_memory.py +67 -0
- package/skills/claw-compactor/tests/test_benchmark.py +122 -0
- package/skills/claw-compactor/tests/test_cli_commands.py +228 -0
- package/skills/claw-compactor/tests/test_compress_memory.py +109 -0
- package/skills/claw-compactor/tests/test_compress_memory_comprehensive.py +191 -0
- package/skills/claw-compactor/tests/test_compressed_context.py +145 -0
- package/skills/claw-compactor/tests/test_config.py +54 -0
- package/skills/claw-compactor/tests/test_dedup_memory.py +124 -0
- package/skills/claw-compactor/tests/test_dictionary.py +327 -0
- package/skills/claw-compactor/tests/test_dictionary_comprehensive.py +241 -0
- package/skills/claw-compactor/tests/test_engram.py +1091 -0
- package/skills/claw-compactor/tests/test_engram_auto.py +529 -0
- package/skills/claw-compactor/tests/test_error_handling.py +194 -0
- package/skills/claw-compactor/tests/test_estimate_tokens.py +99 -0
- package/skills/claw-compactor/tests/test_generate_summary_tiers.py +105 -0
- package/skills/claw-compactor/tests/test_integration.py +249 -0
- package/skills/claw-compactor/tests/test_lib_dedup.py +135 -0
- package/skills/claw-compactor/tests/test_lib_markdown.py +388 -0
- package/skills/claw-compactor/tests/test_lib_tokens.py +82 -0
- package/skills/claw-compactor/tests/test_main_entry.py +176 -0
- package/skills/claw-compactor/tests/test_markdown_advanced.py +284 -0
- package/skills/claw-compactor/tests/test_new_features.py +77 -0
- package/skills/claw-compactor/tests/test_observation_comprehensive.py +261 -0
- package/skills/claw-compactor/tests/test_observation_compressor.py +128 -0
- package/skills/claw-compactor/tests/test_performance.py +172 -0
- package/skills/claw-compactor/tests/test_pipeline.py +109 -0
- package/skills/claw-compactor/tests/test_real_workspace.py +161 -0
- package/skills/claw-compactor/tests/test_rle.py +114 -0
- package/skills/claw-compactor/tests/test_rle_comprehensive.py +151 -0
- package/skills/claw-compactor/tests/test_roundtrip.py +253 -0
- package/skills/claw-compactor/tests/test_roundtrip_comprehensive.py +192 -0
- package/skills/claw-compactor/tests/test_tiers_comprehensive.py +171 -0
- package/skills/claw-compactor/tests/test_token_economics.py +237 -0
- package/skills/claw-compactor/tests/test_tokenizer_optimizer.py +175 -0
- package/skills/claw-compactor/tests/test_tokenizer_optimizer_comprehensive.py +241 -0
- package/skills/claw-compactor/tests/test_tokens.py +27 -0
- package/skills/cmo/CHANGELOG.md +61 -0
- package/skills/cmo/SKILL.md +500 -0
- package/skills/cmo/references/ai-slop-patterns.md +56 -0
- package/skills/cmo/references/analytics-guide.md +152 -0
- package/skills/cmo/references/ideas-library.md +197 -0
- package/skills/cmo/rules/brand-file-map.md +198 -0
- package/skills/cmo/rules/brand-memory.md +158 -0
- package/skills/cmo/rules/cli-runtime-index.md +95 -0
- package/skills/cmo/rules/command-reference.md +167 -0
- package/skills/cmo/rules/communication.md +15 -0
- package/skills/cmo/rules/context-switch.md +101 -0
- package/skills/cmo/rules/ecosystem.md +125 -0
- package/skills/cmo/rules/error-recovery.md +98 -0
- package/skills/cmo/rules/learning-loop.md +170 -0
- package/skills/cmo/rules/monorepo.md +78 -0
- package/skills/cmo/rules/output-format.md +124 -0
- package/skills/cmo/rules/persona.md +15 -0
- package/skills/cmo/rules/playbooks.md +327 -0
- package/skills/cmo/rules/progressive-enhancement.md +231 -0
- package/skills/cmo/rules/publish-index.md +106 -0
- package/skills/cmo/rules/quality-gate.md +90 -0
- package/skills/cmo/rules/recency-grounding.md +124 -0
- package/skills/cmo/rules/safety.md +80 -0
- package/skills/cmo/rules/studio-api-index.md +138 -0
- package/skills/cmo/rules/studio-integration.md +147 -0
- package/skills/cmo/rules/sub-agents.md +167 -0
- package/skills/cold-email/SKILL.md +240 -0
- package/skills/cold-email/evals/evals.json +94 -0
- package/skills/cold-email/references/benchmarks.md +83 -0
- package/skills/cold-email/references/follow-up-sequences.md +81 -0
- package/skills/cold-email/references/frameworks.md +90 -0
- package/skills/cold-email/references/personalization.md +79 -0
- package/skills/cold-email/references/subject-lines.md +53 -0
- package/skills/competitive-intel/SKILL.md +433 -0
- package/skills/competitive-intel/references/competitive-frameworks.md +145 -0
- package/skills/competitor-alternatives/SKILL.md +362 -0
- package/skills/competitor-alternatives/evals/evals.json +93 -0
- package/skills/competitor-alternatives/references/content-architecture.md +271 -0
- package/skills/competitor-alternatives/references/templates.md +223 -0
- package/skills/concreteness-fixer/SKILL.md +483 -0
- package/skills/concreteness-fixer/scripts/validation/concreteness-validator.js +221 -0
- package/skills/concreteness-fixer/utils/execFileNoThrow.js +16 -0
- package/skills/content-atomizer/SKILL.md +424 -0
- package/skills/content-atomizer/references/hook-strategies.md +56 -0
- package/skills/content-atomizer/references/platform-specs.md +118 -0
- package/skills/content-atomizer/references/platforms/bluesky.md +64 -0
- package/skills/content-atomizer/references/platforms/instagram.md +77 -0
- package/skills/content-atomizer/references/platforms/linkedin.md +120 -0
- package/skills/content-atomizer/references/platforms/reddit.md +73 -0
- package/skills/content-atomizer/references/platforms/threads.md +64 -0
- package/skills/content-atomizer/references/platforms/tiktok.md +55 -0
- package/skills/content-atomizer/references/platforms/twitter.md +123 -0
- package/skills/content-atomizer/references/platforms/youtube.md +56 -0
- package/skills/content-atomizer/references/tweet-patterns.md +40 -0
- package/skills/content-repost-manager/SKILL.md +245 -0
- package/skills/content-repost-manager/scripts/content-repost-scan.py +133 -0
- package/skills/context-recovery/.clawdhub/origin.json +7 -0
- package/skills/context-recovery/SKILL.md +198 -0
- package/skills/context-recovery/_meta.json +6 -0
- package/skills/conversion-flow-cro/SKILL.md +248 -0
- package/skills/conversion-flow-cro/references/flow-benchmarks.md +158 -0
- package/skills/copy-editing/SKILL.md +474 -0
- package/skills/copy-editing/evals/evals.json +89 -0
- package/skills/copy-editing/references/plain-english-alternatives.md +394 -0
- package/skills/copywriting/SKILL.md +349 -0
- package/skills/copywriting/evals/evals.json +111 -0
- package/skills/copywriting/references/awareness-level-guide.md +227 -0
- package/skills/copywriting/references/copy-frameworks.md +389 -0
- package/skills/copywriting/references/natural-transitions.md +272 -0
- package/skills/creative/SKILL.md +365 -0
- package/skills/creative/modes/ad-creative.md +1748 -0
- package/skills/creative/modes/product-photo.md +1520 -0
- package/skills/creative/modes/product-video.md +1657 -0
- package/skills/creative/modes/social-graphics.md +1511 -0
- package/skills/creative/modes/talking-head.md +2208 -0
- package/skills/creative/references/VISUAL_INTELLIGENCE.md +1233 -0
- package/skills/deep-serp-article/SKILL.md +677 -0
- package/skills/deep-serp-article/SKILL.md.bak +530 -0
- package/skills/earned-media/SKILL.md +260 -0
- package/skills/email-sequences/SKILL.md +446 -0
- package/skills/email-sequences/references/sequence-templates.md +1217 -0
- package/skills/firecrawl/.skill-meta.json +13 -0
- package/skills/firecrawl/SKILL.md +154 -0
- package/skills/firecrawl/rules/install.md +63 -0
- package/skills/firecrawl/rules/security.md +26 -0
- package/skills/form-cro/SKILL.md +429 -0
- package/skills/form-cro/evals/evals.json +90 -0
- package/skills/free-tool-strategy/SKILL.md +325 -0
- package/skills/free-tool-strategy/evals/evals.json +90 -0
- package/skills/free-tool-strategy/references/tool-types.md +253 -0
- package/skills/frontend-slides/SKILL.md +248 -0
- package/skills/frontend-slides/STYLE_PRESETS.md +347 -0
- package/skills/frontend-slides/animation-patterns.md +110 -0
- package/skills/frontend-slides/html-template.md +347 -0
- package/skills/frontend-slides/scripts/extract-pptx.py +96 -0
- package/skills/frontend-slides/viewport-base.css +153 -0
- package/skills/guardrail-framework/SKILL.md +319 -0
- package/skills/hook-generator/SKILL.md +438 -0
- package/skills/hook-generator/database/2026-PLATFORM-RESEARCH.md +211 -0
- package/skills/hook-generator/database/instagram-hooks.json +591 -0
- package/skills/hook-generator/database/linkedin-hooks.json +502 -0
- package/skills/hook-generator/database/medium-hooks.json +181 -0
- package/skills/hook-generator/database/tiktok-hooks.json +337 -0
- package/skills/hook-generator/database/twitter-hooks.json +567 -0
- package/skills/hook-generator/database/youtube-hooks.json +275 -0
- package/skills/hook-generator/package-lock.json +24 -0
- package/skills/hook-generator/package.json +5 -0
- package/skills/hook-generator/references/hook-generation-system.md +257 -0
- package/skills/hook-generator/references/hook-performance-analysis.json +153 -0
- package/skills/hook-generator/references/hooks-library.md +128 -0
- package/skills/hook-generator/references/platform-hook-frameworks.md +275 -0
- package/skills/hook-generator/scripts/generate-hooks-unified.js +722 -0
- package/skills/hook-generator/scripts/generate-hooks.js +225 -0
- package/skills/hook-generator/scripts/generate.sh +36 -0
- package/skills/hook-generator/scripts/ralph-hook-enhancer.js +864 -0
- package/skills/hook-generator/scripts/test-gemini-output.js +51 -0
- package/skills/humanizer/README.md +120 -0
- package/skills/humanizer/SKILL.md +699 -0
- package/skills/image-gen/SKILL.md +277 -0
- package/skills/image-gen/references/prompt-patterns.md +114 -0
- package/skills/image-gen/references/visual-metaphors.md +51 -0
- package/skills/impeccable/SKILL.md +86 -0
- package/skills/impeccable/reference/adapt.md +312 -0
- package/skills/impeccable/reference/adapt.native.md +58 -0
- package/skills/impeccable/reference/android.md +40 -0
- package/skills/impeccable/reference/animate.md +86 -0
- package/skills/impeccable/reference/audit.md +136 -0
- package/skills/impeccable/reference/audit.native.md +139 -0
- package/skills/impeccable/reference/bolder.md +31 -0
- package/skills/impeccable/reference/clarify.md +94 -0
- package/skills/impeccable/reference/colorize.md +86 -0
- package/skills/impeccable/reference/craft-floor.md +42 -0
- package/skills/impeccable/reference/craft.md +5 -0
- package/skills/impeccable/reference/critique.md +788 -0
- package/skills/impeccable/reference/degraded/asset-producer.md +90 -0
- package/skills/impeccable/reference/degraded/documenter.md +24 -0
- package/skills/impeccable/reference/degraded/finish-reviewer.md +37 -0
- package/skills/impeccable/reference/degraded/manual-edit-applier.md +92 -0
- package/skills/impeccable/reference/delight.md +70 -0
- package/skills/impeccable/reference/distill.md +111 -0
- package/skills/impeccable/reference/doctor.md +53 -0
- package/skills/impeccable/reference/document.md +416 -0
- package/skills/impeccable/reference/extract.md +69 -0
- package/skills/impeccable/reference/harden.md +336 -0
- package/skills/impeccable/reference/hooks.md +105 -0
- package/skills/impeccable/reference/init.md +125 -0
- package/skills/impeccable/reference/ios.md +45 -0
- package/skills/impeccable/reference/layout.md +84 -0
- package/skills/impeccable/reference/live-setup.md +102 -0
- package/skills/impeccable/reference/live.md +323 -0
- package/skills/impeccable/reference/new-work.md +110 -0
- package/skills/impeccable/reference/onboard.md +234 -0
- package/skills/impeccable/reference/operate.md +61 -0
- package/skills/impeccable/reference/optimize.md +258 -0
- package/skills/impeccable/reference/overdrive.md +127 -0
- package/skills/impeccable/reference/polish.md +97 -0
- package/skills/impeccable/reference/quieter.md +99 -0
- package/skills/impeccable/reference/routing.md +18 -0
- package/skills/impeccable/reference/shape.md +59 -0
- package/skills/impeccable/reference/typeset.md +80 -0
- package/skills/impeccable/reference/visualize.md +49 -0
- package/skills/impeccable/scripts/command-metadata.json +94 -0
- package/skills/impeccable/scripts/concept-seed.mjs +558 -0
- package/skills/impeccable/scripts/context-signals.mjs +334 -0
- package/skills/impeccable/scripts/context.mjs +1467 -0
- package/skills/impeccable/scripts/critique-storage.mjs +213 -0
- package/skills/impeccable/scripts/detect-csp.mjs +198 -0
- package/skills/impeccable/scripts/detect.mjs +21 -0
- package/skills/impeccable/scripts/detector/browser/injected/index.mjs +2023 -0
- package/skills/impeccable/scripts/detector/cli/main.mjs +438 -0
- package/skills/impeccable/scripts/detector/design-system.mjs +1046 -0
- package/skills/impeccable/scripts/detector/detect-antipatterns-browser.js +8283 -0
- package/skills/impeccable/scripts/detector/detect-antipatterns.mjs +50 -0
- package/skills/impeccable/scripts/detector/engines/browser/detect-url.mjs +372 -0
- package/skills/impeccable/scripts/detector/engines/regex/detect-text.mjs +1168 -0
- package/skills/impeccable/scripts/detector/engines/static-html/css-cascade.mjs +1186 -0
- package/skills/impeccable/scripts/detector/engines/static-html/detect-html.mjs +264 -0
- package/skills/impeccable/scripts/detector/engines/visual/screenshot-contrast.mjs +189 -0
- package/skills/impeccable/scripts/detector/findings.mjs +18 -0
- package/skills/impeccable/scripts/detector/node/file-system.mjs +203 -0
- package/skills/impeccable/scripts/detector/profile/profiler.mjs +166 -0
- package/skills/impeccable/scripts/detector/registry/antipatterns.mjs +617 -0
- package/skills/impeccable/scripts/detector/rules/checks.mjs +5580 -0
- package/skills/impeccable/scripts/detector/shared/color.mjs +124 -0
- package/skills/impeccable/scripts/detector/shared/constants.mjs +112 -0
- package/skills/impeccable/scripts/detector/shared/fonts.mjs +30 -0
- package/skills/impeccable/scripts/detector/shared/inline-ignores.mjs +148 -0
- package/skills/impeccable/scripts/detector/shared/page.mjs +7 -0
- package/skills/impeccable/scripts/doctor.mjs +336 -0
- package/skills/impeccable/scripts/embed-prompt.mjs +133 -0
- package/skills/impeccable/scripts/generate-image.mjs +240 -0
- package/skills/impeccable/scripts/hook-admin.mjs +801 -0
- package/skills/impeccable/scripts/hook-before-edit.mjs +508 -0
- package/skills/impeccable/scripts/hook-lib.mjs +2153 -0
- package/skills/impeccable/scripts/hook.mjs +78 -0
- package/skills/impeccable/scripts/lib/artifact-schema.mjs +93 -0
- package/skills/impeccable/scripts/lib/composition-catalog.mjs +200 -0
- package/skills/impeccable/scripts/lib/concept-catalog.mjs +384 -0
- package/skills/impeccable/scripts/lib/design-parser.mjs +925 -0
- package/skills/impeccable/scripts/lib/impeccable-config.mjs +658 -0
- package/skills/impeccable/scripts/lib/impeccable-paths.mjs +137 -0
- package/skills/impeccable/scripts/lib/is-generated.mjs +69 -0
- package/skills/impeccable/scripts/lib/provider.mjs +5 -0
- package/skills/impeccable/scripts/lib/roll-selection.mjs +362 -0
- package/skills/impeccable/scripts/lib/staleness-deep.mjs +478 -0
- package/skills/impeccable/scripts/lib/staleness-notice.mjs +169 -0
- package/skills/impeccable/scripts/lib/staleness.mjs +457 -0
- package/skills/impeccable/scripts/lib/surface-briefs.mjs +151 -0
- package/skills/impeccable/scripts/lib/target-args.mjs +42 -0
- package/skills/impeccable/scripts/lib/target-slug.mjs +33 -0
- package/skills/impeccable/scripts/lib/template-extensions.mjs +146 -0
- package/skills/impeccable/scripts/live/accept-css.mjs +617 -0
- package/skills/impeccable/scripts/live/accept-verify.mjs +60 -0
- package/skills/impeccable/scripts/live/browser-script-parts.mjs +55 -0
- package/skills/impeccable/scripts/live/completion.mjs +28 -0
- package/skills/impeccable/scripts/live/event-validation.mjs +199 -0
- package/skills/impeccable/scripts/live/frameworks/astro.mjs +47 -0
- package/skills/impeccable/scripts/live/frameworks/detect-utils.mjs +73 -0
- package/skills/impeccable/scripts/live/frameworks/index.mjs +143 -0
- package/skills/impeccable/scripts/live/frameworks/journal.mjs +197 -0
- package/skills/impeccable/scripts/live/frameworks/nextjs.mjs +49 -0
- package/skills/impeccable/scripts/live/frameworks/nuxt.mjs +161 -0
- package/skills/impeccable/scripts/live/frameworks/script-src.mjs +17 -0
- package/skills/impeccable/scripts/live/frameworks/static-html.mjs +26 -0
- package/skills/impeccable/scripts/live/frameworks/sveltekit.mjs +71 -0
- package/skills/impeccable/scripts/live/frameworks/tag-strategy.mjs +247 -0
- package/skills/impeccable/scripts/live/frameworks/tanstack-start.mjs +70 -0
- package/skills/impeccable/scripts/live/frameworks/vite-generic.mjs +42 -0
- package/skills/impeccable/scripts/live/generation-preflight.mjs +149 -0
- package/skills/impeccable/scripts/live/insert-ui.mjs +458 -0
- package/skills/impeccable/scripts/live/instructions.mjs +142 -0
- package/skills/impeccable/scripts/live/manual-apply.mjs +939 -0
- package/skills/impeccable/scripts/live/manual-edit-routes.mjs +357 -0
- package/skills/impeccable/scripts/live/manual-edits-buffer.mjs +152 -0
- package/skills/impeccable/scripts/live/poll-lanes.mjs +14 -0
- package/skills/impeccable/scripts/live/roots.mjs +508 -0
- package/skills/impeccable/scripts/live/session-store.mjs +563 -0
- package/skills/impeccable/scripts/live/source-lock.mjs +105 -0
- package/skills/impeccable/scripts/live/source-search.mjs +105 -0
- package/skills/impeccable/scripts/live/svelte-ast.mjs +961 -0
- package/skills/impeccable/scripts/live/svelte-component.mjs +1342 -0
- package/skills/impeccable/scripts/live/sveltekit-adapter.mjs +316 -0
- package/skills/impeccable/scripts/live/tanstack-adapter.mjs +280 -0
- package/skills/impeccable/scripts/live/ui-core.mjs +180 -0
- package/skills/impeccable/scripts/live/vocabulary.mjs +171 -0
- package/skills/impeccable/scripts/live-accept.mjs +954 -0
- package/skills/impeccable/scripts/live-browser-dom.js +146 -0
- package/skills/impeccable/scripts/live-browser-session.js +123 -0
- package/skills/impeccable/scripts/live-browser.js +12520 -0
- package/skills/impeccable/scripts/live-commit-manual-edits.mjs +1244 -0
- package/skills/impeccable/scripts/live-complete.mjs +107 -0
- package/skills/impeccable/scripts/live-copy-edit-agent.mjs +683 -0
- package/skills/impeccable/scripts/live-discard-manual-edits.mjs +51 -0
- package/skills/impeccable/scripts/live-inject.mjs +503 -0
- package/skills/impeccable/scripts/live-insert.mjs +292 -0
- package/skills/impeccable/scripts/live-manual-edit-evidence.mjs +368 -0
- package/skills/impeccable/scripts/live-poll.mjs +429 -0
- package/skills/impeccable/scripts/live-resume.mjs +123 -0
- package/skills/impeccable/scripts/live-server.mjs +1669 -0
- package/skills/impeccable/scripts/live-status.mjs +71 -0
- package/skills/impeccable/scripts/live-target.mjs +30 -0
- package/skills/impeccable/scripts/live-wrap.mjs +927 -0
- package/skills/impeccable/scripts/live.mjs +359 -0
- package/skills/impeccable/scripts/modern-screenshot.umd.js +14 -0
- package/skills/impeccable/scripts/palette.mjs +628 -0
- package/skills/impeccable/scripts/pin.mjs +221 -0
- package/skills/impeccable/scripts/serve-question.mjs +932 -0
- package/skills/impeccable/scripts/surface-brief.mjs +74 -0
- package/skills/inkstone-admin/SKILL.md +66 -0
- package/skills/jev-hook-gate/SKILL.md +111 -0
- package/skills/keyword-research/SKILL.md +503 -0
- package/skills/keyword-research/references/dr-cap-and-confidence.md +62 -0
- package/skills/keyword-research/references/keyword-examples.md +769 -0
- package/skills/landing-page-architect/SKILL.md +585 -0
- package/skills/landing-page-architect/references/architecture-reference.md +32 -0
- package/skills/launch-strategy/SKILL.md +384 -0
- package/skills/launch-strategy/evals/evals.json +91 -0
- package/skills/launch-strategy/references/launch-checklist.md +209 -0
- package/skills/launch-strategy/references/launch-timeline.md +159 -0
- package/skills/lead-email-craft/SKILL.md +522 -0
- package/skills/lead-magnets/SKILL.md +310 -0
- package/skills/lead-magnets/references/benchmarks.md +129 -0
- package/skills/lead-magnets/references/format-guide.md +196 -0
- package/skills/link-building-seo/SKILL.md +210 -0
- package/skills/lint-report.txt +1 -0
- package/skills/manifest.json +129 -0
- package/skills/marketing-demo/SKILL.md +249 -0
- package/skills/marketing-demo/references/remotion-examples.md +281 -0
- package/skills/marketing-ideas/SKILL.md +167 -0
- package/skills/marketing-ideas/evals/evals.json +90 -0
- package/skills/marketing-ideas/references/ideas-by-category.md +366 -0
- package/skills/marketing-psychology/SKILL.md +374 -0
- package/skills/marketing-psychology/evals/evals.json +88 -0
- package/skills/marketing-psychology/references/case-studies.md +148 -0
- package/skills/narrative-research-article/SKILL.md +469 -0
- package/skills/narrative-research-article/references/lanusse-patterns.md +166 -0
- package/skills/notebooklm/SKILL.md +674 -0
- package/skills/off-page-seo/SKILL.md +219 -0
- package/skills/onboarding-cro/SKILL.md +220 -0
- package/skills/onboarding-cro/evals/evals.json +92 -0
- package/skills/onboarding-cro/references/experiments.md +258 -0
- package/skills/original-research/SKILL.md +388 -0
- package/skills/page-cro/SKILL.md +269 -0
- package/skills/page-cro/references/cro-benchmarks.md +140 -0
- package/skills/paper-marketing/SKILL.md +448 -0
- package/skills/paper-marketing/references/agent-quality-rubric.md +68 -0
- package/skills/paper-marketing/references/brand-system-template.md +120 -0
- package/skills/paper-marketing/references/paper-mcp-rules.md +71 -0
- package/skills/paper-marketing/references/platform-conventions.md +43 -0
- package/skills/paywall-upgrade-cro/SKILL.md +227 -0
- package/skills/paywall-upgrade-cro/evals/evals.json +93 -0
- package/skills/paywall-upgrade-cro/references/experiments.md +164 -0
- package/skills/platform-formatting/SKILL.md +51 -0
- package/skills/popup-cro/SKILL.md +454 -0
- package/skills/popup-cro/evals/evals.json +94 -0
- package/skills/positioning-angles/SKILL.md +524 -0
- package/skills/positioning-angles/references/ad-matrix-and-examples.md +176 -0
- package/skills/positioning-angles/references/angle-frameworks.md +187 -0
- package/skills/positioning-angles/references/dunford-positioning.md +135 -0
- package/skills/positioning-angles/references/hormozi-offer.md +247 -0
- package/skills/positioning-angles/references/schwartz-sophistication.md +166 -0
- package/skills/positioning-angles/references/unique-mechanism.md +162 -0
- package/skills/pricing-strategy/SKILL.md +346 -0
- package/skills/pricing-strategy/evals/evals.json +90 -0
- package/skills/pricing-strategy/references/research-methods.md +152 -0
- package/skills/pricing-strategy/references/tier-structure.md +307 -0
- package/skills/programmatic-seo/SKILL.md +238 -0
- package/skills/programmatic-seo/evals/evals.json +94 -0
- package/skills/programmatic-seo/references/playbooks.md +308 -0
- package/skills/project-rag/SKILL.md +127 -0
- package/skills/quality-gate/SKILL.md +519 -0
- package/skills/quality-gate/judge-personas/buyer.md +47 -0
- package/skills/quality-gate/judge-personas/expert.md +47 -0
- package/skills/quality-gate/judge-personas/outsider.md +47 -0
- package/skills/quality-gate/judge-personas/scanner.md +41 -0
- package/skills/quality-gate/judge-personas/skeptic.md +40 -0
- package/skills/referral-program/SKILL.md +290 -0
- package/skills/referral-program/evals/evals.json +89 -0
- package/skills/referral-program/references/affiliate-programs.md +163 -0
- package/skills/referral-program/references/program-examples.md +143 -0
- package/skills/review-sites/SKILL.md +279 -0
- package/skills/revops/SKILL.md +343 -0
- package/skills/revops/evals/evals.json +91 -0
- package/skills/revops/references/automation-playbooks.md +290 -0
- package/skills/revops/references/lifecycle-definitions.md +278 -0
- package/skills/revops/references/routing-rules.md +203 -0
- package/skills/revops/references/scoring-models.md +247 -0
- package/skills/saas-product-seo/SKILL.md +324 -0
- package/skills/sales-enablement/SKILL.md +349 -0
- package/skills/sales-enablement/evals/evals.json +91 -0
- package/skills/sales-enablement/references/deck-frameworks.md +263 -0
- package/skills/sales-enablement/references/demo-scripts.md +355 -0
- package/skills/sales-enablement/references/objection-library.md +270 -0
- package/skills/sales-enablement/references/one-pager-templates.md +208 -0
- package/skills/schema-markup/SKILL.md +179 -0
- package/skills/schema-markup/evals/evals.json +87 -0
- package/skills/schema-markup/references/schema-examples.md +398 -0
- package/skills/self-improve/SKILL.md +166 -0
- package/skills/self-improving-agent/README.md +243 -0
- package/skills/self-improving-agent/SKILL.md +437 -0
- package/skills/self-improving-agent/scripts/__init__.py +16 -0
- package/skills/self-improving-agent/scripts/__pycache__/auto_detect.cpython-314.pyc +0 -0
- package/skills/self-improving-agent/scripts/__pycache__/nlm_curation.cpython-314.pyc +0 -0
- package/skills/self-improving-agent/scripts/__pycache__/self_improving_agent.cpython-314.pyc +0 -0
- package/skills/self-improving-agent/scripts/auto_detect.py +270 -0
- package/skills/self-improving-agent/scripts/init_expertise_registry.py +89 -0
- package/skills/self-improving-agent/scripts/nlm_curation.py +259 -0
- package/skills/self-improving-agent/scripts/self-improving-agent +113 -0
- package/skills/self-improving-agent/scripts/self_improving_agent.py +603 -0
- package/skills/self-improving-agent/scripts/test_curation_scorer.py +20 -0
- package/skills/self-improving-agent/scripts/test_self_improving.py +184 -0
- package/skills/send-email/SKILL.md +426 -0
- package/skills/send-email/references/batch-email-examples.md +807 -0
- package/skills/send-email/references/best-practices.md +453 -0
- package/skills/send-email/references/installation.md +123 -0
- package/skills/send-email/references/single-email-examples.md +470 -0
- package/skills/send-email/references/webhooks.md +221 -0
- package/skills/seo-audit/SKILL.md +362 -0
- package/skills/seo-audit/references/ai-writing-detection.md +200 -0
- package/skills/seo-audit/references/architecture-patterns.md +271 -0
- package/skills/seo-audit/references/schema-templates.md +427 -0
- package/skills/seo-content/SKILL.md +510 -0
- package/skills/seo-content/references/anti-ai-detection.md +184 -0
- package/skills/seo-content/references/content-structures.md +148 -0
- package/skills/seo-content/references/eeat-examples.md +235 -0
- package/skills/seo-content/references/on-page-seo.md +261 -0
- package/skills/seo-content/references/pseo-playbooks.md +226 -0
- package/skills/seo-content/references/schema-templates.md +104 -0
- package/skills/seo-content/references/serp-analysis-format.md +151 -0
- package/skills/seo-machine/SKILL.md +331 -0
- package/skills/seo-machine/assets/brand-template.md +73 -0
- package/skills/seo-machine/assets/link-inventory-template.md +74 -0
- package/skills/seo-machine/assets/roadmap-template.md +184 -0
- package/skills/seo-machine/references/api-stack-recipes.md +230 -0
- package/skills/seo-machine/references/exa-recipes.md +260 -0
- package/skills/seo-machine/references/manual-research.md +73 -0
- package/skills/seo-machine/references/methodology.md +87 -0
- package/skills/seo-machine/references/off-page.md +123 -0
- package/skills/seo-machine/references/patterns/alternatives.md +176 -0
- package/skills/seo-machine/references/patterns/compare.md +105 -0
- package/skills/seo-machine/references/patterns/playbooks.md +106 -0
- package/skills/seo-machine/references/patterns/use-case.md +109 -0
- package/skills/seo-machine/references/quality-bars.md +99 -0
- package/skills/seo-machine/references/stacks/astro.md +156 -0
- package/skills/seo-machine/references/stacks/detection.md +61 -0
- package/skills/seo-machine/references/stacks/markdown-fallback.md +181 -0
- package/skills/seo-machine/references/stacks/nextjs.md +108 -0
- package/skills/seo-machine/references/stacks/rails-inertia.md +99 -0
- package/skills/seo-machine/references/striking-distance.md +116 -0
- package/skills/seo-machine/references/technical-audit.md +153 -0
- package/skills/seo-machine/scripts/link_audit.py +265 -0
- package/skills/seo-machine/scripts/tech_audit.py +221 -0
- package/skills/seo-machine/scripts/word_count.py +154 -0
- package/skills/sharp-thesis-validator/SKILL.md +393 -0
- package/skills/sharp-thesis-validator/examples.md +186 -0
- package/skills/signup-flow-cro/SKILL.md +359 -0
- package/skills/signup-flow-cro/evals/evals.json +88 -0
- package/skills/site-architecture/SKILL.md +357 -0
- package/skills/site-architecture/evals/evals.json +88 -0
- package/skills/site-architecture/references/mermaid-templates.md +216 -0
- package/skills/site-architecture/references/navigation-patterns.md +305 -0
- package/skills/site-architecture/references/site-type-templates.md +293 -0
- package/skills/skill-self-improvement/SKILL.md +151 -0
- package/skills/slideshow-script/SKILL.md +274 -0
- package/skills/slideshow-script/references/content-spec-schema.md +77 -0
- package/skills/slideshow-script/references/frameworks.md +84 -0
- package/skills/slideshow-script/references/paips-framework.md +37 -0
- package/skills/social-campaign/SKILL.md +419 -0
- package/skills/social-campaign/references/paper-mcp-workflow.md +48 -0
- package/skills/social-content/SKILL.md +359 -0
- package/skills/social-content/evals/evals.json +92 -0
- package/skills/social-content/references/platforms.md +170 -0
- package/skills/social-content/references/post-templates.md +177 -0
- package/skills/social-content/references/reverse-engineering.md +195 -0
- package/skills/social-worker/SKILL.md +204 -0
- package/skills/startup-launcher/SKILL.md +252 -0
- package/skills/startup-launcher/references/file-router.md +64 -0
- package/skills/startup-launcher/references/platform-matrix.md +65 -0
- package/skills/startup-launcher/references/platforms/alternativeto.md +283 -0
- package/skills/startup-launcher/references/platforms/appsumo.md +495 -0
- package/skills/startup-launcher/references/platforms/auraplusplus.md +736 -0
- package/skills/startup-launcher/references/platforms/betalist.md +98 -0
- package/skills/startup-launcher/references/platforms/capterra.md +276 -0
- package/skills/startup-launcher/references/platforms/crunchbase.md +514 -0
- package/skills/startup-launcher/references/platforms/dealify.md +291 -0
- package/skills/startup-launcher/references/platforms/dealmirror.md +313 -0
- package/skills/startup-launcher/references/platforms/desifounder.md +490 -0
- package/skills/startup-launcher/references/platforms/devhunt.md +210 -0
- package/skills/startup-launcher/references/platforms/devpost.md +448 -0
- package/skills/startup-launcher/references/platforms/fazier.md +56 -0
- package/skills/startup-launcher/references/platforms/firsto.md +489 -0
- package/skills/startup-launcher/references/platforms/g2.md +226 -0
- package/skills/startup-launcher/references/platforms/hackernews.md +99 -0
- package/skills/startup-launcher/references/platforms/hackernoon.md +385 -0
- package/skills/startup-launcher/references/platforms/indiedeals.md +367 -0
- package/skills/startup-launcher/references/platforms/indiehackers.md +80 -0
- package/skills/startup-launcher/references/platforms/kenmoo.md +231 -0
- package/skills/startup-launcher/references/platforms/labstartups.md +618 -0
- package/skills/startup-launcher/references/platforms/launchboard.md +307 -0
- package/skills/startup-launcher/references/platforms/launchfast.md +560 -0
- package/skills/startup-launcher/references/platforms/launchigniter.md +56 -0
- package/skills/startup-launcher/references/platforms/launchingnext.md +674 -0
- package/skills/startup-launcher/references/platforms/launchit.md +574 -0
- package/skills/startup-launcher/references/platforms/launchyourapp.md +677 -0
- package/skills/startup-launcher/references/platforms/libhunt.md +220 -0
- package/skills/startup-launcher/references/platforms/ltdhunt.md +221 -0
- package/skills/startup-launcher/references/platforms/microlaunch.md +45 -0
- package/skills/startup-launcher/references/platforms/openalternative.md +195 -0
- package/skills/startup-launcher/references/platforms/peerlist.md +56 -0
- package/skills/startup-launcher/references/platforms/peerpush.md +64 -0
- package/skills/startup-launcher/references/platforms/primeclub.md +282 -0
- package/skills/startup-launcher/references/platforms/productcanyon.md +190 -0
- package/skills/startup-launcher/references/platforms/producthunt.md +98 -0
- package/skills/startup-launcher/references/platforms/rankinpublic.md +315 -0
- package/skills/startup-launcher/references/platforms/rockethub.md +374 -0
- package/skills/startup-launcher/references/platforms/saasgenius.md +175 -0
- package/skills/startup-launcher/references/platforms/saashub.md +205 -0
- package/skills/startup-launcher/references/platforms/saasmantra.md +221 -0
- package/skills/startup-launcher/references/platforms/saaspirate.md +287 -0
- package/skills/startup-launcher/references/platforms/saaswarrior.md +190 -0
- package/skills/startup-launcher/references/platforms/saaszilla.md +194 -0
- package/skills/startup-launcher/references/platforms/selected.md +925 -0
- package/skills/startup-launcher/references/platforms/sideprojectors.md +86 -0
- package/skills/startup-launcher/references/platforms/softonic.md +240 -0
- package/skills/startup-launcher/references/platforms/sourceforge.md +251 -0
- package/skills/startup-launcher/references/platforms/stacksocial.md +244 -0
- package/skills/startup-launcher/references/platforms/startupstash.md +326 -0
- package/skills/startup-launcher/references/platforms/theresanaiforthat.md +253 -0
- package/skills/startup-launcher/references/platforms/tinylaunch.md +70 -0
- package/skills/startup-launcher/references/platforms/tinystartups.md +72 -0
- package/skills/startup-launcher/references/platforms/toolfolio.md +291 -0
- package/skills/startup-launcher/references/platforms/trustmrr.md +194 -0
- package/skills/startup-launcher/references/platforms/trylaunch.md +531 -0
- package/skills/startup-launcher/references/platforms/uneed.md +57 -0
- package/skills/startup-launcher/references/templates/asset-checklist.md +218 -0
- package/skills/startup-launcher/references/templates/launch-tracker.md +195 -0
- package/skills/startup-launcher/references/templates/product-brief.md +98 -0
- package/skills/summarize/.skill-meta.json +13 -0
- package/skills/summarize/SKILL.md +170 -0
- package/skills/summarize/rules/install.md +157 -0
- package/skills/summarize/rules/usage.md +207 -0
- package/skills/topical-authority/SKILL.md +307 -0
- package/skills/topical-authority/references/jake-ward-framework.md +201 -0
- package/skills/topical-authority/references/serp-clustering-algorithm.md +325 -0
- package/skills/topical-authority/scripts/orchestrator.js +367 -0
- package/skills/topical-authority/scripts/seo/analyze-competitor-coverage.js +3 -0
- package/skills/topical-authority/scripts/seo/audit-internal-links.js +3 -0
- package/skills/topical-authority/scripts/seo/build-clusters-from-serp.js +3 -0
- package/skills/topical-authority/scripts/seo/extract-keywords-from-forums.js +3 -0
- package/skills/topical-authority/scripts/seo/extract-paa-questions.js +3 -0
- package/skills/topical-authority/scripts/seo/fetch-serp-urls.js +3 -0
- package/skills/topical-authority/scripts/seo/gemini-serp-clustering.js +3 -0
- package/skills/topical-authority/scripts/seo/identify-content-gaps.js +3 -0
- package/skills/topical-authority/scripts/seo/identify-research-gaps.js +3 -0
- package/skills/topical-authority/scripts/seo/scrape-quora-questions.js +3 -0
- package/skills/topical-authority/scripts/seo/scrape-reddit-pain-points.js +3 -0
- package/skills/topical-authority/scripts/seo/weave-internal-links.js +3 -0
- package/skills/visual-style/SKILL.md +199 -0
- package/skills/voice-brand-alignment/SKILL.md +70 -0
- package/skills/voice-brand-alignment/references/ai-slop-patterns.md +405 -0
- package/skills/voice-brand-alignment/scripts/validation/gemini-voice-validator.js +96 -0
- package/skills/voice-extraction/SKILL.md +234 -0
- package/skills/voice-extraction/references/extraction-prompt.md +155 -0
- package/skills/voice-extraction/references/voice-dna-template.md +168 -0
- package/skills/voice-extraction/references/voice-elements.md +259 -0
- package/skills/voice-extraction/scripts/build-corpus.js +120 -0
- package/skills/voice-extraction/scripts/collect-sources.sh +168 -0
- package/skills/warm-outbound/SKILL.md +299 -0
- package/skills/warm-outbound/templates/warm-message.md +39 -0
- package/skills/weekly-newsletter-digest/SKILL.md +78 -0
- package/skills/x-playwriter/SKILL.md +428 -0
- package/skills/x-playwriter/scripts/x-browser.js +185 -0
- package/skills/x-post-generator-openclaw/SKILL.md +138 -0
- package/skills/x-post-generator-openclaw/scripts/generate-x-post.js +537 -0
- package/skills/x-posting-playwriter/SKILL.md +203 -0
- package/skills/x-research/SKILL.md +129 -0
- package/skills/x-research/x-research.sh +85 -0
- package/skills/youtube-summarize/SKILL.md +90 -0
- package/skills/youtube-summarize/scripts/youtube-summarize.sh +143 -0
- package/src/cli.js +349 -172
- package/src/harness/deepseek-adapter.js +102 -0
- package/src/harness/deepseek.js +225 -0
- package/src/harness/opencode-adapter.js +174 -0
- package/src/harness/pi-adapter.js +172 -0
- package/src/harness/registry.js +121 -0
- package/src/harness/telemetry.js +102 -0
- package/src/harness/types.js +165 -0
- package/src/interview.js +36 -4
- package/src/postinstall.js +10 -12
- package/templates/AGENTS.md +17 -17
- package/templates/ORG.md +1 -1
- package/templates/TOOLS.md +7 -2
- package/templates/opencode.json +26 -29
- package/wiki/doctor.md +54 -0
- package/wiki/inkstone.md +4 -4
- package/wiki/opencode.md +3 -3
- package/skills/curated.txt +0 -68
package/src/cli.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { existsSync, readFileSync, writeFileSync, mkdirSync, readdirSync, statSync, copyFileSync } from "node:fs";
|
|
1
|
+
import { existsSync, readFileSync, writeFileSync, mkdirSync, readdirSync, statSync, copyFileSync, cpSync, rmSync } from "node:fs";
|
|
2
2
|
import { join, dirname } from "node:path";
|
|
3
|
+
import { homedir } from "node:os";
|
|
3
4
|
import { fileURLToPath } from "node:url";
|
|
4
5
|
import { execSync } from "node:child_process";
|
|
5
6
|
import { runInterview } from "./interview.js";
|
|
@@ -7,220 +8,396 @@ import { runInterview } from "./interview.js";
|
|
|
7
8
|
const __dirname = dirname(fileURLToPath(import.meta.url));
|
|
8
9
|
const ROOT = join(__dirname, "..");
|
|
9
10
|
const PACKAGE_ROOT = ROOT;
|
|
11
|
+
// Sandbox support: HUCKLEBERRY_HOME redirects the state root so tests never touch
|
|
12
|
+
// a real install. HUCKLEBERRY_TEST=1 implies sandbox mode and suppresses launchd.
|
|
13
|
+
const SANDBOX = process.env.HUCKLEBERRY_TEST === "1" || !!process.env.HUCKLEBERRY_HOME;
|
|
14
|
+
const HOME = process.env.HUCKLEBERRY_HOME || homedir();
|
|
15
|
+
const HB = join(HOME, ".huckleberry");
|
|
16
|
+
const SKILLS_TARGET = join(HOME, ".claude", "skills");
|
|
10
17
|
|
|
11
|
-
const
|
|
12
|
-
|
|
13
|
-
|
|
18
|
+
const PKG = JSON.parse(readFileSync(join(PACKAGE_ROOT, "package.json"), "utf-8"));
|
|
19
|
+
const VERSION = PKG.version;
|
|
20
|
+
const PKG_NAME = PKG.name;
|
|
14
21
|
|
|
15
|
-
const commands = {
|
|
22
|
+
const commands = {
|
|
23
|
+
install,
|
|
24
|
+
update,
|
|
25
|
+
harness,
|
|
26
|
+
golden,
|
|
27
|
+
"install-pack": installPack,
|
|
28
|
+
packs: () => listPacks(),
|
|
29
|
+
doctor,
|
|
30
|
+
cro,
|
|
31
|
+
review,
|
|
32
|
+
interview: runInterview,
|
|
33
|
+
help,
|
|
34
|
+
version: () => console.log(`${PKG_NAME} v${VERSION}`),
|
|
35
|
+
};
|
|
16
36
|
|
|
17
37
|
export async function run(args) {
|
|
18
38
|
const cmd = args[0];
|
|
19
39
|
if (!cmd || cmd === "--help" || cmd === "-h") return help();
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
console.error(`Unknown command: ${cmd}\nRun 'huckleberry help' for usage.`);
|
|
24
|
-
process.exit(1);
|
|
25
|
-
}
|
|
26
|
-
try { await handler(args.slice(1)); }
|
|
40
|
+
const fn = commands[cmd];
|
|
41
|
+
if (!fn) { console.error(`Unknown command: ${cmd}\nRun 'huckleberry help' for usage.`); process.exit(1); }
|
|
42
|
+
try { await fn(args.slice(1)); }
|
|
27
43
|
catch (err) { console.error(`[ERROR] ${err.message}`); process.exit(1); }
|
|
28
44
|
}
|
|
29
45
|
|
|
30
|
-
|
|
31
|
-
console.log(
|
|
32
|
-
|
|
33
|
-
const hbDir = join(homeDir, ".huckleberry");
|
|
34
|
-
const templateDir = join(PACKAGE_ROOT, "templates");
|
|
35
|
-
|
|
36
|
-
console.log(` [1/8] Platform: ${detectPlatform()}`);
|
|
37
|
-
console.log(` [2/8] Priming OmniRoute with free models...`);
|
|
38
|
-
|
|
39
|
-
console.log(` [3/8] Creating bootstrap files...`);
|
|
40
|
-
mkdirSync(hbDir, { recursive: true });
|
|
41
|
-
mkdirSync(join(hbDir, "memory"), { recursive: true });
|
|
42
|
-
mkdirSync(join(hbDir, "taskmaster", "tasks"), { recursive: true });
|
|
43
|
-
mkdirSync(join(hbDir, "scripts"), { recursive: true });
|
|
44
|
-
mkdirSync(join(hbDir, "wiki"), { recursive: true });
|
|
45
|
-
mkdirSync(join(hbDir, "agents", "hermes"), { recursive: true });
|
|
46
|
-
mkdirSync(join(hbDir, "agents", "hermes", "fix-kimaki"), { recursive: true });
|
|
47
|
-
|
|
48
|
-
for (const t of ["SOUL.md","IDENTITY.md","COS_PROTOCOLS.md","TOOLS.md","HEARTBEAT.md","AGENTS.md","MEMORY.md","EXECUTIVE-MODE.md","ORG.md"]) {
|
|
49
|
-
const src = join(templateDir, t);
|
|
50
|
-
if (existsSync(src)) copyTemplate(src, join(hbDir, t));
|
|
51
|
-
}
|
|
46
|
+
function help() {
|
|
47
|
+
console.log(`
|
|
48
|
+
${PKG_NAME} v${VERSION} — your own AI operations department
|
|
52
49
|
|
|
53
|
-
|
|
54
|
-
const hermesSrc = join(PACKAGE_ROOT, "agents", "hermes");
|
|
55
|
-
if (existsSync(hermesSrc)) copyDirSync(hermesSrc, join(hbDir, "agents", "hermes"));
|
|
56
|
-
// Copy agent configs
|
|
57
|
-
if (existsSync(join(PACKAGE_ROOT, "agents", "cos.json"))) copyFileSync(join(PACKAGE_ROOT, "agents", "cos.json"), join(hbDir, "agents", "cos.json"));
|
|
58
|
-
if (existsSync(join(PACKAGE_ROOT, "agents", "hermes.json"))) copyFileSync(join(PACKAGE_ROOT, "agents", "hermes.json"), join(hbDir, "agents", "hermes.json"));
|
|
59
|
-
|
|
60
|
-
console.log(` [4/8] Setting up ~/.opencode/...`);
|
|
61
|
-
const opencodeDir = join(homeDir, ".opencode");
|
|
62
|
-
mkdirSync(opencodeDir, { recursive: true });
|
|
63
|
-
mkdirSync(join(opencodeDir, "plugin"), { recursive: true });
|
|
64
|
-
mkdirSync(join(opencodeDir, "mcp"), { recursive: true });
|
|
65
|
-
|
|
66
|
-
const ocConfig = join(templateDir, "opencode.json");
|
|
67
|
-
if (existsSync(ocConfig)) {
|
|
68
|
-
const config = readFileSync(ocConfig, "utf-8")
|
|
69
|
-
.replace(/\{\{USERPROFILE\}\}/g, homeDir.replace(/\\/g, "/"))
|
|
70
|
-
.replace(/\{\{HUCKLEBERRY_HOME\}\}/g, hbDir.replace(/\\/g, "/"));
|
|
71
|
-
writeFileSync(join(opencodeDir, "opencode.json"), config, "utf-8");
|
|
72
|
-
}
|
|
50
|
+
Usage: huckleberry <command>
|
|
73
51
|
|
|
74
|
-
|
|
75
|
-
|
|
52
|
+
Commands:
|
|
53
|
+
install Full first-time install (stack + core skills)
|
|
54
|
+
install-pack <p> Deploy a skill pack (or "all")
|
|
55
|
+
packs List available skill packs
|
|
56
|
+
doctor Health check — run when anything feels broken
|
|
57
|
+
harness list|set|test List/switch execution harnesses (opencode, deepseek, pi)
|
|
58
|
+
golden run Run golden-set tasks through a harness (telemetry recorded)
|
|
59
|
+
cro <url> CRO audit of a landing page (agent-powered)
|
|
60
|
+
review Weekly self-improvement review (proposals only)
|
|
61
|
+
interview First-run personalization (name, business, tone)
|
|
62
|
+
update Update to the latest version
|
|
63
|
+
help This message
|
|
76
64
|
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
const curated = join(PACKAGE_ROOT, "skills", "curated.txt");
|
|
81
|
-
if (existsSync(curated)) {
|
|
82
|
-
const list = readFileSync(curated, "utf-8").split("\n").filter(Boolean);
|
|
83
|
-
console.log(` Skills manifest: ${list.length} skills listed`);
|
|
84
|
-
}
|
|
65
|
+
Docs: https://huckleberry.ai
|
|
66
|
+
`);
|
|
67
|
+
}
|
|
85
68
|
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
69
|
+
// ---------- install ----------
|
|
70
|
+
|
|
71
|
+
async function install() {
|
|
72
|
+
console.log(`\n Installing Huckleberry v${VERSION}...\n`);
|
|
73
|
+
const steps = [
|
|
74
|
+
["Creating ~/.huckleberry...", () => {
|
|
75
|
+
mkdirSync(HB, { recursive: true });
|
|
76
|
+
for (const d of ["logs", "memory", "agents", "scripts", "taskmaster", "kanban", "mcp"]) mkdirSync(join(HB, d), { recursive: true });
|
|
77
|
+
}],
|
|
78
|
+
["Copying templates (identity, protocols, wiki)...", () => {
|
|
79
|
+
for (const f of ["AGENTS.md", "SOUL.md", "IDENTITY.md", "COS_PROTOCOLS.md", "EXECUTIVE-MODE.md", "HEARTBEAT.md", "TOOLS.md", "MEMORY.md", "ORG.md", "evergreen.md", "business-context-gate.md"]) {
|
|
80
|
+
const src = join(PACKAGE_ROOT, "templates", f);
|
|
81
|
+
if (existsSync(src)) copyFileSync(src, join(HB, f));
|
|
82
|
+
}
|
|
83
|
+
copyDirSync(join(PACKAGE_ROOT, "wiki"), join(HB, "wiki"));
|
|
84
|
+
copyDirSync(join(PACKAGE_ROOT, "agents"), join(HB, "agents"));
|
|
85
|
+
copyDirSync(join(PACKAGE_ROOT, "taskmaster"), join(HB, "taskmaster"));
|
|
86
|
+
copyDirSync(join(PACKAGE_ROOT, "kanban"), join(HB, "kanban"));
|
|
87
|
+
copyDirSync(join(PACKAGE_ROOT, "scripts"), join(HB, "scripts"));
|
|
88
|
+
}],
|
|
89
|
+
["Deploying skill packs (core + doctor)...", () => {
|
|
90
|
+
deployPack("core");
|
|
91
|
+
deployPack("doctor");
|
|
92
|
+
const count = readdirSync(SKILLS_TARGET).filter((n) => existsSync(join(SKILLS_TARGET, n, "SKILL.md"))).length;
|
|
93
|
+
console.log(` ${count} skills available in ~/.claude/skills`);
|
|
94
|
+
}],
|
|
95
|
+
["Setting up ~/.opencode/...", () => {
|
|
96
|
+
const oc = join(HOME, ".opencode");
|
|
97
|
+
mkdirSync(join(oc, "plugin"), { recursive: true });
|
|
98
|
+
copyDirSync(join(PACKAGE_ROOT, "plugins"), join(oc, "plugin"));
|
|
99
|
+
writeConfig(oc);
|
|
100
|
+
}],
|
|
101
|
+
["Installing Inkstone memory system...", () => {
|
|
102
|
+
const d = join(HB, "mcp", "inkstone");
|
|
103
|
+
mkdirSync(d, { recursive: true });
|
|
104
|
+
writeFileSync(join(d, "package.json"), JSON.stringify({ name: "huckleberry-inkstone-host", private: true, type: "module" }, null, 2));
|
|
105
|
+
execSync("npm install @jairodri/huckleberry-inkstone --no-fund --no-audit 2>/dev/null", { cwd: d, stdio: "pipe", timeout: 120000 });
|
|
106
|
+
console.log(` Inkstone installed to ${d}`);
|
|
107
|
+
}],
|
|
108
|
+
["Installing Jev judgment layer...", () => {
|
|
109
|
+
const d = join(HB, "mcp", "jev-mcp");
|
|
110
|
+
mkdirSync(d, { recursive: true });
|
|
111
|
+
writeFileSync(join(d, "package.json"), JSON.stringify({ name: "huckleberry-jev-host", private: true, type: "module" }, null, 2));
|
|
112
|
+
execSync("npm install @jkudish/jev-mcp --no-fund --no-audit 2>/dev/null", { cwd: d, stdio: "pipe", timeout: 120000 });
|
|
113
|
+
console.log(` Jev installed to ${d}`);
|
|
114
|
+
}],
|
|
115
|
+
["Setting up kanban workflows...", () => {
|
|
116
|
+
const d = join(HB, "kanban");
|
|
117
|
+
try { execSync("npm install --no-fund --no-audit 2>/dev/null", { cwd: d, stdio: "pipe", timeout: 120000 }); }
|
|
118
|
+
catch { console.log(" Kanban deps skipped (run: cd ~/.huckleberry/kanban && npm install)"); }
|
|
119
|
+
}],
|
|
120
|
+
["Writing environment template...", () => {
|
|
121
|
+
const env = join(HB, ".env");
|
|
122
|
+
if (!existsSync(env)) {
|
|
123
|
+
writeFileSync(env, [
|
|
124
|
+
"# Huckleberry environment — fill in what you use. Never commit this file.",
|
|
125
|
+
"# Discord bot token (wiki/discord.md has the setup walkthrough)",
|
|
126
|
+
"DISCORD_BOT_TOKEN=",
|
|
127
|
+
"# TypeSafe Jev API key (https://typesafe.ai) — enables judgment tools",
|
|
128
|
+
"TYPESAFE_API_KEY=",
|
|
129
|
+
"# Optional: Discord webhook for doctor alerts + self-improvement reports",
|
|
130
|
+
"DOCTOR_WEBHOOK_URL=",
|
|
131
|
+
"# Optional: channel id where Hermes posts repair reports",
|
|
132
|
+
"DOCTOR_CHANNEL_ID=",
|
|
133
|
+
"# Optional: DeepSeek API key (https://platform.deepseek.com) — enables the deepseek harness",
|
|
134
|
+
"DEEPSEEK_API_KEY=",
|
|
135
|
+
"# Optional: default execution harness override (opencode | deepseek); harness.json wins if set",
|
|
136
|
+
"HUCKLEBERRY_HARNESS=",
|
|
137
|
+
"",
|
|
138
|
+
].join("\n"));
|
|
139
|
+
}
|
|
140
|
+
}],
|
|
141
|
+
];
|
|
142
|
+
|
|
143
|
+
steps.forEach(([label, fn], i) => {
|
|
144
|
+
console.log(` [${i + 1}/${steps.length}] ${label}`);
|
|
145
|
+
fn();
|
|
146
|
+
});
|
|
147
|
+
|
|
148
|
+
// Background services (platform-specific, non-fatal)
|
|
111
149
|
try {
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
150
|
+
if (SANDBOX) throw new Error("sandbox mode — services skipped");
|
|
151
|
+
if (process.platform === "darwin") {
|
|
152
|
+
const env = { ...process.env };
|
|
153
|
+
// Safety: loading launchd services is host-global (ignores HOME). Only load when
|
|
154
|
+
// installing into the real user home AND not explicitly suppressed.
|
|
155
|
+
if (HOME !== join(homedir(), "") || env.HUCKLEBERRY_TEST === "1") {
|
|
156
|
+
env.HUCKLEBERRY_NO_LOAD = "1";
|
|
157
|
+
env.HUCKLEBERRY_TEST_HOME = HOME;
|
|
158
|
+
}
|
|
159
|
+
execSync(`bash "${join(HB, "scripts", "install-services.sh")}" 2>&1`, { env, stdio: "pipe", timeout: 60000 });
|
|
160
|
+
console.log(" Background services installed (launchd). Hermes + doctor watchdog are watching.");
|
|
161
|
+
} else if (process.platform === "win32") {
|
|
162
|
+
execSync(`powershell -ExecutionPolicy Bypass -File "${join(HB, "scripts", "install-services.ps1")}" 2>&1`, { stdio: "pipe", timeout: 60000 });
|
|
163
|
+
console.log(" Background services installed (Task Scheduler).");
|
|
164
|
+
}
|
|
165
|
+
} catch { console.log(" Background services skipped (run manually from ~/.huckleberry/scripts/)"); }
|
|
166
|
+
|
|
167
|
+
console.log(`
|
|
168
|
+
✓ Huckleberry v${VERSION} installed to ${HB}
|
|
169
|
+
✓ Skills deployed to ${SKILLS_TARGET}
|
|
170
|
+
✓ Config: ${join(HOME, ".opencode", "opencode.json")}
|
|
171
|
+
|
|
172
|
+
Next steps:
|
|
173
|
+
1. npm install -g opencode kimaki (if not installed)
|
|
174
|
+
2. huckleberry interview (personalize: name, business, tone)
|
|
175
|
+
3. Add your keys to ~/.huckleberry/.env (Discord token, Jev key)
|
|
176
|
+
4. huckleberry doctor (verify everything)
|
|
177
|
+
5. More skills anytime: huckleberry packs && huckleberry install-pack <name>
|
|
178
|
+
|
|
179
|
+
Docs: https://huckleberry.ai
|
|
180
|
+
`);
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
function writeConfig(ocDir) {
|
|
184
|
+
const dst = join(ocDir, "opencode.json");
|
|
185
|
+
const tpl = readFileSync(join(PACKAGE_ROOT, "templates", "opencode.json"), "utf-8");
|
|
186
|
+
const profile = process.platform === "win32" ? process.env.USERPROFILE : HOME;
|
|
187
|
+
let content = tpl.replaceAll("{{USERPROFILE}}", profile.replace(/\\/g, "\\\\"));
|
|
188
|
+
if (existsSync(dst)) {
|
|
189
|
+
// merge: keep user's existing config, fill in missing top-level keys
|
|
190
|
+
try {
|
|
191
|
+
const existing = JSON.parse(readFileSync(dst, "utf-8"));
|
|
192
|
+
const fresh = JSON.parse(content);
|
|
193
|
+
const merged = { ...fresh, ...existing };
|
|
194
|
+
for (const k of Object.keys(fresh)) if (existing[k] === undefined) merged[k] = fresh[k];
|
|
195
|
+
content = JSON.stringify(merged, null, 2);
|
|
196
|
+
} catch { console.log(" Existing opencode.json not valid JSON — template written alongside as opencode.json.huckleberry"); writeFileSync(join(ocDir, "opencode.json.huckleberry"), content); return; }
|
|
116
197
|
}
|
|
198
|
+
writeFileSync(dst, content);
|
|
199
|
+
}
|
|
117
200
|
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
console.log(`
|
|
129
|
-
} catch {
|
|
130
|
-
console.error(` Kanban init skipped (requires bcrypt-sqlite). Install: cd ${kanbanDir} && npm install`);
|
|
201
|
+
// ---------- skill packs ----------
|
|
202
|
+
|
|
203
|
+
function loadManifest() {
|
|
204
|
+
return JSON.parse(readFileSync(join(PACKAGE_ROOT, "skills", "manifest.json"), "utf-8"));
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
function listPacks() {
|
|
208
|
+
const m = loadManifest();
|
|
209
|
+
console.log("\n Available skill packs:\n");
|
|
210
|
+
for (const [name, skills] of Object.entries(m.packs)) {
|
|
211
|
+
console.log(` ${name.padEnd(16)} ${skills.length} skills — huckleberry install-pack ${name}`);
|
|
131
212
|
}
|
|
213
|
+
console.log(`\n Install everything: huckleberry install-pack all\n`);
|
|
214
|
+
}
|
|
132
215
|
|
|
133
|
-
|
|
134
|
-
const
|
|
135
|
-
const
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
216
|
+
function deployPack(packName) {
|
|
217
|
+
const m = loadManifest();
|
|
218
|
+
const names = packName === "all" ? Object.keys(m.packs) : [packName];
|
|
219
|
+
let deployed = 0;
|
|
220
|
+
for (const name of names) {
|
|
221
|
+
const skills = m.packs[name];
|
|
222
|
+
if (!skills) { console.error(`Unknown pack: ${name}\nAvailable: ${Object.keys(m.packs).join(", ")}, all`); process.exit(1); }
|
|
223
|
+
for (const skill of skills) {
|
|
224
|
+
const src = join(PACKAGE_ROOT, "skills", skill);
|
|
225
|
+
if (!existsSync(src)) continue;
|
|
226
|
+
cpSync(src, join(SKILLS_TARGET, skill), { recursive: true });
|
|
227
|
+
deployed++;
|
|
142
228
|
}
|
|
143
|
-
} else if (platform === "macOS" && existsSync(join(scriptsDir, "install-services.sh"))) {
|
|
144
|
-
try {
|
|
145
|
-
execSync(`bash "${join(scriptsDir, "install-services.sh")}" 2>&1`, { stdio: "pipe", timeout: 30000 });
|
|
146
|
-
console.log(` 12 macOS launchd agents installed`);
|
|
147
|
-
} catch {
|
|
148
|
-
console.error(` macOS services setup skipped (run manually: install-services.sh)`);
|
|
149
|
-
}
|
|
150
|
-
} else {
|
|
151
|
-
console.log(` Service setup skipped for ${platform}`);
|
|
152
229
|
}
|
|
230
|
+
if (packName !== "core" && packName !== "doctor") console.log(` Deployed ${deployed} skills (${packName})`);
|
|
231
|
+
return deployed;
|
|
232
|
+
}
|
|
153
233
|
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
234
|
+
async function installPack(args) {
|
|
235
|
+
const packName = args[0];
|
|
236
|
+
if (!packName || packName === "list") return listPacks();
|
|
237
|
+
mkdirSync(SKILLS_TARGET, { recursive: true });
|
|
238
|
+
const n = deployPack(packName);
|
|
239
|
+
console.log(`\n ✓ Pack "${packName}" deployed (${n} skills → ~/.claude/skills)\n Restart opencode sessions to pick them up.\n`);
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
// ---------- doctor ----------
|
|
161
243
|
|
|
162
|
-
|
|
163
|
-
console.log(` ✓
|
|
164
|
-
console.log(
|
|
165
|
-
console.log(` 1. npm install -g opencode`);
|
|
166
|
-
console.log(` 2. npm install -g kimaki`);
|
|
167
|
-
console.log(` 3. huckleberry interview`);
|
|
168
|
-
console.log(` 4. cd ~/.huckleberry && opencode\n`);
|
|
244
|
+
function check(name, fn) {
|
|
245
|
+
try { const r = fn(); console.log(` ✓ ${name}${r ? ` — ${r}` : ""}`); return true; }
|
|
246
|
+
catch (e) { console.log(` ✗ ${name} — ${e.message}`); return false; }
|
|
169
247
|
}
|
|
170
248
|
|
|
171
|
-
async function
|
|
172
|
-
console.log(`\n
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
249
|
+
async function doctor() {
|
|
250
|
+
console.log(`\n Huckleberry Doctor v${VERSION}\n`);
|
|
251
|
+
let bad = 0;
|
|
252
|
+
const C = (n, f) => { if (!check(n, f)) bad++; };
|
|
253
|
+
|
|
254
|
+
C("node", () => execSync("node --version", { stdio: "pipe" }).toString().trim());
|
|
255
|
+
C("npm", () => execSync("npm --version", { stdio: "pipe" }).toString().trim());
|
|
256
|
+
C("opencode", () => execSync("opencode --version", { stdio: "pipe" }).toString().trim());
|
|
257
|
+
C("kimaki", () => execSync("kimaki --version", { stdio: "pipe" }).toString().trim());
|
|
258
|
+
C("~/.huckleberry", () => { if (!existsSync(HB)) throw new Error("not installed — run: huckleberry install"); });
|
|
259
|
+
C("opencode config", () => { JSON.parse(readFileSync(join(HOME, ".opencode", "opencode.json"), "utf-8")); });
|
|
260
|
+
C("Inkstone MCP", () => { const p = join(HB, "mcp/inkstone/node_modules/@jairodri/huckleberry-inkstone/dist/mcp/server.js"); if (!existsSync(p)) throw new Error("missing — cd ~/.huckleberry/mcp/inkstone && npm install"); });
|
|
261
|
+
C("Jev MCP", () => { const p = join(HB, "mcp/jev-mcp/node_modules/@jkudish/jev-mcp/dist/index.js"); if (!existsSync(p)) throw new Error("missing — cd ~/.huckleberry/mcp/jev-mcp && npm install"); });
|
|
262
|
+
C("skills", () => { const n = readdirSync(SKILLS_TARGET).filter((s) => existsSync(join(SKILLS_TARGET, s, "SKILL.md"))).length; if (n < 10) throw new Error(`only ${n} skills — huckleberry install-pack all`); return `${n} skills`; });
|
|
263
|
+
C(".env keys", () => {
|
|
264
|
+
const env = join(HB, ".env");
|
|
265
|
+
if (!existsSync(env)) throw new Error("missing — run: huckleberry install");
|
|
266
|
+
const keys = readFileSync(env, "utf-8").split("\n").filter((l) => /^[A-Z_]+=/.test(l) && !l.endsWith("=")).map((l) => l.split("=")[0]);
|
|
267
|
+
if (!keys.length) throw new Error("no keys set yet (~/.huckleberry/.env) — add DISCORD_BOT_TOKEN / TYPESAFE_API_KEY");
|
|
268
|
+
return `set: ${keys.join(", ")}`;
|
|
269
|
+
});
|
|
270
|
+
C("disk", () => {
|
|
271
|
+
const out = execSync(`df -k "${HOME}" | tail -1`, { shell: "/bin/bash", stdio: "pipe" }).toString().trim().split(/\s+/);
|
|
272
|
+
const freeMb = Math.round(parseInt(out[out.length - 4] || "0", 10) / 1024);
|
|
273
|
+
if (freeMb < 2048) throw new Error(`only ${freeMb}MB free`);
|
|
274
|
+
return `${freeMb}MB free`;
|
|
275
|
+
});
|
|
276
|
+
|
|
277
|
+
console.log("");
|
|
278
|
+
if (bad === 0) {
|
|
279
|
+
console.log(" ✓ All checks passing. Your system is healthy.\n");
|
|
280
|
+
return;
|
|
178
281
|
}
|
|
282
|
+
console.log(` ${bad} check(s) failing.`);
|
|
283
|
+
console.log(" Auto-fix: say \"fix it\" to your Hermes agent, or run:");
|
|
284
|
+
console.log(` opencode run --agent hermes "huckleberry doctor shows failures — diagnose and repair per ~/.huckleberry/agents/hermes/hermes-fixer.md"\n`);
|
|
285
|
+
}
|
|
179
286
|
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
287
|
+
// ---------- harness ----------
|
|
288
|
+
|
|
289
|
+
async function harness(args) {
|
|
290
|
+
const { describeAdapters, loadDefault, saveDefault, get } = await import("./harness/registry.js");
|
|
291
|
+
const sub = args[0] || "list";
|
|
292
|
+
|
|
293
|
+
if (sub === "list") {
|
|
294
|
+
const { rows, defaultId } = await describeAdapters(HOME);
|
|
295
|
+
console.log(`\n Execution harnesses (default: ${defaultId || "opencode"})\n`);
|
|
296
|
+
for (const r of rows) {
|
|
297
|
+
const flag = r.isDefault ? " ← default" : "";
|
|
298
|
+
const state = r.ready ? "✓ ready" : `✗ ${r.reason}`;
|
|
299
|
+
console.log(` ${r.id.padEnd(10)} ${state}${flag}`);
|
|
300
|
+
console.log(` ${"".padEnd(10)} ${r.label}${r.detail ? ` — ${r.detail}` : ""}`);
|
|
301
|
+
const c = r.caps;
|
|
302
|
+
console.log(` ${"".padEnd(10)} tools:${c.tools ? "yes" : "no"} files:${c.files ? "yes" : "no"} checkpoint:${c.checkpoint ? "yes" : "no"} streaming:${c.streaming ? "yes" : "no"} · ~$${c.costPerMTokIn}/M in · ~$${c.costPerMTokOut}/M out`);
|
|
303
|
+
if (!r.ready && r.detail) console.log(` ${"".padEnd(10)} fix: ${r.detail}`);
|
|
304
|
+
console.log("");
|
|
190
305
|
}
|
|
306
|
+
console.log(` Switch default: huckleberry harness set <name>`);
|
|
307
|
+
return;
|
|
191
308
|
}
|
|
192
309
|
|
|
193
|
-
|
|
310
|
+
if (sub === "set") {
|
|
311
|
+
const id = args[1];
|
|
312
|
+
if (!id) { console.error("Usage: huckleberry harness set <opencode|deepseek>"); process.exit(1); }
|
|
313
|
+
if (!get(id)) { console.error(`Unknown harness: ${id} — run 'huckleberry harness list'`); process.exit(1); }
|
|
314
|
+
saveDefault(id, HOME);
|
|
315
|
+
console.log(`\n ✓ Default harness set to "${id}" — persisted to ${join(HB, "harness.json")}\n`);
|
|
316
|
+
return;
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
if (sub === "test") {
|
|
320
|
+
const id = args[1];
|
|
321
|
+
if (!id || !get(id)) { console.error(`Usage: huckleberry harness test <${"opencode|deepseek"}>`); process.exit(1); }
|
|
322
|
+
const a = get(id);
|
|
323
|
+
const st = await a.status();
|
|
324
|
+
const c = a.capabilities();
|
|
325
|
+
console.log(`\n ${id}: ${st.ready ? "✓ ready" : `✗ ${st.reason}`}${st.detail ? ` — ${st.detail}` : ""}`);
|
|
326
|
+
console.log(` caps: ${JSON.stringify(c)}`);
|
|
327
|
+
console.log(` interface: ${typeof a.submit === "function" && typeof a.stream === "function" && typeof a.checkpoint === "function" && typeof a.resume === "function" && typeof a.cancel === "function" && typeof a.downloadFiles === "function" ? "✓ full HarnessAdapter surface" : "✗ missing methods"}\n`);
|
|
328
|
+
process.exit(st.ready ? 0 : 4);
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
console.error(`Unknown harness subcommand: ${sub} (use list | set | test)`);
|
|
332
|
+
process.exit(1);
|
|
194
333
|
}
|
|
195
334
|
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
335
|
+
// ---------- golden ----------
|
|
336
|
+
|
|
337
|
+
async function golden(args) {
|
|
338
|
+
const sub = args[0] || "run";
|
|
339
|
+
if (sub !== "run") { console.error("Usage: huckleberry golden run --adapter <opencode|deepseek> [--filter id] [--limit N] [--verbose]"); process.exit(1); }
|
|
340
|
+
const runner = join(PACKAGE_ROOT, "tests", "golden", "runner.js");
|
|
341
|
+
if (!existsSync(runner)) { console.error("Golden set not found — tests/golden/ missing"); process.exit(1); }
|
|
342
|
+
const { spawnSync } = await import("node:child_process");
|
|
343
|
+
const rest = args.slice(1);
|
|
344
|
+
const res = spawnSync(process.execPath, [runner, ...rest], { stdio: "inherit", env: { ...process.env, HUCKLEBERRY_HOME: process.env.HUCKLEBERRY_HOME || HOME } });
|
|
345
|
+
process.exit(res.status ?? 1);
|
|
201
346
|
}
|
|
202
347
|
|
|
203
|
-
|
|
204
|
-
|
|
348
|
+
// ---------- cro ----------
|
|
349
|
+
|
|
350
|
+
async function cro(args) {
|
|
351
|
+
const url = args.find((a) => !a.startsWith("-"));
|
|
352
|
+
if (!url) { console.error("Usage: huckleberry cro <url>\nExample: huckleberry cro https://mysite.com/pricing"); process.exit(1); }
|
|
353
|
+
if (!commandExists("opencode")) { console.error("opencode not installed — npm install -g opencode"); process.exit(1); }
|
|
354
|
+
console.log(`\n Running CRO audit of ${url} (agent-powered, may take a few minutes)...\n`);
|
|
355
|
+
execSync(
|
|
356
|
+
`opencode run "Run the page-cro skill audit on ${url}. Score the page, list the top conversion problems in priority order, and give concrete fixes for each. Keep it actionable."`,
|
|
357
|
+
{ stdio: "inherit" }
|
|
358
|
+
);
|
|
205
359
|
}
|
|
206
360
|
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
361
|
+
// ---------- review ----------
|
|
362
|
+
|
|
363
|
+
async function review() {
|
|
364
|
+
if (!commandExists("opencode")) { console.error("opencode not installed — npm install -g opencode"); process.exit(1); }
|
|
365
|
+
const dir = join(HB, "logs", "self-improve");
|
|
366
|
+
mkdirSync(dir, { recursive: true });
|
|
367
|
+
const report = join(dir, `${new Date().toISOString().split("T")[0]}.md`);
|
|
368
|
+
console.log(`\n Weekly self-improvement review (proposals only — nothing is auto-changed)...\n`);
|
|
369
|
+
execSync(
|
|
370
|
+
`opencode run "Weekly self-improvement review. 1. Review recent failures/corrections in Inkstone (memory_failures, memory_search). 2. Read ${join(HB, "MEMORY.md")} and ${join(HB, "evergreen.md")}. 3. Propose 2-3 CONCRETE improvements (skill to adjust, repeated mistake to prevent, workflow to automate) with evidence and expected benefit. Do NOT apply changes — proposals only. Write the report to ${report}."`,
|
|
371
|
+
{ stdio: "inherit" }
|
|
372
|
+
);
|
|
373
|
+
console.log(`\n Report: ${report}\n`);
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
function commandExists(cmd) {
|
|
377
|
+
try { execSync(`command -v ${cmd}`, { shell: "/bin/bash", stdio: "pipe" }); return true; }
|
|
378
|
+
catch { return false; }
|
|
210
379
|
}
|
|
211
380
|
|
|
212
|
-
|
|
381
|
+
// ---------- update ----------
|
|
382
|
+
|
|
383
|
+
async function update() {
|
|
384
|
+
console.log("\n Updating Huckleberry...\n");
|
|
385
|
+
try { execSync(`npm install -g ${PKG_NAME}@latest`, { stdio: "inherit" }); }
|
|
386
|
+
catch { console.error(` ⚠ Update failed. Try: npm install -g ${PKG_NAME}@latest\n`); }
|
|
213
387
|
try {
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
388
|
+
const d = join(HB, "mcp", "inkstone");
|
|
389
|
+
if (existsSync(d)) execSync("npm update @jairodri/huckleberry-inkstone 2>/dev/null", { cwd: d, stdio: "pipe", timeout: 60000 });
|
|
390
|
+
} catch { console.error(" ⚠ Inkstone update failed. Run: cd ~/.huckleberry/mcp/inkstone && npm update"); }
|
|
391
|
+
console.log("");
|
|
218
392
|
}
|
|
219
393
|
|
|
394
|
+
// ---------- helpers ----------
|
|
395
|
+
|
|
220
396
|
function copyDirSync(src, dst) {
|
|
397
|
+
if (!existsSync(src)) return;
|
|
221
398
|
mkdirSync(dst, { recursive: true });
|
|
222
399
|
for (const entry of readdirSync(src)) {
|
|
223
|
-
if (entry === ".git" || entry === "node_modules") continue;
|
|
400
|
+
if (entry === ".git" || entry === "node_modules" || entry === "lint-report.txt") continue;
|
|
224
401
|
const s = join(src, entry), d = join(dst, entry);
|
|
225
402
|
if (statSync(s).isDirectory()) copyDirSync(s, d); else copyFileSync(s, d);
|
|
226
403
|
}
|