harness-self-improve
Skill0 starsChanged 8 days agoMITView on GitHub
Run Syntopik's closed-loop self-audit, SHA-256 backup, regression tests, 60-day cognitive benchmarks, longitudinal policy replay calibration, and 40-case TutorBench pedagogical linting on "audit yourself".
In this repository18 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- chapter-autopilotSkill
- exam-simulatorSkill
- grade-handwritingSkill
- ingest-chapterSkill
- knowledge-graphSkill
- manim-animatorSkill
- organic-chemistry-tutorSkill
- physical-chemistrySkill
- physics-circuits-and-unitsSkill
- practice-drillSkill
- revision-sheetsSkill
- subagent-orchestratorSkill
- teach-chapterSkill
- topic-onboardingSkill
- universal-pdf-studySkill
- visual-and-demoSkill
The file
We split this skill into the rules it gives an agent
7 rules. About 0 are common, 2 are distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 11
Use this skill to inspect Syntopik health across all harnesses, mine real learning friction from persistent ledgers, implement 1–3 bounded …
- Very specific: line 19
Every self-improvement pass MUST preserve all Section 1 invariants in SELF_IMPROVEMENT_BLUEPRINT.md:
- Distinctive: line 24
Zero Heavy Local AI / ML Weights: never install PyTorch, FAISS, LightRAG, local VLMs, or Docker stacks.
- Very specific: line 29
Sandboxed CLI & Pedagogical Invariants: every mutating CLI honors SYNT_WORKSPACE / --kg-dir / --chapters-dir / --no-sync (MLH_* fallbacks) …
- Distinctive: line 54
Write explicit disjoint file ownership and interface contracts before editing.
- Very specific: line 57
Add sandboxed unittest tests to the matching tests/test_<area>.py module (shared fixtures in tests/_helpers.py.
- Very specific: line 58
Run an independent read-only verifier purely in /tmp:
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Syntopik Self-Improvement — Closed-Loop Audit, Backup & Upgrade Protocol
Use this skill to inspect Syntopik health across all harnesses, mine real learning friction from persistent ledgers, implement 1–3 bounded upgrades, verify every engineering AND pedagogical invariant in /tmp, and record the audit cleanly.
(Portable CLI: use syntopik doctor / syntopik run <engine> in attached repos, or .venv/bin/python -B scripts/<engine>.py in direct clones.)
Non-Negotiable Architecture & Privacy Invariants
Every self-improvement pass MUST preserve all Section 1 invariants in SELF_IMPROVEMENT_BLUEPRINT.md:
- Multi-Harness Official Execution: native primitives across Antigravity 2.0 (
GEMINI.md,.agents/), Claude Code (CLAUDE.mdstarting with@AGENTS.md,.claude/,.claude-plugin/,.mcp.json), Gemini CLI (gemini-extension.json), OpenAI Codex / T3 Code (AGENTS.md,.codex/), and universal agents (BOOTSTRAP.md,syntopikCLI). Zero unofficial CLI proxies or token scraping. - GitHub-Clean Learner Privacy & Zero Personal Paths:
- Learner data (
knowledge-graph/{propositions,chains,revlog,mistakes,reading-queue,exam-attempts,forks,arenas,decisions,derivations,evidence-ledger,viva-sessions}.jsonl,learner-profile.json,whiteboard-session.json,sync-state.json,study-config.json,fsrs-params.json,review-queue.md,graph-data.js,chapters/*.md,chapters/*-tracker.json,exams/*.html,sources/*) stays gitignored and untouched on disk; fresh clones auto-bootstrap viasetup_harness.py. - Zero
/Users/<name>or hardcoded Homebrew paths (! git grep "/Users/"); resolve binaries portably viashutil.which(...).
- Learner data (
- Zero Heavy Local AI / ML Weights: never install PyTorch, FAISS, LightRAG, local VLMs, or Docker stacks; preserve bare Python 3.12+ stdlib core loop (
syntopik/— 22 modules + FSRS-6/graph/learner-psychology/Rosetta/CRDT sync), SciPy L-BFGS-B optimizer,pint==0.26.2+molmass,chempy(--no-deps), Pillow PNG captions, and portable TinyTeX lookup. - Always-On Context Budgets (Zero Skill Explosion):
GEMINI.md+AGENTS.md: zero YAML frontmatter,< 24 KBeach, v3.1 target<= 7,500 B(<= 9,500 Bhard ceiling); bothCLAUDE.mdandGEMINI.mdstart with@AGENTS.mdon line 1.CLAUDE.md: starts with@AGENTS.mdon line 1,< 45lines, zero frontmatter.- Exact 17
.agents/skills/<name>/SKILL.mdskills:name == folder, crisp<= 215chardescription(total<= 3,400 B), zero<or>angle brackets and zero.py/.mjsfilenames insidedescription.
- Sandboxed CLI & Pedagogical Invariants: every mutating CLI honors
SYNT_WORKSPACE/--kg-dir/--chapters-dir/--no-sync(MLH_*fallbacks) and emits pure JSON on--json; tutor turns obeyscripts/pedagogy_eval.py(<= 160w prose, zero sycophancy, zero VARK myths, zero option leaks,1demand/turn, Pause Law).
5-Step Closed-Loop Protocol
Step 1 — Baseline Health, Backup & Pedagogical/Cognitive Regression Gate
.venv/bin/python -B scripts/study_doctor.py --json
.venv/bin/python -B scripts/pedagogy_eval.py bench --json
.venv/bin/python -B benchmarks/syntopik_bench.py --check --json
.venv/bin/python -B -m unittest discover -s tests -v
git status --short(Before major structural upgrades when live study data exists on disk, take an external safety snapshot via .venv/bin/python -B scripts/backup_harness.py snapshot.)
Step 2 — Evidence Audit & Longitudinal Policy Replay Calibration
Inspect SELF_IMPROVEMENT_BLUEPRINT.md, knowledge-graph/harness-log.jsonl, mistakes.jsonl, propositions.jsonl, revlog.jsonl (Brier calibration & leeches), learner-profile.json, and exam-attempts.jsonl. Optionally lint recent tutor transcripts via scripts/pedagogy_eval.py lint <transcript.md> --json, and replay local chronological history on a strict 70/30 TimeSeriesSplit to check whether bounded learner_model hyperparameters improve out-of-sample composite loss (>= 0.005 gate):
syntopik calibrate-policy --json # Preview OOS replay gain
syntopik calibrate-policy --apply --json # Adopt bounded calibratedHyperparams only on OOS gain >= 0.005
python3 -B benchmarks/syntopik_bench.py --replay --workspace <dir> --json # Direct script replay (--apply to persist)Step 3 — Select Bounded Scope (1–3 Cohesive Items)
Write explicit disjoint file ownership and interface contracts before editing.
Step 4 — Implement + Independent Read-Only /tmp Verification
- Add sandboxed
unittesttests to the matchingtests/test_<area>.pymodule (shared fixtures intests/_helpers.py;tempfile.TemporaryDirectory(),-Bflag so zero__pycache__is created). - Run an independent read-only verifier purely in
/tmp:.venv/bin/python -B scripts/study_doctor.py→0 warn, 0 fail,< 500 ms.venv/bin/python -B scripts/pedagogy_eval.py bench --json→40/40TutorBench v3.0 rubric pass (andlint/check-cardon any edited prompt templates!).venv/bin/python -B benchmarks/syntopik_bench.py --check --json(orsyntopik bench --check) → 60-day multi-persona Syntopik-Eval cognitive ablation & calibration gate PASSpy_compile(SyntaxWarningas error, compiled to/tmp) acrosssyntopik/&scripts/+node --checkon all.mjsfiles.venv/bin/python -B -m unittest discover -s tests -v→100% PASS(plus barepython3core-stdlib smoke test!)- Fresh-clone simulation in
/tmp(setup_harness.py auto+study_doctor.py --core-only) wc -c GEMINI.md AGENTS.md(<= 7,500 Btarget /<= 9,500 Bceiling, zero frontmatter) +! git grep "/Users/"- Visual PNG / headless Chrome (
0console errors) inspection for any visual/UI change.
Step 5 — Record Outcome & Commit Cleanly
Append 1 JSON line to knowledge-graph/harness-log.jsonl ({id, date, type, items, summary, doctorOk, testsPassed}), update SELF_IMPROVEMENT_BLUEPRINT.md, verify zero __pycache__ and zero tracked learner files in git status --short, and make one clean git commit.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

