agentleFS
LARi-UQACLARi-UQAC/ResearchTools/.claude/skills/aider-setup/SKILL.md

aider-setup

Skill8 starsChanged 2 months agoMITView on GitHub

Set up and maintain the aider nightly local-coding pipeline: two local Ollama models (a writer that codes and tests, a reviewer that never edits) run one aider process per plan overnight, with no Claude Code involved, driven by aider-plan.ps1/aider-night.ps1 and gated by measured token budgets. Use this skill whenever the user wants to install, tune, or fix the aider kit on this machine; asks to run, resume, or debug an overnight aider plan; wants the distribution zip for students rebuilt or republished; or asks about the GPU/context-window tuning that decides num_ctx, num_gpu and num_thread for a local model. Triggers on: aider-setup, aider kit, aider nightly pipeline, run aider overnight, tune aider models, rebuild aider-kit.zip, aider-plan, aider-night.

The file

Files
SKILL.md

aider-setup — the aider nightly local-coding pipeline

Aider has no notion of Claude Code, so this is not a wrapper around it: it is a second, independent local-coding pipeline that runs at night, when Claude Code and the model it drives are both closed. The full procedure — installation, the daily-use commands, GPU/context tuning, every measured failure mode and its fix — lives in MANUAL.md; read it before changing anything here. This file is the entry point and the map of what lives where.

The three pieces, and why they have three different lifetimes

PieceKindWhen it runsNeeds Claude Code
This skillClaude Code skilldaytime, once per machine, to set up or fix the pipelineyes
R26 (plan shape) and R29 (no literal code in a plan, applies to this kit's writer model too) in ../../rules/workflows.mdrulewhenever any harness writes or executes a planno — both bind every harness that writes or runs docs/superpowers/plans/
scripts/aider-night.ps1 / .batplain cmd entry pointat night, everything else closedno

A skill is a Claude Code construct and cannot run when Claude Code is not running, which is why the nightly runner is a bare PowerShell/cmd pair rather than a skill script invoked by name.

What is in this directory

PathWhat
MANUAL.mdthe whole procedure, source of truth for a human running this
CONFIG_OLLAMA.mdthe GPU/context-window tuning guide, with its measured blocks templated per machine
EXAMPLE-PROMPT-robot.md + examples/robot-planner-plans/one worked planning prompt and the seven-plan set it produced, so a plan set that fits the token ceilings can be read rather than guessed at
config/conventions.mdthe working protocol handed to the model on every call (--read)
config/model-settings.ymlper-model settings for the writer and reviewer tags
config/context-budget.jsonevery token figure this pipeline uses, each with a _comment stating provenance (R13)
config/aider.conf.ymlthe aider config template setup.ps1 installs
config/rules.mdgenerated — never edit. Regenerated at build time by scripts/aider-rules-sync.py from the canonical .claude/rules/*.md of this repository plus config/rules-local/
config/rules-local/aider-kit.mdrules this kit adds on top of the canonical set (R27)
config/skills.json + config/skills/the stage-to-skill-bundle map (write / audit / reopen) and the bundles themselves, MIT-licensed third-party files
scripts/aider-plan.ps1 + scripts/aider-plan-core.ps1the driver (entry point) and its pure half (budget, ledger, refusals — dot-sourced, never spawns a process)
scripts/aider-night.ps1 / .batthe nightly cmd entry point: branch, run every plan, push, never merge
scripts/run-detached.ps1runs a night detached, holding a wake lock so Modern Standby does not throttle it
scripts/aider-rules-sync.pyderives config/rules.md from .claude/rules/*.md
scripts/aider-gpu-probe.py / aider-thread-probe.py / aider-ollama-config.pymeasure which (model, num_ctx) puts layers on the GPU, sweep the thread/bandwidth axes, and turn the measured numbers into a tuned Ollama tag
scripts/aider-defect-check.py + aider-defects.jsontells a reader whether a run hit one of the defect signatures this pipeline has already measured and fixed once
scripts/aider-ab.ps1the A/B test harness: fixture, snapshot, compare
scripts/ollama-tune.ps1 / .batthe tuning test a CONFIG_OLLAMA.md recommendation is built from
scripts/Test/offline suites — see ../../rules/testing.md
scripts/build/the packaging pipeline that produces the student-facing aider-kit.zip from this directory's own canonical sources. See below
install-hooks.ps1, new-project.ps1, setup.ps1, git-hooks/, project-template/what the assembled kit installs on a student's or the operator's own machine

Building the distribution zip

The kit handed to students is assembled from this skill's own files, never from a copy living elsewhere, so there is one source of truth rather than a copy that drifts. Run from scripts/build/:

$out = "$env:TEMP\kit-$(Get-Random)"
python build_kit.py       $out aider.conf.yml.saved
python finish_kit.py      $out
python newproject_ps1.py  $out
python patch_setup.py     $out
.\verify-kit-install.ps1  -Kit $out

verify-kit-install.ps1 is the gate: it installs the assembled kit into a scratch home and runs the driver from that installation, because a kit that is green on every static check can still ship a config the installed aider refuses to read — see its own header for the 2026-09-04 measurement that is why it exists. build_kit.py refuses to finish if any of seven machine-identifying terms (the operator's account name, the repository's own name, the GPU model, ...) survive into the assembled tree, with a negative control proving the detector can fail. aider.conf.yml.saved is a machine-local test fixture (gitignored — see .gitignore), not a build input read by build_kit.py itself; it is the second CLI argument the operator passes, and it is also what verify-kit-install.ps1 defaults to when driving a real dry run against this machine's own installed aider.

config/rules.md is the one file in this tree that is never hand-edited and never committed as a static copy that could go stale: build_kit.py regenerates it at build time by invoking scripts/aider-rules-sync.py against .claude/rules/ of this repository, so the kit can never ship a rules file the repository's own rules have moved past.

Registration

Routed from ../../CLAUDE.md's tooling table, ../../rules/testing.md's script-surface inventory and offline-test block, ../../rules/workflows.md's flows table (R26) and ../../rules/code-style.md (R27), mirror-policy.json (rules live, agents/commands/skills by design — this harness receives none of them), and .claude/skills/rt-observe/harnesses.json (the aider adapter). See README.md and Architecture.md for the authoritative inventory entries.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.