skills/consiliency/dependency-sync/SKILL.md
Detect new imports in modified files and auto-install missing dependencies. Works with npm, uv, pip, cargo, go mod, and other package managers. Triggers after code implementation to keep manifests in sync.
npx skillsauth add aiskillstore/marketplace dependency-syncInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Automatically detect new imports in modified code files and update package manifests. This skill ensures that when code is written that uses new dependencies, the appropriate manifest files (package.json, pyproject.toml, requirements.txt, etc.) are updated automatically.
| Variable | Default | Description | |----------|---------|-------------| | AUTO_INSTALL | true | Automatically install detected dependencies | | PROMPT_BEFORE_INSTALL | false | Ask user before installing (overrides AUTO_INSTALL) | | INCLUDE_DEV_DEPS | true | Detect dev dependencies (test frameworks, linters) | | COMMIT_CHANGES | true | Commit manifest changes as part of the task | | TRIGGER_DOCS_AUDIT | true | Run docs-audit --new-only after adding deps |
MANDATORY - Follow the Workflow steps below in order. Do not skip steps.
If you're about to:
STOP -> Verify the import is real -> Check manifest -> Then install
Identify files that were modified in the current implementation:
# If in git context
git diff --name-only HEAD~1 HEAD -- "*.py" "*.ts" "*.js" "*.tsx" "*.jsx" "*.go" "*.rs"
# Or from task context - files that were written/edited
Parse imports from each modified file based on language:
| Language | Import Pattern |
|----------|----------------|
| Python | import X, from X import Y |
| TypeScript/JavaScript | import X from 'Y', require('Y') |
| Go | import "X" |
| Rust | use X::Y, extern crate X |
Check for manifest files to determine the package manager:
| Manifest | Package Manager | Install Command |
|----------|-----------------|-----------------|
| pyproject.toml (with uv) | uv | uv add <package> |
| pyproject.toml (poetry) | poetry | poetry add <package> |
| requirements.txt | pip | pip install <package> |
| package.json | npm/yarn/pnpm | npm install <package> |
| Cargo.toml | cargo | cargo add <package> |
| go.mod | go | go get <package> |
| pubspec.yaml | pub | flutter pub add <package> |
For each extracted import:
from PIL import Image -> pillow)Execute installation commands for missing dependencies:
# Python with uv
uv add <package1> <package2>
# Node.js
npm install <package1> <package2>
# Rust
cargo add <package1> <package2>
# Go
go get <package1> <package2>
If TRIGGER_DOCS_AUDIT is true and new dependencies were added:
/ai-dev-kit:docs-audit --new-only/ai-dev-kit:docs-add-stack if documentation is missingcookbook/python-imports.mdcookbook/node-imports.mdcookbook/dependency-classification.md| Import | Package Name | Notes |
|--------|--------------|-------|
| PIL | pillow | Python imaging |
| cv2 | opencv-python | OpenCV |
| yaml | pyyaml | YAML parser |
| sklearn | scikit-learn | ML library |
| bs4 | beautifulsoup4 | HTML parsing |
| pg | pg (npm) / asyncpg (py) | PostgreSQL |
| @tanstack/react-query | @tanstack/react-query | Direct match |
| Pattern | Classification |
|---------|----------------|
| pytest, vitest, jest | Test framework (dev) |
| eslint, ruff, black | Linter (dev) |
| @types/* | Type definitions (dev) |
| *-dev, *-debug | Development tools (dev) |
This skill is invoked:
/ai-dev-kit:dependency-sync command## Post-Implementation Steps
After completing implementation:
1. Run `dependency-sync` skill to update manifests
2. Run `post-impl-docs` skill to update documentation
3. Verify build/tests still pass
{
"status": "success",
"dependencies_added": [
{"name": "asyncpg", "version": "^0.29.0", "manifest": "pyproject.toml", "type": "production"},
{"name": "pytest-asyncio", "version": "^0.23.0", "manifest": "pyproject.toml", "type": "development"}
],
"manifest_updated": "pyproject.toml",
"commit_sha": "abc123",
"docs_audit_triggered": true
}
{
"status": "no_changes",
"message": "All imports already present in manifest",
"files_scanned": 5,
"imports_found": 12,
"imports_matched": 12
}
development
Apple Human Interface Guidelines for content display components. Use this skill when the user asks about charts component, collection view, image view, web view, color well, image well, activity view, lockup, data visualization, content display, displaying images, rendering web content, color pickers, or presenting collections of items in Apple apps. Also use when the user says how should I display charts, what's the best way to show images, should I use a web view, how do I build a grid of items, what component shows media, or how do I present a share sheet. Cross-references: hig-foundations for color/typography/accessibility, hig-patterns for data visualization patterns, hig-components-layout for structural containers, hig-platforms for platform-specific component behavior.
tools
Automate HelpDesk tasks via Rube MCP (Composio): list tickets, manage views, use canned responses, and configure custom fields. Always search tools first for current schemas.
testing
Expert Haskell engineer specializing in advanced type systems, pure functional design, and high-reliability software. Use PROACTIVELY for type-level programming, concurrency, and architecture guidance.
tools
GraphQL gives clients exactly the data they need - no more, no less. One endpoint, typed schema, introspection. But the flexibility that makes it powerful also makes it dangerous. Without proper controls, clients can craft queries that bring down your server. This skill covers schema design, resolvers, DataLoader for N+1 prevention, federation for microservices, and client integration with Apollo/urql. Key insight: GraphQL is a contract. The schema is the API documentation. Design it carefully.