ai-tools
Use when running local, offline-first ML tooling — mechanistic interpretability PoCs like refusal-direction ablation on local safetensors or the HF cache, or…
Skill by Leostruka
Chalk Labs
Need help deploying ai-tools?
Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/leostruka-ai-tools
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: ml
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/ai-tools
What's inside
- Skill name
ai-tools- Description
- Use when running local, offline-first ML tooling — mechanistic interpretability PoCs like refusal-direction ablation on local safetensors or the HF cache, or when adding self-contained model experiments that print JSON and never download anything.
- License
- MIT
- Instructions
- 29 lines in SKILL.md · view on GitHub
Before installing
- Instructions read files in your home folder (~/.ssh, ~/.aws…)
Files (1)
- SKILL.md
SKILL.md (first lines)
# AI Tools & Model Post-Training Playbook
Covers two surfaces:
1. **Local offline-first ML experiments** in `extensions/ai-tools/` (mechanistic interpretability, weight inspection, deterministic verifiers).
2. **Reasoning & domain model post-training playbook** (inference-time scaling, SFT distillation, and RLVR with GRPO/DAPO).
## 1. Local extension (`extensions/ai-tools/`)
- Bundle source: `extensions/ai-tools/`
- Installed: `%APPDATA%\devin\extensions\ai-tools\` (Windows) or `~/.config/devin/extensions/ai-tools/` (POSIX)
- Full extension docs: `USAGE.md` inside that directory.
### Conventions (all local tools)
- Self-contained `<tool>.py` with `__main__` guard and JSON on stdout.
- `--self-test` runs fully offline asserts; exit 1 on failure.
- No network: real inputs come from explicit file paths or the local HF cache only.
- Deps pinned in `requirements.txt`, installed on demand.
### Current tools
- `abliterator.py`: refusal-direction orthogonalization PoC (Arditi et al. 2024): difference-in-means direction, activation ablation, residual-weight orthogonalization. Dummy tensors by default; `--weights F.safetensors` or `--model <cached>` for real weights.
- `prompt_compiler.py`: deterministic prompt compilation against `knowledge_bases/`.
---
## 2. Reasoning & Domain Model Post-Training Playbook
Use this playbook when building, adapting, or distilling a custom reasoning or domain-specialist model (source architecture: Raschka *Build a Reasoning Model From Scratch*; validated against primary literature below).
### Method selector (evidence-based decision tree)
| Target & Regime | Method | Empirical Basis |
|---|---|---|
| Base/instruct model already solves the task sometimes; weights fixed | **Inference-time scaling (Self-Consistency / Majority Voting)** over $N$ sampled paths (`temp > 0`, `top-p`) + external verifier tie-break | +17.9% GSM8K (`arXiv:2203.11171`). Allocate sample budget per prompt difficulty for 4x efficiency over uniform best-of-N (`arXiv:2408.03314`). |
| Student model `<7B` parameters (e.g. Qwen3-0.6B/1.7B/4B) | **SFT Reasoning Distillation** from a strong teacher (e.g. DeepSeek-R1) on 1k-10k curated traces + optional budget forcing | Distilling teacher traces into small models beats direct RLVR on the small model by a wide margin (`arXiv:2501.12948`). 1,000 curated examples filtered by difficulty, diversity, and quality suffice (`s1`, `arXiv:2501.19393`). |
| Base/SFT model `>=7B` on a verifiable domain (math, code tests, SQL, formal rules) | **RLVR with GRPO / DAPO** (group-relative advantages from a deterministic verifier, no critic network) | Eliminates PPO value network (~50% less memory, `arXiv:2402.03300`); elicits emergent self-verification (`arXiv:2501.12948`, `arXiv:2411.15124`). |
| Full frontier reasoning recipe (`>=7B`) | **Cold-start SFT (thousands of clean traces) -> RLVR (GRPO/DAPO) -> Rejection-sampled SFT -> final RL** | Prevents the readability and language-mixing failures of pure zero-SFT RL (`DeepSeek-R1` vs `R1-Zero`, `arXiv:2501.12948`). |
### Phase route & gates
| Gate | Stage | Exit condition |
|---|---|---|
| **G1** | **Deterministic Verifier & Decontaminated Eval** | Answer extractor + normalizer + equivalence checker (math symbolic equivalence, unit test runner, SQL/AST checker) passes unit tests; held-out benchmark (e.g. MATH-500 / domain suite) is decontaminated against train split (`arXiv:2411.15124`) and baseline `pass@1` recorded. |
| **G2** | **Inference Baseline (KV Cache + Self-Consistency)** | Greedy `pass@1` and `maj@k` (e.g. $k=8, 16$) measured with KV caching + `torch.compile`; latency and token/answer length distribution logged. |
| **G3** | **Distillation (SFT on Teacher Traces)** | Teacher traces filtered by G1 verifier (keep only verified-correct trajectories, balanced by domain diversity and difficulty per `s1K`); cross-entropy loss computed on assistant reasoning+answer tokens only; held-out `pass@1` beats G2 baseline. |
| **G4** | **RLVR Training Loop (GRPO / DAPO)** | For each prompt $q$, sample group $\{o_i\}_{i=1}^G$, score with G1 verifier, compute group-normalized advantage $\hat{A}_{i} = (r_i - \mu_R) / (\sigma_R + \epsilon)$, update policy with clipped ratio. Checkpoints evaluated on held-out split. |
### Iron rules for model post-training
1. **Verifier before trainer:** never write a GRPO or distillation loop before the deterministic verifier (G1) is unit-tested on edge cases (formatting variations, symbolic equivalence, timeouts).
2. **Never use intrinsic self-refinement without an external verifier:** asking an LLM to critique and revise its own reasoning without an external verifier or dedicated RL training degrades or stalls accuracy (`arXiv:2310.01798`). Pair refinement loops with a deterministic check or verifier score.
3. **Distill `<7B`, RLVR `>=7B`:** do not spend GPU hours running pure RLVR from scratch on sub-3B models expecting emergent reasoning; distill from a strong teacher first (`arXiv:2501.12948`, `arXiv:2501.19393`).
4. **Condition format rewards on correctness:** if granting a reward bonus for `<think>...</think>` or `\boxed{}` tags, gate or scale it by answer correctness; otherwise the policy hacks the format reward with empty or repetitive reasoning.
5. **Drop or decouple KL penalty for long-CoT RLVR (DAPO rules):** when training long chain-of-thought from a non-reasoning base, the policy distribution must diverge from the reference model; omit the KL penalty (`beta = 0`) or keep it minimal, use token-level policy gradient loss, and skip prompts where all $G$ group samples have identical reward ($\sigma_R = 0$ yields zero gradient; `arXiv:2503.14476`).
6. **Track 4 collapse signals every N steps:** (a) policy entropy (sudden drop = mode collapse), (b) mean/max response length (length inflation / reward hacking), (c) zero-variance group ratio ($\sigma_R = 0$), and (d) held-out `pass@1` vs training reward.
### Primary references
- `arXiv:2203.11171`: Wang et al. 2022, *Self-Consistency Improves Chain of Thought Reasoning in Language Models* (ICLR 2023).
- `arXiv:2310.01798`: Huang et al. 2023, *Large Language Models Cannot Self-Correct Reasoning Yet* (ICLR 2024).
- `arXiv:2402.03300`: Shao et al. 2024, *DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Models* (GRPO).
- `arXiv:2408.03314`: Snell et al. 2024, *Scaling LLM Test-Time Compute Optimally can be More Effective than Scaling Model Parameters* (ICLR 2025).
- `arXiv:2411.15124`: Lambert et al. 2024, *Tulu 3: Pushing Frontiers in Open Language Model Post-Training* (RLVR & decontamination).
- `arXiv:2501.12948`: DeepSeek-AI 2025, *DeepSeek-R1: Incentivizing Reasoning Capability in LLMs via Reinforcement Learning*.
- `arXiv:2501.19393`: Muennighoff et al. 2025, *s1: Simple test-time scaling* (`s1K` curation & budget forcing).
- `arXiv:2503.14476`: Yu et al. 2025, *DAPO: An Open-Source LLM Reinforcement Learning System at Scale*.From Leostruka/devin-bundle, MIT.
More from Leostruka/devin-bundle
- 0.570score
debugging
Leostruka
Use when the user says 'diagnose', 'debug this', reports something broken/throwing/failing/slow, when encountering a bug/test failure/unexpected behavior and…
SkillAFreshness: AClaude Code +9 - 0.565score
code-review
Leostruka
Use when completing a task, reviewing a branch or PR, before merging, when the user asks to 'review since X', when publishing a GitHub PR review with inline…
SkillAFreshness: AClaude Code +9 - 0.565score
ask-bundle
Leostruka
Use when deciding which skill or flow fits your situation — the meta-router entry point for this bundle (direct specialist skills, multi-skill flows, local…
SkillAFreshness: AClaude Code +9 - 0.565score
animation-direction
Leostruka
Use when turning narrated video/audio into synced code-rendered motion graphics — narration -> timestamped transcript -> scene plan -> approval gate ->…
SkillAFreshness: AClaude Code +9 - 0.565score
architecture
Leostruka
Use when designing modules, seams, and adapters, when evaluating module depth and identifying deepening opportunities in a codebase, or when modernizing…
SkillAFreshness: AClaude Code +9 - 0.565score
architecture-diagrams
Leostruka
Use when the deliverable is a physical diagram artifact (.svg/.png) — C4 models, dense class diagrams, network topology rendered via PlantUML.
SkillAFreshness: AClaude Code +9 - 0.565score
computer-use
Leostruka
Use when you need to see or control the local screen (screenshots, screen recording with video + contact sheet for catching transient bugs/animations, mouse…
SkillAFreshness: AClaude Code +9 - 0.565score
context-hygiene
Leostruka
Use when context is growing large or the agent forgets earlier instructions, when deciding clear vs compact, when processing documents/logs >50k tokens, when…
SkillAFreshness: AClaude Code +9 - 0.565score
cu-realtime
Leostruka
Use when computer-use or terminal automation needs the fastest reaction the runtime allows - event waits instead of screenshot polling, text perception…
SkillAFreshness: AClaude Code +9 - 0.560score
ascii-art
Leostruka
Use when generating animated ASCII art for artifacts the agent produces - README banners (SVG), CLI splash screens, loading/404 states or decorative pieces in…
SkillAFreshness: AClaude Code +9 - 0.539score
data-analyst
Leostruka
Use when the user asks to query a database, analyze data, create charts/visualizations, explore data patterns, or asks business questions about data.
SkillAFreshness: AClaude Code +9 - 0.539score
database
Leostruka
Use when the user wants to design, migrate, query, or optimize a database.
SkillAFreshness: AClaude Code +9
Signals
- Stars
- 0
- Forks
- 0
- Open issues
- 1
- Last commit (this folder)
- Sep 19, 2026 (1 month ago)
- Last release
- Oct 24, 2026 (7 days ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/Leostruka/devin-bundle
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from Leostruka
- 0.570score
debugging
Leostruka
Use when the user says 'diagnose', 'debug this', reports something broken/throwing/failing/slow, when encountering a bug/test failure/unexpected behavior and…
SkillAFreshness: AClaude Code +9 - 0.565score
ask-bundle
Leostruka
Use when deciding which skill or flow fits your situation — the meta-router entry point for this bundle (direct specialist skills, multi-skill flows, local…
SkillAFreshness: AClaude Code +9 - 0.565score
code-review
Leostruka
Use when completing a task, reviewing a branch or PR, before merging, when the user asks to 'review since X', when publishing a GitHub PR review with inline…
SkillAFreshness: AClaude Code +9 - 0.565score
animation-direction
Leostruka
Use when turning narrated video/audio into synced code-rendered motion graphics — narration -> timestamped transcript -> scene plan -> approval gate ->…
SkillAFreshness: AClaude Code +9 - 0.565score
architecture
Leostruka
Use when designing modules, seams, and adapters, when evaluating module depth and identifying deepening opportunities in a codebase, or when modernizing…
SkillAFreshness: AClaude Code +9 - 0.565score
architecture-diagrams
Leostruka
Use when the deliverable is a physical diagram artifact (.svg/.png) — C4 models, dense class diagrams, network topology rendered via PlantUML.
SkillAFreshness: AClaude Code +9
Done for you
Rather not set it up yourself?
Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.
See how we build AI agents →Read the case studies
Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.
- launches shipped
- 50+
- launches shipped
- media placements
- 500+
- media placements
- founders on every account
- 2
- founders on every account
Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block
Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.
Get ai-tools running in your business
Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.
Cite this page
ai-tools skill. Agent Mart. https://agentmart.dev/skills/leostruka-ai-tools (last updated 2026-10-24)