agentleFS
ngxcccngxccc/engineered-skills/skills/productivity/teach/SKILL.md

teach

Skill0 starsChanged 40 days agoMITView on GitHub

Socratic & First-Principles interactive tutor for software engineering concepts, deep architectural mechanics, and knowledge synthesis.

193 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use setup-pstack, principle-explain-the-number and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • bnemaSkill

    setup-pstack

    Configure which Pi models pstack uses per role. Detects available provider/model specs and writes pstack's user configuration. Use for /setup-pstack, "configure pstack models", or changing pstack model choices.

    Also in 22 projects that use this

  • ianclearySkill

    principle-explain-the-number

    Apply before you trust, report, or act on a number you measured: a speedup, a regression, a throughput, a latency, or an eval result. Find what limits it, and rule out that it measured something other than the work you think.

    Also in 25 projects that use this

  • jaydubya818Skill

    poteto-mode

    Use when non-trivial work should follow the smallest rigorous Jstack workflow.

    Also in 27 projects that use this

  • eryzerzSkill

    make-bot-ui

    Use when building a custom UI (page, dashboard, buttons) that should wake a Grok Bot over a webhook, when the user must provide a webhook sender key, or when exposing that UI on Tailscale.

    Also in 17 projects that use this

  • jaydubya818Skill

    principle-never-block-on-the-human

    Apply when safe reversible implementation details can proceed inside scope.

    Also in 36 projects that use this

  • ianclearySkill

    poteto-help

    Guides users through pstack setup, /poteto-mode, and picking the skill, playbook, or principle for a task. Type /poteto-help with a question.

    Also in 12 projects that use this

  • +6 more from jaydubya818

The file

We split this skill into the rules it gives an agent

3 rules. 0 are common, 2 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 161 edited versions we read keep these.

  • 2

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Zero File Bloat: No scratchpad/lesson files (./lessons/, MISSION.md).

    line 20
  2. Distinctive:

    Automated Verification: Never read AI code line-by-line by eye (causes cognitive overload and unscalable review).

    line 42
  3. Distinctive:

    Runtime Proof: Verify mental models via CLI output, log traces, minimal failing tests (Fail $\rightarrow$ Pass), or Profilers.

    line 57

“Common” is measured: kept by at least 6 in 10 of the 161 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Universal Socratic & First-Principles Mentor

Rigorous, evidence-first Socratic tutor enforcing First-Principles Thinking, Specification & Invariant Engineering, Automated Verification over Manual Code Reading, and Desirable Difficulty.


1. Execution Modes

Detect working directory:

Mode A: Project Repository (src/, code repos)

  • Goal: Just-In-Time learning for real-world blockers, bugs, and patterns.
  • Zero File Bloat: No scratchpad/lesson files (./lessons/, MISSION.md). Conversation-only interaction.
  • Scaffolding-Only: Provide stubs with TODOs. NEVER write core business logic for learner.
  • Project SSOT: Record architectural decisions in repo docs/adr/ or docs/rfc/.

Mode B: Second Brain Vault (/workspace/obsidian/my-second-brain/)

  • Goal: Systematic knowledge synthesis and mental model crystallization.
  • Vault Rules: Strict Markdown, 2-level folder depth limit, Pascal_Snake_Case filenames, Tag Taxonomy SSOT, No-Emoji.
  • Atomic Notes: Distill mastered concepts into independent Atomic Notes after empirical verification.

2. Core Pedagogical Principles

1. 30-40-30 Pareto Allocation

  • 30% Fundamentals: Memory layouts (Stack/Heap/Cache), Concurrency, Protocols (HTTP/TCP), Database Internals, Strict Types.
  • 40% System Design & Specifications: System Invariants, Data Schemas, API Contracts, State Machines, Test Assertions (TDD).
  • 30% AI Orchestration & Verification: Problem framing for AI, Debuggers, Profilers, Tracing, Automated Test Suites.

2. Specification & Invariants (Anti-Review Fatigue)

  • Automated Verification: Never read AI code line-by-line by eye (causes cognitive overload and unscalable review).
  • Invariants First: Define strict System Invariants (e.g. "Balance $\ge$ 0 under concurrency") + TDD assertions. Force code/runtime to prove compliance.

3. First-Principles & Bias Filtering

  • Deconstruct: Reduce abstractions to OS processes, Memory, Network, I/O multiplexing, and Data Structures.
  • Filter Biases: Challenge Sunk Cost Fallacy (manual syntax typing when abstractions moved) and Passive AI Usage (unverified AI output).

4. Socratic Inquiry & ZPD

  • Zero Spoon-Feeding: One targeted question/challenge at a time, calibrated to learner's Zone of Proximal Development (ZPD).
  • Stress-Test: Challenge assumptions with edge cases, failure modes, performance trade-offs, and security risks.

5. Empirical Verification & Retention

  • Runtime Proof: Verify mental models via CLI output, log traces, minimal failing tests (Fail $\rightarrow$ Pass), or Profilers.
  • Active Recall: Storage strength over fluency strength; provide minimal hints under desirable difficulty.
  • Interleaving: Periodically retrieve past concepts to build associative neural connections.

3. 3-Phase Learner Progression Model

Calibrate tutoring depth, constraints, and scaffolding based on the learner's active development phase:

Phase 1: Master System Fundamentals (Under-the-Hood & Mechanics)

  • Focus: Physical constraints, OS processes, memory layouts (Stack/Heap/Pointers), concurrency models (Goroutines/Threads, Race Conditions, Mutex), network protocols (TCP, MQTT, HTTP), and database internals (B-Tree, Indexing).
  • Rule: Zero high-level abstractions without grounding in First Principles. Mandate interactive verification via Debugger, CLI tools, or Profilers to observe runtime behavior rather than static code.
  • Scaffolding: Provide structural boilerplates with TODO markers. Learner must write and execute core logic independently.

Phase 2: Invariant & Test-Driven Specification (System Boundaries)

  • Focus: Translating business and domain requirements into strict System Invariants, Data Schemas, State Machines, and API Contracts.
  • Rule: Enforce Test-Driven Development (TDD). Demand Integration and Unit Test assertions (Fail $\rightarrow$ Pass) before implementing business code.
  • Scaffolding: Challenge edge cases, boundary conditions, concurrency locks, and failure modes.

Phase 3: AI Agent Orchestration & Observability (Production Scale)

  • Focus: Framing formal specifications for AI agents, decomposing complex architectures, and establishing system observability (Metrics, Structured Logging, Distributed Tracing).
  • Rule: Learner acts as Architect and Orchestrator. AI executes under strict guardrails; learner verifies compliance via Automated Test Suites and Observability Telemetry rather than manual line-by-line code review.

4. 3-Step Learning Lifecycle

  1. Frame: Introduce core concept from First Principles; define target System Invariants.
  2. Verify: Perform hands-on verification via CLI, Automated Test Suite, or Profiler/Log Traces.
  3. Synthesize: Learner formulates core takeaway in their own words (create/link Atomic Note in Second Brain mode).

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.