{"generated":"2026-12-05T09:18:28.647Z","source":"https://api.logicpacks.io/v1/packs","spaces":59,"packs":[{"id":"3d-and-splats-public/splat-capture-to-web-viewer","space":"3d-and-splats-public","name":"splat-capture-to-web-viewer","version":"1.0.0","category":"video-media","summary":"Video to Gaussian splat to web page: extract sharp frames, solve camera poses (pycolmap/GLOMAP), train (Brush on Metal or gsplat/3DGS on a GPU), export .ply/.spz and show it with a Spark + three.js viewer checked headless.","level":"L1","env":["VAST_API_KEY"],"tools":["ffmpeg","python3","uv","pycolmap or COLMAP/GLOMAP","Brush or gsplat","playwright-python","network (jsdelivr CDN)"],"checks":3,"routes":["mac-brush","homelab","vast-4090"],"reliability":{"ok":4,"total":4},"repo":"https://github.com/Tech-Realm/space-3d-and-splats-public","repoName":"Tech-Realm/space-3d-and-splats-public","path":"splat-capture-to-web-viewer","spec":"# splat-capture-to-web-viewer\n\nVideo to Gaussian splat to web page: extract sharp frames, solve camera poses (pycolmap/GLOMAP), train (Brush on Metal or gsplat/3DGS on a GPU), export .ply/.spz and show it with a Spark + three.js viewer checked headless.\n\n## Goal\n\nA splat of a real place or object that loads in a browser on desktop and phone.\n\n## Steps\n\n1. Capture: one continuous, slow, overlapping walk/orbit; locked exposure; no zoom. Drone + ground passes if the place is big.\n2. Frames: `bash code/extract_frames.sh input.mp4 frames 3` (3 fps, skips near-duplicates by scene score).\n3. Poses: `bash code/sfm.sh frames work` (pycolmap in a uv venv; sequential matching for video, exhaustive only for small unordered photo sets).\n4. Train: on a Mac use Brush (Metal) ~7k steps for a preview; for quality use gsplat/3DGS 30k steps on a rented 4090 (see 3d-blender-animation/gpu-render-homelab-vast).\n5. Export .ply (or compress to .spz) and view: `code/splat_viewer.html?src=scene.ply` through any static server.\n6. Check: `python3 code/check_splat_viewer.py [scene.ply]` (synthetic fixture when no file given).\n\n## Edge cases\n\n- brew COLMAP can be broken (protobuf dylib mismatch); pycolmap in a uv venv works.\n- Exhaustive matching on 110 frames took 20 min of a 24 min SfM; sequential matching is far faster for video.\n- A splat only knows what a camera saw: drone-only footage gives blobs at walking height; a walk gives a corridor.\n- Floaters near the camera path: clear them before export.\n- Phone camera pages need HTTPS (use a Cloudflare tunnel URL).\n\n## Don'ts\n\n- Don't promise free movement beyond the captured paths; hold the viewer near the capture path (radius/yaw limits) instead.\n- Don't use footage you have no rights to for anything published.\n- Don't trust AI infill to invent large unseen areas faithfully (revisits drift ~15-16 dB).\n","files":["CHANGELOG.md","code/check_splat_viewer.py","code/extract_frames.sh","code/make_fixture_ply.py","code/sfm.sh","code/splat_viewer.html","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/results.json","pack.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use 3d-and-splats-public/splat-capture-to-web-viewer","mcp":"get_pack 3d-and-splats-public/splat-capture-to-web-viewer","url":"https://logicpacks.io/packs/3d-and-splats-public/splat-capture-to-web-viewer"},{"id":"3d-blender-animation-public/3d-printing","space":"3d-blender-animation-public","name":"3d-printing","version":"1.0.0","category":"video-media","summary":"Prepare a model for 3D printing with headless Blender: apply transforms, report non-manifold edges, set real-world size in mm and export STL.","level":"L1","env":[],"tools":["blender"],"checks":1,"routes":["local-blender"],"reliability":{"ok":7,"total":7},"repo":"https://github.com/Tech-Realm/space-3d-blender-animation-public","repoName":"Tech-Realm/space-3d-blender-animation-public","path":"3d-printing","spec":"# 3d-printing\n\nPrepare a model for 3D printing with headless Blender: apply transforms, report non-manifold edges, set real-world size in mm and export STL.\n\n## Goal\n\nA watertight STL at the right physical size that a slicer accepts without repair.\n\n## Steps\n\n1. Run `blender -b --factory-startup --python code/export_stl.py -- --in model.glb --out model.stl --size-mm 80` (`--in demo` for a test cube).\n2. Read the report: `non_manifold_edges` must be 0; otherwise fix in Blender (3D Print Toolbox, Remesh voxel) and rerun.\n3. Open the STL in the slicer (PrusaSlicer/Cura/Bambu Studio), check scale and orientation, then slice.\n\n## Edge cases\n\n- glTF units are metres; slicers assume millimetres: --size-mm scales the longest side.\n- Thin walls under the nozzle width disappear; check wall thickness in the slicer preview.\n\n## Don'ts\n\n- Don't print an STL with non-manifold edges without repair.\n- Don't print third-party models you have no licence for.\n","files":["CHANGELOG.md","code/export_stl.py","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/results.json","pack.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use 3d-blender-animation-public/3d-printing","mcp":"get_pack 3d-blender-animation-public/3d-printing","url":"https://logicpacks.io/packs/3d-blender-animation-public/3d-printing"},{"id":"3d-blender-animation-public/export-glb-draco","space":"3d-blender-animation-public","name":"export-glb-draco","version":"1.0.0","category":"video-media","summary":"Convert FBX/OBJ/GLTF/STL/.blend to a web-ready GLB with optional Draco mesh compression via headless Blender, and inspect the result (meshes, animations, extensions, size) with a stdlib script.","level":"L1","env":[],"tools":["blender","python3"],"checks":2,"routes":["local-blender","gltf-transform"],"reliability":{"ok":7,"total":7},"repo":"https://github.com/Tech-Realm/space-3d-blender-animation-public","repoName":"Tech-Realm/space-3d-blender-animation-public","path":"export-glb-draco","spec":"# export-glb-draco\n\nConvert FBX/OBJ/GLTF/STL/.blend to a web-ready GLB with optional Draco mesh compression via headless Blender, and inspect the result (meshes, animations, extensions, size) with a stdlib script.\n\n## Goal\n\nOne command turns whatever 3D file a client or tool hands us into a compact GLB a browser (three.js, model-viewer) can load.\n\n## Steps\n\n1. Convert: `blender -b --factory-startup --python code/convert.py -- --in model.fbx --out model.glb --draco --level 6` (`--in demo` makes a test mesh).\n2. Inspect: `python3 code/glb_info.py model.glb` (expect `KHR_draco_mesh_compression` in extensionsUsed when --draco).\n3. Optional extra squeeze with gltf-transform: `npx -y @gltf-transform/cli optimize model.glb model.opt.glb --compress draco --texture-compress webp`.\n4. Load it in the three.js viewer pack (needs DRACOLoader when Draco is on).\n5. Keep the original source file next to the GLB in storage; GLB is a delivery format.\n\n## Edge cases\n\n- Draco compresses geometry only; big files are usually textures: resize to 2K and use WebP/KTX2.\n- FBX from some tools carries cm units: check scale after import (apply scale before export).\n- Animations: export with `export_animations=True`; Draco keeps skinning data but test playback.\n- Our product hit 'doesn't support uploading GLB and other formats' in an upload flow: check the server's allowed MIME/extension list (model/gltf-binary for .glb).\n\n## Don'ts\n\n- Don't ship an uncompressed 50 MB GLB to phones.\n- Don't Draco-compress a mesh you still need to edit; keep the uncompressed master.\n- Don't hotlink models from a home server on a live site; copy them to the site's own storage/CDN.\n","files":["CHANGELOG.md","code/convert.py","code/fbx_demo.py","code/glb_info.py","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/results.json","pack.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use 3d-blender-animation-public/export-glb-draco","mcp":"get_pack 3d-blender-animation-public/export-glb-draco","url":"https://logicpacks.io/packs/3d-blender-animation-public/export-glb-draco"},{"id":"3d-blender-animation-public/headless-blender-render","space":"3d-blender-animation-public","name":"headless-blender-render","version":"1.0.0","category":"video-media","summary":"Render a Blender scene (or a generated test scene) headless from the command line: frames to PNG with Cycles (CPU/GPU) or Eevee, resolution and sample count as flags.","level":"L1","env":["VAST_API_KEY"],"tools":["blender"],"checks":2,"routes":["local-blender","homelab-gpu","vast-gpu"],"reliability":{"ok":7,"total":7},"repo":"https://github.com/Tech-Realm/space-3d-blender-animation-public","repoName":"Tech-Realm/space-3d-blender-animation-public","path":"headless-blender-render","spec":"# headless-blender-render\n\nRender a Blender scene (or a generated test scene) headless from the command line: frames to PNG with Cycles (CPU/GPU) or Eevee, resolution and sample count as flags.\n\n## Goal\n\nTurn a .blend file (or nothing: a test scene is built) into rendered PNG frames without opening the Blender UI, so an agent can render on a Mac, a homelab box or a rented GPU.\n\n## Steps\n\n1. Check Blender: `blender --version` (5.x LTS on the Mac via Homebrew).\n2. Render: `bash code/render.sh --blend scene.blend --out out --frames 1-24 --res 1920x1080 --engine CYCLES --samples 64` (omit --blend for the built-in test scene).\n3. On a GPU box add `--device GPU` (Cycles picks CUDA/OptiX/Metal if available, else stays on CPU).\n4. Encode frames if needed: `ffmpeg -framerate 24 -i out/frame_%04d.png -c:v libx264 -pix_fmt yuv420p out.mp4`.\n5. Look at real frames (not just exit codes) before calling it done.\n\n## Edge cases\n\n- Eevee needs a GPU/OpenGL context; on headless Linux without a GPU use Cycles CPU.\n- Engine id differs across versions (BLENDER_EEVEE vs BLENDER_EEVEE_NEXT); render_scene.py tries both.\n- Relative texture paths break when the .blend moves; run `File > External Data > Make Paths Relative` or pack resources first.\n- GPU-less VMs cannot run GPU compositors at all (seen with DaVinci Resolve seats); Blender Cycles CPU still works there.\n\n## Don'ts\n\n- Don't judge a render by the exit code alone; open a frame.\n- Don't render long sequences on a shared box without a frame range and a time budget.\n- Don't commit rendered frames or .blend1 backups to a space (link big media from the host instead).\n","files":["CHANGELOG.md","code/render.sh","code/render_scene.py","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/results.json","pack.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use 3d-blender-animation-public/headless-blender-render","mcp":"get_pack 3d-blender-animation-public/headless-blender-render","url":"https://logicpacks.io/packs/3d-blender-animation-public/headless-blender-render"},{"id":"3d-blender-animation-public/rig-animate-character","space":"3d-blender-animation-public","name":"rig-animate-character","version":"1.0.0","category":"video-media","summary":"Rig a character (armature + automatic weights), keyframe a motion and export an animated, skinned GLB; plus the rigging lessons from our vector-rig work (elbow joints, rotation-invariant joint discs, review at 10-20 fps).","level":"L1","env":[],"tools":["blender","python3"],"checks":1,"routes":["local-blender"],"reliability":{"ok":7,"total":7},"repo":"https://github.com/Tech-Realm/space-3d-blender-animation-public","repoName":"Tech-Realm/space-3d-blender-animation-public","path":"rig-animate-character","spec":"# rig-animate-character\n\nRig a character (armature + automatic weights), keyframe a motion and export an animated, skinned GLB; plus the rigging lessons from our vector-rig work (elbow joints, rotation-invariant joint discs, review at 10-20 fps).\n\n## Goal\n\nProduce an animated character file an engine or web viewer can play: mesh bound to an armature, a named action, exported as GLB with skin + animation.\n\n## Steps\n\n1. Model or import the character mesh (FBX/OBJ/GLB) and apply scale/rotation (Ctrl-A).\n2. Add an armature with real joints for every bend the motion needs (neck, waist, shoulders, ELBOWS, wrists, hips, knees, ankles).\n3. Parent mesh to armature with automatic weights (`object.parent_set(type='ARMATURE_AUTO')`), then fix weights where limbs collapse.\n4. Keyframe the action on the beat if there is music (measure BPM, place key poses on beats).\n5. Export GLB with animations: `blender -b --python code/rig_demo.py -- --out out/character.glb` shows the full scripted path on a demo body.\n6. Verify with `python3 code/glb_info.py out/character.glb`: skins >= 1, animations >= 1.\n7. Review the motion by pulling real frames at 10-20 fps (ffmpeg) or in the three.js viewer, not sparse filmstrips.\n\n## Edge cases\n\n- A limb without an elbow cannot do raised-arm poses: it renders as a plank. Cut limbs at the joint.\n- For 2D/vector rigs give both halves of a joint the same disc centred on the pivot; a disc is rotation invariant so no seam opens at any bend.\n- Anything drawn behind a moving feature (eye sockets, brow, hairline) must be solid, or the background shows through when the feature moves.\n- Verify the rotation sign on a test render first (in some 2D tools positive rotation is clockwise on screen).\n- Long arms raised to ~120 degrees turn into horizontal bars across the frame; keep poses asymmetric so two arms don't overlap into one stick.\n- Sparse filmstrips alias: a 500 ms strip against a 518 ms swing hides a broken loop.\n\n## Don'ts\n\n- Don't use leaked or unlicensed production rigs/assets; build or license your own character.\n- Don't animate flat cut-out thumbnails and call it a rig: nothing bends, it always reads as paper.\n- Don't approve a motion from a single still.\n","files":["CHANGELOG.md","code/glb_info.py","code/rig_demo.py","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/results.json","pack.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use 3d-blender-animation-public/rig-animate-character","mcp":"get_pack 3d-blender-animation-public/rig-animate-character","url":"https://logicpacks.io/packs/3d-blender-animation-public/rig-animate-character"},{"id":"3d-blender-animation-public/threejs-viewer","space":"3d-blender-animation-public","name":"threejs-viewer","version":"1.0.0","category":"video-media","summary":"A no-build three.js GLB viewer (import map + CDN, GLTFLoader + DRACOLoader, orbit controls, auto-fit camera, animation playback) with a Playwright check: model loads, no console errors, no horizontal scroll at 390px.","level":"L1","env":[],"tools":["python3","playwright-python","chromium","network (jsdelivr + gstatic CDNs)"],"checks":1,"routes":["static-local"],"reliability":{"ok":7,"total":7},"repo":"https://github.com/Tech-Realm/space-3d-blender-animation-public","repoName":"Tech-Realm/space-3d-blender-animation-public","path":"threejs-viewer","spec":"# threejs-viewer\n\nA no-build three.js GLB viewer (import map + CDN, GLTFLoader + DRACOLoader, orbit controls, auto-fit camera, animation playback) with a Playwright check: model loads, no console errors, no horizontal scroll at 390px.\n\n## Goal\n\nShow any GLB (Draco or not, animated or not) on a web page with sane defaults, verified headless.\n\n## Steps\n\n1. Copy `code/viewer.html` next to your model and open `viewer.html?src=model.glb` through any static server (`python3 -m http.server`).\n2. The page fits the camera to the model bounds, plays the first animation clip if present and caps devicePixelRatio at 2.\n3. Check it: `python3 code/check_viewer.py` builds a fixture GLB (stdlib), serves the folder, loads the page at 1440px and 390px, and fails on console errors, a missing model or horizontal scroll.\n4. For production, vendor three.js into the site (or pin the CDN version) and host models on the site's own storage.\n\n## Edge cases\n\n- Draco models need the decoder path (gstatic CDN here); without it the load fails with a decoder error.\n- Headless Chromium uses SwiftShader (CPU WebGL): fine for checks, slow for big scenes. On GPU boxes pass ANGLE flags (see gpu-render-homelab-vast).\n- file:// URLs block module imports and fetch; always serve over http.\n\n## Don'ts\n\n- Don't hotlink models from motionsites/home servers on a live site.\n- Don't load an unpinned `three@latest` in production; pin the version.\n- Don't render at full devicePixelRatio 3 on phones.\n","files":["CHANGELOG.md","code/check_viewer.py","code/make_fixture_glb.py","code/viewer.html","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/results.json","pack.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use 3d-blender-animation-public/threejs-viewer","mcp":"get_pack 3d-blender-animation-public/threejs-viewer","url":"https://logicpacks.io/packs/3d-blender-animation-public/threejs-viewer"},{"id":"accessibility-public/alt-text-audit","space":"accessibility-public","name":"alt-text-audit","version":"1.0.0","category":"accessibility","summary":"Audit image alt text across a site or docs folder (HTML and Markdown) and list missing, filename, redundant and overlong alts","level":"L2","env":[],"tools":["python3"],"checks":1,"routes":["local-python"],"reliability":{"ok":10,"total":10},"repo":"https://github.com/Tech-Realm/space-accessibility-public","repoName":"Tech-Realm/space-accessibility-public","path":"alt-text-audit","spec":"# Audit image alt text across a site or docs folder (HTML and Markdown) and list missing, filename, redundant and overlong alts\n\n## Goal\n\nA CSV of every image with its alt text and a verdict (ok, missing, filename, redundant 'image of', too long > 150 chars, duplicate across different images) so writers can fix them in one pass.\n\nVerified by: Fixture folder: 5 images; each problem type is detected once and the good alt is 'ok'.\n\n## Steps\n\n1. Run `python3 code/alt_audit.py content/ > alt-report.csv`.\n2. Open in a spreadsheet; write new alt text per the decision tree.\n3. Re-run until no rows are flagged.\n\n## Edge cases\n\n- Markdown reference-style images are not parsed.\n- The same alt for the same image src is fine; only the same alt for different images is flagged.\n\n## Don'ts\n\n- Don't claim WCAG conformance from automated checks alone; automated tools catch roughly a third of issues, so do a manual keyboard and screen-reader pass too.\n- Don't auto-generate alt text and publish without a human reading it.\n","files":["CHANGELOG.md","code/alt_audit.py","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/fixtures/site/index.html","outcome/fixtures/site/post.md","outcome/results.json","pack.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use accessibility-public/alt-text-audit","mcp":"get_pack accessibility-public/alt-text-audit","url":"https://logicpacks.io/packs/accessibility-public/alt-text-audit"},{"id":"accessibility-public/color-contrast-check","space":"accessibility-public","name":"color-contrast-check","version":"1.0.0","category":"accessibility","summary":"Check text and UI colour pairs against WCAG contrast ratios (AA/AAA, normal and large text)","level":"L2","env":[],"tools":["python3"],"checks":1,"routes":["local-python"],"reliability":{"ok":9,"total":10},"repo":"https://github.com/Tech-Realm/space-accessibility-public","repoName":"Tech-Realm/space-accessibility-public","path":"color-contrast-check","spec":"# Check text and UI colour pairs against WCAG contrast ratios (AA/AAA, normal and large text)\n\n## Goal\n\nContrast ratio and AA/AAA pass/fail for each foreground/background pair (hex), plus the nearest passing darker/lighter foreground for failures.\n\nVerified by: Known values: #000/#fff = 21.00; #777/#fff = 4.48 (fails AA normal); suggestion for #777 on white passes 4.5.\n\n## Steps\n\n1. List the design's text/background pairs (design tokens).\n2. Run `python3 code/contrast.py pairs.txt`.\n3. Replace failing colours with the suggested ones or adjust the palette.\n\n## Edge cases\n\n- Transparent colours must be flattened against their background first.\n- Text over images needs a check against the worst-case pixel area.\n\n## Don'ts\n\n- Don't claim WCAG conformance from automated checks alone; automated tools catch roughly a third of issues, so do a manual keyboard and screen-reader pass too.\n","files":["CHANGELOG.md","code/contrast.py","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/fixtures/pairs.txt","outcome/results.json","pack.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use accessibility-public/color-contrast-check","mcp":"get_pack accessibility-public/color-contrast-check","url":"https://logicpacks.io/packs/accessibility-public/color-contrast-check"},{"id":"accessibility-public/html-a11y-check","space":"accessibility-public","name":"html-a11y-check","version":"1.0.0","category":"accessibility","summary":"Check HTML pages for common WCAG failures (missing lang/title/alt/labels, heading skips, empty links and buttons, duplicate ids)","level":"L2","env":[],"tools":["python3"],"checks":2,"routes":["local-python","axe-cli"],"reliability":{"ok":9,"total":9},"repo":"https://github.com/Tech-Realm/space-accessibility-public","repoName":"Tech-Realm/space-accessibility-public","path":"html-a11y-check","spec":"# Check HTML pages for common WCAG failures (missing lang/title/alt/labels, heading skips, empty links and buttons, duplicate ids)\n\n## Goal\n\nA per-file list of automated WCAG 2.2 failures with the success criterion for each, from static HTML (built site output or saved pages).\n\nVerified by: Bad fixture reports the 9 planted failures with their SC numbers; good fixture reports 0.\n\n## Steps\n\n1. Build the site, then run `python3 code/a11y.py dist/`.\n2. Fix each failure in the source templates.\n3. Re-run, then do a manual keyboard pass (Tab through the page) and a screen-reader spot check (VoiceOver: Cmd+F5).\n\n## Edge cases\n\n- Content injected by JavaScript is not seen; for SPAs save the rendered HTML first or use axe-core in a browser.\n- alt=\"\" is correct for decorative images and is not flagged.\n\n## Don'ts\n\n- Don't claim WCAG conformance from automated checks alone; automated tools catch roughly a third of issues, so do a manual keyboard and screen-reader pass too.\n","files":["CHANGELOG.md","code/a11y.py","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/fixtures/bad.html","outcome/fixtures/good.html","outcome/results.json","pack.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use accessibility-public/html-a11y-check","mcp":"get_pack accessibility-public/html-a11y-check","url":"https://logicpacks.io/packs/accessibility-public/html-a11y-check"},{"id":"accessibility-public/pdf-accessibility-check","space":"accessibility-public","name":"pdf-accessibility-check","version":"1.0.0","category":"accessibility","summary":"Check a PDF for the basics of an accessible document: tagged, language set, title shown, real text (not a scan)","level":"L1","env":[],"tools":["python3","pdftotext"],"checks":2,"routes":["local-python","verapdf"],"reliability":{"ok":9,"total":9},"repo":"https://github.com/Tech-Realm/space-accessibility-public","repoName":"Tech-Realm/space-accessibility-public","path":"pdf-accessibility-check","spec":"# Check a PDF for the basics of an accessible document: tagged, language set, title shown, real text (not a scan)\n\n## Goal\n\nA pass/fail list for a PDF: tagged (MarkInfo/StructTreeRoot), document language, title + DisplayDocTitle, tab order follows structure, extractable text (not image-only), from a stdlib scan plus pdftotext.\n\nVerified by: Generated tagged fixture passes all 5 checks; untagged fixture fails tagged/lang/title/tab order and passes text.\n\n## Steps\n\n1. Run `python3 code/pdf_a11y.py doc.pdf`.\n2. Fix at the source (Word/InDesign: export as tagged PDF with title and language), not by patching the PDF.\n3. For full PDF/UA use veraPDF or PAC (free) and a screen-reader pass.\n\n## Edge cases\n\n- Compressed object streams can hide catalog keys; the script inflates FlateDecode streams it can read.\n- Image-only pages are detected by empty pdftotext output; OCR (tesseract/ocrmypdf) is the fix.\n\n## Don'ts\n\n- Don't claim WCAG conformance from automated checks alone; automated tools catch roughly a third of issues, so do a manual keyboard and screen-reader pass too.\n","files":["CHANGELOG.md","code/pdf_a11y.py","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/fixtures/tagged.pdf","outcome/fixtures/untagged.pdf","outcome/results.json","pack.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use accessibility-public/pdf-accessibility-check","mcp":"get_pack accessibility-public/pdf-accessibility-check","url":"https://logicpacks.io/packs/accessibility-public/pdf-accessibility-check"},{"id":"accessibility-public/plain-language-check","space":"accessibility-public","name":"plain-language-check","version":"1.0.0","category":"accessibility","summary":"Score text for plain language (reading grade, long sentences, long words) so content is readable for more people","level":"L2","env":[],"tools":["python3"],"checks":2,"routes":["local-python"],"reliability":{"ok":9,"total":9},"repo":"https://github.com/Tech-Realm/space-accessibility-public","repoName":"Tech-Realm/space-accessibility-public","path":"plain-language-check","spec":"# Score text for plain language (reading grade, long sentences, long words) so content is readable for more people\n\n## Goal\n\nFlesch reading ease, Flesch-Kincaid grade, average sentence length, and a list of sentences over 25 words, for a text or Markdown file.\n\nVerified by: Simple fixture scores grade < 6; dense fixture scores grade > 14 and its 40+ word sentence is listed.\n\n## Steps\n\n1. Run `python3 code/readability.py page.md`.\n2. Split flagged sentences, swap long words for short ones, use lists.\n3. Aim for grade 8 or lower for public content.\n\n## Edge cases\n\n- Markdown syntax, code blocks and URLs are stripped first.\n- Syllable counting is approximate (English only).\n\n## Don'ts\n\n- Don't chase the score at the cost of accuracy; technical terms can stay if defined.\n","files":["CHANGELOG.md","code/readability.py","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/fixtures/dense.md","outcome/fixtures/simple.md","outcome/results.json","pack.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use accessibility-public/plain-language-check","mcp":"get_pack accessibility-public/plain-language-check","url":"https://logicpacks.io/packs/accessibility-public/plain-language-check"},{"id":"accessibility-public/subtitle-srt-check","space":"accessibility-public","name":"subtitle-srt-check","version":"1.0.0","category":"accessibility","summary":"Check an SRT subtitle file for overlaps, too-fast reading speed, long lines and too-short cues","level":"L2","env":[],"tools":["python3"],"checks":1,"routes":["local-python"],"reliability":{"ok":9,"total":9},"repo":"https://github.com/Tech-Realm/space-accessibility-public","repoName":"Tech-Realm/space-accessibility-public","path":"subtitle-srt-check","spec":"# Check an SRT subtitle file for overlaps, too-fast reading speed, long lines and too-short cues\n\n## Goal\n\nA per-cue list of subtitle problems (overlapping times, duration < 1 s or > 7 s, > 2 lines, line > 42 chars, reading speed > 17 chars/s) with a summary, so captions meet common accessibility guidelines.\n\nVerified by: Fixture with 4 cues: overlap, fast cue and long line are each reported; the clean cue is not.\n\n## Steps\n\n1. Run `python3 code/srt_check.py captions.srt`.\n2. Fix in the subtitle editor (split long cues, extend durations into gaps).\n3. Re-run until clean; watch once with sound off.\n\n## Edge cases\n\n- Speaker labels and tags (<i>) are stripped before counting characters.\n- Limits are flags (--cps, --line) because platforms differ (e.g. some use 20 cps).\n\n## Don'ts\n\n- Don't claim WCAG conformance from automated checks alone; automated tools catch roughly a third of issues, so do a manual keyboard and screen-reader pass too.\n- Don't paraphrase dialogue just to hit a number without checking meaning.\n","files":["CHANGELOG.md","code/srt_check.py","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/fixtures/captions.srt","outcome/results.json","pack.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use accessibility-public/subtitle-srt-check","mcp":"get_pack accessibility-public/subtitle-srt-check","url":"https://logicpacks.io/packs/accessibility-public/subtitle-srt-check"},{"id":"accounting-public/ar-aging-report","space":"accounting-public","name":"ar-aging-report","version":"1.0.0","category":"accounting","summary":"build an accounts-receivable aging report (current, 1-30, 31-60, 61-90, 90+ days) from open invoices","level":"L2","env":[],"tools":["python3"],"checks":1,"routes":["python-stdlib"],"reliability":{"ok":10,"total":10},"repo":"https://github.com/Tech-Realm/space-accounting-public","repoName":"Tech-Realm/space-accounting-public","path":"ar-aging-report","spec":"# Build an accounts-receivable aging report (current, 1-30, 31-60, 61-90, 90+ days) from open invoices\n\n## Goal\n\nBuild an accounts-receivable aging report (current, 1-30, 31-60, 61-90, 90+ days) from open invoices.\n\n## Steps\n\n1. Export open (unpaid) invoices with due dates.\n2. Run `python3 code/aging.py invoices.csv --asof <period end>`.\n3. Chase 31+ day buckets; consider a provision for 90+.\n\n## Edge cases\n\n- Partial payments: use the open balance, not the invoice total.\n- Credit notes are negative amounts in the bucket of their due date.\n\n## Don'ts\n\n- Don't age by invoice date when terms differ per customer; use due date.\n\n## Routes (free first)\n\n1. `python-stdlib`: `code/aging.py` (no install).\n","files":["CHANGELOG.md","code/aging.py","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/fixtures/inv.csv","outcome/results.json","pack.yaml","refs/refs.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use accounting-public/ar-aging-report","mcp":"get_pack accounting-public/ar-aging-report","url":"https://logicpacks.io/packs/accounting-public/ar-aging-report"},{"id":"accounting-public/bank-reconciliation","space":"accounting-public","name":"bank-reconciliation","version":"1.0.0","category":"accounting","summary":"reconcile a bank statement against the ledger and list unmatched items","level":"L2","env":[],"tools":["python3"],"checks":1,"routes":["python-stdlib"],"reliability":{"ok":12,"total":12},"repo":"https://github.com/Tech-Realm/space-accounting-public","repoName":"Tech-Realm/space-accounting-public","path":"bank-reconciliation","spec":"# Reconcile a bank statement against the ledger and list unmatched items\n\n## Goal\n\nReconcile a bank statement against the ledger and list unmatched items.\n\n## Steps\n\n1. Export the bank statement and the ledger cash account for the same period as CSV.\n2. Run `python3 code/reconcile.py bank.csv ledger.csv --days 3`.\n3. Book unmatched bank items (fees, interest) in the ledger; list unmatched ledger items as outstanding (uncleared cheques, deposits in transit).\n4. Check: ledger balance + unmatched bank items = bank balance + outstanding ledger items.\n\n## Edge cases\n\n- Split payments (one bank line paying two invoices) need manual matching or grouping.\n- Same amount twice in the window: the closest date wins; review those pairs.\n- Currency and sign conventions must match (bank debits negative).\n\n## Don'ts\n\n- Don't force-match by changing amounts; investigate the difference.\n- Don't reconcile across periods without carrying forward outstanding items.\n\n## Routes (free first)\n\n1. `python-stdlib`: `code/reconcile.py` (no install).\n","files":["CHANGELOG.md","code/reconcile.py","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/fixtures/bank.csv","outcome/fixtures/ledger.csv","outcome/results.json","pack.yaml","refs/refs.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use accounting-public/bank-reconciliation","mcp":"get_pack accounting-public/bank-reconciliation","url":"https://logicpacks.io/packs/accounting-public/bank-reconciliation"},{"id":"accounting-public/bookkeeping-from-csv","space":"accounting-public","name":"bookkeeping-from-csv","version":"1.0.0","category":"accounting","summary":"turn a bank transactions CSV into balanced double-entry journal lines and a trial balance","level":"L2","env":[],"tools":["python3"],"checks":2,"routes":["python-stdlib"],"reliability":{"ok":10,"total":10},"repo":"https://github.com/Tech-Realm/space-accounting-public","repoName":"Tech-Realm/space-accounting-public","path":"bookkeeping-from-csv","spec":"# Turn a bank transactions CSV into balanced double-entry journal lines and a trial balance\n\n## Goal\n\nTurn a bank transactions CSV into balanced double-entry journal lines and a trial balance.\n\n## Steps\n\n1. Write keyword rules mapping descriptions to accounts (rules.csv).\n2. Run `python3 code/book.py tx.csv rules.csv`.\n3. Review every Suspense line and add a rule or book it manually.\n4. Confirm the trial balance says BALANCED, then import the journal into your accounting tool.\n\n## Edge cases\n\n- Refunds reverse the usual direction; rules match on text, not sign.\n- Mixed-VAT receipts need splitting before booking.\n\n## Don'ts\n\n- Don't leave Suspense non-zero at period end.\n- Don't edit bank amounts to make it balance.\n\n## Routes (free first)\n\n1. `python-stdlib`: `code/book.py` (no install).\n","files":["CHANGELOG.md","code/book.py","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/fixtures/rules.csv","outcome/fixtures/tx.csv","outcome/results.json","pack.yaml","refs/refs.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use accounting-public/bookkeeping-from-csv","mcp":"get_pack accounting-public/bookkeeping-from-csv","url":"https://logicpacks.io/packs/accounting-public/bookkeeping-from-csv"},{"id":"accounting-public/depreciation-schedule","space":"accounting-public","name":"depreciation-schedule","version":"1.0.0","category":"accounting","summary":"produce a straight-line or double-declining depreciation schedule that ends at salvage value","level":"L2","env":[],"tools":["python3"],"checks":2,"routes":["python-stdlib"],"reliability":{"ok":10,"total":10},"repo":"https://github.com/Tech-Realm/space-accounting-public","repoName":"Tech-Realm/space-accounting-public","path":"depreciation-schedule","spec":"# Produce a straight-line or double-declining depreciation schedule that ends at salvage value\n\n## Goal\n\nProduce a straight-line or double-declining depreciation schedule that ends at salvage value.\n\n## Steps\n\n1. Get cost, salvage and useful life from the asset register.\n2. Run the script with the method your policy uses.\n3. Book each year's depreciation: Dr Depreciation expense / Cr Accumulated depreciation.\n\n## Edge cases\n\n- Part-year first years need pro-rating (months in service / 12).\n- Tax depreciation rules differ from book rules per country.\n\n## Don'ts\n\n- Don't depreciate land.\n- Don't let book value go below salvage.\n\n## Routes (free first)\n\n1. `python-stdlib`: `code/depreciation.py` (no install).\n","files":["CHANGELOG.md","code/depreciation.py","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/results.json","pack.yaml","refs/refs.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use accounting-public/depreciation-schedule","mcp":"get_pack accounting-public/depreciation-schedule","url":"https://logicpacks.io/packs/accounting-public/depreciation-schedule"},{"id":"accounting-public/financial-statements","space":"accounting-public","name":"financial-statements","version":"1.0.0","category":"accounting","summary":"produce an income statement and balance sheet from a trial balance and prove assets = liabilities + equity","level":"L2","env":[],"tools":["python3"],"checks":1,"routes":["python-stdlib"],"reliability":{"ok":10,"total":10},"repo":"https://github.com/Tech-Realm/space-accounting-public","repoName":"Tech-Realm/space-accounting-public","path":"financial-statements","spec":"# Produce an income statement and balance sheet from a trial balance and prove assets = liabilities + equity\n\n## Goal\n\nProduce an income statement and balance sheet from a trial balance and prove assets = liabilities + equity.\n\n## Steps\n\n1. Export the closing trial balance with an account type column.\n2. Run `python3 code/statements.py tb.csv`.\n3. If identity is BROKEN, the trial balance is out of balance or an account type is wrong.\n\n## Edge cases\n\n- Contra accounts (accumulated depreciation) carry the opposite sign of their group.\n- Dividends/drawings reduce equity, not income.\n\n## Don'ts\n\n- Don't present statements whose identity check fails.\n\n## Routes (free first)\n\n1. `python-stdlib`: `code/statements.py` (no install).\n","files":["CHANGELOG.md","code/statements.py","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/fixtures/tb.csv","outcome/results.json","pack.yaml","refs/refs.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use accounting-public/financial-statements","mcp":"get_pack accounting-public/financial-statements","url":"https://logicpacks.io/packs/accounting-public/financial-statements"},{"id":"accounting-public/sales-tax-summary","space":"accounting-public","name":"sales-tax-summary","version":"1.0.0","category":"accounting","summary":"summarise output tax by rate from invoice lines for a sales-tax/VAT return","level":"L2","env":[],"tools":["python3"],"checks":1,"routes":["python-stdlib"],"reliability":{"ok":10,"total":10},"repo":"https://github.com/Tech-Realm/space-accounting-public","repoName":"Tech-Realm/space-accounting-public","path":"sales-tax-summary","spec":"# Summarise output tax by rate from invoice lines for a sales-tax/VAT return\n\n## Goal\n\nSummarise output tax by rate from invoice lines for a sales-tax/VAT return.\n\n## Steps\n\n1. Export invoice lines with net amount and tax rate.\n2. Run the script.\n3. Copy the per-rate figures into the return; keep the output as working papers.\n\n## Edge cases\n\n- Rounding: per line vs per invoice can differ by cents; follow your tax authority's rule.\n- Exempt vs zero-rated are different boxes even at 0%.\n\n## Don'ts\n\n- Don't file without reconciling to the ledger tax accounts.\n\n## Routes (free first)\n\n1. `python-stdlib`: `code/taxsum.py` (no install).\n","files":["CHANGELOG.md","code/taxsum.py","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/fixtures/lines.csv","outcome/results.json","pack.yaml","refs/refs.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use accounting-public/sales-tax-summary","mcp":"get_pack accounting-public/sales-tax-summary","url":"https://logicpacks.io/packs/accounting-public/sales-tax-summary"},{"id":"admin-panels-and-internal-tools-public/add-sso-with-keycloak","space":"admin-panels-and-internal-tools-public","name":"add-sso-with-keycloak","version":"1.0.0","category":"enterprise","summary":"Add single sign-on with self-hosted Keycloak (OIDC, PKCE) and verify the discovery document an app depends on","level":"L2","env":["KC_PG_PASSWORD","KC_ADMIN_PASSWORD"],"tools":["python3","docker"],"checks":5,"routes":["keycloak-docker","authentik-docker"],"reliability":{"ok":7,"total":7},"repo":"https://github.com/Tech-Realm/space-admin-panels-and-internal-tools-public","repoName":"Tech-Realm/space-admin-panels-and-internal-tools-public","path":"add-sso-with-keycloak","spec":"# add-sso-with-keycloak\n\nAdd single sign-on with self-hosted Keycloak (OIDC, PKCE) and verify the discovery document an app depends on\n\n## Goal\nOur internal tools log in through one IdP with OIDC + PKCE, and an app refuses a misconfigured IdP.\n\n## Steps\n1. `bash code/boot_check.sh` -> Keycloak on 127.0.0.1:8084.\n2. Create realm `internal`, a client per app (confidential or public+PKCE), roles mapped to our RBAC roles.\n3. Check: `oidc_check.py http://127.0.0.1:8084/realms/internal/.well-known/openid-configuration`.\n4. Alternatives: Authentik (MIT core, EE flagged), Auth.js (ISC) inside Next.js apps.\n\n## Edge cases\n- start-dev is HTTP and in-memory caches: use `start` with hostname + TLS for real use.\n- Clock skew breaks token validation: NTP on all hosts.\n\n## Don'ts\n- Don't use implicit flow.\n- Don't expose the admin console publicly.\n","files":["CHANGELOG.md","code/boot_check.sh","code/compose_lint.py","code/docker-compose.yml","code/oidc_check.py","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/fixtures/bad-compose.yml","outcome/fixtures/oidc-bad.json","outcome/fixtures/oidc-good.json","outcome/results.json","pack.yaml","refs/refs.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use admin-panels-and-internal-tools-public/add-sso-with-keycloak","mcp":"get_pack admin-panels-and-internal-tools-public/add-sso-with-keycloak","url":"https://logicpacks.io/packs/admin-panels-and-internal-tools-public/add-sso-with-keycloak"},{"id":"admin-panels-and-internal-tools-public/build-an-internal-tool-on-appsmith","space":"admin-panels-and-internal-tools-public","name":"build-an-internal-tool-on-appsmith","version":"1.0.0","category":"enterprise","summary":"Build an internal tool on self-hosted Appsmith CE wired to our multi-tenant CRUD API (list, create, export)","level":"L2","env":[],"tools":["python3","docker"],"checks":4,"routes":["appsmith-docker","refine-code-first"],"reliability":{"ok":7,"total":7},"repo":"https://github.com/Tech-Realm/space-admin-panels-and-internal-tools-public","repoName":"Tech-Realm/space-admin-panels-and-internal-tools-public","path":"build-an-internal-tool-on-appsmith","spec":"# build-an-internal-tool-on-appsmith\n\nBuild an internal tool on self-hosted Appsmith CE wired to our multi-tenant CRUD API (list, create, export)\n\n## Goal\nOps staff get a CRUD screen (table + form + export) over our data without us writing a frontend.\n\n## Steps\n1. `bash code/boot_check.sh` -> Appsmith on 127.0.0.1:8083.\n2. Run `admin.py serve` on the host; in Appsmith add a REST datasource http://host.docker.internal:8765 with header X-User.\n3. Build: Table widget <- GET /api/customers; Form -> POST; Button -> GET /api/customers.csv.\n4. Alternatives: ToolJet (AGPL, flagged), Refine/React Admin (MIT) for code-first UIs.\n\n## Edge cases\n- Appsmith first boot is slow (several minutes).\n- X-User header is a stand-in: put SSO (Keycloak) in front for real use.\n\n## Don'ts\n- Don't store DB passwords in app JSON exports.\n- Don't use :latest.\n","files":["CHANGELOG.md","code/admin.py","code/boot_check.sh","code/compose_lint.py","code/docker-compose.yml","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/fixtures/bad-compose.yml","outcome/fixtures/users.json","outcome/results.json","pack.yaml","refs/refs.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use admin-panels-and-internal-tools-public/build-an-internal-tool-on-appsmith","mcp":"get_pack admin-panels-and-internal-tools-public/build-an-internal-tool-on-appsmith","url":"https://logicpacks.io/packs/admin-panels-and-internal-tools-public/build-an-internal-tool-on-appsmith"},{"id":"admin-panels-and-internal-tools-public/enforce-rbac-and-audit-log","space":"admin-panels-and-internal-tools-public","name":"enforce-rbac-and-audit-log","version":"1.0.0","category":"enterprise","summary":"Enforce role-based permissions on every action and keep a tamper-evident (hash-chained) audit log","level":"L2","env":[],"tools":["python3"],"checks":1,"routes":["stdlib-sqlite"],"reliability":{"ok":8,"total":8},"repo":"https://github.com/Tech-Realm/space-admin-panels-and-internal-tools-public","repoName":"Tech-Realm/space-admin-panels-and-internal-tools-public","path":"enforce-rbac-and-audit-log","spec":"# enforce-rbac-and-audit-log\n\nEnforce role-based permissions on every action and keep a tamper-evident (hash-chained) audit log\n\n## Goal\nUsers can only do what their role allows, and any edit to the audit history is detected.\n\n## Steps\n1. Define roles -> permissions (viewer: read; editor: read/write; admin: + export/admin).\n2. Check `can(role, perm)` server-side on every request; log denials too.\n3. `admin.py audit-verify` daily; alert on failure.\n\n## Edge cases\n- Role changes take effect on the next request.\n- Audit log growth: archive monthly, keep the last hash as the next genesis.\n\n## Don'ts\n- Don't check permissions only in the UI.\n- Don't allow UPDATE/DELETE on the audit table.\n","files":["CHANGELOG.md","code/admin.py","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/fixtures/users.json","outcome/results.json","pack.yaml","refs/refs.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use admin-panels-and-internal-tools-public/enforce-rbac-and-audit-log","mcp":"get_pack admin-panels-and-internal-tools-public/enforce-rbac-and-audit-log","url":"https://logicpacks.io/packs/admin-panels-and-internal-tools-public/enforce-rbac-and-audit-log"},{"id":"admin-panels-and-internal-tools-public/run-a-multi-tenant-crud-api","space":"admin-panels-and-internal-tools-public","name":"run-a-multi-tenant-crud-api","version":"1.0.0","category":"enterprise","summary":"Run a multi-tenant JSON CRUD API (create, list, get, CSV export) where tenant isolation is enforced server-side","level":"L2","env":[],"tools":["python3"],"checks":1,"routes":["stdlib-http"],"reliability":{"ok":8,"total":8},"repo":"https://github.com/Tech-Realm/space-admin-panels-and-internal-tools-public","repoName":"Tech-Realm/space-admin-panels-and-internal-tools-public","path":"run-a-multi-tenant-crud-api","spec":"# run-a-multi-tenant-crud-api\n\nRun a multi-tenant JSON CRUD API (create, list, get, CSV export) where tenant isolation is enforced server-side\n\n## Goal\nEach tenant creates records, sees them in a list and exports them, and can never see another tenant's rows.\n\n## Steps\n1. Seed users with tenant + role (`admin.py seed users.json`).\n2. `admin.py serve --port 8765` (localhost).\n3. POST /api/<resource> to create, GET /api/<resource> to list, GET /api/<resource>.csv to export (admin).\n\n## Edge cases\n- Client-sent tenant_id is ignored by design.\n- Unknown user -> 401; wrong role -> 403 (logged).\n\n## Don'ts\n- Don't expose it beyond localhost without SSO in front (see add-sso-with-keycloak).\n","files":["CHANGELOG.md","code/admin.py","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/fixtures/users.json","outcome/results.json","pack.yaml","refs/refs.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use admin-panels-and-internal-tools-public/run-a-multi-tenant-crud-api","mcp":"get_pack admin-panels-and-internal-tools-public/run-a-multi-tenant-crud-api","url":"https://logicpacks.io/packs/admin-panels-and-internal-tools-public/run-a-multi-tenant-crud-api"},{"id":"ai-video-generation-public/ai-realism-workflow","space":"ai-video-generation-public","name":"ai-realism-workflow","version":"1.0.0","category":"video-media","summary":"Asset-first AI ad workflow: approved character/location/prop sheets -> timed scene prompts with blocking -> several takes -> edit (Soul Cinema, Seedream, Seedance).","level":"L1","env":["VAST_API_KEY","HIGGSFIELD_API_KEY"],"tools":[],"checks":1,"routes":["codex","vast-wan22","higgsfield"],"reliability":{"ok":7,"total":7},"repo":"https://github.com/Tech-Realm/space-ai-video-generation-public","repoName":"Tech-Realm/space-ai-video-generation-public","path":"ai-realism-workflow","spec":"# ai-realism-workflow\n\nAsset-first AI ad workflow: approved character/location/prop sheets -> timed scene prompts with blocking -> several takes -> edit (Soul Cinema, Seedream, Seedance).\n\n## Goal\n\nProduce a realistic multi-shot AI commercial whose shots read as one film, with consistent characters, locations and props.\n\n## Steps\n\n1. Build reusable assets first, one project with handles (@char_x, @loc_y, @prop_z): character sheet on grey (identity portrait + outfit front/back neck-down), locations built around the action (one seat per person, clear camera path, 3/4 depth), recurring props designed separately.\n2. Fix near-misses with an image-edit model (preserve face/glasses/clothes) instead of regenerating; save corrected versions under new handles.\n3. Get the asset sheets approved before writing scenes.\n4. Write timed scene prompts: style header first (lens, colour, light, pace) then shot windows; duration, action, dialogue, transition; final timestamp = requested duration.\n5. Blocking: establish wide, anchor each person to a landmark; draw a top-down diagram for overheads; a new angle is not permission to swap people.\n6. Transitions: match subject size/position/pose and continue the camera move across the cut; land cuts on a clear action; follow the hero prop.\n7. Packshot: product reads first, one focus change to the payoff, brand line immediately.\n8. Generate 2-4 takes per scene with all asset images attached; assemble selected moments.\n\n## Edge cases\n\n- Text-only prompts will not reproduce a face/take; always attach the asset images.\n- The duration field in the tool keeps the previous value: re-check it.\n- No background score in generated scenes (diegetic performance excepted).\n\n## Don'ts\n\n- Don't clone a real person's face or voice.\n- Don't regenerate a nearly-right asset: edit it.\n\n## Keys\n\nEnv NAMES only (values live in the lp vault; run through `lp run`): VAST_API_KEY, HIGGSFIELD_API_KEY\n","files":["CHANGELOG.md","code/check_shotlist.py","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/fixtures/shotlist.json","outcome/results.json","pack.yaml","refs/refs.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use ai-video-generation-public/ai-realism-workflow","mcp":"get_pack ai-video-generation-public/ai-realism-workflow","url":"https://logicpacks.io/packs/ai-video-generation-public/ai-realism-workflow"},{"id":"always-on-agents-public/cron-and-queues","space":"always-on-agents-public","name":"cron-and-queues","version":"1.0.0","category":"self-hosting-infra","summary":"Scheduled jobs that don't overlap or vanish: cron/systemd timers with locks, idempotent state, run logs","level":"L2","env":[],"tools":["python3"],"checks":1,"routes":["self-hosted"],"reliability":{"ok":7,"total":7},"repo":"https://github.com/Tech-Realm/space-always-on-agents-public","repoName":"Tech-Realm/space-always-on-agents-public","path":"cron-and-queues","spec":"# cron-and-queues\n\n## Goal\n\nRecurring jobs (scrapes, syncs, reports) run on schedule, never overlap, survive reboots, record each run, and are safe to re-run.\n\n## Steps\n\n1. Prefer systemd timers (Persistent=true catches missed runs) or launchd StartInterval on the Mac; cron only where nothing else exists.\n2. Wrap the job with a lock: `flock -n /run/lock/job.lock job.sh` (Linux) or the Python lock in code/run_once.py (portable).\n3. Make the job idempotent: keep a state file of processed ids; write output atomically (tmp + rename).\n4. Log each run (start, end, result) to a JSON-lines file; a watchdog alerts if the last success is too old.\n5. For bursts of work, a simple SQLite queue table (status, attempts, next_run_at) beats an external queue SaaS.\n\n## Edge cases\n\n- Two schedulers (cron + timer) for the same job = duplicate runs.\n\n## Don'ts\n\n- Don't let a job run forever: always set a timeout.\n- Never put a password, token or key value in this pack: use the env NAMES in pack.yaml and `lp key add NAME`.\n","files":["CHANGELOG.md","code/run_once.py","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/results.json","pack.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use always-on-agents-public/cron-and-queues","mcp":"get_pack always-on-agents-public/cron-and-queues","url":"https://logicpacks.io/packs/always-on-agents-public/cron-and-queues"},{"id":"architecture-public/daylight-window-ratio","space":"architecture-public","name":"daylight-window-ratio","version":"1.0.0","category":"architecture","summary":"check each room's window-to-floor area ratio against a daylight and ventilation target","level":"L2","env":[],"tools":["python3"],"checks":1,"routes":["python-stdlib"],"reliability":{"ok":10,"total":10},"repo":"https://github.com/Tech-Realm/space-architecture-public","repoName":"Tech-Realm/space-architecture-public","path":"daylight-window-ratio","spec":"# Check each room's window-to-floor area ratio against a daylight and ventilation target\n\n## Goal\n\nCheck each room's window-to-floor area ratio against a daylight and ventilation target.\n\n## Steps\n\n1. Take room floor areas from the schedule and window sizes from the window schedule.\n2. Run glazing.py with your local code targets.\n3. Fix failing rooms early (bigger or extra windows, rooflights).\n\n## Edge cases\n\n- Deep rooms need daylight factor analysis, not just ratios.\n- Over-glazing causes overheating; balance with orientation and shading.\n\n## Don'ts\n\n- Don't treat the ratio as a code-compliance certificate.\n\n## Routes (free first)\n\n1. `python-stdlib`: `code/glazing.py` (no install).\n","files":["CHANGELOG.md","code/glazing.py","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/fixtures/r.csv","outcome/results.json","pack.yaml","refs/refs.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use architecture-public/daylight-window-ratio","mcp":"get_pack architecture-public/daylight-window-ratio","url":"https://logicpacks.io/packs/architecture-public/daylight-window-ratio"},{"id":"architecture-public/material-takeoff-walls","space":"architecture-public","name":"material-takeoff-walls","version":"1.0.0","category":"architecture","summary":"take off wall materials (blocks, mortar, plaster, paint) from wall lengths, heights and openings","level":"L2","env":[],"tools":["python3"],"checks":1,"routes":["python-stdlib"],"reliability":{"ok":10,"total":10},"repo":"https://github.com/Tech-Realm/space-architecture-public","repoName":"Tech-Realm/space-architecture-public","path":"material-takeoff-walls","spec":"# Take off wall materials (blocks, mortar, plaster, paint) from wall lengths, heights and openings\n\n## Goal\n\nTake off wall materials (blocks, mortar, plaster, paint) from wall lengths, heights and openings.\n\n## Steps\n\n1. Measure wall centre-line lengths and heights from plans/sections.\n2. Subtract door/window openings.\n3. Run takeoff.py; send quantities for supplier quotes.\n\n## Edge cases\n\n- Block size and joint thickness vary by region; change the per-m2 count.\n- Corners double-count when using external lengths for both walls.\n\n## Don'ts\n\n- Don't skip waste allowance on cut-heavy walls.\n\n## Routes (free first)\n\n1. `python-stdlib`: `code/takeoff.py` (no install).\n","files":["CHANGELOG.md","code/takeoff.py","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/fixtures/w.csv","outcome/results.json","pack.yaml","refs/refs.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use architecture-public/material-takeoff-walls","mcp":"get_pack architecture-public/material-takeoff-walls","url":"https://logicpacks.io/packs/architecture-public/material-takeoff-walls"},{"id":"architecture-public/parking-and-occupancy","space":"architecture-public","name":"parking-and-occupancy","version":"1.0.0","category":"architecture","summary":"estimate occupant load per space use and the parking bays required from area-based ratios","level":"L2","env":[],"tools":["python3"],"checks":1,"routes":["python-stdlib"],"reliability":{"ok":10,"total":10},"repo":"https://github.com/Tech-Realm/space-architecture-public","repoName":"Tech-Realm/space-architecture-public","path":"parking-and-occupancy","spec":"# Estimate occupant load per space use and the parking bays required from area-based ratios\n\n## Goal\n\nEstimate occupant load per space use and the parking bays required from area-based ratios.\n\n## Steps\n\n1. Take ratios from the applicable code and local planning rules (they vary a lot).\n2. List spaces with use and area.\n3. Run occupancy.py; use occupants for exits/toilets and bays for site layout.\n\n## Edge cases\n\n- Mixed-use sharing reductions are allowed in some jurisdictions.\n- Gross vs net area basis differs by code.\n\n## Don'ts\n\n- Don't use the example ratios for a real submission.\n\n## Routes (free first)\n\n1. `python-stdlib`: `code/occupancy.py` (no install).\n","files":["CHANGELOG.md","code/occupancy.py","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/fixtures/ratios.json","outcome/fixtures/sp.csv","outcome/results.json","pack.yaml","refs/refs.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use architecture-public/parking-and-occupancy","mcp":"get_pack architecture-public/parking-and-occupancy","url":"https://logicpacks.io/packs/architecture-public/parking-and-occupancy"},{"id":"architecture-public/room-schedule-areas","space":"architecture-public","name":"room-schedule-areas","version":"1.0.0","category":"architecture","summary":"produce a room schedule with floor areas, totals per floor and gross-to-net efficiency from room polygons","level":"L2","env":[],"tools":["python3"],"checks":1,"routes":["python-stdlib"],"reliability":{"ok":10,"total":10},"repo":"https://github.com/Tech-Realm/space-architecture-public","repoName":"Tech-Realm/space-architecture-public","path":"room-schedule-areas","spec":"# Produce a room schedule with floor areas, totals per floor and gross-to-net efficiency from room polygons\n\n## Goal\n\nProduce a room schedule with floor areas, totals per floor and gross-to-net efficiency from room polygons.\n\n## Steps\n\n1. Trace each room's inside face as a polygon (x,y in metres) from the plan.\n2. Run rooms.py with gross floor areas.\n3. Paste the schedule into drawings; check against the brief's area targets.\n\n## Edge cases\n\n- Local codes differ on what counts (stairs, voids, walls).\n- Curved walls: approximate with more vertices.\n\n## Don'ts\n\n- Don't mix internal and external dimensions in one schedule.\n\n## Routes (free first)\n\n1. `python-stdlib`: `code/rooms.py` (no install).\n","files":["CHANGELOG.md","code/rooms.py","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/fixtures/rooms.json","outcome/results.json","pack.yaml","refs/refs.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use architecture-public/room-schedule-areas","mcp":"get_pack architecture-public/room-schedule-areas","url":"https://logicpacks.io/packs/architecture-public/room-schedule-areas"},{"id":"architecture-public/stair-geometry-check","space":"architecture-public","name":"stair-geometry-check","version":"1.0.0","category":"architecture","summary":"size a straight stair (risers, treads, going) for a floor-to-floor height and check the 2R+G comfort rule","level":"L2","env":[],"tools":["python3"],"checks":1,"routes":["python-stdlib"],"reliability":{"ok":10,"total":10},"repo":"https://github.com/Tech-Realm/space-architecture-public","repoName":"Tech-Realm/space-architecture-public","path":"stair-geometry-check","spec":"# Size a straight stair (risers, treads, going) for a floor-to-floor height and check the 2R+G comfort rule\n\n## Goal\n\nSize a straight stair (risers, treads, going) for a floor-to-floor height and check the 2R+G comfort rule.\n\n## Steps\n\n1. Measure finished floor to finished floor.\n2. Run stair.py with your local code's max riser and min going.\n3. Check headroom (usually >= 2000 mm) along the run on section.\n\n## Edge cases\n\n- Winders and landings change the run length.\n- Different codes (IBC, Approved Document K, local) set different limits.\n\n## Don'ts\n\n- Don't vary riser heights within a flight.\n\n## Routes (free first)\n\n1. `python-stdlib`: `code/stair.py` (no install).\n","files":["CHANGELOG.md","code/stair.py","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/results.json","pack.yaml","refs/refs.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use architecture-public/stair-geometry-check","mcp":"get_pack architecture-public/stair-geometry-check","url":"https://logicpacks.io/packs/architecture-public/stair-geometry-check"},{"id":"billing-and-subscriptions-public/price-usage-with-tiers-and-invoice","space":"billing-and-subscriptions-public","name":"price-usage-with-tiers-and-invoice","version":"1.0.0","category":"enterprise","summary":"Price metered usage with graduated or volume tiers and produce an invoice with base fee, usage lines, proration and tax","level":"L2","env":[],"tools":["python3"],"checks":2,"routes":["stdlib"],"reliability":{"ok":8,"total":8},"repo":"https://github.com/Tech-Realm/space-billing-and-subscriptions-public","repoName":"Tech-Realm/space-billing-and-subscriptions-public","path":"price-usage-with-tiers-and-invoice","spec":"# price-usage-with-tiers-and-invoice\n\nPrice metered usage with graduated or volume tiers and produce an invoice with base fee, usage lines, proration and tax\n\n## Goal\nCustomers get a correct, explainable invoice for base plan + usage, including mid-period plan changes.\n\n## Steps\n1. Define the plan (base, metered metrics with tiers + mode, tax_pct) as JSON.\n2. Aggregate usage per period (e.g. from token-management usage CSV).\n3. `billing.py invoice plan.json usage.json` -> lines, subtotal, tax, total (cents).\n4. Render with documents/invoice.\n\n## Edge cases\n- Graduated vs volume give different totals at tier edges: say which in the plan.\n- Proration by days; credit the unused old plan, charge the new one.\n\n## Don'ts\n- Don't use floats for money.\n- Don't charge for unpriced metrics: fail instead.\n","files":["CHANGELOG.md","code/billing.py","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/fixtures/event.json","outcome/fixtures/plan.json","outcome/fixtures/usage.json","outcome/results.json","pack.yaml","refs/refs.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use billing-and-subscriptions-public/price-usage-with-tiers-and-invoice","mcp":"get_pack billing-and-subscriptions-public/price-usage-with-tiers-and-invoice","url":"https://logicpacks.io/packs/billing-and-subscriptions-public/price-usage-with-tiers-and-invoice"},{"id":"billing-and-subscriptions-public/run-subscription-lifecycle-and-dunning","space":"billing-and-subscriptions-public","name":"run-subscription-lifecycle-and-dunning","version":"1.0.0","category":"enterprise","summary":"Run subscriptions through trial, active, past-due and canceled with a dunning retry schedule, refusing invalid transitions","level":"L2","env":[],"tools":["python3"],"checks":2,"routes":["stdlib"],"reliability":{"ok":8,"total":8},"repo":"https://github.com/Tech-Realm/space-billing-and-subscriptions-public","repoName":"Tech-Realm/space-billing-and-subscriptions-public","path":"run-subscription-lifecycle-and-dunning","spec":"# run-subscription-lifecycle-and-dunning\n\nRun subscriptions through trial, active, past-due and canceled with a dunning retry schedule, refusing invalid transitions\n\n## Goal\nEvery subscription is always in exactly one valid state, failed payments are retried on a schedule, and access follows the state.\n\n## Steps\n1. States: trialing -> active | past_due; active -> past_due (payment_failed) -> active (payment_succeeded) | canceled (dunning_exhausted).\n2. Dunning: retry on days 0, 3, 5, 7 after the first failure, email each time, cancel after the last.\n3. Gate features on state (active/trialing = on, past_due = grace, canceled = off).\n\n## Edge cases\n- Payment succeeds after cancel: treat as a new subscription or refund.\n- Timezones: schedule retries in UTC.\n\n## Don'ts\n- Don't delete canceled subscriptions (keep for invoices/audit).\n","files":["CHANGELOG.md","code/billing.py","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/fixtures/event.json","outcome/fixtures/plan.json","outcome/fixtures/usage.json","outcome/results.json","pack.yaml","refs/refs.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use billing-and-subscriptions-public/run-subscription-lifecycle-and-dunning","mcp":"get_pack billing-and-subscriptions-public/run-subscription-lifecycle-and-dunning","url":"https://logicpacks.io/packs/billing-and-subscriptions-public/run-subscription-lifecycle-and-dunning"},{"id":"billing-and-subscriptions-public/self-host-lago-billing","space":"billing-and-subscriptions-public","name":"self-host-lago-billing","version":"1.0.0","category":"enterprise","summary":"Self-host Lago usage-based billing from the upstream compose, pinned to a release and bound to localhost (AGPL-3.0, flagged)","level":"L2","env":[],"tools":["bash","docker","git"],"checks":2,"routes":["lago-docker","killbill"],"reliability":{"ok":7,"total":7},"repo":"https://github.com/Tech-Realm/space-billing-and-subscriptions-public","repoName":"Tech-Realm/space-billing-and-subscriptions-public","path":"self-host-lago-billing","spec":"# self-host-lago-billing\n\nSelf-host Lago usage-based billing from the upstream compose, pinned to a release and bound to localhost (AGPL-3.0, flagged)\n\n## Goal\nA working Lago where we create a billable metric and a plan, send usage events and see a draft invoice.\n\n## Steps\n1. `bash code/install.sh` clones getlago/lago at the pinned tag and starts its docker-compose.\n2. UI on 127.0.0.1:80: create a billable metric, a plan with graduated charges, a customer, a subscription.\n3. POST /api/v1/events with usage; check the draft invoice; export.\n\n## Edge cases\n- Lago generates its own secrets on first run (see upstream README).\n- AGPL: changes served to others must be published.\n\n## Don'ts\n- Don't track main.\n- Don't expose Postgres/Redis.\n","files":["CHANGELOG.md","code/install.sh","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/results.json","pack.yaml","refs/refs.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use billing-and-subscriptions-public/self-host-lago-billing","mcp":"get_pack billing-and-subscriptions-public/self-host-lago-billing","url":"https://logicpacks.io/packs/billing-and-subscriptions-public/self-host-lago-billing"},{"id":"billing-and-subscriptions-public/verify-payment-webhooks-idempotently","space":"billing-and-subscriptions-public","name":"verify-payment-webhooks-idempotently","version":"1.0.0","category":"enterprise","summary":"Verify Stripe-style signed webhooks (HMAC, timestamp tolerance) and apply each event exactly once","level":"L2","env":["STRIPE_WEBHOOK_SECRET"],"tools":["python3"],"checks":2,"routes":["stdlib","stripe-sdk"],"reliability":{"ok":8,"total":8},"repo":"https://github.com/Tech-Realm/space-billing-and-subscriptions-public","repoName":"Tech-Realm/space-billing-and-subscriptions-public","path":"verify-payment-webhooks-idempotently","spec":"# verify-payment-webhooks-idempotently\n\nVerify Stripe-style signed webhooks (HMAC, timestamp tolerance) and apply each event exactly once\n\n## Goal\nOnly genuine payment-provider events change billing state, and retries/duplicates never double-apply.\n\n## Steps\n1. Read the RAW body (before JSON parsing) and the signature header.\n2. Verify HMAC-SHA256 over '<t>.<body>' with the endpoint secret (env STRIPE_WEBHOOK_SECRET); reject if |now - t| > 300 s.\n3. Store processed event ids; skip duplicates; return 2xx fast and process async.\n4. Official SDK route: stripe.Webhook.construct_event (stripe-python, MIT).\n\n## Edge cases\n- Secret rotation: Stripe sends several v1 signatures during rollover; accept any match.\n- Out-of-order events: fetch the object's current state from the API before acting.\n\n## Don'ts\n- Don't parse/re-serialise JSON before verifying.\n- Don't log the signing secret.\n","files":["CHANGELOG.md","code/billing.py","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/fixtures/event.json","outcome/fixtures/plan.json","outcome/fixtures/usage.json","outcome/results.json","pack.yaml","refs/refs.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use billing-and-subscriptions-public/verify-payment-webhooks-idempotently","mcp":"get_pack billing-and-subscriptions-public/verify-payment-webhooks-idempotently","url":"https://logicpacks.io/packs/billing-and-subscriptions-public/verify-payment-webhooks-idempotently"},{"id":"business-ops-public/cash-flow-forecast-13-week","space":"business-ops-public","name":"cash-flow-forecast-13-week","version":"1.0.0","category":"business-ops","summary":"build a 13-week cash flow forecast and flag the first week cash goes below a floor","level":"L2","env":[],"tools":["python3"],"checks":1,"routes":["python-stdlib"],"reliability":{"ok":10,"total":10},"repo":"https://github.com/Tech-Realm/space-business-ops-public","repoName":"Tech-Realm/space-business-ops-public","path":"cash-flow-forecast-13-week","spec":"# Build a 13-week cash flow forecast and flag the first week cash goes below a floor\n\n## Goal\n\nBuild a 13-week cash flow forecast and flag the first week cash goes below a floor.\n\n## Steps\n\n1. List recurring receipts and payments with frequency in weeks.\n2. Run with today's cash as --opening and your safety floor.\n3. Act before the flagged week (chase receivables, delay spend).\n\n## Edge cases\n\n- One-off items: add with every_weeks larger than the horizon.\n- Receipts are uncertain; run a pessimistic version too.\n\n## Don'ts\n\n- Don't treat the forecast as accounting; it is cash timing only.\n\n## Routes (free first)\n\n1. `python-stdlib`: `code/cashflow.py` (no install).\n","files":["CHANGELOG.md","code/cashflow.py","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/fixtures/f.csv","outcome/results.json","pack.yaml","refs/refs.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use business-ops-public/cash-flow-forecast-13-week","mcp":"get_pack business-ops-public/cash-flow-forecast-13-week","url":"https://logicpacks.io/packs/business-ops-public/cash-flow-forecast-13-week"},{"id":"business-ops-public/inventory-valuation","space":"business-ops-public","name":"inventory-valuation","version":"1.0.0","category":"business-ops","summary":"value inventory and cost of goods sold with FIFO and weighted-average methods","level":"L2","env":[],"tools":["python3"],"checks":1,"routes":["python-stdlib"],"reliability":{"ok":10,"total":10},"repo":"https://github.com/Tech-Realm/space-business-ops-public","repoName":"Tech-Realm/space-business-ops-public","path":"inventory-valuation","spec":"# Value inventory and cost of goods sold with FIFO and weighted-average methods\n\n## Goal\n\nValue inventory and cost of goods sold with FIFO and weighted-average methods.\n\n## Steps\n\n1. Export stock movements in date order.\n2. Run the script.\n3. Use the method your accounting policy requires consistently.\n\n## Edge cases\n\n- Returns to supplier reverse the original layer.\n- Negative stock means movements are missing or out of order.\n\n## Don'ts\n\n- Don't switch methods between periods without disclosure.\n\n## Routes (free first)\n\n1. `python-stdlib`: `code/valuation.py` (no install).\n","files":["CHANGELOG.md","code/valuation.py","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/fixtures/mv.csv","outcome/results.json","pack.yaml","refs/refs.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use business-ops-public/inventory-valuation","mcp":"get_pack business-ops-public/inventory-valuation","url":"https://logicpacks.io/packs/business-ops-public/inventory-valuation"},{"id":"business-ops-public/purchase-orders-from-reorder-points","space":"business-ops-public","name":"purchase-orders-from-reorder-points","version":"1.0.0","category":"business-ops","summary":"create purchase orders per supplier for every item at or below its reorder point","level":"L2","env":[],"tools":["python3"],"checks":1,"routes":["python-stdlib"],"reliability":{"ok":10,"total":10},"repo":"https://github.com/Tech-Realm/space-business-ops-public","repoName":"Tech-Realm/space-business-ops-public","path":"purchase-orders-from-reorder-points","spec":"# Create purchase orders per supplier for every item at or below its reorder point\n\n## Goal\n\nCreate purchase orders per supplier for every item at or below its reorder point.\n\n## Steps\n\n1. Export stock levels with reorder point, order-up-to level, supplier and cost.\n2. Run the script.\n3. Send POs after checking open orders already in transit.\n\n## Edge cases\n\n- Items already on order: subtract open PO quantities from the order.\n- Minimum order quantities and pack sizes round the quantity up.\n\n## Don'ts\n\n- Don't auto-send POs without a human approval step.\n\n## Routes (free first)\n\n1. `python-stdlib`: `code/reorder.py` (no install).\n","files":["CHANGELOG.md","code/reorder.py","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/fixtures/inv.csv","outcome/results.json","pack.yaml","refs/refs.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use business-ops-public/purchase-orders-from-reorder-points","mcp":"get_pack business-ops-public/purchase-orders-from-reorder-points","url":"https://logicpacks.io/packs/business-ops-public/purchase-orders-from-reorder-points"},{"id":"business-ops-public/quotation-generator","space":"business-ops-public","name":"quotation-generator","version":"1.0.0","category":"business-ops","summary":"produce a customer quotation with line totals, discount, tax and a validity date","level":"L2","env":[],"tools":["python3"],"checks":1,"routes":["python-stdlib"],"reliability":{"ok":10,"total":10},"repo":"https://github.com/Tech-Realm/space-business-ops-public","repoName":"Tech-Realm/space-business-ops-public","path":"quotation-generator","spec":"# Produce a customer quotation with line totals, discount, tax and a validity date\n\n## Goal\n\nProduce a customer quotation with line totals, discount, tax and a validity date.\n\n## Steps\n\n1. List items, quantities and unit prices in items.csv.\n2. Run `python3 code/quote.py items.csv --customer NAME --discount X --tax Y`.\n3. Render the markdown to PDF with the documents space (pdf-generation) and send.\n\n## Edge cases\n\n- Tax-inclusive price lists need converting to net first.\n- Currency must be stated on the quote.\n\n## Don'ts\n\n- Don't quote below cost; check margins before sending.\n\n## Routes (free first)\n\n1. `python-stdlib`: `code/quote.py` (no install).\n","files":["CHANGELOG.md","code/quote.py","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/fixtures/items.csv","outcome/results.json","pack.yaml","refs/refs.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use business-ops-public/quotation-generator","mcp":"get_pack business-ops-public/quotation-generator","url":"https://logicpacks.io/packs/business-ops-public/quotation-generator"},{"id":"business-ops-public/supplier-comparison","space":"business-ops-public","name":"supplier-comparison","version":"1.0.0","category":"business-ops","summary":"rank suppliers with a weighted scoring matrix (price, quality, delivery, terms)","level":"L2","env":[],"tools":["python3"],"checks":1,"routes":["python-stdlib"],"reliability":{"ok":10,"total":10},"repo":"https://github.com/Tech-Realm/space-business-ops-public","repoName":"Tech-Realm/space-business-ops-public","path":"supplier-comparison","spec":"# Rank suppliers with a weighted scoring matrix (price, quality, delivery, terms)\n\n## Goal\n\nRank suppliers with a weighted scoring matrix (price, quality, delivery, terms).\n\n## Steps\n\n1. Agree criteria and weights with the buyer before scoring.\n2. Score each supplier 1-5 per criterion from quotes and references.\n3. Run the script and attach the matrix to the purchase decision.\n\n## Edge cases\n\n- Ties: break with total landed cost.\n- A knock-out criterion (e.g. certification) filters before scoring.\n\n## Don'ts\n\n- Don't change weights after seeing the scores.\n\n## Routes (free first)\n\n1. `python-stdlib`: `code/score.py` (no install).\n","files":["CHANGELOG.md","code/score.py","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/fixtures/s.csv","outcome/fixtures/w.json","outcome/results.json","pack.yaml","refs/refs.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use business-ops-public/supplier-comparison","mcp":"get_pack business-ops-public/supplier-comparison","url":"https://logicpacks.io/packs/business-ops-public/supplier-comparison"},{"id":"business-ops-public/weekly-kpi-report","space":"business-ops-public","name":"weekly-kpi-report","version":"1.0.0","category":"business-ops","summary":"turn a sales CSV into a weekly KPI report (revenue, orders, average order value, week-over-week change)","level":"L2","env":[],"tools":["python3"],"checks":1,"routes":["python-stdlib"],"reliability":{"ok":10,"total":10},"repo":"https://github.com/Tech-Realm/space-business-ops-public","repoName":"Tech-Realm/space-business-ops-public","path":"weekly-kpi-report","spec":"# Turn a sales CSV into a weekly KPI report (revenue, orders, average order value, week-over-week change)\n\n## Goal\n\nTurn a sales CSV into a weekly KPI report (revenue, orders, average order value, week-over-week change).\n\n## Steps\n\n1. Export orders for the last N weeks.\n2. Run the script; paste the table into the weekly update.\n3. Comment on any week with a swing over 20%.\n\n## Edge cases\n\n- Refunds: subtract or report separately, but say which.\n- Week 53 years exist in ISO calendars.\n\n## Don'ts\n\n- Don't compare partial current weeks with full weeks without saying so.\n\n## Routes (free first)\n\n1. `python-stdlib`: `code/kpi.py` (no install).\n","files":["CHANGELOG.md","code/kpi.py","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/fixtures/o.csv","outcome/results.json","pack.yaml","refs/refs.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use business-ops-public/weekly-kpi-report","mcp":"get_pack business-ops-public/weekly-kpi-report","url":"https://logicpacks.io/packs/business-ops-public/weekly-kpi-report"},{"id":"cloudflare-public/tunnel-quick","space":"cloudflare-public","name":"tunnel-quick","version":"1.1.0","category":"cloudflare","summary":"Expose a local port on a temporary https://*.trycloudflare.com URL with no account or key, plus the 'fast share' pattern (unguessable path on a static server behind a named tunnel).","level":"L1","env":[],"tools":["cloudflared","curl","python3","dig"],"checks":4,"routes":["trycloudflare"],"reliability":{"ok":7,"total":7},"repo":"https://github.com/Tech-Realm/space-cloudflare-public","repoName":"Tech-Realm/space-cloudflare-public","path":"tunnel-quick","spec":"# tunnel-quick\n\nExpose a local port on a temporary https://*.trycloudflare.com URL with no account or key, plus the 'fast share' pattern (unguessable path on a static server behind a named tunnel).\n\n## Goal\n\nA local service or file is reachable over HTTPS from anywhere within a minute, and the link stops working when you stop sharing.\n\n## Routes (free first)\n\n1. `trycloudflare` (free): `sh code/quick_tunnel.sh <port>` - no account, no key\n\n## Steps\n\n1. Start your service on 127.0.0.1:<port>.\n2. Run `sh code/quick_tunnel.sh <port>`; it prints the trycloudflare URL and keeps the tunnel open (Ctrl-C to close).\n3. Wait a few seconds before sharing the link: a brand-new hostname can take 5-20 s to resolve, and a resolver that was asked too early may cache the miss for minutes (the e2e check pins curl to an address from 1.1.1.1 for this reason).\n4. For links that must last (phone, another person, days): use a named tunnel (tunnel-named pack) with a fixed hostname and the fast-share pattern: `SHARE_ROOT=... SHARE_BASE_URL=https://share.<your-domain> sh code/fast_share.sh <file>` makes an unguessable 16-char path per share.\n5. Stop sharing: kill the tunnel (quick) or delete `$SHARE_ROOT/<token>` (fast share).\n\n## Edge cases\n\n- Quick tunnels have no uptime guarantee and a new random URL every start; never put one in a config that outlives the session.\n- Quick tunnels do not support Server-Sent Events well and cap request time; use a named tunnel for long requests.\n- If `cloudflared` finds a config.yml in ~/.cloudflared, quick mode may refuse to start: run from a clean HOME or pass --config /dev/null.\n- Unguessable paths are not authentication: for private material add Cloudflare Access (access-app pack) or Basic auth on the static server.\n\n## Don'ts\n\n- Don't expose admin panels, databases or SSH over a quick tunnel.\n- Don't bake usernames/passwords into share links.\n- Don't share files you were not asked to share.\n","files":["CHANGELOG.md","code/e2e_check.sh","code/fast_share.sh","code/quick_tunnel.sh","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/fixtures/site/index.html","outcome/results.json","pack.yaml","refs/refs.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use cloudflare-public/tunnel-quick","mcp":"get_pack cloudflare-public/tunnel-quick","url":"https://logicpacks.io/packs/cloudflare-public/tunnel-quick"},{"id":"crm-public/build-a-crm-on-nocodb","space":"crm-public","name":"build-a-crm-on-nocodb","version":"1.0.0","category":"enterprise","summary":"Build a lightweight CRM base on NocoDB (Postgres) with contacts/deals tables (source-available licence, flagged)","level":"L2","env":["NC_DB_URL","NC_JWT_SECRET","NC_PG_PASSWORD"],"tools":["python3","docker"],"checks":3,"routes":["self-host-docker"],"reliability":{"ok":7,"total":7},"repo":"https://github.com/Tech-Realm/space-crm-public","repoName":"Tech-Realm/space-crm-public","path":"build-a-crm-on-nocodb","spec":"# build-a-crm-on-nocodb\n\nBuild a lightweight CRM base on NocoDB (Postgres) with contacts/deals tables (source-available licence, flagged)\n\n## Goal\nA spreadsheet-style CRM (Contacts, Deals with a stage field and Kanban view) that non-developers can edit, with CSV export.\n\n## Steps\n1. `bash code/boot_check.sh`.\n2. Create base CRM: import our crm.py CSV exports as tables Contacts and Deals; link Deals->Contacts.\n3. Add a Kanban view grouped by stage; export CSV from the grid view.\n\n## Edge cases\n- Licence changed to Sustainable Use License on 2026-01-29: fine for internal use, not for reselling as a service; re-check before client work.\n\n## Don'ts\n- Don't offer it as a hosted product to clients without reading the licence.\n","files":["CHANGELOG.md","code/boot_check.sh","code/compose_lint.py","code/docker-compose.yml","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/fixtures/bad-compose.yml","outcome/results.json","pack.yaml","refs/refs.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use crm-public/build-a-crm-on-nocodb","mcp":"get_pack crm-public/build-a-crm-on-nocodb","url":"https://logicpacks.io/packs/crm-public/build-a-crm-on-nocodb"},{"id":"crm-public/render-a-crm-pipeline-board","space":"crm-public","name":"render-a-crm-pipeline-board","version":"1.0.0","category":"enterprise","summary":"Render a CRM deals export as a responsive kanban pipeline board (one column per stage, totals, cards by amount)","level":"L2","env":[],"tools":["python3"],"checks":2,"routes":["static-html"],"reliability":{"ok":8,"total":8},"repo":"https://github.com/Tech-Realm/space-crm-public","repoName":"Tech-Realm/space-crm-public","path":"render-a-crm-pipeline-board","spec":"# render-a-crm-pipeline-board\n\nRender a CRM deals export as a responsive kanban pipeline board (one column per stage, totals, cards by amount)\n\n## Goal\nSales can see the pipeline at a glance on desktop and phone, from a plain CSV export.\n\n## Steps\n1. Export deals (`crm.py export-csv deals`).\n2. `crm_board.py deals.csv board.html`; open with `agopen board.html`.\n3. Re-skin via the CSS variables at the top (map to shadcn/Tailwind tokens or a NovaMotion-referenced style).\n\n## Edge cases\n- Hundreds of cards: add a per-column limit + 'more' link.\n- Narrow screens: columns stack vertically (<700 px).\n\n## Don'ts\n- Don't hotlink fonts/images from third-party sites.\n","files":["CHANGELOG.md","code/crm_board.py","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/fixtures/deals-export.csv","outcome/results.json","pack.yaml","refs/refs.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use crm-public/render-a-crm-pipeline-board","mcp":"get_pack crm-public/render-a-crm-pipeline-board","url":"https://logicpacks.io/packs/crm-public/render-a-crm-pipeline-board"},{"id":"crm-public/run-a-crm-pipeline","space":"crm-public","name":"run-a-crm-pipeline","version":"1.0.0","category":"enterprise","summary":"Run a CRM pipeline: import contacts, create deals, move them through stages, and export contacts/deals/activities to CSV","level":"L2","env":[],"tools":["python3"],"checks":2,"routes":["stdlib-sqlite"],"reliability":{"ok":8,"total":8},"repo":"https://github.com/Tech-Realm/space-crm-public","repoName":"Tech-Realm/space-crm-public","path":"run-a-crm-pipeline","spec":"# run-a-crm-pipeline\n\nRun a CRM pipeline: import contacts, create deals, move them through stages, and export contacts/deals/activities to CSV\n\n## Goal\nContacts and deals live in one place, every stage move is logged, and everything exports to CSV.\n\n## Steps\n1. `crm.py import-csv contacts.csv` (name,email,company[,deal,amount,stage]).\n2. `add-deal`, `move <id> <stage>` (lead > qualified > proposal > negotiation > won|lost).\n3. `pipeline` for counts and amounts per stage; `export-csv contacts|deals|activities`.\n\n## Edge cases\n- Duplicate emails are merged (case-insensitive).\n- Closed deals (won/lost) can't move; reopen = new deal.\n\n## Don'ts\n- Don't import customer data into a pack fixture; fixtures are synthetic.\n- Don't email contacts from here (see email-marketing with the approval gate).\n","files":["CHANGELOG.md","code/crm.py","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/fixtures/contacts.csv","outcome/fixtures/inbox.mbox","outcome/results.json","pack.yaml","refs/refs.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use crm-public/run-a-crm-pipeline","mcp":"get_pack crm-public/run-a-crm-pipeline","url":"https://logicpacks.io/packs/crm-public/run-a-crm-pipeline"},{"id":"crm-public/self-host-espocrm","space":"crm-public","name":"self-host-espocrm","version":"1.0.0","category":"enterprise","summary":"Self-host EspoCRM with MariaDB behind localhost (AGPL-3.0, flagged)","level":"L2","env":["ESPOCRM_DB_PASSWORD","ESPOCRM_DB_ROOT_PASSWORD","ESPOCRM_ADMIN_PASSWORD","ESPOCRM_SITE_URL"],"tools":["python3","docker"],"checks":3,"routes":["self-host-docker"],"reliability":{"ok":7,"total":7},"repo":"https://github.com/Tech-Realm/space-crm-public","repoName":"Tech-Realm/space-crm-public","path":"self-host-espocrm","spec":"# self-host-espocrm\n\nSelf-host EspoCRM with MariaDB behind localhost (AGPL-3.0, flagged)\n\n## Goal\nA working EspoCRM where we can create a contact, see it in the list and export it.\n\n## Steps\n1. Write .env from the vault, `bash code/boot_check.sh`.\n2. Log in as admin, create a Contact, list view -> Export (CSV).\n3. Set up the cron container or host cron per EspoCRM docs for scheduled jobs.\n\n## Edge cases\n- SuiteCRM 7 is the heavier alternative (also AGPL-3.0).\n\n## Don'ts\n- Don't use :latest.\n- Don't expose MariaDB.\n","files":["CHANGELOG.md","code/boot_check.sh","code/compose_lint.py","code/docker-compose.yml","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/fixtures/bad-compose.yml","outcome/results.json","pack.yaml","refs/refs.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use crm-public/self-host-espocrm","mcp":"get_pack crm-public/self-host-espocrm","url":"https://logicpacks.io/packs/crm-public/self-host-espocrm"},{"id":"crm-public/self-host-twenty-crm","space":"crm-public","name":"self-host-twenty-crm","version":"1.0.0","category":"enterprise","summary":"Self-host Twenty CRM (server, worker, Postgres, Valkey) behind localhost, ready for a tunnel","level":"L2","env":["TWENTY_PG_URL","TWENTY_SERVER_URL","TWENTY_APP_SECRET","TWENTY_PG_PASSWORD"],"tools":["python3","docker"],"checks":3,"routes":["self-host-docker"],"reliability":{"ok":7,"total":7},"repo":"https://github.com/Tech-Realm/space-crm-public","repoName":"Tech-Realm/space-crm-public","path":"self-host-twenty-crm","spec":"# self-host-twenty-crm\n\nSelf-host Twenty CRM (server, worker, Postgres, Valkey) behind localhost, ready for a tunnel\n\n## Goal\nA working Twenty CRM on our machine where we can create a company/person, see it in the list and export CSV.\n\n## Steps\n1. Copy code/docker-compose.yml to the host; write .env with the env names (values from `lp key`).\n2. `bash code/boot_check.sh` -> BOOT OK.\n3. Open http://127.0.0.1:3000, create the workspace, add one person, export the People view to CSV.\n4. Expose via Cloudflare Tunnel + Access (cloudflare space) if needed.\n\n## Edge cases\n- Twenty upgrades run DB migrations: back up Postgres first.\n- AGPL: if we modify Twenty and serve it to others we must publish the changes.\n\n## Don'ts\n- Don't use :latest.\n- Don't expose Postgres/Valkey ports.\n","files":["CHANGELOG.md","code/boot_check.sh","code/compose_lint.py","code/docker-compose.yml","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/fixtures/bad-compose.yml","outcome/results.json","pack.yaml","refs/refs.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use crm-public/self-host-twenty-crm","mcp":"get_pack crm-public/self-host-twenty-crm","url":"https://logicpacks.io/packs/crm-public/self-host-twenty-crm"},{"id":"crm-public/sync-email-into-crm","space":"crm-public","name":"sync-email-into-crm","version":"1.0.0","category":"enterprise","summary":"Log emails from a mailbox export as activities on the matching CRM contacts (idempotent, unknown senders ignored)","level":"L2","env":[],"tools":["python3"],"checks":1,"routes":["mbox"],"reliability":{"ok":8,"total":8},"repo":"https://github.com/Tech-Realm/space-crm-public","repoName":"Tech-Realm/space-crm-public","path":"sync-email-into-crm","spec":"# sync-email-into-crm\n\nLog emails from a mailbox export as activities on the matching CRM contacts (idempotent, unknown senders ignored)\n\n## Goal\nEach contact's timeline shows the emails exchanged with them, without duplicates and without creating junk contacts.\n\n## Steps\n1. Export the mailbox to mbox (Thunderbird ImportExportTools, `getmail`, or Gmail Takeout) or fetch with imaplib.\n2. `crm.py sync-mbox inbox.mbox` (re-run safe: Message-ID dedupe).\n3. Review unknown senders by hand before adding them as contacts.\n\n## Edge cases\n- Forwarded threads: only From/To/Cc headers are matched.\n- Missing Message-ID: date+subject used as the key.\n\n## Don'ts\n- Don't store email bodies in the CRM by default (subject + date only).\n- Don't sync personal mailboxes without the owner's OK.\n","files":["CHANGELOG.md","code/crm.py","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/fixtures/contacts.csv","outcome/fixtures/inbox.mbox","outcome/results.json","pack.yaml","refs/refs.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use crm-public/sync-email-into-crm","mcp":"get_pack crm-public/sync-email-into-crm","url":"https://logicpacks.io/packs/crm-public/sync-email-into-crm"},{"id":"cybersecurity-public/dependency-advisory-match","space":"cybersecurity-public","name":"dependency-advisory-match","version":"1.0.0","category":"cybersecurity","summary":"Match a project's pinned Python dependencies against an offline OSV advisory export and list the vulnerable ones","level":"L2","env":[],"tools":["python3"],"checks":1,"routes":["local-python","pip-audit"],"reliability":{"ok":9,"total":9},"repo":"https://github.com/Tech-Realm/space-cybersecurity-public","repoName":"Tech-Realm/space-cybersecurity-public","path":"dependency-advisory-match","spec":"# Match a project's pinned Python dependencies against an offline OSV advisory export and list the vulnerable ones\n\n## Goal\n\nA list of our pinned packages that fall in an advisory's affected range, with the advisory id and the first fixed version, computed offline.\n\nVerified by: Fixture: 3 pinned packages, 2 advisories; exactly the one package inside an affected range is reported with its fixed version.\n\n## Steps\n\n1. Pin dependencies (`pip freeze > requirements.txt`).\n2. Download advisories once (e.g. `curl -O https://osv-vulnerabilities.storage.googleapis.com/PyPI/all.zip` and unzip to advisories/).\n3. Run `python3 code/osv_match.py requirements.txt advisories/`.\n4. Upgrade to the fixed version, re-run tests. For an online check use `pip-audit` if installed.\n\n## Edge cases\n\n- Unpinned (>=) requirements are skipped with a note: pin first.\n- Version comparison is numeric dotted; pre-release tags are compared as strings (approximation).\n\n## Don'ts\n\n- Don't upgrade everything blindly; read the advisory and run tests.\n- The check itself is offline; downloading the advisory feed is a separate, optional step.\n","files":["CHANGELOG.md","code/osv_match.py","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/fixtures/advisories/EXAMPLE-0001.json","outcome/fixtures/advisories/EXAMPLE-0002.json","outcome/fixtures/requirements.txt","outcome/results.json","pack.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use cybersecurity-public/dependency-advisory-match","mcp":"get_pack cybersecurity-public/dependency-advisory-match","url":"https://logicpacks.io/packs/cybersecurity-public/dependency-advisory-match"},{"id":"cybersecurity-public/file-permission-audit","space":"cybersecurity-public","name":"file-permission-audit","version":"1.0.0","category":"cybersecurity","summary":"Find world-writable files and readable private keys/secrets files under a directory we own","level":"L2","env":[],"tools":["python3"],"checks":1,"routes":["local-python"],"reliability":{"ok":9,"total":9},"repo":"https://github.com/Tech-Realm/space-cybersecurity-public","repoName":"Tech-Realm/space-cybersecurity-public","path":"file-permission-audit","spec":"# Find world-writable files and readable private keys/secrets files under a directory we own\n\n## Goal\n\nA list of risky permissions under a path: world-writable files/dirs (without sticky bit), private-key and .env style files readable by group/others, executable config files.\n\nVerified by: Self-test builds a temp tree with 3 planted issues (world-writable file, 0644 key file, 0644 .env) and the audit reports exactly those 3.\n\n## Steps\n\n1. Run `python3 code/perm_audit.py ~/projects`.\n2. Fix with `chmod 600 <file>` / `chmod o-w <path>` after checking the owner.\n3. Re-run until clean.\n\n## Edge cases\n\n- Symlinks are not followed.\n- Shared group dirs may be intentionally group-writable; only 'other' write is flagged.\n- The script never prints file contents, only paths and modes.\n\n## Don'ts\n\n- Never point this at machines, hosts or networks we do not own or are not authorised to audit.\n- Don't change settings automatically; report, then a human applies fixes.\n- Don't print or copy the secrets files you find; only fix their mode.\n","files":["CHANGELOG.md","code/perm_audit.py","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/results.json","pack.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use cybersecurity-public/file-permission-audit","mcp":"get_pack cybersecurity-public/file-permission-audit","url":"https://logicpacks.io/packs/cybersecurity-public/file-permission-audit"},{"id":"cybersecurity-public/localhost-open-ports","space":"cybersecurity-public","name":"localhost-open-ports","version":"1.0.0","category":"cybersecurity","summary":"List which TCP ports are listening on this machine's loopback and flag ones not on an allow-list","level":"L2","env":[],"tools":["python3"],"checks":3,"routes":["local-python","lsof"],"reliability":{"ok":10,"total":10},"repo":"https://github.com/Tech-Realm/space-cybersecurity-public","repoName":"Tech-Realm/space-cybersecurity-public","path":"localhost-open-ports","spec":"# List which TCP ports are listening on this machine's loopback and flag ones not on an allow-list\n\n## Goal\n\nA list of listening TCP ports on 127.0.0.1 (connect test, loopback only) compared with an allow-list, so unexpected local services are noticed.\n\nVerified by: Self-test opens a listener on an ephemeral loopback port and the scanner finds it and flags it as unexpected.\n\n## Steps\n\n1. Run `python3 code/ports.py --range 1-10000 --allow 22,5432`.\n2. For each unexpected port run `lsof -nP -iTCP:<port> -sTCP:LISTEN` to see the process.\n3. Stop or bind the service to loopback/firewall it if it should not be there.\n\n## Edge cases\n\n- Services bound only to a LAN IP (not 127.0.0.1) are not seen by a loopback scan; use lsof for the full list.\n- Large ranges take a few seconds; timeouts are short because loopback is fast.\n\n## Don'ts\n\n- The script refuses any host other than 127.0.0.1/::1; do not modify it to scan other hosts.\n- Don't kill processes from this report without knowing what they are.\n","files":["CHANGELOG.md","code/ports.py","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/results.json","pack.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use cybersecurity-public/localhost-open-ports","mcp":"get_pack cybersecurity-public/localhost-open-ports","url":"https://logicpacks.io/packs/cybersecurity-public/localhost-open-ports"},{"id":"cybersecurity-public/macos-hardening-readonly","space":"cybersecurity-public","name":"macos-hardening-readonly","version":"1.0.0","category":"cybersecurity","summary":"Report this Mac's core security settings (FileVault, firewall, Gatekeeper, SIP, auto-updates) read-only","level":"L2","env":[],"tools":["python3","fdesetup","spctl","csrutil"],"checks":2,"routes":["local-python"],"reliability":{"ok":9,"total":9},"repo":"https://github.com/Tech-Realm/space-cybersecurity-public","repoName":"Tech-Realm/space-cybersecurity-public","path":"macos-hardening-readonly","spec":"# Report this Mac's core security settings (FileVault, firewall, Gatekeeper, SIP, auto-updates) read-only\n\n## Goal\n\nA one-screen read-only status of our own Mac's FileVault, application firewall, Gatekeeper, System Integrity Protection and automatic security updates, with the fix for anything off.\n\nVerified by: Parser test on captured fixture outputs gives the expected ON/OFF lines; a live run on this Mac completes without sudo and without changing anything.\n\n## Steps\n\n1. Run `python3 code/mac_audit.py` (no sudo needed).\n2. Turn on anything OFF in System Settings > Privacy & Security / Network > Firewall.\n3. Re-run to confirm.\n\n## Edge cases\n\n- Managed (MDM) Macs may report settings enforced by profile.\n- csrutil cannot be changed from normal macOS; it needs Recovery, so only report it.\n\n## Don'ts\n\n- Never point this at machines, hosts or networks we do not own or are not authorised to audit.\n- Don't change settings automatically; report, then a human applies fixes.\n- Never run the enable/disable variants of these tools from this pack.\n","files":["CHANGELOG.md","code/mac_audit.py","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/fixtures/outputs.json","outcome/results.json","pack.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use cybersecurity-public/macos-hardening-readonly","mcp":"get_pack cybersecurity-public/macos-hardening-readonly","url":"https://logicpacks.io/packs/cybersecurity-public/macos-hardening-readonly"},{"id":"cybersecurity-public/password-policy-check","space":"cybersecurity-public","name":"password-policy-check","version":"1.0.0","category":"cybersecurity","summary":"Check a password policy config against NIST SP 800-63B and get the gaps listed","level":"L2","env":[],"tools":["python3"],"checks":2,"routes":["local-python"],"reliability":{"ok":9,"total":9},"repo":"https://github.com/Tech-Realm/space-cybersecurity-public","repoName":"Tech-Realm/space-cybersecurity-public","path":"password-policy-check","spec":"# Check a password policy config against NIST SP 800-63B and get the gaps listed\n\n## Goal\n\nA gap list for our password policy (min length, max length, composition rules, forced rotation, breached-list screening, lockout/throttling, MFA) versus NIST SP 800-63B.\n\nVerified by: A NIST-aligned fixture passes; a legacy policy fixture reports the 5 expected gaps.\n\n## Steps\n\n1. Write down the current policy as JSON (from the app settings or IdP).\n2. Run `python3 code/policy_check.py policy.json`.\n3. Fix gaps in the app/IdP config; re-run.\n\n## Edge cases\n\n- Admin accounts should have stricter rules (MFA required) than the baseline.\n\n## Don'ts\n\n- Never point this at machines, hosts or networks we do not own or are not authorised to audit.\n- Don't change settings automatically; report, then a human applies fixes.\n- Don't put real passwords or hashes in the input; it is a settings file only.\n","files":["CHANGELOG.md","code/policy_check.py","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/fixtures/legacy.json","outcome/fixtures/nist.json","outcome/results.json","pack.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use cybersecurity-public/password-policy-check","mcp":"get_pack cybersecurity-public/password-policy-check","url":"https://logicpacks.io/packs/cybersecurity-public/password-policy-check"},{"id":"cybersecurity-public/sshd-config-audit","space":"cybersecurity-public","name":"sshd-config-audit","version":"1.0.0","category":"cybersecurity","summary":"Audit an sshd_config for weak settings and get a pass/warn list with the fix for each","level":"L2","env":[],"tools":["python3"],"checks":2,"routes":["local-python"],"reliability":{"ok":9,"total":9},"repo":"https://github.com/Tech-Realm/space-cybersecurity-public","repoName":"Tech-Realm/space-cybersecurity-public","path":"sshd-config-audit","spec":"# Audit an sshd_config for weak settings and get a pass/warn list with the fix for each\n\n## Goal\n\nA read-only report on our own sshd_config: root login, password auth, empty passwords, X11 forwarding, MaxAuthTries, weak ciphers/MACs/KEX, each with the recommended value.\n\nVerified by: A hardened fixture scores 0 findings; a weak fixture reports the 6 expected findings.\n\n## Steps\n\n1. Copy your server's /etc/ssh/sshd_config (or run on the server itself, read-only).\n2. Run `python3 code/sshd_audit.py /etc/ssh/sshd_config`.\n3. Apply fixes in a test session first; keep one root shell open while reloading sshd.\n4. Validate with `sshd -t` before reload.\n\n## Edge cases\n\n- Match blocks can override global values; findings inside Match are reported with the block name.\n- Include directives are not followed; audit the included files too.\n- Defaults apply when a keyword is absent (e.g. PermitRootLogin defaults to prohibit-password).\n\n## Don'ts\n\n- Never point this at machines, hosts or networks we do not own or are not authorised to audit.\n- Don't change settings automatically; report, then a human applies fixes.\n- Don't disable password auth before a working key login is confirmed.\n","files":["CHANGELOG.md","code/sshd_audit.py","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/fixtures/hardened_sshd_config","outcome/fixtures/weak_sshd_config","outcome/results.json","pack.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use cybersecurity-public/sshd-config-audit","mcp":"get_pack cybersecurity-public/sshd-config-audit","url":"https://logicpacks.io/packs/cybersecurity-public/sshd-config-audit"},{"id":"cybersecurity-public/tls-config-check","space":"cybersecurity-public","name":"tls-config-check","version":"1.0.0","category":"cybersecurity","summary":"Check our own TLS server's protocol, cipher and certificate expiry and get a pass/fail report","level":"L2","env":[],"tools":["python3","openssl"],"checks":2,"routes":["local-python"],"reliability":{"ok":9,"total":9},"repo":"https://github.com/Tech-Realm/space-cybersecurity-public","repoName":"Tech-Realm/space-cybersecurity-public","path":"tls-config-check","spec":"# Check our own TLS server's protocol, cipher and certificate expiry and get a pass/fail report\n\n## Goal\n\nA report for a TLS endpoint we run (default: a local test server): negotiated protocol (>= TLS 1.2), cipher, certificate subject/issuer, days to expiry, self-signed flag, legacy TLS 1.0/1.1 refused.\n\nVerified by: Self-test generates a 30-day self-signed cert with openssl, serves it on 127.0.0.1, and the checker reports TLSv1.3, days_left 29-30 and self_signed=yes.\n\n## Steps\n\n1. Run `python3 code/tls_check.py --selftest` once to confirm the tool works here.\n2. Run `python3 code/tls_check.py 127.0.0.1:8443` (or our own domain's server we operate, with --allow-own-host).\n3. Renew certs with < 21 days left; disable TLS 1.0/1.1 in the server config.\n\n## Edge cases\n\n- SNI: pass --sni for name-based virtual hosts.\n- Self-signed is expected for local test servers; it is a FAIL for public endpoints.\n\n## Don'ts\n\n- Never point this at machines, hosts or networks we do not own or are not authorised to audit.\n- Don't change settings automatically; report, then a human applies fixes.\n- Don't use this to probe third-party sites; for our public domains prefer Mozilla Observatory/SSL Labs in a browser.\n","files":["CHANGELOG.md","code/tls_check.py","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/results.json","pack.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use cybersecurity-public/tls-config-check","mcp":"get_pack cybersecurity-public/tls-config-check","url":"https://logicpacks.io/packs/cybersecurity-public/tls-config-check"},{"id":"data-science-public/ab-test-significance","space":"data-science-public","name":"ab-test-significance","version":"1.0.0","category":"data-science","summary":"decide if an A/B test result is significant with a two-proportion z-test and a confidence interval","level":"L2","env":[],"tools":["python3"],"checks":2,"routes":["python-stdlib"],"reliability":{"ok":10,"total":10},"repo":"https://github.com/Tech-Realm/space-data-science-public","repoName":"Tech-Realm/space-data-science-public","path":"ab-test-significance","spec":"# Decide if an A/B test result is significant with a two-proportion z-test and a confidence interval\n\n## Goal\n\nDecide if an A/B test result is significant with a two-proportion z-test and a confidence interval.\n\n## Steps\n\n1. Fix the sample size and the metric before the test starts.\n2. When the test ends, run abtest.py with the counts.\n3. Report lift with its CI, not just 'significant'.\n\n## Edge cases\n\n- Peeking repeatedly inflates false positives; use a fixed horizon.\n- Small counts (<10 conversions per arm) make the normal approximation poor.\n\n## Don'ts\n\n- Don't stop the test the moment p < 0.05.\n\n## Routes (free first)\n\n1. `python-stdlib`: `code/abtest.py` (no install).\n","files":["CHANGELOG.md","code/abtest.py","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/results.json","pack.yaml","refs/refs.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use data-science-public/ab-test-significance","mcp":"get_pack data-science-public/ab-test-significance","url":"https://logicpacks.io/packs/data-science-public/ab-test-significance"},{"id":"data-science-public/clean-and-dedupe","space":"data-science-public","name":"clean-and-dedupe","version":"1.0.0","category":"data-science","summary":"clean a CSV: trim whitespace, normalise case and phone/email formats, and drop duplicate records","level":"L2","env":[],"tools":["python3"],"checks":1,"routes":["python-stdlib","pandas"],"reliability":{"ok":10,"total":10},"repo":"https://github.com/Tech-Realm/space-data-science-public","repoName":"Tech-Realm/space-data-science-public","path":"clean-and-dedupe","spec":"# Clean a CSV: trim whitespace, normalise case and phone/email formats, and drop duplicate records\n\n## Goal\n\nClean a CSV: trim whitespace, normalise case and phone/email formats, and drop duplicate records.\n\n## Steps\n\n1. Profile the file first (csv-profile).\n2. Pick the key columns that identify one real-world record.\n3. Run clean.py and spot-check dropped rows.\n\n## Edge cases\n\n- Fuzzy duplicates (typos) need a similarity pass; this does exact-after-normalising.\n- Title-casing breaks names like 'McDonald'.\n\n## Don'ts\n\n- Don't overwrite the source file; write a new one.\n\n## Routes (free first)\n\n1. `python-stdlib`: `code/clean.py` (no install).\n2. `pandas` (free): same job in pandas for large files (pip install pandas)\n","files":["CHANGELOG.md","code/clean.py","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/fixtures/m.csv","outcome/results.json","pack.yaml","refs/refs.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use data-science-public/clean-and-dedupe","mcp":"get_pack data-science-public/clean-and-dedupe","url":"https://logicpacks.io/packs/data-science-public/clean-and-dedupe"},{"id":"data-science-public/cohort-retention","space":"data-science-public","name":"cohort-retention","version":"1.0.0","category":"data-science","summary":"build a monthly cohort retention table from user activity events","level":"L2","env":[],"tools":["python3"],"checks":1,"routes":["python-stdlib"],"reliability":{"ok":10,"total":10},"repo":"https://github.com/Tech-Realm/space-data-science-public","repoName":"Tech-Realm/space-data-science-public","path":"cohort-retention","spec":"# Build a monthly cohort retention table from user activity events\n\n## Goal\n\nBuild a monthly cohort retention table from user activity events.\n\n## Steps\n\n1. Export one row per user activity (login, order) with a date.\n2. Run cohorts.py.\n3. Read down each column: is month-N retention improving for newer cohorts?\n\n## Edge cases\n\n- Users with activity before the export window look like new users.\n- Use weekly cohorts for fast-moving products (change the bucketing).\n\n## Don'ts\n\n- Don't mix signup and activity definitions between periods.\n\n## Routes (free first)\n\n1. `python-stdlib`: `code/cohorts.py` (no install).\n","files":["CHANGELOG.md","code/cohorts.py","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/fixtures/e.csv","outcome/results.json","pack.yaml","refs/refs.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use data-science-public/cohort-retention","mcp":"get_pack data-science-public/cohort-retention","url":"https://logicpacks.io/packs/data-science-public/cohort-retention"},{"id":"data-science-public/csv-profile","space":"data-science-public","name":"csv-profile","version":"1.0.0","category":"data-science","summary":"profile a CSV: row count, types, missing values, distinct counts and min/mean/max per column","level":"L2","env":[],"tools":["python3"],"checks":1,"routes":["python-stdlib","pandas"],"reliability":{"ok":10,"total":10},"repo":"https://github.com/Tech-Realm/space-data-science-public","repoName":"Tech-Realm/space-data-science-public","path":"csv-profile","spec":"# Profile a CSV: row count, types, missing values, distinct counts and min/mean/max per column\n\n## Goal\n\nProfile a CSV: row count, types, missing values, distinct counts and min/mean/max per column.\n\n## Steps\n\n1. Run `python3 code/profile.py data.csv` before any analysis.\n2. Note columns with high missing rates or unexpected types.\n3. Decide cleaning rules (drop, impute, cast) and write them down.\n\n## Edge cases\n\n- Numbers with thousands separators or currency symbols read as text.\n- Very large files: use the pandas route.\n\n## Don'ts\n\n- Don't impute before you know why values are missing.\n\n## Routes (free first)\n\n1. `python-stdlib`: `code/profile.py` (no install).\n2. `pandas` (free): same job in pandas for large files (pip install pandas)\n","files":["CHANGELOG.md","code/profile.py","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/fixtures/d.csv","outcome/results.json","pack.yaml","refs/refs.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use data-science-public/csv-profile","mcp":"get_pack data-science-public/csv-profile","url":"https://logicpacks.io/packs/data-science-public/csv-profile"},{"id":"data-science-public/linear-regression-report","space":"data-science-public","name":"linear-regression-report","version":"1.0.0","category":"data-science","summary":"fit a simple linear regression on two CSV columns and report slope, intercept and R-squared","level":"L2","env":[],"tools":["python3"],"checks":2,"routes":["python-stdlib","pandas"],"reliability":{"ok":10,"total":10},"repo":"https://github.com/Tech-Realm/space-data-science-public","repoName":"Tech-Realm/space-data-science-public","path":"linear-regression-report","spec":"# Fit a simple linear regression on two CSV columns and report slope, intercept and R-squared\n\n## Goal\n\nFit a simple linear regression on two CSV columns and report slope, intercept and R-squared.\n\n## Steps\n\n1. Plot or eyeball the data first; check the relation looks linear.\n2. Run regress.py.\n3. Report slope with units and R^2; don't extrapolate far outside the data.\n\n## Edge cases\n\n- Outliers dominate OLS; check residuals.\n- Constant x gives division by zero (no fit possible).\n\n## Don'ts\n\n- Don't read correlation as causation.\n\n## Routes (free first)\n\n1. `python-stdlib`: `code/regress.py` (no install).\n2. `pandas` (free): same job in pandas for large files (pip install pandas)\n","files":["CHANGELOG.md","code/regress.py","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/fixtures/ad.csv","outcome/fixtures/noisy.csv","outcome/results.json","pack.yaml","refs/refs.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use data-science-public/linear-regression-report","mcp":"get_pack data-science-public/linear-regression-report","url":"https://logicpacks.io/packs/data-science-public/linear-regression-report"},{"id":"data-science-public/pivot-summary","space":"data-science-public","name":"pivot-summary","version":"1.0.0","category":"data-science","summary":"summarise a CSV by one or two columns (sum, count, mean) into a markdown pivot table","level":"L2","env":[],"tools":["python3"],"checks":1,"routes":["python-stdlib","pandas"],"reliability":{"ok":10,"total":10},"repo":"https://github.com/Tech-Realm/space-data-science-public","repoName":"Tech-Realm/space-data-science-public","path":"pivot-summary","spec":"# Summarise a CSV by one or two columns (sum, count, mean) into a markdown pivot table\n\n## Goal\n\nSummarise a CSV by one or two columns (sum, count, mean) into a markdown pivot table.\n\n## Steps\n\n1. Choose the question (e.g. sales by region by month).\n2. Run pivot.py with rows/cols/value/agg.\n3. Paste the markdown into the report.\n\n## Edge cases\n\n- Missing combinations show as empty cells, not zero.\n- Non-numeric values in the value column fail loudly.\n\n## Don'ts\n\n- Don't average averages; pivot from raw rows.\n\n## Routes (free first)\n\n1. `python-stdlib`: `code/pivot.py` (no install).\n2. `pandas` (free): same job in pandas for large files (pip install pandas)\n","files":["CHANGELOG.md","code/pivot.py","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/fixtures/s.csv","outcome/results.json","pack.yaml","refs/refs.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use data-science-public/pivot-summary","mcp":"get_pack data-science-public/pivot-summary","url":"https://logicpacks.io/packs/data-science-public/pivot-summary"},{"id":"data-science-public/time-series-forecast","space":"data-science-public","name":"time-series-forecast","version":"1.0.0","category":"data-science","summary":"forecast the next periods of a series with moving average and simple exponential smoothing baselines, scored by MAE","level":"L2","env":[],"tools":["python3"],"checks":1,"routes":["python-stdlib"],"reliability":{"ok":10,"total":10},"repo":"https://github.com/Tech-Realm/space-data-science-public","repoName":"Tech-Realm/space-data-science-public","path":"time-series-forecast","spec":"# Forecast the next periods of a series with moving average and simple exponential smoothing baselines, scored by MAE\n\n## Goal\n\nForecast the next periods of a series with moving average and simple exponential smoothing baselines, scored by MAE.\n\n## Steps\n\n1. Put the series in period order.\n2. Run forecast.py; it scores each baseline on the last --holdout points.\n3. Use the best baseline, or beat it with a fancier model before trusting that model.\n\n## Edge cases\n\n- Strong seasonality: use a seasonal naive baseline (same period last cycle).\n- Short series (< 2x holdout) give unreliable scores.\n\n## Don'ts\n\n- Don't report a forecast without its holdout error.\n\n## Routes (free first)\n\n1. `python-stdlib`: `code/forecast.py` (no install).\n","files":["CHANGELOG.md","code/forecast.py","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/fixtures/y.csv","outcome/results.json","pack.yaml","refs/refs.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use data-science-public/time-series-forecast","mcp":"get_pack data-science-public/time-series-forecast","url":"https://logicpacks.io/packs/data-science-public/time-series-forecast"},{"id":"design-systems-and-ui-kits-public/admin-dashboard-template","space":"design-systems-and-ui-kits-public","name":"admin-dashboard-template","version":"1.0.0","category":"enterprise","summary":"Ship an admin dashboard (KPIs, orders table, add form, CSV export) as one accessible HTML file","level":"L1","env":[],"tools":["python3","npx"],"checks":1,"routes":["static-html","shadcn-next"],"reliability":{"ok":8,"total":8},"repo":"https://github.com/Tech-Realm/space-design-systems-and-ui-kits-public","repoName":"Tech-Realm/space-design-systems-and-ui-kits-public","path":"admin-dashboard-template","spec":"# admin-dashboard-template\n\n## Goal\n\nShip an admin dashboard (KPIs, orders table, add form, CSV export) as one accessible HTML file.\n\n## Steps\n\n1. Open `code/index.html` (no build): KPIs, add form, list/board, Export CSV.\n2. Change the config JSON at the bottom of the file (fields, columns, KPIs, seed rows) for a new entity.\n3. Tokens are shadcn/ui-style CSS variables; restyle by changing `--primary` etc. (see design-tokens).\n4. Check: `python3 code/ui_check.py code/index.html outcome/fixtures/flow.json` (390/1280 px, no console errors, no sideways scroll, labels, add -> list -> export).\n\n## Edge cases\n\n- Data lives in memory; wire the form to the real API (or refflow) before production.\n- Very wide tables scroll inside their card, not the page.\n\n## Don'ts\n\n- Don't copy NovaMotion or third-party designs into this file; reference by id.\n- Don't hotlink fonts/scripts from CDNs (offline-safe single file).\n\n## Check\n\n`lp pack check design-systems-and-ui-kits/admin-dashboard-template` runs outcome/checks.yaml.\n","files":["CHANGELOG.md","code/index.html","code/ui_check.py","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/fixtures/flow.json","outcome/results.json","pack.yaml","refs/refs.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use design-systems-and-ui-kits-public/admin-dashboard-template","mcp":"get_pack design-systems-and-ui-kits-public/admin-dashboard-template","url":"https://logicpacks.io/packs/design-systems-and-ui-kits-public/admin-dashboard-template"},{"id":"design-systems-and-ui-kits-public/crm-pipeline-board","space":"design-systems-and-ui-kits-public","name":"crm-pipeline-board","version":"1.0.0","category":"enterprise","summary":"Ship a CRM deals pipeline board (stages, move deal, pipeline value, CSV export) as one accessible HTML file","level":"L1","env":[],"tools":["python3","npx"],"checks":1,"routes":["static-html","shadcn-next"],"reliability":{"ok":8,"total":8},"repo":"https://github.com/Tech-Realm/space-design-systems-and-ui-kits-public","repoName":"Tech-Realm/space-design-systems-and-ui-kits-public","path":"crm-pipeline-board","spec":"# crm-pipeline-board\n\n## Goal\n\nShip a CRM deals pipeline board (stages, move deal, pipeline value, CSV export) as one accessible HTML file.\n\n## Steps\n\n1. Open `code/index.html` (no build): KPIs, add form, list/board, Export CSV.\n2. Change the config JSON at the bottom of the file (fields, columns, KPIs, seed rows) for a new entity.\n3. Tokens are shadcn/ui-style CSS variables; restyle by changing `--primary` etc. (see design-tokens).\n4. Check: `python3 code/ui_check.py code/index.html outcome/fixtures/flow.json` (390/1280 px, no console errors, no sideways scroll, labels, add -> list -> export).\n\n## Edge cases\n\n- Data lives in memory; wire the form to the real API (or refflow) before production.\n- Very wide tables scroll inside their card, not the page.\n\n## Don'ts\n\n- Don't copy NovaMotion or third-party designs into this file; reference by id.\n- Don't hotlink fonts/scripts from CDNs (offline-safe single file).\n\n## Check\n\n`lp pack check design-systems-and-ui-kits/crm-pipeline-board` runs outcome/checks.yaml.\n","files":["CHANGELOG.md","code/index.html","code/ui_check.py","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/fixtures/flow.json","outcome/results.json","pack.yaml","refs/refs.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use design-systems-and-ui-kits-public/crm-pipeline-board","mcp":"get_pack design-systems-and-ui-kits-public/crm-pipeline-board","url":"https://logicpacks.io/packs/design-systems-and-ui-kits-public/crm-pipeline-board"},{"id":"design-systems-and-ui-kits-public/design-tokens","space":"design-systems-and-ui-kits-public","name":"design-tokens","version":"1.0.0","category":"enterprise","summary":"Turn design tokens into shadcn/Tailwind CSS variables and block colour pairs under WCAG AA contrast","level":"L2","env":[],"tools":["python3"],"checks":2,"routes":["stdlib"],"reliability":{"ok":8,"total":8},"repo":"https://github.com/Tech-Realm/space-design-systems-and-ui-kits-public","repoName":"Tech-Realm/space-design-systems-and-ui-kits-public","path":"design-tokens","spec":"# design-tokens\n\n## Goal\n\nTurn design tokens into shadcn/Tailwind CSS variables and block colour pairs under WCAG AA contrast.\n\n## Steps\n\n1. Keep colours (HSL triplets, light + dark), radius and font in `tokens.json`; list the text/background pairs to check.\n2. `python3 code/build_tokens.py tokens.json globals.css` writes :root/.dark variables with shadcn/ui names plus a Tailwind v4 `@theme inline` block.\n3. Any pair under 4.5:1 fails the build.\n\n## Edge cases\n\n- Large text (24 px+) may use 3:1; keep body text at 4.5:1.\n\n## Don'ts\n\n- Don't hand-edit the generated CSS.\n\n## Check\n\n`lp pack check design-systems-and-ui-kits/design-tokens` runs outcome/checks.yaml.\n","files":["CHANGELOG.md","code/build_tokens.py","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/fixtures/bad-tokens.json","outcome/fixtures/tokens.json","outcome/results.json","pack.yaml","refs/refs.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use design-systems-and-ui-kits-public/design-tokens","mcp":"get_pack design-systems-and-ui-kits-public/design-tokens","url":"https://logicpacks.io/packs/design-systems-and-ui-kits-public/design-tokens"},{"id":"design-systems-and-ui-kits-public/erp-inventory-table","space":"design-systems-and-ui-kits-public","name":"erp-inventory-table","version":"1.0.0","category":"enterprise","summary":"Ship an ERP inventory table (stock, reorder flags, add item, CSV export) as one accessible HTML file","level":"L1","env":[],"tools":["python3","npx"],"checks":1,"routes":["static-html","shadcn-next"],"reliability":{"ok":8,"total":8},"repo":"https://github.com/Tech-Realm/space-design-systems-and-ui-kits-public","repoName":"Tech-Realm/space-design-systems-and-ui-kits-public","path":"erp-inventory-table","spec":"# erp-inventory-table\n\n## Goal\n\nShip an ERP inventory table (stock, reorder flags, add item, CSV export) as one accessible HTML file.\n\n## Steps\n\n1. Open `code/index.html` (no build): KPIs, add form, list/board, Export CSV.\n2. Change the config JSON at the bottom of the file (fields, columns, KPIs, seed rows) for a new entity.\n3. Tokens are shadcn/ui-style CSS variables; restyle by changing `--primary` etc. (see design-tokens).\n4. Check: `python3 code/ui_check.py code/index.html outcome/fixtures/flow.json` (390/1280 px, no console errors, no sideways scroll, labels, add -> list -> export).\n\n## Edge cases\n\n- Data lives in memory; wire the form to the real API (or refflow) before production.\n- Very wide tables scroll inside their card, not the page.\n\n## Don'ts\n\n- Don't copy NovaMotion or third-party designs into this file; reference by id.\n- Don't hotlink fonts/scripts from CDNs (offline-safe single file).\n\n## Check\n\n`lp pack check design-systems-and-ui-kits/erp-inventory-table` runs outcome/checks.yaml.\n","files":["CHANGELOG.md","code/index.html","code/ui_check.py","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/fixtures/flow.json","outcome/results.json","pack.yaml","refs/refs.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use design-systems-and-ui-kits-public/erp-inventory-table","mcp":"get_pack design-systems-and-ui-kits-public/erp-inventory-table","url":"https://logicpacks.io/packs/design-systems-and-ui-kits-public/erp-inventory-table"},{"id":"design-systems-and-ui-kits-public/shadcn-tremor-setup","space":"design-systems-and-ui-kits-public","name":"shadcn-tremor-setup","version":"1.0.0","category":"enterprise","summary":"Set up a Next.js app with shadcn/ui components and Tremor charts, pinned versions, our tokens","level":"L1","env":[],"tools":["node","npx"],"checks":2,"routes":["npx"],"reliability":{"ok":8,"total":8},"repo":"https://github.com/Tech-Realm/space-design-systems-and-ui-kits-public","repoName":"Tech-Realm/space-design-systems-and-ui-kits-public","path":"shadcn-tremor-setup","spec":"# shadcn-tremor-setup\n\n## Goal\n\nSet up a Next.js app with shadcn/ui components and Tremor charts, pinned versions, our tokens.\n\n## Steps\n\n1. `sh code/setup.sh my-app` creates a Next.js app, writes our components.json and adds the base components with the pinned shadcn CLI.\n2. Copy Tremor Raw chart components from tremor.so into `components/` (Apache-2.0; keep the licence header).\n3. Generate `app/globals.css` variables with the design-tokens pack.\n4. Port a template (admin-dashboard-template etc.) to these components.\n\n## Edge cases\n\n- create-next-app@latest moves; pin it if the template must be reproducible.\n- Tremor's older npm package (@tremor/react) is in maintenance; use the copy-paste components.\n\n## Don'ts\n\n- Don't buy or copy Tailwind Plus (commercial) templates into our packs.\n\n## Check\n\n`lp pack check design-systems-and-ui-kits/shadcn-tremor-setup` runs outcome/checks.yaml.\n","files":["CHANGELOG.md","code/components.json","code/setup.sh","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/results.json","pack.yaml","refs/refs.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use design-systems-and-ui-kits-public/shadcn-tremor-setup","mcp":"get_pack design-systems-and-ui-kits-public/shadcn-tremor-setup","url":"https://logicpacks.io/packs/design-systems-and-ui-kits-public/shadcn-tremor-setup"},{"id":"docs-and-knowledge-base-public/docs-link-check","space":"docs-and-knowledge-base-public","name":"docs-link-check","version":"1.0.0","category":"enterprise","summary":"Catch broken links, missing anchors, untitled and orphan pages in a markdown docs folder","level":"L2","env":[],"tools":["python3"],"checks":2,"routes":["stdlib"],"reliability":{"ok":8,"total":8},"repo":"https://github.com/Tech-Realm/space-docs-and-knowledge-base-public","repoName":"Tech-Realm/space-docs-and-knowledge-base-public","path":"docs-link-check","spec":"# docs-link-check\n\n## Goal\n\nCatch broken links, missing anchors, untitled and orphan pages in a markdown docs folder.\n\n## Steps\n\n1. `python3 code/linkcheck.py <docs_dir> [--root index.md]`.\n2. Fix every PROBLEM line; exit code 1 blocks the deploy in CI.\n3. Run before Docusaurus/Outline imports.\n\n## Edge cases\n\n- External links are not fetched (use lychee for that).\n- Anchors follow GitHub-style slugs.\n\n## Don'ts\n\n- Don't silence orphans; link them or delete them.\n\n## Check\n\n`lp pack check docs-and-knowledge-base/docs-link-check` runs outcome/checks.yaml.\n","files":["CHANGELOG.md","code/linkcheck.py","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/fixtures/bad/index.md","outcome/fixtures/bad/install.md","outcome/fixtures/bad/orphan.md","outcome/fixtures/good/faq.md","outcome/fixtures/good/img/flow.svg","outcome/fixtures/good/index.md","outcome/fixtures/good/install.md","outcome/results.json","pack.yaml","refs/refs.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use docs-and-knowledge-base-public/docs-link-check","mcp":"get_pack docs-and-knowledge-base-public/docs-link-check","url":"https://logicpacks.io/packs/docs-and-knowledge-base-public/docs-link-check"},{"id":"docs-and-knowledge-base-public/docusaurus-docs-site","space":"docs-and-knowledge-base-public","name":"docusaurus-docs-site","version":"1.0.0","category":"enterprise","summary":"Build a Docusaurus docs site from markdown (static output we can host on Cloudflare Pages)","level":"L1","env":[],"tools":["node","npm","npx"],"checks":3,"routes":["node-local","cloudflare-pages"],"reliability":{"ok":8,"total":8},"repo":"https://github.com/Tech-Realm/space-docs-and-knowledge-base-public","repoName":"Tech-Realm/space-docs-and-knowledge-base-public","path":"docusaurus-docs-site","spec":"# docusaurus-docs-site\n\n## Goal\n\nBuild a Docusaurus docs site from markdown (static output we can host on Cloudflare Pages).\n\n## Steps\n\n1. Write docs as markdown in `code/site/docs/` (front matter `title`, `sidebar_position`).\n2. `npm install && npx docusaurus build` -> static site in `build/`.\n3. Check links first: `python3 code/linkcheck.py code/site/docs --root intro.md`.\n4. Deploy `build/` to Cloudflare Pages.\n\n## Edge cases\n\n- Docusaurus fails the build on broken internal links (onBrokenLinks: 'throw'), which is what we want.\n- Node 18+ required.\n\n## Don'ts\n\n- Don't commit node_modules or build/.\n\n## Check\n\n`lp pack check docs-and-knowledge-base/docusaurus-docs-site` runs outcome/checks.yaml.\n","files":["CHANGELOG.md","code/linkcheck.py","code/site/docs/install.md","code/site/docs/intro.md","code/site/docusaurus.config.js","code/site/package.json","code/site/sidebars.js","code/site/src/pages/index.md","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/results.json","pack.yaml","refs/refs.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use docs-and-knowledge-base-public/docusaurus-docs-site","mcp":"get_pack docs-and-knowledge-base-public/docusaurus-docs-site","url":"https://logicpacks.io/packs/docs-and-knowledge-base-public/docusaurus-docs-site"},{"id":"docs-and-knowledge-base-public/kb-articles","space":"docs-and-knowledge-base-public","name":"kb-articles","version":"1.0.0","category":"enterprise","summary":"Publish help-centre articles through draft and review, search them and export","level":"L2","env":[],"tools":["python3","docker"],"checks":2,"routes":["stdlib-reference","outline-or-bookstack"],"reliability":{"ok":8,"total":8},"repo":"https://github.com/Tech-Realm/space-docs-and-knowledge-base-public","repoName":"Tech-Realm/space-docs-and-knowledge-base-public","path":"kb-articles","spec":"# kb-articles\n\n## Goal\n\nPublish help-centre articles through draft and review, search them and export. Our reference flow (`code/refflow.py`, stdlib sqlite) proves the records, allowed moves, numbers and export; the same rules carry over to the self-hosted app.\n\n## Steps\n\n1. draft -> review -> published (-> archived); no publishing without review.\n2. Slugs are unique; search covers title and body.\n3. Export JSON for the help widget or a static help page.\n\n## Edge cases\n\n- Renaming a slug breaks links; keep a redirect list.\n\n## Don'ts\n\n- Don't paste customer conversations into articles.\n\n## Check\n\n`lp pack check docs-and-knowledge-base/kb-articles` runs outcome/checks.yaml.\n","files":["CHANGELOG.md","code/refflow.py","code/schema.json","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/fixtures/scenario.json","outcome/results.json","pack.yaml","refs/refs.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use docs-and-knowledge-base-public/kb-articles","mcp":"get_pack docs-and-knowledge-base-public/kb-articles","url":"https://logicpacks.io/packs/docs-and-knowledge-base-public/kb-articles"},{"id":"documents-public/brief","space":"documents-public","name":"brief","version":"1.0.0","category":"documents-research","summary":"One-to-two page event or project brief (what, when, run of day, what to test, contacts) as PDF.","level":"L1","env":[],"tools":["python3","chrome"],"checks":3,"routes":["chrome-local","weasyprint-local","pandoc-local"],"reliability":{"ok":9,"total":9},"repo":"https://github.com/Tech-Realm/space-documents-public","repoName":"Tech-Realm/space-documents-public","path":"brief","spec":"# brief\n\n## Goal\n\nA brief someone can read in two minutes and know where to be, what to do and how to report.\n\n## Steps\n\n1. Fill `code/brief-template.md` (WHAT, WHEN, RUN_ROWS, TODO_ITEMS, CONTACTS).\n2. Render with `../tools/render.py` and check `--pages 1:4`.\n3. Send the brief to Waleed to share; contacts are roles or links, not private numbers.\n\n## Edge cases\n\n- Time zones: write them (PKT, AEST) next to every time.\n\n## Don'ts\n\n- Don't send or share the PDF with a client yourself; hand it to Waleed (he sends).\n- Don't put real client data into fixtures or this repo; fixtures use fictional Acme Example Co.\n- Don't invent numbers (prices, dates, metrics): every figure comes from the brief or a cited source.\n- Don't put personal phone numbers in a brief that gets forwarded.\n","files":["CHANGELOG.md","code/brief-template.md","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/fixtures/brief.json","outcome/results.json","pack.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use documents-public/brief","mcp":"get_pack documents-public/brief","url":"https://logicpacks.io/packs/documents-public/brief"},{"id":"documents-public/certificate","space":"documents-public","name":"certificate","version":"1.0.0","category":"documents-research","summary":"Certificate of appreciation (A4 landscape, script name and signature) from an HTML template to a 1-page PDF.","level":"L1","env":[],"tools":["python3","chrome"],"checks":3,"routes":["chrome-local","weasyprint-local","pandoc-local"],"reliability":{"ok":9,"total":9},"repo":"https://github.com/Tech-Realm/space-documents-public","repoName":"Tech-Realm/space-documents-public","path":"certificate","spec":"# certificate\n\n## Goal\n\nA crisp one-page landscape certificate with the right recipient, date and signatory, rendered from HTML (no design app).\n\n## Steps\n\n1. Copy `code/certificate.html`; fill RECIPIENT, BODY, SIGNATORY, ROLE, DATE (use &nbsp; between words of the name so the script font doesn't wrap).\n2. `python3 ../tools/fill.py code/certificate.html values.json out/certificate.html`.\n3. `python3 ../tools/html2pdf.py out/certificate.html out/certificate.pdf`.\n4. `python3 ../tools/check_doc.py out/certificate.pdf --pages 1:1`; preview: `qlmanage -t -s 1600 -o . out/certificate.pdf` (macOS).\n5. For a jointly issued certificate add a second signature block; otherwise keep one signature + date.\n\n## Edge cases\n\n- Partner logos: keep width/height auto, 34 px; don't stretch.\n- Script fonts differ per OS (Snell Roundhand on macOS, Brush Script fallback).\n\n## Don'ts\n\n- Don't add a partner's signature to our own appreciation certificate.\n- Don't make the wordmark an image; it is live text so it stays crisp.\n- Don't put real client data into fixtures or this repo; fixtures use fictional Acme Example Co.\n- Don't invent numbers (prices, dates, metrics): every figure comes from the brief or a cited source.\n","files":["CHANGELOG.md","code/certificate.html","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/fixtures/certificate.json","outcome/results.json","pack.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use documents-public/certificate","mcp":"get_pack documents-public/certificate","url":"https://logicpacks.io/packs/documents-public/certificate"},{"id":"documents-public/deck","space":"documents-public","name":"deck","version":"1.0.0","category":"documents-research","summary":"Slide deck as HTML (16:9 sections) printed to a PDF with one slide per page; checks the page count equals the slide count.","level":"L1","env":[],"tools":["python3","chrome"],"checks":3,"routes":["chrome-local","weasyprint-local","pandoc-local"],"reliability":{"ok":10,"total":10},"repo":"https://github.com/Tech-Realm/space-documents-public","repoName":"Tech-Realm/space-documents-public","path":"deck","spec":"# deck\n\n## Goal\n\nA short deck (5-10 slides) that prints to a 16:9 PDF with exactly one page per slide.\n\n## Steps\n\n1. Write the story first: problem, what we built, proof (one number with its source), ask.\n2. Fill `code/deck-template.html` (each `<section>` is one slide; @page is 13.333in x 7.5in).\n3. `python3 ../tools/html2pdf.py deck.html deck.pdf`; `check_doc.py deck.pdf --pages N:N` where N = number of sections.\n4. If PowerPoint is required, import the PDF or rebuild from the outline; python-pptx is not installed here.\n\n## Edge cases\n\n- Text that overflows a slide pushes a second page: the page-count check catches it.\n- Fonts: system fonts only, no CDN.\n\n## Don'ts\n\n- Don't send or share the PDF with a client yourself; hand it to Waleed (he sends).\n- Don't put real client data into fixtures or this repo; fixtures use fictional Acme Example Co.\n- Don't invent numbers (prices, dates, metrics): every figure comes from the brief or a cited source.\n- Don't put more than one idea on a slide.\n","files":["CHANGELOG.md","code/deck-template.html","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/fixtures/deck.json","outcome/results.json","pack.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use documents-public/deck","mcp":"get_pack documents-public/deck","url":"https://logicpacks.io/packs/documents-public/deck"},{"id":"documents-public/docx","space":"documents-public","name":"docx","version":"1.0.0","category":"documents-research","summary":"Markdown to Word .docx with the stdlib only (headings, lists, tables, quotes) plus a structural validator.","level":"L2","env":[],"tools":["python3"],"checks":3,"routes":["chrome-local","weasyprint-local","pandoc-local"],"reliability":{"ok":9,"total":9},"repo":"https://github.com/Tech-Realm/space-documents-public","repoName":"Tech-Realm/space-documents-public","path":"docx","spec":"# docx\n\n## Goal\n\nAn editable .docx for people who need Word, generated without python-docx, valid enough for Word, Pages and LibreOffice.\n\n## Steps\n\n1. Write the content as markdown.\n2. `python3 code/md2docx.py in.md out.docx --title 'Title'`.\n3. `python3 code/check_docx.py out.docx 'Expected heading'` validates parts and XML.\n4. On macOS, `textutil -convert txt out.docx` reads it back as a second opinion.\n5. Brand styling: open in Word, apply the client's template (styles keep built-in names Heading1-3, Title, Quote).\n\n## Edge cases\n\n- Images are not embedded by this converter; add them in Word or ship a PDF instead.\n- Nested lists flatten to one level.\n\n## Don'ts\n\n- Don't email .docx with tracked changes from internal reviews; accept/reject first.\n- Don't put keys or passwords in documents.\n","files":["CHANGELOG.md","code/check_docx.py","code/md2docx.py","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/fixtures/handover.md","outcome/results.json","pack.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use documents-public/docx","mcp":"get_pack documents-public/docx","url":"https://logicpacks.io/packs/documents-public/docx"},{"id":"documents-public/guide-handbook","space":"documents-public","name":"guide-handbook","version":"1.0.0","category":"documents-research","summary":"Client guide / handbook (access, setup, everyday tasks table, help) rendered to PDF.","level":"L1","env":[],"tools":["python3","chrome"],"checks":3,"routes":["chrome-local","weasyprint-local","pandoc-local"],"reliability":{"ok":9,"total":9},"repo":"https://github.com/Tech-Realm/space-documents-public","repoName":"Tech-Realm/space-documents-public","path":"guide-handbook","spec":"# guide-handbook\n\n## Goal\n\nA short, numbered how-to guide a non-technical client can follow without asking us.\n\n## Steps\n\n1. List the reader's real tasks (log in, connect domain, edit, restore) and write one row per task.\n2. Fill `code/guide-template.md`; one action per bullet, UI labels in **bold** as they appear on screen.\n3. Render with `../tools/render.py` (plain or TechRealm CSS) and check with `check_doc.py --pages 1:20`.\n4. Walk through the guide once on the real system before sending.\n\n## Edge cases\n\n- UI labels change between versions: date the guide.\n- Screenshots go stale fastest; prefer text steps.\n\n## Don'ts\n\n- Don't send or share the PDF with a client yourself; hand it to Waleed (he sends).\n- Don't put real client data into fixtures or this repo; fixtures use fictional Acme Example Co.\n- Don't invent numbers (prices, dates, metrics): every figure comes from the brief or a cited source.\n- Don't include passwords or tokens; say where the reader receives them.\n","files":["CHANGELOG.md","code/guide-template.md","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/fixtures/guide.json","outcome/results.json","pack.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use documents-public/guide-handbook","mcp":"get_pack documents-public/guide-handbook","url":"https://logicpacks.io/packs/documents-public/guide-handbook"},{"id":"documents-public/pdf-generation","space":"documents-public","name":"pdf-generation","version":"1.0.0","category":"documents-research","summary":"HTML/markdown to PDF on any machine (WeasyPrint or headless Chrome), page-break rules, merging PDFs, and checking the result.","level":"L1","env":[],"tools":["python3"],"checks":3,"routes":["chrome-local","weasyprint-local","pandoc-local"],"reliability":{"ok":9,"total":9},"repo":"https://github.com/Tech-Realm/space-documents-public","repoName":"Tech-Realm/space-documents-public","path":"pdf-generation","spec":"# pdf-generation\n\n## Goal\n\nReliable PDF output from HTML: right page size, no blank pages, dark backgrounds printed, verified page count and text.\n\n## Steps\n\n1. Prefer headless Chrome (`../tools/html2pdf.py in.html out.pdf`); WeasyPrint only if it imports cleanly (keeps margin-box footers).\n2. Page size via CSS `@page { size: A4 | A4 landscape | 13.333in 7.5in }`, margins in @page not body.\n3. One break rule per container (`break-after: page`), `print-color-adjust: exact` for backgrounds.\n4. Merge: `python3 code/merge_pdfs.py out.pdf a.pdf b.pdf` (pypdf).\n5. Verify with `../tools/check_doc.py out.pdf --pages MIN:MAX --expect TEXT` (pdftotext or pypdf).\n\n## Edge cases\n\n- WeasyPrint missing or broken on the Mac: render.py falls back to headless Chrome (no 'Page X of Y' footer).\n- Blank pages in Chrome = the page break is declared twice in CSS; keep one `break-after: page`.\n- Tall screenshots overflow a page: images are capped at 215 mm high in the CSS.\n- `--virtual-time-budget=8000` lets web fonts/images load before printing.\n- Chrome adds headers/footers unless `--no-pdf-header-footer`.\n\n## Don'ts\n\n- Don't rasterise text into images to 'fix' layout; the PDF must stay searchable.\n- Don't hotlink remote fonts/images in client PDFs; vendor them.\n","files":["CHANGELOG.md","code/merge_pdfs.py","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/fixtures/two-pages.html","outcome/results.json","pack.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use documents-public/pdf-generation","mcp":"get_pack documents-public/pdf-generation","url":"https://logicpacks.io/packs/documents-public/pdf-generation"},{"id":"documents-public/report","space":"documents-public","name":"report","version":"1.0.0","category":"documents-research","summary":"Status or results report: summary, key numbers with a source per number, findings, recommendations, sources, as PDF.","level":"L1","env":[],"tools":["python3","chrome"],"checks":3,"routes":["chrome-local","weasyprint-local","pandoc-local"],"reliability":{"ok":10,"total":10},"repo":"https://github.com/Tech-Realm/space-documents-public","repoName":"Tech-Realm/space-documents-public","path":"report","spec":"# report\n\n## Goal\n\nA short report where every number has a source column and the summary says what changed and what to do.\n\n## Steps\n\n1. Gather the numbers first (exports, API reads, screenshots) and note where each came from and when.\n2. Fill `code/report-template.md` via a values JSON (METRIC_ROWS has a Source column).\n3. `python3 ../tools/fill.py ...` then `python3 ../tools/render.py out/report.md` (plain style) or with `--css ../templates/techrealm.css` for clients.\n4. `python3 ../tools/check_doc.py out/report.pdf --pages 1:20 --expect Sources`.\n5. Re-read the summary against the numbers before handing it over.\n\n## Edge cases\n\n- A number with no source: drop it or mark it 'not measured'.\n- Mixed periods (week vs month) in one table confuse readers; state the period.\n\n## Don'ts\n\n- Don't send or share the PDF with a client yourself; hand it to Waleed (he sends).\n- Don't put real client data into fixtures or this repo; fixtures use fictional Acme Example Co.\n- Don't invent numbers (prices, dates, metrics): every figure comes from the brief or a cited source.\n","files":["CHANGELOG.md","code/report-template.md","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/fixtures/report.json","outcome/results.json","pack.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use documents-public/report","mcp":"get_pack documents-public/report","url":"https://logicpacks.io/packs/documents-public/report"},{"id":"e-signing-public/audit-trail","space":"e-signing-public","name":"audit-trail","version":"1.0.0","category":"documents-research","summary":"Hash-chained JSONL audit trail for signing (created, sent, viewed, signed, completed) with document hashes and a verifier.","level":"L1","env":[],"tools":["python3"],"checks":4,"routes":["local-pypdf","self-hosted-esign","docusign"],"reliability":{"ok":7,"total":7},"repo":"https://github.com/Tech-Realm/space-e-signing-public","repoName":"Tech-Realm/space-e-signing-public","path":"audit-trail","spec":"# audit-trail\n\n## Goal\n\nEvidence of who did what and when, where any edited or deleted entry, or a swapped final PDF, is detected.\n\n## Steps\n\n1. `python3 code/audit.py log trail.jsonl created sender@example.com --doc draft.pdf`.\n2. Log sent / viewed / signed (with `--doc` after each change to the PDF) / completed.\n3. `python3 code/audit.py verify trail.jsonl --doc final.pdf` before sending the completed copy.\n4. Attach the trail (or a rendered certificate of completion) to the final PDF package.\n\n## Edge cases\n\n- Clock skew between machines: use UTC timestamps from one server.\n- The chain proves integrity, not identity; identity comes from the login/email step.\n\n## Don'ts\n\n- Don't store signer IDs, IPs or documents of real clients in this repo.\n- Don't call a typed/drawn stamp a 'digital signature'; it is an electronic signature mark.\n- Don't rewrite a trail to fix a typo; append a correction event.\n","files":["CHANGELOG.md","code/audit.py","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/results.json","pack.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use e-signing-public/audit-trail","mcp":"get_pack e-signing-public/audit-trail","url":"https://logicpacks.io/packs/e-signing-public/audit-trail"},{"id":"e-signing-public/pdf-signature-fields","space":"e-signing-public","name":"pdf-signature-fields","version":"1.0.0","category":"documents-research","summary":"Add empty signature fields (/FT /Sig) to a PDF where each signer should sign, and list fields + signed state.","level":"L1","env":[],"tools":["python3","pypdf"],"checks":3,"routes":["local-pypdf","self-hosted-esign","docusign"],"reliability":{"ok":7,"total":7},"repo":"https://github.com/Tech-Realm/space-e-signing-public","repoName":"Tech-Realm/space-e-signing-public","path":"pdf-signature-fields","spec":"# pdf-signature-fields\n\n## Goal\n\nA PDF with named, correctly placed signature fields that signing tools (Adobe, pyHanko, Documenso, DocuSeal) recognise.\n\n## Steps\n\n1. Find the signature spot on each page (points from bottom-left; A4 = 595 x 842).\n2. `python3 code/add_sig_field.py in.pdf out.pdf --name Client --page 2 --rect 72,100,272,150` (repeat per signer).\n3. `python3 code/list_sig_fields.py out.pdf` lists fields and whether each has a value (/V).\n4. Open in a PDF reader: the field shows as a signature box.\n\n## Edge cases\n\n- Adding fields after a document is digitally signed invalidates that signature: add all fields first.\n- Some viewers hide empty signature widgets without an appearance stream; the field still exists.\n\n## Don'ts\n\n- Don't store signer IDs, IPs or documents of real clients in this repo.\n- Don't call a typed/drawn stamp a 'digital signature'; it is an electronic signature mark.\n","files":["CHANGELOG.md","code/add_sig_field.py","code/list_sig_fields.py","code/make_fixture.py","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/results.json","pack.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use e-signing-public/pdf-signature-fields","mcp":"get_pack e-signing-public/pdf-signature-fields","url":"https://logicpacks.io/packs/e-signing-public/pdf-signature-fields"},{"id":"e-signing-public/typed-drawn-signatures","space":"e-signing-public","name":"typed-drawn-signatures","version":"1.0.0","category":"documents-research","summary":"Stamp a typed (script font) or drawn (PNG) signature with name, date and doc id onto a PDF page.","level":"L1","env":[],"tools":["python3","pypdf","chrome","pdftotext"],"checks":3,"routes":["local-pypdf","self-hosted-esign","docusign"],"reliability":{"ok":7,"total":7},"repo":"https://github.com/Tech-Realm/space-e-signing-public","repoName":"Tech-Realm/space-e-signing-public","path":"typed-drawn-signatures","spec":"# typed-drawn-signatures\n\n## Goal\n\nA visibly signed PDF where the mark, signer name and date sit exactly in the signature area, with the document hash logged.\n\n## Steps\n\n1. Get consent and identity first (email link, account) and log `viewed` in the audit trail.\n2. Typed: `python3 code/stamp_signature.py in.pdf out.pdf --name 'Full Name' --page 1 --x 72 --y 100 --doc-id ID`.\n3. Drawn: capture a PNG (canvas `toDataURL`), pass `--image sig.png`.\n4. Log `signed` with `--doc out.pdf` in the audit trail (see audit-trail pack).\n5. Verify text landed: `pdftotext out.pdf - | grep 'Signed electronically'`.\n\n## Edge cases\n\n- Script fonts differ per OS; the drawn PNG is identical everywhere.\n- Coordinates are from the bottom-left in points.\n- E-signature law differs by country (US ESIGN Act/UETA, EU eIDAS, Pakistan Electronic Transactions Ordinance 2002): a typed or drawn mark plus consent and an audit trail is a simple electronic signature; higher assurance needs certificate-based (PAdES) signatures. Confirm what the counterparty or court needs.\n\n## Don'ts\n\n- Don't store signer IDs, IPs or documents of real clients in this repo.\n- Don't call a typed/drawn stamp a 'digital signature'; it is an electronic signature mark.\n","files":["CHANGELOG.md","code/make_fixture.py","code/stamp_signature.py","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/results.json","pack.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use e-signing-public/typed-drawn-signatures","mcp":"get_pack e-signing-public/typed-drawn-signatures","url":"https://logicpacks.io/packs/e-signing-public/typed-drawn-signatures"},{"id":"education-public/attendance-report","space":"education-public","name":"attendance-report","version":"1.0.0","category":"education","summary":"summarise attendance per student and flag students below an attendance threshold","level":"L2","env":[],"tools":["python3"],"checks":1,"routes":["python-stdlib"],"reliability":{"ok":10,"total":10},"repo":"https://github.com/Tech-Realm/space-education-public","repoName":"Tech-Realm/space-education-public","path":"attendance-report","spec":"# Summarise attendance per student and flag students below an attendance threshold\n\n## Goal\n\nSummarise attendance per student and flag students below an attendance threshold.\n\n## Steps\n\n1. Export attendance as one row per student per session.\n2. Run attendance.py with the school's threshold and late policy.\n3. Contact families of flagged students per policy.\n\n## Edge cases\n\n- Excused absences: add an 'E' status and exclude from sessions if policy says so.\n- Students who joined mid-term: count only sessions after joining.\n\n## Don'ts\n\n- Don't post attendance lists publicly.\n\n## Routes (free first)\n\n1. `python-stdlib`: `code/attendance.py` (no install).\n","files":["CHANGELOG.md","code/attendance.py","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/fixtures/a.csv","outcome/results.json","pack.yaml","refs/refs.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use education-public/attendance-report","mcp":"get_pack education-public/attendance-report","url":"https://logicpacks.io/packs/education-public/attendance-report"},{"id":"education-public/gradebook-weighted","space":"education-public","name":"gradebook-weighted","version":"1.0.0","category":"education","summary":"compute weighted final grades and letter grades for a class from assessment scores","level":"L2","env":[],"tools":["python3"],"checks":1,"routes":["python-stdlib"],"reliability":{"ok":10,"total":10},"repo":"https://github.com/Tech-Realm/space-education-public","repoName":"Tech-Realm/space-education-public","path":"gradebook-weighted","spec":"# Compute weighted final grades and letter grades for a class from assessment scores\n\n## Goal\n\nCompute weighted final grades and letter grades for a class from assessment scores.\n\n## Steps\n\n1. Export scores as percentages, one column per assessment.\n2. Set weights from the syllabus.\n3. Run grades.py and review borderline students before publishing.\n\n## Edge cases\n\n- Missing scores count as 0 here; mark excused work separately.\n- Rounding rules (69.5 -> 70?) must follow the syllabus.\n\n## Don'ts\n\n- Don't share one student's grades with another; use IDs not names in shared files.\n\n## Routes (free first)\n\n1. `python-stdlib`: `code/grades.py` (no install).\n","files":["CHANGELOG.md","code/grades.py","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/fixtures/s.csv","outcome/fixtures/w.json","outcome/results.json","pack.yaml","refs/refs.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use education-public/gradebook-weighted","mcp":"get_pack education-public/gradebook-weighted","url":"https://logicpacks.io/packs/education-public/gradebook-weighted"},{"id":"education-public/lesson-plan-outline","space":"education-public","name":"lesson-plan-outline","version":"1.0.0","category":"education","summary":"generate a timed lesson plan skeleton (objectives, starter, instruction, practice, check, plenary) that fits the period length","level":"L2","env":[],"tools":["python3"],"checks":2,"routes":["python-stdlib"],"reliability":{"ok":10,"total":10},"repo":"https://github.com/Tech-Realm/space-education-public","repoName":"Tech-Realm/space-education-public","path":"lesson-plan-outline","spec":"# Generate a timed lesson plan skeleton (objectives, starter, instruction, practice, check, plenary) that fits the period length\n\n## Goal\n\nGenerate a timed lesson plan skeleton (objectives, starter, instruction, practice, check, plenary) that fits the period length.\n\n## Steps\n\n1. Write 1-3 measurable objectives (Bloom's verbs).\n2. Run lesson.py with the period length.\n3. Fill each section with activities and materials; reuse the exit ticket to plan the next lesson.\n\n## Edge cases\n\n- Labs/practicals need longer independent blocks; edit the proportions.\n- Very short periods (<20 min) collapse sections to 1 minute minimum.\n\n## Don'ts\n\n- Don't skip the check for understanding.\n\n## Routes (free first)\n\n1. `python-stdlib`: `code/lesson.py` (no install).\n","files":["CHANGELOG.md","code/lesson.py","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/results.json","pack.yaml","refs/refs.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use education-public/lesson-plan-outline","mcp":"get_pack education-public/lesson-plan-outline","url":"https://logicpacks.io/packs/education-public/lesson-plan-outline"},{"id":"education-public/quiz-from-question-bank","space":"education-public","name":"quiz-from-question-bank","version":"1.0.0","category":"education","summary":"generate randomised, reproducible quiz versions and answer keys from a question bank","level":"L2","env":[],"tools":["python3"],"checks":2,"routes":["python-stdlib"],"reliability":{"ok":10,"total":10},"repo":"https://github.com/Tech-Realm/space-education-public","repoName":"Tech-Realm/space-education-public","path":"quiz-from-question-bank","spec":"# Generate randomised, reproducible quiz versions and answer keys from a question bank\n\n## Goal\n\nGenerate randomised, reproducible quiz versions and answer keys from a question bank.\n\n## Steps\n\n1. Keep the question bank as JSON with the correct answer text.\n2. Run quiz.py with a seed per class/section; store the seed.\n3. Print versions; mark with the KEY line.\n\n## Edge cases\n\n- Options like 'All of the above' must not be shuffled; keep them out of shuffled banks.\n- Bank smaller than --n errors out.\n\n## Don'ts\n\n- Don't publish the bank or keys where students can find them.\n\n## Routes (free first)\n\n1. `python-stdlib`: `code/quiz.py` (no install).\n","files":["CHANGELOG.md","code/quiz.py","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/fixtures/bank.json","outcome/results.json","pack.yaml","refs/refs.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use education-public/quiz-from-question-bank","mcp":"get_pack education-public/quiz-from-question-bank","url":"https://logicpacks.io/packs/education-public/quiz-from-question-bank"},{"id":"education-public/readability-score","space":"education-public","name":"readability-score","version":"1.0.0","category":"education","summary":"score a text's readability (Flesch reading ease and Flesch-Kincaid grade) to match it to a class level","level":"L2","env":[],"tools":["python3"],"checks":2,"routes":["python-stdlib"],"reliability":{"ok":10,"total":10},"repo":"https://github.com/Tech-Realm/space-education-public","repoName":"Tech-Realm/space-education-public","path":"readability-score","spec":"# Score a text's readability (Flesch reading ease and Flesch-Kincaid grade) to match it to a class level\n\n## Goal\n\nScore a text's readability (Flesch reading ease and Flesch-Kincaid grade) to match it to a class level.\n\n## Steps\n\n1. Save the text as plain text.\n2. Run readability.py.\n3. Rewrite long sentences and long words until the grade matches the class.\n\n## Edge cases\n\n- Formulas are for English; other languages need other formulas.\n- Heuristic syllable counts are approximate.\n\n## Don'ts\n\n- Don't optimise only for the score; check meaning still holds.\n\n## Routes (free first)\n\n1. `python-stdlib`: `code/readability.py` (no install).\n","files":["CHANGELOG.md","code/readability.py","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/fixtures/easy.txt","outcome/fixtures/hard.txt","outcome/results.json","pack.yaml","refs/refs.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use education-public/readability-score","mcp":"get_pack education-public/readability-score","url":"https://logicpacks.io/packs/education-public/readability-score"},{"id":"education-public/spaced-repetition-schedule","space":"education-public","name":"spaced-repetition-schedule","version":"1.0.0","category":"education","summary":"schedule flashcard reviews with the SM-2 spaced-repetition algorithm","level":"L2","env":[],"tools":["python3"],"checks":1,"routes":["python-stdlib"],"reliability":{"ok":10,"total":10},"repo":"https://github.com/Tech-Realm/space-education-public","repoName":"Tech-Realm/space-education-public","path":"spaced-repetition-schedule","spec":"# Schedule flashcard reviews with the SM-2 spaced-repetition algorithm\n\n## Goal\n\nSchedule flashcard reviews with the SM-2 spaced-repetition algorithm.\n\n## Steps\n\n1. After each review, grade recall 0-5.\n2. Run sm2.py (or embed the function) to get the next review date.\n3. Review due cards daily.\n\n## Edge cases\n\n- Grades below 3 reset the repetition count, not the ease factor.\n- Very easy cards grow intervals fast; cap if exams are near.\n\n## Don'ts\n\n- Don't cram all due cards on one day after a break; spread them.\n\n## Routes (free first)\n\n1. `python-stdlib`: `code/sm2.py` (no install).\n","files":["CHANGELOG.md","code/sm2.py","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/results.json","pack.yaml","refs/refs.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use education-public/spaced-repetition-schedule","mcp":"get_pack education-public/spaced-repetition-schedule","url":"https://logicpacks.io/packs/education-public/spaced-repetition-schedule"},{"id":"email-marketing-public/cold-outreach-campaign","space":"email-marketing-public","name":"cold-outreach-campaign","version":"1.0.0","category":"email-marketing","summary":"Small, honest cold-email campaign: prospects CSV -> per-niche drafts -> approval gate -> capped daily sends with opt-out, suppression and a send log. Dry-run by default.","level":"L2","env":["MAIL_RELAY_URL","MAIL_RELAY_API_KEY"],"tools":["python3"],"checks":3,"routes":["own-smtp-listmonk","apps-script-relay","paid-esp"],"reliability":{"ok":7,"total":7},"repo":"https://github.com/Tech-Realm/space-email-marketing-public","repoName":"Tech-Realm/space-email-marketing-public","path":"cold-outreach-campaign","spec":"# Cold outreach campaign\n\n## Goal\nSend a small personalised campaign (10-50/day) to a prospects CSV without spamming: every mail has an opt-out line,\nreplies/STOP are suppressed, nobody is mailed twice, and nothing goes out before a logged approval.\n\n## Steps\n1. Prepare `prospects.csv` with columns `email,name,company,niche` (one row per contact). Write one template per niche in `emails/<niche>.md` (first line `Subject: ...`, then the body; `{name}` and `{company}` are filled).\n2. `python3 code/campaign.py build --prospects prospects.csv --emails emails/` writes `outbox.csv` and prints a preview.\n3. Get approval from the owner of the campaign (record who/when in `approvals.log`). No approval line → `send` refuses.\n4. `python3 code/campaign.py send --limit 10` is a dry run; add `--send` to actually send through the mail relay (apps-script-mail-relay pack).\n5. Add bounces, replies and STOPs to `suppress.txt`; re-run daily within the cap.\n\n## Edge cases\n- Gmail consumer quota is ~100/day: keep campaigns at 10-50/day and warm up.\n- One clear call to action per mail; vertical/niche emails outperform a blast.\n- Link scanners click links in seconds from datacenter cities: don't count those as interest.\n\n## Don'ts\n- Never send without a logged approval; never exceed the daily cap.\n- Never make false claims about location, clients or size. Say only what is true.\n- Never mail anyone in suppress.txt or anyone already in sent.csv.\n","files":["CHANGELOG.md","code/campaign.py","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/fixtures/emails/construction.md","outcome/fixtures/emails/dental.md","outcome/fixtures/prospects.csv","outcome/fixtures/suppress.txt","outcome/results.json","pack.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use email-marketing-public/cold-outreach-campaign","mcp":"get_pack email-marketing-public/cold-outreach-campaign","url":"https://logicpacks.io/packs/email-marketing-public/cold-outreach-campaign"},{"id":"embeddings-rag-public/chunk-markdown-notes","space":"embeddings-rag-public","name":"chunk-markdown-notes","version":"0.1.0","category":"ai-training","summary":"Split markdown notes (e.g. your own notes, by path) into heading-aware, overlapping chunks with stable ids, written to a local JSONL outside git for search and RAG.","level":"L2","env":[],"tools":["python3"],"checks":3,"routes":["python-stdlib"],"reliability":{"ok":8,"total":8},"repo":"https://github.com/Tech-Realm/space-embeddings-rag-public","repoName":"Tech-Realm/space-embeddings-rag-public","path":"chunk-markdown-notes","spec":"# chunk-markdown-notes\n\n## Goal\n\nchunks.jsonl with stable ids (<note>#<n>) and heading context, built from notes referenced by path.\n\n## Steps\n\n2. `python3 code/chunk.py ~/.cache/lp-rag/<name>.jsonl '<glob>' --max-chars 1200 --overlap 150`.\n3. Feed the JSONL to retrieval-eval-recall, local-embeddings-ollama or rag-answer-with-citations.\n\n## Edge cases\n\n- Chunk ids change when a note's headings change: rebuild the index after rebuild.sh.\n- Notes with secrets: the index is local only; never upload it.\n\n## Don'ts\n\n- Don't commit chunks or indexes of private notes.\n","files":["CHANGELOG.md","code/chunk.py","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/fixtures/corpus/delivery.md","outcome/fixtures/corpus/returns.md","outcome/fixtures/corpus/riders.md","outcome/fixtures/corpus/support.md","outcome/fixtures/qrels.jsonl","outcome/results.json","pack.yaml","refs/refs.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use embeddings-rag-public/chunk-markdown-notes","mcp":"get_pack embeddings-rag-public/chunk-markdown-notes","url":"https://logicpacks.io/packs/embeddings-rag-public/chunk-markdown-notes"},{"id":"embeddings-rag-public/local-embeddings-ollama","space":"embeddings-rag-public","name":"local-embeddings-ollama","version":"0.1.0","category":"ai-training","summary":"Embed notes and questions locally with Ollama (nomic-embed-text) and retrieve by cosine similarity; free, private, and checked against the BM25 baseline with recall@k.","level":"L1","env":["OPENAI_API_KEY"],"tools":["python3","ollama"],"checks":1,"routes":["ollama-mac","openai-embeddings"],"reliability":{"ok":8,"total":8},"repo":"https://github.com/Tech-Realm/space-embeddings-rag-public","repoName":"Tech-Realm/space-embeddings-rag-public","path":"local-embeddings-ollama","spec":"# local-embeddings-ollama\n\n## Goal\n\nVector retrieval over our notes running fully on the Mac, at least as good as BM25 on our qrels.\n\n## Steps\n\n1. `ollama pull nomic-embed-text`.\n2. Chunk with chunk-markdown-notes.\n3. `python3 code/eval_retrieval.py chunks.jsonl qrels.jsonl --method ollama` and compare with `--method bm25`.\n4. Hybrid (BM25 + vectors) usually wins on names and codes; keep both when unsure.\n\n## Edge cases\n\n- nomic-embed-text wants the search_query:/search_document: prefixes (eval_retrieval.py adds them).\n- Re-embed everything when you change the model.\n\n## Don'ts\n\n- Don't send private notes to a hosted embedding API.\n","files":["CHANGELOG.md","code/bm25.py","code/chunk.py","code/eval_retrieval.py","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/fixtures/corpus/delivery.md","outcome/fixtures/corpus/returns.md","outcome/fixtures/corpus/riders.md","outcome/fixtures/corpus/support.md","outcome/fixtures/qrels.jsonl","outcome/results.json","pack.yaml","refs/refs.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use embeddings-rag-public/local-embeddings-ollama","mcp":"get_pack embeddings-rag-public/local-embeddings-ollama","url":"https://logicpacks.io/packs/embeddings-rag-public/local-embeddings-ollama"},{"id":"embeddings-rag-public/rag-answer-with-citations","space":"embeddings-rag-public","name":"rag-answer-with-citations","version":"0.1.0","category":"ai-training","summary":"Answer questions from our own notes with a local model and verify every [citation] points at a chunk that was actually retrieved; no citation or a made-up one fails.","level":"L1","env":[],"tools":["python3","ollama"],"checks":3,"routes":["ollama-mac"],"reliability":{"ok":8,"total":8},"repo":"https://github.com/Tech-Realm/space-embeddings-rag-public","repoName":"Tech-Realm/space-embeddings-rag-public","path":"rag-answer-with-citations","spec":"# rag-answer-with-citations\n\n## Goal\n\nA short answer grounded in retrieved chunks, with citations that all exist in the retrieved set.\n\n## Steps\n\n1. Chunk the source (chunk-markdown-notes).\n2. `python3 code/answer.py chunks.jsonl \"question\"` (BM25 top-3 + local model).\n3. Read the citations; open the cited chunk when the answer matters.\n\n## Edge cases\n\n- Small models sometimes drop citations: the script fails instead of passing a bare answer.\n- Answer 'I don't know' is fine when retrieval misses.\n\n## Don'ts\n\n- Don't send private notes to hosted models for RAG.\n","files":["CHANGELOG.md","code/answer.py","code/bm25.py","code/chunk.py","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/fixtures/corpus/delivery.md","outcome/fixtures/corpus/returns.md","outcome/fixtures/corpus/riders.md","outcome/fixtures/corpus/support.md","outcome/fixtures/good_answer.txt","outcome/fixtures/made_up.txt","outcome/fixtures/qrels.jsonl","outcome/results.json","pack.yaml","refs/refs.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use embeddings-rag-public/rag-answer-with-citations","mcp":"get_pack embeddings-rag-public/rag-answer-with-citations","url":"https://logicpacks.io/packs/embeddings-rag-public/rag-answer-with-citations"},{"id":"embeddings-rag-public/retrieval-eval-recall","space":"embeddings-rag-public","name":"retrieval-eval-recall","version":"0.1.0","category":"ai-training","summary":"Measure search quality before changing chunking or models: recall@k and MRR on labelled questions, BM25 baseline in pure Python, same harness for Ollama embeddings.","level":"L2","env":[],"tools":["python3"],"checks":2,"routes":["bm25-stdlib","ollama-embed"],"reliability":{"ok":8,"total":8},"repo":"https://github.com/Tech-Realm/space-embeddings-rag-public","repoName":"Tech-Realm/space-embeddings-rag-public","path":"retrieval-eval-recall","spec":"# retrieval-eval-recall\n\n## Goal\n\nrecall@k and MRR numbers for a retrieval setup, so changes are kept only when they help.\n\n## Steps\n\n1. Write 20-50 real questions with the chunk ids that answer them (qrels.jsonl).\n2. Run the BM25 baseline.\n3. Run the candidate (embeddings, new chunk size) with the same qrels.\n4. Keep the change only if recall@k rises.\n\n## Edge cases\n\n- Chunk ids change with chunking: regenerate qrels by matching text, not ids, when chunk size changes.\n\n## Don'ts\n\n- Don't write questions by copying chunk text word for word.\n","files":["CHANGELOG.md","code/bm25.py","code/chunk.py","code/eval_retrieval.py","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/fixtures/corpus/delivery.md","outcome/fixtures/corpus/returns.md","outcome/fixtures/corpus/riders.md","outcome/fixtures/corpus/support.md","outcome/fixtures/qrels.jsonl","outcome/results.json","pack.yaml","refs/refs.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use embeddings-rag-public/retrieval-eval-recall","mcp":"get_pack embeddings-rag-public/retrieval-eval-recall","url":"https://logicpacks.io/packs/embeddings-rag-public/retrieval-eval-recall"},{"id":"engineering-public/beam-deflection","space":"engineering-public","name":"beam-deflection","version":"1.0.0","category":"engineering","summary":"check a simply supported beam: max bending moment, stress and deflection against span/360","level":"L2","env":[],"tools":["python3"],"checks":2,"routes":["python-stdlib"],"reliability":{"ok":10,"total":10},"repo":"https://github.com/Tech-Realm/space-engineering-public","repoName":"Tech-Realm/space-engineering-public","path":"beam-deflection","spec":"# Check a simply supported beam: max bending moment, stress and deflection against span/360\n\n## Goal\n\nCheck a simply supported beam: max bending moment, stress and deflection against span/360.\n\n## Steps\n\n1. Get section properties (I, S) from the manufacturer's table.\n2. Run beam.py with factored loads for strength and service loads for deflection.\n3. Compare stress with the material's design strength; get a licensed engineer to sign off.\n\n## Edge cases\n\n- Cantilevers and continuous beams use different formulas.\n- Lateral-torsional buckling is not checked here.\n\n## Don'ts\n\n- Don't use this for construction without professional review.\n\n## Routes (free first)\n\n1. `python-stdlib`: `code/beam.py` (no install).\n","files":["CHANGELOG.md","code/beam.py","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/results.json","pack.yaml","refs/refs.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use engineering-public/beam-deflection","mcp":"get_pack engineering-public/beam-deflection","url":"https://logicpacks.io/packs/engineering-public/beam-deflection"},{"id":"engineering-public/bill-of-materials-costing","space":"engineering-public","name":"bill-of-materials-costing","version":"1.0.0","category":"engineering","summary":"roll up a multi-level bill of materials into total quantities and cost per top-level assembly","level":"L2","env":[],"tools":["python3"],"checks":1,"routes":["python-stdlib"],"reliability":{"ok":10,"total":10},"repo":"https://github.com/Tech-Realm/space-engineering-public","repoName":"Tech-Realm/space-engineering-public","path":"bill-of-materials-costing","spec":"# Roll up a multi-level bill of materials into total quantities and cost per top-level assembly\n\n## Goal\n\nRoll up a multi-level bill of materials into total quantities and cost per top-level assembly.\n\n## Steps\n\n1. Export the BOM as parent/child/qty and current part costs.\n2. Run bom.py for the top assembly and build quantity.\n3. Add labour and overhead separately.\n\n## Edge cases\n\n- Any part listed as a parent is treated as an assembly (its own cost is ignored); buy-and-modify parts need their own leaf row.\n- Scrap/yield allowances multiply quantities.\n\n## Don'ts\n\n- Don't ignore cycles; the script stops on them.\n\n## Routes (free first)\n\n1. `python-stdlib`: `code/bom.py` (no install).\n","files":["CHANGELOG.md","code/bom.py","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/fixtures/bom.csv","outcome/fixtures/costs.csv","outcome/results.json","pack.yaml","refs/refs.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use engineering-public/bill-of-materials-costing","mcp":"get_pack engineering-public/bill-of-materials-costing","url":"https://logicpacks.io/packs/engineering-public/bill-of-materials-costing"},{"id":"engineering-public/ohms-law-and-wire-sizing","space":"engineering-public","name":"ohms-law-and-wire-sizing","version":"1.0.0","category":"engineering","summary":"compute current, power and copper-wire voltage drop for a DC run and pick the smallest wire under a drop limit","level":"L2","env":[],"tools":["python3"],"checks":1,"routes":["python-stdlib"],"reliability":{"ok":10,"total":10},"repo":"https://github.com/Tech-Realm/space-engineering-public","repoName":"Tech-Realm/space-engineering-public","path":"ohms-law-and-wire-sizing","spec":"# Compute current, power and copper-wire voltage drop for a DC run and pick the smallest wire under a drop limit\n\n## Goal\n\nCompute current, power and copper-wire voltage drop for a DC run and pick the smallest wire under a drop limit.\n\n## Steps\n\n1. Total the load in watts.\n2. Run wire.py with the one-way run length.\n3. Pick the larger of the drop-based size and the ampacity-table size; fuse at the source.\n\n## Edge cases\n\n- AC mains circuits follow local wiring codes; this is for low-voltage DC.\n- High ambient temperature lowers ampacity.\n\n## Don'ts\n\n- Don't work on mains wiring without a licensed electrician.\n\n## Routes (free first)\n\n1. `python-stdlib`: `code/wire.py` (no install).\n","files":["CHANGELOG.md","code/wire.py","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/results.json","pack.yaml","refs/refs.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use engineering-public/ohms-law-and-wire-sizing","mcp":"get_pack engineering-public/ohms-law-and-wire-sizing","url":"https://logicpacks.io/packs/engineering-public/ohms-law-and-wire-sizing"},{"id":"engineering-public/pid-step-response","space":"engineering-public","name":"pid-step-response","version":"1.0.0","category":"engineering","summary":"simulate a PID controller on a first-order process and report overshoot, settling time and steady-state error","level":"L2","env":[],"tools":["python3"],"checks":2,"routes":["python-stdlib"],"reliability":{"ok":10,"total":10},"repo":"https://github.com/Tech-Realm/space-engineering-public","repoName":"Tech-Realm/space-engineering-public","path":"pid-step-response","spec":"# Simulate a PID controller on a first-order process and report overshoot, settling time and steady-state error\n\n## Goal\n\nSimulate a PID controller on a first-order process and report overshoot, settling time and steady-state error.\n\n## Steps\n\n1. Identify the process gain K and time constant tau from a step test.\n2. Simulate candidate gains with pid.py.\n3. Apply the best gains on the real system with output limits and a manual-override ready.\n\n## Edge cases\n\n- Dead time is not modelled; add a delay for real thermal/flow processes.\n- Integral windup when the actuator saturates.\n\n## Don'ts\n\n- Don't tune live on equipment that can hurt someone.\n\n## Routes (free first)\n\n1. `python-stdlib`: `code/pid.py` (no install).\n","files":["CHANGELOG.md","code/pid.py","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/results.json","pack.yaml","refs/refs.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use engineering-public/pid-step-response","mcp":"get_pack engineering-public/pid-step-response","url":"https://logicpacks.io/packs/engineering-public/pid-step-response"},{"id":"engineering-public/tolerance-stack-up","space":"engineering-public","name":"tolerance-stack-up","version":"1.0.0","category":"engineering","summary":"analyse a linear tolerance stack with worst-case and RSS methods and check it against a gap requirement","level":"L2","env":[],"tools":["python3"],"checks":1,"routes":["python-stdlib"],"reliability":{"ok":10,"total":10},"repo":"https://github.com/Tech-Realm/space-engineering-public","repoName":"Tech-Realm/space-engineering-public","path":"tolerance-stack-up","spec":"# Analyse a linear tolerance stack with worst-case and RSS methods and check it against a gap requirement\n\n## Goal\n\nAnalyse a linear tolerance stack with worst-case and RSS methods and check it against a gap requirement.\n\n## Steps\n\n1. Draw the loop: each dimension with direction (+ adds to the gap, - reduces).\n2. Run stack.py.\n3. If worst case fails but RSS passes, decide based on volume and process capability.\n\n## Edge cases\n\n- RSS assumes independent, centred, normal distributions.\n- Geometric tolerances (flatness, position) need converting to linear contributions.\n\n## Don'ts\n\n- Don't use RSS for safety-critical fits.\n\n## Routes (free first)\n\n1. `python-stdlib`: `code/stack.py` (no install).\n","files":["CHANGELOG.md","code/stack.py","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/fixtures/s.csv","outcome/results.json","pack.yaml","refs/refs.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use engineering-public/tolerance-stack-up","mcp":"get_pack engineering-public/tolerance-stack-up","url":"https://logicpacks.io/packs/engineering-public/tolerance-stack-up"},{"id":"engineering-public/unit-converter","space":"engineering-public","name":"unit-converter","version":"1.0.0","category":"engineering","summary":"convert engineering quantities between SI and imperial units (length, mass, force, pressure, power, energy, temperature)","level":"L2","env":[],"tools":["python3"],"checks":4,"routes":["python-stdlib"],"reliability":{"ok":10,"total":10},"repo":"https://github.com/Tech-Realm/space-engineering-public","repoName":"Tech-Realm/space-engineering-public","path":"unit-converter","spec":"# Convert engineering quantities between SI and imperial units (length, mass, force, pressure, power, energy, temperature)\n\n## Goal\n\nConvert engineering quantities between SI and imperial units (length, mass, force, pressure, power, energy, temperature).\n\n## Steps\n\n1. Run `units.py VALUE FROM TO`.\n2. Keep units on every number in calculations and drawings.\n\n## Edge cases\n\n- Gauge vs absolute pressure (psig/psia) is not a unit conversion.\n- Temperature differences convert without the offset.\n\n## Don'ts\n\n- Don't round intermediate values.\n\n## Routes (free first)\n\n1. `python-stdlib`: `code/units.py` (no install).\n","files":["CHANGELOG.md","code/units.py","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/results.json","pack.yaml","refs/refs.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use engineering-public/unit-converter","mcp":"get_pack engineering-public/unit-converter","url":"https://logicpacks.io/packs/engineering-public/unit-converter"},{"id":"erp-public/run-order-to-cash","space":"erp-public","name":"run-order-to-cash","version":"1.0.0","category":"enterprise","summary":"Run order-to-cash: confirm a sales order against stock, deliver, invoice and record (partial) payments","level":"L2","env":[],"tools":["python3"],"checks":1,"routes":["stdlib-sqlite"],"reliability":{"ok":8,"total":8},"repo":"https://github.com/Tech-Realm/space-erp-public","repoName":"Tech-Realm/space-erp-public","path":"run-order-to-cash","spec":"# run-order-to-cash\n\nRun order-to-cash: confirm a sales order against stock, deliver, invoice and record (partial) payments\n\n## Goal\nEvery sale reduces stock once, produces one invoice and is marked paid only when fully paid.\n\n## Steps\n1. `so CUSTOMER SKU:QTY:PRICE...` (refused if stock is short).\n2. `deliver SO` (stock moves out).\n3. `invoice SO` -> total.\n4. `pay INV AMOUNT` -> remaining; status partial|paid.\n\n## Edge cases\n- Overpayment: remaining goes negative -> refund/credit note.\n- Cancel after delivery: return moves + credit note.\n\n## Don'ts\n- Don't invoice undelivered orders unless it's a prepayment flow.\n","files":["CHANGELOG.md","code/erp.py","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/results.json","pack.yaml","refs/refs.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use erp-public/run-order-to-cash","mcp":"get_pack erp-public/run-order-to-cash","url":"https://logicpacks.io/packs/erp-public/run-order-to-cash"},{"id":"erp-public/run-purchase-to-pay-with-3-way-match","space":"erp-public","name":"run-purchase-to-pay-with-3-way-match","version":"1.0.0","category":"enterprise","summary":"Run purchase-to-pay: raise a PO, receive goods, and hold supplier bills that don't match PO price or received quantity","level":"L2","env":[],"tools":["python3"],"checks":1,"routes":["stdlib-sqlite"],"reliability":{"ok":8,"total":8},"repo":"https://github.com/Tech-Realm/space-erp-public","repoName":"Tech-Realm/space-erp-public","path":"run-purchase-to-pay-with-3-way-match","spec":"# run-purchase-to-pay-with-3-way-match\n\nRun purchase-to-pay: raise a PO, receive goods, and hold supplier bills that don't match PO price or received quantity\n\n## Goal\nWe only pay for what we ordered and received, at the agreed price.\n\n## Steps\n1. `po SUPPLIER SKU:QTY:PRICE...`\n2. `receive PO SKU:QTY...` (over-receipt refused).\n3. `bill PO SKU:QTY:PRICE...` -> exceptions list; PO status 'hold' until resolved, else 'billed'.\n\n## Edge cases\n- Partial deliveries: bill only what was received.\n- Price tolerance: set tol_pct for small rounding differences.\n\n## Don'ts\n- Don't pay bills on hold.\n","files":["CHANGELOG.md","code/erp.py","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/results.json","pack.yaml","refs/refs.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use erp-public/run-purchase-to-pay-with-3-way-match","mcp":"get_pack erp-public/run-purchase-to-pay-with-3-way-match","url":"https://logicpacks.io/packs/erp-public/run-purchase-to-pay-with-3-way-match"},{"id":"erp-public/self-host-dolibarr","space":"erp-public","name":"self-host-dolibarr","version":"1.0.0","category":"enterprise","summary":"Self-host Dolibarr ERP/CRM with MariaDB behind localhost (GPL-3.0)","level":"L2","env":["DOLI_DB_PASSWORD","DOLI_DB_ROOT_PASSWORD","DOLI_ADMIN_PASSWORD","DOLI_URL_ROOT"],"tools":["python3","docker"],"checks":3,"routes":["self-host-docker"],"reliability":{"ok":7,"total":7},"repo":"https://github.com/Tech-Realm/space-erp-public","repoName":"Tech-Realm/space-erp-public","path":"self-host-dolibarr","spec":"# self-host-dolibarr\n\nSelf-host Dolibarr ERP/CRM with MariaDB behind localhost (GPL-3.0)\n\n## Goal\nA working Dolibarr where we can create a product and a third party, list them and export.\n\n## Steps\n1. `bash code/boot_check.sh`.\n2. Enable modules Products, Third parties, Invoices, Stock.\n3. Create a product; Tools -> Export assistant -> CSV.\n\n## Edge cases\n- Dolibarr's install wizard locks itself after first run (install.lock).\n\n## Don'ts\n- Don't use :latest.\n- Don't expose MariaDB.\n","files":["CHANGELOG.md","code/boot_check.sh","code/compose_lint.py","code/docker-compose.yml","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/fixtures/bad-compose.yml","outcome/results.json","pack.yaml","refs/refs.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use erp-public/self-host-dolibarr","mcp":"get_pack erp-public/self-host-dolibarr","url":"https://logicpacks.io/packs/erp-public/self-host-dolibarr"},{"id":"erp-public/self-host-erpnext","space":"erp-public","name":"self-host-erpnext","version":"1.0.0","category":"enterprise","summary":"Self-host ERPNext v15 with the official frappe_docker stack, pinned and bound to localhost (GPL-3.0)","level":"L2","env":[],"tools":["bash","docker","git"],"checks":2,"routes":["frappe-docker"],"reliability":{"ok":7,"total":7},"repo":"https://github.com/Tech-Realm/space-erp-public","repoName":"Tech-Realm/space-erp-public","path":"self-host-erpnext","spec":"# self-host-erpnext\n\nSelf-host ERPNext v15 with the official frappe_docker stack, pinned and bound to localhost (GPL-3.0)\n\n## Goal\nA working ERPNext where we can create an Item, see it in the list and export it.\n\n## Steps\n1. `FRAPPE_DOCKER_REF=<commit> bash code/install.sh` clones frappe_docker at a pinned commit and starts pwd.yml with ERPNEXT_VERSION pinned.\n2. Open http://127.0.0.1:8080, finish the setup wizard, create an Item, Report view -> Export.\n\n## Edge cases\n- pwd.yml is for trials; production uses the compose overrides in frappe_docker docs.\n- First boot takes several minutes (site creation).\n\n## Don'ts\n- Don't track frappe_docker main unpinned.\n- Don't expose MariaDB/Redis.\n","files":["CHANGELOG.md","code/install.sh","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/results.json","pack.yaml","refs/refs.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use erp-public/self-host-erpnext","mcp":"get_pack erp-public/self-host-erpnext","url":"https://logicpacks.io/packs/erp-public/self-host-erpnext"},{"id":"erp-public/self-host-odoo-community","space":"erp-public","name":"self-host-odoo-community","version":"1.0.0","category":"enterprise","summary":"Self-host Odoo Community 19 with Postgres behind localhost (LGPL-3.0)","level":"L2","env":["ODOO_PG_PASSWORD"],"tools":["python3","docker"],"checks":3,"routes":["self-host-docker"],"reliability":{"ok":7,"total":7},"repo":"https://github.com/Tech-Realm/space-erp-public","repoName":"Tech-Realm/space-erp-public","path":"self-host-odoo-community","spec":"# self-host-odoo-community\n\nSelf-host Odoo Community 19 with Postgres behind localhost (LGPL-3.0)\n\n## Goal\nA working Odoo Community where we can create a product, see it in the list and export it.\n\n## Steps\n1. `bash code/boot_check.sh`.\n2. Create a database, install Inventory + Sales + Invoicing apps.\n3. Create a product, list view -> Export (CSV/XLSX).\n\n## Edge cases\n- Enterprise-only apps (e.g. some accounting features) are proprietary: stay on Community modules.\n\n## Don'ts\n- Don't use :latest.\n- Don't expose Postgres.\n","files":["CHANGELOG.md","code/boot_check.sh","code/compose_lint.py","code/docker-compose.yml","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/fixtures/bad-compose.yml","outcome/results.json","pack.yaml","refs/refs.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use erp-public/self-host-odoo-community","mcp":"get_pack erp-public/self-host-odoo-community","url":"https://logicpacks.io/packs/erp-public/self-host-odoo-community"},{"id":"erp-public/track-inventory-and-reorder","space":"erp-public","name":"track-inventory-and-reorder","version":"1.0.0","category":"enterprise","summary":"Track stock with moves (in/out), show on-hand per SKU and list SKUs at or below their reorder point","level":"L2","env":[],"tools":["python3"],"checks":2,"routes":["stdlib-sqlite"],"reliability":{"ok":8,"total":8},"repo":"https://github.com/Tech-Realm/space-erp-public","repoName":"Tech-Realm/space-erp-public","path":"track-inventory-and-reorder","spec":"# track-inventory-and-reorder\n\nTrack stock with moves (in/out), show on-hand per SKU and list SKUs at or below their reorder point\n\n## Goal\nOn-hand stock is always the sum of recorded moves, and the reorder report says what to buy.\n\n## Steps\n1. Create items with reorder points (`item SKU NAME --reorder N`).\n2. Every in/out is a move (PO receipt +, delivery -); never edit on-hand directly.\n3. `stock` for on-hand, `reorder` for the buy list, `export-csv moves` for audit.\n\n## Edge cases\n- Returns: a positive move with ref RET<n>.\n- Stocktake differences: an adjustment move with a reason.\n\n## Don'ts\n- Don't allow negative stock (sales orders check on-hand first).\n","files":["CHANGELOG.md","code/erp.py","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/results.json","pack.yaml","refs/refs.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use erp-public/track-inventory-and-reorder","mcp":"get_pack erp-public/track-inventory-and-reorder","url":"https://logicpacks.io/packs/erp-public/track-inventory-and-reorder"},{"id":"evals-public/eval-on-fixture","space":"evals-public","name":"eval-on-fixture","version":"0.1.0","category":"ai-training","summary":"Score any model on a fixed case set (exact, contains, regex, JSON keys, numeric) from recorded outputs, local Ollama or any command; prints a score and fails below a threshold.","level":"L1","env":["OPENROUTER_API_KEY"],"tools":["python3"],"checks":3,"routes":["ollama-local","recorded","openrouter"],"reliability":{"ok":8,"total":8},"repo":"https://github.com/Tech-Realm/space-evals-public","repoName":"Tech-Realm/space-evals-public","path":"eval-on-fixture","spec":"# eval-on-fixture\n\n## Goal\n\nA repeatable score for a model on a fixed case set, with per-case PASS/FAIL and a JSON report.\n\n## Steps\n\n1. Write cases.jsonl (20-200 cases; pick the scorer per case: exact, contains, regex, json_keys, number).\n2. Run against the model: `--ollama <model>`, `--cmd '<cli reading stdin>'`, or `--outputs` for recorded answers.\n3. Save `--report base.json` for the current model; run again for the candidate.\n4. Use regression-gate-before-ship to decide.\n\n## Edge cases\n\n- Temperature 0 and a fixed seed for Ollama; still expect small drift across Ollama versions.\n- number scorer takes the last number in the output; add tol for floats.\n\n## Don'ts\n\n- Don't tune the model on the eval cases.\n- Don't put customer data in cases.\n","files":["CHANGELOG.md","code/run_eval.py","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/fixtures/cases.jsonl","outcome/fixtures/outputs.jsonl","outcome/results.json","pack.yaml","refs/refs.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use evals-public/eval-on-fixture","mcp":"get_pack evals-public/eval-on-fixture","url":"https://logicpacks.io/packs/evals-public/eval-on-fixture"},{"id":"evals-public/llm-judge-rubric","space":"evals-public","name":"llm-judge-rubric","version":"0.1.0","category":"ai-training","summary":"Grade open-ended answers 1-5 against a written rubric with an LLM judge (local Ollama first), strict SCORE/REASON parsing and a minimum-mean gate.","level":"L1","env":["OPENROUTER_API_KEY"],"tools":["python3"],"checks":2,"routes":["ollama-judge","openrouter-judge"],"reliability":{"ok":8,"total":8},"repo":"https://github.com/Tech-Realm/space-evals-public","repoName":"Tech-Realm/space-evals-public","path":"llm-judge-rubric","spec":"# llm-judge-rubric\n\n## Goal\n\nRubric scores for open-ended answers that agree with a human on the obvious cases.\n\n## Steps\n\n1. Write the rubric as 3-5 anchored levels.\n2. Put question/answer pairs in a JSONL.\n3. Run with a judge stronger than (and different from) the model under test.\n4. Check 5-10 judged cases by hand; adjust the rubric wording, not the scores.\n\n## Edge cases\n\n- Judges prefer longer answers and the first option: keep length similar, swap A/B order for pairwise.\n- Unparseable replies count as failures (exit 1), never as a default score.\n\n## Don'ts\n\n- Don't use the model under test as its own judge.\n- Don't report judge scores without a human spot-check.\n","files":["CHANGELOG.md","code/judge.py","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/fixtures/judge_cases.jsonl","outcome/fixtures/replies.jsonl","outcome/fixtures/rubric.txt","outcome/results.json","pack.yaml","refs/refs.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use evals-public/llm-judge-rubric","mcp":"get_pack evals-public/llm-judge-rubric","url":"https://logicpacks.io/packs/evals-public/llm-judge-rubric"},{"id":"evals-public/regression-gate-before-ship","space":"evals-public","name":"regression-gate-before-ship","version":"0.1.0","category":"ai-training","summary":"Block a model swap when the candidate scores worse than the current model on the same eval set (max drop, or any newly failing case).","level":"L2","env":[],"tools":["python3"],"checks":2,"routes":["python-stdlib"],"reliability":{"ok":8,"total":8},"repo":"https://github.com/Tech-Realm/space-evals-public","repoName":"Tech-Realm/space-evals-public","path":"regression-gate-before-ship","spec":"# regression-gate-before-ship\n\n## Goal\n\nA ship/block decision for a candidate model based on the same eval set as the current model.\n\n## Steps\n\n1. Run eval-on-fixture for the current model with --report base.json.\n2. Same for the candidate with --report candidate.json.\n3. `python3 code/gate.py base.json candidate.json --max-drop 0.02 --no-new-fails`.\n4. SHIP: swap the model; BLOCK: read the newly failed cases.\n\n## Edge cases\n\n- Small case sets are noisy: one case is 25% of a 4-case set; use 50+ cases for real decisions.\n\n## Don'ts\n\n- Don't override a BLOCK without reading the failed cases.\n","files":["CHANGELOG.md","code/gate.py","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/fixtures/base.json","outcome/fixtures/better.json","outcome/fixtures/worse.json","outcome/results.json","pack.yaml","refs/refs.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use evals-public/regression-gate-before-ship","mcp":"get_pack evals-public/regression-gate-before-ship","url":"https://logicpacks.io/packs/evals-public/regression-gate-before-ship"},{"id":"finance-dashboards-public/build-monthly-pnl-and-cash-flow","space":"finance-dashboards-public","name":"build-monthly-pnl-and-cash-flow","version":"1.0.0","category":"enterprise","summary":"Build a monthly P&L (revenue, COGS, gross margin, opex, EBITDA, net) and cash-flow statement from a transactions CSV","level":"L2","env":[],"tools":["python3"],"checks":2,"routes":["stdlib"],"reliability":{"ok":8,"total":8},"repo":"https://github.com/Tech-Realm/space-finance-dashboards-public","repoName":"Tech-Realm/space-finance-dashboards-public","path":"build-monthly-pnl-and-cash-flow","spec":"# build-monthly-pnl-and-cash-flow\n\nBuild a monthly P&L (revenue, COGS, gross margin, opex, EBITDA, net) and cash-flow statement from a transactions CSV\n\n## Goal\nFounders get a correct monthly P&L and cash-flow view from the bank/ledger export without a spreadsheet.\n\n## Steps\n1. Export transactions; map each to a type (keep a category->type map).\n2. `fin.py pnl tx.csv`, `fin.py cashflow tx.csv --opening <cash>`.\n3. Check: closing cash equals the bank balance; investigate differences.\n\n## Edge cases\n- Accrual vs cash: this is cash-basis unless you add accruals as rows.\n- Refunds: negative revenue rows.\n\n## Don'ts\n- Don't mix currencies in one file.\n","files":["CHANGELOG.md","code/fin.py","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/fixtures/transactions.csv","outcome/fixtures/unit.json","outcome/results.json","pack.yaml","refs/refs.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use finance-dashboards-public/build-monthly-pnl-and-cash-flow","mcp":"get_pack finance-dashboards-public/build-monthly-pnl-and-cash-flow","url":"https://logicpacks.io/packs/finance-dashboards-public/build-monthly-pnl-and-cash-flow"},{"id":"finance-dashboards-public/compute-burn-and-runway","space":"finance-dashboards-public","name":"compute-burn-and-runway","version":"1.0.0","category":"enterprise","summary":"Compute gross burn, net burn and months of runway from recent months' transactions and current cash","level":"L2","env":[],"tools":["python3"],"checks":1,"routes":["stdlib"],"reliability":{"ok":8,"total":8},"repo":"https://github.com/Tech-Realm/space-finance-dashboards-public","repoName":"Tech-Realm/space-finance-dashboards-public","path":"compute-burn-and-runway","spec":"# compute-burn-and-runway\n\nCompute gross burn, net burn and months of runway from recent months' transactions and current cash\n\n## Goal\nWe know how many months of cash are left at the current burn, and whether we're default-alive.\n\n## Steps\n1. `fin.py runway tx.csv --cash <bank balance> --months 3`.\n2. Net burn excludes financing (loans/investment) by design.\n3. Re-run monthly; alert below 6 months.\n\n## Edge cases\n- Lumpy months (annual payments): use --months 6.\n- Profitable months: runway = None, default_alive = true.\n\n## Don'ts\n- Don't count committed-but-unreceived funding as cash.\n","files":["CHANGELOG.md","code/fin.py","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/fixtures/transactions.csv","outcome/fixtures/unit.json","outcome/results.json","pack.yaml","refs/refs.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use finance-dashboards-public/compute-burn-and-runway","mcp":"get_pack finance-dashboards-public/compute-burn-and-runway","url":"https://logicpacks.io/packs/finance-dashboards-public/compute-burn-and-runway"},{"id":"finance-dashboards-public/publish-a-kpi-dashboard","space":"finance-dashboards-public","name":"publish-a-kpi-dashboard","version":"1.0.0","category":"enterprise","summary":"Publish a KPI dashboard (runway tiles + monthly revenue/EBITDA/net cash table) as one static, responsive HTML page","level":"L2","env":[],"tools":["python3"],"checks":2,"routes":["static-html","evidence","superset"],"reliability":{"ok":8,"total":8},"repo":"https://github.com/Tech-Realm/space-finance-dashboards-public","repoName":"Tech-Realm/space-finance-dashboards-public","path":"publish-a-kpi-dashboard","spec":"# publish-a-kpi-dashboard\n\nPublish a KPI dashboard (runway tiles + monthly revenue/EBITDA/net cash table) as one static, responsive HTML page\n\n## Goal\nWaleed or a client opens one page and sees runway and monthly KPIs, self-hosted.\n\n## Steps\n2. Bigger needs: Evidence.dev (MIT, SQL+markdown -> static site), Superset (Apache-2.0), Grafana (AGPL, flagged) or Metabase (AGPL, flagged).\n\n## Edge cases\n- Large files: aggregate first.\n- Mobile: tiles wrap; table scrolls.\n\n## Don'ts\n- Don't publish to third-party hosts.\n","files":["CHANGELOG.md","code/fin.py","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/fixtures/transactions.csv","outcome/fixtures/unit.json","outcome/results.json","pack.yaml","refs/refs.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use finance-dashboards-public/publish-a-kpi-dashboard","mcp":"get_pack finance-dashboards-public/publish-a-kpi-dashboard","url":"https://logicpacks.io/packs/finance-dashboards-public/publish-a-kpi-dashboard"},{"id":"finance-dashboards-public/self-host-metabase","space":"finance-dashboards-public","name":"self-host-metabase","version":"1.0.0","category":"enterprise","summary":"Self-host Metabase OSS with a Postgres app DB behind localhost for KPI dashboards (AGPL-3.0, flagged)","level":"L2","env":["MB_PG_PASSWORD"],"tools":["python3","docker"],"checks":3,"routes":["self-host-docker"],"reliability":{"ok":7,"total":7},"repo":"https://github.com/Tech-Realm/space-finance-dashboards-public","repoName":"Tech-Realm/space-finance-dashboards-public","path":"self-host-metabase","spec":"# self-host-metabase\n\nSelf-host Metabase OSS with a Postgres app DB behind localhost for KPI dashboards (AGPL-3.0, flagged)\n\n## Goal\nA working Metabase where we can connect a database, build a KPI question, see it on a dashboard and download CSV.\n\n## Steps\n1. `bash code/boot_check.sh`.\n2. Add the data source (read-only DB user).\n3. Create a question (e.g. revenue by month), add to a dashboard, download CSV.\n\n## Edge cases\n- Use a read-only DB user for data sources.\n- AGPL: modifications served to others must be published; enterprise/ features are commercial.\n\n## Don'ts\n- Don't use :latest.\n- Don't expose Postgres.\n","files":["CHANGELOG.md","code/boot_check.sh","code/compose_lint.py","code/docker-compose.yml","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/fixtures/bad-compose.yml","outcome/results.json","pack.yaml","refs/refs.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use finance-dashboards-public/self-host-metabase","mcp":"get_pack finance-dashboards-public/self-host-metabase","url":"https://logicpacks.io/packs/finance-dashboards-public/self-host-metabase"},{"id":"forms-and-surveys-public/form-inbox","space":"forms-and-surveys-public","name":"form-inbox","version":"1.0.0","category":"enterprise","summary":"Take a website form submission safely (validation, honeypot, rate of fill) into a CSV or Google Sheet","level":"L2","env":[],"tools":["python3","docker"],"checks":1,"routes":["local-csv","formbricks","apps-script-sheet"],"reliability":{"ok":8,"total":8},"repo":"https://github.com/Tech-Realm/space-forms-and-surveys-public","repoName":"Tech-Realm/space-forms-and-surveys-public","path":"form-inbox","spec":"# form-inbox\n\n## Goal\n\nTake a website form submission safely (validation, honeypot, rate of fill) into a CSV or Google Sheet.\n\n## Steps\n\n1. Describe the form in `code/form.json` (fields, required, email, options, max length, honeypot, minimum fill seconds).\n2. Serve: `python3 code/form_inbox.py serve code/form.json out/inbox.csv`; the HTML form posts to /submit with a hidden `_started` timestamp and an empty `website` field.\n3. Spam gets a normal-looking redirect and is not stored; invalid input gets 400.\n4. Run `python3 code/form_inbox.py selftest code/form.json`.\n\n## Edge cases\n\n- Behind a proxy, rate limits per IP need the CF-Connecting-IP header.\n- Google Sheets forwarding adds 1-2 s per submission.\n\n## Don'ts\n\n- Don't log message bodies to stdout.\n- Don't expose the port directly to the internet.\n\n## Check\n\n`lp pack check forms-and-surveys/form-inbox` runs outcome/checks.yaml.\n","files":["CHANGELOG.md","code/form.json","code/form_inbox.py","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/results.json","pack.yaml","refs/refs.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use forms-and-surveys-public/form-inbox","mcp":"get_pack forms-and-surveys-public/form-inbox","url":"https://logicpacks.io/packs/forms-and-surveys-public/form-inbox"},{"id":"forms-and-surveys-public/nps-survey","space":"forms-and-surveys-public","name":"nps-survey","version":"1.0.0","category":"enterprise","summary":"Collect NPS (0-10) answers, reject bad scores, compute NPS and export","level":"L2","env":[],"tools":["python3","docker"],"checks":2,"routes":["stdlib-reference","formbricks","saas"],"reliability":{"ok":8,"total":8},"repo":"https://github.com/Tech-Realm/space-forms-and-surveys-public","repoName":"Tech-Realm/space-forms-and-surveys-public","path":"nps-survey","spec":"# nps-survey\n\n## Goal\n\nCollect NPS (0-10) answers, reject bad scores, compute NPS and export. Our reference flow (`code/refflow.py`, stdlib sqlite) proves the records, allowed moves, numbers and export; the same rules carry over to the self-hosted app.\n\n## Steps\n\n1. One question: 'How likely are you to recommend us?' 0-10, plus an optional comment.\n2. NPS = % promoters (9-10) - % detractors (0-6).\n3. Export CSV for the monthly report.\n\n## Edge cases\n\n- Show n with NPS; under 30 answers the number swings a lot.\n\n## Don'ts\n\n- Don't link answers to phone numbers in the export.\n\n## Check\n\n`lp pack check forms-and-surveys/nps-survey` runs outcome/checks.yaml.\n","files":["CHANGELOG.md","code/refflow.py","code/schema.json","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/fixtures/scenario.json","outcome/results.json","pack.yaml","refs/refs.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use forms-and-surveys-public/nps-survey","mcp":"get_pack forms-and-surveys-public/nps-survey","url":"https://logicpacks.io/packs/forms-and-surveys-public/nps-survey"},{"id":"forms-and-surveys-public/survey-results-rollup","space":"forms-and-surveys-public","name":"survey-results-rollup","version":"1.0.0","category":"enterprise","summary":"Summarise survey answers: counts per option and average ratings per question, then export","level":"L2","env":[],"tools":["python3","docker"],"checks":2,"routes":["stdlib-reference","formbricks"],"reliability":{"ok":8,"total":8},"repo":"https://github.com/Tech-Realm/space-forms-and-surveys-public","repoName":"Tech-Realm/space-forms-and-surveys-public","path":"survey-results-rollup","spec":"# survey-results-rollup\n\n## Goal\n\nSummarise survey answers: counts per option and average ratings per question, then export. Our reference flow (`code/refflow.py`, stdlib sqlite) proves the records, allowed moves, numbers and export; the same rules carry over to the self-hosted app.\n\n## Steps\n\n1. Load answers as one row per response x question (Formbricks CSV export reshaped).\n2. Counts per option for choice questions; averages for rating questions.\n3. Export for the report.\n\n## Edge cases\n\n- Multi-select answers: one row per selected option.\n\n## Don'ts\n\n- Don't report a percentage without the n.\n\n## Check\n\n`lp pack check forms-and-surveys/survey-results-rollup` runs outcome/checks.yaml.\n","files":["CHANGELOG.md","code/refflow.py","code/schema.json","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/fixtures/scenario.json","outcome/results.json","pack.yaml","refs/refs.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use forms-and-surveys-public/survey-results-rollup","mcp":"get_pack forms-and-surveys-public/survey-results-rollup","url":"https://logicpacks.io/packs/forms-and-surveys-public/survey-results-rollup"},{"id":"game-assets-and-ai-public/animation-retargeting","space":"game-assets-and-ai-public","name":"animation-retargeting","version":"1.0.0","category":"xr-games","summary":"Retarget an animation from one armature to another in Blender headless (bone-name map, bake, pose verified at mid-clip) and export an animated, skinned GLB","level":"L1","env":[],"tools":["blender","python3"],"checks":1,"routes":["local-blender"],"reliability":{"ok":8,"total":8},"repo":"https://github.com/Tech-Realm/space-game-assets-and-ai-public","repoName":"Tech-Realm/space-game-assets-and-ai-public","path":"animation-retargeting","spec":"# animation-retargeting\n\n## Goal\nMocap or library animations (e.g. Mixamo-style rigs) play on our character rig, baked so the GLB has no constraints, verified numerically.\n\n## Steps\n1. Import source animation and target rig into one .blend (FBX import for Mixamo).\n2. If bone names differ, write a map JSON `{\"target_bone\": \"source_bone\"}` (e.g. `mixamorig:Spine` -> `spine`).\n3. Run `blender -b rig.blend --python code/retarget.py -- out.glb --src SourceArmature --tgt OurRig --map map.json`.\n4. It adds Copy Rotation constraints (local space), bakes visual keys over the scene range, removes constraints, checks the mid-frame pose error, deletes the source and exports.\n5. Gate: `python3 ../tools/glbtool.py inspect out.glb --need-anim --need-skin`.\n\n## Edge cases\n- Different rest poses (A-pose vs T-pose): fix the rest pose first or rotations come out offset.\n- Root motion: copy location on the root/hips only, scaled by leg-length ratio.\n\n## Don'ts\n- Don't retarget onto rigs with different bone roll without checking a mid-frame pose.\n- Don't ship Mixamo animations outside the terms of Adobe's licence.\n","files":["CHANGELOG.md","code/retarget.py","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/results.json","pack.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use game-assets-and-ai-public/animation-retargeting","mcp":"get_pack game-assets-and-ai-public/animation-retargeting","url":"https://logicpacks.io/packs/game-assets-and-ai-public/animation-retargeting"},{"id":"game-assets-and-ai-public/game-sprite-cutout","space":"game-assets-and-ai-public","name":"game-sprite-cutout","version":"1.0.0","category":"xr-games","summary":"Turn a generated image on a flat background into a clean game sprite: background removed, trimmed, optional pixel-art downscale and palette, padded to a power of two","level":"L1","env":[],"tools":["python3","Pillow"],"checks":2,"routes":["mflux","local-pillow","codex-image"],"reliability":{"ok":8,"total":8},"repo":"https://github.com/Tech-Realm/space-game-assets-and-ai-public","repoName":"Tech-Realm/space-game-assets-and-ai-public","path":"game-sprite-cutout","spec":"# game-sprite-cutout\n\n## Goal\nA transparent PNG sprite ready for an atlas, from an AI image prompted onto a flat key colour.\n\n## Steps\n1. Generate on the free route with a flat key background: `~/gen-image.sh \"<subject>, game sprite, centered, flat magenta #FF00FF background\" raw.png`.\n2. Cut out: `python3 code/sprite_cutout.py raw.png sprite.png --key auto --tol 40` (flood fill from the corners, so key-coloured pixels inside the subject survive).\n3. Pixel art: add `--pixel 64 --colors 16`.\n4. Pack many sprites with `sprite-atlas-packer`.\n\n## Edge cases\n- Soft shadows on the background leave a halo: raise --tol or ask for 'no shadow' in the prompt.\n- Hair/fur edges: key-colour fringes; `--despill` pulls key colour out of edge pixels.\n\n## Don'ts\n- Don't use a background colour that appears in the subject.\n- Don't ship sprites of characters/brands we don't own.\n","files":["CHANGELOG.md","code/make_fixture.py","code/sprite_cutout.py","code/verify_sprite.py","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/results.json","pack.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use game-assets-and-ai-public/game-sprite-cutout","mcp":"get_pack game-assets-and-ai-public/game-sprite-cutout","url":"https://logicpacks.io/packs/game-assets-and-ai-public/game-sprite-cutout"},{"id":"game-assets-and-ai-public/procedural-game-sfx","space":"game-assets-and-ai-public","name":"procedural-game-sfx","version":"1.0.0","category":"xr-games","summary":"Generate game sound effects (coin, jump, laser, explosion, hit, power-up) procedurally as WAV files with seeds, so they are royalty-free and reproducible","level":"L2","env":[],"tools":["python3"],"checks":2,"routes":["local-python"],"reliability":{"ok":8,"total":8},"repo":"https://github.com/Tech-Realm/space-game-assets-and-ai-public","repoName":"Tech-Realm/space-game-assets-and-ai-public","path":"procedural-game-sfx","spec":"# procedural-game-sfx\n\n## Goal\nA starter SFX set with no licensing questions, regenerated identically from a seed, normalised without clipping.\n\n## Steps\n1. Run `python3 code/sfx.py out/sfx --seed 1` -> six WAVs (44.1 kHz mono 16-bit).\n2. Tweak presets in `PRESETS` (waveform, pitch slide, envelope, noise).\n3. Convert for the web: `ffmpeg -i coin.wav -c:a libopus coin.ogg` (+ m4a for old Safari).\n4. Music and voice: see `music-and-sound`.\n\n## Edge cases\n- Very short sounds click without a fade-out: the envelope always ends at 0.\n- Same seed = same bytes: commit the seed, not just the WAV.\n\n## Don'ts\n- Don't normalise to 0 dBFS (no headroom); target peak -1 dBFS.\n","files":["CHANGELOG.md","code/sfx.py","code/verify_sfx.py","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/results.json","pack.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use game-assets-and-ai-public/procedural-game-sfx","mcp":"get_pack game-assets-and-ai-public/procedural-game-sfx","url":"https://logicpacks.io/packs/game-assets-and-ai-public/procedural-game-sfx"},{"id":"game-assets-and-ai-public/procedural-level-generator","space":"game-assets-and-ai-public","name":"procedural-level-generator","version":"1.0.0","category":"xr-games","summary":"Generate dungeon/room levels procedurally (BSP rooms + corridors) from a seed, export Tiled-compatible JSON, and verify every floor tile is reachable","level":"L2","env":[],"tools":["python3"],"checks":2,"routes":["local-python"],"reliability":{"ok":8,"total":8},"repo":"https://github.com/Tech-Realm/space-game-assets-and-ai-public","repoName":"Tech-Realm/space-game-assets-and-ai-public","path":"procedural-level-generator","spec":"# procedural-level-generator\n\n## Goal\nEndless playable layouts for a 2D game: deterministic from a seed, loadable by Phaser/Tiled, never with unreachable rooms.\n\n## Steps\n1. Run `python3 code/levelgen.py --seed 42 --w 64 --h 48 --out out/level.json` (Tiled JSON: one tile layer, 1 = floor, 2 = wall; plus an object layer with spawn and exit).\n2. Load in Phaser: `this.load.tilemapTiledJSON('lvl', 'level.json')`.\n3. Verify: `python3 code/verify_level.py out/level.json` (flood fill from spawn reaches all floor and the exit).\n4. Tune room sizes/min split in the constants at the top.\n\n## Edge cases\n- Tiny maps can't fit the minimum rooms: the generator raises instead of making a broken map.\n- Same seed + same version = same map: store the seed with the save game.\n\n## Don'ts\n- Don't place spawn and exit in the same room.\n- Don't ship a level without running the reachability check.\n","files":["CHANGELOG.md","code/levelgen.py","code/verify_level.py","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/results.json","pack.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use game-assets-and-ai-public/procedural-level-generator","mcp":"get_pack game-assets-and-ai-public/procedural-level-generator","url":"https://logicpacks.io/packs/game-assets-and-ai-public/procedural-level-generator"},{"id":"game-assets-and-ai-public/seamless-texture","space":"game-assets-and-ai-public","name":"seamless-texture","version":"1.0.0","category":"xr-games","summary":"Make a texture tile seamlessly (offset + cross-blend of the seams) and prove the edges match, for generated or photographed materials","level":"L1","env":[],"tools":["python3","Pillow"],"checks":2,"routes":["mflux","local-pillow","codex-image"],"reliability":{"ok":8,"total":8},"repo":"https://github.com/Tech-Realm/space-game-assets-and-ai-public","repoName":"Tech-Realm/space-game-assets-and-ai-public","path":"seamless-texture","spec":"# seamless-texture\n\n## Goal\nA square, power-of-two texture whose left/right and top/bottom edges continue into each other, ready for repeat wrapping.\n\n## Steps\n1. Generate a material image on the free route: `~/gen-image.sh \"seamless stone floor texture, top-down, even lighting\" raw.png`.\n2. Make it tile: `python3 code/make_tileable.py raw.png tile.png --size 1024 --blend 0.25`.\n3. Verify: `python3 code/tile_check.py tile.png` (edge difference must be close to the image's own pixel-to-pixel difference).\n4. Normal/roughness maps: derive from the tiled colour (e.g. Materialize / Blender bake) AFTER tiling.\n\n## Edge cases\n- Strong directional light in the source can't be fixed by blending: prompt for 'even lighting'.\n- Large features repeat visibly: use a bigger tile or detail textures.\n\n## Don'ts\n- Don't tile after resizing to non-power-of-two (mipmaps suffer).\n- Don't use photos of copyrighted artwork.\n","files":["CHANGELOG.md","code/make_fixture.py","code/make_tileable.py","code/tile_check.py","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/results.json","pack.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use game-assets-and-ai-public/seamless-texture","mcp":"get_pack game-assets-and-ai-public/seamless-texture","url":"https://logicpacks.io/packs/game-assets-and-ai-public/seamless-texture"},{"id":"game-assets-and-ai-public/sprite-atlas-packer","space":"game-assets-and-ai-public","name":"sprite-atlas-packer","version":"1.0.0","category":"xr-games","summary":"Pack many sprite PNGs into one texture atlas plus a JSON frame map that Phaser and PixiJS load directly (shelf packing, padding, power-of-two)","level":"L1","env":[],"tools":["python3","Pillow"],"checks":1,"routes":["local-pillow"],"reliability":{"ok":8,"total":8},"repo":"https://github.com/Tech-Realm/space-game-assets-and-ai-public","repoName":"Tech-Realm/space-game-assets-and-ai-public","path":"sprite-atlas-packer","spec":"# sprite-atlas-packer\n\n## Goal\nOne atlas image + JSON-hash data so a 2D game makes one texture bind for all its sprites.\n\n## Steps\n1. Put frames in a folder (`walk_0.png`, `walk_1.png`, ...).\n2. Run `python3 code/pack_atlas.py frames/ out/atlas --pad 2` -> `atlas.png` + `atlas.json` (TexturePacker 'JSON hash' layout).\n3. Phaser: `this.load.atlas('hero', 'atlas.png', 'atlas.json')`; Pixi 8: `Assets.load('atlas.json')`.\n4. Verify: `python3 code/verify_atlas.py out/atlas.json` (no overlaps, all inside, POT).\n\n## Edge cases\n- Max texture size on old phones is 2048 or 4096: split into several atlases above that.\n- Padding avoids bleeding with linear filtering; use 2 px.\n\n## Don'ts\n- Don't mix pixel-art (nearest) and smooth sprites in one atlas.\n- Don't rotate frames unless the loader supports it (this packer never rotates).\n","files":["CHANGELOG.md","code/make_frames.py","code/pack_atlas.py","code/verify_atlas.py","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/results.json","pack.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use game-assets-and-ai-public/sprite-atlas-packer","mcp":"get_pack game-assets-and-ai-public/sprite-atlas-packer","url":"https://logicpacks.io/packs/game-assets-and-ai-public/sprite-atlas-packer"},{"id":"game-dev-web-public/game-asset-delivery","space":"game-dev-web-public","name":"game-asset-delivery","version":"1.0.0","category":"xr-games","summary":"Make a large WebGL/WASM game load fast: content-hashed file names, precompressed .br/.gz copies, an asset manifest for parallel loading and immutable caching","level":"L2","env":[],"tools":["python3"],"checks":1,"routes":["local-python"],"reliability":{"ok":8,"total":8},"repo":"https://github.com/Tech-Realm/space-game-dev-web-public","repoName":"Tech-Realm/space-game-dev-web-public","path":"game-asset-delivery","spec":"# game-asset-delivery\n\n## Goal\nRepeat visits load from cache, first visits download the least bytes possible, and the loader fetches in parallel from a manifest.\n\n## Steps\n1. Run `python3 code/optimize_assets.py <assets-dir> --out <dist-assets>`: copies each file to `name.<hash8>.ext`, writes `.gz` (and `.br` when the brotli module is installed) next to compressible files, and `manifest.json` (logical name -> hashed name, bytes).\n2. Load via the manifest with a concurrency limit (16 worked well for us on HTTP/2).\n3. Serve hashed files with `Cache-Control: public, max-age=31536000, immutable`; the manifest itself with no-cache.\n4. Let nginx/Pages serve the precompressed copy (`gzip_static on;` / Pages compresses automatically).\n5. Check: `python3 code/optimize_assets.py outcome/fixtures/assets --out out/a` then the verifier.\n\n## Edge cases\n- Already-compressed formats (png, jpg, mp4, ktx2, ogg) are not recompressed.\n- Changing one asset changes only its hash: other cache entries stay valid.\n\n## Don'ts\n- Don't cache the manifest or index.html for a year.\n- Don't ship unused assets: diff the manifest against what levels reference.\n","files":["CHANGELOG.md","code/optimize_assets.py","code/verify_assets.py","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/fixtures/assets/js/engine.js","outcome/fixtures/assets/levels/level1.json","outcome/fixtures/assets/readme.txt","outcome/results.json","pack.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use game-dev-web-public/game-asset-delivery","mcp":"get_pack game-dev-web-public/game-asset-delivery","url":"https://logicpacks.io/packs/game-dev-web-public/game-asset-delivery"},{"id":"game-dev-web-public/gamepad-input-layer","space":"game-dev-web-public","name":"gamepad-input-layer","version":"1.0.0","category":"xr-games","summary":"Merge keyboard and gamepad input into one action map (move, jump, fire) with dead zones, edge detection (pressed this frame) and rebinding, as a dependency-free ES module","level":"L1","env":[],"tools":["node"],"checks":1,"routes":["node-local"],"reliability":{"ok":8,"total":8},"repo":"https://github.com/Tech-Realm/space-game-dev-web-public","repoName":"Tech-Realm/space-game-dev-web-public","path":"gamepad-input-layer","spec":"# gamepad-input-layer\n\n## Goal\nGame code asks `input.down('jump')` / `input.pressed('fire')` / `input.axis()` and never cares whether a key or a controller was used.\n\n## Steps\n1. Copy `code/input.mjs` into the game.\n2. Create `const input = createInput(bindings)`; call `input.poll(keysDown, navigator.getGamepads())` once per frame before update.\n3. Use standard-mapping button indices (0 = A/Cross, 1 = B/Circle, 12-15 = d-pad).\n4. Rebind by editing the bindings object (save it with the save game).\n5. Check: `node code/input.test.mjs`.\n\n## Edge cases\n- Stick drift: radial dead zone (default 0.2) and rescale to 0..1 outside it.\n- Non-standard mapping (`pad.mapping !== 'standard'`): show a remap screen.\n\n## Don'ts\n- Don't read input inside event handlers for gameplay (frame-inconsistent).\n- Don't assume pad index 0 is the active one: use the last one with input.\n","files":["CHANGELOG.md","code/input.mjs","code/input.test.mjs","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/results.json","pack.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use game-dev-web-public/gamepad-input-layer","mcp":"get_pack game-dev-web-public/gamepad-input-layer","url":"https://logicpacks.io/packs/game-dev-web-public/gamepad-input-layer"},{"id":"game-dev-web-public/headless-game-qa","space":"game-dev-web-public","name":"headless-game-qa","version":"1.0.0","category":"xr-games","summary":"Smoke-test every level of a browser game headless (Chromium on SwiftShader): loads, no errors, non-blank frame, FPS sample and a screenshot per level, as a report","level":"L1","env":[],"tools":["python3","playwright-python","chromium"],"checks":2,"routes":["local-chromium","homelab-headless"],"reliability":{"ok":8,"total":8},"repo":"https://github.com/Tech-Realm/space-game-dev-web-public","repoName":"Tech-Realm/space-game-dev-web-public","path":"headless-game-qa","spec":"# headless-game-qa\n\n## Goal\nOne command that tells whether each level still loads and draws after a change, with screenshots to eyeball, runnable on a server without a GPU.\n\n## Steps\n1. Expose a ready flag in the game (`window.__ready = true` after the level is drawn) and a level selector in the URL (`?level=N`).\n2. Run `python3 code/level_sweep.py <url-or-dir> --levels 1-14 --out out/qa`: one Chromium page per level via `tools/webgl_check.py`, then `out/qa/report.md`.\n3. Run it on a headless server (we used a Linux box with Chromium + SwiftShader); expect a few fps there, so FPS is only a smoke signal.\n4. Fail the run (exit 1) if any level fails; attach the report to the change.\n\n## Edge cases\n- SwiftShader is slow: a big 3D level can take minutes; raise --timeout-ms.\n- Audio autoplay is blocked headless: don't wait on audio events.\n\n## Don'ts\n- Don't run Playwright WebKit on the Mac for this (it opened windows on the desktop for us). Chromium/Firefox headless only.\n- Don't treat 0 errors as gameplay-correct: playthroughs still need a human or scripted inputs.\n","files":["CHANGELOG.md","code/level_sweep.py","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/fixtures/game/index.html","outcome/results.json","pack.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use game-dev-web-public/headless-game-qa","mcp":"get_pack game-dev-web-public/headless-game-qa","url":"https://logicpacks.io/packs/game-dev-web-public/headless-game-qa"},{"id":"game-dev-web-public/itch-and-own-host-deploy","space":"game-dev-web-public","name":"itch-and-own-host-deploy","version":"1.0.0","category":"xr-games","summary":"Package a browser game for itch.io (zip with index.html at the root, size and file limits, SharedArrayBuffer setting) and for our own host (Cloudflare Pages with COOP/COEP headers)","level":"L2","env":[],"tools":["python3"],"checks":2,"routes":["itch-free","cloudflare-pages"],"reliability":{"ok":8,"total":8},"repo":"https://github.com/Tech-Realm/space-game-dev-web-public","repoName":"Tech-Realm/space-game-dev-web-public","path":"itch-and-own-host-deploy","spec":"# itch-and-own-host-deploy\n\n## Goal\nOne build folder becomes a valid itch.io HTML5 upload and a Pages deploy, with the cross-origin isolation headers threaded/WASM games need.\n\n## Steps\n1. Build the game into one folder with `index.html` at its root and only relative paths.\n2. Run `python3 code/prep_web_build.py <build-dir> --out dist/` : validates, writes `_headers` (COOP/COEP + long cache for hashed files), and makes `dist/game-itch.zip`.\n3. itch.io: create an HTML game, upload the zip, tick 'SharedArrayBuffer support' if the game uses threads, set the viewport size.\n4. Own host: `wrangler pages deploy <build-dir> --project-name <name>` (see the cloudflare space); `_headers` is applied by Pages.\n5. Check the live page with `headless-game-qa`.\n\n## Edge cases\n- itch.io limits (check current docs): zip upload size, extracted file count, and per-file size.\n- Absolute paths (`/assets/..`) break on itch.io's subfolder hosting.\n- COEP require-corp blocks cross-origin assets without CORP/CORS headers: self-host fonts and scripts.\n\n## Don'ts\n- Don't upload games with third-party assets you have no rights to (keep those private, see igi-games).\n- Don't put API keys in the client bundle.\n","files":["CHANGELOG.md","code/prep_web_build.py","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/fixtures/bad/index.html","outcome/fixtures/game/assets/level1.json","outcome/fixtures/game/index.html","outcome/fixtures/game/js/main.js","outcome/results.json","pack.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use game-dev-web-public/itch-and-own-host-deploy","mcp":"get_pack game-dev-web-public/itch-and-own-host-deploy","url":"https://logicpacks.io/packs/game-dev-web-public/itch-and-own-host-deploy"},{"id":"game-dev-web-public/versioned-save-games","space":"game-dev-web-public","name":"versioned-save-games","version":"1.0.0","category":"xr-games","summary":"Save and load game progress with a schema version, step-by-step migrations, a checksum against corruption and a pluggable store (localStorage, file, IndexedDB)","level":"L1","env":[],"tools":["node"],"checks":1,"routes":["node-local"],"reliability":{"ok":8,"total":8},"repo":"https://github.com/Tech-Realm/space-game-dev-web-public","repoName":"Tech-Realm/space-game-dev-web-public","path":"versioned-save-games","spec":"# versioned-save-games\n\n## Goal\nSaves from any old version of the game load into the current one, corrupted saves are detected and backed up instead of crashing the game.\n\n## Steps\n1. Copy `code/save.mjs`. Define `CURRENT` and `MIGRATIONS[n]` (n -> n+1).\n2. Save: `saveGame(store, data)` writes `{v, data, sum}` (FNV-1a checksum of the JSON).\n3. Load: `loadGame(store, defaults)` verifies the checksum, runs migrations up to CURRENT, returns `{data, migratedFrom, recovered}`.\n4. Corrupt or newer-than-game saves are copied to `<key>.bak` and defaults are returned.\n5. Check: `node code/save.test.mjs`.\n\n## Edge cases\n- localStorage is ~5 MB and synchronous: big saves go to IndexedDB (same interface, async wrapper).\n- Cloud saves: send the same envelope to your backend; resolve conflicts by `updatedAt`.\n\n## Don'ts\n- Don't delete a save you cannot read; back it up.\n- Don't change the shape without bumping the version.\n","files":["CHANGELOG.md","code/save.mjs","code/save.test.mjs","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/results.json","pack.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use game-dev-web-public/versioned-save-games","mcp":"get_pack game-dev-web-public/versioned-save-games","url":"https://logicpacks.io/packs/game-dev-web-public/versioned-save-games"},{"id":"game-dev-web-public/websocket-multiplayer-room","space":"game-dev-web-public","name":"websocket-multiplayer-room","version":"1.0.0","category":"xr-games","summary":"Run a small authoritative multiplayer room over WebSockets (join, input, server tick, state broadcast, leave) with no dependencies, and know when to move to Colyseus","level":"L1","env":[],"tools":["node"],"checks":1,"routes":["node-local","colyseus"],"reliability":{"ok":8,"total":8},"repo":"https://github.com/Tech-Realm/space-game-dev-web-public","repoName":"Tech-Realm/space-game-dev-web-public","path":"websocket-multiplayer-room","spec":"# websocket-multiplayer-room\n\n## Goal\nTwo or more browser clients see the same game state, driven by a server that owns the truth (clients send inputs, not positions).\n\n## Steps\n1. Start the server: `node code/server.mjs 8787` (Node 18+, no npm install; minimal RFC 6455 text frames).\n2. Clients: `new WebSocket('ws://host:8787/room/lobby')`, send `{t:'input', dx, dy}`; receive `{t:'state', tick, players}` at 20 Hz.\n3. The server clamps speed per tick (basic anti-cheat) and drops players that stop sending pings.\n4. Production: move to Colyseus (MIT; rooms, schema sync, matchmaking) or WebRTC data channels for P2P, behind TLS (wss://) on our host or a Cloudflare tunnel.\n5. Check: `node code/room.test.mjs` (starts the server, two clients, verifies sync).\n\n## Edge cases\n- This server handles text frames < 64 KB, no compression or fragmentation: fine for a room of a few players, not for production.\n- Latency: add client-side prediction + server reconciliation when moving feels laggy.\n- WebRTC needs a STUN/TURN server for players behind strict NATs.\n\n## Don'ts\n- Don't trust client positions or scores.\n- Don't expose the raw ws port publicly without TLS and a rate limit.\n","files":["CHANGELOG.md","code/room.test.mjs","code/server.mjs","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/results.json","pack.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use game-dev-web-public/websocket-multiplayer-room","mcp":"get_pack game-dev-web-public/websocket-multiplayer-room","url":"https://logicpacks.io/packs/game-dev-web-public/websocket-multiplayer-room"},{"id":"game-engines-public/blender-glb-export","space":"game-engines-public","name":"blender-glb-export","version":"1.0.0","category":"xr-games","summary":"Export game-ready GLB assets from Blender headless (applied transforms, Y-up, materials) and gate them on triangle and size budgets before they enter an engine","level":"L1","env":[],"tools":["blender","python3"],"checks":1,"routes":["local-blender"],"reliability":{"ok":8,"total":8},"repo":"https://github.com/Tech-Realm/space-game-engines-public","repoName":"Tech-Realm/space-game-engines-public","path":"blender-glb-export","spec":"# blender-glb-export\n\n## Goal\nAny .blend becomes a GLB that loads the same in three.js, Godot, Unity (glTFast) and Unreal (glTF importer), checked against budgets in one command.\n\n## Steps\n1. Model/animate in Blender (see `3d-blender-animation`).\n2. Export headless: `blender -b scene.blend --python code/export_glb.py -- out.glb --apply-scale`.\n3. Gate: `python3 ../tools/glbtool.py inspect out.glb --max-tris 100000 --max-bytes 10000000`.\n4. Optional compression for the web: `npx gltf-transform optimize out.glb web.glb --compress draco --texture-compress ktx2`.\n5. Import: three.js GLTFLoader (threejs/scene-with-glb-model), Godot drag-in, Unity glTFast, Unreal Interchange glTF.\n\n## Edge cases\n- Unapplied scale makes physics/colliders wrong in engines: use --apply-scale.\n- Blender shader node setups beyond Principled BSDF don't export; bake them to textures.\n\n## Don'ts\n- Don't export hidden helper objects (keep them in a separate collection excluded from export).\n- Don't skip the budget gate for mobile/web targets.\n","files":["CHANGELOG.md","code/export_glb.py","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/results.json","pack.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use game-engines-public/blender-glb-export","mcp":"get_pack game-engines-public/blender-glb-export","url":"https://logicpacks.io/packs/game-engines-public/blender-glb-export"},{"id":"geospatial-public/bounding-box-and-centroid","space":"geospatial-public","name":"bounding-box-and-centroid","version":"1.0.0","category":"geospatial","summary":"summarise a set of points: bounding box, centroid and a GeoJSON bbox ready for map fitBounds","level":"L2","env":[],"tools":["python3"],"checks":1,"routes":["python-stdlib"],"reliability":{"ok":10,"total":10},"repo":"https://github.com/Tech-Realm/space-geospatial-public","repoName":"Tech-Realm/space-geospatial-public","path":"bounding-box-and-centroid","spec":"# Summarise a set of points: bounding box, centroid and a GeoJSON bbox ready for map fitBounds\n\n## Goal\n\nSummarise a set of points: bounding box, centroid and a GeoJSON bbox ready for map fitBounds.\n\n## Steps\n\n1. Run extent.py on your points.\n2. Use bbox with map.fitBounds; centroid as the default map centre.\n\n## Edge cases\n\n- Points spanning the antimeridian give a misleading bbox.\n- Centroid of points is not the centre of the area they cover.\n\n## Don'ts\n\n- Don't average raw longitudes across +/-180.\n\n## Routes (free first)\n\n1. `python-stdlib`: `code/extent.py` (no install).\n","files":["CHANGELOG.md","code/extent.py","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/fixtures/pts.csv","outcome/results.json","pack.yaml","refs/refs.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use geospatial-public/bounding-box-and-centroid","mcp":"get_pack geospatial-public/bounding-box-and-centroid","url":"https://logicpacks.io/packs/geospatial-public/bounding-box-and-centroid"},{"id":"geospatial-public/csv-to-geojson","space":"geospatial-public","name":"csv-to-geojson","version":"1.0.0","category":"geospatial","summary":"convert a CSV of locations into a valid GeoJSON FeatureCollection ready for any web map","level":"L2","env":[],"tools":["python3"],"checks":1,"routes":["python-stdlib","gdal-ogr"],"reliability":{"ok":10,"total":10},"repo":"https://github.com/Tech-Realm/space-geospatial-public","repoName":"Tech-Realm/space-geospatial-public","path":"csv-to-geojson","spec":"# Convert a CSV of locations into a valid GeoJSON FeatureCollection ready for any web map\n\n## Goal\n\nConvert a CSV of locations into a valid GeoJSON FeatureCollection ready for any web map.\n\n## Steps\n\n1. Make sure lat/lon are decimal degrees WGS84.\n2. Run csv2geojson.py.\n3. Drop the file into geojson.io or a Leaflet/MapLibre map to eyeball it.\n\n## Edge cases\n\n- Addresses without coordinates need geocoding first (maps space).\n- Degrees-minutes-seconds strings must be converted first.\n\n## Don'ts\n\n- Don't publish customer home locations; aggregate or jitter first.\n\n## Routes (free first)\n\n1. `python-stdlib`: `code/csv2geojson.py` (no install).\n2. `gdal-ogr` (free): GDAL/OGR for format conversion and reprojection at scale (brew install gdal)\n","files":["CHANGELOG.md","code/csv2geojson.py","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/fixtures/shops.csv","outcome/results.json","pack.yaml","refs/refs.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use geospatial-public/csv-to-geojson","mcp":"get_pack geospatial-public/csv-to-geojson","url":"https://logicpacks.io/packs/geospatial-public/csv-to-geojson"},{"id":"geospatial-public/distance-matrix","space":"geospatial-public","name":"distance-matrix","version":"1.0.0","category":"geospatial","summary":"compute great-circle (haversine) distances between points and the nearest neighbour of each","level":"L2","env":[],"tools":["python3"],"checks":1,"routes":["python-stdlib"],"reliability":{"ok":10,"total":10},"repo":"https://github.com/Tech-Realm/space-geospatial-public","repoName":"Tech-Realm/space-geospatial-public","path":"distance-matrix","spec":"# Compute great-circle (haversine) distances between points and the nearest neighbour of each\n\n## Goal\n\nCompute great-circle (haversine) distances between points and the nearest neighbour of each.\n\n## Steps\n\n1. Put points in a CSV with WGS84 lat/lon (decimal degrees).\n2. Run distances.py.\n3. For road distance or travel time use a routing engine (maps space).\n\n## Edge cases\n\n- Lat/lon swapped is the most common bug; sanity-check one known pair.\n- Antimeridian crossings work with haversine; planar maths does not.\n\n## Don'ts\n\n- Don't use straight-line distance for delivery ETAs.\n\n## Routes (free first)\n\n1. `python-stdlib`: `code/distances.py` (no install).\n","files":["CHANGELOG.md","code/distances.py","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/fixtures/p.csv","outcome/results.json","pack.yaml","refs/refs.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use geospatial-public/distance-matrix","mcp":"get_pack geospatial-public/distance-matrix","url":"https://logicpacks.io/packs/geospatial-public/distance-matrix"},{"id":"geospatial-public/point-in-polygon","space":"geospatial-public","name":"point-in-polygon","version":"1.0.0","category":"geospatial","summary":"assign each point to the GeoJSON zone polygon that contains it (delivery zones, districts)","level":"L2","env":[],"tools":["python3"],"checks":1,"routes":["python-stdlib","gdal-ogr"],"reliability":{"ok":10,"total":10},"repo":"https://github.com/Tech-Realm/space-geospatial-public","repoName":"Tech-Realm/space-geospatial-public","path":"point-in-polygon","spec":"# Assign each point to the GeoJSON zone polygon that contains it (delivery zones, districts)\n\n## Goal\n\nAssign each point to the GeoJSON zone polygon that contains it (delivery zones, districts).\n\n## Steps\n\n1. Draw or export zones as GeoJSON (geojson.io, QGIS).\n2. Run pip.py with your points.\n3. Review OUTSIDE points: gaps between zones or bad coordinates.\n\n## Edge cases\n\n- Holes (inner rings) are excluded, as the fixture shows.\n- Points exactly on a shared edge may land in either zone.\n\n## Don'ts\n\n- Don't swap GeoJSON [lon, lat] order.\n\n## Routes (free first)\n\n1. `python-stdlib`: `code/pip.py` (no install).\n2. `gdal-ogr` (free): GDAL/OGR for format conversion and reprojection at scale (brew install gdal)\n","files":["CHANGELOG.md","code/pip.py","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/fixtures/pts.csv","outcome/fixtures/zones.geojson","outcome/results.json","pack.yaml","refs/refs.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use geospatial-public/point-in-polygon","mcp":"get_pack geospatial-public/point-in-polygon","url":"https://logicpacks.io/packs/geospatial-public/point-in-polygon"},{"id":"geospatial-public/polygon-area-perimeter","space":"geospatial-public","name":"polygon-area-perimeter","version":"1.0.0","category":"geospatial","summary":"measure the area and perimeter of GeoJSON polygons in square metres and metres","level":"L2","env":[],"tools":["python3"],"checks":1,"routes":["python-stdlib","gdal-ogr"],"reliability":{"ok":10,"total":10},"repo":"https://github.com/Tech-Realm/space-geospatial-public","repoName":"Tech-Realm/space-geospatial-public","path":"polygon-area-perimeter","spec":"# Measure the area and perimeter of GeoJSON polygons in square metres and metres\n\n## Goal\n\nMeasure the area and perimeter of GeoJSON polygons in square metres and metres.\n\n## Steps\n\n1. Export the plot/zone as GeoJSON (WGS84).\n2. Run area.py.\n3. For legal/survey areas use a projected CRS and surveyor data instead.\n\n## Edge cases\n\n- Self-intersecting polygons give wrong areas; fix geometry first.\n- Large polygons (country-size): use an ellipsoidal library (pyproj Geod).\n\n## Don'ts\n\n- Don't quote these numbers as cadastral survey figures.\n\n## Routes (free first)\n\n1. `python-stdlib`: `code/area.py` (no install).\n2. `gdal-ogr` (free): GDAL/OGR for format conversion and reprojection at scale (brew install gdal)\n","files":["CHANGELOG.md","code/area.py","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/fixtures/sq.geojson","outcome/results.json","pack.yaml","refs/refs.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use geospatial-public/polygon-area-perimeter","mcp":"get_pack geospatial-public/polygon-area-perimeter","url":"https://logicpacks.io/packs/geospatial-public/polygon-area-perimeter"},{"id":"geospatial-public/route-order-tsp","space":"geospatial-public","name":"route-order-tsp","version":"1.0.0","category":"geospatial","summary":"order delivery stops into a short round trip with nearest-neighbour plus 2-opt improvement","level":"L2","env":[],"tools":["python3"],"checks":1,"routes":["python-stdlib","ortools"],"reliability":{"ok":10,"total":10},"repo":"https://github.com/Tech-Realm/space-geospatial-public","repoName":"Tech-Realm/space-geospatial-public","path":"route-order-tsp","spec":"# Order delivery stops into a short round trip with nearest-neighbour plus 2-opt improvement\n\n## Goal\n\nOrder delivery stops into a short round trip with nearest-neighbour plus 2-opt improvement.\n\n## Steps\n\n1. List the depot first, then stops.\n2. Run route.py for a straight-line order.\n3. For real road order and ETAs use OSRM/Valhalla (maps space) with this order as a start.\n\n## Edge cases\n\n- Time windows and vehicle capacity need a real VRP solver (OR-Tools).\n- Over ~200 stops 2-opt gets slow in pure Python.\n\n## Don'ts\n\n- Don't promise ETAs from straight-line km.\n\n## Routes (free first)\n\n1. `python-stdlib`: `code/route.py` (no install).\n2. `ortools` (free): Google OR-Tools for VRP with capacity/time windows (pip install ortools)\n","files":["CHANGELOG.md","code/route.py","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/fixtures/stops.csv","outcome/results.json","pack.yaml","refs/refs.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use geospatial-public/route-order-tsp","mcp":"get_pack geospatial-public/route-order-tsp","url":"https://logicpacks.io/packs/geospatial-public/route-order-tsp"},{"id":"github-ops-public/accounts-and-token-switching","space":"github-ops-public","name":"accounts-and-token-switching","version":"1.0.0","category":"agents-ai","summary":"Use several GitHub accounts from one machine safely: per-command tokens via `gh auth token -u <user>` passed through env (GH_TOKEN or a git credential helper), never `gh auth switch`, never tokens in argv or remote URLs.","level":"L1","env":["GITHUB_TOKEN"],"tools":["gh","git","bash"],"checks":3,"routes":["gh-cli"],"reliability":{"ok":8,"total":10},"repo":"https://github.com/Tech-Realm/space-github-ops-public","repoName":"Tech-Realm/space-github-ops-public","path":"accounts-and-token-switching","spec":"# accounts-and-token-switching\n\nUse several GitHub accounts from one machine safely: per-command tokens via `gh auth token -u <user>` passed through env (GH_TOKEN or a git credential helper), never `gh auth switch`, never tokens in argv or remote URLs.\n\n## Goal\n\nAny agent can act as the right account for one command without changing global state other agents depend on.\n\n## Steps\n\n1. See who is logged in: `gh auth status` (several accounts can sit in the keyring).\n2. Run one gh command as a user: `bash code/gh_as.sh <user> gh repo list <owner> --limit 5` (sets GH_TOKEN in the child env only).\n3. Push as a user: `bash code/git_push_as.sh <user> origin main` (token reaches git through a credential helper reading an env var).\n4. Use the account that owns/has admin on the target org (check `gh api orgs/<org>/memberships/<user>`).\n5. For tokens stored in the LogicPacks vault: `lp run -- gh ...` with GITHUB_TOKEN as a sealed placeholder.\n\n## Edge cases\n\n- `gh auth switch` changes global state: parallel agents race and push as the wrong user.\n- A token in a remote URL (`https://x-access-token:TOKEN@github.com/...`) lands in shell history, process lists and .git/config.\n- Different accounts have different scopes (some lack delete_repo); check `gh auth status` scopes before destructive calls.\n- GraphQL as the owner shows private counts; use another account's token to see what the public sees.\n\n## Don'ts\n\n- Don't run `gh auth switch` in shared sessions.\n- Don't paste tokens into chat or files; if one leaks, Waleed decides rotation.\n- Don't write tokens into remote URLs or argv.\n","files":["CHANGELOG.md","code/gh_as.sh","code/git_push_as.sh","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/results.json","pack.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use github-ops-public/accounts-and-token-switching","mcp":"get_pack github-ops-public/accounts-and-token-switching","url":"https://logicpacks.io/packs/github-ops-public/accounts-and-token-switching"},{"id":"github-ops-public/branch-protection","space":"github-ops-public","name":"branch-protection","version":"1.0.0","category":"agents-ai","summary":"Protect main: require PRs + 1 review + status checks, block force-push and deletion via the REST API; what to do when the free plan returns 403 on private repos (CODEOWNERS, rulesets on paid plans).","level":"L1","env":["GITHUB_TOKEN"],"tools":["gh"],"checks":2,"routes":["gh-cli"],"reliability":{"ok":9,"total":9},"repo":"https://github.com/Tech-Realm/space-github-ops-public","repoName":"Tech-Realm/space-github-ops-public","path":"branch-protection","spec":"# branch-protection\n\nProtect main: require PRs + 1 review + status checks, block force-push and deletion via the REST API; what to do when the free plan returns 403 on private repos (CODEOWNERS, rulesets on paid plans).\n\n## Goal\n\nNobody (agents included) can push straight to main or force-push over history.\n\n## Steps\n\n1. Read current state (read-only): `gh api repos/<o>/<r>/branches/main/protection` (404 = unprotected, 403 = plan doesn't allow).\n2. Apply: `bash code/protect.sh <o> <r> main` (PR required, 1 approval, dismiss stale reviews, no force-push/deletion, linear history).\n3. Add `.github/CODEOWNERS` so the owner is requested on every PR.\n4. On 403 (free plan + private repo): decide upgrade vs trust + CODEOWNERS; record the decision.\n\n## Edge cases\n\n- Admins can bypass unless enforce_admins is true; agents often run as admin.\n- Required status checks must match job names exactly.\n\n## Don'ts\n\n","files":["CHANGELOG.md","code/protect.sh","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/results.json","pack.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use github-ops-public/branch-protection","mcp":"get_pack github-ops-public/branch-protection","url":"https://logicpacks.io/packs/github-ops-public/branch-protection"},{"id":"github-ops-public/clean-leaked-secrets-history","space":"github-ops-public","name":"clean-leaked-secrets-history","version":"1.0.0","category":"agents-ai","summary":"A secret got committed: stop pushing, remove it from the tree and from history (orphan commit for not-yet-shared repos, git filter-repo --replace-text otherwise), verify with gitleaks, force-push only with OK; rotation is Waleed's call.","level":"L1","env":[],"tools":["git","gitleaks","git-filter-repo (pip)"],"checks":2,"routes":["gh-cli"],"reliability":{"ok":9,"total":9},"repo":"https://github.com/Tech-Realm/space-github-ops-public","repoName":"Tech-Realm/space-github-ops-public","path":"clean-leaked-secrets-history","spec":"# clean-leaked-secrets-history\n\n\n## Goal\n\nThe secret value exists nowhere in the repo's reachable history, and the owner knows exactly what leaked and where.\n\n## Steps\n\n1. Stop: don't push; list findings masked (`gitleaks detect --source . --log-opts=--all --redact`).\n2. Tell Waleed which key (name + masked hint + where); he decides rotation. Never rotate or revoke keys yourself.\n3. Remove from the tree: replace the value with an env NAME / vault reference and commit.\n4. Repo never shared: replace history with one orphan commit of the clean tree: `bash code/orphan_reset.sh`.\n5. Repo already shared: `git filter-repo --replace-text replacements.txt` (lines `literal:VALUE==>[REDACTED]`, file kept outside the repo and deleted after), then gitleaks again.\n\n## Edge cases\n\n- Orphaned objects keep counting on GitHub (e.g. contribution graph) until server GC; there is no API to force GC.\n- Forks and clones keep the old history: rotation is the only real fix once shared.\n\n## Don'ts\n\n- Don't paste the secret into the replacements file inside the repo or into chat.\n- Don't rotate, revoke or change real keys yourself.\n","files":["CHANGELOG.md","code/orphan_reset.sh","code/selftest.sh","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/results.json","pack.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use github-ops-public/clean-leaked-secrets-history","mcp":"get_pack github-ops-public/clean-leaked-secrets-history","url":"https://logicpacks.io/packs/github-ops-public/clean-leaked-secrets-history"},{"id":"github-ops-public/commit-hygiene","space":"github-ops-public","name":"commit-hygiene","version":"1.0.0","category":"agents-ai","summary":"Commit rules for every repo: author and committer = Waleed only, no Co-Authored-By/AI attribution lines, plain messages, rebase onto origin before pushing; enforced by a commit-msg hook and a safe-push script.","level":"L1","env":[],"tools":["git","bash"],"checks":2,"routes":["gh-cli"],"reliability":{"ok":9,"total":9},"repo":"https://github.com/Tech-Realm/space-github-ops-public","repoName":"Tech-Realm/space-github-ops-public","path":"commit-hygiene","spec":"# commit-hygiene\n\nCommit rules for every repo: author and committer = Waleed only, no Co-Authored-By/AI attribution lines, plain messages, rebase onto origin before pushing; enforced by a commit-msg hook and a safe-push script.\n\n## Goal\n\n\n## Steps\n\n2. Install the hook: `cp code/commit-msg .git/hooks/commit-msg && chmod +x .git/hooks/commit-msg` (rejects Co-authored-by trailers, 'Generated with' lines and AI-vendor noreply addresses).\n3. Before every push: `bash code/safe_push.sh [branch]` = fetch, rebase onto origin/<branch>, push (stops on conflicts).\n4. PR/MR descriptions, tags, releases and changelogs follow the same rule.\n\n## Edge cases\n\n- Other sessions push to the same main: always rebase right before pushing.\n- GitHub may keep attribution in a merged PR's commits; prevent it, it can't always be removed later.\n\n## Don'ts\n\n- Don't add Co-Authored-By or 'Generated with' lines anywhere.\n","files":["CHANGELOG.md","code/commit-msg","code/safe_push.sh","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/results.json","pack.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use github-ops-public/commit-hygiene","mcp":"get_pack github-ops-public/commit-hygiene","url":"https://logicpacks.io/packs/github-ops-public/commit-hygiene"},{"id":"github-ops-public/fork-pr-flow","space":"github-ops-public","name":"fork-pr-flow","version":"1.0.0","category":"agents-ai","summary":"Outside developer flow: contributor gets READ on a private org repo, works in a fork, opens PRs; the owner reviews and merges; fork-PR CI and a staging deploy of the latest PR without exposing secrets.","level":"L1","env":["GITHUB_TOKEN"],"tools":["gh","git"],"checks":1,"routes":["gh-cli"],"reliability":{"ok":9,"total":9},"repo":"https://github.com/Tech-Realm/space-github-ops-public","repoName":"Tech-Realm/space-github-ops-public","path":"fork-pr-flow","spec":"# fork-pr-flow\n\nOutside developer flow: contributor gets READ on a private org repo, works in a fork, opens PRs; the owner reviews and merges; fork-PR CI and a staging deploy of the latest PR without exposing secrets.\n\n## Goal\n\nA teammate contributes code without write access to main and without any production secrets.\n\n## Steps\n\n1. Invite with READ: `gh api -X PUT repos/<org>/<repo>/collaborators/<user> -f permission=pull`.\n2. Contributor forks (`gh repo fork <org>/<repo> --clone`), branches, pushes to the fork and opens a PR to main.\n3. Allow CI on fork PRs in private repos (org admin, UI only): Org Settings > Actions > General > Fork pull request workflows in private repositories > run workflows from fork PRs, no secrets, no write tokens, require approval.\n4. Staging: a small picker deploys the most recently updated open PR from allowed authors (else main) to a staging host behind an access gate; prod untouched.\n5. Owner reviews and merges; contributor rebases their branch on main for the next PR.\n6. Give staging only low-risk keys (LLM keys); withhold payment, wallet, phone, tunnel, signing and production DB keys.\n\n## Edge cases\n\n- The API refuses the fork-PR workflow setting: it needs the org UI.\n- Branch protection on private repos needs a paid plan; use CODEOWNERS + trust or upgrade.\n- Clean secrets from history BEFORE inviting anyone (see clean-leaked-secrets-history).\n\n## Don'ts\n\n- Don't give an outside developer write/admin, shell on production hosts, or production keys.\n- Don't let staging message real customers (send allowlists).\n","files":["CHANGELOG.md","code/invite_read.sh","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/results.json","pack.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use github-ops-public/fork-pr-flow","mcp":"get_pack github-ops-public/fork-pr-flow","url":"https://logicpacks.io/packs/github-ops-public/fork-pr-flow"},{"id":"github-ops-public/github-pages","space":"github-ops-public","name":"github-pages","version":"1.0.0","category":"agents-ai","summary":"Publish a static site on GitHub Pages (branch or Actions build), check it, and know when to use Cloudflare Pages instead (git-connected previews, custom domains on our Cloudflare zones).","level":"L1","env":["GITHUB_TOKEN"],"tools":["gh","curl"],"checks":2,"routes":["gh-cli"],"reliability":{"ok":9,"total":9},"repo":"https://github.com/Tech-Realm/space-github-ops-public","repoName":"Tech-Realm/space-github-ops-public","path":"github-pages","spec":"# github-pages\n\nPublish a static site on GitHub Pages (branch or Actions build), check it, and know when to use Cloudflare Pages instead (git-connected previews, custom domains on our Cloudflare zones).\n\n## Goal\n\nA static demo or docs site live at <user>.github.io/<repo> (or a custom domain) with one command.\n\n## Steps\n\n1. Make sure the repo is public (Pages on private repos needs a paid plan) and Waleed approved making it public.\n2. Enable from a branch: `gh api -X POST repos/<o>/<r>/pages -f 'source[branch]=main' -f 'source[path]=/'` (or `build_type=workflow` with actions/deploy-pages).\n3. Wait for the build: `gh api repos/<o>/<r>/pages/builds/latest --jq .status` until `built`.\n4. Check: `curl -fsS -o /dev/null -w '%{http_code}' https://<user>.github.io/<repo>/` = 200, and open it at 390px.\n5. For sites on our domains with preview builds per branch, prefer Cloudflare Pages git-connected (see the cloudflare space).\n\n## Edge cases\n\n- Asset paths must be relative or include the /<repo>/ base path.\n- No server code: static files only.\n\n## Don'ts\n\n- Don't publish private client work on Pages.\n","files":["CHANGELOG.md","code/enable_pages.sh","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/results.json","pack.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use github-ops-public/github-pages","mcp":"get_pack github-ops-public/github-pages","url":"https://logicpacks.io/packs/github-ops-public/github-pages"},{"id":"github-ops-public/releases-signed-assets","space":"github-ops-public","name":"releases-signed-assets","version":"1.0.0","category":"agents-ai","summary":"Ship a versioned release: changelog, tag, build artifacts, SHA-256 sums (and optional GPG/cosign signatures or Apple notarization), `gh release create` with assets, and a verify step users can run.","level":"L1","env":["GITHUB_TOKEN"],"tools":["gh","git","shasum","gpg (optional)","cosign (optional)"],"checks":1,"routes":["gh-cli"],"reliability":{"ok":9,"total":9},"repo":"https://github.com/Tech-Realm/space-github-ops-public","repoName":"Tech-Realm/space-github-ops-public","path":"releases-signed-assets","spec":"# releases-signed-assets\n\nShip a versioned release: changelog, tag, build artifacts, SHA-256 sums (and optional GPG/cosign signatures or Apple notarization), `gh release create` with assets, and a verify step users can run.\n\n## Goal\n\nUsers (and installers) can verify that a downloaded asset is exactly what we built.\n\n## Steps\n\n1. Bump CHANGELOG + README, commit; build artifacts into dist/.\n2. Sign platform binaries where the OS expects it (macOS: Developer ID codesign + notarize + staple; keys stay outside the repo).\n3. Checksums: `bash code/make_sums.sh dist` writes `SHA256SUMS` (and `<file>.sha256` naming the file).\n4. Optional detached signature: `gpg --armor --detach-sign dist/SHA256SUMS` or `cosign sign-blob`.\n5. Tag and release: `git tag vX.Y.Z && git push origin vX.Y.Z && gh release create vX.Y.Z dist/* --notes-file CHANGELOG.md`.\n6. Verify like a user: download, `shasum -a 256 -c SHA256SUMS`; update any installer/Homebrew cask sha256.\n\n## Edge cases\n\n- An install script that checks `<asset>.sha256` needs the file name inside the sum file to match exactly.\n- Notarization keys and signing certs never go into the repo or the release.\n\n## Don'ts\n\n- Don't upload unsigned/unsummed installers.\n- Don't reuse a tag for different bits; bump the version.\n","files":["CHANGELOG.md","code/make_sums.sh","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/results.json","pack.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use github-ops-public/releases-signed-assets","mcp":"get_pack github-ops-public/releases-signed-assets","url":"https://logicpacks.io/packs/github-ops-public/releases-signed-assets"},{"id":"healthcare-admin-public/appointment-reminder-plan","space":"healthcare-admin-public","name":"appointment-reminder-plan","version":"1.0.0","category":"healthcare-admin","summary":"Plan appointment reminder send times (e.g. 72h and 24h before) that respect quiet hours and skip past times","level":"L2","env":[],"tools":["python3"],"checks":1,"routes":["local-python"],"reliability":{"ok":9,"total":10},"repo":"https://github.com/Tech-Realm/space-healthcare-admin-public","repoName":"Tech-Realm/space-healthcare-admin-public","path":"appointment-reminder-plan","spec":"# Plan appointment reminder send times (e.g. 72h and 24h before) that respect quiet hours and skip past times\n\n## Goal\n\nA send-plan CSV (appointment, channel, send_at) with reminders at chosen offsets, moved out of quiet hours, skipped if already past, ready for whatever sender the clinic uses.\n\nVerified by: Synthetic: reminders at 07:00 move to 08:00 (end of quiet hours, still before the visit); a reminder already in the past is skipped.\n\n## Steps\n\n1. Run `python3 code/reminders.py appts.csv --offsets 72,24 --quiet 21-08 --now 2026-12-04T10:00`.\n2. Feed the plan to the clinic's SMS/email tool.\n3. Message text: date, time, location, how to reschedule; no clinical details.\n\n## Edge cases\n\n- If moving out of quiet hours would pass the appointment start, the reminder is moved earlier (to the evening before quiet starts).\n- Patients without consent for a channel are excluded upstream.\n\n## Don'ts\n\n- Never put real patient data in fixtures, prompts, logs or git; fixtures are synthetic.\n- Don't include diagnosis, test or procedure details in reminder text.\n","files":["CHANGELOG.md","code/reminders.py","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/fixtures/appts.csv","outcome/results.json","pack.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use healthcare-admin-public/appointment-reminder-plan","mcp":"get_pack healthcare-admin-public/appointment-reminder-plan","url":"https://logicpacks.io/packs/healthcare-admin-public/appointment-reminder-plan"},{"id":"healthcare-admin-public/appointment-slot-scheduler","space":"healthcare-admin-public","name":"appointment-slot-scheduler","version":"1.0.0","category":"healthcare-admin","summary":"Book appointment requests into clinicians' free slots by priority and list what could not be booked","level":"L2","env":[],"tools":["python3"],"checks":1,"routes":["local-python"],"reliability":{"ok":9,"total":11},"repo":"https://github.com/Tech-Realm/space-healthcare-admin-public","repoName":"Tech-Realm/space-healthcare-admin-public","path":"appointment-slot-scheduler","spec":"# Book appointment requests into clinicians' free slots by priority and list what could not be booked\n\n## Goal\n\nA schedule CSV (request, clinician, start, end) that fits requests into availability windows (urgent first, then by request time), with buffer minutes, plus an unbooked list.\n\nVerified by: Synthetic fixture: urgent request lands first, a 60-min request that fits no window is reported unbooked.\n\n## Steps\n\n1. Export availability and the request queue (synthetic or from your PM system, kept local).\n2. Run `python3 code/schedule.py availability.csv requests.csv --buffer 5`.\n3. Confirm bookings in the practice-management system; contact unbooked patients.\n\n## Edge cases\n\n- Requests tied to a clinician are only placed with that clinician.\n- Windows shorter than the visit + buffer are skipped.\n\n## Don'ts\n\n- Never put real patient data in fixtures, prompts, logs or git; fixtures are synthetic.\n- Don't send confirmations automatically from this output; the PM system is the source of truth.\n","files":["CHANGELOG.md","code/schedule.py","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/fixtures/availability.csv","outcome/fixtures/requests.csv","outcome/results.json","pack.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use healthcare-admin-public/appointment-slot-scheduler","mcp":"get_pack healthcare-admin-public/appointment-slot-scheduler","url":"https://logicpacks.io/packs/healthcare-admin-public/appointment-slot-scheduler"},{"id":"healthcare-admin-public/claims-csv-validate","space":"healthcare-admin-public","name":"claims-csv-validate","version":"1.0.0","category":"healthcare-admin","summary":"Pre-check a batch of claim lines for format errors (ICD-10, CPT, NPI check digit, dates, charges) before submission","level":"L2","env":[],"tools":["python3"],"checks":1,"routes":["local-python"],"reliability":{"ok":10,"total":10},"repo":"https://github.com/Tech-Realm/space-healthcare-admin-public","repoName":"Tech-Realm/space-healthcare-admin-public","path":"claims-csv-validate","spec":"# Pre-check a batch of claim lines for format errors (ICD-10, CPT, NPI check digit, dates, charges) before submission\n\n## Goal\n\nA per-line error list for a claims CSV: invalid ICD-10-CM code shape, CPT/HCPCS shape, NPI Luhn check digit, service date in the future or after the claim date, non-positive charge, missing fields.\n\nVerified by: Synthetic batch: 1 clean line passes; each of 4 bad lines reports its specific error.\n\n## Steps\n\n1. Export the batch (synthetic for testing).\n2. Run `python3 code/claims_check.py batch.csv`.\n3. Fix the flagged lines in the billing system and re-export; this does not check payer-specific edits or code validity against the current code set.\n\n## Edge cases\n\n- Code shape is checked, not whether the code exists in this year's code set; use the CMS files for that.\n- Dates must be ISO YYYY-MM-DD.\n\n## Don'ts\n\n- Never put real patient data in fixtures, prompts, logs or git; fixtures are synthetic.\n- Don't change codes to pass the check; coding is a clinical/coder decision.\n","files":["CHANGELOG.md","code/claims_check.py","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/fixtures/batch.csv","outcome/results.json","pack.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use healthcare-admin-public/claims-csv-validate","mcp":"get_pack healthcare-admin-public/claims-csv-validate","url":"https://logicpacks.io/packs/healthcare-admin-public/claims-csv-validate"},{"id":"healthcare-admin-public/deidentify-clinical-text","space":"healthcare-admin-public","name":"deidentify-clinical-text","version":"1.0.0","category":"healthcare-admin","summary":"Redact identifiers (names, dates, phone, email, record numbers, addresses, ZIPs) from clinical free text before it is shared or analysed","level":"L2","env":[],"tools":["python3"],"checks":2,"routes":["local-python"],"reliability":{"ok":9,"total":10},"repo":"https://github.com/Tech-Realm/space-healthcare-admin-public","repoName":"Tech-Realm/space-healthcare-admin-public","path":"deidentify-clinical-text","spec":"# Redact identifiers (names, dates, phone, email, record numbers, addresses, ZIPs) from clinical free text before it is shared or analysed\n\n## Goal\n\nA redacted copy of free text with HIPAA Safe Harbor style identifiers replaced by tags ([NAME], [DATE], [PHONE], [EMAIL], [MRN], [ZIP3]) and a count per type; dates reduced to year.\n\nVerified by: Synthetic note: every planted identifier is replaced, clinical content (medications, vitals) is untouched.\n\n## Steps\n\n1. Run `python3 code/deid.py note.txt --names names.txt > note.redacted.txt`.\n2. Review the redacted text by eye; add missed names to names.txt and re-run.\n3. Only share data that passed human review, under the organisation's policy (BAA/DUA).\n\n## Edge cases\n\n- Names without a title or not in the names list can be missed; use the names list from the record's demographics.\n- Ages over 89 must be grouped as 90+ (done).\n- ZIP codes keep 3 digits; Safe Harbor requires 000 for sparsely populated ZIP3s, check the census list.\n\n## Don'ts\n\n- Never put real patient data in fixtures, prompts, logs or git; fixtures are synthetic.\n- Don't call rule-based output 'de-identified' for compliance without expert determination or full Safe Harbor review.\n- Don't send identifiable text to any cloud API to redact it.\n","files":["CHANGELOG.md","code/deid.py","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/fixtures/names.txt","outcome/fixtures/note.txt","outcome/results.json","pack.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use healthcare-admin-public/deidentify-clinical-text","mcp":"get_pack healthcare-admin-public/deidentify-clinical-text","url":"https://logicpacks.io/packs/healthcare-admin-public/deidentify-clinical-text"},{"id":"healthcare-admin-public/intake-form-normalize","space":"healthcare-admin-public","name":"intake-form-normalize","version":"1.0.0","category":"healthcare-admin","summary":"Turn a filled patient intake form (text export) into clean JSON with required fields checked and values normalised","level":"L2","env":[],"tools":["python3"],"checks":1,"routes":["local-python"],"reliability":{"ok":10,"total":10},"repo":"https://github.com/Tech-Realm/space-healthcare-admin-public","repoName":"Tech-Realm/space-healthcare-admin-public","path":"intake-form-normalize","spec":"# Turn a filled patient intake form (text export) into clean JSON with required fields checked and values normalised\n\n## Goal\n\nA JSON record from a key: value intake form export with normalised DOB (ISO), phone (E.164-ish digits), allergies/medications lists, and a list of missing required fields.\n\nVerified by: Synthetic form: DOB 03/04/1980 -> 1980-03-04, 'NKDA' -> [], missing insurance_id reported.\n\n## Steps\n\n1. Export the form to text (`pdftotext -layout form.pdf form.txt`).\n2. Run `python3 code/intake.py form.txt > record.json`.\n3. Fix missing fields with the patient; import the JSON into the PM/EHR by its own import route.\n\n## Edge cases\n\n- US date order (MM/DD/YYYY) is assumed; pass --dmy for DD/MM/YYYY forms.\n- Unknown keys are kept under 'other'.\n\n## Don'ts\n\n- Never put real patient data in fixtures, prompts, logs or git; fixtures are synthetic.\n- Don't guess missing values; report them.\n","files":["CHANGELOG.md","code/intake.py","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/fixtures/form.txt","outcome/results.json","pack.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use healthcare-admin-public/intake-form-normalize","mcp":"get_pack healthcare-admin-public/intake-form-normalize","url":"https://logicpacks.io/packs/healthcare-admin-public/intake-form-normalize"},{"id":"healthcare-admin-public/no-show-report","space":"healthcare-admin-public","name":"no-show-report","version":"1.0.0","category":"healthcare-admin","summary":"Measure appointment no-show rates by weekday, hour band and visit type and suggest where to overbook","level":"L2","env":[],"tools":["python3"],"checks":1,"routes":["local-python"],"reliability":{"ok":10,"total":10},"repo":"https://github.com/Tech-Realm/space-healthcare-admin-public","repoName":"Tech-Realm/space-healthcare-admin-public","path":"no-show-report","spec":"# Measure appointment no-show rates by weekday, hour band and visit type and suggest where to overbook\n\n## Goal\n\nA no-show rate table (overall, by weekday, by hour band, by visit type) from appointment history, with the slots whose rate is above a threshold flagged as overbooking candidates.\n\nVerified by: Synthetic history: overall 30.0%, Monday 50.0% flagged, Tuesday 0%.\n\n## Steps\n\n1. Export 3-6 months of appointment history without patient identifiers.\n2. Run `python3 code/noshow.py history.csv --flag 0.25`.\n3. Pilot overbooking or extra reminders only in flagged slots; re-measure after a month.\n\n## Edge cases\n\n- Small samples (< 20 visits in a cell) are marked low-n and never flagged.\n\n## Don'ts\n\n- Never put real patient data in fixtures, prompts, logs or git; fixtures are synthetic.\n- Don't include patient identifiers in the export; this needs only time, type and status.\n","files":["CHANGELOG.md","code/noshow.py","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/fixtures/history.csv","outcome/results.json","pack.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use healthcare-admin-public/no-show-report","mcp":"get_pack healthcare-admin-public/no-show-report","url":"https://logicpacks.io/packs/healthcare-admin-public/no-show-report"},{"id":"helpdesk-and-support-public/canned-replies-and-csat","space":"helpdesk-and-support-public","name":"canned-replies-and-csat","version":"1.0.0","category":"enterprise","summary":"Send consistent canned replies (no unfilled placeholders) and measure CSAT per agent","level":"L2","env":[],"tools":["python3","docker"],"checks":3,"routes":["stdlib-reference","chatwoot-canned"],"reliability":{"ok":8,"total":8},"repo":"https://github.com/Tech-Realm/space-helpdesk-and-support-public","repoName":"Tech-Realm/space-helpdesk-and-support-public","path":"canned-replies-and-csat","spec":"# canned-replies-and-csat\n\n## Goal\n\nSend consistent canned replies (no unfilled placeholders) and measure CSAT per agent. Our reference flow (`code/refflow.py`, stdlib sqlite) proves the records, allowed moves, numbers and export; the same rules carry over to the self-hosted app.\n\n## Steps\n\n1. Keep replies in `code/macros.json` with {{placeholders}}; render with `python3 code/macros.py render code/macros.json greeting name=Sam hours=4`.\n2. Rendering refuses to send if any placeholder is left unfilled.\n3. Ask CSAT (1-5) when a ticket is solved; store one response per ticket.\n4. Report average CSAT overall and per agent (refflow `average`).\n\n## Edge cases\n\n- Scores outside 1-5 or non-numbers are rejected.\n- Small samples: show n next to every average.\n\n## Don'ts\n\n- Don't promise refund dates the payment provider does not guarantee.\n- Don't rank agents on fewer than 20 responses.\n\n## Check\n\n`lp pack check helpdesk-and-support/canned-replies-and-csat` runs outcome/checks.yaml.\n","files":["CHANGELOG.md","code/macros.json","code/macros.py","code/refflow.py","code/schema.json","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/fixtures/scenario.json","outcome/results.json","pack.yaml","refs/refs.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use helpdesk-and-support-public/canned-replies-and-csat","mcp":"get_pack helpdesk-and-support-public/canned-replies-and-csat","url":"https://logicpacks.io/packs/helpdesk-and-support-public/canned-replies-and-csat"},{"id":"helpdesk-and-support-public/ticket-flow","space":"helpdesk-and-support-public","name":"ticket-flow","version":"1.0.0","category":"enterprise","summary":"Run a ticket from new to closed with allowed status changes, first-response SLAs and a CSV/JSON export","level":"L2","env":[],"tools":["python3","docker"],"checks":2,"routes":["stdlib-reference","zammad-or-chatwoot","saas"],"reliability":{"ok":8,"total":8},"repo":"https://github.com/Tech-Realm/space-helpdesk-and-support-public","repoName":"Tech-Realm/space-helpdesk-and-support-public","path":"ticket-flow","spec":"# ticket-flow\n\n## Goal\n\nRun a ticket from new to closed with allowed status changes, first-response SLAs and a CSV/JSON export. Our reference flow (`code/refflow.py`, stdlib sqlite) proves the records, allowed moves, numbers and export; the same rules carry over to the self-hosted app.\n\n## Steps\n\n1. Model the ticket in `code/schema.json`: channels, priorities, statuses and the allowed transitions.\n2. Run `python3 code/refflow.py scenario code/schema.json outcome/fixtures/scenario.json`: create, reject bad input, assign, solve, list, SLA, export.\n3. Mirror the same statuses and SLA targets (urgent 1 h, high 4 h, normal 8 h, low 24 h first response) in Zammad/Chatwoot.\n4. Export weekly: `refflow.py export ... csv` or the app's report export; check rows = tickets in the period.\n\n## Edge cases\n\n- A solved ticket can be reopened; a closed one cannot (create a follow-up).\n- SLA counts wall-clock hours; business-hours SLAs need a calendar.\n\n## Don'ts\n\n- Don't put customer phone numbers or emails in exports that leave the desk.\n- Don't skip states (open -> closed); the audit trail needs them.\n\n## Check\n\n`lp pack check helpdesk-and-support/ticket-flow` runs outcome/checks.yaml.\n","files":["CHANGELOG.md","code/refflow.py","code/schema.json","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/fixtures/scenario.json","outcome/results.json","pack.yaml","refs/refs.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use helpdesk-and-support-public/ticket-flow","mcp":"get_pack helpdesk-and-support-public/ticket-flow","url":"https://logicpacks.io/packs/helpdesk-and-support-public/ticket-flow"},{"id":"hr-and-people-public/employee-directory","space":"hr-and-people-public","name":"employee-directory","version":"1.0.0","category":"enterprise","summary":"Keep an employee directory: add people, block duplicate emails, mark leavers, count by department, export","level":"L2","env":[],"tools":["python3","docker"],"checks":2,"routes":["stdlib-reference","frappe-hr"],"reliability":{"ok":8,"total":8},"repo":"https://github.com/Tech-Realm/space-hr-and-people-public","repoName":"Tech-Realm/space-hr-and-people-public","path":"employee-directory","spec":"# employee-directory\n\n## Goal\n\nKeep an employee directory: add people, block duplicate emails, mark leavers, count by department, export. Our reference flow (`code/refflow.py`, stdlib sqlite) proves the records, allowed moves, numbers and export; the same rules carry over to the self-hosted app.\n\n## Steps\n\n1. Fields: name, work email (unique), department, role, manager, start date, status active/leaver.\n2. Run the scenario; then load the same CSV into Frappe HR (Data Import) or Horilla if the team needs the full app.\n\n## Edge cases\n\n- Rehires: move leaver -> active, keep the same record.\n- Departments are a fixed list; change the schema, not free text.\n\n## Don'ts\n\n- Don't store CNIC/passport numbers, salaries or home addresses in the directory.\n- Don't export the directory outside the company.\n\n## Check\n\n`lp pack check hr-and-people/employee-directory` runs outcome/checks.yaml.\n","files":["CHANGELOG.md","code/refflow.py","code/schema.json","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/fixtures/scenario.json","outcome/results.json","pack.yaml","refs/refs.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use hr-and-people-public/employee-directory","mcp":"get_pack hr-and-people-public/employee-directory","url":"https://logicpacks.io/packs/hr-and-people-public/employee-directory"},{"id":"hr-and-people-public/leave-requests","space":"hr-and-people-public","name":"leave-requests","version":"1.0.0","category":"enterprise","summary":"Handle leave requests without overlaps and keep each person's balance right","level":"L2","env":[],"tools":["python3","docker"],"checks":2,"routes":["stdlib-reference","frappe-hr"],"reliability":{"ok":8,"total":8},"repo":"https://github.com/Tech-Realm/space-hr-and-people-public","repoName":"Tech-Realm/space-hr-and-people-public","path":"leave-requests","spec":"# leave-requests\n\n## Goal\n\nHandle leave requests without overlaps and keep each person's balance right. Our reference flow (`code/refflow.py`, stdlib sqlite) proves the records, allowed moves, numbers and export; the same rules carry over to the self-hosted app.\n\n## Steps\n\n1. Request -> approved/rejected/cancelled; an approved leave can only be cancelled.\n2. Overlapping requests for the same person are rejected (rejected/cancelled ones don't count).\n3. Balance = yearly allowance - approved days (refflow `leave_balance`).\n4. Export the month for payroll.\n\n## Edge cases\n\n- Half days: days = 0.5.\n- Public holidays are not subtracted automatically; enter working days.\n\n## Don'ts\n\n- Don't put medical details in the request; 'sick' is enough.\n\n## Check\n\n`lp pack check hr-and-people/leave-requests` runs outcome/checks.yaml.\n","files":["CHANGELOG.md","code/refflow.py","code/schema.json","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/fixtures/scenario.json","outcome/results.json","pack.yaml","refs/refs.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use hr-and-people-public/leave-requests","mcp":"get_pack hr-and-people-public/leave-requests","url":"https://logicpacks.io/packs/hr-and-people-public/leave-requests"},{"id":"hr-and-people-public/onboarding-checklist","space":"hr-and-people-public","name":"onboarding-checklist","version":"1.0.0","category":"enterprise","summary":"Onboard a new hire with a checklist (HR, IT, manager, employee) and see progress","level":"L2","env":[],"tools":["python3","docker"],"checks":2,"routes":["stdlib-reference","frappe-hr"],"reliability":{"ok":8,"total":8},"repo":"https://github.com/Tech-Realm/space-hr-and-people-public","repoName":"Tech-Realm/space-hr-and-people-public","path":"onboarding-checklist","spec":"# onboarding-checklist\n\n## Goal\n\nOnboard a new hire with a checklist (HR, IT, manager, employee) and see progress. Our reference flow (`code/refflow.py`, stdlib sqlite) proves the records, allowed moves, numbers and export; the same rules carry over to the self-hosted app.\n\n## Steps\n\n1. Create the standard items for each hire: contract, laptop and accounts, first-week plan and buddy, handbook and security policy.\n2. Owners tick items done; progress = done/total per hire.\n3. Offboarding = the same flow in reverse (accounts off, hardware back).\n\n## Edge cases\n\n- Remote hires: laptop shipping can take a week; set the due date early.\n\n## Don'ts\n\n- Don't share passwords in the checklist; use the vault.\n\n## Check\n\n`lp pack check hr-and-people/onboarding-checklist` runs outcome/checks.yaml.\n","files":["CHANGELOG.md","code/refflow.py","code/schema.json","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/fixtures/scenario.json","outcome/results.json","pack.yaml","refs/refs.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use hr-and-people-public/onboarding-checklist","mcp":"get_pack hr-and-people-public/onboarding-checklist","url":"https://logicpacks.io/packs/hr-and-people-public/onboarding-checklist"},{"id":"hr-and-people-public/payroll-run-export","space":"hr-and-people-public","name":"payroll-run-export","version":"1.0.0","category":"enterprise","summary":"Run a monthly payroll sheet where every net pay adds up, approve it and export it","level":"L2","env":[],"tools":["python3","docker"],"checks":2,"routes":["stdlib-reference","frappe-hr"],"reliability":{"ok":8,"total":8},"repo":"https://github.com/Tech-Realm/space-hr-and-people-public","repoName":"Tech-Realm/space-hr-and-people-public","path":"payroll-run-export","spec":"# payroll-run-export\n\n## Goal\n\nRun a monthly payroll sheet where every net pay adds up, approve it and export it. Our reference flow (`code/refflow.py`, stdlib sqlite) proves the records, allowed moves, numbers and export; the same rules carry over to the self-hosted app.\n\n## Steps\n\n1. One payslip per employee per period: gross, tax, deductions, net.\n2. Every row must satisfy net = gross - tax - deductions (rejected otherwise).\n3. draft -> approved -> paid; a draft can't jump to paid.\n4. Export the period CSV for the bank upload.\n\n## Edge cases\n\n- Tax rules change each budget; tax is an input here, not computed.\n- Mid-month joiners: prorate gross before entering.\n\n## Don'ts\n\n- Don't email payroll exports; share them through the vault or drive with access control.\n- Fixtures use made-up people and amounts.\n\n## Check\n\n`lp pack check hr-and-people/payroll-run-export` runs outcome/checks.yaml.\n","files":["CHANGELOG.md","code/refflow.py","code/schema.json","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/fixtures/scenario.json","outcome/results.json","pack.yaml","refs/refs.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use hr-and-people-public/payroll-run-export","mcp":"get_pack hr-and-people-public/payroll-run-export","url":"https://logicpacks.io/packs/hr-and-people-public/payroll-run-export"},{"id":"hr-and-people-public/recruiting-pipeline","space":"hr-and-people-public","name":"recruiting-pipeline","version":"1.0.0","category":"enterprise","summary":"Move candidates through a hiring pipeline (applied to hired) and report per stage","level":"L2","env":[],"tools":["python3","docker"],"checks":2,"routes":["stdlib-reference","frappe-hr"],"reliability":{"ok":8,"total":8},"repo":"https://github.com/Tech-Realm/space-hr-and-people-public","repoName":"Tech-Realm/space-hr-and-people-public","path":"recruiting-pipeline","spec":"# recruiting-pipeline\n\n## Goal\n\nMove candidates through a hiring pipeline (applied to hired) and report per stage. Our reference flow (`code/refflow.py`, stdlib sqlite) proves the records, allowed moves, numbers and export; the same rules carry over to the self-hosted app.\n\n## Steps\n\n1. Stages: applied, screen, interview, offer, hired, rejected; no skipping.\n2. Score after the interview (0-10).\n3. Report counts per stage each week.\n\n## Edge cases\n\n- Same person applying for two roles = two records (unique on email + role).\n\n## Don'ts\n\n- Don't keep rejected candidates' CVs longer than needed.\n\n## Check\n\n`lp pack check hr-and-people/recruiting-pipeline` runs outcome/checks.yaml.\n","files":["CHANGELOG.md","code/refflow.py","code/schema.json","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/fixtures/scenario.json","outcome/results.json","pack.yaml","refs/refs.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use hr-and-people-public/recruiting-pipeline","mcp":"get_pack hr-and-people-public/recruiting-pipeline","url":"https://logicpacks.io/packs/hr-and-people-public/recruiting-pipeline"},{"id":"image-video-lora-public/prepare-lora-image-dataset","space":"image-video-lora-public","name":"prepare-lora-image-dataset","version":"0.1.0","category":"ai-training","summary":"Get an image LoRA dataset ready before paying for GPU time: every image captioned with the trigger word, minimum size met, duplicates removed. Stdlib checker reads PNG, JPEG and WebP.","level":"L2","env":[],"tools":["python3"],"checks":2,"routes":["python-stdlib"],"reliability":{"ok":8,"total":8},"repo":"https://github.com/Tech-Realm/space-image-video-lora-public","repoName":"Tech-Realm/space-image-video-lora-public","path":"prepare-lora-image-dataset","spec":"# prepare-lora-image-dataset\n\n## Goal\n\nA folder of 15-40 images with matching .txt captions that all contain a rare trigger word, ready for any LoRA trainer.\n\n## Steps\n\n1. Collect 15-40 varied images of the subject/style (angles, light, backgrounds) that we have rights to.\n2. Crop/resize so the short side is >= 512 (1024 for SDXL/FLUX quality).\n3. Pick a rare trigger token (e.g. zxq) and caption each image: trigger + what changes (pose, setting).\n4. `python3 code/check_dataset.py dataset --trigger zxq` until 0 problems.\n\n## Edge cases\n\n- Style LoRA: caption the content, not the style.\n- Near-duplicates (same shot, tiny crop) are not caught: remove by eye.\n\n## Don'ts\n\n- Don't use scraped photos of real people without consent.\n- Don't use a common word as the trigger.\n","files":["CHANGELOG.md","code/check_dataset.py","code/make_dataset.py","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/results.json","pack.yaml","refs/refs.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use image-video-lora-public/prepare-lora-image-dataset","mcp":"get_pack image-video-lora-public/prepare-lora-image-dataset","url":"https://logicpacks.io/packs/image-video-lora-public/prepare-lora-image-dataset"},{"id":"language-and-ocr-public/focus-reader","space":"language-and-ocr-public","name":"focus-reader","version":"1.0.0","category":"documents-research","summary":"ADHD-friendly local book reader: bionic bold, line focus, pace mode, highlights + notes, from a PDF or text file.","level":"L1","env":[],"tools":["python3","pdftotext"],"checks":2,"routes":["local"],"reliability":{"ok":7,"total":7},"repo":"https://github.com/Tech-Realm/space-language-and-ocr-public","repoName":"Tech-Realm/space-language-and-ocr-public","path":"focus-reader","spec":"# focus-reader\n\n## Goal\n\nTurn a book into one offline HTML page that keeps attention on one line at a time and saves highlights.\n\n## Steps\n\n1. `python3 code/build_reader.py book.pdf reader.html --title 'Book'` (PDF via pdftotext -layout).\n2. Check chapters were detected; else pass `--chapter-regex` for that book's heading style.\n4. Export highlights as markdown from the toolbar.\n\n## Edge cases\n\n- Two-column PDFs interleave lines with -layout; try without -layout.\n- Highlights live in the browser's localStorage for that file path.\n\n## Don'ts\n\n- Don't put copyrighted books into any shared repo; build readers locally.\n","files":["CHANGELOG.md","code/build_reader.py","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/fixtures/book.txt","outcome/results.json","pack.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use language-and-ocr-public/focus-reader","mcp":"get_pack language-and-ocr-public/focus-reader","url":"https://logicpacks.io/packs/language-and-ocr-public/focus-reader"},{"id":"language-and-ocr-public/translation","space":"language-and-ocr-public","name":"translation","version":"1.0.0","category":"documents-research","summary":"Translate UI strings, documents and forms: agent on our plan first, homelab endpoint next, then MT APIs; placeholder/glossary checker.","level":"L2","env":["HOMELAB_ML_URL"],"tools":["python3"],"checks":2,"routes":["homelab-translate","agent-plan","mt-api"],"reliability":{"ok":7,"total":7},"repo":"https://github.com/Tech-Realm/space-language-and-ocr-public","repoName":"Tech-Realm/space-language-and-ocr-public","path":"translation","spec":"# translation\n\n## Goal\n\nCorrect translations that keep placeholders, product terms and right-to-left layout intact, without paying per call when a plan or our hardware can do it.\n\n## Steps\n\n1. Extract strings into JSON/ARB (Flutter gen-l10n: one ARB per locale).\n2. Translate with the agent on our Claude/Codex plan in batches of ~100 keys, giving the glossary (product names stay as is).\n3. Or use the homelab `/translate` endpoint for bulk; MT APIs (Google/MyMemory) only as last fallback (slow 5-20 s, can fail on new strings).\n4. `python3 code/i18n_check.py en.json es.json --glossary glossary.json` must pass (keys, placeholders, untranslated, glossary).\n5. RTL locales (ar, ur): check layout in the app; mirror icons where needed.\n6. Have a native speaker skim legal/medical text; mark machine-translated content where required.\n\n## Edge cases\n\n- Plurals and gender: ICU messages need care; keep the {count, plural, ...} structure.\n- Merge conflicts in ARB files: resolve as an l10n key in all locales at once.\n- UI that shows translations live should show 'Translating...' while waiting on slow MT.\n\n## Don'ts\n\n- Don't send documents with personal data (IDs, bank slips) to cloud OCR/translation when a local route works.\n- Don't put keys in code; env NAMES only, values in the vault.\n- Don't translate brand/product names (glossary).\n- Don't ship a locale with failing i18n_check.\n","files":["CHANGELOG.md","code/i18n_check.py","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/fixtures/en.json","outcome/fixtures/es-bad.json","outcome/fixtures/es-good.json","outcome/fixtures/glossary.json","outcome/results.json","pack.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use language-and-ocr-public/translation","mcp":"get_pack language-and-ocr-public/translation","url":"https://logicpacks.io/packs/language-and-ocr-public/translation"},{"id":"latex-and-papers-public/arxiv-submission","space":"latex-and-papers-public","name":"arxiv-submission","version":"1.0.0","category":"documents-research","summary":"Package a paper for arXiv: flatten inputs, remove all comments, include the .bbl, only used figures, size checks, tar.gz.","level":"L1","env":[],"tools":["python3","tectonic","tar"],"checks":3,"routes":["local"],"reliability":{"ok":8,"total":8},"repo":"https://github.com/Tech-Realm/space-latex-and-papers-public","repoName":"Tech-Realm/space-latex-and-papers-public","path":"arxiv-submission","spec":"# arxiv-submission\n\n## Goal\n\nAn arXiv-ready source tarball that compiles on arXiv and exposes no comments.\n\n## Steps\n\n1. Compile locally first (compile-latex) with `--keep-intermediates` so the .bbl exists.\n2. `python3 code/arxiv_pack.py paper/ out/arxiv.tar.gz --main main.tex --bbl build/main.bbl`.\n3. Upload on arxiv.org/submit, pick the category, check the arXiv-generated PDF page by page.\n\n## Edge cases\n\n- arXiv shows the source: comments are public unless removed.\n- Use the same TeX Live year as arXiv if a package breaks.\n\n## Don'ts\n\n- Don't send anything to co-authors, editors or journals; Waleed sends. Prepare files and open them for him.\n- Don't change numbers in a paper without the script/run that produced them.\n- Don't leave internal comments, server paths or chat quotes in a copy that leaves us.\n","files":["CHANGELOG.md","code/arxiv_pack.py","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/fixtures/paper/main.tex","outcome/fixtures/paper/refs.bib","outcome/results.json","pack.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use latex-and-papers-public/arxiv-submission","mcp":"get_pack latex-and-papers-public/arxiv-submission","url":"https://logicpacks.io/packs/latex-and-papers-public/arxiv-submission"},{"id":"latex-and-papers-public/compile-latex","space":"latex-and-papers-public","name":"compile-latex","version":"1.0.0","category":"documents-research","summary":"Compile a LaTeX paper to PDF with tectonic (or latexmk/pdflatex) and check for unresolved references and citations.","level":"L1","env":[],"tools":["tectonic","pdfinfo","pdftotext"],"checks":2,"routes":["local"],"reliability":{"ok":7,"total":7},"repo":"https://github.com/Tech-Realm/space-latex-and-papers-public","repoName":"Tech-Realm/space-latex-and-papers-public","path":"compile-latex","spec":"# compile-latex\n\n## Goal\n\nA PDF build that is reproducible on any machine and fails loudly on ?? references or [?] citations.\n\n## Steps\n\n1. `sh code/compile.sh paper/main.tex build/` (tectonic downloads missing packages on first use; needs network once).\n2. `sh code/check_paper.sh build/main.pdf 'Expected title'`.\n3. Fix warnings: undefined references, overfull boxes in figures, missing fonts.\n4. Keep the exact engine/version in the README of the paper repo.\n\n## Edge cases\n\n- tectonic first run takes ~1 min (bundle download), later runs are fast.\n- biblatex+biber papers: use latexmk or `tectonic -X compile` with `--keep-intermediates` and run biber.\n\n## Don'ts\n\n- Don't send anything to co-authors, editors or journals; Waleed sends. Prepare files and open them for him.\n- Don't change numbers in a paper without the script/run that produced them.\n- Don't leave internal comments, server paths or chat quotes in a copy that leaves us.\n","files":["CHANGELOG.md","code/check_paper.sh","code/compile.sh","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/fixtures/paper/main-final.tex","outcome/fixtures/paper/refs.bib","outcome/results.json","pack.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use latex-and-papers-public/compile-latex","mcp":"get_pack latex-and-papers-public/compile-latex","url":"https://logicpacks.io/packs/latex-and-papers-public/compile-latex"},{"id":"latex-and-papers-public/journal-submission","space":"latex-and-papers-public","name":"journal-submission","version":"1.0.0","category":"documents-research","summary":"Prepare a journal or co-author copy: strip internal comments, detect leaked paths/emails, copy only used files, zip for Overleaf/journal.","level":"L2","env":[],"tools":["python3"],"checks":3,"routes":["local"],"reliability":{"ok":7,"total":7},"repo":"https://github.com/Tech-Realm/space-latex-and-papers-public","repoName":"Tech-Realm/space-latex-and-papers-public","path":"journal-submission","spec":"# journal-submission\n\n## Goal\n\nA submission package with nothing internal in it (no TODO/DRAFT/REF comments, server paths, emails, unused figures).\n\n## Steps\n\n1. `python3 code/strip_internal.py paper/ out/journal --main main.tex` (exit 1 lists leaks to fix in the source).\n2. Compile the stripped copy (compile-latex pack) and diff page count with the marked build.\n3. Check new references resolve (DOIs on Crossref, see research/cite-sources).\n4. Zip `out/journal` for Overleaf or the journal system; Waleed uploads/sends.\n\n## Edge cases\n\n- Comments with `\\%` (escaped percent) are content, not comments; the stripper keeps them.\n- Figures referenced without extension: the stripper finds .pdf/.png/.jpg/.eps.\n\n## Don'ts\n\n- Don't send anything to co-authors, editors or journals; Waleed sends. Prepare files and open them for him.\n- Don't change numbers in a paper without the script/run that produced them.\n- Don't leave internal comments, server paths or chat quotes in a copy that leaves us.\n","files":["CHANGELOG.md","code/strip_internal.py","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/fixtures/paper/main.tex","outcome/fixtures/paper/refs.bib","outcome/results.json","pack.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use latex-and-papers-public/journal-submission","mcp":"get_pack latex-and-papers-public/journal-submission","url":"https://logicpacks.io/packs/latex-and-papers-public/journal-submission"},{"id":"latex-and-papers-public/referee-revision","space":"latex-and-papers-public","name":"referee-revision","version":"1.0.0","category":"documents-research","summary":"Answer a referee report: changes-package markup, REF#n comments, marked + clean builds, response letter.","level":"L1","env":[],"tools":["tectonic","pdftotext"],"checks":4,"routes":["local"],"reliability":{"ok":7,"total":7},"repo":"https://github.com/Tech-Realm/space-latex-and-papers-public","repoName":"Tech-Realm/space-latex-and-papers-public","path":"referee-revision","spec":"# referee-revision\n\n## Goal\n\nA revision where every referee point maps to a marked change and a reply, with marked and clean PDFs from one source.\n\n## Steps\n\n1. Number the referee points (REF#1..n); list them in the response letter skeleton (`code/response_to_referee.tex`).\n2. Edit with `\\added[id=R1]{...}` / `\\deleted[id=R1]{...}`; put `% REF#n why` next to each edit.\n3. Markup style per Waleed: additions bold, black; deletions invisible; no colour, no margin notes (see the preamble in the fixture).\n4. Mark prose Waleed must rewrite with `% DRAFT - reword`; decisions for him with `% WALEED:`.\n5. `sh code/make_versions.sh paper/main.tex build/` -> main-marked.pdf and main-clean.pdf.\n6. Compile the response letter; check every REF#n has a reply.\n7. Before it leaves us: run the journal-submission pack's strip_internal.py.\n\n## Edge cases\n\n- When several agents revise in parallel, give each a branch and pick one; never overwrite main mid-way.\n- Co-authors may prefer minimal prose: put new content in figures/captions/one table and facts in `% TODO(text, Ref #n)` comments.\n\n## Don'ts\n\n- Don't send anything to co-authors, editors or journals; Waleed sends. Prepare files and open them for him.\n- Don't change numbers in a paper without the script/run that produced them.\n- Don't leave internal comments, server paths or chat quotes in a copy that leaves us.\n","files":["CHANGELOG.md","code/compile.sh","code/make_versions.sh","code/response_to_referee.tex","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/fixtures/paper/main.tex","outcome/fixtures/paper/refs.bib","outcome/results.json","pack.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use latex-and-papers-public/referee-revision","mcp":"get_pack latex-and-papers-public/referee-revision","url":"https://logicpacks.io/packs/latex-and-papers-public/referee-revision"},{"id":"launch-skills-public/launch-day-checklist","space":"launch-skills-public","name":"launch-day-checklist","version":"1.0.0","category":"build","summary":"Go-live runbook for a site or app launch: pre-flight, deploy with a recorded rollback commit, automated verification of every launch URL, content types, SEO/OG and agent-readable files, then announce. Includes a verifier script that runs against a local folder or production.","level":"L1","env":[],"tools":["python3","git","sh"],"checks":2,"routes":["manual"],"reliability":{"ok":6,"total":6},"repo":"https://github.com/Tech-Realm/space-launch-skills-public","repoName":"Tech-Realm/space-launch-skills-public","path":"launch-day-checklist","spec":"# Launch-day checklist\n\n## Goal\nLaunch without surprises: every link on the launch page works in production, the rollback is one command away, assistants and search engines read the right facts, and the announcement goes out only after the site is verified.\n\n## Steps\n1. Pre-flight (day before): copy is true of the shipped build (no unshipped features, no fake numbers); download/install artifacts uploaded with versioned names and checksums; preview deploy reviewed at 390 px and desktop; preview builds are noindex.\n2. Approval: launch, DNS changes on client domains, spending and messages to third parties need the owner's explicit OK (file the approval request; do not self-approve).\n3. Deploy: merge to the production branch (e.g. Cloudflare Pages git-connected deploy). Record deploy commit and rollback commit (`LAUNCH_REPO=. code/launch_day.sh ...` prints both).\n4. Verify production: `code/launch_day.sh https://<domain> /download /install.sh /launch.mp4` -> every path 200 with the right Content-Type, title/description/OG/canonical, llms.txt, index.md, robots, sitemap, markdown twin.\n5. Post-deploy: ping IndexNow (or Search Console) for changed URLs; run the agent-read check (ask an assistant the launch questions with fetch only and compare to the brief).\n6. Announce: only after step 4 is green. Post from the owner's accounts with their approval; link the page, not the raw media.\n7. Write the launch note: what shipped, URLs verified, deploy + rollback commits, known issues.\n\n## Edge cases\n- Rebase onto the latest production branch right before pushing; other sessions may have pushed.\n- SPA fallback returns 200 for missing files; the verifier checks Content-Type to catch it.\n- Media served from a home server or tunnel: verify from outside the LAN (mobile data) before announcing.\n- Search engines may need days to index; do not judge the launch by search results on day one.\n\n## Don'ts\n- Do not announce before verification is green.\n- Do not deploy without a recorded rollback commit.\n- Do not send messages or posts in someone's name without their OK.\n- Do not change DNS on client domains as part of a launch without explicit approval.\n","files":["CHANGELOG.md","code/launch_day.sh","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/results.json","pack.yaml","refs/refs.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use launch-skills-public/launch-day-checklist","mcp":"get_pack launch-skills-public/launch-day-checklist","url":"https://logicpacks.io/packs/launch-skills-public/launch-day-checklist"},{"id":"launch-skills-public/launch-film","space":"launch-skills-public","name":"launch-film","version":"1.0.0","category":"build","summary":"Plan and build a 45-75 s product launch film in HyperFrames (HTML to video) with the structure proven by Cursor/Raycast/Cowork launches: hook, thesis card, real-UI feature beats with slow push-ins, payoff card, mono end cards. Starter passes hyperframes check with zero findings.","level":"L1","env":[],"tools":["node>=22","ffmpeg","npx hyperframes@0.10.10","chromium (installed by hyperframes)"],"checks":2,"routes":["hyperframes-local","codex-stills"],"reliability":{"ok":6,"total":6},"repo":"https://github.com/Tech-Realm/space-launch-skills-public","repoName":"Tech-Realm/space-launch-skills-public","path":"launch-film","spec":"# Launch film (motion-graphics, HyperFrames)\n\n## Goal\nA 45-75 s launch film that shows the real product doing real work, in a calm monochrome look, built as editable HTML (HyperFrames) so it can be re-cut for 16:9 and 9:16 and re-rendered whenever the UI changes. Organic engagement comes from restraint and real footage, not ad spend (Raycast 3.8% likes/view with no ads vs ad-boosted films at 0.04%).\n\n## Steps\n1. Write the beat sheet first (copy the table in this pack's source.md): hook 0-3 s, thesis card, one beat per feature (text card -> real UI, 3-6 s each), payoff card, end cards. 16-23 shots per minute for motion-graphics style.\n2. Record real footage: scripted browser recordings at 2x DPI (Playwright/CDP screencast), one clip per beat, 4-8 s each, plus one \"busy\" wide shot. No recreated UI.\n3. Copy `code/film/` and keep one sub-composition per scene (`compositions/<scene>.html`, `<template>` wrapper, styles and script inside it, host id == template id == timeline key).\n4. Put each clip in its feature scene as `<video id=... src=\"assets/<clip>.mp4\" muted playsinline>` (never `crossorigin`), windowed on the black canvas with a soft shadow, slow 3-6% push-in (`scale` tween over the whole beat).\n5. Type: plain sans headline >= 64 px, mono small caps labels >= 28 px (phone-readable type floor), every line on screen >= 0.5 s + 0.3 s per word. Frame 0 must already show the product (it is the social thumbnail).\n6. Music: one licensed instrumental, 100-110 bpm; `npx hyperframes beats assets/music.mp3` and cut beats on downbeats. Replace `assets/pad.mp3` (placeholder). Real UI click sounds optional; no VO in this style.\n7. Run `npx hyperframes check --json` until `ok: true` with zero warnings, `npx hyperframes snapshot --at <midpoints>` and look at every frame, then `render --quality looks` and verify duration with ffprobe.\n8. 9:16 cut: duplicate the project, set 1080x1920, crop each UI clip to the active panel and stack the type above.\n\n## Edge cases\n- UI that changes before launch: keep footage recorder scripts in the product repo; re-record and re-render, the composition stays.\n- Split-screen beats become unreadable in 9:16: drop them from the vertical cut rather than shrink.\n- Captions burned into footage can collide with crops: crop windows so text never sits under a caption.\n- Long feature names: shorten to <= 6 words per card; the craft check flags lines held too briefly.\n\n## Don'ts\n- No AI-glow gradients, no recreated or mocked UI in the final film, no stock footage of people typing.\n- No benchmark charts unless the numbers are real and sourced.\n- No hype words (revolutionary, magic, game-changing) and no em-dashes in on-screen copy.\n- Never name the founder on screen or in captions unless they asked to be named.\n- Never cut footage from the reference launch films; they are for analysis only.\n","files":[".gitignore","CHANGELOG.md","code/check_wiring.py","code/film/assets/pad.mp3","code/film/compositions/endcard.html","code/film/compositions/features.html","code/film/compositions/hook.html","code/film/compositions/payoff.html","code/film/compositions/thesis.html","code/film/hyperframes.json","code/film/index.html","code/film/package.json","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/results.json","pack.yaml","refs/refs.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use launch-skills-public/launch-film","mcp":"get_pack launch-skills-public/launch-film","url":"https://logicpacks.io/packs/launch-skills-public/launch-film"},{"id":"launch-skills-public/startup-launch-page","space":"launch-skills-public","name":"startup-launch-page","version":"1.0.0","category":"build","summary":"Launch-day page - launch banner, outcome headline, muted autoplay launch film with Play with sound, one-line install with copy, What's new with New/Beta tags, agent-readable twins (index.md, llms.txt, Accept text/markdown middleware), SEO/OG and a verifier.","level":"L1","env":[],"tools":["python3","playwright-python","chromium","ffmpeg (optional)"],"checks":2,"routes":["static-local"],"reliability":{"ok":6,"total":6},"repo":"https://github.com/Tech-Realm/space-launch-skills-public","repoName":"Tech-Realm/space-launch-skills-public","path":"startup-launch-page","spec":"# Startup launch page\n\n## Goal\nOn launch day, one page that makes the launch obvious and the first action effortless: what shipped, a short real film, how to install or sign up in one step, what is new and what is still beta. It must also answer AI assistants correctly in one fetch (markdown twin + llms.txt), and every claim must be true of the shipped build.\n\n## Steps\n1. Copy `code/site/` and replace the demo product: headline (outcome, <= 8 words), sub line, status line (version, price or free tier), CTAs.\n2. Film: export the launch film (see the `launch-film` pack) to WebM + MP4 + poster; it autoplays muted and loops, with a Play with sound button that restarts it unmuted. Under reduced motion only the poster shows.\n3. Install/sign-up: one copyable line (or one button). For CLIs, the installer must verify a checksum; say so next to the command.\n4. What's new: 3-6 items, each tagged New or Beta. Beta = shipped but not finished; never list unshipped work.\n5. Agent-readable: keep `index.md` (\"in brief\" first: what, status, price, install, what does not work yet), `llms.txt`, `<link rel=\"alternate\" type=\"text/markdown\">`, and `functions/_middleware.js` (Cloudflare Pages) so `Accept: text/markdown` on / returns the twin. Use a neutral \"Detail pages\" list, not instructions to the assistant (assistants flag imperative lines as injection).\n6. SEO: title, description, canonical, og:title/description/image (1200x630), JSON-LD SoftwareApplication, sitemap.xml, robots.txt.\n7. Run the outcome checks locally, deploy (cloudflare space: Pages deploy), then run `../tools/verify_launch.py https://<domain> --markdown-twin` against production and note the rollback commit.\n\n## Edge cases\n- Download not ready at go-live: show \"on the way\" instead of a dead link; never a 404 on the main CTA.\n- Video autoplay blocked: the poster carries the frame; Play with sound still works on tap.\n- SPA fallbacks answer 200 for unknown paths: verify media by Content-Type, not just status.\n- Preview deployments must be noindex.\n\n## Don'ts\n- No fake numbers, waitlist counts, logos or testimonials.\n- No claims about features that are not in the shipped build (mark them Beta or leave them out).\n- Do not hide brand lists or claims in HTML or JSON-LD that are not visible on the page.\n- Do not hotlink the film from a home server; serve it from the site or a CDN.\n","files":["CHANGELOG.md","code/site/_headers","code/site/functions/_middleware.js","code/site/index.html","code/site/index.md","code/site/launch.js","code/site/llms.txt","code/site/media/launch-poster.jpg","code/site/media/launch.mp4","code/site/media/launch.webm","code/site/media/og.jpg","code/site/robots.txt","code/site/sitemap.xml","code/site/style.css","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/fixtures/steps.json","outcome/results.json","pack.yaml","refs/refs.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use launch-skills-public/startup-launch-page","mcp":"get_pack launch-skills-public/startup-launch-page","url":"https://logicpacks.io/packs/launch-skills-public/startup-launch-page"},{"id":"leaderboards-public/block-leaderboard-cheating","space":"leaderboards-public","name":"block-leaderboard-cheating","version":"1.0.0","category":"enterprise","summary":"Reject forged, replayed, out-of-range and burst score submissions and flag statistical outliers for review","level":"L2","env":["LB_HMAC_SECRET"],"tools":["python3"],"checks":1,"routes":["stdlib-sqlite"],"reliability":{"ok":7,"total":7},"repo":"https://github.com/Tech-Realm/space-leaderboards-public","repoName":"Tech-Realm/space-leaderboards-public","path":"block-leaderboard-cheating","spec":"# block-leaderboard-cheating\n\nReject forged, replayed, out-of-range and burst score submissions and flag statistical outliers for review\n\n## Goal\nCheated scores never reach the board; suspicious ones are flagged for a human, not silently banned.\n\n## Steps\n1. Server-side HMAC signature per submission (secret in LB_HMAC_SECRET).\n2. Unique nonce per submission (replay guard).\n3. Max plausible score per board.\n4. Per-player rate limit (default 10/min).\n5. z-score > 4 vs the player's own history -> flagged (hidden from board until reviewed).\n\n## Edge cases\n- New players have no history: outlier check starts after 5 scores.\n- Legit spikes (events, double-XP) -> raise max_score per season.\n\n## Don'ts\n- Don't auto-ban on statistics alone.\n- Don't expose rejection reasons to the client in detail (helps cheaters tune).\n","files":["CHANGELOG.md","code/leaderboard.py","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/results.json","pack.yaml","refs/refs.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use leaderboards-public/block-leaderboard-cheating","mcp":"get_pack leaderboards-public/block-leaderboard-cheating","url":"https://logicpacks.io/packs/leaderboards-public/block-leaderboard-cheating"},{"id":"leaderboards-public/rank-agents-by-verified-outcomes","space":"leaderboards-public","name":"rank-agents-by-verified-outcomes","version":"1.0.0","category":"enterprise","summary":"Rank agents/models/routes by verified outcome checks (Wilson lower bound), then by cost per run","level":"L2","env":[],"tools":["python3"],"checks":2,"routes":["jsonl"],"reliability":{"ok":7,"total":7},"repo":"https://github.com/Tech-Realm/space-leaderboards-public","repoName":"Tech-Realm/space-leaderboards-public","path":"rank-agents-by-verified-outcomes","spec":"# rank-agents-by-verified-outcomes\n\nRank agents/models/routes by verified outcome checks (Wilson lower bound), then by cost per run\n\n## Goal\nWe know which agent/model/route actually completes outcomes reliably and cheaply, without being fooled by tiny samples.\n\n## Steps\n1. Collect runs: one JSON line per `lp pack check` run {agent, pack, ok, usd}.\n2. `agent_board.py runs.jsonl --min-runs 5`.\n3. Use it to pick default routes per pack.\n\n## Edge cases\n- Different packs have different difficulty: compare agents on the same pack set.\n- Cost missing -> treated as 0; mark it.\n\n## Don'ts\n- Don't rank on raw pass rate with < 5 runs.\n","files":["CHANGELOG.md","code/agent_board.py","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/fixtures/runs.jsonl","outcome/results.json","pack.yaml","refs/refs.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use leaderboards-public/rank-agents-by-verified-outcomes","mcp":"get_pack leaderboards-public/rank-agents-by-verified-outcomes","url":"https://logicpacks.io/packs/leaderboards-public/rank-agents-by-verified-outcomes"},{"id":"leaderboards-public/rank-sales-reps-from-crm","space":"leaderboards-public","name":"rank-sales-reps-from-crm","version":"1.0.0","category":"enterprise","summary":"Rank sales reps by closed-won amount per month with win rate, straight from a CRM deals export","level":"L2","env":[],"tools":["python3"],"checks":1,"routes":["csv"],"reliability":{"ok":7,"total":7},"repo":"https://github.com/Tech-Realm/space-leaderboards-public","repoName":"Tech-Realm/space-leaderboards-public","path":"rank-sales-reps-from-crm","spec":"# rank-sales-reps-from-crm\n\nRank sales reps by closed-won amount per month with win rate, straight from a CRM deals export\n\n## Goal\nThe team sees who closed the most this month, with win rate, from the CRM's own data.\n\n## Steps\n1. Export deals with owner, amount, stage, closed date (crm/run-a-crm-pipeline export-csv deals, or Twenty/EspoCRM export).\n2. `sales_board.py deals.csv --month YYYY-MM` -> CSV ranking.\n3. Post the top 3 to the team channel (sharing-and-notifications) after review.\n\n## Edge cases\n- Deals without a close date are ignored.\n- Currency mix: convert before ranking.\n\n## Don'ts\n- Don't publish individual figures outside the team.\n","files":["CHANGELOG.md","code/sales_board.py","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/fixtures/deals.csv","outcome/results.json","pack.yaml","refs/refs.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use leaderboards-public/rank-sales-reps-from-crm","mcp":"get_pack leaderboards-public/rank-sales-reps-from-crm","url":"https://logicpacks.io/packs/leaderboards-public/rank-sales-reps-from-crm"},{"id":"leaderboards-public/run-a-score-leaderboard-with-seasons","space":"leaderboards-public","name":"run-a-score-leaderboard-with-seasons","version":"1.0.0","category":"enterprise","summary":"Run a leaderboard: ingest signed scores, rank them (competition or dense ranking), reset per season and export CSV","level":"L2","env":["LB_HMAC_SECRET"],"tools":["python3"],"checks":2,"routes":["stdlib-sqlite","valkey-sorted-sets"],"reliability":{"ok":7,"total":7},"repo":"https://github.com/Tech-Realm/space-leaderboards-public","repoName":"Tech-Realm/space-leaderboards-public","path":"run-a-score-leaderboard-with-seasons","spec":"# run-a-score-leaderboard-with-seasons\n\nRun a leaderboard: ingest signed scores, rank them (competition or dense ranking), reset per season and export CSV\n\n## Goal\nPlayers see a correct ranked board per season, ties handled (1,2,2,4), and the board exports to CSV.\n\n## Steps\n1. Pick the board and season keys (e.g. board=game, season=2026-12).\n2. Clients submit {board, season, player, score, ts, nonce, sig} with sig = HMAC(LB_HMAC_SECRET, fields) computed server-side by the game server.\n3. `leaderboard.py ingest scores.jsonl` then `top --board B --season S [--mode dense] --csv`.\n4. New season = new season key; old seasons stay queryable.\n\n## Edge cases\n- Equal scores: competition ranking (1,2,2,4) by default; dense (1,2,2,3) on request.\n- Best score per player counts (max); change to sum for cumulative boards.\n\n## Don'ts\n- Don't sign scores in the browser (the secret would leak).\n- Don't delete old seasons.\n","files":["CHANGELOG.md","code/leaderboard.py","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/results.json","pack.yaml","refs/refs.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use leaderboards-public/run-a-score-leaderboard-with-seasons","mcp":"get_pack leaderboards-public/run-a-score-leaderboard-with-seasons","url":"https://logicpacks.io/packs/leaderboards-public/run-a-score-leaderboard-with-seasons"},{"id":"legal-ops-public/clause-finder","space":"legal-ops-public","name":"clause-finder","version":"1.0.0","category":"legal-ops","summary":"Find which standard clauses a contract contains or is missing, with the clause text for each found one","level":"L2","env":[],"tools":["python3"],"checks":1,"routes":["local-python"],"reliability":{"ok":8,"total":8},"repo":"https://github.com/Tech-Realm/space-legal-ops-public","repoName":"Tech-Realm/space-legal-ops-public","path":"clause-finder","spec":"# Find which standard clauses a contract contains or is missing, with the clause text for each found one\n\n## Goal\n\nA present/missing table for standard commercial clauses (term, termination, renewal, payment, confidentiality, limitation of liability, indemnity, governing law, assignment, dispute resolution, force majeure, data protection) with the matching clause number and first line.\n\nVerified by: Fixture MSA: 9 clauses found, dispute resolution / force majeure / data protection reported missing.\n\n## Steps\n\n1. Convert the contract to text.\n2. Run `python3 code/clauses.py contract.txt`.\n3. For each MISSING clause decide if it matters for this deal; ask a lawyer if unsure.\n\n## Edge cases\n\n- Pattern search can miss unusual wording; a missing result means 'not found by keyword', so skim the document too.\n- Schedules and annexes are searched as well.\n\n## Don'ts\n\n- Don't present the output as legal advice; a qualified lawyer reviews anything that will be signed.\n","files":["CHANGELOG.md","code/clauses.py","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/fixtures/msa.txt","outcome/results.json","pack.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use legal-ops-public/clause-finder","mcp":"get_pack legal-ops-public/clause-finder","url":"https://logicpacks.io/packs/legal-ops-public/clause-finder"},{"id":"legal-ops-public/contract-deadlines","space":"legal-ops-public","name":"contract-deadlines","version":"1.0.0","category":"legal-ops","summary":"Turn a contract's term, renewal-notice and payment periods into a dated deadline list and a calendar file","level":"L2","env":[],"tools":["python3"],"checks":2,"routes":["local-python"],"reliability":{"ok":8,"total":8},"repo":"https://github.com/Tech-Realm/space-legal-ops-public","repoName":"Tech-Realm/space-legal-ops-public","path":"contract-deadlines","spec":"# Turn a contract's term, renewal-notice and payment periods into a dated deadline list and a calendar file\n\n## Goal\n\nA CSV and .ics of key dates from a contract: term end, last day to give non-renewal notice, payment due offset, confidentiality end, computed from the effective date.\n\nVerified by: Fixture MSA effective 2026-03-01: term ends 2027-03-01, non-renewal notice deadline 2026-12-31, payment net 45.\n\n## Steps\n\n1. Run `python3 code/deadlines.py contract.txt 2026-03-01 out/deadlines.ics`.\n2. Check each date against the clause text printed next to it.\n3. Import the .ics into the team calendar with a reminder 14 days before each notice deadline.\n\n## Edge cases\n\n- Business-day vs calendar-day notice periods: this computes calendar days; adjust if the contract says business days.\n- Month arithmetic clamps to the last day of shorter months.\n\n## Don'ts\n\n- Don't present the output as legal advice; a qualified lawyer reviews anything that will be signed.\n- Don't rely on the calendar alone for termination notices; diarise them with an owner.\n","files":["CHANGELOG.md","code/deadlines.py","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/fixtures/msa.txt","outcome/results.json","pack.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use legal-ops-public/contract-deadlines","mcp":"get_pack legal-ops-public/contract-deadlines","url":"https://logicpacks.io/packs/legal-ops-public/contract-deadlines"},{"id":"legal-ops-public/contract-redline-compare","space":"legal-ops-public","name":"contract-redline-compare","version":"1.0.0","category":"legal-ops","summary":"Produce a redline (HTML with insertions and deletions) and a change summary between two versions of a contract","level":"L2","env":[],"tools":["python3"],"checks":2,"routes":["local-python"],"reliability":{"ok":8,"total":8},"repo":"https://github.com/Tech-Realm/space-legal-ops-public","repoName":"Tech-Realm/space-legal-ops-public","path":"contract-redline-compare","spec":"# Produce a redline (HTML with insertions and deletions) and a change summary between two versions of a contract\n\n## Goal\n\nAn HTML redline (deleted text struck in red, inserted text underlined in green) plus a list of changed clauses, from two plain-text versions of a document.\n\nVerified by: Fixture versions differ in 3 clauses (3.1, 4.1, 7.x); the summary lists exactly those and the HTML contains <del>/<ins> marks.\n\n## Steps\n\n1. Convert both versions to text (`pdftotext -layout a.pdf a.txt`; for .docx use `textutil -convert txt` on macOS).\n2. Run `python3 code/redline.py old.txt new.txt out/redline.html`.\n3. Read the clause summary first, then open the HTML to review each change.\n\n## Edge cases\n\n- Re-numbered clauses show as changes in many places; compare by heading text if numbering moved.\n- Formatting-only changes (bold, fonts) are invisible in text diff.\n\n## Don'ts\n\n- Don't present the output as legal advice; a qualified lawyer reviews anything that will be signed.\n- Don't send the redline to the other side without a human review.\n","files":["CHANGELOG.md","code/redline.py","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/fixtures/v1.txt","outcome/fixtures/v2.txt","outcome/results.json","pack.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use legal-ops-public/contract-redline-compare","mcp":"get_pack legal-ops-public/contract-redline-compare","url":"https://logicpacks.io/packs/legal-ops-public/contract-redline-compare"},{"id":"legal-ops-public/cross-reference-check","space":"legal-ops-public","name":"cross-reference-check","version":"1.0.0","category":"legal-ops","summary":"Find broken internal cross-references (\"Section 9.1\", \"Schedule 3\") in a contract draft","level":"L2","env":[],"tools":["python3"],"checks":1,"routes":["local-python"],"reliability":{"ok":8,"total":8},"repo":"https://github.com/Tech-Realm/space-legal-ops-public","repoName":"Tech-Realm/space-legal-ops-public","path":"cross-reference-check","spec":"# Find broken internal cross-references (\"Section 9.1\", \"Schedule 3\") in a contract draft\n\n## Goal\n\nA list of Section/Clause/Schedule references that point to numbers that do not exist in the document.\n\nVerified by: Fixture MSA references Section 9.1 and Section 2.4 that do not exist; both are reported, valid refs are not.\n\n## Steps\n\n1. Run `python3 code/xref.py draft.txt`.\n2. Fix each broken reference in the source document.\n3. Re-run after any renumbering.\n\n## Edge cases\n\n- Schedules that are separate files are reported as missing unless their headings are in the text (use --schedules 1,2 to declare them).\n\n## Don'ts\n\n- Don't present the output as legal advice; a qualified lawyer reviews anything that will be signed.\n","files":["CHANGELOG.md","code/xref.py","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/fixtures/msa.txt","outcome/results.json","pack.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use legal-ops-public/cross-reference-check","mcp":"get_pack legal-ops-public/cross-reference-check","url":"https://logicpacks.io/packs/legal-ops-public/cross-reference-check"},{"id":"legal-ops-public/defined-terms-check","space":"legal-ops-public","name":"defined-terms-check","version":"1.0.0","category":"legal-ops","summary":"Check a contract's defined terms: list terms used but never defined and terms defined but never used","level":"L2","env":[],"tools":["python3"],"checks":1,"routes":["local-python"],"reliability":{"ok":8,"total":10},"repo":"https://github.com/Tech-Realm/space-legal-ops-public","repoName":"Tech-Realm/space-legal-ops-public","path":"defined-terms-check","spec":"# Check a contract's defined terms: list terms used but never defined and terms defined but never used\n\n## Goal\n\nTwo lists for a draft: capitalised terms used without a definition, and defined terms never used again, so drafting errors are fixed before review.\n\nVerified by: Fixture: \"Licensor\" and \"Confidential Information\" reported as undefined; \"Deliverables\" defined but used elsewhere; no false positives for sentence-start words.\n\n## Steps\n\n1. Run `python3 code/terms.py draft.txt`.\n2. Add missing definitions or fix the capitalisation; remove unused definitions.\n3. Re-run until both lists are empty or explained.\n\n## Edge cases\n\n- Party names and headings look like terms; party names are recognised from (the \"X\") definitions.\n- Common capitalised words (This, Each, Either, Section, Schedule) are ignored.\n\n## Don'ts\n\n- Don't present the output as legal advice; a qualified lawyer reviews anything that will be signed.\n- Don't auto-replace terms; each change is a drafting decision.\n","files":["CHANGELOG.md","code/terms.py","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/fixtures/msa.txt","outcome/results.json","pack.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use legal-ops-public/defined-terms-check","mcp":"get_pack legal-ops-public/defined-terms-check","url":"https://logicpacks.io/packs/legal-ops-public/defined-terms-check"},{"id":"legal-ops-public/nda-redflag-scan","space":"legal-ops-public","name":"nda-redflag-scan","version":"1.0.0","category":"legal-ops","summary":"Flag common NDA red flags (perpetual term, non-solicit, IP/feedback assignment, everything-is-confidential) before signing","level":"L2","env":[],"tools":["python3"],"checks":1,"routes":["local-python"],"reliability":{"ok":8,"total":8},"repo":"https://github.com/Tech-Realm/space-legal-ops-public","repoName":"Tech-Realm/space-legal-ops-public","path":"nda-redflag-scan","spec":"# Flag common NDA red flags (perpetual term, non-solicit, IP/feedback assignment, everything-is-confidential) before signing\n\n## Goal\n\nA list of flagged NDA clauses with why each matters and a typical counter-position, plus checks for missing standard carve-outs.\n\nVerified by: Fixture NDA raises the 4 expected flags and reports the missing standard exclusions.\n\n## Steps\n\n1. Run `python3 code/nda_scan.py nda.txt`.\n2. For each flag, decide accept / counter (suggested counter is printed).\n3. Send counter-points to the other side after human review.\n\n## Edge cases\n\n- A mutual NDA can still be one-sided in detail; read obligations for both parties.\n\n## Don'ts\n\n- Don't present the output as legal advice; a qualified lawyer reviews anything that will be signed.\n","files":["CHANGELOG.md","code/nda_scan.py","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/fixtures/nda.txt","outcome/results.json","pack.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use legal-ops-public/nda-redflag-scan","mcp":"get_pack legal-ops-public/nda-redflag-scan","url":"https://logicpacks.io/packs/legal-ops-public/nda-redflag-scan"},{"id":"llm-finetuning-public/prepare-chat-dataset","space":"llm-finetuning-public","name":"prepare-chat-dataset","version":"0.1.0","category":"ai-training","summary":"Turn raw chats into a clean fine-tune set: drop invalid rows, dedupe, strip PII (emails, phones, IDs, cards, IPs), render ChatML/Llama 3/Gemma templates and split train/valid JSONL.","level":"L2","env":[],"tools":["python3"],"checks":3,"routes":["python-stdlib"],"reliability":{"ok":7,"total":7},"repo":"https://github.com/Tech-Realm/space-llm-finetuning-public","repoName":"Tech-Realm/space-llm-finetuning-public","path":"prepare-chat-dataset","spec":"# prepare-chat-dataset\n\n## Goal\n\nA train.jsonl/valid.jsonl pair in messages format with no duplicates, no PII and only valid conversations, plus a rendered preview in the target model's chat template.\n\n## Steps\n\n1. Export the raw chats to JSONL: one {\"messages\": [...]} per conversation.\n2. Run `python3 code/prep.py --in raw.jsonl --out data --template <chatml|llama3|gemma>` (pick the template of the base model).\n3. Read the stats line: kept / dupes / invalid / pii. If invalid is high, fix the export, not the filter.\n4. Open data/rendered.txt and check one example by eye (roles, special tokens).\n5. Hand data/ to lora-finetune-mlx, qlora-finetune-4090 or hosted-finetune-apis.\n\n## Edge cases\n\n- Roman Urdu and Urdu script are kept as is; only PII patterns are replaced.\n- Card numbers are replaced only when the Luhn check passes, so order numbers survive.\n- Gemma has no system role: the system message is dropped in the Gemma preview only (the JSONL keeps it).\n\n## Don'ts\n\n- Don't train on WhatsApp/customer chats without running this first.\n- Don't commit the real raw.jsonl or data/ to any repo; fixtures are synthetic.\n- Don't trust the PII filter blindly for names and addresses: spot-check.\n","files":["CHANGELOG.md","code/make_fixture.py","code/prep.py","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/results.json","pack.yaml","refs/refs.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use llm-finetuning-public/prepare-chat-dataset","mcp":"get_pack llm-finetuning-public/prepare-chat-dataset","url":"https://logicpacks.io/packs/llm-finetuning-public/prepare-chat-dataset"},{"id":"manufacturing-public/bom-revision-diff","space":"manufacturing-public","name":"bom-revision-diff","version":"1.0.0","category":"manufacturing","summary":"Show what changed between two BOM revisions (added, removed, quantity changed)","level":"L2","env":[],"tools":["python3"],"checks":1,"routes":["local-python"],"reliability":{"ok":9,"total":9},"repo":"https://github.com/Tech-Realm/space-manufacturing-public","repoName":"Tech-Realm/space-manufacturing-public","path":"bom-revision-diff","spec":"# Show what changed between two BOM revisions (added, removed, quantity changed)\n\n## Goal\n\nA change list between BOM rev A and rev B: added parts, removed parts, quantity deltas, for an ECO/change note.\n\nVerified by: Fixture revisions produce the exact expected add/remove/change lines.\n\n## Steps\n\n1. Export both revisions as flat BOMs (see bom-rollup).\n2. Run `python3 code/bomdiff.py revA.csv revB.csv`.\n3. Paste the output into the ECO.\n\n## Edge cases\n\n- Same part listed twice in one revision: quantities are summed with a warning.\n\n## Don'ts\n\n- Don't compare a multi-level BOM with a flat one.\n","files":["CHANGELOG.md","code/bomdiff.py","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/fixtures/revA.csv","outcome/fixtures/revB.csv","outcome/results.json","pack.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use manufacturing-public/bom-revision-diff","mcp":"get_pack manufacturing-public/bom-revision-diff","url":"https://logicpacks.io/packs/manufacturing-public/bom-revision-diff"},{"id":"manufacturing-public/bom-rollup","space":"manufacturing-public","name":"bom-rollup","version":"1.0.0","category":"manufacturing","summary":"Generate a flattened bill of materials with total quantities and cost from an assembly tree","level":"L2","env":[],"tools":["python3"],"checks":3,"routes":["local-python"],"reliability":{"ok":8,"total":9},"repo":"https://github.com/Tech-Realm/space-manufacturing-public","repoName":"Tech-Realm/space-manufacturing-public","path":"bom-rollup","spec":"# Generate a flattened bill of materials with total quantities and cost from an assembly tree\n\n## Goal\n\nA flat BOM CSV (part, description, total qty, unit cost, extended cost) rolled up from a multi-level assembly CSV, plus a grand total.\n\nVerified by: Totals on a fixture tree match hand-computed values; cycles are rejected.\n\n## Steps\n\n1. Export the assembly structure as parent,child,qty and the parts master as part,description,unit_cost.\n2. Run `python3 code/bom.py assembly.csv parts.csv TOP-LEVEL-PART --units 10 > bom.csv`.\n3. Review parts with missing cost (flagged) and the grand total line.\n\n## Edge cases\n\n- Cycles in the tree (A contains B contains A) must stop with an error.\n- Phantom/sub-assemblies have no cost of their own: only leaves are costed.\n- Units of measure must match between assembly and parts master.\n\n## Don'ts\n\n- Don't hand-edit totals; fix the source CSVs and re-run.\n- Don't mix revisions of the assembly in one run.\n","files":["CHANGELOG.md","code/bom.py","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/fixtures/assembly.csv","outcome/fixtures/cycle.csv","outcome/fixtures/parts.csv","outcome/results.json","pack.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use manufacturing-public/bom-rollup","mcp":"get_pack manufacturing-public/bom-rollup","url":"https://logicpacks.io/packs/manufacturing-public/bom-rollup"},{"id":"manufacturing-public/cnc-feeds-speeds","space":"manufacturing-public","name":"cnc-feeds-speeds","version":"1.0.0","category":"manufacturing","summary":"Calculate spindle RPM and feed rate for a milling cut from cutting speed, tool diameter, flutes and chip load","level":"L2","env":[],"tools":["python3"],"checks":2,"routes":["local-python"],"reliability":{"ok":9,"total":9},"repo":"https://github.com/Tech-Realm/space-manufacturing-public","repoName":"Tech-Realm/space-manufacturing-public","path":"cnc-feeds-speeds","spec":"# Calculate spindle RPM and feed rate for a milling cut from cutting speed, tool diameter, flutes and chip load\n\n## Goal\n\nRPM and feed (mm/min) for a tool/material pair, capped by the machine's max RPM, with the formula shown.\n\nVerified by: Known textbook values: Vc 200 m/min, D 10 mm -> 6366 RPM; z 3, fz 0.05 -> 955 mm/min.\n\n## Steps\n\n1. Look up Vc and fz for the material in the tool maker's chart.\n2. Run `python3 code/feeds.py --vc 200 --d 10 --z 3 --fz 0.05 --max-rpm 24000`.\n3. Start at 80% feed on the first cut; listen and adjust.\n\n## Edge cases\n\n- If RPM is capped by the machine, feed is recomputed from the capped RPM.\n- Small tools: chip thinning on light radial engagement allows higher feed (not modelled here).\n\n## Don'ts\n\n- Don't exceed the tool maker's chip load.\n- Don't use wood values for aluminium.\n","files":["CHANGELOG.md","code/feeds.py","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/results.json","pack.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use manufacturing-public/cnc-feeds-speeds","mcp":"get_pack manufacturing-public/cnc-feeds-speeds","url":"https://logicpacks.io/packs/manufacturing-public/cnc-feeds-speeds"},{"id":"manufacturing-public/gcode-preflight","space":"manufacturing-public","name":"gcode-preflight","version":"1.0.0","category":"manufacturing","summary":"Preflight a CNC G-code file: units, bounds, feed rates and spindle state before it runs on the machine","level":"L2","env":[],"tools":["python3"],"checks":2,"routes":["local-python"],"reliability":{"ok":9,"total":9},"repo":"https://github.com/Tech-Realm/space-manufacturing-public","repoName":"Tech-Realm/space-manufacturing-public","path":"gcode-preflight","spec":"# Preflight a CNC G-code file: units, bounds, feed rates and spindle state before it runs on the machine\n\n## Goal\n\nA pass/fail report for a G-code file: units set (G20/G21), absolute mode, XYZ travel within the machine envelope, no cutting moves with spindle off, feed within limits.\n\nVerified by: A good fixture passes; a fixture that cuts with spindle off and exceeds Y travel fails with those reasons.\n\n## Steps\n\n1. Run `python3 code/gcode_check.py part.nc --x 300 --y 300 --z 80 --max-feed 3000`.\n2. Fix every FAIL line in CAM, re-export, re-check.\n3. Air-cut first on the machine anyway.\n\n## Edge cases\n\n- Incremental mode (G91) sections: positions are accumulated.\n- Arcs (G2/G3) are checked at endpoints only.\n\n## Don'ts\n\n- Don't treat a pass as permission to skip the air cut.\n- Don't edit G-code by hand to silence a failure.\n","files":["CHANGELOG.md","code/gcode_check.py","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/fixtures/bad.nc","outcome/fixtures/good.nc","outcome/results.json","pack.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use manufacturing-public/gcode-preflight","mcp":"get_pack manufacturing-public/gcode-preflight","url":"https://logicpacks.io/packs/manufacturing-public/gcode-preflight"},{"id":"manufacturing-public/sheet-cut-nesting","space":"manufacturing-public","name":"sheet-cut-nesting","version":"1.0.0","category":"manufacturing","summary":"Estimate how many stock sheets a cut list needs (shelf nesting) and the material yield","level":"L2","env":[],"tools":["python3"],"checks":1,"routes":["local-python"],"reliability":{"ok":8,"total":9},"repo":"https://github.com/Tech-Realm/space-manufacturing-public","repoName":"Tech-Realm/space-manufacturing-public","path":"sheet-cut-nesting","spec":"# Estimate how many stock sheets a cut list needs (shelf nesting) and the material yield\n\n## Goal\n\nA sheet count and per-sheet placement list for rectangular parts on stock sheets (with kerf), plus yield %.\n\nVerified by: Fixture cut list needs exactly 3 sheets (area alone needs 2.25) of 1220x2440 with 3 mm kerf.\n\n## Steps\n\n1. Write the cut list (mm).\n2. Run `python3 code/nest.py cutlist.csv --sheet 1220x2440 --kerf 3`.\n3. Use the count for quoting; use proper CAM nesting for the actual cut.\n\n## Edge cases\n\n- Parts larger than the sheet are reported and skipped.\n- Rotation is allowed unless --no-rotate (grain direction).\n\n## Don'ts\n\n- Don't quote material from this estimate without a 10% scrap allowance.\n","files":["CHANGELOG.md","code/nest.py","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/fixtures/cutlist.csv","outcome/results.json","pack.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use manufacturing-public/sheet-cut-nesting","mcp":"get_pack manufacturing-public/sheet-cut-nesting","url":"https://logicpacks.io/packs/manufacturing-public/sheet-cut-nesting"},{"id":"manufacturing-public/tolerance-stackup","space":"manufacturing-public","name":"tolerance-stackup","version":"1.0.0","category":"manufacturing","summary":"Compute a 1D tolerance stack-up (worst case and RSS) and say whether an assembly gap stays in spec","level":"L2","env":[],"tools":["python3"],"checks":1,"routes":["local-python"],"reliability":{"ok":9,"total":9},"repo":"https://github.com/Tech-Realm/space-manufacturing-public","repoName":"Tech-Realm/space-manufacturing-public","path":"tolerance-stackup","spec":"# Compute a 1D tolerance stack-up (worst case and RSS) and say whether an assembly gap stays in spec\n\n## Goal\n\nNominal gap, worst-case min/max and RSS (statistical) range for a chain of dimensions, with PASS/FAIL against the required gap.\n\nVerified by: Fixture chain gives the hand-computed nominal 0.5, WC +-0.35, RSS +-0.2062.\n\n## Steps\n\n1. List each dimension in the loop with its sign (+ adds to the gap, - subtracts).\n2. Run `python3 code/stack.py chain.csv --min 0.1 --max 1.0`.\n3. If worst case fails but RSS passes, decide with the process capability data.\n\n## Edge cases\n\n- Asymmetric tolerances: convert to mean-shifted nominal with symmetric tol first.\n\n## Don'ts\n\n- Don't use RSS for small lots or non-normal processes without justification.\n","files":["CHANGELOG.md","code/stack.py","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/fixtures/chain.csv","outcome/results.json","pack.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use manufacturing-public/tolerance-stackup","mcp":"get_pack manufacturing-public/tolerance-stackup","url":"https://logicpacks.io/packs/manufacturing-public/tolerance-stackup"},{"id":"oss-reuse-public/audit-upstream-licences","space":"oss-reuse-public","name":"audit-upstream-licences","version":"1.0.0","category":"enterprise","summary":"Audit the upstream licences recorded in pack.yaml files against GitHub's current values and report drift","level":"L1","env":[],"tools":["python3"],"checks":1,"routes":["gh-cli"],"reliability":{"ok":7,"total":7},"repo":"https://github.com/Tech-Realm/space-oss-reuse-public","repoName":"Tech-Realm/space-oss-reuse-public","path":"audit-upstream-licences","spec":"# audit-upstream-licences\n\nAudit the upstream licences recorded in pack.yaml files against GitHub's current values and report drift\n\n## Goal\nWe notice when an upstream we rely on changes licence (e.g. NocoDB 2026, Redis 8) before it bites a client project.\n\n## Steps\n1. `oss_index.py audit <space>/*/pack.yaml` (live, uses gh).\n2. For each drift: update pack.yaml `upstream`, re-check `license_flag`, tell Waleed if a client project is affected.\n3. Run monthly.\n\n## Edge cases\n- Open-core repos report NOASSERTION; a recorded license_flag counts as acknowledged.\n\n## Don'ts\n- Don't auto-change flags without reading the new LICENSE.\n","files":["CHANGELOG.md","code/oss_index.py","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/fixtures/live-licences.json","outcome/fixtures/pack-sample.yaml","outcome/results.json","pack.yaml","refs/refs.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use oss-reuse-public/audit-upstream-licences","mcp":"get_pack oss-reuse-public/audit-upstream-licences","url":"https://logicpacks.io/packs/oss-reuse-public/audit-upstream-licences"},{"id":"oss-reuse-public/oss-index","space":"oss-reuse-public","name":"oss-index","version":"1.0.0","category":"enterprise","summary":"Given a need (e.g. 'open-source CRM with WhatsApp'), find open-source candidates and rank them by licence, stars, activity, releases and self-host ease","level":"L2","env":[],"tools":["python3"],"checks":2,"routes":["gh-cli","public-api"],"reliability":{"ok":7,"total":7},"repo":"https://github.com/Tech-Realm/space-oss-reuse-public","repoName":"Tech-Realm/space-oss-reuse-public","path":"oss-index","spec":"# oss-index\n\nGiven a need (e.g. 'open-source CRM with WhatsApp'), find open-source candidates and rank them by licence, stars, activity, releases and self-host ease\n\n## Goal\nFor any need we get a short, ranked list of reusable open-source projects with licence risks flagged, in under a minute.\n\n## Steps\n1. `oss_index.py search \"<need>\" --n 10` (gh CLI if logged in, else public GitHub API; plus awesome-selfhosted).\n3. Shortlist 2-3; check docs/demo; record the pick as `upstream:` in the pack.\n4. Offline/CI: `oss_index.py score candidates.json`.\n\n## Edge cases\n- Unauthenticated GitHub API allows 10 search requests/min: use gh auth for bulk.\n- NOASSERTION licences: open the LICENSE file; many are open-core.\n\n## Don'ts\n- Don't treat stars as quality alone.\n- Don't vendor upstream code into packs.\n","files":["CHANGELOG.md","code/oss_index.py","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/fixtures/candidates.json","outcome/results.json","pack.yaml","refs/refs.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use oss-reuse-public/oss-index","mcp":"get_pack oss-reuse-public/oss-index","url":"https://logicpacks.io/packs/oss-reuse-public/oss-index"},{"id":"package-publishing-public/claim-or-update-a-pypi-name","space":"package-publishing-public","name":"claim-or-update-a-pypi-name","version":"1.0.0","category":"dev-tools","summary":"Before you upload: check a PyPI/TestPyPI name (PEP 503 normalization, PEP 508 syntax, taken or free) and plan the next version (refuses versions that exist, were deleted, or sort older than the latest).","level":"L2","env":["PYPI_TOKEN"],"tools":["python3"],"checks":5,"routes":["json-api","claim-by-upload"],"reliability":{"ok":9,"total":9},"repo":"https://github.com/Tech-Realm/space-package-publishing-public","repoName":"Tech-Realm/space-package-publishing-public","path":"claim-or-update-a-pypi-name","spec":"# claim-or-update-a-pypi-name\n\nDecide whether a package name can be claimed on PyPI (or TestPyPI), and whether a planned version can be uploaded,\nbefore running the publish pack.\n\n## Goal\n\n`pypi_name.py status NAME` says taken or available (normalized), and `pypi_name.py plan NAME VERSION` says ok, or\nrefuses with the reason and the next usable version.\n\n## Steps\n\n1. Syntax: `python3 code/pypi_name.py valid NAME` (letters, digits, `. _ -`, start and end alphanumeric).\n2. Normalize: `python3 code/pypi_name.py normalize NAME`. PyPI treats `Foo_Bar.baz` and `foo-bar-baz` as one name.\n3. Look up: `python3 code/pypi_name.py status NAME` (add `--test` for test.pypi.org; the two indexes are separate,\n   so claim the TestPyPI name too if you rehearse there).\n4. Claim a free name: the first successful upload claims it (publish-python-package-to-pypi), or create a pending\n   trusted publisher on pypi.org (GitHub Actions OIDC) to reserve it without a token.\n5. Update a name you own: `python3 code/pypi_name.py plan NAME VERSION`; if refused, `python3 code/pypi_name.py bump\n   <latest> patch` and bump pyproject + `__version__`.\n6. A taken but abandoned name: PEP 541 request on the pypi/support tracker; there is no other transfer path.\n\n## Edge cases\n\n- \"Available\" from the JSON API is not a guarantee: PyPI blocks names too similar to existing projects\n  (confusables) and prohibited names; only the upload proves the claim.\n- The `releases` map keeps versions whose files were deleted. Those versions can never be uploaded again.\n- An upload with a version lower than the latest is allowed, but installers keep resolving the latest, so the plan\n  refuses it unless you mean a backport.\n- The JSON API is CDN-cached: a version uploaded a minute ago may still look missing.\n\n## Don'ts\n\n- Don't register throwaway names to squat them (PyPI terms; PEP 541 removes them).\n- Don't delete a release to \"fix\" it: the version number is burned. Upload a .post or patch release.\n","files":["CHANGELOG.md","code/pypi_name.py","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/fixtures/cases.json","outcome/results.json","pack.yaml","refs/refs.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use package-publishing-public/claim-or-update-a-pypi-name","mcp":"get_pack package-publishing-public/claim-or-update-a-pypi-name","url":"https://logicpacks.io/packs/package-publishing-public/claim-or-update-a-pypi-name"},{"id":"personal-productivity-public/budget-monthly-summary","space":"personal-productivity-public","name":"budget-monthly-summary","version":"1.0.0","category":"personal-productivity","summary":"Turn a bank CSV export into a monthly budget summary by category with budget-vs-actual","level":"L2","env":[],"tools":["python3"],"checks":1,"routes":["local-python"],"reliability":{"ok":9,"total":9},"repo":"https://github.com/Tech-Realm/space-personal-productivity-public","repoName":"Tech-Realm/space-personal-productivity-public","path":"budget-monthly-summary","spec":"# Turn a bank CSV export into a monthly budget summary by category with budget-vs-actual\n\n## Goal\n\nA month-by-category table (income, spending per category, net) from a bank CSV, using simple keyword rules, with overspend against a budget file flagged.\n\nVerified by: Synthetic 3-month export: October groceries 95.40 vs budget 90 is flagged OVER; uncategorised spending is listed.\n\n## Steps\n\n1. Export transactions as CSV from the bank (most banks offer CSV).\n2. Edit rules.csv once (keyword -> category).\n3. Run `python3 code/budget.py tx.csv rules.csv --budget budget.csv`.\n4. Add rules for anything under 'uncategorised'.\n\n## Edge cases\n\n- Different banks use different column names; map them with --cols date,description,amount.\n- Transfers between own accounts should get a 'transfer' rule so they are not counted as spending.\n\n## Don'ts\n\n- Don't upload bank exports to online tools; this runs locally.\n- Don't commit real bank exports to git.\n","files":["CHANGELOG.md","code/budget.py","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/fixtures/budget.csv","outcome/fixtures/rules.csv","outcome/fixtures/tx.csv","outcome/results.json","pack.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use personal-productivity-public/budget-monthly-summary","mcp":"get_pack personal-productivity-public/budget-monthly-summary","url":"https://logicpacks.io/packs/personal-productivity-public/budget-monthly-summary"},{"id":"personal-productivity-public/downloads-organizer","space":"personal-productivity-public","name":"downloads-organizer","version":"1.0.0","category":"personal-productivity","summary":"Sort a messy folder (like Downloads) into type and year folders with a dry-run plan first and an undo log","level":"L2","env":[],"tools":["python3"],"checks":1,"routes":["local-python"],"reliability":{"ok":9,"total":9},"repo":"https://github.com/Tech-Realm/space-personal-productivity-public","repoName":"Tech-Realm/space-personal-productivity-public","path":"downloads-organizer","spec":"# Sort a messy folder (like Downloads) into type and year folders with a dry-run plan first and an undo log\n\n## Goal\n\nA move plan (dry run by default) that files documents, images, audio, video, archives, installers and code into <type>/<year>/ folders, then applies it on --apply and writes an undo script.\n\nVerified by: Self-test in a temp folder: dry run moves nothing; --apply files 4 files into the right folders; undo restores them.\n\n## Steps\n\n1. Run `python3 code/organize.py ~/Downloads` and read the plan.\n2. Run again with `--apply`; an undo script is written to the folder as .organize-undo.sh.\n3. If anything looks wrong, run `sh ~/Downloads/.organize-undo.sh`.\n\n## Edge cases\n\n- Hidden files and folders are left alone.\n- Name clashes get ' (1)' style suffixes; nothing is overwritten.\n- Partial downloads (.crdownload, .part) are skipped.\n\n## Don'ts\n\n- Don't run --apply on system or app folders.\n- Never delete files in this pack; it only moves.\n","files":["CHANGELOG.md","code/organize.py","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/results.json","pack.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use personal-productivity-public/downloads-organizer","mcp":"get_pack personal-productivity-public/downloads-organizer","url":"https://logicpacks.io/packs/personal-productivity-public/downloads-organizer"},{"id":"personal-productivity-public/duplicate-file-finder","space":"personal-productivity-public","name":"duplicate-file-finder","version":"1.0.0","category":"personal-productivity","summary":"Find duplicate files (same content) across folders and see how much space removing them would free","level":"L2","env":[],"tools":["python3"],"checks":1,"routes":["local-python"],"reliability":{"ok":9,"total":9},"repo":"https://github.com/Tech-Realm/space-personal-productivity-public","repoName":"Tech-Realm/space-personal-productivity-public","path":"duplicate-file-finder","spec":"# Find duplicate files (same content) across folders and see how much space removing them would free\n\n## Goal\n\nGroups of identical files (size then SHA-256), with the wasted bytes per group and in total; a keep-first suggestion, no deletion.\n\nVerified by: Self-test: 3 copies of one file and 2 of another in a temp tree give 2 groups and the exact wasted bytes.\n\n## Steps\n\n1. Run `python3 code/dupes.py ~/Pictures ~/Downloads --min-size 1024`.\n2. Review groups; delete or move extras yourself (Finder/trash) so it is recoverable.\n\n## Edge cases\n\n- Hard links show as duplicates but use no extra space (same inode is skipped).\n- Cloud placeholder files (iCloud/Dropbox not downloaded) are skipped by size 0.\n\n## Don'ts\n\n- The tool never deletes; don't add auto-delete.\n- Don't run on system folders or app bundles.\n","files":["CHANGELOG.md","code/dupes.py","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/results.json","pack.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use personal-productivity-public/duplicate-file-finder","mcp":"get_pack personal-productivity-public/duplicate-file-finder","url":"https://logicpacks.io/packs/personal-productivity-public/duplicate-file-finder"},{"id":"personal-productivity-public/habit-streaks","space":"personal-productivity-public","name":"habit-streaks","version":"1.0.0","category":"personal-productivity","summary":"Summarise a habit log into current and longest streaks and a 4-week completion rate per habit","level":"L2","env":[],"tools":["python3"],"checks":1,"routes":["local-python"],"reliability":{"ok":8,"total":9},"repo":"https://github.com/Tech-Realm/space-personal-productivity-public","repoName":"Tech-Realm/space-personal-productivity-public","path":"habit-streaks","spec":"# Summarise a habit log into current and longest streaks and a 4-week completion rate per habit\n\n## Goal\n\nPer habit: current streak, longest streak, completion % over the last 28 days (respecting each habit's target days), from a simple date,habit log.\n\nVerified by: Synthetic log: daily 'read' current 3 / longest 5; Mon-Wed-Fri 'gym' current 5 (off days and not-yet-logged today don't break it).\n\n## Steps\n\n1. Keep a plain log (one line per done habit per day; a Shortcut or note works).\n2. Run `python3 code/habits.py log.csv habits.csv --today 2026-12-04`.\n3. Look at the 28-day rate, not just the streak.\n\n## Edge cases\n\n- Today counts only if already logged (otherwise the streak is counted up to yesterday).\n\n## Don'ts\n\n- Don't track more than 3-5 habits at once (practice advice, not a tool limit).\n","files":["CHANGELOG.md","code/habits.py","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/fixtures/habits.csv","outcome/fixtures/log.csv","outcome/results.json","pack.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use personal-productivity-public/habit-streaks","mcp":"get_pack personal-productivity-public/habit-streaks","url":"https://logicpacks.io/packs/personal-productivity-public/habit-streaks"},{"id":"personal-productivity-public/recurring-charges-finder","space":"personal-productivity-public","name":"recurring-charges-finder","version":"1.0.0","category":"personal-productivity","summary":"Find subscriptions and other recurring charges in a bank CSV, with price changes and yearly cost","level":"L2","env":[],"tools":["python3"],"checks":1,"routes":["local-python"],"reliability":{"ok":8,"total":9},"repo":"https://github.com/Tech-Realm/space-personal-productivity-public","repoName":"Tech-Realm/space-personal-productivity-public","path":"recurring-charges-finder","spec":"# Find subscriptions and other recurring charges in a bank CSV, with price changes and yearly cost\n\n## Goal\n\nA list of merchants charged on a regular cadence (monthly/weekly/yearly), their usual amount, yearly cost, and any price increase, so unused subscriptions can be cancelled.\n\nVerified by: Synthetic export: NETFLIX (price rise 15.49 -> 17.99), GYM CLUB and GROCER MART detected as monthly; CITY POWER (only 2 charges) and cafe charges are not.\n\n## Steps\n\n1. Export 3-12 months of transactions.\n2. Run `python3 code/recurring.py tx.csv`.\n3. Cancel or downgrade what you do not use; note price rises.\n\n## Edge cases\n\n- Merchant names with changing reference numbers are normalised by dropping digits.\n- Variable bills (power) show min-max range.\n\n## Don'ts\n\n- Don't share bank exports; this runs locally.\n","files":["CHANGELOG.md","code/recurring.py","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/fixtures/tx.csv","outcome/results.json","pack.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use personal-productivity-public/recurring-charges-finder","mcp":"get_pack personal-productivity-public/recurring-charges-finder","url":"https://logicpacks.io/packs/personal-productivity-public/recurring-charges-finder"},{"id":"personal-productivity-public/weekly-time-blocks","space":"personal-productivity-public","name":"weekly-time-blocks","version":"1.0.0","category":"personal-productivity","summary":"Turn a task list with estimates and deadlines into a week of calendar time blocks around existing meetings","level":"L2","env":[],"tools":["python3"],"checks":2,"routes":["local-python"],"reliability":{"ok":9,"total":9},"repo":"https://github.com/Tech-Realm/space-personal-productivity-public","repoName":"Tech-Realm/space-personal-productivity-public","path":"weekly-time-blocks","spec":"# Turn a task list with estimates and deadlines into a week of calendar time blocks around existing meetings\n\n## Goal\n\nA week plan (.ics + text) that places tasks into free working hours by deadline then priority, splits long tasks into blocks, keeps a daily buffer, and lists what does not fit.\n\nVerified by: Synthetic week: the deadline-Tuesday task is fully placed by Tuesday, blocks avoid the busy meeting, an oversized task reports leftover hours.\n\n## Steps\n\n1. List tasks with honest hour estimates.\n2. Export busy times (or type meetings into busy.csv).\n3. Run `python3 code/plan.py tasks.csv busy.csv 2026-12-07 --hours 9-17 --buffer 1 --ics out/week.ics`.\n4. Import the .ics; re-plan mid-week if things slip.\n\n## Edge cases\n\n- Blocks are at least 30 minutes; tiny leftovers merge into the previous block.\n- Weekends are skipped unless --days 7.\n\n## Don'ts\n\n- Don't fill 100% of the day; keep the buffer.\n- Don't push the .ics into a shared calendar without checking.\n","files":["CHANGELOG.md","code/plan.py","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/fixtures/busy.csv","outcome/fixtures/tasks.csv","outcome/results.json","pack.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use personal-productivity-public/weekly-time-blocks","mcp":"get_pack personal-productivity-public/weekly-time-blocks","url":"https://logicpacks.io/packs/personal-productivity-public/weekly-time-blocks"},{"id":"product-analytics-public/funnel-and-retention","space":"product-analytics-public","name":"funnel-and-retention","version":"1.0.0","category":"enterprise","summary":"Compute a signup-to-pay funnel and day-N retention from raw events","level":"L2","env":[],"tools":["python3","docker"],"checks":2,"routes":["stdlib-reference","posthog"],"reliability":{"ok":7,"total":7},"repo":"https://github.com/Tech-Realm/space-product-analytics-public","repoName":"Tech-Realm/space-product-analytics-public","path":"funnel-and-retention","spec":"# funnel-and-retention\n\n## Goal\n\nCompute a signup-to-pay funnel and day-N retention from raw events. Our reference flow (`code/refflow.py`, stdlib sqlite) proves the records, allowed moves, numbers and export; the same rules carry over to the self-hosted app.\n\n## Steps\n\n1. Events: user_id, event, time (export from PostHog/Umami).\n2. Funnel counts users who did each step in order (visit -> signup -> activate -> pay).\n3. Day-N retention = users active N days after their first day / all users.\n4. Cross-check with the analytics space (GA4) numbers for the same days.\n\n## Edge cases\n\n- Users who skip a step don't count for later steps.\n- Time zones change day boundaries; use the business zone consistently.\n\n## Don'ts\n\n- Don't mix test accounts into the numbers.\n\n## Check\n\n`lp pack check product-analytics/funnel-and-retention` runs outcome/checks.yaml.\n","files":["CHANGELOG.md","code/refflow.py","code/schema.json","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/fixtures/scenario.json","outcome/results.json","pack.yaml","refs/refs.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use product-analytics-public/funnel-and-retention","mcp":"get_pack product-analytics-public/funnel-and-retention","url":"https://logicpacks.io/packs/product-analytics-public/funnel-and-retention"},{"id":"product-analytics-public/tracking-plan","space":"product-analytics-public","name":"tracking-plan","version":"1.0.0","category":"enterprise","summary":"Check that tracked events match the tracking plan (names, required props, types) and carry no personal data","level":"L2","env":[],"tools":["python3"],"checks":2,"routes":["stdlib"],"reliability":{"ok":7,"total":7},"repo":"https://github.com/Tech-Realm/space-product-analytics-public","repoName":"Tech-Realm/space-product-analytics-public","path":"tracking-plan","spec":"# tracking-plan\n\n## Goal\n\nCheck that tracked events match the tracking plan (names, required props, types) and carry no personal data.\n\n## Steps\n\n1. Write the plan: every event, its required and optional props with types.\n2. Export a day of raw events as NDJSON (PostHog/Umami API or Plausible custom events).\n3. `python3 code/tracking_plan.py plan.json events.ndjson`; fix code that sends unknown events, missing/mistyped props or personal data.\n\n## Edge cases\n\n- Numbers sent as strings fail on purpose (they break sums).\n\n## Don'ts\n\n- Never send emails, phone numbers or names as event props.\n\n## Check\n\n`lp pack check product-analytics/tracking-plan` runs outcome/checks.yaml.\n","files":["CHANGELOG.md","code/tracking_plan.py","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/fixtures/bad.ndjson","outcome/fixtures/good.ndjson","outcome/fixtures/plan.json","outcome/results.json","pack.yaml","refs/refs.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use product-analytics-public/tracking-plan","mcp":"get_pack product-analytics-public/tracking-plan","url":"https://logicpacks.io/packs/product-analytics-public/tracking-plan"},{"id":"project-management-public/github-roadmap","space":"project-management-public","name":"github-roadmap","version":"1.0.0","category":"enterprise","summary":"Turn GitHub issues and milestones into a markdown roadmap with % done (read-only)","level":"L1","env":[],"tools":["gh","python3"],"checks":2,"routes":["gh-cli"],"reliability":{"ok":7,"total":7},"repo":"https://github.com/Tech-Realm/space-project-management-public","repoName":"Tech-Realm/space-project-management-public","path":"github-roadmap","spec":"# github-roadmap\n\n## Goal\n\nTurn GitHub issues and milestones into a markdown roadmap with % done (read-only).\n\n## Steps\n\n1. `gh issue list --state all --limit 500 --json number,title,state,milestone,labels > issues.json`\n2. `gh api repos/OWNER/REPO/milestones?state=all > milestones.json`\n3. `python3 code/roadmap.py issues.json milestones.json > ROADMAP.md`\n4. Milestones sort by due date; open issues are listed under each.\n\n## Edge cases\n\n- Over 500 issues: page with `--limit` or `gh api --paginate`.\n\n## Don'ts\n\n- Read only: never close/edit issues from this pack.\n\n## Check\n\n`lp pack check project-management/github-roadmap` runs outcome/checks.yaml.\n","files":["CHANGELOG.md","code/roadmap.py","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/fixtures/issues.json","outcome/fixtures/milestones.json","outcome/results.json","pack.yaml","refs/refs.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use project-management-public/github-roadmap","mcp":"get_pack project-management-public/github-roadmap","url":"https://logicpacks.io/packs/project-management-public/github-roadmap"},{"id":"project-management-public/issue-flow","space":"project-management-public","name":"issue-flow","version":"1.0.0","category":"enterprise","summary":"Move issues through backlog, todo, in progress, review and done with points, then export","level":"L2","env":[],"tools":["python3","docker"],"checks":2,"routes":["stdlib-reference","plane-or-openproject","saas"],"reliability":{"ok":7,"total":7},"repo":"https://github.com/Tech-Realm/space-project-management-public","repoName":"Tech-Realm/space-project-management-public","path":"issue-flow","spec":"# issue-flow\n\n## Goal\n\nMove issues through backlog, todo, in progress, review and done with points, then export. Our reference flow (`code/refflow.py`, stdlib sqlite) proves the records, allowed moves, numbers and export; the same rules carry over to the self-hosted app.\n\n## Steps\n\n1. Statuses and allowed moves live in the schema (no jumping in_progress -> done without review).\n2. Points per issue; rollup of points per status = board totals.\n3. Export CSV for the weekly report.\n\n## Edge cases\n\n- Reopening a done issue goes back to review.\n\n## Don'ts\n\n- Don't track customer data in issue titles.\n\n## Check\n\n`lp pack check project-management/issue-flow` runs outcome/checks.yaml.\n","files":["CHANGELOG.md","code/refflow.py","code/schema.json","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/fixtures/scenario.json","outcome/results.json","pack.yaml","refs/refs.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use project-management-public/issue-flow","mcp":"get_pack project-management-public/issue-flow","url":"https://logicpacks.io/packs/project-management-public/issue-flow"},{"id":"research-public/deep-research-method","space":"research-public","name":"deep-research-method","version":"1.0.0","category":"documents-research","summary":"Deep-research method: frame the question, source plan, gather with dates, label checked vs claimed, write up with a source on every number.","level":"L2","env":[],"tools":["python3"],"checks":3,"routes":["local"],"reliability":{"ok":6,"total":6},"repo":"https://github.com/Tech-Realm/space-research-public","repoName":"Tech-Realm/space-research-public","path":"deep-research-method","spec":"# deep-research-method\n\n## Goal\n\nAn answer someone can act on, where every number carries a source and date and the method is visible.\n\n## Steps\n\n1. Write the question in one line and what decision it feeds.\n2. Source plan: official docs, live pricing pages and APIs first; vendor blogs, forums, screenshots last (label them 'claimed').\n3. Gather in parallel if useful, but budget shared limits (web search quotas are shared across agents).\n4. Record each fact as: value, unit, how obtained (checked / claimed / measured), date, source URL or note file.\n5. Write up with `code/research-template.md`: Answer first, then Method, Findings table, Caveats, Sources.\n6. `python3 code/numcheck.py writeup.md` must pass (no unsourced numbers).\n\n## Edge cases\n\n- Sources disagree: show both with dates; don't average.\n- Pages behind login or geo-blocks: say what was unreachable instead of guessing.\n- Prices change weekly: date every row.\n\n## Don'ts\n\n- Don't make up numbers. A figure without a source is dropped or written as 'not measured'.\n- Don't present a vendor claim as checked; label it.\n","files":["CHANGELOG.md","code/check_sections.py","code/numcheck.py","code/research-template.md","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/fixtures/bad.md","outcome/fixtures/good.md","outcome/results.json","pack.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use research-public/deep-research-method","mcp":"get_pack research-public/deep-research-method","url":"https://logicpacks.io/packs/research-public/deep-research-method"},{"id":"scheduling-public/booking-without-double-booking","space":"scheduling-public","name":"booking-without-double-booking","version":"1.0.0","category":"enterprise","summary":"Take bookings for a person or room with no double-booking, then export confirmed ones to .ics and CSV","level":"L2","env":[],"tools":["python3","docker"],"checks":2,"routes":["stdlib-reference","calcom","saas"],"reliability":{"ok":7,"total":7},"repo":"https://github.com/Tech-Realm/space-scheduling-public","repoName":"Tech-Realm/space-scheduling-public","path":"booking-without-double-booking","spec":"# booking-without-double-booking\n\n## Goal\n\nTake bookings for a person or room with no double-booking, then export confirmed ones to .ics and CSV. Our reference flow (`code/refflow.py`, stdlib sqlite) proves the records, allowed moves, numbers and export; the same rules carry over to the self-hosted app.\n\n## Steps\n\n1. A booking holds a resource for [start, end); back-to-back is fine, overlap is rejected.\n2. Cancelled bookings free the slot.\n3. Export confirmed bookings as iCalendar (`bookings.ics`) and CSV.\n\n## Edge cases\n\n- Store times in UTC; show them in the viewer's zone.\n- End must be after start.\n\n## Don'ts\n\n- Don't put client phone numbers in the event title.\n\n## Check\n\n`lp pack check scheduling/booking-without-double-booking` runs outcome/checks.yaml.\n","files":["CHANGELOG.md","code/refflow.py","code/schema.json","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/fixtures/scenario.json","outcome/results.json","pack.yaml","refs/refs.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use scheduling-public/booking-without-double-booking","mcp":"get_pack scheduling-public/booking-without-double-booking","url":"https://logicpacks.io/packs/scheduling-public/booking-without-double-booking"},{"id":"scheduling-public/free-slots","space":"scheduling-public","name":"free-slots","version":"1.0.0","category":"enterprise","summary":"List free booking slots from working hours, busy times, buffers and minimum notice in the right time zone","level":"L2","env":[],"tools":["python3","docker"],"checks":1,"routes":["stdlib","calcom"],"reliability":{"ok":7,"total":7},"repo":"https://github.com/Tech-Realm/space-scheduling-public","repoName":"Tech-Realm/space-scheduling-public","path":"free-slots","spec":"# free-slots\n\n## Goal\n\nList free booking slots from working hours, busy times, buffers and minimum notice in the right time zone.\n\n## Steps\n\n1. Fill `availability.json`: time zone, days, working hours per weekday, slot length, buffer, minimum notice, busy intervals (UTC, from the calendar).\n2. `python3 code/slots.py availability.json` lists free slot starts in local time.\n3. Check with the fixture: `python3 code/slots.py selftest ...`.\n\n## Edge cases\n\n- DST zones: zoneinfo handles the shift; never add fixed offsets by hand.\n- Busy times come from CalDAV/Google free-busy; refresh before offering slots.\n\n## Don'ts\n\n- Don't offer slots inside the minimum notice window.\n\n## Check\n\n`lp pack check scheduling/free-slots` runs outcome/checks.yaml.\n","files":["CHANGELOG.md","code/slots.py","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/fixtures/availability.json","outcome/fixtures/expected.json","outcome/results.json","pack.yaml","refs/refs.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use scheduling-public/free-slots","mcp":"get_pack scheduling-public/free-slots","url":"https://logicpacks.io/packs/scheduling-public/free-slots"},{"id":"scraping-automation-public/actor-template","space":"scraping-automation-public","name":"actor-template","version":"1.1.0","category":"scraping-automation","summary":"An Apify-style actor in plain Python: input schema -> polite crawl (robots.txt, delay, same host) -> dataset items in Apify's local storage layout. Runs locally or as a container.","level":"L2","env":[],"tools":["python3"],"checks":1,"routes":["local"],"reliability":{"ok":6,"total":6},"repo":"https://github.com/Tech-Realm/space-scraping-automation-public","repoName":"Tech-Realm/space-scraping-automation-public","path":"actor-template","spec":"# actor-template\n\nAn Apify-style actor in plain Python: input schema -> polite crawl (robots.txt, delay, same host) -> dataset items in Apify's local storage layout. Runs locally or as a container.\n\n## Goal\n\nA reusable actor skeleton that turns an input (start URLs, limits) into a dataset of page items, runnable locally and deployable to Apify unchanged in shape.\n\n## Routes (free first)\n\n1. `local` (local): `python3 code/main.py --storage ./storage --input <json>` - runs on any machine; no account\n\n## Steps\n\n1. Copy code/ into a new folder; edit `Page` (what to extract) and the `item` dict in main.py.\n2. Describe the input in code/.actor/input_schema.json (Apify renders it as a form).\n3. Run locally: `python3 code/main.py --storage ./storage --input '{\"startUrls\": [\"https://example.com\"], \"maxPages\": 5}'`.\n4. Read results from storage/datasets/default/*.json and the summary from storage/key_value_stores/default/OUTPUT.json.\n5. Deploy to Apify: `apify push` from the folder with .actor/ (needs the Apify CLI and APIFY_TOKEN), or run the Dockerfile anywhere on a schedule (scheduled-job pack).\n\n## Edge cases\n\n- Pages that need JavaScript return empty shells: switch the fetch to Playwright (browser-automation space) for those hosts only.\n- Respect robots.txt and add a delay; many sites block bursts (403/429) and some block plain curl (Indeed, Glassdoor) while others work (see ats-job-boards).\n- Cap pages and bytes per page so a crawl loop can't run away.\n- Results can contain personal data (names, emails, phones): store only what the job needs and never publish it.\n\n## Don'ts\n\n- Don't bypass logins, paywalls or CAPTCHAs.\n- Don't crawl a client's competitor or any site at high rate without the owner's OK.\n- Don't commit storage/ (datasets) to a space repo.\n","files":["CHANGELOG.md","code/.actor/Dockerfile","code/.actor/actor.json","code/.actor/input_schema.json","code/check_actor.sh","code/main.py","code/with_local_site.sh","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/fixtures/site/about.html","outcome/fixtures/site/index.html","outcome/fixtures/site/robots.txt","outcome/results.json","pack.yaml","refs/refs.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use scraping-automation-public/actor-template","mcp":"get_pack scraping-automation-public/actor-template","url":"https://logicpacks.io/packs/scraping-automation-public/actor-template"},{"id":"scraping-automation-public/ats-job-boards","space":"scraping-automation-public","name":"ats-job-boards","version":"1.1.0","category":"scraping-automation","summary":"Pull job postings from public job boards that embed JSON (Next.js __NEXT_DATA__, Paylocity pageData) with plain HTTP, for lead research.","level":"L2","env":[],"tools":["python3","curl"],"checks":2,"routes":["local"],"reliability":{"ok":7,"total":7},"repo":"https://github.com/Tech-Realm/space-scraping-automation-public","repoName":"Tech-Realm/space-scraping-automation-public","path":"ats-job-boards","spec":"# ats-job-boards\n\nPull job postings from public job boards that embed JSON (Next.js __NEXT_DATA__, Paylocity pageData) with plain HTTP, for lead research.\n\n## Goal\n\nA list of current postings (company, title, location, posted date) from public boards, without a browser.\n\n## Routes (free first)\n\n1. `local` (local): `python3 code/ats_extract.py <url>` - plain HTTP, no account\n\n## Steps\n\n1. Try plain HTTP first: `curl -s -A 'Mozilla/5.0' <board url> | head` and look for `__NEXT_DATA__` or `window.pageData`.\n2. Extract: `python3 code/ats_extract.py <url-or-saved.html>` (prints one JSON job per line).\n3. Check freshness on the job's own detail page: list pages can show a new date for an old repost.\n4. Find the hiring manager separately (company site, public contact pages); treat aggregator contacts as unverified.\n\n## Edge cases\n\n- Big boards (Indeed, ZipRecruiter, Glassdoor) usually return 403 to scripts; some smaller boards and ATSs work with plain HTTP.\n- iSolved/ApplicantPro boards expose a JSON endpoint per domain id; Rippling uses __NEXT_DATA__; Jobvite serves a plain HTML table.\n- Shared search budgets run dry when many agents search in parallel: save web searches for finding people.\n\n## Don'ts\n\n- Don't scrape behind logins or ignore a site's terms.\n- Don't store personal contact data you don't need.\n","files":["CHANGELOG.md","code/ats_extract.py","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/fixtures/next.html","outcome/fixtures/paylocity.html","outcome/results.json","pack.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use scraping-automation-public/ats-job-boards","mcp":"get_pack scraping-automation-public/ats-job-boards","url":"https://logicpacks.io/packs/scraping-automation-public/ats-job-boards"},{"id":"scraping-automation-public/google-maps-leads","space":"scraping-automation-public","name":"google-maps-leads","version":"1.1.0","category":"scraping-automation","summary":"Business leads from Google Maps via an Apify places actor: search terms + city -> places -> deduped, phone-normalized leads CSV.","level":"L1","env":["APIFY_TOKEN"],"tools":["python3"],"checks":2,"routes":["osm-overpass","apify-places"],"reliability":{"ok":3,"total":5},"repo":"https://github.com/Tech-Realm/space-scraping-automation-public","repoName":"Tech-Realm/space-scraping-automation-public","path":"google-maps-leads","spec":"# google-maps-leads\n\nBusiness leads from Google Maps via an Apify places actor: search terms + city -> places -> deduped, phone-normalized leads CSV.\n\n## Goal\n\nA CSV of unique businesses (name, category, address, phone, website, rating) for a search and area, ready for outreach or a merchant directory.\n\n## Routes (free first)\n\n1. `osm-overpass` (free): `python3 code/osm_places.py --bbox <s,w,n,e> --tag shop=bakery --out places.json` - OpenStreetMap data; coverage thinner than Google, no ratings; be gentle with public Overpass servers\n2. `apify-places` (paid): `python3 ../apify-run-actor/code/apify_run.py run compass/crawler-google-places code/maps_input.json --out places.json --max-cost-usd 2` - Google Maps data via an Apify actor\n\n## Steps\n\n1. Free route first: `python3 code/osm_places.py --bbox <south,west,north,east> --tag shop=bakery --out places.json` (OpenStreetMap, no key; thinner coverage). Use the Apify route below only when OSM coverage is not enough.\n2. Edit code/maps_input.json (search terms, location, max places).\n3. Run the places actor with the apify-run-actor pack: `lp run -- python3 ../apify-run-actor/code/apify_run.py run compass/crawler-google-places code/maps_input.json --out places.json --max-cost-usd 2`.\n4. Normalize + dedupe: `python3 code/normalize_places.py places.json leads.csv --country PK` (phones to +92 form; dedupe by placeId, then phone, then name+address).\n5. Spot-check 5 rows on Google Maps before using the list.\n\n## Edge cases\n\n- Big cities need several narrower searches (by area) to get past per-search result caps.\n- Closed or duplicate listings are common; keep `skipClosedPlaces` and the dedupe.\n- Phone numbers from Maps are business numbers, but still keep lists private and don't bulk message them.\n\n## Don'ts\n\n- Don't send bulk unsolicited messages or calls to the list.\n- Don't publish scraped lead lists.\n","files":["CHANGELOG.md","code/maps_input.json","code/normalize_places.py","code/osm_places.py","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/fixtures/places.json","outcome/results.json","pack.yaml","refs/refs.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use scraping-automation-public/google-maps-leads","mcp":"get_pack scraping-automation-public/google-maps-leads","url":"https://logicpacks.io/packs/scraping-automation-public/google-maps-leads"},{"id":"status-pages-public/incident-log-and-uptime","space":"status-pages-public","name":"incident-log-and-uptime","version":"1.0.0","category":"enterprise","summary":"Log incidents, compute monthly uptime per service and render a static status page","level":"L2","env":[],"tools":["python3","docker"],"checks":2,"routes":["stdlib-reference","uptime-kuma"],"reliability":{"ok":7,"total":7},"repo":"https://github.com/Tech-Realm/space-status-pages-public","repoName":"Tech-Realm/space-status-pages-public","path":"incident-log-and-uptime","spec":"# incident-log-and-uptime\n\n## Goal\n\nLog incidents, compute monthly uptime per service and render a static status page. Our reference flow (`code/refflow.py`, stdlib sqlite) proves the records, allowed moves, numbers and export; the same rules carry over to the self-hosted app.\n\n## Steps\n\n1. Log each incident: service, impact (degraded, partial, major, maintenance), start, resolve, status updates.\n2. Monthly uptime = window minus partial/major outage time (degraded and maintenance don't count).\n3. Render `status.html` (static) and publish it on Cloudflare Pages next to the product.\n\n## Edge cases\n\n- Open incidents count until the end of the window.\n- Overlapping incidents on one service are counted twice; merge them first.\n\n## Don'ts\n\n- Don't backdate resolutions.\n\n## Check\n\n`lp pack check status-pages/incident-log-and-uptime` runs outcome/checks.yaml.\n","files":["CHANGELOG.md","code/refflow.py","code/schema.json","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/fixtures/scenario.json","outcome/results.json","pack.yaml","refs/refs.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use status-pages-public/incident-log-and-uptime","mcp":"get_pack status-pages-public/incident-log-and-uptime","url":"https://logicpacks.io/packs/status-pages-public/incident-log-and-uptime"},{"id":"status-pages-public/upptime-github-status","space":"status-pages-public","name":"upptime-github-status","version":"1.0.0","category":"enterprise","summary":"Publish a free status page with Upptime (GitHub Actions + GitHub Pages)","level":"L1","env":[],"tools":["gh"],"checks":2,"routes":["github-actions"],"reliability":{"ok":7,"total":7},"repo":"https://github.com/Tech-Realm/space-status-pages-public","repoName":"Tech-Realm/space-status-pages-public","path":"upptime-github-status","spec":"# upptime-github-status\n\n## Goal\n\nPublish a free status page with Upptime (GitHub Actions + GitHub Pages).\n\n## Steps\n\n1. Create the repo from the template (`gh repo create ... --template upptime/upptime`).\n2. Replace its `.upptimerc.yml` with ours (owner, repo, sites, status-website).\n3. Validate: `python3 code/upptime_check.py code/.upptimerc.yml`.\n4. Add the GH_PAT secret the Upptime docs ask for; enable Pages.\n5. Core flow: Actions run every 5 min; the Pages site lists each site with uptime and response time history.\n\n## Edge cases\n\n- Checks run from GitHub's network, not ours; internal URLs need a $SECRET and a public endpoint.\n- Scheduled workflows pause after 60 days without commits on public repos.\n\n## Don'ts\n\n- Don't put internal admin URLs in plain text; use repository secrets.\n\n## Check\n\n`lp pack check status-pages/upptime-github-status` runs outcome/checks.yaml.\n","files":["CHANGELOG.md","code/.upptimerc.yml","code/upptime_check.py","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/results.json","pack.yaml","refs/refs.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use status-pages-public/upptime-github-status","mcp":"get_pack status-pages-public/upptime-github-status","url":"https://logicpacks.io/packs/status-pages-public/upptime-github-status"},{"id":"threejs-public/custom-shader-material","space":"threejs-public","name":"custom-shader-material","version":"1.0.0","category":"xr-games","summary":"Write a custom GLSL ShaderMaterial (time-animated vertex displacement + fragment gradient) that compiles cleanly and reports shader errors loudly","level":"L1","env":[],"tools":["python3","playwright-python","chromium"],"checks":1,"routes":["static-local"],"reliability":{"ok":10,"total":10},"repo":"https://github.com/Tech-Realm/space-threejs-public","repoName":"Tech-Realm/space-threejs-public","path":"custom-shader-material","spec":"# custom-shader-material\n\n## Goal\nA working ShaderMaterial template with uniforms (time, resolution, colour), vertex displacement and a fragment effect, plus a compile-error hook so broken shaders fail loudly in checks.\n\n## Steps\n1. Copy `code/`; edit `shaders.js` (vertex + fragment strings).\n2. Uniforms update in the loop; keep per-frame JS work to uniform writes.\n3. Compile errors are caught by `renderer.debug.onShaderError` and reported as console errors (so checks fail).\n4. Check: `python3 ../tools/webgl_check.py code --js \"window.__shader.compiled\"`.\n\n## Edge cases\n- Precision: use `highp` for positions; mobile GPUs may lack highp in fragment shaders (rare today).\n- Use onBeforeCompile to extend built-in materials instead when you need lighting.\n\n## Don'ts\n- Don't branch heavily per pixel; prefer mix/step.\n- Don't allocate new uniforms objects per frame.\n","files":["CHANGELOG.md","code/boot.js","code/index.html","code/main.js","code/shaders.js","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/results.json","pack.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use threejs-public/custom-shader-material","mcp":"get_pack threejs-public/custom-shader-material","url":"https://logicpacks.io/packs/threejs-public/custom-shader-material"},{"id":"threejs-public/mobile-performance-budget","space":"threejs-public","name":"mobile-performance-budget","version":"1.0.0","category":"xr-games","summary":"Check a three.js page against a mobile performance budget (draw calls, triangles, textures, DPR cap, transfer size) and fail the build when it is over","level":"L1","env":[],"tools":["python3","playwright-python","chromium"],"checks":2,"routes":["static-local"],"reliability":{"ok":9,"total":9},"repo":"https://github.com/Tech-Realm/space-threejs-public","repoName":"Tech-Realm/space-threejs-public","path":"mobile-performance-budget","spec":"# mobile-performance-budget\n\n## Goal\nA repeatable budget gate for 3D pages: numbers from `renderer.info` and the network, compared to `budget.json`, run headless in CI.\n\n## Steps\n1. Expose `window.__stats()` in the app (see `code/boot.js`).\n2. Copy `tools/perf_budget.py` usage: `python3 code/perf_budget.py <dir-or-url> --budget code/budget.json`.\n3. Start budget for mid phones: draw calls <= 100, triangles <= 500k, textures <= 32, DPR <= 2, page transfer <= 5 MB.\n4. Run it in CI for every change; raise the budget only on purpose.\n\n## Edge cases\n- Numbers are per frame for the current view; check the heaviest camera position (steps).\n- Transfer size counts CDN files too.\n\n## Don'ts\n- Don't treat SwiftShader FPS as device FPS.\n- Don't hide over-budget results by raising the budget silently.\n","files":["CHANGELOG.md","code/boot.js","code/budget.json","code/index.html","code/main.js","code/perf_budget.py","code/tight-budget.json","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/results.json","pack.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use threejs-public/mobile-performance-budget","mcp":"get_pack threejs-public/mobile-performance-budget","url":"https://logicpacks.io/packs/threejs-public/mobile-performance-budget"},{"id":"threejs-public/pbr-environment-lighting","space":"threejs-public","name":"pbr-environment-lighting","version":"1.0.0","category":"xr-games","summary":"Light PBR materials with an image-based environment (generated RoomEnvironment or an .hdr), ACES tone mapping, sRGB output and soft shadows","level":"L1","env":[],"tools":["python3","playwright-python","chromium"],"checks":1,"routes":["static-local"],"reliability":{"ok":9,"total":9},"repo":"https://github.com/Tech-Realm/space-threejs-public","repoName":"Tech-Realm/space-threejs-public","path":"pbr-environment-lighting","spec":"# pbr-environment-lighting\n\n## Goal\nPhysically based materials that look right without hand-tuned lights: PMREM environment map, tone mapping, correct colour space, one shadow-casting key light.\n\n## Steps\n1. Copy `code/`. By default the environment is `RoomEnvironment` (no download).\n2. To use an HDRI, pass `?hdr=file.hdr` (RGBELoader); CC0 HDRIs: polyhaven.com.\n3. Tune `renderer.toneMappingExposure` (UI slider in the template).\n4. Check: `python3 ../tools/webgl_check.py code --js \"window.__env === true\"`.\n\n## Edge cases\n- HDR files are large (2K ~ 6 MB); use 1K for the web.\n- Shadow acne: raise `shadow.bias` slightly; keep the shadow camera tight.\n\n## Don'ts\n- Don't add many real-time lights to fake GI; use the environment.\n- Don't forget `outputColorSpace = SRGBColorSpace` (r152+ default) when porting old code.\n","files":["CHANGELOG.md","code/boot.js","code/index.html","code/main.js","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/results.json","pack.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use threejs-public/pbr-environment-lighting","mcp":"get_pack threejs-public/pbr-environment-lighting","url":"https://logicpacks.io/packs/threejs-public/pbr-environment-lighting"},{"id":"threejs-public/post-processing-bloom","space":"threejs-public","name":"post-processing-bloom","version":"1.0.0","category":"xr-games","summary":"Add a post-processing chain (render pass, bloom, output pass with tone mapping) to a three.js scene, with a quality switch for phones","level":"L1","env":[],"tools":["python3","playwright-python","chromium"],"checks":2,"routes":["static-local"],"reliability":{"ok":9,"total":9},"repo":"https://github.com/Tech-Realm/space-threejs-public","repoName":"Tech-Realm/space-threejs-public","path":"post-processing-bloom","spec":"# post-processing-bloom\n\n## Goal\nBloom/glow via EffectComposer that stays correct in colour (OutputPass last) and can be turned down or off on weak devices.\n\n## Steps\n1. Copy `code/`; `?quality=low` halves the bloom resolution, `?fx=off` skips the composer.\n2. Add passes between RenderPass and OutputPass only.\n3. Resize the composer together with the renderer (template does).\n4. Check: `python3 ../tools/webgl_check.py code --js \"window.__fx.passes >= 3\"`.\n\n## Edge cases\n- Composer + MSAA: use a multisampled render target or FXAA/SMAA pass.\n- Transparent backgrounds don't survive most effects.\n\n## Don'ts\n- Don't tone-map twice (renderer + OutputPass).\n- Don't run full-res bloom on phones.\n","files":["CHANGELOG.md","code/boot.js","code/index.html","code/main.js","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/results.json","pack.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use threejs-public/post-processing-bloom","mcp":"get_pack threejs-public/post-processing-bloom","url":"https://logicpacks.io/packs/threejs-public/post-processing-bloom"},{"id":"threejs-public/r3f-starter","space":"threejs-public","name":"r3f-starter","version":"1.0.0","category":"xr-games","summary":"Start a react-three-fiber scene (React 18 + @react-three/fiber + drei) without a build step, ready to move into a Vite app","level":"L1","env":[],"tools":["python3","playwright-python","chromium"],"checks":1,"routes":["esm-local","vite"],"reliability":{"ok":9,"total":9},"repo":"https://github.com/Tech-Realm/space-threejs-public","repoName":"Tech-Realm/space-threejs-public","path":"r3f-starter","spec":"# r3f-starter\n\n## Goal\nA minimal R3F app (Canvas, lights, a spinning mesh, OrbitControls from drei) loaded from esm.sh, plus the Vite command for a real project.\n\n## Steps\n1. Prototype: serve `code/` (React, R3F and drei from esm.sh, pinned versions).\n2. Real project: `npm create vite@latest app -- --template react` then `npm i three @react-three/fiber @react-three/drei` and copy `App.js` logic.\n3. Use `useFrame` for animation; keep state out of the render loop.\n4. Check: `python3 ../tools/webgl_check.py code --js \"window.__r3f === true\"`.\n\n## Edge cases\n- esm.sh must dedupe react: the import map pins one React for all packages (`?deps=`).\n- R3F v8 pairs with React 18; R3F v9 with React 19.\n\n## Don'ts\n- Don't setState inside useFrame.\n- Don't ship the esm.sh prototype to production; bundle with Vite.\n","files":["CHANGELOG.md","code/App.js","code/index.html","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/results.json","pack.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use threejs-public/r3f-starter","mcp":"get_pack threejs-public/r3f-starter","url":"https://logicpacks.io/packs/threejs-public/r3f-starter"},{"id":"threejs-public/scene-with-glb-model","space":"threejs-public","name":"scene-with-glb-model","version":"1.0.0","category":"xr-games","summary":"Load a GLB model (plain, Draco or KTX2-compressed) into a lit three.js scene with orbit controls, auto-framing and a fallback message on load errors","level":"L1","env":[],"tools":["python3","playwright-python","chromium"],"checks":2,"routes":["static-local"],"reliability":{"ok":9,"total":9},"repo":"https://github.com/Tech-Realm/space-threejs-public","repoName":"Tech-Realm/space-threejs-public","path":"scene-with-glb-model","spec":"# scene-with-glb-model\n\n## Goal\nA page that loads any `.glb` (via `?model=` or the bundled sample), centres and frames it, lights it and lets the user orbit, with Draco and KTX2 decoders wired so compressed assets also load.\n\n## Steps\n1. Copy `code/` and put the model next to `index.html` (or pass `?model=path.glb`).\n2. Compress big models first: `npx gltf-transform optimize in.glb out.glb --compress draco --texture-compress ktx2` (decoders are already wired).\n3. Serve and open; the model is centred and the camera distance is set from its bounding box.\n4. Run the check: `python3 ../tools/webgl_check.py code --js \"window.__model && window.__model.meshes >= 1\"`.\n\n## Edge cases\n- Draco/KTX2 decoder paths point at the jsdelivr copy of the same three version; self-host them for offline use.\n- Huge scenes: check `window.__stats()` triangles; split or LOD above ~500k on phones.\n- Wrong scale from DCC tools: auto-framing hides it; check real units before physics.\n\n## Don'ts\n- Don't mix three versions between the core and the addons/decoders.\n- Don't ship uncompressed 4K PNG textures to phones.\n","files":["CHANGELOG.md","code/boot.js","code/index.html","code/main.js","code/model.glb","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/results.json","pack.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use threejs-public/scene-with-glb-model","mcp":"get_pack threejs-public/scene-with-glb-model","url":"https://logicpacks.io/packs/threejs-public/scene-with-glb-model"},{"id":"threejs-public/scroll-driven-camera","space":"threejs-public","name":"scroll-driven-camera","version":"1.0.0","category":"xr-games","summary":"Drive a three.js camera along a spline from page scroll (one stop per section) with eased damping and a static frame under reduced motion","level":"L1","env":[],"tools":["python3","playwright-python","chromium"],"checks":1,"routes":["static-local"],"reliability":{"ok":8,"total":9},"repo":"https://github.com/Tech-Realm/space-threejs-public","repoName":"Tech-Realm/space-threejs-public","path":"scroll-driven-camera","spec":"# scroll-driven-camera\n\n## Goal\nScroll position maps to a camera path through a 3D scene behind normal HTML sections; smooth, reversible, accessible.\n\n## Steps\n1. Copy `code/`; edit `STOPS` (camera position + look-at per section).\n2. The canvas is fixed behind the content; sections stay real HTML (SEO, a11y).\n3. Progress = scrollY / (scrollHeight - innerHeight), damped each frame.\n4. Check scroll moves the camera: `python3 ../tools/webgl_check.py code --steps outcome/fixtures/scroll.json`.\n\n## Edge cases\n- iOS address-bar resize changes innerHeight: use the template's resize debounce.\n- prefers-reduced-motion: jump between stops without easing.\n\n## Don'ts\n- Don't hijack scroll (no preventDefault on wheel).\n- Don't put text into the canvas; keep it in HTML.\n","files":["CHANGELOG.md","code/boot.js","code/index.html","code/main.js","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/fixtures/scroll.json","outcome/results.json","pack.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use threejs-public/scroll-driven-camera","mcp":"get_pack threejs-public/scroll-driven-camera","url":"https://logicpacks.io/packs/threejs-public/scroll-driven-camera"},{"id":"threejs-public/splat-viewer","space":"threejs-public","name":"splat-viewer","version":"1.0.0","category":"xr-games","summary":"Show a Gaussian-splat capture (.ply/.splat/.spz) in a three.js page with Spark, next to normal meshes, with a loading state","level":"L1","env":[],"tools":["python3","playwright-python","chromium"],"checks":1,"routes":["static-local"],"reliability":{"ok":9,"total":9},"repo":"https://github.com/Tech-Realm/space-threejs-public","repoName":"Tech-Realm/space-threejs-public","path":"splat-viewer","spec":"# splat-viewer\n\n## Goal\nA web viewer for splat captures (from the `3d-and-splats` space) that mixes splats with three.js meshes and controls.\n\n## Steps\n1. Capture/convert the splat in `3d-and-splats`; compress to `.spz` for the web.\n2. Copy `code/`, pass `?splat=url.spz`.\n3. Without a splat the template shows a procedural point cloud so the page still proves the pipeline.\n4. Check: `python3 ../tools/webgl_check.py code --js \"window.__splat.ready\"`.\n\n## Edge cases\n- Splats are heavy: 300k+ splats need a decent phone GPU; offer a lower-count version.\n- Sorting cost grows with count; keep the camera from flying inside the cloud.\n\n## Don'ts\n- Don't ship private captures (homes, people) on public pages without consent.\n- Don't hotlink our home servers for splat files.\n","files":["CHANGELOG.md","code/boot.js","code/index.html","code/main.js","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/results.json","pack.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use threejs-public/splat-viewer","mcp":"get_pack threejs-public/splat-viewer","url":"https://logicpacks.io/packs/threejs-public/splat-viewer"},{"id":"token-management-public/build-a-token-usage-dashboard","space":"token-management-public","name":"build-a-token-usage-dashboard","version":"1.0.0","category":"enterprise","summary":"Turn per-key usage into a usage dashboard (by user, team, day and key) as one static HTML page","level":"L2","env":[],"tools":["python3"],"checks":2,"routes":["static-html","metabase"],"reliability":{"ok":7,"total":8},"repo":"https://github.com/Tech-Realm/space-token-management-public","repoName":"Tech-Realm/space-token-management-public","path":"build-a-token-usage-dashboard","spec":"# build-a-token-usage-dashboard\n\nTurn per-key usage into a usage dashboard (by user, team, day and key) as one static HTML page\n\n## Goal\nAnyone can open one page and see where API spend goes per user, team, day and key.\n\n## Steps\n1. Export usage: `tokens.py --db tokens.db usage-csv > usage.csv` (or LiteLLM /spend/logs).\n2. `python3 code/usage_dash.py usage.csv usage.html`.\n3. Open locally (`agopen usage.html`) or serve via the tunnel; never publish to a third-party host.\n\n## Edge cases\n- Empty CSV -> page says 0 rows.\n- Many keys: the page is sorted by spend; add pagination past ~500 rows.\n\n## Don'ts\n- Don't include raw tokens or prompt text in the export.\n","files":["CHANGELOG.md","code/usage_dash.py","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/fixtures/usage.csv","outcome/results.json","pack.yaml","refs/refs.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use token-management-public/build-a-token-usage-dashboard","mcp":"get_pack token-management-public/build-a-token-usage-dashboard","url":"https://logicpacks.io/packs/token-management-public/build-a-token-usage-dashboard"},{"id":"token-management-public/issue-scoped-api-tokens","space":"token-management-public","name":"issue-scoped-api-tokens","version":"1.0.0","category":"enterprise","summary":"Issue, scope, verify, rotate and revoke per-user/team API tokens (hashed at rest, shown once, admin-gated)","level":"L2","env":["TOKENS_ADMIN_SECRET"],"tools":["python3"],"checks":3,"routes":["stdlib-sqlite","litellm-virtual-keys"],"reliability":{"ok":7,"total":7},"repo":"https://github.com/Tech-Realm/space-token-management-public","repoName":"Tech-Realm/space-token-management-public","path":"issue-scoped-api-tokens","spec":"# issue-scoped-api-tokens\n\nIssue, scope, verify, rotate and revoke per-user/team API tokens (hashed at rest, shown once, admin-gated)\n\n## Goal\nA user or team gets an API token with only the scopes it needs; the token can be verified, rotated and revoked, and the raw value is never stored.\n\n## Steps\n1. Set TOKENS_ADMIN_SECRET (vault) on the server; only the admin path can issue/rotate/revoke.\n2. Issue: `tokens.py --db tokens.db issue <user> --team <team> --scopes read,llm [--ttl-min 120] [--cap-usd 5] [--rpm 60]`; hand the raw token over once.\n3. Verify on every request: `verify(raw, scope)` -> ok / unknown / revoked / expired / scope / quota / rate.\n4. Rotate: `rotate <id>` issues a replacement with the same scopes and revokes the old one; Revoke: `revoke <id>` (idempotent).\n5. Export: `list` (no raw values) and `usage-csv` for dashboards.\n\n## Edge cases\n- Short-lived tokens: cap the TTL (24 h in our DSM pattern).\n- Clock skew on expiry: compare server time only.\n- A leaked token: revoke + rotate; the hash table makes lookups O(1) without storing secrets.\n\n## Don'ts\n- Don't store or log raw tokens; don't accept a minted token on the admin path.\n- Don't put tokens in URLs in production (headers only).\n","files":["CHANGELOG.md","code/tokens.py","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/results.json","pack.yaml","refs/refs.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use token-management-public/issue-scoped-api-tokens","mcp":"get_pack token-management-public/issue-scoped-api-tokens","url":"https://logicpacks.io/packs/token-management-public/issue-scoped-api-tokens"},{"id":"trends-public/finetuning-platforms-watch","space":"trends-public","name":"finetuning-platforms-watch","version":"0.1.0","category":"ai-training","summary":"Pick the cheapest place to fine-tune: local (MLX, Unsloth, ai-toolkit) vs hosted (Tinker, Together, OpenAI), whether weights come back, and which pack wraps each.","level":"L2","env":[],"tools":["python3"],"checks":2,"routes":["read-and-verify"],"reliability":{"ok":7,"total":7},"repo":"https://github.com/Tech-Realm/space-trends-public","repoName":"Tech-Realm/space-trends-public","path":"finetuning-platforms-watch","spec":"# finetuning-platforms-watch\n\n## Goal\n\nA watch list where every row is sourced and was verified within the last 45 days.\n\n## Steps\n\n1. Run the check; it lists stale rows.\n2. Open each stale row's source; update facts and set checked to today.\n3. Add new entries only after reading the primary source; put rumours under 'To verify'.\n4. Bump status_checked in pack.yaml and add a CHANGELOG line.\n\n## Edge cases\n\n- Secondary sources disagree: keep the row conservative and note it under 'To verify'.\n\n## Don'ts\n\n- Don't bump a checked date without opening the source.\n- Don't store prices as fact beyond the day they were seen.\n","files":["CHANGELOG.md","code/platforms.md","code/watch_check.py","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/results.json","pack.yaml","refs/refs.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use trends-public/finetuning-platforms-watch","mcp":"get_pack trends-public/finetuning-platforms-watch","url":"https://logicpacks.io/packs/trends-public/finetuning-platforms-watch"},{"id":"trends-public/open-weight-models-watch","space":"trends-public","name":"open-weight-models-watch","version":"0.1.0","category":"ai-training","summary":"Know which open-weight models are worth fine-tuning today: license, size, whether it fits our Mac or a 4090, and which pack uses it, each row sourced and dated (Inkling added 2026-12-04).","level":"L2","env":[],"tools":["python3"],"checks":2,"routes":["read-and-verify"],"reliability":{"ok":7,"total":7},"repo":"https://github.com/Tech-Realm/space-trends-public","repoName":"Tech-Realm/space-trends-public","path":"open-weight-models-watch","spec":"# open-weight-models-watch\n\n## Goal\n\nA watch list where every row is sourced and was verified within the last 45 days.\n\n## Steps\n\n1. Run the check; it lists stale rows.\n2. Open each stale row's source; update facts and set checked to today.\n3. Add new entries only after reading the primary source; put rumours under 'To verify'.\n4. Bump status_checked in pack.yaml and add a CHANGELOG line.\n\n## Edge cases\n\n- Secondary sources disagree: keep the row conservative and note it under 'To verify'.\n\n## Don'ts\n\n- Don't bump a checked date without opening the source.\n- Don't store prices as fact beyond the day they were seen.\n","files":["CHANGELOG.md","code/models.md","code/watch_check.py","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/results.json","pack.yaml","refs/refs.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use trends-public/open-weight-models-watch","mcp":"get_pack trends-public/open-weight-models-watch","url":"https://logicpacks.io/packs/trends-public/open-weight-models-watch"},{"id":"video-editing-public/broll-and-licensing","space":"video-editing-public","name":"broll-and-licensing","version":"1.0.0","category":"video-media","summary":"Source b-roll and music legally: Pexels video, Pixabay music (skip AI-tagged), licence snapshot recorded in NOTES.md, own-footage library first.","level":"L2","env":[],"tools":[],"checks":1,"routes":["manual"],"reliability":{"ok":8,"total":8},"repo":"https://github.com/Tech-Realm/space-video-editing-public","repoName":"Tech-Realm/space-video-editing-public","path":"broll-and-licensing","spec":"# broll-and-licensing\n\nSource b-roll and music legally: Pexels video, Pixabay music (skip AI-tagged), licence snapshot recorded in NOTES.md, own-footage library first.\n\n## Goal\n\nFill b-roll and music with assets whose licence is recorded and safe for client ads.\n\n## Steps\n\n1. Search own footage library first (studio-library), then Pexels (free commercial, no attribution).\n2. Music: Pixabay Content License (ads OK, no resale), skip AI-tagged tracks; measure BPM/energy.\n3. Save a page snapshot of each licence (headless browser if Cloudflare blocks) and record source + licence in NOTES.md.\n4. Stock people are never captioned as patients/staff/testimonials.\n\n## Edge cases\n\n- Content ID claims on Pixabay music are cleared through Pixabay.\n\n## Don'ts\n\n- Don't use stock people as fake testimonials.\n- Don't use AI-tagged music in client ads.\n","files":["CHANGELOG.md","code/licence_log.py","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/results.json","pack.yaml","refs/refs.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use video-editing-public/broll-and-licensing","mcp":"get_pack video-editing-public/broll-and-licensing","url":"https://logicpacks.io/packs/video-editing-public/broll-and-licensing"},{"id":"video-editing-public/captions","space":"video-editing-public","name":"captions","version":"1.0.0","category":"video-media","summary":"Captions that pass client review: word-timed, cut-aware, one position/style/size, 2-5 words per line, inside the 9:16 safe zone; SRT from Whisper word timings.","level":"L2","env":["GROQ_API_KEY"],"tools":["python3"],"checks":1,"routes":["whisper-local","groq-whisper"],"reliability":{"ok":8,"total":8},"repo":"https://github.com/Tech-Realm/space-video-editing-public","repoName":"Tech-Realm/space-video-editing-public","path":"captions","spec":"# captions\n\nCaptions that pass client review: word-timed, cut-aware, one position/style/size, 2-5 words per line, inside the 9:16 safe zone; SRT from Whisper word timings.\n\n## Goal\n\nDeliver captions that are word-for-word, never cross a picture cut, never flash (<0.5 s), and sit in one fixed safe position.\n\n## Steps\n\n1. Transcribe with word timings (Groq whisper-large-v3-turbo or local faster-whisper small).\n2. Group 2-5 words (portrait) / up to 7 (landscape), split at phrase boundaries, never shrink text to fit.\n3. Make it cut-aware: `code/captions.py words.json cuts.txt out.srt` splits at picture cuts and merges blocks <0.5 s.\n4. Style: one font/size for the whole video (e.g. Poppins SemiBold 50-54 px white, 4 px black outline + soft shadow), sentence case.\n5. Position inside the Meta safe zone (14% top / 35% bottom / 6% sides: x 65-1015, y 269-1248), clear of faces.\n6. Run Whisper on the final mix to prove every line survived; note expected mishearings.\n7. One text system on screen at a time; follow the client's latest written feedback.\n\n## Edge cases\n\n- Active-word colour is optional; some clients want plain.\n- Urdu Nastaliq/Arabic shaping must be proofread by a native speaker.\n- Homebrew ffmpeg may lack drawtext/libass: burn captions in the editor (Tesseract/Resolve) instead.\n\n## Don'ts\n\n- Don't change caption size mid-video.\n- Don't repeat the same words as a title and a caption.\n\n## Keys\n\nEnv NAMES only (values live in the lp vault; run through `lp run`): GROQ_API_KEY\n","files":["CHANGELOG.md","code/captions.py","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/fixtures/cuts.txt","outcome/fixtures/words.json","outcome/results.json","pack.yaml","refs/refs.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use video-editing-public/captions","mcp":"get_pack video-editing-public/captions","url":"https://logicpacks.io/packs/video-editing-public/captions"},{"id":"video-editing-public/contact-sheets-thumbnails","space":"video-editing-public","name":"contact-sheets-thumbnails","version":"1.0.0","category":"video-media","summary":"Review cuts without watching: contact sheets, cut strips, and per-reel cover thumbnails (own hero visual, never the same photo twice).","level":"L1","env":[],"tools":["ffmpeg","python3"],"checks":1,"routes":["ffmpeg-local"],"reliability":{"ok":8,"total":8},"repo":"https://github.com/Tech-Realm/space-video-editing-public","repoName":"Tech-Realm/space-video-editing-public","path":"contact-sheets-thumbnails","spec":"# contact-sheets-thumbnails\n\nReview cuts without watching: contact sheets, cut strips, and per-reel cover thumbnails (own hero visual, never the same photo twice).\n\n## Goal\n\nGive the reviewer (person or agent) a one-image view of a cut, and make a distinct cover for every reel.\n\n## Steps\n\n1. Contact sheet: `code/sheet.sh in.mp4 sheet.jpg [cut_time]` (1 fps, 10x6; plus a 5-frame strip around a cut).\n2. Cover thumbnail: mono kicker + thin serif title + one real hero visual from the reel + its own colour.\n3. For face-led channels: the creator's own photo edited for effect (props, exaggerated reaction), never reused across covers.\n\n## Edge cases\n\n- Homebrew ffmpeg may lack drawtext: put title text in the design tool, not ffmpeg.\n\n## Don'ts\n\n- Don't reuse the same photo on every cover.\n","files":["CHANGELOG.md","code/make_fixture.sh","code/sheet.sh","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/results.json","pack.yaml","refs/refs.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use video-editing-public/contact-sheets-thumbnails","mcp":"get_pack video-editing-public/contact-sheets-thumbnails","url":"https://logicpacks.io/packs/video-editing-public/contact-sheets-thumbnails"},{"id":"video-editing-public/delivery-variants","space":"video-editing-public","name":"delivery-variants","version":"1.0.0","category":"video-media","summary":"Make the standard delivery files from a master: a <3 MB Upwork preview (540x960 two-pass) and a <=16 MB WhatsApp copy, with size checks.","level":"L1","env":[],"tools":["ffmpeg"],"checks":1,"routes":["ffmpeg-local"],"reliability":{"ok":8,"total":8},"repo":"https://github.com/Tech-Realm/space-video-editing-public","repoName":"Tech-Realm/space-video-editing-public","path":"delivery-variants","spec":"# delivery-variants\n\nMake the standard delivery files from a master: a <3 MB Upwork preview (540x960 two-pass) and a <=16 MB WhatsApp copy, with size checks.\n\n## Goal\n\nProduce link-friendly and chat-friendly variants that respect each channel's size limit.\n\n## Steps\n\n1. Upwork rooms: send a link plus at most a <=3 MB preview (`-u3`).\n2. WhatsApp: `-wa` file <= 16 MB (ideally <= 14.5 MB); grain/rain footage needs CRF 27.\n3. Run `code/variants.sh master.mp4 outdir` and confirm sizes.\n4. Full masters stay local unless hosted on our delivery domain.\n\n## Edge cases\n\n- Real Upwork attachment limit is ~3 MB, not 7.\n- Re-check TP after low-bitrate AAC.\n\n## Don'ts\n\n- Don't send raw project files to clients; only finished deliverables.\n- Don't host client work on personal domains.\n","files":["CHANGELOG.md","code/make_fixture.sh","code/variants.sh","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/results.json","pack.yaml","refs/refs.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use video-editing-public/delivery-variants","mcp":"get_pack video-editing-public/delivery-variants","url":"https://logicpacks.io/packs/video-editing-public/delivery-variants"},{"id":"video-editing-public/loudness-master","space":"video-editing-public","name":"loudness-master","version":"1.0.0","category":"video-media","summary":"Master a cut to -14 LUFS / -1.5 dBTP (Reels/TikTok) with a limiter + two-pass linear loudnorm, and prove it by measurement.","level":"L1","env":[],"tools":["ffmpeg","python3"],"checks":1,"routes":["ffmpeg-local"],"reliability":{"ok":8,"total":8},"repo":"https://github.com/Tech-Realm/space-video-editing-public","repoName":"Tech-Realm/space-video-editing-public","path":"loudness-master","spec":"# loudness-master\n\nMaster a cut to -14 LUFS / -1.5 dBTP (Reels/TikTok) with a limiter + two-pass linear loudnorm, and prove it by measurement.\n\n## Goal\n\nEvery delivered video measures -14 +/- 0.5 LUFS integrated and true peak <= -1.5 dBTP.\n\n## Steps\n\n1. Measure the mix: `code/measure.sh in.mp4`.\n2. Master: `code/master.sh in.mp4 out.mp4` (limiter first, then two-pass linear loudnorm).\n3. Re-measure; if loudnorm fell into dynamic mode (sparse music), raise the limiter input or master per section.\n4. Cinematic pieces may sit at -15 to -17 LUFS by taste; state it in the handover.\n5. Write LUFS and TP in the delivery note, plus 'not listened to; play once on a phone' if no human listened.\n\n## Edge cases\n\n- Low-bitrate AAC previews can push TP above -1 dBTP: re-run the limiter after encoding.\n- Video is stream-copied; only audio is re-encoded.\n\n## Don'ts\n\n- Don't normalize per clip and call it mastered; master the final mix.\n- Don't claim it was auditioned if nobody listened.\n","files":["CHANGELOG.md","code/make_fixture.sh","code/master.sh","code/measure.sh","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/results.json","pack.yaml","refs/refs.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use video-editing-public/loudness-master","mcp":"get_pack video-editing-public/loudness-master","url":"https://logicpacks.io/packs/video-editing-public/loudness-master"},{"id":"video-editing-public/vertical-crop-9x16","space":"video-editing-public","name":"vertical-crop-9x16","version":"1.0.0","category":"video-media","summary":"Reframe 16:9 footage to 1080x1920 for Reels/TikTok: crop the real picture first, centre or offset crop, note any upscale.","level":"L1","env":[],"tools":["ffmpeg"],"checks":1,"routes":["ffmpeg-local"],"reliability":{"ok":8,"total":8},"repo":"https://github.com/Tech-Realm/space-video-editing-public","repoName":"Tech-Realm/space-video-editing-public","path":"vertical-crop-9x16","spec":"# vertical-crop-9x16\n\nReframe 16:9 footage to 1080x1920 for Reels/TikTok: crop the real picture first, centre or offset crop, note any upscale.\n\n## Goal\n\nGet clean 9:16 shots from landscape sources without letterbox or soft upscales going unnoticed.\n\n## Steps\n\n1. Find the real picture area (letterboxed sources, e.g. 1920x896 starting 92 px down) and crop it first.\n2. Centre (or subject-offset) crop to ih*9/16 then scale to 1080x1920: `code/crop916.sh in out [x]`.\n3. Note when the crop is upscaled (x1.78 from 1080p) in NOTES.md; prefer 4K sources for vertical.\n4. Keep text inside the Meta safe zone (x 65-1015, y 269-1248).\n\n## Edge cases\n\n- Faces near the frame edge need a manual x offset per shot.\n\n## Don'ts\n\n- Don't stretch; always crop.\n","files":["CHANGELOG.md","code/crop916.sh","code/make_fixture.sh","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/results.json","pack.yaml","refs/refs.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use video-editing-public/vertical-crop-9x16","mcp":"get_pack video-editing-public/vertical-crop-9x16","url":"https://logicpacks.io/packs/video-editing-public/vertical-crop-9x16"},{"id":"voice-models-public/measure-asr-wer","space":"voice-models-public","name":"measure-asr-wer","version":"0.1.0","category":"ai-training","summary":"Measure speech-to-text accuracy as word error rate: score transcripts against references, with a free local smoke test (macOS say -> whisper-cli -> WER under 0.2).","level":"L1","env":[],"tools":["python3"],"checks":3,"routes":["whisper-cli-mac","python-stdlib"],"reliability":{"ok":7,"total":7},"repo":"https://github.com/Tech-Realm/space-voice-models-public","repoName":"Tech-Realm/space-voice-models-public","path":"measure-asr-wer","spec":"# measure-asr-wer\n\n## Goal\n\nA WER number for a speech recogniser on our audio, comparable before and after a change.\n\n## Steps\n\n1. Collect 20+ held-out clips with correct transcripts (ref<TAB>path or ref<TAB>hyp after transcription).\n2. Transcribe with the model under test (whisper-cli, faster-whisper, an API).\n3. `python3 code/wer.py --pairs pairs.tsv` for the corpus WER.\n4. Repeat for the fine-tuned model; keep both numbers in the project note.\n\n## Edge cases\n\n- Roman Urdu has no standard spelling: normalise both sides (or use CER) before comparing.\n- Numbers: normalise '42' vs 'forty two'.\n\n## Don'ts\n\n- Don't compare WER across different normalisation rules.\n","files":["CHANGELOG.md","code/asr_smoke.sh","code/wer.py","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/fixtures/pairs.tsv","outcome/results.json","pack.yaml","refs/refs.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use voice-models-public/measure-asr-wer","mcp":"get_pack voice-models-public/measure-asr-wer","url":"https://logicpacks.io/packs/voice-models-public/measure-asr-wer"},{"id":"voice-models-public/prepare-voice-dataset","space":"voice-models-public","name":"prepare-voice-dataset","version":"0.1.0","category":"ai-training","summary":"Get a TTS voice dataset ready before training: LJSpeech layout, mono 16-bit at one sample rate, 1-15 s clips, numbers spelled out, total minutes counted and a consent file present.","level":"L2","env":[],"tools":["python3"],"checks":2,"routes":["python-stdlib"],"reliability":{"ok":7,"total":7},"repo":"https://github.com/Tech-Realm/space-voice-models-public","repoName":"Tech-Realm/space-voice-models-public","path":"prepare-voice-dataset","spec":"# prepare-voice-dataset\n\n## Goal\n\nA consented LJSpeech-style dataset (metadata.csv + wavs/) that passes every check, with its total minutes known.\n\n## Steps\n\n1. Record or collect clean speech of one speaker (quiet room, same mic) with written consent saved as consent.txt.\n2. Split into 1-15 s clips (silence-based); transcribe (whisper-cli) and correct by hand.\n3. Write metadata.csv as id|text|normalized text (numbers as words).\n4. Resample: `ffmpeg -i in.wav -ar 22050 -ac 1 -sample_fmt s16 wavs/<id>.wav`.\n5. `python3 code/check_voice_dataset.py dataset --min-minutes 20` until 0 problems.\n\n## Edge cases\n\n- Piper fine-tunes work from about 20-30 minutes; less gives a rough voice.\n- Background music or two speakers in a clip ruins training: drop the clip.\n\n## Don'ts\n\n- Don't use a voice without the speaker's consent.\n- Don't commit real voice data to git.\n","files":["CHANGELOG.md","code/check_voice_dataset.py","code/make_voice_fixture.py","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/results.json","pack.yaml","refs/refs.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use voice-models-public/prepare-voice-dataset","mcp":"get_pack voice-models-public/prepare-voice-dataset","url":"https://logicpacks.io/packs/voice-models-public/prepare-voice-dataset"},{"id":"web-development-public/3d-website","space":"web-development-public","name":"3d-website","version":"1.0.0","category":"build","summary":"Three.js scene fixed behind normal HTML content with a scroll-driven camera tour (one stop per section), pointer parallax, capped pixel ratio, pause when hidden, static frame under reduced motion and a CSS fallback without WebGL. No build step (import map + CDN).","level":"L1","env":[],"tools":["python3","playwright-python","chromium","network (jsdelivr CDN for three@0.170.0)"],"checks":1,"routes":["static-local"],"reliability":{"ok":7,"total":7},"repo":"https://github.com/Tech-Realm/space-web-development-public","repoName":"Tech-Realm/space-web-development-public","path":"3d-website","spec":"# 3D website\n\n## Goal\nA marketing site where a real-time 3D object carries the story: as the visitor scrolls, the camera moves between stops that match each section. Text stays real HTML (SEO, accessibility), the page stays fast on phones, and nothing breaks without WebGL.\n\n## Steps\n1. Copy `code/` (index.html, style.css, scene.js). Keep the import map; pin the three version (`three@0.170.0`). For production either keep the CDN or `npm i three` and bundle.\n2. Replace the knot with your model: `GLTFLoader` from `three/addons/loaders/GLTFLoader.js` (add `\"three/addons/\": \".../examples/jsm/\"` to the import map). Compress with `gltf-transform optimize in.glb out.glb --compress draco --texture-compress webp`; keep it under ~2 MB.\n3. Give each content section a `data-step` and define one camera stop per step (`pos`, `look`, `rotY`). The scroll handler only sets targets; the render loop eases toward them with frame-rate independent damping.\n4. Phone framing: below 700 px push the camera back and lower the object so it sits behind or under the text.\n5. Performance guards: `setPixelRatio(min(dpr, 1.75))`, pause the loop on `visibilitychange`, render a single frame on scroll when the loop is stopped (reduced motion).\n6. Fallback: no WebGL or a lost context sets `html[data-webgl=\"off\"]` and shows the CSS gradient layer.\n7. Run the outcome checks (needs network for the CDN).\n\n## Edge cases\n- iOS low-power mode throttles rAF to 30 fps: damping is time-based, so motion stays correct.\n- Huge GLB on mobile data: show the poster/fallback first and load the model after `load` or on interaction.\n- Text contrast over the object: soft text-shadow on phones, or a translucent plate.\n- WebGL context loss (tab in background for long): handled; consider re-init on `webglcontextrestored`.\n\n## Don'ts\n- Never put headings or copy inside the canvas.\n- Do not run postprocessing (bloom, SSAO) on phones by default.\n- Do not create geometries or materials inside the render loop.\n","files":["CHANGELOG.md","code/_shots/shot-1280-rm.png","code/_shots/shot-1280.png","code/_shots/shot-390-rm.png","code/_shots/shot-390.png","code/index.html","code/scene.js","code/style.css","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/fixtures/steps.json","outcome/results.json","pack.yaml","refs/refs.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use web-development-public/3d-website","mcp":"get_pack web-development-public/3d-website","url":"https://logicpacks.io/packs/web-development-public/3d-website"},{"id":"web-development-public/footer","space":"web-development-public","name":"footer","version":"1.0.0","category":"build","summary":"Site footer with brand blurb, validated newsletter form (no key in the browser), three link columns that become two on phones, outline wordmark, legal row and smooth back-to-top. Plain HTML/CSS/JS.","level":"L1","env":[],"tools":["python3","playwright-python","chromium"],"checks":1,"routes":["static-local"],"reliability":{"ok":7,"total":7},"repo":"https://github.com/Tech-Realm/space-web-development-public","repoName":"Tech-Realm/space-web-development-public","path":"footer","spec":"# Footer\n\n## Goal\nA footer that closes every page: brand and one-line promise, a newsletter signup that validates and reports its state, grouped links, legal links and a way back to the top. It must read well at 390 px and never cause horizontal scroll (the big wordmark is the usual culprit).\n\n## Steps\n1. Copy the `<footer>` block from `code/index.html`, `code/style.css` (from `.site-footer` down) and `code/footer.js`.\n2. Replace brand, blurb and links. Keep 3-4 columns of at most 5 links; group by user intent (Product, Company, Resources).\n3. Newsletter: set `data-endpoint` on the form to your own backend route (e.g. a Cloudflare Pages Function) that holds the provider key server-side. Without it the form only validates and shows the success message (demo mode).\n4. The status line uses `role=\"status\"` + `aria-live=\"polite\"` so screen readers hear success and errors.\n5. Layout: two columns (brand | links) above 860 px, one column below; link columns go 3 -> 2 below 520 px; the input and button stack on phones.\n6. Wordmark: `font-size: clamp(...)` with `white-space: nowrap; overflow: hidden` on its own box so it can never widen the page.\n7. Run the outcome checks.\n\n## Edge cases\n- Very long company names in the wordmark: lower the clamp max or drop the wordmark under 390 px.\n- Submit spam: add a honeypot field or Turnstile on the backend route, not in the browser.\n- Back to top must respect `prefers-reduced-motion` (instant jump).\n- Year: rendered by JS with a static fallback in the HTML for no-JS crawlers.\n\n## Don'ts\n- Never put a mailing-list API key (Resend, Mailchimp, etc.) in client JS.\n- Do not repeat every header link; the footer is for secondary navigation and legal.\n- No tiny tap targets: links keep at least 8 px gaps and 16 px text on mobile.\n- Do not use a fixed-width wordmark in px.\n","files":["CHANGELOG.md","code/_shots/shot-1280-rm.png","code/_shots/shot-1280.png","code/_shots/shot-390-rm.png","code/_shots/shot-390.png","code/footer.js","code/index.html","code/style.css","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/fixtures/steps.json","outcome/results.json","pack.yaml","refs/refs.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use web-development-public/footer","mcp":"get_pack web-development-public/footer","url":"https://logicpacks.io/packs/web-development-public/footer"},{"id":"web-development-public/hero-section","space":"web-development-public","name":"hero-section","version":"1.0.0","category":"build","summary":"Full-viewport hero with a looping background video (manual loop with 0.5 s fade so the seam never shows), poster fallback, scrim for contrast, glass nav, display headline and CTA pair. Pauses off-screen, honours reduced motion and Save-Data, has a pause control.","level":"L1","env":[],"tools":["python3","playwright-python","chromium","ffmpeg (optional","to encode your own loop)"],"checks":2,"routes":["static-local"],"reliability":{"ok":9,"total":9},"repo":"https://github.com/Tech-Realm/space-web-development-public","repoName":"Tech-Realm/space-web-development-public","path":"hero-section","spec":"# Hero section (video background)\n\n## Goal\nThe first screen of a landing page: one clear promise, one primary action, and motion that adds mood without hurting load time, readability or accessibility. Passes on a 390 px phone and on desktop, with and without reduced motion.\n\n## Steps\n1. Copy `code/` (index.html hero block, style.css, hero.js, media/).\n2. Replace the demo loop: encode your clip to both WebM (VP9) and MP4 (H.264), 6-12 s, no audio, <= 2-4 MB, 1280-1920 px wide:\n   `ffmpeg -i in.mp4 -an -vf scale=1600:-2 -c:v libvpx-vp9 -b:v 0 -crf 38 hero-loop.webm` and\n   `ffmpeg -i in.mp4 -an -vf scale=1600:-2 -c:v libx264 -crf 26 -preset slow -movflags +faststart hero-loop.mp4`.\n   Export a poster from the first frame (`-frames:v 1 hero-poster.jpg`) and preload it.\n3. List WebM first, MP4 second (Chromium without proprietary codecs needs WebM; Safari takes MP4).\n4. Keep the manual loop in `hero.js`: no `loop` attribute; on `ended` hide, wait 100 ms, rewind, play; the rAF tick keeps opacity 0 for the first and last 0.5 s so the cut is invisible.\n5. Keep the scrim gradient; check headline contrast against the brightest frame.\n6. Headline 6-10 words, `max-width: 14ch`, fluid `clamp()` size; sub line <= 25 words; CTA pair = primary + ghost.\n7. Run the outcome checks; then check LCP (poster or headline should be the LCP element).\n\n## Edge cases\n- Autoplay blocked (iOS Low Power, data saver): the poster stays; nothing breaks.\n- `prefers-reduced-motion: reduce` or Save-Data: never start the video; entrance animation off.\n- Off-screen or background tab: pause (IntersectionObserver + visibilitychange) to save battery.\n- `100svh` for mobile browser chrome; avoid `100vh` jumps.\n- Long localized headlines: `overflow-wrap: break-word` and the headline-fits-viewport check.\n\n## Don'ts\n- Never hotlink NovaMotion or other host media in production; download and re-encode into the project.\n- No autoplay with sound; no `crossorigin` games; no video without a pause control when it plays > 5 s.\n- Do not put text inside the video; real text stays HTML for SEO and accessibility.\n- Do not lazy-load the poster or the hero headline font.\n","files":["CHANGELOG.md","code/_shots/shot-1280-rm.png","code/_shots/shot-1280.png","code/_shots/shot-390-rm.png","code/_shots/shot-390.png","code/hero.js","code/index.html","code/media/hero-loop.mp4","code/media/hero-loop.webm","code/media/hero-poster.jpg","code/style.css","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/fixtures/steps.json","outcome/results.json","pack.yaml","refs/refs.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use web-development-public/hero-section","mcp":"get_pack web-development-public/hero-section","url":"https://logicpacks.io/packs/web-development-public/hero-section"},{"id":"web-development-public/landing-page-patterns","space":"web-development-public","name":"landing-page-patterns","version":"1.0.0","category":"build","summary":"Complete SaaS landing page in plain HTML/CSS/JS with the proven section order (nav, hero + product shot, logos, features, how it works, pricing with monthly/yearly toggle, testimonials, FAQ, CTA band, footer), SEO meta and structural checks.","level":"L1","env":[],"tools":["python3","playwright-python","chromium"],"checks":1,"routes":["static-local"],"reliability":{"ok":9,"total":9},"repo":"https://github.com/Tech-Realm/space-web-development-public","repoName":"Tech-Realm/space-web-development-public","path":"landing-page-patterns","spec":"# Landing page patterns\n\n## Goal\nA conversion-focused landing page an agent can adapt in one pass: the section order that answers a visitor's questions in sequence (what is it, who uses it, what does it do, how do I start, what does it cost, can I trust it, what if), with one primary action repeated, real HTML text, and checks for structure and mobile layout.\n\n## Steps\n1. Copy `code/` and rewrite the copy top to bottom. Hero: outcome-first headline (<= 8 words), one-sentence how, primary + secondary CTA, risk reducer line (free tier, no card).\n2. Product shot: replace the CSS mock with a real screenshot (`<img width height alt>` or `<picture>` with AVIF/WebP), never a stock illustration.\n3. Proof: logos only of real customers (or remove the strip); quotes with role + company type if names are not cleared.\n4. Features: 6 items max, each a benefit headline + one line. How it works: 3 steps.\n5. Pricing: 3 plans, middle one featured; prices in `data-monthly` / `data-yearly`; toggle buttons use `aria-pressed`.\n6. FAQ: `<details>/<summary>` (works without JS, accessible). Answer objections from sales calls.\n7. Repeat the primary CTA in the hero, featured plan and final band; nothing else competes in color.\n8. Set title, meta description, og tags; one `h1`; headings never skip a level. Run the outcome checks.\n\n## Edge cases\n- No pricing yet: replace the section with a \"Talk to us\" card; do not show fake prices.\n- Very long plan feature lists: cap at 5 bullets and link to a comparison page.\n- Sticky nav + anchor links: add `scroll-padding-top` if the nav is taller than 60 px.\n- Right-to-left languages: use logical properties when porting (margin-inline, padding-inline).\n\n## Don'ts\n- No fake numbers, fake logos or invented testimonials in production copy.\n- No more than one primary CTA style per screen.\n- No auto-playing carousels for testimonials.\n- Do not copy layout or copy from the ln-dev7 or Internal Gallery references.\n","files":["CHANGELOG.md","code/_shots/shot-1280.png","code/_shots/shot-390.png","code/index.html","code/landing.js","code/style.css","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/fixtures/steps.json","outcome/results.json","pack.yaml","refs/refs.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use web-development-public/landing-page-patterns","mcp":"get_pack web-development-public/landing-page-patterns","url":"https://logicpacks.io/packs/web-development-public/landing-page-patterns"},{"id":"web-development-public/minimal-website","space":"web-development-public","name":"minimal-website","version":"1.0.0","category":"build","summary":"Editorial one-page site (portfolio, studio or solo product) in plain HTML/CSS: sticky translucent bar, display statement, numbered work list, about with facts, big contact link with copy-to-clipboard, automatic dark mode. No framework, no webfont.","level":"L1","env":[],"tools":["python3","playwright-python","chromium"],"checks":2,"routes":["static-local"],"reliability":{"ok":8,"total":8},"repo":"https://github.com/Tech-Realm/space-web-development-public","repoName":"Tech-Realm/space-web-development-public","path":"minimal-website","spec":"# Minimal website\n\n## Goal\nA one-page site that feels designed with almost nothing: one typeface (system stack), one accent color, generous whitespace, strict alignment. Loads instantly, reads well on a phone, and gets the visitor to the contact line.\n\n## Steps\n1. Copy `code/` and replace the copy: one statement headline (12-18 words, `max-width: 18ch`), 3 meta facts, 3-6 work items, an about paragraph with 3 facts, a contact email.\n2. Tune tokens in `:root`: `--bg`, `--fg`, `--muted`, `--line`, `--accent`, `--pad`, `--max`. Dark mode comes from `prefers-color-scheme`.\n3. Keep the rhythm: section label (small caps) -> content -> 96-120 px gap; every section starts with a 1 px rule.\n4. Work list rows are links: index, title, kind/year, arrow. Hover shifts the row 8 px and colors it with the accent. On phones the kind moves under the title.\n5. Contact: big mailto link with `overflow-wrap: anywhere` (long emails must not overflow), plus a Copy email button with an aria-live status.\n6. Set `<title>` and meta description; run the outcome checks.\n\n## Edge cases\n- Long names or emails at 390 px: fluid `clamp()` type and `overflow-wrap` prevent horizontal scroll.\n- `color-mix()` on the sticky bar needs a modern browser; older ones fall back to a transparent bar (still readable).\n- Clipboard API blocked (http, iframe): fallback message shows the address to copy by hand.\n\n## Don'ts\n- No more than one accent color and one typeface family.\n- No carousels, parallax or entrance animations on a minimal site.\n- Do not center everything; left-align on a grid.\n- Do not copy text, layout code or images from the Internal Gallery mirrors.\n","files":["CHANGELOG.md","code/_shots/shot-1280-rm.png","code/_shots/shot-1280.png","code/_shots/shot-390-rm.png","code/_shots/shot-390.png","code/index.html","code/site.js","code/style.css","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/fixtures/steps.json","outcome/results.json","pack.yaml","refs/refs.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use web-development-public/minimal-website","mcp":"get_pack web-development-public/minimal-website","url":"https://logicpacks.io/packs/web-development-public/minimal-website"},{"id":"web-development-public/motion-background","space":"web-development-public","name":"motion-background","version":"1.0.0","category":"build","summary":"Three drop-in motion backgrounds behind real content (CSS gradient mesh, WebGL fbm-noise shader with fallback and capped DPR, seamless video loop) that pause off-screen and in hidden tabs, stop under reduced motion and share one Pause motion control.","level":"L1","env":[],"tools":["python3","playwright-python","chromium","ffmpeg (optional)"],"checks":1,"routes":["static-local"],"reliability":{"ok":7,"total":7},"repo":"https://github.com/Tech-Realm/space-web-development-public","repoName":"Tech-Realm/space-web-development-public","path":"motion-background","spec":"# Motion background\n\n## Goal\nGive a section mood with motion that costs little: no layout jank, no battery drain off-screen, readable text on top, and an off switch. Pick the cheapest variant that achieves the look.\n\n## Steps\n1. Choose a variant:\n   - CSS mesh (`.mesh`): no JS, transform-only keyframes, blur on the container. Default choice.\n   - WebGL shader (`#shader-canvas`): when you need organic flow; renders at 0.75x size with DPR capped at 1.5.\n   - Video loop (`[data-bg-video]`): when you have footage (e.g. a NovaMotion background loop, downloaded and re-encoded to WebM + MP4, <= 3 MB).\n2. Copy the section markup, the matching CSS block and `backgrounds.js` (each part is independent; delete the parts you do not use).\n3. Content sits above the background (`isolation: isolate` on the section, background at `z-index: -1/-2`, scrim for video).\n4. Keep the lifecycle: IntersectionObserver marks sections `is-offscreen`; shader rAF and video playback only run while visible, tab visible, and motion is on. The shader always draws one still frame so it never shows blank.\n5. Keep the Pause motion control (aria-pressed) when anything moves for more than 5 seconds.\n6. Run the outcome checks.\n\n## Edge cases\n- No WebGL (old devices, blocked GPU): canvas keeps its CSS gradient (`data-mode=\"fallback\"`).\n- Low-end Android: lower the shader scale (0.5) or the fbm octaves (5 -> 3).\n- Safari blend modes: `mix-blend-mode: screen` on blurred blobs is fine; avoid `backdrop-filter` stacked on top of the mesh.\n- Light themes: drop blob opacity to ~0.45 and use multiply instead of screen.\n\n## Don'ts\n- Never animate width/height/top/left or filter values per frame; transform and opacity only.\n- No full-DPR shader canvases on 3x phones.\n- Do not run more than one heavy background in view at the same time.\n","files":["CHANGELOG.md","code/_shots/shot-1280-rm.png","code/_shots/shot-1280.png","code/_shots/shot-390-rm.png","code/_shots/shot-390.png","code/backgrounds.js","code/index.html","code/media/loop-poster.jpg","code/media/loop.mp4","code/media/loop.webm","code/style.css","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/fixtures/steps.json","outcome/results.json","pack.yaml","refs/refs.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use web-development-public/motion-background","mcp":"get_pack web-development-public/motion-background","url":"https://logicpacks.io/packs/web-development-public/motion-background"},{"id":"web-development-public/navbar-header","space":"web-development-public","name":"navbar-header","version":"1.0.0","category":"build","summary":"Sticky site header that turns solid with a blur on scroll, hides on scroll down and returns on scroll up, plus an accessible mobile drawer (aria-expanded, Esc to close, focus moves in). Plain HTML/CSS/JS.","level":"L1","env":[],"tools":["python3","playwright-python","chromium"],"checks":1,"routes":["static-local"],"reliability":{"ok":6,"total":6},"repo":"https://github.com/Tech-Realm/space-web-development-public","repoName":"Tech-Realm/space-web-development-public","path":"navbar-header","spec":"# Navbar / header\n\n## Goal\nA header that works on every page of a marketing site: readable over a hero image or video, solid once the user scrolls, out of the way while reading, and fully usable on a 390 px phone with a keyboard or screen reader.\n\n## Steps\n1. Copy `code/index.html` (header markup only), `code/style.css` (the `.site-header` to `.nav-drawer` rules) and `code/nav.js`.\n2. Set brand name, links and the primary CTA. Keep at most 5 top-level links; move the rest into the footer.\n3. Tune the tokens at the top of `style.css`: `--bg`, `--fg`, `--accent`, `--header-h`.\n4. Keep the three states driven by data attributes: `data-state=\"top|scrolled\"` (transparent vs solid + blur after 24 px) and `data-hidden` (hide on scroll down past 240 px, show on any scroll up).\n5. Mobile (<= 860 px): links and actions collapse into the toggle. The toggle sets `aria-expanded`, swaps its label, opens `#nav-drawer`, locks body scroll and moves focus to the first link. Esc closes and returns focus to the toggle; tapping a link closes it.\n6. Add `html { scroll-padding-top }` equal to the header height so anchor links are not hidden under the fixed header.\n7. Run the outcome checks.\n\n## Edge cases\n- Header over a light hero: start with dark text or add a subtle top gradient; test contrast in the `top` state.\n- Never hide the header while the drawer is open, near the top of the page, or with `prefers-reduced-motion: reduce`.\n- iOS Safari: `backdrop-filter` needs the `-webkit-` prefix; keep a semi-opaque background as the fallback.\n- Resize from mobile to desktop with the drawer open: the media-query listener closes it.\n- Long brand names: the brand must not push the toggle off-screen at 390 px (no horizontal scroll check).\n\n## Don'ts\n- No hamburger on desktop when the links fit.\n- No duplicate controls for the same job (one menu button, one CTA).\n- Do not animate layout properties on scroll (only transform and colors); do not attach unthrottled scroll handlers (use rAF).\n","files":["CHANGELOG.md","code/_shots/shot-1280-rm.png","code/_shots/shot-1280.png","code/_shots/shot-390-rm.png","code/_shots/shot-390.png","code/index.html","code/nav.js","code/style.css","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/fixtures/steps.json","outcome/results.json","pack.yaml","refs/refs.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use web-development-public/navbar-header","mcp":"get_pack web-development-public/navbar-header","url":"https://logicpacks.io/packs/web-development-public/navbar-header"},{"id":"web-development-public/text-ui-animations","space":"web-development-public","name":"text-ui-animations","version":"1.0.0","category":"build","summary":"Dependency-free text and UI animation kit driven by data attributes: split-word reveal on scroll, typewriter, scramble, seamless marquee, eased counters, magnetic button, draw-in underline. Accessible labels kept, everything static under reduced motion.","level":"L1","env":[],"tools":["python3","playwright-python","chromium"],"checks":1,"routes":["static-local"],"reliability":{"ok":6,"total":6},"repo":"https://github.com/Tech-Realm/space-web-development-public","repoName":"Tech-Realm/space-web-development-public","path":"text-ui-animations","spec":"# Text and UI animations\n\n## Goal\nSmall, reusable motion that makes a page feel alive without a library: each effect is one data attribute, uses only transform/opacity (or text content), keeps the real text accessible, and turns off under `prefers-reduced-motion`.\n\n## Steps\n1. Copy `code/anim.css` and `code/anim.js` (demo.css is only the showcase).\n2. Mark up elements:\n   - `data-split` on a heading: words rise in when 30% visible (stagger 45 ms per word).\n   - `data-type='[\"a\",\"b\"]'` on a span: types and deletes words in a loop.\n   - `data-scramble` on short text (< 40 chars): glyphs resolve left to right on enter.\n   - `data-marquee` wrapper with `.marquee-track` list: items are cloned once (clones `aria-hidden`), loop at `--speed`, pause on hover/focus.\n   - `data-count=\"1280\"` (+ `data-decimals`, `data-prefix`, `data-suffix`): eased count-up on enter, ends on the exact value.\n   - `data-magnetic` on a button: follows a fine pointer by 25-35%.\n   - `.ul` on a link: underline draws in on hover/focus.\n3. Use at most 2-3 effects per page; reserve split reveal for the hero or section titles.\n4. Run the outcome checks.\n\n## Edge cases\n- Screen readers: split and scramble set `aria-label` with the real text; split pieces are `aria-hidden`.\n- SEO: the initial HTML contains the final text (counters render the final value under reduced motion; set the final value in HTML if you need it without JS).\n- Marquee with few items on wide screens: add items until one copy is wider than the viewport.\n- Fonts with ligatures in scramble: `font-variant-ligatures: none` avoids jitter.\n- Touch devices: magnetic effect is skipped (`pointer: fine` only).\n\n## Don'ts\n- No animation on body paragraphs or long text.\n- Do not animate letter-by-letter on headings longer than ~10 words (too slow, hurts LCP perception).\n- Never loop the typewriter on critical copy (the CTA or the value proposition).\n- Do not use the annnimate or prompt-motion code; they are reference only.\n","files":["CHANGELOG.md","code/_shots/shot-1280-rm.png","code/_shots/shot-1280.png","code/_shots/shot-390-rm.png","code/_shots/shot-390.png","code/anim.css","code/anim.js","code/demo.css","code/index.html","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/fixtures/steps.json","outcome/results.json","pack.yaml","refs/refs.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use web-development-public/text-ui-animations","mcp":"get_pack web-development-public/text-ui-animations","url":"https://logicpacks.io/packs/web-development-public/text-ui-animations"},{"id":"workflows-public/bank-csv-stripe-pnl","space":"workflows-public","name":"bank-csv-stripe-pnl","version":"1.0.0","category":"workflows","summary":"Reconcile a bank CSV against Stripe payouts and produce a P&L report PDF","level":"L1","env":[],"tools":["python3"],"checks":2,"routes":["lp-workflow"],"reliability":{"ok":6,"total":6},"repo":"https://github.com/Tech-Realm/space-workflows-public","repoName":"Tech-Realm/space-workflows-public","path":"bank-csv-stripe-pnl","spec":"# bank-csv-stripe-pnl\n\n## Goal\nReconcile a bank CSV against Stripe payouts and produce a P&L report PDF.\n\n## Steps\n1. `accounting/bank-reconciliation` (reconcile)\n2. `accounting/financial-statements` (pnl)\n3. `documents/report` (report)\n4. Final checks: report-pdf, result.\n\nRun: `logicpacks workflow run workflows-public/bank-csv-stripe-pnl --with name=value ...`\n\n## Edge cases\n- Stripe payouts CSV maps to the ledger columns date, amount, ref (payout id). Sending the PDF is a separate approved step (lp notify / email-send).\n\n## Don'ts\n- Don't email financials without approval.\n","files":["CHANGELOG.md","code/README.md","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/results.json","pack.yaml","spec/SPEC.md","spec/source.md","workflow.yaml"],"install":"logicpacks pack use workflows-public/bank-csv-stripe-pnl","mcp":"get_pack workflows-public/bank-csv-stripe-pnl","url":"https://logicpacks.io/packs/workflows-public/bank-csv-stripe-pnl"},{"id":"xr-glasses-and-headsets-public/spatial-video-sbs","space":"xr-glasses-and-headsets-public","name":"spatial-video-sbs","version":"1.0.0","category":"xr-games","summary":"Make stereo 3D video for headsets and XR glasses: combine left/right camera clips into full or half side-by-side MP4, and know the MV-HEVC route for Vision Pro spatial video","level":"L1","env":[],"tools":["ffmpeg","ffprobe","bash"],"checks":2,"routes":["ffmpeg-local","apple-mv-hevc"],"reliability":{"ok":4,"total":4},"repo":"https://github.com/Tech-Realm/space-xr-glasses-and-headsets-public","repoName":"Tech-Realm/space-xr-glasses-and-headsets-public","path":"spatial-video-sbs","spec":"# spatial-video-sbs\n\n## Goal\nA stereo video file that plays as 3D in headset players and XREAL 3D mode: frame-synced left/right, correct SBS layout and resolution.\n\n## Steps\n1. Sync the two clips (same start frame; use a clap or flash). Trim with `-ss` per input if needed.\n2. Full SBS (each eye full width): `bash code/make_sbs.sh left.mp4 right.mp4 out.mp4 full`.\n3. Half SBS (each eye squeezed, same width as one eye; what many glasses' 3D modes expect): `... half`.\n4. XREAL Air on a Mac/phone: 3D SBS mode on the glasses turns 3840x1080 or half-SBS 1920x1080 into 3D; play full screen.\n5. Vision Pro spatial video is MV-HEVC: use Apple's AVFoundation MV-HEVC encoding (macOS 14+/Xcode) or a converter that writes MV-HEVC; keep the SBS master.\n6. Check: `bash code/make_sbs.sh` on synthetic inputs, then ffprobe the size.\n\n## Edge cases\n- Different frame rates/resolutions: the script scales and sets fps to the left clip's values.\n- Large disparity hurts: keep cameras ~6.5 cm apart for people-scale scenes.\n\n## Don'ts\n- Don't swap eyes (left must be on the left).\n- Don't upload stereo clips of people without consent.\n","files":["CHANGELOG.md","code/make_sbs.sh","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/results.json","pack.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use xr-glasses-and-headsets-public/spatial-video-sbs","mcp":"get_pack xr-glasses-and-headsets-public/spatial-video-sbs","url":"https://logicpacks.io/packs/xr-glasses-and-headsets-public/spatial-video-sbs"},{"id":"xr-glasses-and-headsets-public/webxr-hand-tracking","space":"xr-glasses-and-headsets-public","name":"webxr-hand-tracking","version":"1.0.0","category":"xr-games","summary":"Show the user's tracked hands (25 joints each) in a WebXR scene and detect a pinch, with a simulated hand outside a headset for testing","level":"L1","env":[],"tools":["python3","playwright-python","chromium"],"checks":1,"routes":["static-local"],"reliability":{"ok":7,"total":7},"repo":"https://github.com/Tech-Realm/space-xr-glasses-and-headsets-public","repoName":"Tech-Realm/space-xr-glasses-and-headsets-public","path":"webxr-hand-tracking","spec":"# webxr-hand-tracking\n\n## Goal\nHand joints drawn every frame from `XRHand`, a pinch gesture (thumb tip to index tip under 2 cm) firing events, and the same code testable headless with recorded joint data.\n\n## Steps\n1. Request `hand-tracking` as an optional feature (see `webxr-session-starter`).\n2. Each frame read 25 joint poses per hand with `frame.getJointPose` (three.js: `renderer.xr.getHand(i).joints`).\n3. Pinch = distance(thumb-tip, index-finger-tip) < 0.02 m with hysteresis (release above 0.035 m).\n4. Outside XR the page plays `fixtures/hand.json` (25 joints) through the same drawing and pinch code.\n5. Check: `python3 ../tools/webgl_check.py code --js \"window.__hand.joints === 25\"`.\n\n## Edge cases\n- Joint order follows the WebXR Hand Input spec (wrist first, then thumb to little finger).\n- Tracking drops when hands leave the cameras' view: fade joints instead of snapping.\n\n## Don'ts\n- Don't rely on hand tracking only: support controllers too.\n- Don't store or upload raw hand data (biometric-like).\n","files":["CHANGELOG.md","code/hand.json","code/index.html","code/main.js","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/results.json","pack.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use xr-glasses-and-headsets-public/webxr-hand-tracking","mcp":"get_pack xr-glasses-and-headsets-public/webxr-hand-tracking","url":"https://logicpacks.io/packs/xr-glasses-and-headsets-public/webxr-hand-tracking"},{"id":"xr-glasses-and-headsets-public/webxr-session-starter","space":"xr-glasses-and-headsets-public","name":"webxr-session-starter","version":"1.0.0","category":"xr-games","summary":"Start an immersive WebXR VR or AR session from a button with feature detection, and fall back to an inline 3D view when XR is unavailable","level":"L1","env":[],"tools":["python3","playwright-python","chromium"],"checks":1,"routes":["static-local"],"reliability":{"ok":7,"total":7},"repo":"https://github.com/Tech-Realm/space-xr-glasses-and-headsets-public","repoName":"Tech-Realm/space-xr-glasses-and-headsets-public","path":"webxr-session-starter","spec":"# webxr-session-starter\n\n## Goal\nOne page that works everywhere: on a headset it offers Enter VR / Enter AR (only for supported modes), elsewhere it renders the same scene inline with no errors.\n\n## Steps\n1. Copy `code/` and serve over HTTPS (WebXR needs a secure context; localhost is allowed for development).\n2. The page asks `navigator.xr.isSessionSupported()` for `immersive-vr` and `immersive-ar` and only shows buttons for supported modes.\n3. Sessions start from a click (user activation) with `local-floor` reference space and `hand-tracking` as an optional feature.\n4. On session end the inline loop resumes.\n5. Check: `python3 ../tools/webgl_check.py code --js \"window.__xr.mode === 'inline'\"`.\n6. On a headset: open the page in Quest Browser / Vision Pro Safari and enter VR (rubric).\n\n## Edge cases\n- Vision Pro Safari: immersive-vr only (no immersive-ar for web pages at the time of writing).\n- Quest Browser supports immersive-ar (passthrough).\n- Reference space `local-floor` can be missing: the template falls back to `local`.\n\n## Don'ts\n- Don't request a session on page load (it is rejected without a user gesture).\n- Don't make features required unless the experience cannot work without them.\n","files":["CHANGELOG.md","code/index.html","code/main.js","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/results.json","pack.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use xr-glasses-and-headsets-public/webxr-session-starter","mcp":"get_pack xr-glasses-and-headsets-public/webxr-session-starter","url":"https://logicpacks.io/packs/xr-glasses-and-headsets-public/webxr-session-starter"},{"id":"xr-glasses-and-headsets-public/xr-target-readiness","space":"xr-glasses-and-headsets-public","name":"xr-target-readiness","version":"1.0.0","category":"xr-games","summary":"Check a web app is ready for Quest Browser and Vision Pro Safari (HTTPS, user-gesture session start, reference-space fallback, permissions policy, viewport) before testing on a headset","level":"L2","env":[],"tools":["python3"],"checks":2,"routes":["local-lint"],"reliability":{"ok":7,"total":7},"repo":"https://github.com/Tech-Realm/space-xr-glasses-and-headsets-public","repoName":"Tech-Realm/space-xr-glasses-and-headsets-public","path":"xr-target-readiness","spec":"# xr-target-readiness\n\n## Goal\nCatch the common reasons a WebXR page fails on a headset with a static lint, so headset testing time is spent on the experience, not setup.\n\n## Steps\n1. Run `python3 code/xr_ready.py <site-dir>` on the built site.\n2. Fix every FAIL: secure origin, session from a click handler, `local-floor` fallback to `local`, `xr-spatial-tracking` allowed in the Permissions-Policy (needed when the page is in an iframe), a viewport meta tag.\n3. Deploy (Cloudflare Pages is fine) and open on the headset (Quest: Meta Quest Browser; Vision Pro: Safari).\n4. For local testing on Quest use `adb reverse tcp:8080 tcp:8080` so http://localhost works (secure context).\n\n## Edge cases\n- Embedded in an iframe: the parent must `allow=\"xr-spatial-tracking\"`.\n- Vision Pro: WebXR immersive-vr with natural input (gaze + pinch arrives as transient-pointer).\n\n## Don'ts\n- Don't test only in the desktop WebXR emulator.\n- Don't serve over plain http from a LAN IP (not a secure context).\n","files":["CHANGELOG.md","code/site/_headers","code/site/app.js","code/site/index.html","code/xr_ready.py","outcome/EVIDENCE.md","outcome/checks.yaml","outcome/fixtures/bad-site/index.html","outcome/results.json","pack.yaml","spec/SPEC.md","spec/source.md"],"install":"logicpacks pack use xr-glasses-and-headsets-public/xr-target-readiness","mcp":"get_pack xr-glasses-and-headsets-public/xr-target-readiness","url":"https://logicpacks.io/packs/xr-glasses-and-headsets-public/xr-target-readiness"}],"usage":{"since":"2026-12-05","generated":1796462308,"rules":"unique accounts or anonymised addresses per pack per day; public-approved packs only; counted when a pack is fetched by lp or the LogicPacks MCP connector","packs":{"3d-blender-animation-public/3d-printing":{"total":1,"24h":1,"7d":1,"prev_7d":0,"daily":[["2026-12-05",1]]}}}}