drolu/agent-skills/neuralos-complete

Claude Code and agent skill by drolu/agent-skills

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

The complete, all-inclusive neuralOS operations manual — install on any platform (macOS/Linux/Windows), configure any data source (CSV, JSON, logs, databases, APIs, Excel, unstructured text), build instances end-to-end (profile → model → generate → verify → extend), deploy into microVM sandboxes (BoxLite, Microsandbox, or bare), operate as services with health checks and monitoring, manage lifecycle (upgrade, rollback, backup, scale), integrate via OpenAPI/MCP/REST, and troubleshoot every known failure mode. Use when the user mentions neuralOS, needle, on-device tool-calling, data instances, or wants to build/deploy/manage any neuralOS-powered application.

Install

npx vskill@latest install drolu/agent-skills/neuralos-complete

SKILL.md

The same SKILL.md was published earlier as drolu/agent-skills/neuralos-complete.

neuralOS — Complete Operations Manual

neuralOS turns any data source into a private, offline question-answering service. A 121M-parameter model (~35 MB, CPU-only, ~95 MB RAM) reads your data's actual shape and answers plain-English questions — no cloud, no API keys, no GPU. This manual covers everything from first install to production operations on any platform.

The mental model in one paragraph

neuralOS is a semantic resolver, not a chat model. It reads messy human intent and emits typed, verified queries against your data. Everything around it — the retrieval front-end, the verification gates, the audit trail, the health checks — exists to make those queries reliable. The model doesn't chat; it routes, extracts, and abstains (returns empty when no probe matches). The system layer catches what the model can't, and the verification gates prove what it does.


The full stack

L5 YOUR PRODUCT dashboards, chatbots, alerts, compliance reports
L4 INTEGRATION OpenAPI · MCP · REST · webhooks · A2A mesh
L3 FRAMEWORK chains · meta-routing · HITL · guardrails
L2 RUNTIME neuralosd supervisor · engine pool · scheduler ·
memory (needle embeddings) · metrics
L1 KERNEL @probe · router · ask.py · serve.py · verify.py
L0 ENGINE needle 3 (121M, 2-bit SAN, grammar-caged, ~35 MB)
HOST BoxLite microVM · Microsandbox · bare metal

Phase 0 — Install (all platforms)

macOS Apple Silicon
bash
# Python 3.11–3.13 (NOT 3.14 — wheels missing)
python3.12 -m venv ~/neuralos-venv
source ~/neuralos-venv/bin/activate
pip install --upgrade pip
pip install neuralos pydantic
# Optional: BoxLite (microVM hosting)
pip install boxlite
# Optional: Microsandbox (alternative runtime)
curl -fsSL https://install.microsandbox.dev | sh
# Verify
python3 -c "import needle; print('neuralOS', needle.__version__)"
python3 -c "import boxlite; print('boxlite', boxlite.__version__)"
sysctl -n kern.hv_support # → 1 = Hypervisor.framework OK
Linux x86_64 / ARM64
bash
# Same Python setup (3.11–3.13)
python3.12 -m venv ~/neuralos-venv
source ~/neuralos-venv/bin/activate
pip install neuralos pydantic
# Verify KVM
[ -e /dev/kvm ] && echo "KVM OK" || echo "Enable KVM in BIOS/kernel modules"
Windows (WSL2)
powershell
wsl --install
# Inside WSL2:
python3.12 -m venv ~/neuralos-venv
source ~/neuralos-venv/bin/activate
pip install neuralos pydantic
# Verify KVM passthrough
[ -e /dev/kvm ] && echo "KVM OK"
Verify the model works
bash
python3 -c "
import os
os.environ['NEEDLE_TELEMETRY'] = '0'
os.environ['DO_NOT_TRACK'] = '1'
import needle
print('neuralOS', needle.__version__)
"

Phase 1 — PROFILE your data source

The profiler reads the actual data (never guesses) and records every field, type, range, enum value, and sample.

Supported source types
Source kind--source formatDetects
CSV / TSVpath/to/file.csvcolumns, types, enums, ranges, samples
MySQL / Postgresmysql://user:pass@host:port/dbtables, columns, row counts, enums
SQLitesqlite:///path/to/db.sqlitesame as above
JSON / JSONLpath/to/file.jsonlnested schemas, field types
Log filespath/to/app.logline templates, capture regexes, levels
REST APIhttps://api.example.com/dataresponse shape, auth needed
Excel / XLSXpath/to/file.xlsxsheets, columns, values
Directoriespath/to/dir/per-file-pattern probes
Unstructured text--source notes.txt --kind textextraction schema via model
Run the profiler
bash
# CSV
python3 neuralos/scripts/profile_data.py --source incidents.csv --out profile.json
# MySQL database (usql CLI required)
python3 neuralos/scripts/profile_data.py \
--source mysql://admin:pass@127.0.0.1:3306/mydb --out profile.json
# JSONL
python3 neuralos/scripts/profile_data.py \
--source events.jsonl --out profile.json
# Log file
python3 neuralos/scripts/profile_data.py \
--source /var/log/app.log --out profile.json
# REST API (fetches and profiles the response)
python3 neuralos/scripts/profile_data.py \
--source https://api.example.com/v1/records --out profile.json
Read the profile before modeling

Open profile.json and check:

  • Surprising nullability — a field that should always exist but has nulls
  • Fields that are really enums — status with only 3 distinct values
  • Dates stored as strings — needs a datetime validator
  • Values with units or prefixes — "NGN46494.89" needs cleaning
  • Nested structures — JSON sources may have arrays of objects

Phase 2 — MODEL (strict Pydantic)

bash
python3 neuralos/scripts/gen_pydantic.py \
--profile profile.json --out models.py \
[--table table_name] # for database sources

The generated models.py contains strict Pydantic v2 models:

  • Types inferred from the data
  • Constraints (ge, le, pattern, Literal/Enum) from observed ranges
  • Optional where nulls occur
  • Datetime fields with multi-format parsing
  • extra="forbid" — rejects unexpected keys
  • Aliases matching the source's own field names
  • A description per field with observed statistics

Edit if the data's meaning demands it. The generator knows types; only you know that status_code = 2 means "In Progress". Add enum labels, rename cryptic columns, then proceed.


Phase 3 — GENERATE the full instance

bash
python3 neuralos/scripts/gen_needle_instance.py \
--profile profile.json \
--models models.py \
--out my_instance \
[--db-dsn "mysql://user:pass@host/db"] \
[--runtime python|engine] \
[--agent-name myfeed] \
[--table table_name]

This generates the complete instance directory:

FileRole
needle_menu.jsonprobe menu with triggers + grammar-caged arguments
bridge.pyreads the source, validates through models, returns small results
instance.pythe agentic agent (deprecated CLI — use ask.py)
ask.pymandated entry point: lexical top-K retrieval + deterministic fast path + stale-results guard + audit + cache + PII mask
serve.pystandard service: /healthz (liveness), /ready (data check), POST /ask
golden.jsongolden question bank — one per probe
CATALOG.mdhuman "what you can ask" reference
invariants.pyproperty checks (counts, non-negative money)
truth.jsonper-table SQL oracle cross-checks (database sources)
openapi.jsonOpenAPI 3.1 typed operations
mcp.jsonMCP tool manifest for AI agent hosts
graph_edges.jsonrelationship layer (if discovered)
graph_bridge.pyruntime graph traversal
verify.pyverification runner (all gates)
README.mdinstance-specific documentation
Source-specific generation

The generator auto-detects the source kind and generates the right bridge:

Source kindBridge behaviorProbes generated
DatabaseSQL via usql/bridge, parameterizedcount/query/aggregate per table
CSV/TSVdirect read, dialect sniffedpeek/filter/count/aggregate
JSON/JSONLflatten nested, direct readpeek/filter/count
Log filesline templates + capture regexesparse_tail/count_by_level/search
REST APIHTTP fetch with baked authper-resource probes
Excelopenpyxl if availableper-sheet peek
Unstructured textmodel extraction with schemaextract(record_text)

Phase 4 — VERIFY (never skip)

bash
cd my_instance
# Model coverage (must be ≥ 95%)
python3 verify.py
# Selection test (3 phrasings per probe)
python3 verify.py --full
# Truth check (probe vs direct source query)
python3 verify.py --truth
# Golden question bank (all seeded questions)
python3 verify.py --golden
# Property invariants
python3 verify.py --invariants
# Everything
python3 verify.py --full --truth --golden --invariants

The gates:

GateWhat it provesPass threshold
Model coverage% of records that parse through the model≥ 95%
Selection testCorrect probe picked for each phrasing3/3 per probe
Truth checkRelayed number == direct source query100% match
InvariantsProperty checks (counts, sums, ranges)all pass
Golden bankEvery seeded question produces results100%

Phase 5 — EXTEND (the improvement loop)

When the instance can't answer a question, it refuses honestly and logs the gap. Mine the gaps to grow the instance:

bash
# mine gated/fuzzy questions from the audit log
python3 neuralos/scripts/mine_gaps.py ask_audit.jsonl \
--menu my_instance/needle_menu.json
# lint triggers for collisions (before AND after menu changes)
python3 neuralos/scripts/lint_triggers.py my_instance/needle_menu.json
# calibrate per-probe confidence gates from the golden bank
python3 neuralos/scripts/calibrate.py \
--golden my_instance/golden.json \
--base http://localhost:8877

The improvement loop:

  1. Mine — collect refused/fuzzy questions from the audit log
  2. Propose — mine_gaps suggests new triggers for existing probes or

candidates for new probes

  1. Apply — add triggers/probes to the menu (human review)
  2. Lint — check for trigger collisions
  3. Re-verify — full suite (golden + truth + selection)

Deploy into microVM sandboxes

See the boxlite-neuralos and msb-neuralos skills for the full deployment patterns. The short version:

BoxLite (recommended for services)
bash
# Cook a template with neuralOS preinstalled
venv/bin/python - <<'PY'
import boxlite
rt = boxlite.Boxlite.default()
rt.create(boxlite.BoxOptions(
image="python:3.12-slim", auto_delete=0,
cpus=1, memory_mib=1024, disk_size_gb=6,
name="neuralos-template"))
PY
boxlite exec neuralos-template -- pip install neuralos pydantic pymysql
boxlite stop neuralos-template # disk persists
# Clone for each deployment
boxlite new my-app --fork neuralos-template
Microsandbox (fork a running machine)
bash
msb create --name neuralos-tpl python:3.12-slim
msb exec neuralos-tpl -- pip install neuralos pydantic
msb snapshot create --sandbox neuralos-tpl --full -o template.msb
msb snapshot restore template.msb --name my-app --forked

Operating a deployed instance

Start / stop
bash
# BoxLite
boxlite start my-instance
boxlite stop my-instance # processes die, disk persists
# Inside the box (relaunch after start)
boxlite exec my-instance -- python3 /opt/instance/serve.py --port 8877 &
Ask questions
bash
# CLI (one-shot)
boxlite exec my-instance -- python3 /opt/instance/ask.py "how many records"
# HTTP (resident daemon)
curl -X POST http://localhost:8877/ask \
-H "Content-Type: application/json" \
-d '{"question": "how many records"}'
Monitor
bash
boxlite exec my-instance -- cat /opt/instance/ask_audit.jsonl | tail -5
boxlite exec my-instance -- python3 -c "
import json
for line in open('/opt/instance/ask_audit.jsonl'):
r = json.loads(line)
print(r.get('probe'), r.get('confidence'), r.get('latency_ms'))
"
Backup
bash
# Export the box as a portable archive
venv/bin/python -c "
import boxlite, asyncio
async def main():
rt = boxlite.Boxlite.default()
box = await rt.get('my-instance')
await box.export(dest='backup.msb')
asyncio.run(main())
"

Sizing guide (measured)

Instance typevCPURAMDiskObserved
neuralOS only11 GB4 GBidle 178 MB, peak 357 MB, model 95 MB
+ MariaDB data source11 GB6 GB+150 MB for MariaDB, disk +157 MB
Multi-tenant (10 sandboxes)24 GB20 GBshared engine, per-box isolation

Failure modes and fixes

This is the start of the file. Read the full SKILL.md on GitHub.

Security

  • Security scanPassed, 95 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
5

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/drolu/agent-skills/neuralos-complete/badge)](https://verified-skill.com/skills/drolu/agent-skills/neuralos-complete)

Something wrong with this skill or its page? Tell us.