# Source of Truth

> Builds and maintains a high-fidelity, searchable knowledge base for projects by auditing source code and decisions.

Source of Truth is a paid AI agent skill on Agensi by Andre Vianna, in Agents & Orchestration. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $7.49 (one-time purchase)
- Creator: [Andre Vianna](https://www.agensi.io/creators/andrevianna)
- Category: [Agents & Orchestration](https://www.agensi.io/skills/agents-orchestration)
- Version: 1.0
- Last updated: 2026-10-15
- Security: scan passed (2026-10-15); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/source-of-truth
- Tags: ai-agents, documentation, knowledge-base, architecture-mapping, python

## About this skill

Legacy repositories and undocumented codebases create friction for every new developer or agent assigned to the project. This skill audits your existing files to build and maintain a high-fidelity knowledge base, ensuring every module, interface, and architectural decision is mapped and searchable.

### What it does
- **Map architecture** by scanning project modules, data structures, and interfaces to define how components interact.
- **Document conventions** by identifying coding standards, delivery patterns, and testing protocols used in the source.
- **Create searchable views** by generating an offline-ready HTML interface with navigation for quick reference.
- **Maintain state** by updating the knowledge base when project logic changes or new architectural decisions are made.
- **Onboard agents** by providing a structured context layer that allows other LLMs to understand the repo quickly.

### How it works
1. **Initial Audit** where the skill scans the directory to determine project type and scope the documentation requirements.
2. **Drafting Phase** using specialized templates for writers and reviewers to ensure technical depth and accuracy.
3. **User Verification** where the agent pauses to ask scoped questions and gather approvals before finalizing the documents.
4. **View Generation** where a Python script builds the offline HTML browser view including CSS and JS assets.

### Frameworks & tools
Works with any project structure (software or general). The HTML view generator requires Python 3.10 or newer. It reads source files as data without executing them, making it compatible with any language or framework.

### Why this beats prompting it yourself
Manual prompts often miss edge cases in large repos or hallucinate architectural patterns. This skill uses a multi-step verification process with specific writer and reviewer templates to ensure the output matches the actual source code.

### Use cases
- **Legacy handovers** where a developer needs to document an inherited codebase they didn't write.
- **Agent onboarding** to create the "source of truth" context needed for other AI tools to operate safely.
- **Decision logging** to record architectural pivots and open questions in a centralized, versioned format.
- **Project audits** to identify undocumented modules or inconsistencies in project conventions.

### Known limitations
Does not change project code or install dependencies. Large repos may consume significant AI tokens. The HTML generator requires a local Python environment.

## Requires

- Python

## 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 Source of Truth 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

### How does this skill help with undocumented legacy codebases?

It scans your entire repository to map architectural patterns and conventions, then generates an offline-ready HTML interface that acts as a centralized 'source of truth' for both human developers and other AI agents.

### Are there any specific programming languages or software requirements needed to use this?

The skill is language-agnostic because it treats source files as data; however, you will need a local environment with Python 3.10 or newer to run the script that generates the interactive HTML view.

### How is this different from just asking an LLM to explain my code?

Unlike simple prompts, this skill uses a specialized multi-step workflow with separate writer and reviewer templates to verify technical accuracy and prevent the AI from hallucinating architectural patterns.

### Does the documentation stay up-to-date as my project evolves?

The skill is designed to be run incrementally; it scans for changes in project logic or new architectural decisions and updates the existing documentation to ensure the knowledge base stays current with your code.

### Will this skill make any direct changes to my project's source code?

No, the skill operates in a read-only capacity to ensure safety; it audits and documents your files but will never modify your source code or install new dependencies.

### What assets are included in the purchase of this skill?

You receive the complete AI agent workflow, including the specialized documentation templates and the Python-based HTML view generator for creating your searchable knowledge base.

---

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.
