mdskills
guides

How to Share AI Agent Skills Across a Development Team

Team collaboration
Photo by Brooke Cagle on Unsplash

Your team just shipped a feature where Sarah's AI agent wrote perfect React components while Mike's agent kept suggesting jQuery. The difference? Sarah found the right skills weeks ago and never shared them.

This happens everywhere. Someone discovers a game-changing prompt template or MCP server configuration, uses it for weeks, then moves to another project. Knowledge dies with the ticket.

Here's how to fix that without turning skill sharing into another bureaucratic nightmare.

Start with project-scoped skill collections

Most teams try to share skills across the entire organization. Wrong move. Start smaller. Create skill collections per project or team.

Why project-scoped works better than company-wide:

  • Frontend teams need different skills than backend teams
  • Each project has unique coding standards and architecture decisions
  • Smaller collections are easier to maintain and update
  • Less noise when browsing for relevant skills

Create a team-skills directory in your project repo:

mkdir team-skills
cd team-skills

Structure it by function, not by person:

team-skills/
├── frontend/
│   ├── react-patterns.md
│   └── accessibility-checks.md
├── backend/
│   ├── api-design.md
│   └── database-migrations.md
└── shared/
    ├── code-review.md
    └── debugging.md

Each skill follows the SKILL.md spec. No exceptions. This keeps them portable and makes them work with any AI agent that supports mdskills.ai.

Set up Git hooks for skill validation

Teams that successfully share skills automate the boring parts. Set up a pre-commit hook that validates skill files before they hit the repo.

#!/bin/sh
# .git/hooks/pre-commit

echo "Validating skill files..."

for skill in team-skills/**/*.md; do
  if ! grep -q "^# " "$skill"; then
    echo "Error: $skill missing title"
    exit 1
  fi
  
  if ! grep -q "^## Purpose" "$skill"; then
    echo "Error: $skill missing Purpose section"
    exit 1
  fi
done

echo "All skills validated ✓"

This catches broken skills before they break someone else's agent setup. Simple check, massive time savings.

Use CLAUDE.md for team-wide agent rules

Skills handle specific tasks. Rules files handle how your agent behaves across all tasks. Different tools, different jobs.

Create a shared CLAUDE.md in your repo root following the CLAUDE.md spec:

# Team Frontend Agent Rules

## Code Style
- Use TypeScript for all new React components
- Import styles with CSS modules syntax
- Write tests in the same directory as components

## Architecture 
- Keep components under 200 lines
- Extract custom hooks for complex state logic
- Use Zustand for global state, useState for local

## Never Do
- Don't use any/unknown types except for external APIs
- Don't write components without props interfaces
- Don't commit without running the test suite

Every developer drops this file in their agent's workspace. Now everyone's AI follows the same coding standards without meetings or Slack messages.

The key insight: rules are global behavior, skills are specific capabilities. Keep them separate.

Share skills through documentation, not direct installation

Here's where most teams mess up. They try to automate skill installation across the team. Don't do this.

Instead, document which skills work well together. Create a SKILLS.md in your repo:

# Recommended Skills for This Project

## Frontend Development
- [React Component Generator](./team-skills/frontend/react-patterns.md)
- [Accessibility Checker](./team-skills/frontend/accessibility-checks.md)

## Backend Development  
- [API Design Helper](./team-skills/backend/api-design.md)
- [Migration Writer](./team-skills/backend/database-migrations.md)

## Installation
Each developer should [install skills](/docs/install-skills) individually:
1. Copy the .md file to your agent workspace
2. Test with a small task first
3. Adjust prompts if needed for your setup

Why documentation beats automation:

  • Developers can test skills before committing to them
  • Different team members might need slightly different versions
  • Easier to remove or modify skills that don't work for someone
  • No complex tooling to maintain

Handle skill conflicts proactively

When multiple people modify the same skill file, Git merge conflicts are inevitable. Plan for this.

Use descriptive commit messages for skill changes:

git commit -m "Update react-patterns: Add error boundary example"
git commit -m "Fix api-design: Remove deprecated endpoints section"

For controversial changes, use feature branches:

git checkout -b update-react-patterns
# Make changes
git push origin update-react-patterns
# Create PR for discussion

The goal isn't to avoid conflicts. It's to resolve them quickly without losing good work.

Version control your agent configurations

Beyond individual skills, teams need to sync their entire agent setups. This includes MCP servers, workspace configurations, and installed skill collections.

Create an agent-setup directory:

agent-setup/
├── mcp-servers.json
├── workspace-config.md
└── recommended-skills.md

Document the complete setup in workspace-config.md:

# Agent Workspace Setup

## MCP Servers
Install these servers: [list from mcp-servers.json]

## Directory Structure

workspace/ ├── team-skills/ (symlink to repo) ├── CLAUDE.md (copy from repo) └── active-skills/ (your personal collection)


## Skills to Install
See recommended-skills.md for current list

New team members can replicate the working setup in under 10 minutes instead of spending days figuring out why their agent doesn't match everyone else's output.

Measure what's working

Track which skills actually get used. Add a simple comment block to each skill:

<!-- 
Usage stats:
- Created: 2024-01-15
- Last updated: 2024-02-10  
- Used by: sarah, mike, alex
- Effectiveness: High (saves ~30min per component)
-->

Update these stats monthly. Remove skills that nobody uses. Improve skills that work well but could work better.

The best practices for skill management apply here: keep what works, kill what doesn't, and be honest about effectiveness.

Keep skills focused and modular

Resist the urge to create mega-skills that do everything. One skill should solve one specific problem well.

Bad: "Frontend Helper" that writes components, styles, tests, and documentation.

Good: Separate skills for "React Component Generator", "CSS Module Writer", "Test Template Creator".

Modular skills are easier to share, easier to maintain, and easier to replace when better approaches emerge. They also work better with the skills vs MCP mental model where each tool has clear boundaries.

Teams that follow this approach report 40% less time spent on "AI agent setup debugging" and much faster onboarding for new developers. The key is starting simple with project-scoped collections and growing from there.

teamscollaborationskills

Related Articles