This is a public knowledge-sharing repository by GradScaler that teaches developers how to effectively use Claude Code CLI for real-world software development. It's not a library or app — it's a structured, practical guide built from hands-on experience.
The goal: help developers go from "I installed Claude CLI" to "I ship entire features with Claude CLI doing most of the heavy lifting."
- Developers who want to learn Claude Code CLI beyond the basics
- Teams looking to adopt AI-assisted development workflows
- Anyone curious about how to structure projects so Claude CLI can work autonomously and effectively
This repository documents and demonstrates a specific, battle-tested workflow:
-
Planning Phase — Use
global-doc-masteragent to create detailed planning documents underdocs/planning/. These are the blueprints that everything else builds on. -
Review & Fix — Use the
global-doc-fixeragent to autonomously review and fix planning docs. It runsglobal-review-doc, fixes all findings, re-reviews, and repeats until the plan is solid. No manual iteration needed. Good plans = good code. -
Agent-Driven Development — Use the
agent-developmentskill to scan planning docs and generate project-specific agents. These agents live in the local project and are purpose-built for the work described in the plan. -
Parallel Execution — Run generated agents in parallel to build out the project. Claude CLI handles the implementation while the developer oversees and course-corrects.
-
Code Review — Use the
global-review-codeskill to audit the implementation. Document issues withglobal-doc-master, fix, and re-review. -
Test & Improve — Test with curl (backend) or Playwright (frontend). Create new planning docs for improvements/fixes, and the cycle repeats.
- CLAUDE_SETUP.md — Installing Claude CLI, authentication, VS Code setup, plugins, slash commands
- HOW_TO_START_NEW_PROJECT.md — Building a project from scratch using the full workflow
- HOW_TO_START_EXISTING_PROJECT.md — Bringing Claude CLI into a project you're already working on
- HOW_TO_CREATE_AGENTS.md — What agents are and how to create your own
- HOW_TO_CREATE_SKILLS.md — What skills are and how to create your own
- HOW_TO_USE_PENCIL_WITH_CLAUDE.md — Using Pencil for context-aware UI design with Claude Code
- local-brain-guide/ — 6-part guide to building a personal knowledge base with Claude Code + Obsidian (concept, setup, schema,
pageindex.jsonsearch index, agent modes, daily workflow)
- agents/global-doc-master/ — Agent that creates all technical documentation (overview, tech-overview, design, planning, feature flows, deployment, issues, resolved, debug). Uses the
doc-master-assistskill for templates and protocols - agents/local-brain/ — Agent that manages a personal Obsidian knowledge base. Four modes: fetch (read-only lookup via
wiki/pageindex.jsonLLM search index), research (explore + add), learn (extract from sessions), maintain (cleanup + freshness + pageindex rebuild). Cross-page relationships use[[wikilinks]]+ Obsidian's built-in graph view — no separate canvas file - skills/doc-master-assist/ — Template and protocol skill used by the doc-master agent. Contains 8 reference templates for all document types
- skills/obsidian-canvas/ — General-purpose reference skill for creating and editing Obsidian Canvas (.canvas) JSON files — mind maps, planning boards, architecture sketches, flowcharts. Covers the JSON Canvas 1.0 spec, positioning rules, color conventions, edge label standards, Post-Write Verification Protocol
- skills/code-to-design/ — Converts frontend code into pixel-accurate Pencil (.pen) design files
- skills/github/ — GitHub CLI operations — repos, PRs, issues, branch management
- hooks/doc-scanner/ — SessionStart hook that scans for
.mdfiles and gives Claude a documentation index at conversation start
claude_cli/
├── CLAUDE.md # This file — project instructions
├── README.md # Public-facing repo README
├── CLAUDE_SETUP.md # How to install and set up Claude CLI
├── HOW_TO_START_NEW_PROJECT.md # Guide: building from scratch
├── HOW_TO_START_EXISTING_PROJECT.md # Guide: using Claude in an existing project
├── HOW_TO_CREATE_AGENTS.md # Guide: creating custom agents
├── HOW_TO_CREATE_SKILLS.md # Guide: creating custom skills
├── HOW_TO_USE_PENCIL_WITH_CLAUDE.md # Guide: using Pencil for UI design with Claude
├── local-brain-guide/ # 6-part guide: Obsidian + Claude Code knowledge base
│ ├── README.md # Overview and quick start
│ ├── 01-CONCEPT.md # Why this exists, compilation vs retrieval
│ ├── 02-SETUP-OBSIDIAN.md # Install Obsidian, create vault, structure
│ ├── 03-VAULT-SCHEMA.md # CLAUDE.md schema, frontmatter, conventions
│ ├── 04-PAGEINDEX.md # The pageindex.json LLM search index, anatomy, fetch behavior
│ ├── 05-AGENT-MODES.md # fetch, research, learn, maintain
│ └── 06-DAILY-WORKFLOW.md # How to use this day-to-day
├── hooks/
│ └── doc-scanner/ # SessionStart hook — doc awareness at conversation start
│ ├── doc-scanner.sh # The hook script
│ └── README.md # Setup guide and explanation
├── scripts/
│ └── statusline-command.sh # Custom status line script for Claude Code
├── agents/
│ ├── global-doc-master/ # Doc master agent definition + README
│ └── local-brain/ # Local brain agent — personal knowledge base manager
└── skills/
├── doc-master-assist/ # Template & protocol skill for doc-master agent
│ ├── SKILL.md # Skill router + shared quality protocols
│ └── references/ # 8 document templates (loaded on demand)
├── obsidian-canvas/ # JSON Canvas spec + positioning rules for .canvas files
├── code-to-design/ # Frontend code → Pencil design files
└── github/ # GitHub CLI operations skill
- All docs go through
global-doc-master— Never write docs directly. The agent investigates the codebase, follows templates, and produces consistent output. - Examples must be real — Every example in this repo should be something that actually works. No theoretical snippets.
- Keep it practical — Explain the "how" and "why", not just the "what". Developers reading this should be able to copy patterns and apply them immediately.
- Clear, direct language. No fluff.
- Use code blocks with file paths for every example.
- Show the workflow step-by-step — don't skip steps that seem obvious.
- Include "before and after" comparisons where useful (e.g., a bad CLAUDE.md vs a good one).
- Add comments in code examples explaining the "why".
- Descriptive commit messages — mention which guide/topic was added or updated.
- One topic per commit where possible. Don't bundle unrelated changes.
- Every guide should answer: "Can someone follow this and get it working in 15 minutes?"
- Every example should be self-contained and runnable.
- Every planning doc should be thorough enough that agents can build from it without ambiguity.