/major-ai-skills:tell-ai-what-not-to-dofrom major-ai-skills
State relevant exclusions and forbidden approaches when they materially constrain the deliverable.
Ships in major-ai-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Defining only what you want ("Write a login script") leaves 90% of the possibility space undefined - inviting the AI to import unnecessary third-party libraries, write 50 lines of boilerplate, or invent complex dependencies.
Negative Constraint Engineering prunes the model's search space by explicitly outlawing forbidden libraries, cliché words, unneeded complexity, and structural anti-patterns.
┌─────────────────────────────────────────────────────────────┐
│ Negative Boundary Pruning │
│ │
│ Positive Command Only ("Write a sorting algorithm"): │
│ • AI might import external libraries, write O(N^2) bubblesort,│
│ or wrap it in an unnecessary class. │
│ │
│ Positive + Negative Guardrails: │
│ "Write a sorting function in Python. │
│ ❌ DO NOT import external packages (standard lib only) │
│ ❌ DO NOT use recursion (must be iterative) │
│ ❌ DO NOT modify the original input array in-place" │
│ • Result: Laser-targeted, exact implementation on Turn 1 │
└─────────────────────────────────────────────────────────────┘
| Category | High-Yield Negative Constraint Example | Why It Prevents Failure |
|---|---|---|
| 1. Vocabulary & Style | "Do NOT use 'delve', 'tapestry', 'testament', or 'in today's world'." | Eliminates tell-tale synthetic AI voice. |
| 2. Technical Dependencies | "Do NOT use external NPM/PyPI packages; use standard library only." | Prevents dependency bloat & supply chain bloat. |
| 3. Architecture / Logic | "Do NOT use recursion, global variables, or mutable default arguments." | Prevents stack overflows and race conditions. |
| 4. Formatting & Chat | "Do NOT include conversational preambles or sign-offs." | Eliminates manual copy-paste cleanup. |
Write a [FUNCTION / SCRIPT] in [LANGUAGE] to [TASK].
Negative Constraints (Strictly Prohibited):
- ❌ Do NOT use external third-party dependencies.
- ❌ Do NOT use deprecated APIs or syntax.
- ❌ Do NOT hardcode file paths or API credentials.
- ❌ Do NOT leave placeholder comments (e.g. `# TODO: add error handling here`). Write the complete error handling.
Draft a response to [CLIENT / EXECUTIVE].
Prohibited Elements:
- ❌ No apologies or self-deprecating phrasing ("Sorry for the delay").
- ❌ No corporate filler ("Hope you are having a wonderful quarter").
- ❌ No vague commitments ("We will look into this soon"). State exact dates.
Prompt: "Write a Python script to parse a nested JSON config and validate required keys." ❌ Model imports
pydanticandpandas- requiring you to build and upload a 50MB Lambda layer for a simple 10-line task.
Prompt: "Write a Python script to validate required keys in a JSON config. Do NOT import pydantic, pandas, or any third-party package; use native Python 3.12 standard library only."
AI Output:
from typing import Dict, Any, List
REQUIRED_KEYS = {"user_id", "email", "subscription_tier"}
def validate_config(payload: Dict[str, Any]) -> List[str]:
"""Validates required keys using pure standard library with zero external packages."""
if not isinstance(payload, dict):
return ["Payload must be a valid dictionary"]
missing_keys = [key for key in REQUIRED_KEYS if key not in payload or payload[key] is None]
return [f"Missing required key: '{k}'" for k in missing_keys]
❌, DO NOT) receive strong attention weights in modern LLMs.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub alivirgo/major-ai-skills --plugin major-ai-skills412 skills in this plugin
/3d-slicerAutomate 3D Slicer research workflows with MRML, VTK/ITK, DICOM data, and Segment Editor. Use for software workflows, not clinical interpretation./abbreviated-git-statusInspect Git branch, staging, and working-tree changes with short or porcelain status output when a compact repository check is needed./ableton-liveAutomate Ableton Live sessions with Python MIDI Remote Scripts, Max for Live, AbletonOSC, and Link synchronization./act-as-a-personal-tutorExplain a subject step by step, assess prior knowledge, and use short exercises to check understanding before advancing.Other plugins' skills for the same job