by merlinhu1
Git-native truth docs for AI-assisted codebases, keeping branch-scoped documentation aligned with code so changes stay visible, reviewable, and auditable.
# Add to your Claude Code skills
git clone https://github.com/merlinhu1/truthmarktruthmark is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by merlinhu1. Git-native truth docs for AI-assisted codebases, keeping branch-scoped documentation aligned with code so changes stay visible, reviewable, and auditable. It has 88 GitHub stars.
truthmark's catalog security scan is still queued. You can run an instant dependency and prompt-injection check now with the "Scan for vulnerabilities" button above.
Clone the repository with "git clone https://github.com/merlinhu1/truthmark" and add it to your Claude Code skills directory (see the Installation section above).
truthmark is primarily written in TypeScript. It is open-source under merlinhu1 on GitHub, so you can review or fork the full source.
Yes. SkillsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh truthmark against similar tools.
No comments yet. Be the first to share your thoughts!
Unlocks once the catalog security scan passes (runs nightly).
⚠️ Third-Party Software Notice
This skill is third-party open-source software developed and hosted independently on GitHub. SkillsLLM is an informational directory and does not control or maintain the underlying repository.
Any security checks, ratings, or warnings displayed by SkillsLLM are automated and limited in scope. They do not constitute a security certification or guarantee that the software is safe, error-free, or free from malicious code, vulnerabilities, compromised dependencies, or prompt-injection risks.
Review the source code, permissions, dependencies, and configuration before installing or running any third-party skill. Use is at your own risk. To the maximum extent permitted by applicable law, SkillsLLM is not liable for losses arising from third-party software.
The deep catalog scan for this skill is still queued. Run an instant dependency check now instead.
Your agents write code. Truthmark maintains the human-facing, Git-reviewable documentation.
Truthmark installs Git-native workflows that let AI coding agents create new product and engineering documentation from existing code and tests, keep it current after every code change, and hand you ordinary Markdown diffs for review.
Get started · Website · User Guide · GitHub
🇺🇸 English | 🇨🇳 简体中文 | 🇯🇵 日本語 | 🇰🇷 한국어 | 🇩🇪 Deutsch | 🇫🇷 Français | 🇪🇸 Español | 🇧🇷 Português | 🇷🇺 Русский | 🇸🇦 العربية | 🇮🇹 Italiano | 🇵🇱 Polski | 🇹🇷 Türkçe | 🇻🇳 Tiếng Việt | 🇮🇩 Bahasa Indonesia | 🇬🇷 Ελληνικά
Most documentation tools stop after generation. Truthmark gives agents a complete documentation lifecycle inside your repository:
No hosted knowledge base. No private agent memory. No documentation trapped in chat history.
Requirements: Node.js 24 or newer, a Git repository, and a supported AI coding host for agent workflows.
Run this inside the repository you want Truthmark to manage:
cd /path/to/your-repo
npm install -g truthmark
truthmark init
truthmark init lets you select Codex, Claude Code, GitHub Copilot, OpenCode, Antigravity, Cursor, or a host-neutral command-line interface setup.
Now ask your configured agent to document one real behavior:
/truthmark-document document the implemented session timeout behavior across src/auth/session.ts and tests/auth/session.test.ts
Truth Document creates a new bounded truth doc when one does not exist, updates an existing owner when it does, and updates routing when needed. It does not change functional code.
Review the result:
truthmark check
git status --short --untracked-files=all
git diff
You should now have:
docs/truthmark/engineering/behaviors/session-timeout.md
docs/truthmark/routes/areas/authentication.md
The exact paths follow your repository’s ownership structure. New files appear in git status; changes to tracked files appear in git diff.
Invocation varies by host. OpenCode uses /skill truthmark-document, Antigravity uses @truthmark-document, and other supported hosts use their native skill or slash-command surface. See the platform table for exact commands.
For scripts and continuous integration, pass the selected platforms explicitly:
truthmark init --platform codex --platform cursor
truthmark init --json
Choose none interactively or run truthmark init --clear-platforms for a host-neutral repository. You can add agent platforms later by rerunning truthmark init.
For branch-relative freshness diagnostics, pass a Git base:
truthmark check --base <base-ref>
The Truthmark command-line interface installs and validates the repository contract. Your coding agent performs the evidence review and documentation work through the installed host-native workflows.
A normal code change follows one simple loop:
| Workflow | Use it when | Result |
|---|---|---|
| Truth Document | Existing code needs documentation | Creates or updates evidence-backed product and engineering docs |
| Truth Sync | Functional code changed | Keeps mapped docs and routing aligned before handoff |
| Truth Structure | A new area needs ownership or existing docs are too broad | Creates bounded routes and skeletal starter docs |
| Truth Realize | An approved truth doc should become working software | Updates functional code from documentation |
| Truth Check | Repository truth needs an audit | Reports routing, ownership, evidence, and documentation issues |
| Truthmark Portal | The team wants a browsable documentation site | Generates a committed static HTML presentation from Markdown truth docs |
Truthmark installs these workflows as native repository surfaces for Codex, Claude Code, GitHub Copilot, OpenCode, Antigravity, and Cursor.
Truthmark can create documentation for product capabilities, implementation behavior, application programming interfaces, architecture, workflows, operations, and tests. Code and tests provide the evidence; bounded Markdown docs preserve the result.
Routes connect code areas to canonical docs. When agents change behavior, Truth Sync knows where the corresponding truth belongs and keeps the handoff reviewable.
Product truth captures user-facing promises, boundaries, decisions, and acceptance criteria. Engineering truth captures current behavior, contracts, architecture, workflows, operations, and test behavior.
Everything important lives in committed repository files. Truth follows the branch, works with ordinary pull requests, and remains visible to every maintainer and coding agent.
Truthmark needs no hosted service, daemon, database, vector store, or Model Context Protocol server. The repository carries its own documentation workflow.
| Need | Best fit |
|---|---|
| Better output from one agent session | Better prompt |
| Personal or session-level continuity | Memory tool |
| Plan-first feature work | Specification workflow |
| Branch-scoped documentation that travels with code | Truthmark |
| Behavior correctness | Tests and code review |
| Reviewable AI-assisted documentation | Truthmark + Git review |
Truthmark is built for maintainers and engineering teams that already use AI coding agents and want the repository to keep telling the truth as fast as the code changes.
Supported agent hosts:
| Command | Purpose |
|---|---|
truthmark init |
Create or refresh configuration, routing, templates, and selected host workflows |
truthmark check [--base <ref>] |
Validate repository truth and optionally run branch-freshness diagnostics |
truthmark index --json |
Inspect derived repository and routing metadata |
truthmark impact --base <ref> --json |
Map changed files to do |