Skip to content
Back to skills

Stack Constraints

ASecurity

Stack version pinning and dependency compatibility guards. Prevents silent version drift across project boundaries.

  • 10 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 23, 2026
ai-agentsbashnextjsnodedatabasedocumentation

Works with

  • cli

Security analysis

A100/100

Scanned November 23, 2026

npx -y skills add gosha70/code-copilot-team --skill stack-constraints --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Stack Constraints?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Stack Constraints
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/gosha70-stack-constraints/badge)](https://www.skillsdirectory.com/skills/gosha70-stack-constraints)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: stack-constraints
description: "Stack version pinning and dependency compatibility guards. Prevents silent version drift across project boundaries."
---

# Stack Constraints

Rules for managing dependency versions and technology choices across all project types.

## Version Pinning Policy

When starting a new project, prefer **stable, well-documented versions** over bleeding-edge:

- **ORM / database tools** — use latest stable, not pre-release (e.g., avoid beta/canary/rc).
- **Framework** — use LTS or latest stable release.
- **Language runtime** — use latest stable (not beta/rc).
- **UI libraries** — use latest stable release.

Check package documentation for "stable" vs "experimental" badges before adopting.

## Dependency Installation Protocol

When agents create code requiring new packages:

1. **Agents should install dependencies as part of their task** — if they have Bash permission, they must install what they import.
2. **If an agent lacks permission**, pause and instruct the user to install manually before continuing.
3. **Always test the build after new dependencies** — run the dev server, not just the type checker. Static analysis doesn't catch missing runtime packages.
4. **Check for peer dependency warnings** — these often surface as runtime crashes, not compile errors.

## When to Downgrade

Downgrade from a newer version to a stable one when:

- CLI or build tooling breaks (common with major version bumps of ORMs, bundlers, and frameworks).
- Runtime behavior changes unexpectedly from documented behavior.
- Community plugins/extensions don't yet support the new version.
- Error messages reference features marked "experimental" or "early access."

Document the version pin and the reason in the project CLAUDE.md or a `DECISIONS.md` so future contributors know why.

## Stack-Specific Notes

Add version constraints relevant to your project in the project-level CLAUDE.md. For example:

```markdown
## Stack Constraints
- ORM: Prisma 6.x (7.x has breaking CLI changes as of Feb 2026)
- Runtime: Node 20 LTS (not 22 — some deps don't support it yet)
- Framework: Next.js 14 stable (not 15 canary)
```

This keeps global rules generic while allowing each project to pin its own versions.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.