jfl 0.0.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/LICENSE +21 -0
- package/README.md +313 -0
- package/clawdbot-skill/README.md +328 -0
- package/clawdbot-skill/SKILL.md +362 -0
- package/clawdbot-skill/index.ts +486 -0
- package/clawdbot-skill/package.json +28 -0
- package/clawdbot-skill/skill.json +28 -0
- package/dist/commands/agents.d.ts +5 -0
- package/dist/commands/agents.d.ts.map +1 -0
- package/dist/commands/agents.js +399 -0
- package/dist/commands/agents.js.map +1 -0
- package/dist/commands/context-hub.d.ts +12 -0
- package/dist/commands/context-hub.d.ts.map +1 -0
- package/dist/commands/context-hub.js +642 -0
- package/dist/commands/context-hub.js.map +1 -0
- package/dist/commands/deploy.d.ts +5 -0
- package/dist/commands/deploy.d.ts.map +1 -0
- package/dist/commands/deploy.js +370 -0
- package/dist/commands/deploy.js.map +1 -0
- package/dist/commands/feedback.d.ts +2 -0
- package/dist/commands/feedback.d.ts.map +1 -0
- package/dist/commands/feedback.js +178 -0
- package/dist/commands/feedback.js.map +1 -0
- package/dist/commands/hud.d.ts +4 -0
- package/dist/commands/hud.d.ts.map +1 -0
- package/dist/commands/hud.js +262 -0
- package/dist/commands/hud.js.map +1 -0
- package/dist/commands/init.d.ts +4 -0
- package/dist/commands/init.d.ts.map +1 -0
- package/dist/commands/init.js +553 -0
- package/dist/commands/init.js.map +1 -0
- package/dist/commands/login.d.ts +23 -0
- package/dist/commands/login.d.ts.map +1 -0
- package/dist/commands/login.js +818 -0
- package/dist/commands/login.js.map +1 -0
- package/dist/commands/ralph.d.ts +9 -0
- package/dist/commands/ralph.d.ts.map +1 -0
- package/dist/commands/ralph.js +67 -0
- package/dist/commands/ralph.js.map +1 -0
- package/dist/commands/repair.d.ts +7 -0
- package/dist/commands/repair.d.ts.map +1 -0
- package/dist/commands/repair.js +283 -0
- package/dist/commands/repair.js.map +1 -0
- package/dist/commands/session-mgmt.d.ts +33 -0
- package/dist/commands/session-mgmt.d.ts.map +1 -0
- package/dist/commands/session-mgmt.js +404 -0
- package/dist/commands/session-mgmt.js.map +1 -0
- package/dist/commands/session.d.ts +2 -0
- package/dist/commands/session.d.ts.map +1 -0
- package/dist/commands/session.js +639 -0
- package/dist/commands/session.js.map +1 -0
- package/dist/commands/skills.d.ts +31 -0
- package/dist/commands/skills.d.ts.map +1 -0
- package/dist/commands/skills.js +314 -0
- package/dist/commands/skills.js.map +1 -0
- package/dist/commands/status.d.ts +2 -0
- package/dist/commands/status.d.ts.map +1 -0
- package/dist/commands/status.js +127 -0
- package/dist/commands/status.js.map +1 -0
- package/dist/commands/synopsis.d.ts +10 -0
- package/dist/commands/synopsis.d.ts.map +1 -0
- package/dist/commands/synopsis.js +277 -0
- package/dist/commands/synopsis.js.map +1 -0
- package/dist/commands/update.d.ts +10 -0
- package/dist/commands/update.d.ts.map +1 -0
- package/dist/commands/update.js +165 -0
- package/dist/commands/update.js.map +1 -0
- package/dist/commands/voice.d.ts +410 -0
- package/dist/commands/voice.d.ts.map +1 -0
- package/dist/commands/voice.js +4763 -0
- package/dist/commands/voice.js.map +1 -0
- package/dist/index.d.ts +9 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +512 -0
- package/dist/index.js.map +1 -0
- package/dist/mcp/context-hub-mcp.d.ts +11 -0
- package/dist/mcp/context-hub-mcp.d.ts.map +1 -0
- package/dist/mcp/context-hub-mcp.js +548 -0
- package/dist/mcp/context-hub-mcp.js.map +1 -0
- package/dist/telegram/voice.d.ts +146 -0
- package/dist/telegram/voice.d.ts.map +1 -0
- package/dist/telegram/voice.js +351 -0
- package/dist/telegram/voice.js.map +1 -0
- package/dist/types/skills.d.ts +44 -0
- package/dist/types/skills.d.ts.map +1 -0
- package/dist/types/skills.js +5 -0
- package/dist/types/skills.js.map +1 -0
- package/dist/ui/banner.d.ts +18 -0
- package/dist/ui/banner.d.ts.map +1 -0
- package/dist/ui/banner.js +323 -0
- package/dist/ui/banner.js.map +1 -0
- package/dist/ui/index.d.ts +8 -0
- package/dist/ui/index.d.ts.map +1 -0
- package/dist/ui/index.js +8 -0
- package/dist/ui/index.js.map +1 -0
- package/dist/ui/prompts.d.ts +52 -0
- package/dist/ui/prompts.d.ts.map +1 -0
- package/dist/ui/prompts.js +72 -0
- package/dist/ui/prompts.js.map +1 -0
- package/dist/ui/theme.d.ts +82 -0
- package/dist/ui/theme.d.ts.map +1 -0
- package/dist/ui/theme.js +142 -0
- package/dist/ui/theme.js.map +1 -0
- package/dist/utils/auth-guard.d.ts +66 -0
- package/dist/utils/auth-guard.d.ts.map +1 -0
- package/dist/utils/auth-guard.js +348 -0
- package/dist/utils/auth-guard.js.map +1 -0
- package/dist/utils/ensure-project.d.ts +11 -0
- package/dist/utils/ensure-project.d.ts.map +1 -0
- package/dist/utils/ensure-project.js +70 -0
- package/dist/utils/ensure-project.js.map +1 -0
- package/dist/utils/git.d.ts +73 -0
- package/dist/utils/git.d.ts.map +1 -0
- package/dist/utils/git.js +219 -0
- package/dist/utils/git.js.map +1 -0
- package/dist/utils/github-auth.d.ts +54 -0
- package/dist/utils/github-auth.d.ts.map +1 -0
- package/dist/utils/github-auth.js +375 -0
- package/dist/utils/github-auth.js.map +1 -0
- package/dist/utils/github-repo.d.ts +30 -0
- package/dist/utils/github-repo.d.ts.map +1 -0
- package/dist/utils/github-repo.js +219 -0
- package/dist/utils/github-repo.js.map +1 -0
- package/dist/utils/platform-auth.d.ts +81 -0
- package/dist/utils/platform-auth.d.ts.map +1 -0
- package/dist/utils/platform-auth.js +191 -0
- package/dist/utils/platform-auth.js.map +1 -0
- package/dist/utils/project-config.d.ts +43 -0
- package/dist/utils/project-config.d.ts.map +1 -0
- package/dist/utils/project-config.js +97 -0
- package/dist/utils/project-config.js.map +1 -0
- package/dist/utils/skill-registry.d.ts +49 -0
- package/dist/utils/skill-registry.d.ts.map +1 -0
- package/dist/utils/skill-registry.js +192 -0
- package/dist/utils/skill-registry.js.map +1 -0
- package/dist/utils/wallet.d.ts +62 -0
- package/dist/utils/wallet.d.ts.map +1 -0
- package/dist/utils/wallet.js +252 -0
- package/dist/utils/wallet.js.map +1 -0
- package/dist/utils/x402-client.d.ts +86 -0
- package/dist/utils/x402-client.d.ts.map +1 -0
- package/dist/utils/x402-client.js +265 -0
- package/dist/utils/x402-client.js.map +1 -0
- package/package.json +76 -0
- package/scripts/postinstall.js +116 -0
- package/scripts/test-onboarding.sh +121 -0
- package/scripts/voice-start.sh +128 -0
- package/scripts/voice-stop.sh +33 -0
- package/template/.claude/settings.json +92 -0
- package/template/.claude/skills/agent-browser/SKILL.md +116 -0
- package/template/.claude/skills/brand-architect/SKILL.md +240 -0
- package/template/.claude/skills/brand-architect/config.yaml +137 -0
- package/template/.claude/skills/campaign-hud/config.yaml +112 -0
- package/template/.claude/skills/content-creator/SKILL.md +294 -0
- package/template/.claude/skills/debug/MULTI_AGENT.md +360 -0
- package/template/.claude/skills/debug/SKILL.md +549 -0
- package/template/.claude/skills/fly-deploy/SKILL.md +676 -0
- package/template/.claude/skills/founder-video/SKILL.md +467 -0
- package/template/.claude/skills/hud/SKILL.md +157 -0
- package/template/.claude/skills/ralph-tui/SKILL.md +210 -0
- package/template/.claude/skills/react-best-practices/AGENTS.md +2249 -0
- package/template/.claude/skills/react-best-practices/README.md +123 -0
- package/template/.claude/skills/react-best-practices/SKILL.md +125 -0
- package/template/.claude/skills/react-best-practices/metadata.json +15 -0
- package/template/.claude/skills/react-best-practices/rules/_sections.md +46 -0
- package/template/.claude/skills/react-best-practices/rules/_template.md +28 -0
- package/template/.claude/skills/react-best-practices/rules/advanced-event-handler-refs.md +55 -0
- package/template/.claude/skills/react-best-practices/rules/advanced-use-latest.md +49 -0
- package/template/.claude/skills/react-best-practices/rules/async-api-routes.md +38 -0
- package/template/.claude/skills/react-best-practices/rules/async-defer-await.md +80 -0
- package/template/.claude/skills/react-best-practices/rules/async-dependencies.md +36 -0
- package/template/.claude/skills/react-best-practices/rules/async-parallel.md +28 -0
- package/template/.claude/skills/react-best-practices/rules/async-suspense-boundaries.md +99 -0
- package/template/.claude/skills/react-best-practices/rules/bundle-barrel-imports.md +59 -0
- package/template/.claude/skills/react-best-practices/rules/bundle-conditional.md +31 -0
- package/template/.claude/skills/react-best-practices/rules/bundle-defer-third-party.md +49 -0
- package/template/.claude/skills/react-best-practices/rules/bundle-dynamic-imports.md +35 -0
- package/template/.claude/skills/react-best-practices/rules/bundle-preload.md +50 -0
- package/template/.claude/skills/react-best-practices/rules/client-event-listeners.md +74 -0
- package/template/.claude/skills/react-best-practices/rules/client-swr-dedup.md +56 -0
- package/template/.claude/skills/react-best-practices/rules/js-batch-dom-css.md +82 -0
- package/template/.claude/skills/react-best-practices/rules/js-cache-function-results.md +80 -0
- package/template/.claude/skills/react-best-practices/rules/js-cache-property-access.md +28 -0
- package/template/.claude/skills/react-best-practices/rules/js-cache-storage.md +70 -0
- package/template/.claude/skills/react-best-practices/rules/js-combine-iterations.md +32 -0
- package/template/.claude/skills/react-best-practices/rules/js-early-exit.md +50 -0
- package/template/.claude/skills/react-best-practices/rules/js-hoist-regexp.md +45 -0
- package/template/.claude/skills/react-best-practices/rules/js-index-maps.md +37 -0
- package/template/.claude/skills/react-best-practices/rules/js-length-check-first.md +49 -0
- package/template/.claude/skills/react-best-practices/rules/js-min-max-loop.md +82 -0
- package/template/.claude/skills/react-best-practices/rules/js-set-map-lookups.md +24 -0
- package/template/.claude/skills/react-best-practices/rules/js-tosorted-immutable.md +57 -0
- package/template/.claude/skills/react-best-practices/rules/rendering-activity.md +26 -0
- package/template/.claude/skills/react-best-practices/rules/rendering-animate-svg-wrapper.md +47 -0
- package/template/.claude/skills/react-best-practices/rules/rendering-conditional-render.md +40 -0
- package/template/.claude/skills/react-best-practices/rules/rendering-content-visibility.md +38 -0
- package/template/.claude/skills/react-best-practices/rules/rendering-hoist-jsx.md +46 -0
- package/template/.claude/skills/react-best-practices/rules/rendering-hydration-no-flicker.md +82 -0
- package/template/.claude/skills/react-best-practices/rules/rendering-svg-precision.md +28 -0
- package/template/.claude/skills/react-best-practices/rules/rerender-defer-reads.md +39 -0
- package/template/.claude/skills/react-best-practices/rules/rerender-dependencies.md +45 -0
- package/template/.claude/skills/react-best-practices/rules/rerender-derived-state.md +29 -0
- package/template/.claude/skills/react-best-practices/rules/rerender-functional-setstate.md +74 -0
- package/template/.claude/skills/react-best-practices/rules/rerender-lazy-state-init.md +58 -0
- package/template/.claude/skills/react-best-practices/rules/rerender-memo.md +44 -0
- package/template/.claude/skills/react-best-practices/rules/rerender-transitions.md +40 -0
- package/template/.claude/skills/react-best-practices/rules/server-after-nonblocking.md +73 -0
- package/template/.claude/skills/react-best-practices/rules/server-cache-lru.md +41 -0
- package/template/.claude/skills/react-best-practices/rules/server-cache-react.md +26 -0
- package/template/.claude/skills/react-best-practices/rules/server-parallel-fetching.md +79 -0
- package/template/.claude/skills/react-best-practices/rules/server-serialization.md +38 -0
- package/template/.claude/skills/remotion-best-practices/SKILL.md +43 -0
- package/template/.claude/skills/remotion-best-practices/rules/3d.md +86 -0
- package/template/.claude/skills/remotion-best-practices/rules/animations.md +29 -0
- package/template/.claude/skills/remotion-best-practices/rules/assets/charts-bar-chart.tsx +173 -0
- package/template/.claude/skills/remotion-best-practices/rules/assets/text-animations-typewriter.tsx +100 -0
- package/template/.claude/skills/remotion-best-practices/rules/assets/text-animations-word-highlight.tsx +108 -0
- package/template/.claude/skills/remotion-best-practices/rules/assets.md +78 -0
- package/template/.claude/skills/remotion-best-practices/rules/audio.md +172 -0
- package/template/.claude/skills/remotion-best-practices/rules/calculate-metadata.md +104 -0
- package/template/.claude/skills/remotion-best-practices/rules/can-decode.md +75 -0
- package/template/.claude/skills/remotion-best-practices/rules/charts.md +58 -0
- package/template/.claude/skills/remotion-best-practices/rules/compositions.md +146 -0
- package/template/.claude/skills/remotion-best-practices/rules/display-captions.md +126 -0
- package/template/.claude/skills/remotion-best-practices/rules/extract-frames.md +229 -0
- package/template/.claude/skills/remotion-best-practices/rules/fonts.md +152 -0
- package/template/.claude/skills/remotion-best-practices/rules/get-audio-duration.md +58 -0
- package/template/.claude/skills/remotion-best-practices/rules/get-video-dimensions.md +68 -0
- package/template/.claude/skills/remotion-best-practices/rules/get-video-duration.md +58 -0
- package/template/.claude/skills/remotion-best-practices/rules/gifs.md +138 -0
- package/template/.claude/skills/remotion-best-practices/rules/images.md +130 -0
- package/template/.claude/skills/remotion-best-practices/rules/import-srt-captions.md +67 -0
- package/template/.claude/skills/remotion-best-practices/rules/lottie.md +68 -0
- package/template/.claude/skills/remotion-best-practices/rules/measuring-dom-nodes.md +35 -0
- package/template/.claude/skills/remotion-best-practices/rules/measuring-text.md +143 -0
- package/template/.claude/skills/remotion-best-practices/rules/sequencing.md +106 -0
- package/template/.claude/skills/remotion-best-practices/rules/tailwind.md +11 -0
- package/template/.claude/skills/remotion-best-practices/rules/text-animations.md +20 -0
- package/template/.claude/skills/remotion-best-practices/rules/timing.md +179 -0
- package/template/.claude/skills/remotion-best-practices/rules/transcribe-captions.md +19 -0
- package/template/.claude/skills/remotion-best-practices/rules/transitions.md +122 -0
- package/template/.claude/skills/remotion-best-practices/rules/trimming.md +53 -0
- package/template/.claude/skills/remotion-best-practices/rules/videos.md +171 -0
- package/template/.claude/skills/search/SKILL.md +220 -0
- package/template/.claude/skills/spec/SKILL.md +377 -0
- package/template/.claude/skills/startup/SKILL.md +310 -0
- package/template/.claude/skills/web-architect/SKILL.md +309 -0
- package/template/.claude/skills/x-algorithm/SKILL.md +305 -0
- package/template/.jfl/config.json +8 -0
- package/template/.mcp.json +11 -0
- package/template/CLAUDE.md +960 -0
- package/template/content/.gitkeep +0 -0
- package/template/context-hub +3 -0
- package/template/knowledge/BRAND_BRIEF.md +124 -0
- package/template/knowledge/BRAND_DECISIONS.md +168 -0
- package/template/knowledge/NARRATIVE.md +114 -0
- package/template/knowledge/ROADMAP.md +128 -0
- package/template/knowledge/THESIS.md +108 -0
- package/template/knowledge/VISION.md +74 -0
- package/template/knowledge/VOICE_AND_TONE.md +146 -0
- package/template/previews/.gitkeep +0 -0
- package/template/scripts/session/auto-commit.sh +245 -0
- package/template/scripts/session/auto-merge.sh +325 -0
- package/template/scripts/session/jfl-doctor.sh +587 -0
- package/template/scripts/session/session-end.sh +194 -0
- package/template/scripts/session/session-init.sh +163 -0
- package/template/scripts/session/session-sync.sh +167 -0
- package/template/scripts/session/test-context-preservation.sh +160 -0
- package/template/skills/agent-browser/SKILL.md +116 -0
- package/template/skills/brand-architect/SKILL.md +240 -0
- package/template/skills/brand-architect/config.yaml +137 -0
- package/template/skills/campaign-hud/config.yaml +112 -0
- package/template/skills/content-creator/SKILL.md +294 -0
- package/template/skills/debug/MULTI_AGENT.md +360 -0
- package/template/skills/debug/SKILL.md +549 -0
- package/template/skills/fly-deploy/SKILL.md +676 -0
- package/template/skills/founder-video/SKILL.md +467 -0
- package/template/skills/hud/SKILL.md +204 -0
- package/template/skills/ralph-tui/SKILL.md +210 -0
- package/template/skills/react-best-practices/AGENTS.md +2249 -0
- package/template/skills/react-best-practices/README.md +123 -0
- package/template/skills/react-best-practices/SKILL.md +125 -0
- package/template/skills/react-best-practices/metadata.json +15 -0
- package/template/skills/react-best-practices/rules/_sections.md +46 -0
- package/template/skills/react-best-practices/rules/_template.md +28 -0
- package/template/skills/react-best-practices/rules/advanced-event-handler-refs.md +55 -0
- package/template/skills/react-best-practices/rules/advanced-use-latest.md +49 -0
- package/template/skills/react-best-practices/rules/async-api-routes.md +38 -0
- package/template/skills/react-best-practices/rules/async-defer-await.md +80 -0
- package/template/skills/react-best-practices/rules/async-dependencies.md +36 -0
- package/template/skills/react-best-practices/rules/async-parallel.md +28 -0
- package/template/skills/react-best-practices/rules/async-suspense-boundaries.md +99 -0
- package/template/skills/react-best-practices/rules/bundle-barrel-imports.md +59 -0
- package/template/skills/react-best-practices/rules/bundle-conditional.md +31 -0
- package/template/skills/react-best-practices/rules/bundle-defer-third-party.md +49 -0
- package/template/skills/react-best-practices/rules/bundle-dynamic-imports.md +35 -0
- package/template/skills/react-best-practices/rules/bundle-preload.md +50 -0
- package/template/skills/react-best-practices/rules/client-event-listeners.md +74 -0
- package/template/skills/react-best-practices/rules/client-swr-dedup.md +56 -0
- package/template/skills/react-best-practices/rules/js-batch-dom-css.md +82 -0
- package/template/skills/react-best-practices/rules/js-cache-function-results.md +80 -0
- package/template/skills/react-best-practices/rules/js-cache-property-access.md +28 -0
- package/template/skills/react-best-practices/rules/js-cache-storage.md +70 -0
- package/template/skills/react-best-practices/rules/js-combine-iterations.md +32 -0
- package/template/skills/react-best-practices/rules/js-early-exit.md +50 -0
- package/template/skills/react-best-practices/rules/js-hoist-regexp.md +45 -0
- package/template/skills/react-best-practices/rules/js-index-maps.md +37 -0
- package/template/skills/react-best-practices/rules/js-length-check-first.md +49 -0
- package/template/skills/react-best-practices/rules/js-min-max-loop.md +82 -0
- package/template/skills/react-best-practices/rules/js-set-map-lookups.md +24 -0
- package/template/skills/react-best-practices/rules/js-tosorted-immutable.md +57 -0
- package/template/skills/react-best-practices/rules/rendering-activity.md +26 -0
- package/template/skills/react-best-practices/rules/rendering-animate-svg-wrapper.md +47 -0
- package/template/skills/react-best-practices/rules/rendering-conditional-render.md +40 -0
- package/template/skills/react-best-practices/rules/rendering-content-visibility.md +38 -0
- package/template/skills/react-best-practices/rules/rendering-hoist-jsx.md +46 -0
- package/template/skills/react-best-practices/rules/rendering-hydration-no-flicker.md +82 -0
- package/template/skills/react-best-practices/rules/rendering-svg-precision.md +28 -0
- package/template/skills/react-best-practices/rules/rerender-defer-reads.md +39 -0
- package/template/skills/react-best-practices/rules/rerender-dependencies.md +45 -0
- package/template/skills/react-best-practices/rules/rerender-derived-state.md +29 -0
- package/template/skills/react-best-practices/rules/rerender-functional-setstate.md +74 -0
- package/template/skills/react-best-practices/rules/rerender-lazy-state-init.md +58 -0
- package/template/skills/react-best-practices/rules/rerender-memo.md +44 -0
- package/template/skills/react-best-practices/rules/rerender-transitions.md +40 -0
- package/template/skills/react-best-practices/rules/server-after-nonblocking.md +73 -0
- package/template/skills/react-best-practices/rules/server-cache-lru.md +41 -0
- package/template/skills/react-best-practices/rules/server-cache-react.md +26 -0
- package/template/skills/react-best-practices/rules/server-parallel-fetching.md +79 -0
- package/template/skills/react-best-practices/rules/server-serialization.md +38 -0
- package/template/skills/remotion-best-practices/SKILL.md +43 -0
- package/template/skills/remotion-best-practices/rules/3d.md +86 -0
- package/template/skills/remotion-best-practices/rules/animations.md +29 -0
- package/template/skills/remotion-best-practices/rules/assets/charts-bar-chart.tsx +173 -0
- package/template/skills/remotion-best-practices/rules/assets/text-animations-typewriter.tsx +100 -0
- package/template/skills/remotion-best-practices/rules/assets/text-animations-word-highlight.tsx +108 -0
- package/template/skills/remotion-best-practices/rules/assets.md +78 -0
- package/template/skills/remotion-best-practices/rules/audio.md +172 -0
- package/template/skills/remotion-best-practices/rules/calculate-metadata.md +104 -0
- package/template/skills/remotion-best-practices/rules/can-decode.md +75 -0
- package/template/skills/remotion-best-practices/rules/charts.md +58 -0
- package/template/skills/remotion-best-practices/rules/compositions.md +146 -0
- package/template/skills/remotion-best-practices/rules/display-captions.md +126 -0
- package/template/skills/remotion-best-practices/rules/extract-frames.md +229 -0
- package/template/skills/remotion-best-practices/rules/fonts.md +152 -0
- package/template/skills/remotion-best-practices/rules/get-audio-duration.md +58 -0
- package/template/skills/remotion-best-practices/rules/get-video-dimensions.md +68 -0
- package/template/skills/remotion-best-practices/rules/get-video-duration.md +58 -0
- package/template/skills/remotion-best-practices/rules/gifs.md +138 -0
- package/template/skills/remotion-best-practices/rules/images.md +130 -0
- package/template/skills/remotion-best-practices/rules/import-srt-captions.md +67 -0
- package/template/skills/remotion-best-practices/rules/lottie.md +68 -0
- package/template/skills/remotion-best-practices/rules/measuring-dom-nodes.md +35 -0
- package/template/skills/remotion-best-practices/rules/measuring-text.md +143 -0
- package/template/skills/remotion-best-practices/rules/sequencing.md +106 -0
- package/template/skills/remotion-best-practices/rules/tailwind.md +11 -0
- package/template/skills/remotion-best-practices/rules/text-animations.md +20 -0
- package/template/skills/remotion-best-practices/rules/timing.md +179 -0
- package/template/skills/remotion-best-practices/rules/transcribe-captions.md +19 -0
- package/template/skills/remotion-best-practices/rules/transitions.md +122 -0
- package/template/skills/remotion-best-practices/rules/trimming.md +53 -0
- package/template/skills/remotion-best-practices/rules/videos.md +171 -0
- package/template/skills/search/SKILL.md +220 -0
- package/template/skills/spec/SKILL.md +377 -0
- package/template/skills/startup/SKILL.md +310 -0
- package/template/skills/web-architect/SKILL.md +309 -0
- package/template/skills/x-algorithm/SKILL.md +305 -0
- package/template/suggestions/.gitkeep +0 -0
- package/template/templates/QUICKSTART_SKILL_TO_PRODUCT.md +242 -0
- package/template/templates/brand/BRAND_BRIEF.md +124 -0
- package/template/templates/brand/BRAND_DECISIONS.md +168 -0
- package/template/templates/brand/BRAND_GUIDELINES.md +251 -0
- package/template/templates/brand/VOICE_AND_TONE.md +146 -0
- package/template/templates/brand/global.css +240 -0
- package/template/templates/collaboration/CONTRIBUTOR.md +74 -0
- package/template/templates/collaboration/CRM.md +97 -0
- package/template/templates/collaboration/TASKS.md +83 -0
- package/template/templates/strategic/NARRATIVE.md +114 -0
- package/template/templates/strategic/ROADMAP.md +128 -0
- package/template/templates/strategic/THESIS.md +108 -0
- package/template/templates/strategic/VISION.md +74 -0
|
@@ -0,0 +1,325 @@
|
|
|
1
|
+
#!/bin/bash
|
|
2
|
+
#
|
|
3
|
+
# Auto-merge script for worktree sessions
|
|
4
|
+
# Periodically tries to merge session branch → main
|
|
5
|
+
#
|
|
6
|
+
# Usage:
|
|
7
|
+
# ./scripts/auto-merge.sh start SESSION_NAME # Start merging for a session
|
|
8
|
+
# ./scripts/auto-merge.sh stop SESSION_NAME # Stop merging
|
|
9
|
+
# ./scripts/auto-merge.sh status SESSION_NAME # Check merge status
|
|
10
|
+
# ./scripts/auto-merge.sh once SESSION_NAME # Try merge once
|
|
11
|
+
|
|
12
|
+
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
13
|
+
REPO_DIR="$(pwd)"
|
|
14
|
+
LOG_FILE="$REPO_DIR/.auto-merge.log"
|
|
15
|
+
INTERVAL=900 # 15 minutes
|
|
16
|
+
MAX_CONSECUTIVE_FAILURES=3
|
|
17
|
+
|
|
18
|
+
SESSION_NAME="${2:-}"
|
|
19
|
+
WORKTREE_DIR="$REPO_DIR/worktrees/$SESSION_NAME"
|
|
20
|
+
PID_FILE="$WORKTREE_DIR/.auto-merge.pid"
|
|
21
|
+
CONFLICT_FILE="$WORKTREE_DIR/.merge-conflict"
|
|
22
|
+
STATUS_FILE="$WORKTREE_DIR/.last-merge-status"
|
|
23
|
+
FAILURE_COUNT_FILE="$WORKTREE_DIR/.merge-failure-count"
|
|
24
|
+
|
|
25
|
+
cd "$REPO_DIR" || exit 1
|
|
26
|
+
|
|
27
|
+
validate_session() {
|
|
28
|
+
if [[ -z "$SESSION_NAME" ]]; then
|
|
29
|
+
echo "Error: SESSION_NAME required"
|
|
30
|
+
echo "Usage: $0 {start|stop|status|once} SESSION_NAME"
|
|
31
|
+
exit 1
|
|
32
|
+
fi
|
|
33
|
+
|
|
34
|
+
if [[ ! -d "$WORKTREE_DIR" ]]; then
|
|
35
|
+
echo "Error: Worktree not found: $WORKTREE_DIR"
|
|
36
|
+
exit 1
|
|
37
|
+
fi
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
do_merge() {
|
|
41
|
+
local session="$1"
|
|
42
|
+
local timestamp="[$(date '+%Y-%m-%d %H:%M:%S')]"
|
|
43
|
+
|
|
44
|
+
# Check if conflict marker exists (user hasn't resolved yet)
|
|
45
|
+
if [[ -f "$CONFLICT_FILE" ]]; then
|
|
46
|
+
echo "$timestamp Skipping merge - unresolved conflict exists" >> "$LOG_FILE"
|
|
47
|
+
return 1
|
|
48
|
+
fi
|
|
49
|
+
|
|
50
|
+
# Save current branch
|
|
51
|
+
local current_branch=$(git rev-parse --abbrev-ref HEAD 2>/dev/null)
|
|
52
|
+
|
|
53
|
+
# Switch to main
|
|
54
|
+
if ! git checkout main --quiet 2>> "$LOG_FILE"; then
|
|
55
|
+
echo "$timestamp ✗ Failed to checkout main" >> "$LOG_FILE"
|
|
56
|
+
return 1
|
|
57
|
+
fi
|
|
58
|
+
|
|
59
|
+
# Pull latest main
|
|
60
|
+
if ! git pull --rebase --quiet 2>> "$LOG_FILE"; then
|
|
61
|
+
echo "$timestamp ✗ Failed to pull main" >> "$LOG_FILE"
|
|
62
|
+
git checkout "$current_branch" --quiet 2>/dev/null
|
|
63
|
+
return 1
|
|
64
|
+
fi
|
|
65
|
+
|
|
66
|
+
# Try to merge the session branch
|
|
67
|
+
if git merge "$session" --no-edit 2>&1 | tee /tmp/merge-output-$$.txt; then
|
|
68
|
+
# Check if it was already up to date
|
|
69
|
+
if grep -q "Already up to date" /tmp/merge-output-$$.txt; then
|
|
70
|
+
echo "$timestamp No changes to merge from $session" >> "$LOG_FILE"
|
|
71
|
+
rm /tmp/merge-output-$$.txt
|
|
72
|
+
git checkout "$current_branch" --quiet 2>/dev/null
|
|
73
|
+
echo "up-to-date" > "$STATUS_FILE"
|
|
74
|
+
# Reset failure count
|
|
75
|
+
echo "0" > "$FAILURE_COUNT_FILE"
|
|
76
|
+
return 0
|
|
77
|
+
fi
|
|
78
|
+
|
|
79
|
+
# Merge succeeded! Push to remote
|
|
80
|
+
if git push 2>> "$LOG_FILE"; then
|
|
81
|
+
echo "$timestamp ✓ Merged $session → main and pushed" >> "$LOG_FILE"
|
|
82
|
+
echo "merged" > "$STATUS_FILE"
|
|
83
|
+
date '+%s' >> "$STATUS_FILE" # Timestamp
|
|
84
|
+
# Reset failure count
|
|
85
|
+
echo "0" > "$FAILURE_COUNT_FILE"
|
|
86
|
+
rm /tmp/merge-output-$$.txt
|
|
87
|
+
git checkout "$current_branch" --quiet 2>/dev/null
|
|
88
|
+
return 0
|
|
89
|
+
else
|
|
90
|
+
echo "$timestamp ✓ Merged $session → main but push failed (offline?)" >> "$LOG_FILE"
|
|
91
|
+
echo "merged-unpushed" > "$STATUS_FILE"
|
|
92
|
+
rm /tmp/merge-output-$$.txt
|
|
93
|
+
git checkout "$current_branch" --quiet 2>/dev/null
|
|
94
|
+
return 0
|
|
95
|
+
fi
|
|
96
|
+
else
|
|
97
|
+
# Merge conflict! Try auto-resolution for template files
|
|
98
|
+
echo "$timestamp Merge conflict detected, attempting auto-resolution..." >> "$LOG_FILE"
|
|
99
|
+
|
|
100
|
+
# Get list of conflicting files
|
|
101
|
+
local conflicting=$(git diff --name-only --diff-filter=U 2>/dev/null)
|
|
102
|
+
local can_auto_resolve=true
|
|
103
|
+
local non_template_conflicts=""
|
|
104
|
+
|
|
105
|
+
# Check if all conflicts are in template files (safe to take session version)
|
|
106
|
+
# Template files: CLAUDE.md, .claude/, .mcp.json, scripts/, templates/
|
|
107
|
+
for file in $conflicting; do
|
|
108
|
+
case "$file" in
|
|
109
|
+
CLAUDE.md|.mcp.json)
|
|
110
|
+
# Template file - take session version
|
|
111
|
+
git checkout --theirs "$file" 2>/dev/null
|
|
112
|
+
git add "$file" 2>/dev/null
|
|
113
|
+
echo "$timestamp Auto-resolved $file (took session version)" >> "$LOG_FILE"
|
|
114
|
+
;;
|
|
115
|
+
.claude/*|scripts/*|templates/*)
|
|
116
|
+
# Template directory - take session version
|
|
117
|
+
git checkout --theirs "$file" 2>/dev/null
|
|
118
|
+
git add "$file" 2>/dev/null
|
|
119
|
+
echo "$timestamp Auto-resolved $file (took session version)" >> "$LOG_FILE"
|
|
120
|
+
;;
|
|
121
|
+
.jfl/journal/*)
|
|
122
|
+
# Journal files - take session version (they're per-session anyway)
|
|
123
|
+
git checkout --theirs "$file" 2>/dev/null
|
|
124
|
+
git add "$file" 2>/dev/null
|
|
125
|
+
echo "$timestamp Auto-resolved $file (took session version)" >> "$LOG_FILE"
|
|
126
|
+
;;
|
|
127
|
+
knowledge/*|content/*|suggestions/*)
|
|
128
|
+
# User content - cannot auto-resolve, needs manual review
|
|
129
|
+
can_auto_resolve=false
|
|
130
|
+
non_template_conflicts="$non_template_conflicts $file"
|
|
131
|
+
;;
|
|
132
|
+
*)
|
|
133
|
+
# Unknown file type - be conservative, don't auto-resolve
|
|
134
|
+
can_auto_resolve=false
|
|
135
|
+
non_template_conflicts="$non_template_conflicts $file"
|
|
136
|
+
;;
|
|
137
|
+
esac
|
|
138
|
+
done
|
|
139
|
+
|
|
140
|
+
if $can_auto_resolve; then
|
|
141
|
+
# All conflicts were auto-resolved, complete the merge
|
|
142
|
+
if git commit --no-edit 2>> "$LOG_FILE"; then
|
|
143
|
+
echo "$timestamp ✓ Auto-resolved all conflicts and merged" >> "$LOG_FILE"
|
|
144
|
+
|
|
145
|
+
if git push 2>> "$LOG_FILE"; then
|
|
146
|
+
echo "$timestamp ✓ Pushed auto-resolved merge" >> "$LOG_FILE"
|
|
147
|
+
echo "auto-resolved" > "$STATUS_FILE"
|
|
148
|
+
date '+%s' >> "$STATUS_FILE"
|
|
149
|
+
echo "0" > "$FAILURE_COUNT_FILE"
|
|
150
|
+
rm /tmp/merge-output-$$.txt 2>/dev/null
|
|
151
|
+
git checkout "$current_branch" --quiet 2>/dev/null
|
|
152
|
+
return 0
|
|
153
|
+
else
|
|
154
|
+
echo "$timestamp ✓ Auto-resolved but push failed" >> "$LOG_FILE"
|
|
155
|
+
echo "auto-resolved-unpushed" > "$STATUS_FILE"
|
|
156
|
+
rm /tmp/merge-output-$$.txt 2>/dev/null
|
|
157
|
+
git checkout "$current_branch" --quiet 2>/dev/null
|
|
158
|
+
return 0
|
|
159
|
+
fi
|
|
160
|
+
fi
|
|
161
|
+
fi
|
|
162
|
+
|
|
163
|
+
# Could not auto-resolve all conflicts - abort and mark for manual resolution
|
|
164
|
+
git merge --abort 2>/dev/null
|
|
165
|
+
|
|
166
|
+
# Increment failure count
|
|
167
|
+
local failures=0
|
|
168
|
+
if [[ -f "$FAILURE_COUNT_FILE" ]]; then
|
|
169
|
+
failures=$(cat "$FAILURE_COUNT_FILE")
|
|
170
|
+
fi
|
|
171
|
+
failures=$((failures + 1))
|
|
172
|
+
echo "$failures" > "$FAILURE_COUNT_FILE"
|
|
173
|
+
|
|
174
|
+
echo "$timestamp ✗ CONFLICT: $session vs main (attempt $failures)" >> "$LOG_FILE"
|
|
175
|
+
echo "$timestamp Non-auto-resolvable conflicts:$non_template_conflicts" >> "$LOG_FILE"
|
|
176
|
+
|
|
177
|
+
# Get list of conflicting files (for display)
|
|
178
|
+
local conflicting_files=$(echo "$non_template_conflicts" | tr ' ' '\n' | grep -v '^$' | head -10)
|
|
179
|
+
|
|
180
|
+
# Create conflict marker file
|
|
181
|
+
cat > "$CONFLICT_FILE" <<EOF
|
|
182
|
+
MERGE CONFLICT DETECTED
|
|
183
|
+
|
|
184
|
+
Session: $session
|
|
185
|
+
Target: main
|
|
186
|
+
Time: $(date '+%Y-%m-%d %H:%M:%S')
|
|
187
|
+
Consecutive failures: $failures
|
|
188
|
+
|
|
189
|
+
Conflicting files (or files that differ):
|
|
190
|
+
$conflicting_files
|
|
191
|
+
|
|
192
|
+
What to do:
|
|
193
|
+
1. Resolve conflicts manually in your worktree
|
|
194
|
+
2. Commit the resolution to branch: $session
|
|
195
|
+
3. Delete this file when ready to retry merge: rm $CONFLICT_FILE
|
|
196
|
+
|
|
197
|
+
Or ask Claude to help resolve the conflict.
|
|
198
|
+
EOF
|
|
199
|
+
|
|
200
|
+
# Check if we've hit max failures
|
|
201
|
+
if [[ $failures -ge $MAX_CONSECUTIVE_FAILURES ]]; then
|
|
202
|
+
echo "" >> "$CONFLICT_FILE"
|
|
203
|
+
echo "⚠️ WARNING: $failures consecutive merge failures." >> "$CONFLICT_FILE"
|
|
204
|
+
echo "Auto-merge is pausing. Resolve the conflict to resume." >> "$CONFLICT_FILE"
|
|
205
|
+
fi
|
|
206
|
+
|
|
207
|
+
rm /tmp/merge-output-$$.txt 2>/dev/null
|
|
208
|
+
git checkout "$current_branch" --quiet 2>/dev/null
|
|
209
|
+
return 1
|
|
210
|
+
fi
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
start_daemon() {
|
|
214
|
+
validate_session
|
|
215
|
+
|
|
216
|
+
if [[ -f "$PID_FILE" ]] && kill -0 "$(cat "$PID_FILE")" 2>/dev/null; then
|
|
217
|
+
echo "Auto-merge already running for $SESSION_NAME (PID: $(cat "$PID_FILE"))"
|
|
218
|
+
return 1
|
|
219
|
+
fi
|
|
220
|
+
|
|
221
|
+
echo "[$(date '+%Y-%m-%d %H:%M:%S')] Starting auto-merge for $SESSION_NAME..." >> "$LOG_FILE"
|
|
222
|
+
|
|
223
|
+
# Initialize failure count
|
|
224
|
+
echo "0" > "$FAILURE_COUNT_FILE"
|
|
225
|
+
|
|
226
|
+
# Run in background
|
|
227
|
+
# Close inherited file descriptors so parent doesn't wait for us
|
|
228
|
+
(
|
|
229
|
+
exec </dev/null >/dev/null 2>&1
|
|
230
|
+
while true; do
|
|
231
|
+
# Check if conflict exists and max failures reached
|
|
232
|
+
if [[ -f "$FAILURE_COUNT_FILE" ]]; then
|
|
233
|
+
failures=$(cat "$FAILURE_COUNT_FILE")
|
|
234
|
+
if [[ $failures -ge $MAX_CONSECUTIVE_FAILURES ]] && [[ -f "$CONFLICT_FILE" ]]; then
|
|
235
|
+
# Pause until conflict is resolved
|
|
236
|
+
sleep $INTERVAL
|
|
237
|
+
continue
|
|
238
|
+
fi
|
|
239
|
+
fi
|
|
240
|
+
|
|
241
|
+
do_merge "$SESSION_NAME"
|
|
242
|
+
sleep $INTERVAL
|
|
243
|
+
done
|
|
244
|
+
) &
|
|
245
|
+
|
|
246
|
+
echo $! > "$PID_FILE"
|
|
247
|
+
echo "Auto-merge started for $SESSION_NAME (PID: $!)"
|
|
248
|
+
echo "Interval: ${INTERVAL}s (15 minutes)"
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
stop_daemon() {
|
|
252
|
+
validate_session
|
|
253
|
+
|
|
254
|
+
if [[ -f "$PID_FILE" ]]; then
|
|
255
|
+
local pid=$(cat "$PID_FILE")
|
|
256
|
+
if kill -0 "$pid" 2>/dev/null; then
|
|
257
|
+
kill "$pid"
|
|
258
|
+
rm "$PID_FILE"
|
|
259
|
+
echo "[$(date '+%Y-%m-%d %H:%M:%S')] Stopped auto-merge for $SESSION_NAME" >> "$LOG_FILE"
|
|
260
|
+
echo "Auto-merge stopped for $SESSION_NAME"
|
|
261
|
+
else
|
|
262
|
+
rm "$PID_FILE"
|
|
263
|
+
echo "Process not running (cleaned up stale PID file)"
|
|
264
|
+
fi
|
|
265
|
+
else
|
|
266
|
+
echo "Auto-merge not running for $SESSION_NAME"
|
|
267
|
+
fi
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
status_daemon() {
|
|
271
|
+
validate_session
|
|
272
|
+
|
|
273
|
+
echo "Session: $SESSION_NAME"
|
|
274
|
+
echo ""
|
|
275
|
+
|
|
276
|
+
if [[ -f "$PID_FILE" ]] && kill -0 "$(cat "$PID_FILE")" 2>/dev/null; then
|
|
277
|
+
echo "Auto-merge: RUNNING (PID: $(cat "$PID_FILE"))"
|
|
278
|
+
else
|
|
279
|
+
echo "Auto-merge: NOT RUNNING"
|
|
280
|
+
fi
|
|
281
|
+
|
|
282
|
+
if [[ -f "$CONFLICT_FILE" ]]; then
|
|
283
|
+
echo "Status: CONFLICT (resolve manually)"
|
|
284
|
+
echo ""
|
|
285
|
+
cat "$CONFLICT_FILE"
|
|
286
|
+
elif [[ -f "$STATUS_FILE" ]]; then
|
|
287
|
+
local status=$(head -1 "$STATUS_FILE")
|
|
288
|
+
echo "Last merge: $status"
|
|
289
|
+
if [[ -f "$STATUS_FILE" ]] && [[ $(wc -l < "$STATUS_FILE") -gt 1 ]]; then
|
|
290
|
+
local timestamp=$(tail -1 "$STATUS_FILE")
|
|
291
|
+
local time_ago=$(($(date +%s) - timestamp))
|
|
292
|
+
echo "Time ago: ${time_ago}s"
|
|
293
|
+
fi
|
|
294
|
+
else
|
|
295
|
+
echo "Status: No merge attempts yet"
|
|
296
|
+
fi
|
|
297
|
+
|
|
298
|
+
if [[ -f "$FAILURE_COUNT_FILE" ]]; then
|
|
299
|
+
local failures=$(cat "$FAILURE_COUNT_FILE")
|
|
300
|
+
if [[ $failures -gt 0 ]]; then
|
|
301
|
+
echo "Consecutive failures: $failures"
|
|
302
|
+
fi
|
|
303
|
+
fi
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
case "${1:-}" in
|
|
307
|
+
start)
|
|
308
|
+
start_daemon
|
|
309
|
+
;;
|
|
310
|
+
stop)
|
|
311
|
+
stop_daemon
|
|
312
|
+
;;
|
|
313
|
+
status)
|
|
314
|
+
status_daemon
|
|
315
|
+
;;
|
|
316
|
+
once)
|
|
317
|
+
validate_session
|
|
318
|
+
do_merge "$SESSION_NAME"
|
|
319
|
+
echo "Single merge attempt complete"
|
|
320
|
+
;;
|
|
321
|
+
*)
|
|
322
|
+
echo "Usage: $0 {start|stop|status|once} SESSION_NAME"
|
|
323
|
+
exit 1
|
|
324
|
+
;;
|
|
325
|
+
esac
|