Transform legacy codebases into AI-ready projects with Claude Code configurations. Use when (1) analyzing old projects to generate AI coding configurations, (2) creating CLAUDE.md, skills, subagents, slash commands, hooks, or rules for existing projects, (3) user wants to enable vibe coding for a codebase, (4) onboarding new team members with AI-assisted development, (5) user mentions "make project AI-ready", "generate Claude config", or "create coding standards for AI".
npx skills add https://github.com/nicepkg/ai-workflow --skill legacy-to-ai-ready
Transform legacy codebases into AI-ready projects by generating Claude Code configurations.
For most projects, start with just CLAUDE.md:
python scripts/analyze_codebase.py [path]Expand to full configuration only when needed.
Before generating configs, ask these questions:
Project Scope:
Pain Points:
Integration Needs:
Start
│
├─ Small project / Solo dev
│ └─ CLAUDE.md only
│
├─ Team project
│ ├─ Multi-language? → Add .claude/rules/
│ ├─ Complex domain? → Add .claude/skills/
│ ├─ Code reviews? → Add .claude/agents/
│ └─ Repeated tasks? → Add .claude/commands/
│
└─ Enterprise / Large team
└─ All configurations + MCP servers + Hooks
| Config | Purpose | When to Create |
|--------|---------|----------------|
| CLAUDE.md | Project memory (shared) | Always (required) |
| CLAUDE.local.md | Personal preferences (git-ignored) | Individual customization |
| .claudeignore | Files Claude should not access | Sensitive files exist |
| .claude/rules/ | Path-specific rules | Multi-module projects |
| .claude/skills/ | Domain knowledge | Complex business logic |
| .claude/agents/ | Task specialists | Repeated review/debug tasks |
| .claude/commands/ | Quick prompts | Common workflows |
| .claude/settings.json | Hooks + permissions | Auto-formatting, security |
| MCP servers | External tools | Database/API integrations |
python scripts/analyze_codebase.py [project-path]
The script detects:
Output includes:
Claude should read:
Before creating custom configs, search for existing skills and MCP servers:
See references/resource-discovery.md for complete directory of sources.
Tip: Many common needs (git commit, code review, database patterns) already have well-maintained skills available.
Create at project root with:
See references/claude-md-patterns.md.
Create .claude/rules/ when:
See references/rules-patterns.md.
Create .claude/skills/ when:
See references/skills-patterns.md.
Create .claude/agents/ for:
See references/agents-patterns.md.
Create .claude/commands/ for:
See references/commands-patterns.md.
Configure .claude/settings.json for:
See references/hooks-patterns.md.
Configure MCP for:
See references/mcp-patterns.md.
Minimal (small projects):
project/
├── CLAUDE.md
└── [existing files]
Standard (team projects):
project/
├── CLAUDE.md
├── .claude/
│ ├── rules/
│ │ └── code-style.md
│ └── commands/
│ └── commit.md
└── [existing files]
Complete (enterprise):
project/
├── CLAUDE.md # Shared project memory
├── CLAUDE.local.md # Personal (git-ignored)
├── .claudeignore # Files to protect
├── .claude/
│ ├── settings.json # Hooks + permissions
│ ├── rules/
│ ├── skills/
│ ├── agents/
│ └── commands/
└── [existing files]
| Reference | When to Read |
|-----------|--------------|
| examples.md | Complete real-world examples |
| resource-discovery.md | Find existing skills & MCP servers |
| advanced-patterns.md | Migrations, team collab, monorepos |
| claude-md-patterns.md | Creating CLAUDE.md |
| rules-patterns.md | Module-specific rules |
| skills-patterns.md | Domain knowledge |
| agents-patterns.md | Task specialists |
| commands-patterns.md | Quick prompts |
| hooks-patterns.md | Auto-formatting |
| mcp-patterns.md | External tools |
Templates:
assets/CLAUDE.md.template - Project memory templateassets/settings.json.template - Hooks configurationassets/claudeignore.template - File ignore patternsBundled skills to install in target project:
assets/skill-creator/ - For creating new project-specific skillsassets/skill-downloader/ - For downloading additional skillsassets/resource-scout/ - For discovering existing skills & MCP serversCopy these skills to the target project's .claude/skills/ directory:
cp -r assets/skill-creator [target-project]/.claude/skills/
cp -r assets/skill-downloader [target-project]/.claude/skills/
cp -r assets/resource-scout [target-project]/.claude/skills/
This enables the target project to:
This skill should be used when the user asks to "create a hook", "add a PreToolUse/PostToolUse/Stop hook", "validate tool use", "implement prompt-based hooks", "use ${CLAUDE_PLUGIN_ROOT}", "set up event-driven automation", "block dangerous commands", or mentions hook events (PreToolUse, PostToolUse, Stop, SubagentStop, SessionStart, SessionEnd, UserPromptSubmit, PreCompact, Notification). Provides comprehensive guidance for creating and implementing Claude Code plugin hooks with focus on advanced prompt-based hooks API.
This skill should be used when the user asks to "create a hook", "add a PreToolUse/PostToolUse/Stop hook", "validate tool use", "implement prompt-based hooks", "use ${CLAUDE_PLUGIN_ROOT}", "set up event-driven automation", "block dangerous commands", or mentions hook events (PreToolUse, PostToolUse, Stop, SubagentStop, SessionStart, SessionEnd, UserPromptSubmit, PreCompact, Notification). Provides comprehensive guidance for creating and implementing Claude Code plugin hooks with focus on advanced prompt-based hooks API.
Build agentic applications with GitHub Copilot SDK. Use when embedding AI agents in apps, creating custom tools, implementing streaming responses, managing sessions, connecting to MCP servers, or creating custom agents. Triggers on Copilot SDK, GitHub SDK, agentic app, embed Copilot, programmable agent, MCP server, custom agent.
Coding Agent Session Search - unified CLI/TUI to index and search local coding agent history from Claude Code, Codex, Gemini, Cursor, Aider, ChatGPT, Pi-Agent, Factory, and more. Purpose-built for AI agent consumption with robot mode.
Destructive Command Guard - High-performance Rust hook for Claude Code that blocks dangerous commands before execution. SIMD-accelerated, modular pack system, whitelist-first architecture. Essential safety layer for agent workflows.
Makepad UI development skills for Rust apps: setup, patterns, shaders, packaging, and troubleshooting.
Secure environment variable management ensuring secrets are never exposed in Claude sessions, terminals, logs, or git commits
Prompt for generating an AGENTS.md file for a repository
Take nicepkg/legacy-to-ai-ready from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.