# API Docs & README Generator

> Get accurate READMEs and API guides written automatically by scanning your actual Python or JavaScript code.

API Docs & README Generator is a paid AI agent skill on Agensi by zihan Y, in Technical Documentation. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $9 (one-time purchase)
- Creator: [zihan Y](https://www.agensi.io/creators/zihan-y)
- Category: [Technical Documentation](https://www.agensi.io/skills/technical-documentation)
- Version: 1.0
- Last updated: 2026-12-05
- Security: scan passed (2026-12-05); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/api-docs-readme-generator
- Tags: documentation, python, javascript, typescript, api, project-management

## What it does

- Scans project files to find names, versions, and dependencies automatically
- Extracts every public function name and its requirements directly from the source code
- Writes one short and runnable code example for every function it finds
- Builds a professional README with a quick start guide and an FAQ section
- Flags gaps where the code is missing clear descriptions instead of guessing
- Creates a sync checklist to ensure docs and code match before a release

## Who it's for

- **Founders with a new software tool:** Turn your messy code into professional docs so customers can actually use what you built. Try: "Create a README and API guide for my new Python project."
- **Freelance developers finishing a client project:** Hand over a project with perfect documentation without spending hours writing it yourself. Try: "Generate a full API reference for this JavaScript folder so I can send it to my client."
- **Small dev teams with outdated docs:** Find the gaps where your code changed but your instructions didn't. Try: "Sync my README with the latest changes in the src folder."

## About this skill

When you build software, writing the instructions is often the hardest part. This skill looks at your actual code files and writes the documentation for you. It finds every public function, figures out what goes in and what comes out, and writes a clear guide that matches the reality of your code. No more guessing if the instructions are still right or if you missed a step.

### How it works

1. You point your AI agent to your project folder or files.
2. The skill scans your manifest files to find the project name, version, and what it needs to run.
3. It extracts every public function, noting the exact names, requirements, and what happens when they run.
4. It writes a README with a quick start guide, a configuration list, and a table of every function.
5. It creates a separate, detailed API document with a real, runnable example for every single feature.

### Frameworks & tools

This skill works with JavaScript, TypeScript, and Python code. It uses a Python script to build the initial outline and relies on standard Markdown files for the final documents.

### Why this beats prompting it yourself

A normal chat might guess how your code works or hallucinate features you haven't built yet. This skill follows a strict rule: the code is the only truth. It checks for specific "public" markers in your files and flags gaps as "not documented in source" instead of making things up, ensuring your users never get a broken example.

### Use cases

- Create a professional README for a new GitHub project from scratch.
- Update documentation after a big code change to ensure nothing was missed.
- Write a technical API reference for a client handover.
- Check if your configuration files match your actual code settings.

### Known limitations

This skill only documents what is visible in the code. It cannot explain the "why" or "business logic" if it isn't written in the comments or the code itself.

## Technical details

Built to process JavaScript, TypeScript, and Python projects. It reads package.json, pyproject.toml, go.mod, and Cargo.toml for project metadata. It uses an internal Python script (scripts/gen_readme.py) to parse source directories and generates Markdown files based on provided templates (references/readme-template.md and references/api-doc-template.md). It extracts signatures, parameters, and types using AST-like logic for Python and JSDoc/Export analysis for JS/TS.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the API Docs & README Generator skill from Agensi" and describe your task.
3. Buy it on the listing or let your agent ask you first; your agent then loads it from Agensi when it needs it. Every paid skill has a money-back guarantee: https://www.agensi.io/docs/money-back-guarantee

## Frequently asked questions

### What kind of documentation will I get for my code?

This skill scans your project files to identify every public function, noting exactly how they work and what inputs they require. It then builds a clear guide and a list of instructions so others know how to use your software without guessing.

### Do I need to provide anything special for this to work?

You only need your project folder containing Python, JavaScript, or TypeScript files. The skill reads your existing setup files like package.json or pyproject.toml to gather the project name, version, and necessary settings automatically.

### What files does the skill produce?

It creates a README file for a quick overview and a separate, detailed API document. Each function gets its own section with a real code example you can actually run, along with a table of settings and error messages.

### Can it explain the reasoning behind my complex business logic?

The skill only writes about what it can see in your code and comments. It will not try to guess the business goals or the logic behind your work, and it will flag missing information as not documented rather than making things up.

### How do I tell my agent to start writing the guides?

Ask your agent to scan your project folder to create a README or an API reference. You can also ask it to run a sync check before a new release to make sure your instructions still match your actual code.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
