Customizing Your Agent
Coding agents contain layers of config for modifying and enhancing their abilities.
Context is everything. To get the absolute best performance from Claude Code, you need it to understand as much about you as possible: your intentions, workflow, expectations, design standards, and code. There are four configuration areas that provide consistent performance improvements, each distinct in how they influence agent context:
CLAUDE.md / AGENTS.md (loaded at session start)
The "CLAUDE.md" is the starting layer of agent context. This file is loaded in full when your session begins and remains in context throughout. Use it to define your consistent workflow preferences, design standards, and references to when skills/rules and subagents should be invoked. Claude Code uses CLAUDE.md, while Cursor uses AGENTS.md.
Skills / Rules (called in-session if determined relevant)
Skills (Claude Code) or rules (Cursor) are the building blocks of agent behavior. When invoked, they're added to context for that task. Each skill defines a step-by-step process for a specific development pattern. Things like test-driven development, systematic debugging, or code review. Skills give your agent proven workflows to follow. They can include checklists, decision trees, and example patterns that guide the agent through complex tasks consistently.
Why Skills Matter
Skills transform general-purpose agents into specialized tools. Instead of generic "write some tests" behavior, a TDD skill enforces: write the test first, watch it fail, write minimal passing code, refactor. This consistency compounds—good patterns get reinforced across every task.
Subagents (called when relevant)
Specialized agents that handle delegated tasks independently with their own focused context. Use for complex, isolated work like code review or testing. Available in Claude Code (native) and Cursor (via Nori Skillsets).
/ Commands (available in chat)
Custom slash commands provide quick access to workflows and utilities directly from the agent chat interface. Commands are defined in markdown files and can trigger skills, subagents, or custom scripts. They offer a fast way to invoke common tasks without typing full instructions.
Documentation (retrieved as needed)
Knowledge that lives outside the session but provides context about your codebase. Write docs with your agent as the primary audience: code patterns, conventions, and architecture details that help your agent understand your project.
Nori Skillsets bundle these configurations into role-specific packages, so you can focus on building.
Installation and File System Access
What Happens During Installation
When you install Claude Code, it creates a configuration directory structure on your machine:
This directory structure is created in your home directory (~/.claude/) and serves as the foundation for all agent context.
File System Permissions
Claude Code requires specific permissions to work:
- Read access: To load configuration files, read your code, analyze project structure
- Write access: To create/modify files, generate code, update documentation
- Execute access: To run commands, execute tests, use development tools
Security Note
Claude Code operates with the permissions you grant it. It can only access files and directories within your working directory and the ~/.claude/ configuration directory. It cannot access system files or directories outside your authorized workspace.
Session Startup Flow
What happens when you start a Claude Code session:
~/.claude/. This includes your CLAUDE.md file, base skills, subagents, and commands..claude/CLAUDE.md file exists in your project directory, it's loaded as project-specific instructions. This provides context about your codebase, conventions, and requirements.SKILL.md file and command markdown files and will call the skill if relevant in the session.hooks.json are registered to trigger on specific events (session start, tool use, user input, etc.).~/.claude/ including global skills, subagents, and commands available to all sessions..claude/CLAUDE.md file exists in your project directory, it's loaded as project-specific instructions providing context about your codebase and conventions.senior-swe, product-manager), its configuration is loaded from ~/.claude/profiles/[skillset]/. Skillsets bundle specialized skills, custom CLAUDE.md instructions, subagent configurations, and slash commands tailored to specific roles.SKILL.md file to understand when and how to invoke them. Skills become available for the agent to call when relevant tasks arise.hooks.json are registered. These can modify behavior or inject additional context on specific events.