claude-md-architect
БесплатноБез исполняемых скриптовНе проверенCLAUDE.md file generation and optimization for Claude Code projects. Capabilities: initialize project instructions, analyze codebase context, optimize…
от 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
- Conciseness over Completeness: Treat CLAUDE.md like frequently-used prompts, not exhaustive documentation
- Evidence-Based Context: Analyze actual codebase before making recommendations
- Incremental Refinement: Start minimal, iterate based on effectiveness
- Token Efficiency: Every line should earn its presence in the context window
- 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:
- Discover - Analyze codebase (language, framework, structure, tests)
- Extract - Identify code style, commands, patterns
- Generate - Select template, customize for project
- Validate - Verify commands, check token count
- Present - Show output with explanation
Detailed Instructions: @refs/initialization-workflow.md
Optimize Existing CLAUDE.md
Quick Steps:
- Analyze - Evaluate token efficiency, accuracy, relevance
- Identify - Find redundancy, outdated info, generic fluff
- Refactor - Apply token reduction, restructure, improve clarity
- Test - Verify 40%+ token reduction, retain critical info
- 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
Установить claude-md-architect в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
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), без исполняемых скриптов.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic