AI 04: Claude
Claude: Pending Qs
none
Claude: Features
Skills (formerly Custom Commands) --> for anything you copy/paste too often in your prompt window
CLAUDE.md
MCP
Rules & Memories
Claude: Built-In Commands
Outside session
claude --continue# Resume latest sessionclaude --resume# Select from sessions
Inside session
/clear# Clears conversation history and context - equiv to starting a new chat EXCEPT you lose the convo history !/copy# Copy Claude's last response to clipboard as markdown/rewind# Restore the code and/or conversation to a previous point/context# Visualize current context usage/init# generate a starter CLAUDE.md file based on your current project structure, then refine over time."Undo that" # Have Claude revert its changes.
Claude: Built-In Tools
AskUserQuestion # Asks multiple-choice questions to gather requirements or clarify ambiguity Skill # Executes a skill within the main conversation Task # Runs a sub-agent to handle complex, multi-step tasks
https://code.claude.com/docs/en/settings#tools-available-to-claude
CLAUDE.md
Populate it automatically using /init:
Generates a starter CLAUDE.md file.
Analyzes codebase to detect build systems, test frameworks, and code patterns,
Gives a solid foundation to refine.
https://code.claude.com/docs/en/best-practices#write-an-effective-claude-md
Claude: Skills (formerly Slash Commmands)
Must always have frontmatter with name and description:
Other possible fields:
disable-model-invocation: trueif you want to make it behave like a command:Prevents Claude from automatically loading or using the skill (for skills you only want to trigger yourself)
Reduces context cost to zero (skill descriptions won't load at session start)
The skill only activates when you explicitly call it (i.e. no unwanted deployment)
modelto specify modelmodel: opusmodel: haiku
user-invocable: falseso only Claude can invoke the skill
https://code.claude.com/docs/en/skills
Claude: Built-in Agents
explore agentYes, it's one of the built-in agent types available through the Task tool:
Explore
Fast codebase exploration - find files, search code
Plan
Design implementation plans, identify critical files
Bash
Command execution (git, npm, etc.)
general-purpose
Multi-step research tasks
claude-code-guide
Questions about Claude Code itself
When Claude calls the Task tool, it specifies which agent type to use:
Why the explore agen is cool:
Runs in its own context, does the reading/searching, and returns just the summary. The main conversation stays lightweight.
Claude: Layered Prompt
TODO
Claude: Prompting: Dynamic Content in Prompts
Use Templates and Variables
Help save you time, test out different inputs, and get more consistent answers.
https://docs.anthropic.com/en/docs/build-with-claude/prompt-engineering/prompt-templates-and-variables
https://www.reddit.com/r/ClaudeAI/comments/1gmcvxv/pro_tip_using_variables_in_prompts_made_claude/
Claude: Rules
Rules provide system-level instructions to Agent and Inline Edit.
Think of rules as persistent context, preferences, or workflows.
Rules can be applied to different scopes: user scope, project scope, and folder scope.
Basic Examples
Code Indexing
Double Check.
Claude code doesn't index the code at all. You need to do it yourself.
You run your code base through an embedding model to build a vector, graph, or vector graph database. https://github.com/vitali87/code-graph-rag
Claude: Learning Resources
https://anthropic.skilljar.com/claude-code-in-action/301614
Claude: Official Links
https://code.claude.com/docs/
https://www.anthropic.com
https://docs.anthropic.com/en/home
Last updated