---
name: codebase-documentation
description: "Walks a code repository and drafts a short paragraph for each top-level folder and main module, explaining purpose and where to start. Use when new contributors need a starter map of an existing codebase."
license: CC-BY-4.0
compatibility: "Needs access to: GitHub, Docs."
metadata:
  author: "BotBento Editorial"
  version: "2026-10-14"
  source: "https://botbento.com/usecases/codebase-documentation/"
  kind: skill
  hermes:
    tags: ["documentation", "codebase", "onboarding"]
    category: coding
    requires_toolsets: ["file"]
---
# Draft documentation for an existing codebase

A starter map of a repository for new contributors.

## When to use

Have a bot walk a repository and draft short explanations of each folder and main module so new contributors have a starting map.

## Inputs

- `repository_name`: The name of the repository to walk and document.

## Steps

1. When you ask: You name a repo (A person names a repository and asks for a starter map of its folders and modules.)
2. Reads folders and modules
3. One paragraph per area

## Instructions

Read the repository and write one short paragraph per top-level folder and main module: what it does and where to start. Mark anything you inferred rather than read.

## Approvals

- Nothing in this job needs your approval.

## Output

One short paragraph per top-level folder and main module, stating what it does and where to start, and marking anything inferred rather than read. (format: markdown)

## Source

Summarized in our own words from [Autodoc: Toolkit for auto-generating codebase documentation using LLMs](https://news.ycombinator.com/item?id=35297766) (Hacker News, checked 2026-10-14). Any results described there are the authors’ own.

From the BotBento use-case directory: https://botbento.com/usecases/codebase-documentation/. Licence: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/).
