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 agentmods add skills/pnp/sharepoint-skills/file-classifiernpx skills add pnp/sharepoint-skills --skill file-classifiergit clone --depth 1 https://github.com/pnp/sharepoint-skillsWrote 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/pnp/sharepoint-skills/file-classifier)<a href="https://agentmods.dev/skills/pnp/sharepoint-skills/file-classifier"><img src="https://agentmods.dev/badge/skills/pnp/sharepoint-skills/file-classifier.svg" alt="Measured on agentmods" 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.00000 | $0.03727 |
| Opus 5 | $0.00000 | $0.01863 |
| Sonnet 5 | $0.00000 | $0.00745 |
| Haiku 4.5 | $0.00000 | $0.00373 |
Grade A, and why
file-classifier 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 6d 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 — 245 lines — stays where its author put it; the contents beside it link to each section on GitHub.
File Classifier
Purpose
Classify one or more files in a SharePoint document library by reading their content and matching them to a known set of content types. Then:
- Save the classification to a "File classification" column.
- Create the metadata columns defined for that content type (if they don't already exist).
- Extract metadata values from the file content and populate those columns.
If the "File classification" column or any metadata columns do not exist, create them as autofill columns with metadata extraction prompts so future uploads are handled automatically.
Classification Decision Guide
Classify by document PURPOSE and STRUCTURE — not by keywords alone.
Many contracts include payment terms that reference invoices (e.g., "payment due within 30 days of invoice date"). The word "invoice" appearing in a document does NOT make it an Invoice. Use the structural signals below to determine the correct type.
Contracts
A Contracts document is a bilateral or multilateral agreement where two or more named parties accept mutual obligations.
Structural signals — look for ALL of these:
- A document title containing "Agreement", "Contract", "NDA", "Lease", "License", or similar
- Named parties on both sides (Service Provider + Client, Employer + Employee, Landlord + Tenant, etc.)
- Signature blocks for both parties
- Clauses governing Term, Termination, Liability, Confidentiality, or Indemnification
A Contract may contain payment terms, fee schedules, or the word "invoice" — this is normal and does NOT change the classification. If the primary purpose of the document is to establish a legal relationship between parties, it is Contracts.
Invoices
An Invoice is a standalone billing document from a single vendor requesting payment for goods or services already delivered or rendered.
Structural signals — look for ALL of these:
- A document title or header containing "Invoice", "Credit Memo", or "Remittance"
- A unique Invoice Number (e.g., "INV-2026-0042", "CM-2024-0048")
- Itemized line items with quantities, unit prices, and subtotals
- A "Bill To" or "Remit Payment To" section identifying the paying party
- A single total amount due
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.
- 6d ago First seen · 245 lines · 0 tokens per session scan A f72f4fd89722
file-classifier is a skill published in the GitHub repository pnp/sharepoint-skills (107 stars, last pushed 3d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 3,727 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.
Other skills, from other repositories
html-ppt-obsidian-claude-gradient
OpenDesign's enterprise AI-adoption brief: local-first agents at work, the risk controls, the ROI, and the rollout plan. Built as a decision-grade AI literacy deck for leadership, IT, security.
slides
Create strategic HTML presentations with Chart.js, design tokens, responsive layouts, copywriting formulas, and contextual slide strategies.
skill-doc-delivery
Convert markdown to DOCX, PPTX, XLSX, PDF office documents — use when you need exportable deliverables.
skill-deck
Generate slide deck presentations from briefs — use when you need slides, pitch decks, or visual summaries.
speech-to-text
Transcribe audio to text using ElevenLabs Scribe v2. Use when converting audio/video to text, generating subtitles, transcribing meetings, or processing spoken content.
msgraph-files
Read OneDrive and SharePoint files via the Microsoft 365 MCP server — list folder contents, fetch item metadata, inspect versions and sharing permissions. Use when locating a document in OneDrive/SharePoint, checking who a file is shared with, or reviewing file version history.