Skip to content
Back to skills

Ast Codemap

ASecurity

AST Code Map generation and structural code search using Python standard library ast

  • 10 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 11, 2026
ai-agentspython

Security analysis

A100/100

Scanned November 11, 2026

npx -y skills add D-Shey/autoharness --skill ast-codemap --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Ast Codemap?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Ast Codemap
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/d-shey-ast-codemap/badge)](https://www.skillsdirectory.com/skills/d-shey-ast-codemap)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: ast-codemap
description: AST Code Map generation and structural code search using Python standard library ast
---

# ast-codemap

## When to use
Use when an agent needs to inspect, navigate or search the structure of a Python codebase without reading full raw files into the context window, reducing token usage by 80-90%.

## Steps
1. Parse the target Python files or directory recursively using `ast.parse`.
2. Extract definitions: top-level classes, methods, functions, async functions, decorators, parameters, docstrings, and module-level imports.
3. Compute summary statistics: lines of code, symbol hierarchy, and call dependencies.
4. Format into compact indented tree or JSON output for LLM consumption.
5. In Gateway, expose through `harness_codemap` or Code Mode scripting.

## How to verify
Run pytest on `tests/test_memory_codemap.py` and verify `generate_codemap` correctly extracts class and function hierarchies.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.