Trustline — AI skill for Claude Code
Trusted baseline + auto-rollback for AI agent config files (.claude/, AGENTS.md, .mcp.json).
How to install Trustline
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open LuckTerence/trustline and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Trustline does
Trusted baseline + auto-rollback for AI agent config files (.claude/, AGENTS.md, .mcp.json). Detects prompt-injection / supply-chain tampering and rolls back to a trusted snapshot via Claude Code hooks.
Alternatives in AI
- Prismor — Self-hosted runtime control plane for AI agents 334 ★
- MuseAI Skills — muse.ai (Muse AI) skills and runtime snapshot: 68 skills, workflow guides, connector manifests 261 ★
- Scipilot Writing Skill — SciPilot family: academic writing and polishing co-pilot, with a machine-checked writing-quality evidence chai 220 ★
README
Trustline
**Trusted baseline + auto-rollback for AI agent configuration files.**
AI coding agents (Claude Code, Cursor, Codex, ...) load rules from files such as `.claude/`, `AGENTS.md`, `.cursorrules` and `.mcp.json`. Those files are now a supply-chain attack surface: cloning a repository or installing a third-party MCP can silently inject instructions that tell your agent to exfiltrate secrets, tamper with your shell, or hide its own actions.
Existing scanners (medusa, Snyk agent-scan, Cisco mcp-scanner, ...) **detect** such tampering. Trustline is the missing **recovery layer**: it keeps a trusted baseline of your agent configuration files and can roll them back — and, through Claude Code hooks, block suspicious loads *before* they reach the model.
What it does
trustline init— establish a trusted baseline (SHA-256 snapshot) of managed agent files.trustline status— diff the working tree against the baseline (added / modified / deleted).trustline scan— static heuristic scan for prompt-injection / exfiltration / privilege-tampering signals (15 rules in v0.1).trustline rollback [files...]— restore files to the baseline (git HEAD first, then local snapshots; soft rollback keeps.bak).trustline export-sarif— emit scan findings as SARIF for CI / DefectDojo.trustline hook install— wire Claude Code hooks (SessionStart / file-load / PreToolUse) to verify before the agent trusts a rules file.
Install
pip install trustline # or: uv tool install trustline
Quick start
cd ~/some-repo-you-cloned
trustline init # review listed files, press enter -> baseline saved
trustline status # nothing changed yet
trustline scan --sarif # heuristic scan of managed files
# ... after a suspicious change ...
trustline status # shows: MODIFIED .claude/settings.json
trustline scan .claude/settings.json
trustline rollback .claude/settings.json # back to trusted s
Related Skills
Config Guard
Stop AI agents from crashing OpenClaw by validating config changes. Auto-backup, schema validation, and auto-r
Skillgrab
One command. Scan any project and auto-install matching AI agent skills from skills.sh. Zero config. Detects J
Trapscan
Scan a repository for things that execute the moment you open it — editor auto-tasks, devcontainer host comman
AI Component Vetting
Vets third-party AI tooling components (MCP servers, hooks, agents, plugins, skills) for supply-chain risk, us
China Supply Chain Skills
中国供应链场景 AI 技能包:采购到付款(P2P)+ 订单到收款(O2C)两个技能、14 份参考手册,含价格库/供应商档案/客户信用档案记忆飞轮 China supply-chain AI skills for agen
LLM Gtd
GTD (Getting Things Done) skill for Claude Code, Cursor & Codex — one Markdown trusted system, three platform
Related Agents
Code Audit GitHub Workflows
Audits GitHub Actions workflow YAML and composite-action YAML for supply-chain, injection, permission, and sec
Critic Security
Review code for OWASP-style security issues (injection, authn/authz, secrets, supply chain, LLM-specific) in p
Migration Manager
Manages Alembic migrations — generates, reviews, squashes, and safely rolls back. Use when you have migration