Agent skill · software engineering · bobmatnyc

bad-example-skill

ANTI-PATTERN - Example showing violations of self-containment (DO NOT COPY)

Why this skill is useful

This skill demonstrates anti-patterns and does not provide any new knowledge or capabilities to the AI.

What it needs

About 7k tokens when loaded. Last updated 2026-07-18. 67 stars on the source repository.

What this skill does

⚠️ BAD EXAMPLE - Interdependent Skill (Anti-Pattern) WARNING: This is an ANTI-PATTERN example showing what NOT to do. DO NOT COPY THIS STRUCTURE. See good-self-contained-skill for correct approach. --- ❌ VIOLATION #1: Relative Path Dependencies Why This is Wrong: ❌ Uses relative paths (../, ../../) ❌ Assumes hierarchical directory structure ❌ Breaks in flat deployment (~/.claude/skills/) ❌ Links break when skill deployed standalone Correct Approach: --- ❌ VIOLATION #2: Missing Essential Content Why This is Wrong: ❌ No actual testing patterns included ❌ Requires user to have another skill ❌ Skill is incomplete without other skills ❌ "See other skill" instead of inlining Correct Approach: python import pytest from exampleframework.testing import TestClient @pytest.fixture def client(): """Test client fixture.""" return TestClient(app) def testhomeroute(client): """Test homepage.""" response = client.get("/") assert response.statuscode == 200 assert response.json() == {"message": "Hello"} --- ❌ VIOLATION #3: Hard Skill Dependencies bash claude-code skills add setup-skill database-skill pytest-patterns Why This is Wrong: ❌ Lists other skills as "Required" ❌ Skill doesn't work standalone ❌ Creates deployment coupling ❌ Violates self-containment principle Correct Approach: bash pip install example-framework pytest sqlalchemy --- ❌ VIOLATION #4: Cross-Skill Imports Why This is Wrong: ❌ Imports from other skills ❌ Code won't run without other skills ❌ Creates runtime dependencies ❌ Violates Python module boundaries Correct Approach: --- ❌ VIOLATION #5: Hierarchical Directory Assumptions toolchains/python/frameworks/bad-example-skill/ Why This is Wrong: ❌ Assumes specific directory structure ❌ Navigation instructions using relative paths ❌ Won't work in flat deployment ❌ Confuses deployment location with skill relationships Correct Approach: --- ❌ VIOLATION #6: Incomplete Examples Why This is Wrong: ❌ Examples are fragments, not complete code ❌ "See other skill" instead of s …

How to use it

Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:

@skills bobmatnyc/bad-interdependent-skill

View the source on GitHub

Browse the @skills marketplace