# Source of Truth View

> Serves and opens the Source of Truth HTML knowledge base view via a local background web server.

Source of Truth View is a free AI agent skill on Agensi by Andre Vianna, in Technical Documentation. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [Andre Vianna](https://www.agensi.io/creators/andrevianna)
- Category: [Technical Documentation](https://www.agensi.io/skills/technical-documentation)
- Uses: 1
- 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-view
- Tags: documentation, python, productivity, automation

## About this skill

Managing a project knowledge base in Markdown is great for version control but tedious for navigation. This skill bridges the gap between raw docs and a readable interface by serving your Source of Truth (SoT) knowledge base as a local web view. It handles the logistics of finding the `kb.html` file, checking for stale content, and launching a background server so you can browse your documentation in a browser.

### What it does
- **Locate view files** by scanning for the `view/kb.html` generated by Source of Truth.
- **Freshness validation** to alert you if the Markdown source files have been updated since the last build.
- **Local web serving** using Python or native background processes to host the knowledge base on a secure local port.
- **Remote port forwarding** instructions for developers working in cloud environments, containers, or remote IDEs.
- **Process management** to start, monitor, and gracefully shut down the background server when you are finished.

### How it works
1. **Locate:** The agent finds the `knowledge-base/` directory and verifies the existence of the HTML view.
2. **Verify:** It compares timestamps between the Markdown source and the HTML view to ensure you are seeing the latest data.
3. **Serve:** It initiates a static server bound to `127.0.0.1` on a free port (starting at 8765).
4. **Access:** You receive a local URL or instructions for SSH tunneling if working remotely.

### Frameworks & tools
Requires an environment with file system access and a static file server capability, typically using Python 3 (`http.server`). It is designed specifically for knowledge bases built using the Source of Truth (SoT) framework.

### Why this beats prompting it yourself
Prompting an agent to "open a file" often fails in remote or containerized environments where simple file paths don't resolve in a browser. This skill automates the background process management and port binding logic needed to make documentation actually accessible across different dev environments.

### Use cases
- Previewing documentation locally before committing changes to a repository.
- Sharing a rendered view of a project knowledge base during a pair programming session.
- Accessing searchable documentation in a browser while coding in a terminal-based editor.

### Known limitations
Does not generate or update the knowledge base; it only serves existing builds. Limited to `127.0.0.1` by default for security. Requires Python 3 for the server component.

## 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 View 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 does 'sot view' improve upon just asking an AI agent to open a documentation file?

This skill automates the process of hosting and launching your documentation as a local web view, handling background process management and port forwarding that standard agents often struggle with in containerized or remote environments.

### Are there any specific technical requirements or dependencies for this skill to work?

The skill requires a local Python 3 environment to run the background server and is specifically designed to work with knowledge bases structured using the Source of Truth (SoT) framework.

### Will I be notified if the documentation I am viewing is out of date?

If the skill detects that your Markdown source files are newer than the generated 'kb.html', it will proactively alert you so you can rebuild the view and avoid viewing outdated information.

### Can I use this skill if I am working in a remote development environment like GitHub Codespaces or a VPS?

Yes, the skill provides specific instructions for remote port forwarding and SSH tunneling, making it compatible with cloud IDEs, Docker containers, and remote development servers.

### Does this skill also handle the generation and updating of the Source of Truth HTML files?

No, this skill is a dedicated viewer; it manages the serving and navigation of your knowledge base but does not perform the initial Markdown-to-HTML conversion or build process.

---

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.
