Welcome to Claude Code Tresor! This guide walks you through your first steps.
git clone https://github.com/alirezarezvani/claude-code-tresor.git
cd claude-code-tresor
./scripts/install.shDetailed installation instructions →
# Check skills
ls ~/.claude/skills/
# Check agents
ls ~/.claude/agents/
# Check commands
ls ~/.claude/commands/You should see 8 skills, 8 agents, and 4 commands.
claudeYou're ready to use Claude Code Tresor!
Claude Code Tresor has three types of utilities:
What they are:
- Autonomous helpers that work continuously
- Activate automatically based on code changes
- Provide real-time suggestions
How they work:
- NO manual invocation needed
- Trigger when you save files or make commits
- Appear as suggestions in conversations
Example:
You: [Saves UserProfile.tsx with security issue]
code-reviewer skill: "⚠️ Security issue detected: User input not sanitized"
8 Available Skills:
- code-reviewer - Code quality checks
- test-generator - Test coverage suggestions
- git-commit-helper - Commit message generation
- security-auditor - Vulnerability scanning
- secret-scanner - API key detection
- dependency-auditor - CVE checking
- api-documenter - OpenAPI spec generation
- readme-updater - README updates
What they are:
- Deep analysis experts for specific domains
- Invoked manually with
@agent-name - Full tool access for comprehensive work
How they work:
@agent-name task description
Example:
@config-safety-reviewer analyze this component for React best practices and security issues
8 Available Agents:
- @config-safety-reviewer - Code quality expert
- @test-engineer - Testing specialist
- @docs-writer - Documentation expert
- @systems-architect - System design expert
- @root-cause-analyzer - Debugging specialist
- @security-auditor - Security expert
- @performance-tuner - Performance optimization
- @refactor-expert - Code refactoring
What they are:
- Orchestrated workflows combining multiple steps
- Invoked with
/command-name - Can invoke agents and coordinate tasks
How they work:
/command-name --option value
Example:
/review --scope staged --checks security,performance
4 Available Commands:
- /scaffold - Project/component scaffolding
- /review - Code review automation
- /test-gen - Test generation
- /docs-gen - Documentation generation
Here's how skills, agents, and commands work together:
Step 1: Skill Detects Issues (Automatic)
You: [Writes new UserProfile component]
You: [Saves file]
code-reviewer skill: "Suggestion: Add PropTypes validation"
test-generator skill: "Missing tests for UserProfile component"
Step 2: Use Agent for Deep Analysis (Manual)
You: @config-safety-reviewer analyze UserProfile.tsx for production readiness
@config-safety-reviewer:
✅ Code structure follows React best practices
⚠️ Missing error boundaries
⚠️ No accessibility attributes
❌ Security: User input not sanitized
[Detailed analysis with code examples]
Step 3: Run Command for Complete Workflow (Manual)
You: /review --scope UserProfile.tsx --checks all
/review:
1. Running code quality checks...
2. Running security audit...
3. Running performance analysis...
4. Generating report...
[Complete review report with action items]
Let's walk through a complete real-world example.
Step 1: Create Component
# Create new file
touch src/components/LoginForm.tsxStep 2: Write Code
// src/components/LoginForm.tsx
import React, { useState } from 'react';
export default function LoginForm() {
const [email, setEmail] = useState('');
const [password, setPassword] = useState('');
const handleSubmit = (e) => {
e.preventDefault();
fetch('/api/login', {
method: 'POST',
body: JSON.stringify({ email, password })
});
};
return (
<form onSubmit={handleSubmit}>
<input value={email} onChange={(e) => setEmail(e.target.value)} />
<input value={password} onChange={(e) => setPassword(e.target.value)} />
<button type="submit">Login</button>
</form>
);
}Step 3: Skills Activate Automatically
code-reviewer skill: "⚠️ Issues detected:"
- Missing input labels (accessibility)
- No error handling
- Password not type="password"
- Missing CSRF protection
security-auditor skill: "🔴 Critical security issues:"
- Credentials sent without HTTPS validation
- No rate limiting
- Password visible in DOM
test-generator skill: "📋 Suggested tests:"
- Test form submission
- Test validation
- Test error states
Step 4: Deep Analysis with Agent
You: @config-safety-reviewer provide complete analysis with fixes
@config-safety-reviewer:
Here's a production-ready version:
[Provides complete refactored code with:]
- TypeScript types
- Input validation
- Error handling
- Accessibility attributes
- Security improvements
- Loading states
Step 5: Generate Tests
You: /test-gen --file LoginForm.tsx --framework jest
/test-gen:
✅ Generated LoginForm.test.tsx with:
- 12 test cases
- 95% code coverage
- Edge case testing
- Accessibility testing
Step 6: Final Review
You: /review --scope LoginForm.tsx --checks all
/review:
✅ Code Quality: PASS
✅ Security: PASS
✅ Performance: PASS
✅ Accessibility: PASS
✅ Test Coverage: 95%
Ready for production!
Skills activate automatically - just work normally:
# Create a file with an issue
echo "const x = 1; x = 2;" > test.js
# Save it - skill activates automatically
# code-reviewer will suggest: "Use let instead of const for reassignment"No manual invocation needed!
You: @systems-architect design a microservices architecture for an e-commerce platform
@systems-architect:
I'll design a scalable microservices architecture...
[Provides detailed architecture with:]
- Service boundaries
- API contracts
- Database strategy
- Deployment topology
- Mermaid diagrams
You: /scaffold react-component ProductCard --typescript --tests
/scaffold:
✅ Created src/components/ProductCard.tsx
✅ Created src/components/ProductCard.test.tsx
✅ Added exports to index.ts
✅ Generated Storybook story
Follow this recommended learning path:
- ✅ Install Claude Code Tresor
- ✅ Complete this guide
- 📖 Read FAQ
- 🎯 Practice: Let skills work automatically for 1 week
- 📖 Read Agents Reference
- 🎯 Practice: Use each agent once
- 🎯 Project: Analyze existing codebase with @config-safety-reviewer
- 📖 Read Commands Reference
- 🎯 Practice: Use each command
- 🎯 Project: Scaffold complete feature with /scaffold
- 📖 Read Configuration Guide
- 🎯 Customize skills for your workflow
- 🎯 Create custom agent or command
- 📖 Read Contributing Guide
1. Write code normally
2. Skills provide real-time feedback (automatic)
3. For deeper review: @config-safety-reviewer analyze
4. For complete audit: /review --scope staged
5. Fix issues
6. Commit with /review --pre-commit
1. Write feature code
2. test-generator skill suggests tests (automatic)
3. Generate tests: /test-gen --file MyComponent.tsx
4. Review tests: @test-engineer review generated tests
5. Run tests
6. Check coverage
1. Write/update code
2. api-documenter skill suggests docs (automatic)
3. Generate docs: /docs-gen api --format openapi
4. Review docs: @docs-writer review API documentation
5. Update README: readme-updater skill (automatic)
Don't manually invoke skills - they work best when monitoring your work continuously.
When you need comprehensive analysis or complex tasks, invoke agents with @agent-name.
For multi-step processes (scaffold, review, test, docs), use /command-name.
The real power comes from combining skills (automatic) + agents (analysis) + commands (workflows).
Don't try to use everything at once. Start with skills, then add agents, then commands.
- Configuration Guide → - Customize behavior
- FAQ → - Common questions
- Troubleshooting → - Fix issues
- Skills Reference → - Complete skill docs
- Agents Reference → - Complete agent docs
- Commands Reference → - Complete command docs
- Contributing → - Create custom utilities
- Migration Guide → - Version upgrades
- Workflows → - Advanced patterns
Questions?
- FAQ → - Quick answers
- Troubleshooting → - Fix issues
- GitHub Discussions → - Community help
Found a bug?
- GitHub Issues → - Report bugs
Want to contribute?
- Contributing Guide → - Get started
Last Updated: November 7, 2025 | Version: 2.0.0