agentleFS
aspose-wordsaspose-words/agentic-net-examples/AGENTS.md

agentic-net-examples

AGENTS.md4 starsChanged 3 months agoMITView on GitHub

AI-friendly C# code examples for Aspose.Words for .NET

The file

Show its rules and text

We split this AGENTS.md into the rules it gives an agent

14 rules. About 0 are common, 9 are distinctive, and 5 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈9

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 5

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  • could be automatic: a setting could enforce it
  1. Distinctive:

    When working in this repository:

    line 16
  2. Very specific:

    All examples must compile and run without errors using dotnet build and dotnet run

    line 18
  3. Distinctive:

    Follow the category-level AGENTS.md files for feature-specific rules

    line 19
  4. Distinctive:

    Use the Command Reference section for build/run commands

    line 20
  5. Very specific:

    Use public Aspose.Words APIs and keep examples self-contained.

    line 183
  6. Very specific:

    Keep each example as a single .cs console application.

    line 184
  7. Distinctive:

    Keep input and output paths explicit and easy to follow.

    line 187
  8. Distinctive:

    Prefer category-level guidance from each folder's AGENTS.md.

    line 188
  9. Distinctive:

    Never create multi-file example projects for a single example.

    line 198
  10. Distinctive:

    Never use invented or unsupported Aspose.Words APIs.

    line 199
  11. Very specific:

    Never modify generated AGENTS.md, README.md, or index.json by hand without regenerating related metadata.

    line 200
  12. Distinctive:

    Never rely on missing external input files.

    line 201
  13. Distinctive:

    Add other packages only when an example requires them, for example:

    line 290
  14. Very specific:

    Use each category's README.md, AGENTS.md, and index.json before editing or regenerating examples.

    line 312

≈ “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.

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

Aspose.Words for .NET Examples

AI-friendly repository containing validated C# examples for Aspose.Words for .NET API.

Persona

You are a C# developer specializing in Word processing using Aspose.Words for .NET. When working in this repository:

  • Each .cs file is a standalone Console Application - do not create multi-file projects
  • All examples must compile and run without errors using dotnet build and dotnet run
  • Follow the category-level AGENTS.md files for feature-specific rules
  • Use the Command Reference section for build/run commands

Repository Overview

This repository contains 1795 working code examples demonstrating Aspose.Words for .NET capabilities.

Statistics (as of 2026-09-27):

  • Total Examples: 1795
  • Categories: 29
  • Overall Pass Rate: 100.0%
  • Source Run: 20260925_194858_2eeab9

Category Details

barcode-image

  • Examples: 30
  • Packages: Aspose.Words, Aspose.BarCode, Aspose.Drawing.Common
  • Guide: AGENTS.md

charts

  • Examples: 39
  • Packages: Aspose.Words
  • Guide: AGENTS.md

comments

  • Examples: 30
  • Packages: Aspose.Words
  • Guide: AGENTS.md

comparison

  • Examples: 30
  • Packages: Aspose.Words
  • Guide: AGENTS.md

content-control

  • Examples: 35
  • Packages: Aspose.Words, Newtonsoft.Json
  • Guide: AGENTS.md

conversion

  • Examples: 108
  • Packages: Aspose.Words, Aspose.Drawing.Common
  • Guide: AGENTS.md

extraction

  • Examples: 30
  • Packages: Aspose.Words, Newtonsoft.Json
  • Guide: AGENTS.md

find-and-replace

  • Examples: 63
  • Packages: Aspose.Words, Aspose.Drawing.Common, Newtonsoft.Json
  • Guide: AGENTS.md

fonts

  • Examples: 35
  • Packages: Aspose.Words, Aspose.Drawing.Common
  • Guide: AGENTS.md

form-fields

  • Examples: 30
  • Packages: Aspose.Words
  • Guide: AGENTS.md

hyphenation

  • Examples: 40
  • Packages: Aspose.Words
  • Guide: AGENTS.md

images

  • Examples: 120
  • Packages: Aspose.Words, Aspose.Drawing.Common, Newtonsoft.Json
  • Guide: AGENTS.md

join-documents

  • Examples: 36
  • Packages: Aspose.Words
  • Guide: AGENTS.md

linq-reporting

  • Examples: 403
  • Packages: Aspose.Words, Newtonsoft.Json, System.Text.Encoding.CodePages
  • Guide: AGENTS.md

lists

  • Examples: 30
  • Packages: Aspose.Words
  • Guide: AGENTS.md

mail-merge

  • Examples: 30
  • Packages: Aspose.Words
  • Guide: AGENTS.md

officemath

  • Examples: 30
  • Packages: Aspose.Words
  • Guide: AGENTS.md

ole-objects

  • Examples: 30
  • Packages: Aspose.Words
  • Guide: AGENTS.md

paragraphs

  • Examples: 35
  • Packages: Aspose.Words
  • Guide: AGENTS.md

programming-with-documents

  • Examples: 110
  • Packages: Aspose.Words
  • Guide: AGENTS.md

range

  • Examples: 30
  • Packages: Aspose.Words
  • Guide: AGENTS.md

rendering

  • Examples: 70
  • Packages: Aspose.Words, Aspose.Drawing.Common
  • Guide: AGENTS.md

security-and-protection

  • Examples: 30
  • Packages: Aspose.Words
  • Guide: AGENTS.md

shapes

  • Examples: 35
  • Packages: Aspose.Words
  • Guide: AGENTS.md

split-document

  • Examples: 30
  • Packages: Aspose.Words
  • Guide: AGENTS.md

track-changes

  • Examples: 40
  • Packages: Aspose.Words
  • Guide: AGENTS.md

vba-macros

  • Examples: 34
  • Packages: Aspose.Words
  • Guide: AGENTS.md

watermark

  • Examples: 34
  • Packages: Aspose.Words
  • Guide: AGENTS.md

working-with-table

  • Examples: 198
  • Packages: Aspose.Words, Newtonsoft.Json
  • Guide: AGENTS.md

Boundaries

Always

  • Use public Aspose.Words APIs and keep examples self-contained.
  • Keep each example as a single .cs console application.
  • Build with net8.0 and the configured package version.
  • Save the resulting document or output file when the task requires output.
  • Keep input and output paths explicit and easy to follow.
  • Prefer category-level guidance from each folder's AGENTS.md.

Ask First

  • Adding extra NuGet packages beyond the known verifier package set.
  • Changing shared repository infrastructure or project templates.
  • Introducing platform-specific behavior not already present in the examples.

Never

  • Never create multi-file example projects for a single example.
  • Never use invented or unsupported Aspose.Words APIs.
  • Never modify generated AGENTS.md, README.md, or index.json by hand without regenerating related metadata.
  • Never rely on missing external input files; bootstrap sample inputs locally when possible.

Repository Structure

AGENTS.md
README.md
index.json
llm.txt
+-- barcode-image/
+-- charts/
+-- comments/
+-- comparison/
+-- content-control/
+-- conversion/
+-- extraction/
+-- find-and-replace/
+-- fonts/
+-- form-fields/
+-- hyphenation/
+-- images/
+-- join-documents/
+-- linq-reporting/
+-- lists/
+-- mail-merge/
+-- officemath/
+-- ole-objects/
+-- paragraphs/
+-- programming-with-documents/
+-- range/
+-- rendering/
+-- security-and-protection/
+-- shapes/
+-- split-document/
+-- track-changes/
+-- vba-macros/
+-- watermark/
+-- working-with-table/

Category Index

CategoryExamplesPass RateDetails
BarCode Image30100.0%AGENTS.md
Charts39100.0%AGENTS.md
Comments30100.0%AGENTS.md
Comparison30100.0%AGENTS.md
Content Control35100.0%AGENTS.md
Conversion108100.0%AGENTS.md
Extraction30100.0%AGENTS.md
Find and Replace63100.0%AGENTS.md
Fonts35100.0%AGENTS.md
Form Fields30100.0%AGENTS.md
Hyphenation40100.0%AGENTS.md
Images120100.0%AGENTS.md
Join Documents36100.0%AGENTS.md
LINQ Reporting403100.0%AGENTS.md
Lists30100.0%AGENTS.md
Mail Merge30100.0%AGENTS.md
OfficeMath30100.0%AGENTS.md
OLE Objects30100.0%AGENTS.md
Paragraphs35100.0%AGENTS.md
Programming With Documents110100.0%AGENTS.md
Range30100.0%AGENTS.md
Rendering70100.0%AGENTS.md
Security and Protection30100.0%AGENTS.md
Shapes35100.0%AGENTS.md
Split Document30100.0%AGENTS.md
Track Changes40100.0%AGENTS.md
VBA Macros34100.0%AGENTS.md
Watermark34100.0%AGENTS.md
Working With Table198100.0%AGENTS.md

Command Reference

Create a temporary console project

dotnet new console -n ExampleProject --framework net8.0
cd ExampleProject

Add required packages

dotnet add package Aspose.Words --version 26.9.0

Add other packages only when an example requires them, for example:

dotnet add package Aspose.BarCode --version 26.8.0
dotnet add package Aspose.Drawing.Common --version 26.8.0
dotnet add package Newtonsoft.Json
dotnet add package SkiaSharp --version 3.119.0
dotnet add package System.Text.Encoding.CodePages --version 9.0.2

Copy and run one example

Copy-Item ..\<category-folder>\<example-file>.cs .\Program.cs
dotnet build --configuration Release --verbosity minimal
dotnet run --configuration Release --no-build

Notes for Agents

  • Root files provide navigation and repository-wide constraints.
  • Category folders are the source of truth for feature-specific behavior.
  • Use each category's README.md, AGENTS.md, and index.json before editing or regenerating examples.

Maintained by an agentic example generation workflow | For repository overview, see README.md | Last updated: 2026-09-27

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.