agentleFS
aplaceforallmystuffaplaceforallmystuff/minervia-starter-kit/skills/creation-guard/SKILL.md

creation-guard

Skill18 starsChanged 11 months agoMITView on GitHub

Analyze existing skills, agents, commands before creating new ones. Prevents duplicates and suggests alternatives.

The file

We split this skill into the rules it gives an agent

3 rules. About 0 are common, 3 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Before creating ANY new:

    line 13
  2. Distinctive:

    Search for existing artifacts with similar functionality

    line 19
  3. Distinctive:

    Before creating ANY new artifact, ask:

    line 135

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Creation Guard

Prevents duplicate functionality and enforces analysis before creating new Claude Code artifacts.

Purpose

Before creating ANY new:

  • Skill (~/.claude/skills/*/SKILL.md)
  • Agent (~/.claude/agents/*.md)
  • Slash command (~/.claude/commands/*.md)

This skill MUST be invoked to:

  1. Search for existing artifacts with similar functionality
  2. Identify potential overlap or extension opportunities
  3. Present findings with recommendation
  4. Get explicit user approval before proceeding

Trigger Phrases

Invoke this skill when you detect:

  • "Create a skill for..."
  • "I want a new command that..."
  • "Let's add an agent for..."
  • "Build a tool to..."
  • Any intent to create new automation/tooling
  • "Should we build/make/create..."
  • "What if we had a tool that..."

Analysis Process

Step 1: Identify the Proposal

Extract from the request:

  • Name: Proposed name for the artifact
  • Type: skill | agent | command
  • Purpose: What it does (one sentence)
  • Key Functions: 3-5 main capabilities
  • Keywords: Searchable terms related to functionality

Step 2: Search Existing Artifacts

Run these searches:

# Skills - search names and descriptions
for skill in ~/.claude/skills/*/SKILL.md; do
  echo "=== $(basename $(dirname $skill)) ==="
  head -20 "$skill"
done

# Agents - search all agent definitions
for agent in ~/.claude/agents/*.md; do
  echo "=== $(basename $agent) ==="
  head -20 "$agent"
done

# Commands - search all command definitions
for cmd in ~/.claude/commands/*.md; do
  echo "=== $(basename $cmd) ==="
  head -10 "$cmd"
done

Also search by keywords:

grep -ril "[keyword]" ~/.claude/skills/ ~/.claude/agents/ ~/.claude/commands/

Step 3: Analyze Overlap

For each potentially related artifact, assess:

CriterionQuestion
Functional overlapDoes it do the same thing? (0-100%)
Naming confusionCould names be confused?
Extension potentialCould the proposal extend this instead?

Step 4: Generate Recommendation

Based on analysis, recommend ONE of:

RecommendationCriteriaAction
PROCEED<20% overlap, genuinely new capabilityCreate new artifact
EXTEND50%+ overlap with single existing artifactModify existing instead
BLOCKWould create problematic duplicationDo not create

Output Format

════════════════════════════════════════════════════════
CREATION GUARD ANALYSIS
════════════════════════════════════════════════════════

PROPOSAL:
  Type: [skill|agent|command]
  Name: [proposed-name]
  Purpose: [one sentence]

EXISTING ARTIFACTS ANALYZED: [count]

RELATED ARTIFACTS FOUND:

1. [artifact-name] ([type])
   Purpose: [what it does]
   Overlap: [X]% - [explanation]

RECOMMENDATION: [PROCEED|EXTEND|BLOCK]

RATIONALE:
[2-3 sentences explaining the recommendation]

SUGGESTED ACTION:
[Specific next step based on recommendation]
════════════════════════════════════════════════════════
Proceed with creation? (y/n)
════════════════════════════════════════════════════════

Self-Check Questions

Before creating ANY new artifact, ask:

  1. Does something similar already exist?
  2. Could this be added to an existing artifact?
  3. Would a user know to look for this vs the existing one?
  4. Am I creating this because it's needed or because it's easier than finding what exists?

Examples

Example: Duplicate Detection

User: "Create a skill for detecting AI-generated writing patterns"

Analysis finds: antislop skill already exists with 95% functional overlap.

Recommendation: BLOCK

  • antislop already detects AI writing patterns
  • User should use existing skill

Example: Extension Opportunity

User: "Create a command for logging work to projects"

Analysis finds: log-to-daily skill exists (70% overlap)

Recommendation: EXTEND

  • log-to-daily logs to daily notes
  • Suggest: Add project targeting to existing skill

Example: Genuine New Need

User: "Create a skill for managing analytics"

Analysis finds: No existing analytics skills.

Recommendation: PROCEED

  • New capability not covered by existing artifacts
  • Proceed with creation

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.