Individual AI assistant setups get you started. Team-wide AI practices multiply the benefit. This section covers how to share AI configurations, maintain prompt quality across a team, onboard new developers with AI context, and review AI-related changes in pull requests.
| Section | Topic |
|---|---|
| 1. Sharing AGENTS.md | Repository strategy, multi-repo sharing |
| 2. Skills as a Team Library | Organization, naming, review process |
| 3. Onboarding New Developers | Checklist, first-week challenge |
| 4. Prompt Review in PRs | When to review, PR template |
| 5. Measuring Effectiveness | Metrics, retrospective questions |
The simplest and most effective approach: commit AGENTS.md to the project
repository root. Every developer who clones the repo gets the same AI context.
my-service/
├── AGENTS.md ← committed, team-maintained
├── src/
├── pom.xml
└── ...
Benefits:
- Versioned with the code
- Changes go through code review
- Every team member sees the same conventions
- Works with all three assistants
Maintenance:
- Assign an owner (or rotate ownership per sprint)
- Review AGENTS.md during sprint retrospectives
- Update when stack versions, patterns, or conventions change
When several microservices share the same stack and conventions:
Option A: Git Submodule
git submodule add https://gitlab.com/team/ai-prompts.git .ai-promptsThen in AGENTS.md:
<!-- Include shared conventions from .ai-prompts/AGENTS-shared.md -->
## Project-Specific Context
...Pros: version pinning, explicit updates. Cons: submodule complexity, merge conflicts.
Option B: Copy + Customize
Maintain a "golden" AGENTS.md in a central repo. Each project copies it and adds project-specific sections. Use a script to diff against the golden version periodically.
diff <(curl -s https://gitlab.com/team/ai-prompts/raw/main/AGENTS-base.md) AGENTS.mdPros: full control per project. Cons: drift over time without discipline.
Option C: Symlinks via GNU Stow
For developers who work on multiple repos on one machine:
cd ~/ai-prompts
stow -t ~/projects/service-a agents
stow -t ~/projects/service-b agentsPros: instant updates, no Git overhead. Cons: local-only, doesn't help CI or other developers.
ai-prompts/
├── skills/
│ ├── code-review/
│ │ └── SKILL.md # v1.2.0
│ ├── generate-tests/
│ │ └── SKILL.md # v1.1.0
│ ├── db-migration/
│ │ └── SKILL.md # v2.0.0
│ ├── security-review/
│ │ └── SKILL.md # v1.0.0
│ └── endpoint-generator/
│ └── SKILL.md # v1.3.0
├── commands/
│ ├── cursor/
│ └── opencode/
├── CHANGELOG.md
└── README.md
| Convention | Example | Rule |
|---|---|---|
| Directory name | code-review/ |
kebab-case, noun or verb-noun |
| Skill title | Code Review |
Title Case in frontmatter |
| Version | v1.2.0 |
Semantic versioning |
| Description | Reviews Java code for... |
One sentence, starts with verb |
Treat skills like code — they go through review:
- Create a branch:
feature/update-code-review-skill - Make changes: Update the SKILL.md
- Test: Run the skill on 3 representative inputs
- Document: Update CHANGELOG.md with what changed and why
- Review: Another team member reviews the prompt changes
- Merge: After approval, merge and bump version
| Check | Why |
|---|---|
| Instructions are specific and actionable | Vague instructions produce inconsistent output |
| Few-shot examples match current patterns | Outdated examples teach wrong patterns |
| Output format is clear and parseable | Downstream tools may depend on the format |
| No contradictions with AGENTS.md | Conflicts confuse the AI |
| Version bumped appropriately | Consumers need to know about changes |
| Tested on representative inputs | Catch regressions before merge |
Use templates/team-onboarding.md as the copy-paste onboarding doc for new hires. It includes the Day 1 checklist, first-week challenge, do/don't conventions, troubleshooting table, and links to this repo's guides.
Beyond the template checklist:
- Assign an onboarding buddy who has shipped at least one AI-assisted PR using your project's skills and commands.
- Walk through
context-map.mdin the project repo — show which files to open for a migration vs a bug fix (Section 6: Context). - First PR expectation: new developers should use
/reviewon their own diff before requesting human review (Section 4 below). - Subagent intro (optional): after the first week, point them to Section 12: Agents & Subagents for multi-step workflows — not on Day 1.
Customize the template per project: update the skills/commands table to match
what you actually ship in .cursor/commands/ and skills/.
Changes to these files should go through code review:
| File | Review Focus |
|---|---|
AGENTS.md |
Accuracy, completeness, no contradictions |
skills/*/SKILL.md |
Instructions clarity, few-shot quality, version |
.cursor/commands/*.md |
Argument handling, output format, safety |
.opencode/commands/*.md |
Same as above |
.cursor/mcp.json |
Security (no hardcoded credentials) |
## Prompt Change
**What changed:** [Describe the change to AGENTS.md / skill / command]
**Why:** [What problem does this solve? What improvement is expected?]
**Testing:**
- [ ] Tested with input A: [describe result]
- [ ] Tested with input B: [describe result]
- [ ] Tested with edge case: [describe result]
**Backward compatibility:**
- [ ] No downstream skills/commands depend on changed behavior
- [ ] OR: downstream consumers updated
**Version bump:** [e.g., v1.1.0 → v1.2.0]When reviewing code that was generated with AI assistance:
- Does it follow AGENTS.md conventions? — The AI sometimes ignores rules
- Are there hallucinated imports? — AI may reference non-existent classes
- Is the test coverage real? — AI-generated tests sometimes don't actually test behavior
- Are edge cases handled? — AI often focuses on the happy path
- Is the error handling correct? — Check for generic catch blocks
- Are there security issues? — SQL injection, missing validation, exposed secrets
- Does the naming follow conventions? — Check method/variable/class names
| Metric | How to Measure | Target |
|---|---|---|
| AI-assisted PR ratio | PRs tagged with AI-assisted / total PRs | Track trend, not target |
| Time from story to PR | JIRA timestamps | Compare before/after |
| Code review turnaround | Time from PR creation to approval | Faster with AI review |
| Prompt library usage | Git log on skills/commands | Growing adoption |
| AGENTS.md update frequency | Git log on AGENTS.md | At least monthly |
Add these to your sprint retrospective:
- Did the AI save time this sprint? On which tasks?
- Did the AI produce incorrect code that took extra time to fix?
- Are there new patterns we should add to AGENTS.md?
- Are any skills producing inconsistent output?
- Should we invest time in a new skill or command?
| Practice | Implementation |
|---|---|
| Share AGENTS.md | Commit to repo root, review changes |
| Share skills | Centralized library repo with versioning |
| Onboard new devs | Checklist + first-week AI challenge |
| Review prompt changes | PR template + testing checklist |
| Review AI-generated code | 7-point checklist focusing on convention adherence |
| Measure effectiveness | Track AI-assisted PR ratio and time savings |
Proceed to Section 17: Security & Privacy to learn how to use AI assistants safely with sensitive codebases.
- Section 9: AGENTS.md for writing project context
- Section 10: Skills for building reusable skills
- Section 3: Prompt Management for multi-project prompt storage