agentleFS
aspose-cellsaspose-cells/agentic-net-examples/document-properties/AGENTS.md

agentic-net-examples / document-properties

AGENTS.md1 starsChanged 29 days 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,…

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
  1. Very specific:

    Create focused examples for Excel workbook metadata with Aspose.Cells for .NET.

    line 19
  2. Very specific:

    Use manage-workbook for custom XML parts and content-type properties unless ordinary document properties remain the main intent.

    line 23
  3. Distinctive:

    Check for an existing custom property before adding one with the same name.

    line 38
  4. Distinctive:

    Treat author, company, manager, comments, and custom values as potentially sensitive metadata.

    line 39
  5. Distinctive:

    Verify persistence by saving and reopening when the task modifies metadata.

    line 40
  6. Distinctive:

    Do not assume every property is supported by every output format.

    line 41
  7. Distinctive:

    Do not confuse document properties with cell values, named ranges, or custom XML parts.

    line 42
  8. Very specific:

    Every example must state the property collection, name, type, operation, and expected persisted value.

    line 59
  9. Distinctive:

    Verify collection members and property conversions against the installed package.

    line 67

≈ “Common” is an estimate: at least 1 in 5 of the 45,344 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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

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

IntentAPI
Standard metadataworkbook.BuiltInDocumentProperties
User-defined metadataworkbook.CustomDocumentProperties
One propertyDocumentProperty
EnumerateProperty 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

Definition of done

The example is done when collection, property name/type, privacy treatment, and persisted result are explicit and verified.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.