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 perforce/p4mcp-server --skill p4-file-operationsgit clone --depth 1 https://github.com/perforce/p4mcp-serverWrote 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/perforce/p4mcp-server/p4-file-operations)<a href="https://agentmods.dev/skills/perforce/p4mcp-server/p4-file-operations"><img src="https://agentmods.dev/badge/skills/perforce/p4mcp-server/p4-file-operations/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/perforce/p4mcp-server/p4-file-operations"><img src="https://agentmods.dev/badge/skills/perforce/p4mcp-server/p4-file-operations.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
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.00000 | $0.00978 |
| Opus 5.5 | $0.00000 | $0.00391 |
| Sonnet 5.5 | $0.00000 | $0.00196 |
| Haiku 4.5 | $0.00000 | $0.00098 |
Grade A, and why
p4-file-operations 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 3mo 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 — 84 lines — stays where its author put it; the contents beside it link to each section on GitHub.
File Operations
Use the query_files and modify_files tools to work with files in P4 depots.
Querying Files
| Action | Purpose | Key Parameters |
|---|---|---|
content |
Get file content at a revision | file_path |
history |
Get revision history (filelog) | file_path, max_results |
info |
Get file metadata (type, size, head revision) | file_path |
metadata |
Get extended file metadata | file_path |
diff |
Compare file revisions or depot vs workspace | file_path, file2, diff2 |
annotations |
Get per-line blame/annotation | file_path |
search |
Search for files by name pattern (wildcard) | file_path, pattern, max_results |
grep |
Search for files by content pattern | file_path, pattern, case_insensitive, max_results |
Modifying Files
| Action | Purpose | Key Parameters |
|---|---|---|
add |
Mark a new file for add | file_paths, changelist |
edit |
Open an existing file for edit | file_paths, changelist |
delete |
Mark a file for delete (requires approval) | file_paths, changelist |
move |
Move/rename a file | source_paths, target_paths, changelist |
revert |
Revert opened files to depot version | file_paths |
reconcile |
Reconcile workspace with depot (detect offline edits) | file_paths |
resolve |
Resolve file conflicts after integration | file_paths, mode |
sync |
Sync files from depot to workspace | file_paths, force |
Common Workflows
Edit and submit a file
modify_changelists→createa pending changelistmodify_files→editto open the file in the changelist- Make your changes locally
modify_changelists→submitto commit
Add new files
modify_changelists→createa pending changelist- Create the file(s) locally in your workspace
modify_files→addto mark them for addmodify_changelists→submit
Investigate file history
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.
- 3mo ago First seen · 84 lines · 0 tokens per session scan A c8c2a05224dd
p4-file-operations is a skill published in the GitHub repository perforce/p4mcp-server (127 stars, last pushed 1mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 978 tokens. 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.
p4-file-operations compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| p4-file-operationsperforce/p4mcp-server | Skill | 127 | 1mo ago | MIT | A | 0 | Claude Code, Codex |
| pull-request-authoringgithub/github-mcp-server | Skill | 35k | yesterday | MIT | A | 62 | Claude Code, Codex |
| repository-content-changesgithub/github-mcp-server | Skill | 35k | yesterday | MIT | A | 64 | Claude Code, Codex |
| deploy-runbooknirholas/three.ws | Skill | 289 | today | Apache-2.0 | A | 38 | Claude Code |
| github-via-nyxidChronoAIProject/NyxID | Skill | 43 | today | Apache-2.0 | A | 116 | Claude Code |
| git-workflowmodelcontextprotocol/csharp-sdk | Skill | 4.7k | yesterday | none | A | 19 | Claude Code, Codex |
| memory-journal-mcpneverinfamous/memory-journal-mcp | Skill | 21 | 2d ago | MIT | A | 83 | Claude Code, Codex |