claude-collaboration
Best practices for using Claude Code in team environments. Covers skill management, knowledge capture, version control, and collaborative workflows.
What this skill does
# Claude Code Collaboration Best Practices
This skill provides guidance on effectively using Claude Code in team environments, managing shared knowledge through skills, and maximizing value from AI-assisted development.
## Core Principles
1. **Skills are living documentation** - They evolve as you learn
2. **Capture knowledge explicitly** - Claude doesn't auto-update skills
3. **All skills live in $CLAUDE_METADATA** - No local skills or commands in projects
4. **Share knowledge across the team** - Centralized repo ensures consistency
5. **Version control your skills** - Track changes and improvements
6. **Be intentional about updates** - Not everything learned needs to be captured
### Critical: No Local Skills or Commands
**ALL skills and commands MUST be in the $CLAUDE_METADATA repository, never in individual project directories.**
**Never do this:**
```bash
# Creating local skill in project
echo "---" > .claude/skills/my-local-skill/SKILL.md
```
**Always do this:**
```bash
# Create skill in central repo
mkdir -p $CLAUDE_METADATA/skills/project-name
echo "---" > $CLAUDE_METADATA/skills/project-name/SKILL.md
# Then symlink to project
ln -s $CLAUDE_METADATA/skills/project-name .claude/skills/project-name
```
**Why centralization is mandatory:**
- **Version control**: All skills tracked in one git repo
- **Team sharing**: Everyone uses the same knowledge
- **Consistency**: No divergence between projects
- **Maintenance**: Update once, applies everywhere
- **Discovery**: Team can see all available skills
**Even project-specific skills go in the central repo** under `$CLAUDE_METADATA/skills/project-name/`.
---
## Understanding How Skills Work
### What Happens During a Session
**At session start:**
- Claude reads all `.claude/skills/` files in your directory
- Skills provide context and guidelines for the session
- Knowledge from skills is "loaded" into Claude's working context
**During the session:**
- Claude learns from your conversation (temporary, in-context learning)
- Solutions discovered apply only to this conversation
- Skills remain unchanged unless you explicitly update them
**At session end:**
- All temporary learning is lost
- Skills remain exactly as they were at the start
- Next session starts fresh, reading skills again
### What This Means
- **Skills persist across sessions** - They're files on disk
- **Session learnings don't persist** - They exist only in conversation context
- **You must explicitly update skills** - Claude won't do it automatically
---
## When to Update Skills
### Always Update Skills For:
1. **Repeated problems with known solutions**
- "We keep hitting this error, here's how to fix it"
- Add to troubleshooting section
2. **New best practices discovered**
- "Using --quiet saves 85% tokens, use it by default"
- Add to optimization guidelines
3. **Common workflows that need standardization**
- "Our team always does X before Y"
- Add to standard procedures
4. **Configuration patterns that work**
- "This cron job setup works best for our HPC"
- Add as recommended configuration
5. **Important architectural decisions**
- "We decided to use symlinks for global skills because..."
- Document rationale for future reference
### Don't Update Skills For:
1. **One-time issues** - Specific to a particular run or environment
2. **Experimental approaches** - Wait until proven effective
3. **User-specific preferences** - Unless they should be team defaults
4. **Obvious information** - Already well-documented elsewhere
5. **Temporary workarounds** - Not worth making permanent
### Example: When to Update
**Scenario 1: New error pattern discovered**
```
Session: "WF8 fails when Hi-C files are missing R2 reads"
Action: ADD to troubleshooting - this will happen again
Rationale: Common issue with known solution
```
**Scenario 2: One-off configuration issue**
```
Session: "My personal laptop has Python 3.7, need 3.8"
Action: DON'T ADD to skill - personal environment issue
Rationale: Not relevant to others, not a recurring pattern
```
**Scenario 3: Token optimization discovered**
```
Session: "Using --quiet mode saves 15K to 2K tokens!"
Action: ADD to token efficiency skill
Rationale: Valuable for entire team, significant impact
```
---
## How to Update Skills
### Method 1: Explicit Request (Recommended)
```
User: "We just solved the issue with workflow timeouts in HPC environments.
Add this to the VGP skill under troubleshooting."
Claude: [Reads current skill, adds new troubleshooting entry, saves file]
```
### Method 2: Ask Claude to Suggest Updates
```
User: "Based on our work today, what should we add to the VGP skill?"
Claude: [Reviews conversation, suggests additions]
User: "Yes, add those three things."
Claude: [Updates skill file]
```
### Method 3: End-of-Session Summary
```
User: "Summarize today's learnings and update the relevant skills."
Claude: [Creates summary, updates multiple skills if needed]
```
### Method 4: Periodic Review
```
User: "We've been working on VGP for a month.
Review our conversation history and suggest skill improvements."
Claude: [Analyzes patterns, suggests updates]
```
---
## Skill Organization Patterns
### Pattern 1: Project-Specific Skills (In Central Repo)
**Use for:** Project-specific knowledge (VGP workflows, Galaxy APIs)
**Location:** `$CLAUDE_METADATA/skills/project-name/` (NOT in project directory)
```
$CLAUDE_METADATA/
└── skills/
├── my-project/ # Project-specific skill
│ └── SKILL.md
└── another-project/
└── SKILL.md
my-project/
└── .claude/
└── skills/
└── my-project -> $CLAUDE_METADATA/skills/my-project # Symlink only!
```
### Pattern 2: General Skills (Cross-Project)
**Use for:** General development practices, tool-agnostic optimizations, team-wide standards
**Location:** `$CLAUDE_METADATA/skills/`
### Pattern 3: Symlinking Skills to Projects
**This is THE standard pattern - all projects use symlinks, no exceptions.**
```bash
# In each project
cd /path/to/project
mkdir -p .claude/skills .claude/commands
# Symlink skills from central repo
ln -s $CLAUDE_METADATA/skills/token-efficiency .claude/skills/token-efficiency
ln -s $CLAUDE_METADATA/skills/my-project .claude/skills/my-project
# Symlink commands from central repo
ln -s $CLAUDE_METADATA/commands/global/*.md .claude/commands/
```
**Critical rule:** Projects contain ONLY symlinks, never actual skill/command files.
### Pattern 4: Skills with Supporting Documentation
```
skills/skill-name/
├── SKILL.md # Core concepts and quick reference
├── reference.md # Detailed technical documentation
├── troubleshooting.md # Common issues and solutions
├── examples/ # Code examples
└── templates/ # Template files
```
**When to use:**
- SKILL.md is getting too long (>500 lines)
- Detailed reference material available
- Multiple categories of information (guides, troubleshooting, examples)
**Best practice:**
- Keep SKILL.md under 500 lines
- Move detailed guides to supporting files
- Reference supporting files at end of SKILL.md
- Use descriptive filenames (troubleshooting.md, not tips.md)
---
## Quick Reference
### Daily Workflow
```
1. Start session -> Claude reads skills
2. Work on task -> Learn new patterns
3. End session -> "What should we add to skills?"
4. Claude suggests -> You approve/modify
5. Git commit -> Share with team
```
### Weekly Maintenance
```
1. Review week's commits
2. Identify patterns across sessions
3. Consolidate related updates
4. Remove outdated info
5. Share changelog with team
```
### Monthly Review
```
1. Audit all skills for conflicts
2. Measure token savings
3. Collect team feedback
4. Major refactoring if needed
5. Update skill documentation
```
---
## Summary
**Key Principles:**
1. **Skills are permanent, sessions are temporary**
2. **Update skills explicitly** - Claude won't auto-update
3. **ALL skills in $CLAUDE_Related in AI Agents
skill-development
IncludedComprehensive meta-skill for creating, managing, validating, auditing, and distributing Claude Code skills and slash commands (unified in v2.1.3+). Provides skill templates, creation workflows, validation patterns, audit checklists, naming conventions, YAML frontmatter guidance, progressive disclosure examples, and best practices lookup. Use when creating new skills, validating existing skills, auditing skill quality, understanding skill architecture, needing skill templates, learning about YAML frontmatter requirements, progressive disclosure patterns, tool restrictions (allowed-tools), skill composition, skill naming conventions, troubleshooting skill activation issues, creating custom slash commands, configuring command frontmatter, using command arguments ($ARGUMENTS, $1, $2), bash execution in commands, file references in commands, command namespacing, plugin commands, MCP slash commands, Skill tool configuration, or deciding between skills vs slash commands. Delegates to docs-management skill for official documentation.
reprompter
IncludedTransform messy prompts into well-structured, effective prompts — single or multi-agent. Use when: "reprompt", "reprompt this", "clean up this prompt", "structure my prompt", rough text needing XML tags and best practices, "reprompter teams", "repromptception", "run with quality", "smart run", "smart agents", multi-agent tasks, audits, parallel work, anything going to agent teams. Don't use when: simple Q&A, pure chat, immediate execution-only tasks. See "Don't Use When" section for details. Outputs: Structured XML/Markdown prompt, quality score (before/after), optional team brief + per-agent sub-prompts, agent team output files. Success criteria: Single mode quality score ≥ 7/10; Repromptception per-agent prompt quality score 8+/10; all required sections present, actionable and specific.
adaptive-compaction
IncludedAdaptive add-on policy and recovery layer that decides WHEN to compact, prune, snapshot, or fork -- replacing fixed-percent auto-compaction across Claude Code, Codex, and MCP-capable hosts. Trigger on auto-compact timing or damage: "when should I compact", "is it safe to compact now or start a fresh session", "auto-compact fires too early/mid-task", "switching to an unrelated task but the window still has space", "context rot", "answers get worse the longer the session runs", "the agent forgot the plan or my decisions after it summarized", "add a layer on top that manages context without changing the agent", raising autoCompactWindow to give the policy room, or installing/tuning a cross-tool compaction policy or PreCompact hook -- even when "compaction" is never said but the problem is context-window pressure or post-summarization memory loss. Do NOT use to summarize a conversation, build RAG, write a summarization prompt (decides WHEN not HOW), or answer max-context-length trivia.
agent-skill-creator
IncludedCreate cross-platform agent skills from workflow descriptions. Activates when users ask to create an agent, automate a repetitive workflow, create a custom skill, or need advanced agent creation. Triggers on phrases like create agent for, automate workflow, create skill for, every day I have to, daily I need to, turn process into agent, need to automate, create a cross-platform skill, validate this skill, export this skill, migrate this skill. Supports single skills, multi-agent suites, transcript processing, template-based creation, interactive configuration, cross-platform export, and spec validation.
llm-wiki
IncludedUse when building or maintaining a persistent personal knowledge base (second brain) in Obsidian where an LLM incrementally ingests sources, updates entity/concept pages, maintains cross-references, and keeps a synthesis current. Triggers include "second brain", "Obsidian wiki", "personal knowledge management", "ingest this paper/article/book", "build a research wiki", "compound knowledge", "Memex", or whenever the user wants knowledge to accumulate across sessions instead of being re-derived by RAG on every query.
skill-master
IncludedAgent Skills authoring, evaluation, and optimization. Create, edit, validate, benchmark, and improve skills following the agentskills.io specification. Use when designing SKILL.md files, structuring skill folders (references, scripts, assets), ingesting external documentation into skills, running trigger evals, benchmarking skill quality, optimizing descriptions, or performing blind A/B comparisons. Keywords: agentskills.io, SKILL.md, skill authoring, eval, benchmark, trigger optimization.