agentic-net-examples / document-properties
AGENTS.md1 starsChanged 2 months agoMITView on GitHub
Create focused examples for Excel workbook metadata with Aspose.Cells for .NET. Follow ../AGENTS.md first. In scope: built-in properties, custom properties, typed metadata, enumeration, existence checks, updates, removal, cloning, persistence, JSON/report export, and metadata governance. Use manage-workbook for custom XML parts and content-type properties unless ordinary document properties remain the main intent. Every example must state the property collection, name, type, operation, and expected persisted value. Use synthetic metadata, explicit types, and deterministic timestamps. Prefer filenames such as add-custom-document-property-to-xlsx.cs. For audits,…
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.
Of the AGENTS.md files we read, the 11,773 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository32 other files it gives its agents.
- Aspose.Cells for .NET Product AgentAGENTS.md
- calculate-formulas/AGENTS.mdAGENTS.md
- cells-data/AGENTS.mdAGENTS.md
- comments-and-notes/AGENTS.mdAGENTS.md
- conversion/AGENTS.mdAGENTS.md
- encryption-and-protection/AGENTS.mdAGENTS.md
- format-cells/AGENTS.mdAGENTS.md
- globalization-and-localization/AGENTS.mdAGENTS.md
- macro-project/AGENTS.mdAGENTS.md
- manage-formulas/AGENTS.mdAGENTS.md
- manage-workbook/AGENTS.mdAGENTS.md
- managing-ranges/AGENTS.mdAGENTS.md
- open-workbook/AGENTS.mdAGENTS.md
- pivot-table/AGENTS.mdAGENTS.md
- queries-and-connections/AGENTS.mdAGENTS.md
- rows-and-columns/AGENTS.mdAGENTS.md
- save-workbook/AGENTS.mdAGENTS.md
- slicer/AGENTS.mdAGENTS.md
- smart-markers/AGENTS.mdAGENTS.md
- sparkline/AGENTS.mdAGENTS.md
- timeline/AGENTS.mdAGENTS.md
- workbook-merger/AGENTS.mdAGENTS.md
- working-with-charts/AGENTS.mdAGENTS.md
- working-with-html/AGENTS.mdAGENTS.md
- working-with-images/AGENTS.mdAGENTS.md
- working-with-json/AGENTS.mdAGENTS.md
- working-with-pdf/AGENTS.mdAGENTS.md
- working-with-shapes/AGENTS.mdAGENTS.md
- working-with-tables/AGENTS.mdAGENTS.md
- working-with-worksheets/AGENTS.mdAGENTS.md
- xml-maps/AGENTS.mdAGENTS.md
- llms.txtllms.txt
The file
We split this AGENTS.md into the rules it gives an agent
9 rules. About 0 are common, 6 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈6
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 19
Create focused examples for Excel workbook metadata with Aspose.Cells for .NET.
- Very specific: line 23
Use manage-workbook for custom XML parts and content-type properties unless ordinary document properties remain the main intent.
- Distinctive: line 38
Check for an existing custom property before adding one with the same name.
- Distinctive: line 39
Treat author, company, manager, comments, and custom values as potentially sensitive metadata.
- Distinctive: line 40
Verify persistence by saving and reopening when the task modifies metadata.
- Distinctive: line 41
Do not assume every property is supported by every output format.
- Distinctive: line 42
Do not confuse document properties with cell values, named ranges, or custom XML parts.
- Very specific: line 59
Every example must state the property collection, name, type, operation, and expected persisted value.
- Distinctive: line 67
Verify collection members and property conversions against the installed package.
≈ “Common” is an estimate: at least 1 in 5 of the 16,595 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Document Properties Agent Instructions
Mission and scope
Create focused examples for Excel workbook metadata with Aspose.Cells for .NET. Follow ../AGENTS.md first.
In scope: built-in properties, custom properties, typed metadata, enumeration, existence checks, updates, removal, cloning, persistence, JSON/report export, and metadata governance.
Use manage-workbook for custom XML parts and content-type properties unless ordinary document properties remain the main intent.
Canonical model
| Intent | API |
| Standard metadata | workbook.BuiltInDocumentProperties |
| User-defined metadata | workbook.CustomDocumentProperties |
| One property | DocumentProperty |
| Enumerate | Property collection enumerators/indexers verified for the installed version |
Hard rules
- Choose built-in versus custom properties intentionally.
- Preserve property types such as string, integer, double, Boolean, and
DateTime. - Check for an existing custom property before adding one with the same name.
- Treat author, company, manager, comments, and custom values as potentially sensitive metadata.
- Verify persistence by saving and reopening when the task modifies metadata.
- Do not assume every property is supported by every output format.
- Do not confuse document properties with cell values, named ranges, or custom XML parts.
Canonical pattern
Workbook workbook = new Workbook();
workbook.BuiltInDocumentProperties.Title = "Quarterly Report";
workbook.CustomDocumentProperties.Add("ProjectId", 1001);
workbook.Save("workbook-metadata.xlsx");
Workbook reopened = new Workbook("workbook-metadata.xlsx");
string title = reopened.BuiltInDocumentProperties.Title;
Aspose.Cells.Properties.DocumentProperty projectId = reopened.CustomDocumentProperties["ProjectId"];Example contract
Every example must state the property collection, name, type, operation, and expected persisted value. Use synthetic metadata, explicit types, and deterministic timestamps. Prefer filenames such as add-custom-document-property-to-xlsx.cs.
For audits, report property name, type, and a redacted/synthetic value. Never log real author identities, customer names, internal paths, or classification labels.
Discoverability and validation
Target one intent such as "set Excel title property in C#" or "read custom XLSX metadata." The opening comment must name the property and expected value.
Verify collection members and property conversions against the installed package. Compile, run, reopen output, and compare type and value. Reject examples that stringify all values, overwrite metadata silently, or claim preservation without reopening.
Related knowledge
- Category overview
- Manage workbook
- Open workbook
- Official document properties documentation
Definition of done
The example is done when collection, property name/type, privacy treatment, and persisted result are explicit and verified.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

