# "RAW Agentic Coding ZERO to Agent SKILL"
<!--
ref: @content/youtube/indy-dev-dan/2025-12-08-raw-agentic-coding-zero-to-agent-skill
version: 4
updated_at: 2026-10-31T18:21:44.467Z
-->
From Indy Dev Dan, 2025-12-08: Mastering agents is mastering four primitives: **context, model, prompt, tools**.
IndyDevDan — a 15+ year engineer working with LLMs since the GPT-3.5/Aider era — walks through building a Claude skill from scratch in raw, unedited fashion, with no orchestration frameworks or hype.
## Core Thesis
Mastering agents is mastering four primitives: **context, model, prompt, tools**. Skills are the deployment vehicle that bundles these primitives into reusable, progressive-disclosure units — and the discipline of building them by hand (pen-and-paper planning, end-state-first thinking, iterative PoC → MVP) is what separates engineers who scale their compute from those whose brains rot waiting on agents. The fork-terminal skill demonstrated here is a concrete proof: by summarizing context and handing it off to fresh agent windows, you turn a single in-loop session into parallel out-loop compute.
## Key Insights
- **Skills are bundles of {prompt + tools + cookbook + config}** orbiting a central `SKILL.md` "pivot file" that progressively discloses behavior to the operating agent.
- **The Core Four primitives** — context, model, prompt, tools — are the only things worth mastering. Every new model release reduces to tweaks on these.
- **Begin with the end in mind**: define the deliverable artifacts before writing a single prompt. "What will you have at the end that you didn't have before?"
- **Pen-and-paper first**: writing structure manually primes the operator and creates a yardstick for evaluating agent output. Skipping this step causes "brain rot."
- **Progressive disclosure via cookbook pattern**: conditionally load tool-specific docs (e.g., `claude_code.md`, `codex_cli.md`, `gemini_cli.md`) only when the use case demands them — keeps base context lean.
- **In-loop vs. out-loop coding**: in-loop is high-presence, high-effort manual work; mature codebases should push more work to out-loop autonomous agents. Forking is the bridge.
- **Information-dense keywords** (e.g., "astral uv single-file script", "subprocess", "osascript", "IMPORTANT") compress huge amounts of embedded model knowledge — exploit your model's training cutoff.
- **Encode CLI `--help` reads into skills**: CLIs evolve faster than training data, so instruct agents to dump help output before executing unknown flags.
- **Skills don't hot-reload in Claude Code** — metadata loads into the system prompt at boot, so iterating requires full session restarts (a flagged pain point).
- **Fresh context windows are a discipline, not a luxury**: easier to reason about an agent that has seen nothing than one polluted by prior turns.
- **Forking ≈ programmable `/compact`**: summarize prior conversation into structured YAML, pass it as the starting prompt to a new agent in a new terminal — preserves continuity while resetting the window.
- **Blame yourself before the model**: debugging hierarchy is self → prompt → tooling → model. The bottleneck is rarely the weights.
- **Capture stderr alongside stdout** in any agent-executed code — silent failures break the agent loop.
## Actionable Takeaways
1. Structure every skill as `claude/skills/<name>/` with `SKILL.md`, `tools/`, `prompts/`, and `cookbook/` subdirectories.
2. Default to **Astral UV single-file scripts** for Python tools inside skills; use `subprocess` + `osascript` (macOS) to spawn fresh terminal windows.
3. Write your `SKILL.md` with: one-sentence description, one-sentence "when to use," explicit purpose, **variables section** with enable flags (`ENABLE_GEMINI_CLI`, model tiers), and if/then routing to cookbook entries.
4. Define **model tiers as variables**: fast=Haiku, base/default=Sonnet, powerful/slow=Opus. Mirror the same pattern for Codex (GPT-5.1 / Codex Mini) and Gemini (3 Pro Preview / 2.5 Flash).
5. Build a `/prime` slash command per project that points the agent at the README, cookbook, and tools via `@`-syntax — bootstraps fresh agents without bloating memory.
6. Add a rule: *"Before executing any CLI command, run `command --help` to confirm flags."*
7. Use a **YAML meta-prompt template** when forking agents — fields: `history`, `summarized user prompt`, `response summary`, `fill in user prompt here`. Pass it as the fork's starting prompt.
8. Use density keywords like **"IMPORTANT"** to enforce instruction adherence; use Claude Code's escape-to-rewind for cheap prompt iteration.
9. Test skills incrementally: build minimal version → verify with `all skills` listing → run basic command → expand to cross-platform (Windows/PowerShell branching).
10. Commit frequently with a hotkey (he uses `GSDC`) so you can always revert agent missteps.
11. Default to `--dangerously-skip-permissions` for trusted agents; ensure forked terminals open in the current working directory, not root.
12. Use prompt patterns like *"use one fork per file"* to dispatch parallel agents on independent units of work.
## Notable Quotes
> "The context, model, prompt, and tools — the core four. If you understand these, if you master these, you'll master the agent. You'll master engineering."
> "We never start by just blasting out prompts. None of that matters if you don't begin with the end in mind."
> "Engineers' brains are rotting due to this incredible technology... Always understand what you're asking your agents to accomplish for you."
> "Don't assume that it's the model's fault. First assume it's your fault. Blame your tooling. Blame your understanding first. The limitation is not the models. It's not the agents — it's you and I."
> "We are effectively forking the context window, handing off context to another agent concisely."
> "Scale your compute to scale your impact."
> "Never be afraid to just start fresh. You always want that fresh context window."
> "Don't let any new grand feature release or model confuse you. The only things you need to focus on are the primitives that make it all up."
---
*You're reading a protocol on [protocol.supply](https://protocol.supply) — hosted, searchable knowledge for AI agents. Think Agent Skills, as an API: bootstrap once (`curl -sL https://api.protocol.supply/bootstrap`), search (`/search?q=…`), fetch (`/@repo/slug`).*
*Any skill can become a protocol, and any protocol installs as a local skill — tell your agent "install this as a skill" or see [`@protocol/protocol-to-skill`](https://api.protocol.supply/@protocol/protocol-to-skill).*