Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

claude-md-architect

БесплатноБез исполняемых скриптовНе проверен

CLAUDE.md file generation and optimization for Claude Code projects. Capabilities: initialize project instructions, analyze codebase context, optimize…

diegosouzapwот diegosouzapw★ 68 звёзд на GitHub

Об этом скилле

CLAUDE.md Architect Skill

Generate and optimize CLAUDE.md files for software projects by analyzing codebase context and applying Anthropic engineering best practices. Creates concise, maintainable project instructions that maximize Claude Code effectiveness while minimizing token consumption.

Core Principles

  1. Conciseness over Completeness: Treat CLAUDE.md like frequently-used prompts, not exhaustive documentation
  2. Evidence-Based Context: Analyze actual codebase before making recommendations
  3. Incremental Refinement: Start minimal, iterate based on effectiveness
  4. Token Efficiency: Every line should earn its presence in the context window
  5. Human-Readable Structure: Use clear organization with XML tags for parsing

When to Use This Skill

Activate when user requests:

  • "init CLAUDE.md" or "create project instructions"
  • "optimize" or "improve" existing CLAUDE.md
  • "setup Claude for my project"
  • Project-specific instructions for Claude Code
  • Starting work on a new project that needs documentation
  • Existing CLAUDE.md is outdated or ineffective

Quick Decision Tree

User Request
    │
    ├─→ "init" or "create" → Initialize New CLAUDE.md
    │   └─→ Follow: @refs/initialization-workflow.md
    │
    ├─→ "optimize" or "improve" → Optimize Existing CLAUDE.md
    │   └─→ Follow: @refs/optimization-patterns.md
    │
    └─→ "integrate" or "setup MCP/slash commands" → Integration
        └─→ Follow: @refs/integration-strategies.md

Workflow Overview

Initialize New CLAUDE.md

Quick Steps:

  1. Discover - Analyze codebase (language, framework, structure, tests)
  2. Extract - Identify code style, commands, patterns
  3. Generate - Select template, customize for project
  4. Validate - Verify commands, check token count
  5. Present - Show output with explanation

Detailed Instructions: @refs/initialization-workflow.md

Optimize Existing CLAUDE.md

Quick Steps:

  1. Analyze - Evaluate token efficiency, accuracy, relevance
  2. Identify - Find redundancy, outdated info, generic fluff
  3. Refactor - Apply token reduction, restructure, improve clarity
  4. Test - Verify 40%+ token reduction, retain critical info
  5. Present - Show before/after with metrics

Detailed Instructions: @refs/optimization-patterns.md

Token Reduction Quick Reference

Before (Verbose)

When you are implementing new features in this codebase, it's very important that you always make sure to write comprehensive tests for all the functionality you add. We use Jest as our testing framework, and we expect all new code to have at least 80% code coverage.

After (Concise)

### Testing Requirements
- New features require tests (Jest, >80% coverage)
- Unit tests: Individual functions in `src/lib/`
- Integration tests: API endpoints with Supertest

Result: 70% token reduction, same information

Template Selection Guide

Project Type Key Indicators Template Focus
Web App React/Vue/Angular, frontend build UI components, responsive design, routing
Backend API Express/FastAPI, database, auth RESTful conventions, validation, security
CLI Tool Commander/Click, stdio Commands, user experience, file operations
Library Package exports, no app logic API design, versioning, backward compatibility
Monorepo Workspaces, multiple packages Cross-package changes, workspace commands

Quality Checklist

Before presenting CLAUDE.md:

  • ✓ File is <400 lines (prefer <250)
  • ✓ Commands verified against package.json/Makefile
  • ✓ Patterns match actual codebase conventions
  • ✓ No redundant info already in README
  • ✓ Context loading is selective, not exhaustive
  • ✓ Structure uses clear sections with headers
  • ✓ Examples are concrete, not generic
  • ✓ Security/testing requirements reflect actual needs

Token Budget Guidelines

Project Complexity Target Token Count
Simple (single-purpose tool) 100-200 tokens
Medium (standard web app) 200-400 tokens
Complex (multi-service platform) 400-800 tokens
Maximum (exception only) 1000 tokens

If approaching max, split into:

  • .claude/CLAUDE.md (essentials)
  • .claude/ARCHITECTURE.md (reference, not auto-loaded)
  • .claude/commands/*.md (workflows as slash commands)

Content Priority

Keep (High Value)

  • Project-specific commands and scripts
  • Code style conventions unique to this project
  • File organization patterns
  • Testing requirements and strategies
  • Security constraints
  • Performance considerations

Remove (Low Value)

  • Generic software engineering advice
  • Information already in README
  • Obvious best practices (DRY, SOLID, etc.)
  • Detailed framework explanations (use context7)
  • Step-by-step tutorials (link to docs)

Context Loading Strategy

Use @-syntax ONLY f

Полный SKILL.md на GitHub

Установить claude-md-architect в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

metadata.json

FAQ

Что делает скилл claude-md-architect?

CLAUDE.md file generation and optimization for Claude Code projects. Capabilities: initialize project instructions, analyze codebase context, optimize existing CLAUDE.md, apply Anthropic best practices, reduce token usage, improve effectiveness. Actions: init, create, optimize, enhance CLAUDE.md files. Keywords: CLAUDE.md, project instructions, Claude Code setup, project context, codebase analysis, Anthropic best practices, token optimization, project configuration, AI instructions, coding guidelines, project rules, workspace setup. Use when: initializing CLAUDE.md for new projects, optimizing existing project instructions, setting up Claude Code for a codebase, improving AI coding guidelines.

Как установить скилл claude-md-architect?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл claude-md-architect запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить claude-md-architect с