Token导航 LogoToken导航TokenDH.com
研究检索操作浏览器github未标认证来源可访问clear审计通过

claude-md-architectClaude MD 架构师

Agent Skill

claude-md-architect 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

2,721

周安装

109

GitHub Stars

10

下载量

881
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:claude-md-architect(Claude MD 架构师)
来源仓库:https://github.com/samhvw8/dot-claude
仓库路径:skills/claude-md-architect
安装命令:
npx skills add https://github.com/samhvw8/dot-claude --skill claude-md-architect
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/samhvw8/dot-claude --skill claude-md-architect

简介

claude-md-architect 自动生成并优化项目的 CLAUDE.md 配置文件。

  • 适合在 Codex、Claude、Cursor、Gemini CLI 中提升 AI 编码效率的场景。
  • 通过 GitHub 仓库安装,基于代码库分析生成定制化指导文档。
  • 使用前需授权读取项目结构和依赖信息。
  • 注意生成的内容需人工复核以确保准确性和适用性。

SKILL.md

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 TypeKey IndicatorsTemplate Focus
Web AppReact/Vue/Angular, frontend buildUI components, responsive design, routing
Backend APIExpress/FastAPI, database, authRESTful conventions, validation, security
CLI ToolCommander/Click, stdioCommands, user experience, file operations
LibraryPackage exports, no app logicAPI design, versioning, backward compatibility
MonorepoWorkspaces, multiple packagesCross-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 ComplexityTarget 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 for:

  • Small, universally relevant files (<100 lines)
  • Configuration affecting all changes (tsconfig,.eslintrc)
  • Core type definitions used everywhere

Use On-Demand Loading:

When working on authentication:
  @src/lib/auth.ts
  @src/middleware/authenticate.ts

Avoid:

  • Loading entire directories with @src/**
  • Adding large files that aren't always needed
  • Injecting documentation that duplicates official sources

Integration with Global CLAUDE.md

User has ~/.claude/CLAUDE.md (global):

  • Universal principles (SOLID, DRY, YAGNI)
  • MCP tool documentation
  • Preferred communication style

Project CLAUDE.md should:

  • Focus exclusively on project-specific guidance
  • Avoid duplicating MCP tool usage (already global)
  • Add project-specific MCP tool applications only

Example header:

# MyProject - Development Guide

> Note: General software engineering principles are in your global CLAUDE.md.
> This guide focuses on project-specific patterns and requirements.

MCP Tool Configuration

Detect opportunities:

  • React/Vue/Angular imports → Suggest context7 for official docs
  • UI component requests → Suggest magic MCP for patterns
  • E2E test files → Suggest Playwright MCP for browser automation

Add to CLAUDE.md:

## MCP Tools Configuration

### context7 (Official Documentation)
Use for React hooks, Next.js routing, Prisma schema

### magic (UI Component Generation)
Use for new components, accessibility improvements

### Playwright (E2E Testing)
Use for user flows, visual regression, accessibility audits

Detailed Integration Guide: @refs/integration-strategies.md

Output Format

When Generating New CLAUDE.md

  1. Display generated content in code block
  2. Explain customizations based on analysis
  3. Highlight key decisions
  4. Suggest optional additions
  5. Provide save location and next steps

When Optimizing Existing CLAUDE.md

  1. Summarize issues found
  2. Show before/after comparison for key sections
  3. Present optimized full version
  4. Quantify improvements (token savings %)
  5. Suggest iteration approach

Detailed Templates: @refs/output-templates.md

Common Mistakes to Avoid

ProblemSolution
Over-DocumentationDocument project-specific decisions only
Stale InformationVerify against current package.json, files
Redundant ContextLink to README, add only unique patterns
Token WasteOn-demand context by functional area
Generic FluffSpecific patterns: "Use Zod validation, Prisma transactions"

Success Metrics

Effective CLAUDE.md

  • Claude requires fewer clarifying questions
  • Code matches project conventions on first try
  • Commands work without errors
  • User rarely provides missing context manually

Ineffective CLAUDE.md

  • Claude frequently asks "what framework?"
  • Generated code doesn't match existing style
  • User repeatedly provides same context files
  • CLAUDE.md contains info never referenced

Philosophy

Remember:

  • CLAUDE.md is a living document, not permanent documentation
  • Start minimal, add based on actual friction points
  • Remove guidance that doesn't improve Claude's output
  • Measure effectiveness: fewer questions = better CLAUDE.md

When in doubt:

  • Prefer concise over comprehensive
  • Prefer specific over generic
  • Prefer examples over explanations
  • Prefer on-demand over auto-loading

Reference Files

  • @refs/initialization-workflow.md - Complete guide for creating new CLAUDE.md files from scratch
  • @refs/optimization-patterns.md - Techniques for reducing tokens and improving effectiveness
  • @refs/integration-strategies.md - Integration with global config, MCP tools, slash commands
  • @refs/output-templates.md - Standard formats for presenting results to users

Quick Start: When user requests CLAUDE.md creation/optimization, follow the decision tree above and consult relevant reference files for detailed instructions.

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Claude Code

28.41%
按下载量换算250

Gemini CLI

23.59%
按下载量换算208

windsurf

16.43%
按下载量换算145

Codex

12.67%
按下载量换算112

OpenCode

7.2%
按下载量换算63

Antigravity

3.56%
按下载量换算31

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。

来源信息

继续浏览同类 Skills