skills/codebase-guide/SKILL.md
Generate a beginner-friendly Markdown guide explaining a codebase. Produces a single Markdown file covering purpose, tech stack, architecture, data flow, key files, and how to run.
npx skillsauth add aivokone/ak-skills-ops codebase-guideInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Produce a comprehensive, beginner-friendly Markdown guide that explains a code repository to someone who has never seen it. The guide covers purpose, tech stack, architecture, data flow, key files, and how to run the project. Every technical term is defined on first use.
Three phases, in order. Do not start writing until Phase 3.
Systematically explore the repository. Gather information in each category below. Adapt to the project — not every category applies.
package.json, Cargo.toml, pyproject.toml,
setup.py, go.mod, composer.json, Gemfile, *.csproj, pom.xml,
build.gradleREADME.md, README.rst, CHANGELOG, ARCHITECTURE.md,
docs/.github/workflows/, .gitlab-ci.yml, JenkinsfileDockerfile, docker-compose.ymlpackages/, apps/, libs/.env.example, config/, settings files.prisma, *.sql, models.*)Scale discovery effort to project size:
| Size | Files | Approach | |------|-------|----------| | Small | <50 | Scan everything | | Medium | 50–500 | Focus on src/, config, entry points | | Large | 500+ | Sample representative modules, focus on architecture boundaries |
After discovery, read the most important files: main entry points, core modules, config, and at least one test file.
Do not read: generated files, lock file contents, vendor directories, minified bundles.
Before writing, answer these questions internally. Do not produce output yet.
Produce one Markdown file following the section structure in
references/output-template.md. Apply the guidelines from
references/writing-rules.md.
Read both reference files before starting this phase.
docs/CODEBASE_GUIDE.md. Create the docs/ directory if it
does not exist.Follow the template order. Omit sections that do not apply:
Load only the reference you need for the current phase:
references/output-template.mdreferences/writing-rules.mdRead these before starting Phase 3. Do not load them during discovery or analysis.
This skill produces one static explanatory document. It does not:
For monorepos: explain the top-level structure and one representative package in depth. List other packages with one-sentence descriptions.
tools
Create, edit, and debug SwiftBar menu bar plugins for macOS. ALWAYS use this skill when the user wants to put anything in the macOS menu bar — whether they say "menu bar plugin", "status bar widget", "menu bar item", or just want to show live data, counters, status indicators, or monitoring info in the macOS top bar. Also triggers for SwiftBar, BitBar, xbar by name, editing or debugging existing menu bar plugin scripts (.sh/.py with | parameters and --- separators), or any request to build a script that outputs formatted lines for a menu bar app. This is the go-to skill whenever macOS menu bar customization is involved, even if the user doesn't mention SwiftBar specifically — if they want a script-based menu bar item on macOS, this skill applies.
tools
Use this skill FIRST for any Seravo-hosted WordPress task. Trigger when the user mentions Seravo, production/shadow, deploy, Git-based deploys, SSH, DDEV, DB sync/import/export, or Seravo custom wp-* commands (wp-backup*, wp-purge-cache, wp-list-env). Start by identifying the environment (production vs shadow vs local) and enforce safety: agents must not run destructive or state-changing commands on production. When production write is needed, provide exact copy-paste commands for the user. Use Seravo-specific CLI and workflows instead of generic WP guidance to avoid wrong commands and risky prod changes.
development
Systematic PR fix loop — checks feedback from all channels (conversation, inline, reviews), fixes code, posts fix reports, and loops until no new feedback remains. All operations through provided scripts.
development
Local docs cache for the project. Always check docs/reference/ before fetching externally. Use for init (set up cache), update (refresh docs), lookup (local-first search), and save (persist fetched docs). If external docs are fetched (Context7/web), save a tailored topic file to docs/reference/ and add a verbal pointer in AGENTS.md.