Claude Md Generator logo

Claude Md Generator

Community
felvieira
claude-md-generator

Gera CLAUDE.md inteligente para projetos consumidores. Consome output do Repo Auditor, faz entrevista guiada com o dev e produz um CLAUDE.md especifico, conciso e acionavel. Use apos o Repo Auditor (18) ter mapeado o repositorio. Trigger em: "gerar claude.md", "criar claude.md", "onboarding", "setup claude md", "contexto do projeto", "documentar projeto para agente".

Overview

Publisherfelvieira
Repositoryclaude-skills-fv
Skill nameclaude-md-generator
Stars
28
Forks
5
Bundled files
Instructions only
LicenseApache-2.0
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by felvieira on GitHub. Read the source before you install it.

Installation

Install the Claude Md Generator AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/felvieira/claude-skills-fv/tree/main/skills/28-claude-md-generator
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/felvieira/claude-skills-fv.git /tmp/claude-skills-fv
mkdir -p .claude/skills
cp -r /tmp/claude-skills-fv/skills/28-claude-md-generator .claude/skills/claude-md-generator
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Claude Md Generator in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Claude Md Generator on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Claude Md Generator is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

CLAUDE.md Generator

Gera um CLAUDE.md especifico e acionavel para o projeto consumidor, baseado na auditoria do Repo Auditor e entrevista com o desenvolvedor.

Governanca Global

Esta skill segue GLOBAL.md, policies/execution.md, policies/persistence.md, policies/token-efficiency.md, policies/tool-safety.md, policies/handoffs.md, policies/quality-gates.md e policies/evals.md.

Referencia a constituicao

Se memory/constitution.md existir no projeto consumidor, o CLAUDE.md gerado deve incluir bloco curto referenciando-a como fonte canonica de principios:

markdown
## Governanca
- Principios governantes: ver `memory/constitution.md` (autoridade hierarquica sobre PRD/plan/ADRs)
- Pipeline canonico: `/constitution → /spec → /checklist → /plan → /to-issues → /analyze → /build → /ship`

Se nao existir mas o projeto for maduro (tem ADRs / PRDs / >6 meses), sugerir rodar /constitution no fim da geracao.

Modos de operacao

A skill opera em 2 modos:

Modo generate (default)

  • CLAUDE.md inexistente ou totalmente desatualizado → reescrever do zero baseado em repo audit + entrevista

Modo audit

  • CLAUDE.md existe mas pode estar stale, generico, ou faltando informacao recente → audit + sugestao incremental sem reescrever

Detectar automaticamente:

  • Se CLAUDE.md nao existe → modo generate
  • Se existe e idade < 30d → modo audit (rapido)
  • Se existe e idade > 90d ou stack mudou → modo audit profundo (sugerir regen)
  • Forcar com --mode generate ou --mode audit

Audit checklist (modo audit)

Comparar CLAUDE.md existente com docs/repo-audit/current.md:

CheckAcao se falhar
Stack declarada bate com a real?Flag inconsistencia, sugerir update da secao
Comandos listados ainda funcionam? (npm test, etc)Verificar package.json scripts; sugerir update
Paths mencionados ainda existem?Listar paths quebrados; sugerir update
Convencoes batem com codigo recente? (linter, naming)Comparar com codigo dos ultimos 30d
Referencia a memory/constitution.md se existir?Adicionar bloco se faltar
Referencia ao kit (.bot/) se instalado?Adicionar bloco se faltar
Tem informacao stale (libs deprecated, padroes antigos)?Flag para review

Output do modo audit

Em vez de sobrescrever CLAUDE.md, gera relatorio:

markdown
# CLAUDE.md audit — <data>

## Estado atual
- Idade: 45 dias (criado 2026-04-01, modificado 2026-04-12)
- Tamanho: 142 linhas

## Inconsistencias detectadas (3)
- [ ] Linha 23: declara "Next.js 14" mas package.json mostra 15.2
- [ ] Linha 45: comando `npm run dev` nao existe em scripts
- [ ] Linha 78: path `src/legacy/` foi removido em commit abc123

## Faltando (2)
- [ ] Bloco "Governanca" referenciando memory/constitution.md (existe desde 2026-05-01)
- [ ] Bloco ".bot/" referenciando kit instalado

## Sugerido (1)
- [ ] Linhas 12-15 (filosofia geral) podem ser concisas

## Acoes
- Apply patches sugeridos? (yes/selected/no)
- Regenerar do zero? (recomendado se > 5 inconsistencias)

Quando Usar

  • apos o Repo Auditor (18) ter gerado docs/repo-audit/current.md
  • quando o projeto consumidor nao tem CLAUDE.md (modo generate)
  • quando o CLAUDE.md existente pode estar stale (modo audit)
  • quando um novo dev precisa de onboarding rapido (modo generate)

Quando Nao Usar

  • em scaffolds vazios sem codigo
  • como substituto do Repo Auditor — esta skill consome output da auditoria, nao produz
  • para editar uma unica secao de um CLAUDE.md existente — editar manualmente
  • no repositorio do kit em si (claude-skills-fv)

Entradas Esperadas

  • docs/repo-audit/current.md (ou .bot/docs/repo-audit/current.md)
  • respostas do dev na entrevista interativa

Saidas Esperadas

  • CLAUDE.md na raiz do projeto consumidor
  • conteudo especifico, conciso e em ingles

Prerequisito e Fallback

Se docs/repo-audit/current.md nao existir quando esta skill for invocada:

  1. Emitir aviso: "Auditoria nao encontrada. Executando Repo Auditor (18) primeiro."
  2. Invocar Repo Auditor (18) no repositorio alvo
  3. Continuar com a Fase 1 apos a auditoria estar disponivel

Responsabilidades

  1. Consumir docs/repo-audit/current.md e classificar cada secao como inferida, parcial ou desconhecida
  2. Conduzir entrevista interativa com o dev, perguntando apenas sobre gaps (1 pergunta por vez, com opcoes pre-populadas baseadas no audit)
  3. Gerar draft do CLAUDE.md com ate 11 secoes, omitindo secoes vazias
  4. Apresentar draft para aprovacao do dev e iterar ate aprovacao
  5. Escrever CLAUDE.md na raiz do projeto consumidor

Fase 1 — Ingestao do Audit

Ler docs/repo-audit/current.md (ou .bot/docs/repo-audit/current.md).

Extrair informacoes sobre: stack, comandos, estrutura de diretorios, testes, deploy, riscos.

Classificar cada uma das 11 secoes do CLAUDE.md como:

  • inferida — dados suficientes no audit para gerar a secao
  • parcial — tem algo mas precisa confirmar com o dev
  • desconhecida — precisa perguntar ao dev

Secoes do CLAUDE.md

#SecaoClassificacao Tipica
1Project Overviewparcial ou desconhecida (objetivo de negocio nao esta no audit)
2Tech Stackgeralmente inferida
3Architecturegeralmente inferida
4Key Filessempre inferida (entry points, configs, modulos-chave)
5Commandsparcial (package.json/Makefile cobre parte, mas pode ter scripts manuais)
6Code Styleparcial (eslint/prettier configs dão pistas, mas convencoes verbais nao)
7Design Systeminferida se frontend; omitir inteiramente se nao houver frontend
8Environmentparcial (.env.example ajuda, mas pode haver vars nao documentadas)
9Testingparcial (framework detectavel, patterns nao)
10Gotchassempre desconhecida — conhecimento tacito do dev
11Workflowparcial (CI/CD config ajuda, branch strategy nao)

Fase 2 — Entrevista Inteligente (~5-8 perguntas)

Perguntar APENAS sobre secoes parcial ou desconhecida. Cada pergunta deve vir pre-populada com dados do audit.

Padroes de Pergunta por Secao

SecaoSe inferidaSe parcialSe desconhecida
Project OverviewPular"Detectei X. Qual o objetivo de negocio?""O que este projeto faz e pra quem?"
Tech StackPular"Encontrei A, B, C. Faltou algo?""Qual a stack principal?"
ArchitecturePular"Estrutura parece X. Algum pattern relevante?""Como o codigo esta organizado?"
Key FilesSempre inferidaSempre inferidaSempre inferida
Code StylePular"Vi convencao X. Outras regras?""Alguma convencao de estilo?"
Design SystemPular (sem frontend: omitir)"Usando X. Tokens customizados?"Pular se nao houver frontend
CommandsPular"Encontrei X comandos. Outros fora dos scripts?""Quais os comandos principais?"
EnvironmentPular"Encontrei .env com X vars. Outros necessarios?""Vars de ambiente obrigatorias?"
TestingPular"Encontrei framework X. Patterns de teste?""Abordagem de testes?"
GotchasSempre perguntarSempre perguntarSempre perguntar
WorkflowPular"Deploy via X. Branch strategy?""Workflow de dev?"

Regras da Entrevista

  • 1 pergunta por mensagem via conversa direta (nao via tool)
  • Oferecer opcoes inline quando possivel (ex: "A) X B) Y C) outro")
  • Fallback aberto quando opcoes nao se aplicam
  • Dev pode pular qualquer pergunta (secao omitida ou usa dados inferidos)
  • Gotchas sao sempre perguntadas — conhecimento tacito que analise de codigo nao captura
  • Design System e omitido inteiramente para repos sem frontend detectado no audit

Fase 3 — Geracao do Draft

Montar CLAUDE.md com ate 11 secoes. Omitir secoes vazias.

Ordem das Secoes

  1. Project Overview
  2. Tech Stack
  3. Architecture
  4. Key Files (sempre inferida do audit)
  5. Commands
  6. Code Style
  7. Design System (omitir para repos sem frontend)
  8. Environment
  9. Testing
  10. Gotchas
  11. Workflow

Referencia ao Kit

Se o diretorio .bot/ existir no repo alvo, adicionar secao no topo:

## Skills Kit

This repo uses a skills kit at `.bot/`. Reading order:
1. `.bot/GLOBAL.md`
2. `.bot/policies/`
3. `.bot/docs/repo-audit/current.md` (if exists)
4. `.bot/AGENTS.md`

Principios de Qualidade

  • Conciso: cada secao max 10-15 linhas
  • Acionavel: todo comando deve ser copy-paste ready
  • Especifico: zero conselho generico. "Use meaningful names" → fora. "Always prefix API routes with /api/v1" → dentro
  • Atual: validar comandos contra package.json / Makefile / pyproject.toml
  • YAGNI: se uma secao teria so 1 linha vaga, omitir

Template de Output

Usar templates/claude-md-output.md como base para o CLAUDE.md gerado.

Monorepos

Para monorepos com multiplos packages/workspaces:

  • Gerar UM unico CLAUDE.md na raiz
  • Incluir tabela de packages na secao Architecture
  • Nao gerar CLAUDE.md por package
  • Mencionar convencoes complexas de packages especificos em Gotchas

Fase 4 — Review com o Dev

  • Apresentar o draft completo na conversa
  • Dev aprova ou pede ajustes
  • Iterar ate aprovacao

Fase 5 — Escrita do Arquivo

  • Escrever CLAUDE.md na raiz do projeto consumidor
  • Se ja existir um CLAUDE.md, mostrar diff e perguntar antes de sobrescrever
  • Sem backup — git cuida do historico

Checkpoint antes da Fase 4: para cada comando documentado no draft (npm run X, docker compose Y), confirmar que existe no package.json/script real do projeto — não inventar comando plausível. Comando que não existe no repo é pior que seção vazia: o próximo agente vai tentar rodar e falhar.

Evidencia de Conclusao

  • CLAUDE.md criado ou atualizado na raiz do projeto
  • secoes relevantes preenchidas com dados reais (nao placeholders)
  • dev aprovou o conteudo
  • comandos documentados validados contra o repo

Handoff

Entregar:

  • caminho do CLAUDE.md gerado
  • quais secoes foram inferidas vs perguntadas
  • gaps que o dev escolheu pular
  • recomendacao: rerodar apos mudancas grandes de stack

Seguir policies/handoffs.md.

Frequently asked questions

What does the Claude Md Generator AI skill do?

Gera CLAUDE.md inteligente para projetos consumidores. Consome output do Repo Auditor, faz entrevista guiada com o dev e produz um CLAUDE.md especifico, conciso e acionavel. Use apos o Repo Auditor (18) ter mapeado o repositorio. Trigger em: "gerar claude.md", "criar claude.md", "onboarding", "setup claude md", "contexto do projeto", "documentar projeto para agente".

Why use Claude Md Generator on TypingMind?

Because you install it once and use it with any model. Claude Md Generator is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Claude Md Generator in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/felvieira/claude-skills-fv/tree/main/skills/28-claude-md-generator. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Claude Md Generator?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Claude Md Generator?

As many as you like. As long as a model supports skills, you can use Claude Md Generator with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Claude Md Generator AI skill free?

Yes. It is published on GitHub by felvieira under the Apache-2.0 license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇