Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add codeprakhar25/agentdiff --skill agentdiff-contextgit clone --depth 1 https://github.com/codeprakhar25/agentdiffWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/codeprakhar25/agentdiff/agentdiff-context)<a href="https://agentmods.dev/skills/codeprakhar25/agentdiff/agentdiff-context"><img src="https://agentmods.dev/badge/skills/codeprakhar25/agentdiff/agentdiff-context/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/codeprakhar25/agentdiff/agentdiff-context"><img src="https://agentmods.dev/badge/skills/codeprakhar25/agentdiff/agentdiff-context.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00053 | $0.00529 |
| Opus 5.5 | $0.00021 | $0.00212 |
| Sonnet 5.5 | $0.00011 | $0.00106 |
| Haiku 4.5 | $0.00005 | $0.00053 |
Grade A, and why
agentdiff-context scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 75 lines — stays where its author put it; the contents beside it link to each section on GitHub.
AgentDiff Context
When To Use
Use this skill when working in a repository that has AgentDiff initialized and the task involves:
- editing an existing file that may have AI attribution
- reviewing a PR or writing a PR summary
- explaining why a file or line range changed
- recording agent intent before a commit
- deciding which files deserve review attention first
Workflow
- Before editing a known file, check its trace context:
agentdiff context path/to/file --json
- For PR review or summary work, inspect structured report context:
agentdiff report --format json --context
agentdiff report --format markdown --context
- Use the context to answer:
- What intent produced this change?
- Which agent/model touched it?
- Which files were read to make the change?
- Which trace IDs explain the relevant file/ranges?
- Are there flags like
security,refactor, orrisky?
- Before committing substantial agent work, record context through AgentDiff MCP when available. Include concise values:
{
"prompt": "short user request or task summary",
"model_id": "model name",
"agent": "cursor",
"files_read": ["src/api.rs", "src/config.rs"],
"intent": "security hardening",
"trust": 80,
"flags": ["security"]
}
Rules
- Do not paste full prompts into commit messages or PR summaries. Use AgentDiff's stored prompt excerpt/hash.
- Keep
intentshort and review-useful, for examplesecurity hardening,bug fix,test coverage, orrefactor. - If
agentdiff contextreturns no traces, say so and continue with normal code reading. - Do not treat AgentDiff attribution as proof of correctness. It is context for review, not validation.
- If context conflicts with code reality, trust the code and mention the mismatch.
Output Guidance
When summarizing AgentDiff context to a user, prefer this shape:
AgentDiff context for `path/to/file`:
- Last traced intent: ...
- Agent/model: ...
- Relevant ranges: ...
- Files read: ...
- Review note: ...
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 1mo ago First seen · 75 lines · 53 tokens per session scan A 69188d306cc5
agentdiff-context is a skill published in the GitHub repository codeprakhar25/agentdiff (47 stars, last pushed 4mo ago), licensed Apache-2.0. It adds 53 tokens to every session and 529 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other skills, from other repositories
gentle-ai-collab-perfect
Trigger: contributing to Gentleman-Programming/gentle-ai as an external collaborator. Strict issue-first workflow, honest PR bodies, contributor-vs-maintainer scope, chained-PR strategy, verification protocol, docstring coverage. Load whenever the active repo is Gentleman-Programming/gentle-ai and any part of the…
issue-creation
Trigger: issue creation, bug reports, feature requests, or issue approval. Create and triage GitHub issues from repository evidence.
branch-pr
Create Gentle AI pull requests with issue-first checks. Trigger: creating, opening, or preparing PRs for review.
skill-creator
Trigger: new skills, agent instructions, documenting AI usage patterns. Create LLM-first skills with valid frontmatter.
work-unit-commits
Plan commits as reviewable work units. Trigger: implementation, commit splitting, chained PRs, or keeping tests and docs with code.
cognitive-doc-design
Design docs that reduce cognitive load. Trigger: writing guides, READMEs, RFCs, onboarding, architecture, or review-facing docs.