Comprehensive guide to configuring Claude Code Tresor skills, agents, and commands.
Claude Code Tresor components are configured through:
- Skills: YAML frontmatter in
SKILL.mdfiles - Agents: YAML frontmatter in
SKILL.mdfiles oragent.json - Commands: JSON configuration in
command.jsonfiles
Skills are configured in ~/.claude/skills/{skill-name}/SKILL.md using YAML frontmatter.
---
name: "code-reviewer"
description: "Real-time code quality and best practices checker"
trigger_keywords:
- "save"
- "commit"
- "code"
- "review"
tools:
- "Read"
- "Write"
- "Edit"
- "Grep"
- "Glob"
model: "claude-sonnet-4"
enabled: true
priority: "high"
---Type: String Description: Unique identifier for the skill
name: "code-reviewer"Type: String Description: Human-readable description of skill purpose
description: "Real-time code quality and best practices checker"Type: Array of strings Description: Keywords that activate the skill in conversations
trigger_keywords:
- "save"
- "commit"
- "code"
- "review"
- "quality"Note: Skills activate automatically based on file changes. Keywords are supplementary.
Type: Array of strings Description: Tools the skill can use
Available tools for skills:
Read- Read filesWrite- Create/overwrite filesEdit- Modify existing filesGrep- Search file contentsGlob- Find files by pattern
Important: Skills have limited tool access for safety. No Bash or Task tools.
tools:
- "Read"
- "Grep"
- "Glob"Type: String Description: Claude model to use
Available models:
claude-sonnet-4(default) - Fast, efficientclaude-opus-4- Most capable
model: "claude-sonnet-4"Type: Boolean Description: Enable/disable skill
enabled: true # Skill active
enabled: false # Skill inactiveType: String Description: Execution priority
Values:
high- Execute firstmedium- Defaultlow- Execute last
priority: "high"Type: Array of glob patterns Description: File types to monitor
file_patterns:
- "*.ts"
- "*.tsx"
- "*.js"
- "*.jsx"Type: Array of glob patterns Description: Files to ignore
exclude_patterns:
- "node_modules/**"
- "dist/**"
- "*.test.ts"---
name: "custom-reviewer"
description: "Custom code reviewer for React projects"
trigger_keywords:
- "react"
- "component"
- "review"
tools:
- "Read"
- "Grep"
- "Glob"
model: "claude-sonnet-4"
enabled: true
priority: "high"
file_patterns:
- "*.tsx"
- "*.jsx"
exclude_patterns:
- "*.test.tsx"
- "*.stories.tsx"
- "node_modules/**"
custom_settings:
max_file_size: "50kb"
check_accessibility: true
check_performance: true
---Agents can be configured using YAML frontmatter in SKILL.md or agent.json.
File: ~/.claude/agents/{agent-name}/SKILL.md
---
name: "code-reviewer"
description: "Expert code quality analyst"
tools:
- "Read"
- "Write"
- "Edit"
- "Grep"
- "Glob"
- "Bash"
- "Task"
model: "claude-opus-4"
enabled: true
capabilities:
- "code-analysis"
- "security-review"
- "performance-optimization"
---File: ~/.claude/agents/{agent-name}/agent.json
{
"name": "code-reviewer",
"description": "Expert code quality analyst",
"tools": [
"Read",
"Write",
"Edit",
"Grep",
"Glob",
"Bash",
"Task"
],
"model": "claude-opus-4",
"enabled": true,
"capabilities": [
"code-analysis",
"security-review",
"performance-optimization"
]
}Type: String
Description: Unique identifier (used with @agent-name)
name: "code-reviewer"Type: String Description: Agent's expertise and purpose
description: "Expert code quality analyst with focus on security and performance"Type: Array of strings Description: Available tools
All tools available for agents:
Read,Write,Edit- File operationsGrep,Glob- Search operationsBash- Execute commandsTask- Invoke other agents
tools:
- "Read"
- "Write"
- "Edit"
- "Grep"
- "Glob"
- "Bash"
- "Task"Type: String Description: Claude model
model: "claude-opus-4" # Most capable
model: "claude-sonnet-4" # FasterType: Boolean
enabled: trueType: Array of strings Description: Agent's specialized capabilities
capabilities:
- "code-analysis"
- "security-review"
- "performance-optimization"
- "refactoring"Type: Number Description: Maximum tool use iterations
max_iterations: 50---
name: "custom-reviewer"
description: "Custom code reviewer for enterprise React applications"
tools:
- "Read"
- "Write"
- "Edit"
- "Grep"
- "Glob"
- "Bash"
- "Task"
model: "claude-opus-4"
enabled: true
capabilities:
- "react-analysis"
- "typescript-validation"
- "security-audit"
- "performance-profiling"
- "accessibility-check"
max_iterations: 75
custom_settings:
frameworks:
- "React"
- "Next.js"
linting_rules: "airbnb"
security_standards: "OWASP"
---Commands are configured in ~/.claude/commands/{command-category}/{command-name}/command.json.
{
"name": "review",
"description": "Automated code review with quality checks",
"category": "workflow",
"usage": "/review --scope <files> --checks <types>",
"parameters": {
"scope": {
"type": "string",
"description": "Files to review (staged, all, or file path)",
"required": false,
"default": "staged"
},
"checks": {
"type": "array",
"description": "Check types: security, performance, quality, all",
"required": false,
"default": ["all"]
}
},
"agents": [
"@code-reviewer",
"@security-auditor",
"@performance-tuner"
],
"enabled": true
}Type: String
Description: Command name (used with /command-name)
"name": "review"Type: String
"description": "Automated code review with quality checks"Type: String Description: Command category
Categories:
development- Development workflowsworkflow- General workflowstesting- Testing workflowsdocumentation- Documentation workflows
"category": "workflow"Type: String Description: Usage syntax
"usage": "/review --scope <files> --checks <types>"Type: Object Description: Command parameters
"parameters": {
"scope": {
"type": "string",
"description": "Files to review",
"required": false,
"default": "staged"
},
"checks": {
"type": "array",
"description": "Check types",
"required": false,
"default": ["all"]
}
}Parameter types:
string- Single valuearray- Multiple valuesboolean- True/false flagnumber- Numeric value
Type: Array of strings Description: Agents invoked by command
"agents": [
"@code-reviewer",
"@security-auditor",
"@performance-tuner"
]Type: Boolean
"enabled": true{
"name": "full-audit",
"description": "Comprehensive codebase audit with security and performance analysis",
"category": "workflow",
"usage": "/full-audit --path <directory> --report <format>",
"parameters": {
"path": {
"type": "string",
"description": "Directory to audit",
"required": false,
"default": "."
},
"report": {
"type": "string",
"description": "Report format: json, markdown, html",
"required": false,
"default": "markdown"
},
"include_tests": {
"type": "boolean",
"description": "Include test coverage analysis",
"required": false,
"default": true
}
},
"agents": [
"@code-reviewer",
"@security-auditor",
"@performance-tuner",
"@test-engineer"
],
"enabled": true,
"timeout": 600,
"output_directory": "./audit-reports"
}Configure Claude Code Tresor behavior with environment variables:
# Set default model
export CLAUDE_CODE_DEFAULT_MODEL="claude-opus-4"
# Disable specific skill
export CLAUDE_CODE_DISABLE_SKILL_code_reviewer=true
# Set skill priority
export CLAUDE_CODE_SKILL_PRIORITY_security_auditor="high"
# Enable debug mode
export CLAUDE_CODE_DEBUG=trueConfigure skill activation patterns:
---
name: "api-documenter"
custom_triggers:
file_save:
- pattern: "src/api/**/*.ts"
action: "generate_openapi"
git_commit:
- pattern: "src/controllers/*.ts"
action: "update_api_docs"
---Configure how agents work together:
---
name: "code-reviewer"
coordination:
invoke_agents:
- agent: "@security-auditor"
when: "security_issue_detected"
- agent: "@performance-tuner"
when: "performance_issue_detected"
---Configure multi-step command workflows:
{
"name": "deploy",
"workflow": [
{
"step": "review",
"command": "/review --scope all"
},
{
"step": "test",
"command": "/test-gen --coverage 90"
},
{
"step": "build",
"bash": "npm run build"
},
{
"step": "deploy",
"bash": "npm run deploy"
}
]
}Don't over-configure initially. Use defaults and customize as needed.
YAML frontmatter is more readable than JSON for complex configurations.
After changes, verify with:
# Restart Claude Code
# Test skill/agent/commandAdd comments explaining why you changed defaults:
---
name: "code-reviewer"
# Increased priority because we need immediate feedback
priority: "high"
# Added .vue files for Vue.js project
file_patterns:
- "*.ts"
- "*.vue" # Vue.js components
---Commit configuration files to git for team consistency:
git add ~/.claude/skills/custom-reviewer/
git commit -m "feat: add custom code reviewer configuration"Problem: Changes to configuration not taking effect
Solution:
- Restart Claude Code CLI
- Check syntax (YAML/JSON valid?)
- Check file location (correct directory?)
Problem: Skill configured but not activating
Solution:
- Check
enabled: true - Verify
trigger_keywordsorfile_patterns - Check
exclude_patternsnot blocking files - Enable debug mode:
export CLAUDE_CODE_DEBUG=true
Problem: @agent-name not found
Solution:
- Check agent directory exists:
ls ~/.claude/agents/agent-name/ - Verify
namefield matches directory name - Check
enabled: true
- Skills Reference → - Complete skill configuration
- Agents Reference → - Complete agent configuration
- Commands Reference → - Complete command configuration
- Troubleshooting → - Fix configuration issues
Last Updated: November 7, 2025 | Version: 2.0.0