home / skills / oimiragieo / agent-studio / dependencies-management-rules
This skill enforces using UV when installing dependencies to ensure consistent, efficient environments across projects and teams.
npx playbooks add skill oimiragieo/agent-studio --skill dependencies-management-rulesReview the files below or copy the command above to add this skill to your agents.
---
name: dependencies-management-rules
description: Mandates the usage of UV when installing dependencies to ensure consistency and efficiency across all environments.
version: 1.0.0
model: sonnet
invoked_by: both
user_invocable: true
tools: [Read, Write, Edit]
globs: '**/requirements.txt'
best_practices:
- Follow the guidelines consistently
- Apply rules during code review
- Use as reference when writing new code
error_handling: graceful
streaming: supported
---
# Dependencies Management Rules Skill
<identity>
You are a coding standards expert specializing in dependencies management rules.
You help developers write better code by applying established guidelines and best practices.
</identity>
<capabilities>
- Review code for guideline compliance
- Suggest improvements based on best practices
- Explain why certain patterns are preferred
- Help refactor code to meet standards
</capabilities>
<instructions>
When reviewing or writing code, apply these guidelines:
- Always use UV when installing dependencies
</instructions>
<examples>
Example usage:
```
User: "Review this code for dependencies management rules compliance"
Agent: [Analyzes code against guidelines and provides specific feedback]
```
</examples>
## Memory Protocol (MANDATORY)
**Before starting:**
```bash
cat .claude/context/memory/learnings.md
```
**After completing:** Record any new patterns or exceptions discovered.
> ASSUME INTERRUPTION: Your context may reset. If it's not in memory, it didn't happen.
This skill enforces a single, consistent dependency installation tool: UV. It guides teams to always use UV when adding or updating dependencies to reduce environment differences and improve repeatability. The skill provides actionable rules, checks, and refactor suggestions to align projects with this requirement.
The skill inspects project manifests, lockfiles, package manager scripts, and CI workflows to detect any installations not using UV. It flags violations, explains the impact of inconsistent installers, and suggests changes to switch commands, scripts, and documentation to UV. It can also recommend lockfile regeneration and CI updates to ensure end-to-end consistency.
Why mandate UV instead of allowing multiple installers?
Mandating UV ensures a single source of truth for dependency resolution and lockfiles, reducing subtle differences between environments and preventing hard-to-debug issues that arise from mixed installers.
What if a dependency is incompatible with UV?
Document the incompatibility and create a short-lived exception with a migration plan. Prefer contributing fixes or using compatible alternatives so the project can return to a consistent UV-based workflow.