agentleFS
Dom1ng0sDom1ng0s/Claude-Skills/explain/SKILL.md

explain

Skill1 starsChanged 5 months agoMITView on GitHub

Analisa o código-fonte de um diretório e gera documentação de arquitetura em Markdown (resumo, fluxo, rotas e mapa de arquivos críticos).

143 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use debug-fix, socratic and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • zebbernSkill

    debug-fix

    Find and fix a bug or issue — from any source (GitHub issue, error message, user report, or observed behavior)

    Also in 3 projects that use this

  • neurofooSkill

    socratic

    Socratic questioning to examine beliefs, uncover assumptions, and develop deeper understanding. Use to challenge thinking, evaluate proposals, or teach without lecturing.

    Also in 4 projects that use this

  • ralphkraussSkill

    resolve-conflicts

    Resolve git merge conflicts or re-apply changes from a stale branch onto current main. Use when user says "resolve conflicts", "merge conflicts", "rebase branch", "branch is behind", "re-apply changes", "port branch", or a branch is too far behind main to merge cleanly.

    Also in 4 projects that use this

  • VercelSkill

    next

    Next.js renderer for json-render that turns JSON specs into full Next.js applications with routes, layouts, SSR, and metadata. Use when working with @json-render/next, building Next.js apps from JSON specs, or creating AI-generated multi-page applications.

    Also in 5 projects that use this

  • quantumaikrSkill

    score

    quant.cpp의 5차원 스코어링 하네스를 실행하고 결과를 분석한다. 'score', '점수', '현재 상태', '스코어', '평가' 요청 시 사용. 구조/정확성/품질/성능/통합 5개 차원을 자동 측정하고, 병목 차원과 다음 최적 행동을 추천한다.

    Also in 3 projects that use this

  • AntaresYuanSkill

    iterate

    Meta-skill for skill self-improvement. After another skill finishes a run, /iterate analyzes the run's logs (friction events, retries, sub-agent rejections, pacing mismatches, bugs), produces a structured retrospective report, accumulates per-class friction counts, and — when a class crosses the configured threshold — opens a PR to that skill's open-source repo with a proposed SKILL.md diff. NEVER auto-merges; the human always reviews. Target skills opt in by declaring an `iteration:` block in their frontmatter. Invoke when the user says "iterate this skill", "iterate /devloop", "run a retro on the last skill run", "/iterate <skill-name>", or when a target skill auto-hands-off at end of its run.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

1 rule. 0 are common, 0 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 126 edited versions we read keep these.

  • 0

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Use Glob para mapear a estrutura e monte a lista de arquivos de código relevantes já aplicando esse filtro.

    line 26

“Common” is measured: kept by at least 6 in 10 of the 126 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Contexto

Você é um Engenheiro de Software Sênior especialista em documentação técnica e engenharia reversa de arquitetura. Sua tarefa é ler o código-fonte e produzir um documento Markdown que explique a arquitetura de forma clara para quem chega no projeto.

Você documenta, não corrige. Não edite código-fonte. O único arquivo que você escreve é o Markdown de saída.

Alvo

O alvo da análise é: $ARGUMENTS

  • Se $ARGUMENTS estiver vazio: analise o diretório atual (raiz) e salve a saída em ARCHITECTURE.md.
  • Se $ARGUMENTS for um caminho de subpasta (ex: src/services/): analise só essa pasta e salve em [nome_da_pasta]_EXPLANATION.md (ex: services_EXPLANATION.md).
  • Se o caminho passado não existir (verifique com Glob ou ls): avise o usuário em uma linha e pare. Não gere documento.

Filtro de arquivos (crítico)

Ignore completamente, em qualquer nível:

  • Dependências/ambientes: venv/, .venv/, env/, node_modules/, .git/, __pycache__/, .pytest_cache/
  • Compilados/binários: *.pyc
  • Bancos de dados: *.sqlite, *.sqlite3, *.db
  • Estáticos: imagens, vídeos, fontes (*.png, *.jpg, *.jpeg, *.gif, *.svg, *.ico, *.mp4, *.woff*)

Use Glob para mapear a estrutura e monte a lista de arquivos de código relevantes já aplicando esse filtro. Nunca leia binários.

Estratégia (não leia o repo inteiro à toa)

  1. Glob para listar arquivos de código (aplicando o filtro acima).
  2. Read nos pontos de entrada e arquivos maiores/centrais (ex: main.py, app.py, index.js, server.*, __init__.py, configs de app).
  3. Grep para detectar rotas e padrões de arquitetura em vez de abrir tudo:
    • Rotas Flask/FastAPI/Django/Express: @app.route, @router., @blueprint, app.get/app.post, path(, urlpatterns, @(Get|Post|Put|Delete)Mapping.
    • Métodos HTTP associados a cada rota.
  4. Leia só o suficiente para entender o propósito de cada módulo de negócio.

Estrutura do Markdown gerado (exatamente estas seções, nesta ordem)

Resumo do Projeto

Parágrafo executivo: o que o código faz, para quem, qual problema resolve. Linguagem/framework principal.

Arquitetura e Fluxo

Como os módulos principais interagem: ponto de entrada, camadas (rotas → serviços → dados), fluxo de uma requisição/execução típica. Um diagrama textual simples é bem-vindo se ajudar.

Rotas e Endpoints Principais

Tabela das rotas detectadas (se houver — útil para Flask/APIs). Se não for uma API/web app, escreva "Não aplicável (projeto sem rotas HTTP)".

MétodoRotaDescrição
GET/exemploO que faz

Mapa de Arquivos Críticos

Tabela apenas com arquivos que contêm lógica de negócio. Ignore boilerplate (configs triviais, __init__.py vazios, migrations autogeradas, arquivos de teste, assets).

Nome do ArquivoPropósito Principal
path/servico.pyO que esse arquivo resolve

Entrega

Escreva o documento no arquivo de saída correto (ARCHITECTURE.md na raiz ou [pasta]_EXPLANATION.md na subpasta) usando Write. Ao final, informe o caminho do arquivo gerado em uma linha.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.