Anshin-Health-Solutions

claude-md-generator

0
0
# Install this skill:
npx skills add Anshin-Health-Solutions/superpai --skill "claude-md-generator"

Install specific skill from multi-skill repository

# Description

Auto-detect project stack and generate a tailored CLAUDE.md

# SKILL.md


name: claude-md-generator
description: "Auto-detect project stack and generate a tailored CLAUDE.md"
triggers:
- generate claude.md
- init claude.md
- create claude.md
- project setup
- setup instructions


CLAUDE.md Generator Skill

Detect the current project's technology stack and generate a tailored CLAUDE.md file.

Detection Logic

Check for these files to identify stack:

File Stack
next.config.* + package.json Next.js
remix.config.* Remix
go.mod Go
Cargo.toml Rust
requirements.txt + manage.py Django
requirements.txt + main.py OR pyproject.toml FastAPI/Python
turbo.json OR nx.json Monorepo
package.json (plain) Generic TypeScript

Generated CLAUDE.md Structure (200-400 lines target)

  1. Project Overview β€” Auto-populated from package.json/go.mod/Cargo.toml
  2. Critical Rules β€” Framework-specific constraints
  3. File Structure β€” Scanned from actual directory layout
  4. Key Patterns β€” Framework-specific (API responses, error handling, state)
  5. Testing β€” Detected test framework and conventions
  6. Git Workflow β€” Conventional commits, PR process

Process

  1. Scan project root for stack indicators
  2. Read existing package manifests for metadata
  3. Scan directory structure for conventions
  4. Generate CLAUDE.md using appropriate template
  5. Present to user for review before writing

Rules

  • Never overwrite existing CLAUDE.md without user confirmation
  • Keep under 400 lines (200-300 ideal)
  • Include only rules relevant to detected stack
  • Scan for existing patterns before inventing new ones

# Supported AI Coding Agents

This skill is compatible with the SKILL.md standard and works with all major AI coding agents:

Learn more about the SKILL.md standard and how to use these skills with your preferred AI coding agent.