# Project Wiki: Codebase Map That Flags Stale Docs

> A map of your app's screens and features in docs/wiki that marks pages stale when the code they describe changes.

Project Wiki: Codebase Map That Flags Stale Docs is a free AI agent skill on Agensi by doo_sani, in Technical Documentation. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [doo_sani](https://www.agensi.io/creators/doo-sani)
- Category: [Technical Documentation](https://www.agensi.io/skills/technical-documentation)
- Uses: 1
- Version: 1.0
- Last updated: 2026-11-29
- Security: scan passed (2026-11-29); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/project-wiki-codebase-map-that-flags-stale-docs
- Tags: documentation, web-design, code-review, codebase-map, claude-code, wiki, onboarding

## About this skill

Coding agents grep the whole repo to find a screen that already exists, then rebuild a component that was already there. Hand-written docs would help, but they drift and nobody notices.

**Project Wiki** keeps one short page per screen and per cross-screen feature in `docs/wiki/`, and a bundled script records a hash of the source files each page describes. When the code changes, the page turns `stale` instead of silently lying.

### What you get
- **One page per screen:** route, files, components, APIs, UI states and links to other screens.
- **One page per feature:** user flows that span several screens (e.g. order cancel across list and detail).
- **`check`:** every page is `ok`, `stale` (its files changed), `broken` (a listed file or linked page is gone), `unstamped` or `invalid`.
- **`find <term>`:** searches slugs, routes, files, components, APIs and states, and shows each hit's status, so the agent only trusts pages that still match the code.
- **`index`:** a generated `docs/wiki/index.md` table of every screen and feature.

### What to ask your agent
- **"wiki init"**: finds your routes, shows a draft list of pages for your OK, then writes and stamps them.
- **"wiki update [slug…]"**: refreshes stale or broken pages after the agent re-reads the code.
- **"wiki check"**: status of every page.

### Why it is safe to install
- Node.js 18+ only, no dependencies.
- **No network calls.** The script writes only `.md` files inside `docs/wiki/` and refuses files outside the project.
- Page text is treated as data, never as instructions to the agent.

### Good fit
- Web apps with many screens (admin panels, dashboards, SaaS front ends).
- Teams or solo builders who let an agent work on the same codebase across many sessions.

## Requires

- Node.js

## Known limitations

Requires Node.js 18+. Staleness covers only the files listed in each page's frontmatter: a new file that now belongs to a screen is not detected until you add it to the page. The agent writes the pages, so first-run quality depends on it reading the code (the skill tells it to read every listed file and to show you the draft list before writing).

## 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 Project Wiki: Codebase Map That Flags Stale Docs skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

### How is this different from asking the agent to write docs?

Each page records a hash of the source files it describes. `wiki.js check` compares those hashes with the current files, so a page whose code changed shows up as `stale` instead of being trusted silently.

### Which frameworks does it work with?

Any project with screens or routes: router files, `pages/` or `app/` directories, server route tables or HTML entry points. The script itself only reads the files listed on each page and needs Node.js 18+.

### Does it need a cloud service or an account?

No. The wiki is plain Markdown in your repository (`docs/wiki/`), and the script makes no network calls.

### What statuses can a page have?

`ok` (matches its files), `stale` (a listed file changed since the last stamp), `broken` (a listed file or linked page is missing), `unstamped` (never stamped) and `invalid` (frontmatter breaks the format).

### Will it change my code?

No. The script writes only `.md` files inside `docs/wiki/` and refuses paths outside the project. Pages are written after you confirm the draft list.

---

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.
